| 1 | #! /bin/sh |
|---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
|---|
| 3 | # Generated by GNU Autoconf 2.68. |
|---|
| 4 | # |
|---|
| 5 | # |
|---|
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|---|
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
|---|
| 8 | # Foundation, Inc. |
|---|
| 9 | # |
|---|
| 10 | # |
|---|
| 11 | # This configure script is free software; the Free Software Foundation |
|---|
| 12 | # gives unlimited permission to copy, distribute and modify it. |
|---|
| 13 | ## -------------------- ## |
|---|
| 14 | ## M4sh Initialization. ## |
|---|
| 15 | ## -------------------- ## |
|---|
| 16 | |
|---|
| 17 | # Be more Bourne compatible |
|---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
|---|
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|---|
| 20 | emulate sh |
|---|
| 21 | NULLCMD=: |
|---|
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|---|
| 23 | # is contrary to our usage. Disable this feature. |
|---|
| 24 | alias -g '${1+"$@"}'='"$@"' |
|---|
| 25 | setopt NO_GLOB_SUBST |
|---|
| 26 | else |
|---|
| 27 | case `(set -o) 2>/dev/null` in #( |
|---|
| 28 | *posix*) : |
|---|
| 29 | set -o posix ;; #( |
|---|
| 30 | *) : |
|---|
| 31 | ;; |
|---|
| 32 | esac |
|---|
| 33 | fi |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | as_nl=' |
|---|
| 37 | ' |
|---|
| 38 | export as_nl |
|---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 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 | as_echo='printf %s\n' |
|---|
| 51 | as_echo_n='printf %s' |
|---|
| 52 | else |
|---|
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|---|
| 55 | as_echo_n='/usr/ucb/echo -n' |
|---|
| 56 | else |
|---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|---|
| 58 | as_echo_n_body='eval |
|---|
| 59 | arg=$1; |
|---|
| 60 | case $arg in #( |
|---|
| 61 | *"$as_nl"*) |
|---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
|---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|---|
| 64 | esac; |
|---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|---|
| 66 | ' |
|---|
| 67 | export as_echo_n_body |
|---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|---|
| 69 | fi |
|---|
| 70 | export as_echo_body |
|---|
| 71 | as_echo='sh -c $as_echo_body as_echo' |
|---|
| 72 | fi |
|---|
| 73 | |
|---|
| 74 | # The user is always right. |
|---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
|---|
| 76 | PATH_SEPARATOR=: |
|---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|---|
| 79 | PATH_SEPARATOR=';' |
|---|
| 80 | } |
|---|
| 81 | fi |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | # IFS |
|---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
|---|
| 86 | # there to prevent editors from complaining about space-tab. |
|---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|---|
| 88 | # splitting by setting IFS to empty value.) |
|---|
| 89 | IFS=" "" $as_nl" |
|---|
| 90 | |
|---|
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
|---|
| 92 | as_myself= |
|---|
| 93 | case $0 in #(( |
|---|
| 94 | *[\\/]* ) as_myself=$0 ;; |
|---|
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 96 | for as_dir in $PATH |
|---|
| 97 | do |
|---|
| 98 | IFS=$as_save_IFS |
|---|
| 99 | test -z "$as_dir" && as_dir=. |
|---|
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|---|
| 101 | done |
|---|
| 102 | IFS=$as_save_IFS |
|---|
| 103 | |
|---|
| 104 | ;; |
|---|
| 105 | esac |
|---|
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|---|
| 107 | # in which case we are not to be found in the path. |
|---|
| 108 | if test "x$as_myself" = x; then |
|---|
| 109 | as_myself=$0 |
|---|
| 110 | fi |
|---|
| 111 | if test ! -f "$as_myself"; then |
|---|
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|---|
| 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 || : |
|---|
| 123 | done |
|---|
| 124 | PS1='$ ' |
|---|
| 125 | PS2='> ' |
|---|
| 126 | PS4='+ ' |
|---|
| 127 | |
|---|
| 128 | # NLS nuisances. |
|---|
| 129 | LC_ALL=C |
|---|
| 130 | export LC_ALL |
|---|
| 131 | LANGUAGE=C |
|---|
| 132 | export LANGUAGE |
|---|
| 133 | |
|---|
| 134 | # CDPATH. |
|---|
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|---|
| 136 | |
|---|
| 137 | if test "x$CONFIG_SHELL" = x; then |
|---|
| 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|---|
| 139 | emulate sh |
|---|
| 140 | NULLCMD=: |
|---|
| 141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|---|
| 142 | # is contrary to our usage. Disable this feature. |
|---|
| 143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|---|
| 144 | setopt NO_GLOB_SUBST |
|---|
| 145 | else |
|---|
| 146 | case \`(set -o) 2>/dev/null\` in #( |
|---|
| 147 | *posix*) : |
|---|
| 148 | set -o posix ;; #( |
|---|
| 149 | *) : |
|---|
| 150 | ;; |
|---|
| 151 | esac |
|---|
| 152 | fi |
|---|
| 153 | " |
|---|
| 154 | as_required="as_fn_return () { (exit \$1); } |
|---|
| 155 | as_fn_success () { as_fn_return 0; } |
|---|
| 156 | as_fn_failure () { as_fn_return 1; } |
|---|
| 157 | as_fn_ret_success () { return 0; } |
|---|
| 158 | as_fn_ret_failure () { return 1; } |
|---|
| 159 | |
|---|
| 160 | exitcode=0 |
|---|
| 161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|---|
| 162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|---|
| 163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|---|
| 164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|---|
| 165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|---|
| 166 | |
|---|
| 167 | else |
|---|
| 168 | exitcode=1; echo positional parameters were not saved. |
|---|
| 169 | fi |
|---|
| 170 | test x\$exitcode = x0 || exit 1" |
|---|
| 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|---|
| 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|---|
| 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|---|
| 174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|---|
| 175 | test \$(( 1 + 1 )) = 2 || exit 1" |
|---|
| 176 | if (eval "$as_required") 2>/dev/null; then : |
|---|
| 177 | as_have_required=yes |
|---|
| 178 | else |
|---|
| 179 | as_have_required=no |
|---|
| 180 | fi |
|---|
| 181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|---|
| 182 | |
|---|
| 183 | else |
|---|
| 184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 185 | as_found=false |
|---|
| 186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|---|
| 187 | do |
|---|
| 188 | IFS=$as_save_IFS |
|---|
| 189 | test -z "$as_dir" && as_dir=. |
|---|
| 190 | as_found=: |
|---|
| 191 | case $as_dir in #( |
|---|
| 192 | /*) |
|---|
| 193 | for as_base in sh bash ksh sh5; do |
|---|
| 194 | # Try only shells that exist, to save several forks. |
|---|
| 195 | as_shell=$as_dir/$as_base |
|---|
| 196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|---|
| 197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|---|
| 198 | CONFIG_SHELL=$as_shell as_have_required=yes |
|---|
| 199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|---|
| 200 | break 2 |
|---|
| 201 | fi |
|---|
| 202 | fi |
|---|
| 203 | done;; |
|---|
| 204 | esac |
|---|
| 205 | as_found=false |
|---|
| 206 | done |
|---|
| 207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|---|
| 208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|---|
| 209 | CONFIG_SHELL=$SHELL as_have_required=yes |
|---|
| 210 | fi; } |
|---|
| 211 | IFS=$as_save_IFS |
|---|
| 212 | |
|---|
| 213 | |
|---|
| 214 | if test "x$CONFIG_SHELL" != x; then : |
|---|
| 215 | # We cannot yet assume a decent shell, so we have to provide a |
|---|
| 216 | # neutralization value for shells without unset; and this also |
|---|
| 217 | # works around shells that cannot unset nonexistent variables. |
|---|
| 218 | # Preserve -v and -x to the replacement shell. |
|---|
| 219 | BASH_ENV=/dev/null |
|---|
| 220 | ENV=/dev/null |
|---|
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|---|
| 222 | export CONFIG_SHELL |
|---|
| 223 | case $- in # (((( |
|---|
| 224 | *v*x* | *x*v* ) as_opts=-vx ;; |
|---|
| 225 | *v* ) as_opts=-v ;; |
|---|
| 226 | *x* ) as_opts=-x ;; |
|---|
| 227 | * ) as_opts= ;; |
|---|
| 228 | esac |
|---|
| 229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
|---|
| 230 | fi |
|---|
| 231 | |
|---|
| 232 | if test x$as_have_required = xno; then : |
|---|
| 233 | $as_echo "$0: This script requires a shell more modern than all" |
|---|
| 234 | $as_echo "$0: the shells that I found on your system." |
|---|
| 235 | if test x${ZSH_VERSION+set} = xset ; then |
|---|
| 236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|---|
| 237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|---|
| 238 | else |
|---|
| 239 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
|---|
| 240 | $0: including any error possibly output before this |
|---|
| 241 | $0: message. Then install a modern shell, or manually run |
|---|
| 242 | $0: the script under such a shell if you do have one." |
|---|
| 243 | fi |
|---|
| 244 | exit 1 |
|---|
| 245 | fi |
|---|
| 246 | fi |
|---|
| 247 | fi |
|---|
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 249 | export SHELL |
|---|
| 250 | # Unset more variables known to interfere with behavior of common tools. |
|---|
| 251 | CLICOLOR_FORCE= GREP_OPTIONS= |
|---|
| 252 | unset CLICOLOR_FORCE GREP_OPTIONS |
|---|
| 253 | |
|---|
| 254 | ## --------------------- ## |
|---|
| 255 | ## M4sh Shell Functions. ## |
|---|
| 256 | ## --------------------- ## |
|---|
| 257 | # as_fn_unset VAR |
|---|
| 258 | # --------------- |
|---|
| 259 | # Portably unset VAR. |
|---|
| 260 | as_fn_unset () |
|---|
| 261 | { |
|---|
| 262 | { eval $1=; unset $1;} |
|---|
| 263 | } |
|---|
| 264 | as_unset=as_fn_unset |
|---|
| 265 | |
|---|
| 266 | # as_fn_set_status STATUS |
|---|
| 267 | # ----------------------- |
|---|
| 268 | # Set $? to STATUS, without forking. |
|---|
| 269 | as_fn_set_status () |
|---|
| 270 | { |
|---|
| 271 | return $1 |
|---|
| 272 | } # as_fn_set_status |
|---|
| 273 | |
|---|
| 274 | # as_fn_exit STATUS |
|---|
| 275 | # ----------------- |
|---|
| 276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|---|
| 277 | as_fn_exit () |
|---|
| 278 | { |
|---|
| 279 | set +e |
|---|
| 280 | as_fn_set_status $1 |
|---|
| 281 | exit $1 |
|---|
| 282 | } # as_fn_exit |
|---|
| 283 | |
|---|
| 284 | # as_fn_mkdir_p |
|---|
| 285 | # ------------- |
|---|
| 286 | # Create "$as_dir" as a directory, including parents if necessary. |
|---|
| 287 | as_fn_mkdir_p () |
|---|
| 288 | { |
|---|
| 289 | |
|---|
| 290 | case $as_dir in #( |
|---|
| 291 | -*) as_dir=./$as_dir;; |
|---|
| 292 | esac |
|---|
| 293 | test -d "$as_dir" || eval $as_mkdir_p || { |
|---|
| 294 | as_dirs= |
|---|
| 295 | while :; do |
|---|
| 296 | case $as_dir in #( |
|---|
| 297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|---|
| 298 | *) as_qdir=$as_dir;; |
|---|
| 299 | esac |
|---|
| 300 | as_dirs="'$as_qdir' $as_dirs" |
|---|
| 301 | as_dir=`$as_dirname -- "$as_dir" || |
|---|
| 302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 303 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|---|
| 304 | X"$as_dir" : 'X\(//\)$' \| \ |
|---|
| 305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 306 | $as_echo X"$as_dir" | |
|---|
| 307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 308 | s//\1/ |
|---|
| 309 | q |
|---|
| 310 | } |
|---|
| 311 | /^X\(\/\/\)[^/].*/{ |
|---|
| 312 | s//\1/ |
|---|
| 313 | q |
|---|
| 314 | } |
|---|
| 315 | /^X\(\/\/\)$/{ |
|---|
| 316 | s//\1/ |
|---|
| 317 | q |
|---|
| 318 | } |
|---|
| 319 | /^X\(\/\).*/{ |
|---|
| 320 | s//\1/ |
|---|
| 321 | q |
|---|
| 322 | } |
|---|
| 323 | s/.*/./; q'` |
|---|
| 324 | test -d "$as_dir" && break |
|---|
| 325 | done |
|---|
| 326 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|---|
| 327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|---|
| 328 | |
|---|
| 329 | |
|---|
| 330 | } # as_fn_mkdir_p |
|---|
| 331 | # as_fn_append VAR VALUE |
|---|
| 332 | # ---------------------- |
|---|
| 333 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|---|
| 334 | # advantage of any shell optimizations that allow amortized linear growth over |
|---|
| 335 | # repeated appends, instead of the typical quadratic growth present in naive |
|---|
| 336 | # implementations. |
|---|
| 337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|---|
| 338 | eval 'as_fn_append () |
|---|
| 339 | { |
|---|
| 340 | eval $1+=\$2 |
|---|
| 341 | }' |
|---|
| 342 | else |
|---|
| 343 | as_fn_append () |
|---|
| 344 | { |
|---|
| 345 | eval $1=\$$1\$2 |
|---|
| 346 | } |
|---|
| 347 | fi # as_fn_append |
|---|
| 348 | |
|---|
| 349 | # as_fn_arith ARG... |
|---|
| 350 | # ------------------ |
|---|
| 351 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|---|
| 352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|---|
| 353 | # must be portable across $(()) and expr. |
|---|
| 354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|---|
| 355 | eval 'as_fn_arith () |
|---|
| 356 | { |
|---|
| 357 | as_val=$(( $* )) |
|---|
| 358 | }' |
|---|
| 359 | else |
|---|
| 360 | as_fn_arith () |
|---|
| 361 | { |
|---|
| 362 | as_val=`expr "$@" || test $? -eq 1` |
|---|
| 363 | } |
|---|
| 364 | fi # as_fn_arith |
|---|
| 365 | |
|---|
| 366 | |
|---|
| 367 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|---|
| 368 | # ---------------------------------------- |
|---|
| 369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|---|
| 370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|---|
| 371 | # script with STATUS, using 1 if that was 0. |
|---|
| 372 | as_fn_error () |
|---|
| 373 | { |
|---|
| 374 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|---|
| 375 | if test "$4"; then |
|---|
| 376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|---|
| 378 | fi |
|---|
| 379 | $as_echo "$as_me: error: $2" >&2 |
|---|
| 380 | as_fn_exit $as_status |
|---|
| 381 | } # as_fn_error |
|---|
| 382 | |
|---|
| 383 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|---|
| 384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|---|
| 385 | as_expr=expr |
|---|
| 386 | else |
|---|
| 387 | as_expr=false |
|---|
| 388 | fi |
|---|
| 389 | |
|---|
| 390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|---|
| 391 | as_basename=basename |
|---|
| 392 | else |
|---|
| 393 | as_basename=false |
|---|
| 394 | fi |
|---|
| 395 | |
|---|
| 396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|---|
| 397 | as_dirname=dirname |
|---|
| 398 | else |
|---|
| 399 | as_dirname=false |
|---|
| 400 | fi |
|---|
| 401 | |
|---|
| 402 | as_me=`$as_basename -- "$0" || |
|---|
| 403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|---|
| 404 | X"$0" : 'X\(//\)$' \| \ |
|---|
| 405 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 406 | $as_echo X/"$0" | |
|---|
| 407 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|---|
| 408 | s//\1/ |
|---|
| 409 | q |
|---|
| 410 | } |
|---|
| 411 | /^X\/\(\/\/\)$/{ |
|---|
| 412 | s//\1/ |
|---|
| 413 | q |
|---|
| 414 | } |
|---|
| 415 | /^X\/\(\/\).*/{ |
|---|
| 416 | s//\1/ |
|---|
| 417 | q |
|---|
| 418 | } |
|---|
| 419 | s/.*/./; q'` |
|---|
| 420 | |
|---|
| 421 | # Avoid depending upon Character Ranges. |
|---|
| 422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|---|
| 423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|---|
| 424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|---|
| 425 | as_cr_digits='0123456789' |
|---|
| 426 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|---|
| 427 | |
|---|
| 428 | |
|---|
| 429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|---|
| 430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|---|
| 431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|---|
| 432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|---|
| 433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|---|
| 434 | sed -n ' |
|---|
| 435 | p |
|---|
| 436 | /[$]LINENO/= |
|---|
| 437 | ' <$as_myself | |
|---|
| 438 | sed ' |
|---|
| 439 | s/[$]LINENO.*/&-/ |
|---|
| 440 | t lineno |
|---|
| 441 | b |
|---|
| 442 | :lineno |
|---|
| 443 | N |
|---|
| 444 | :loop |
|---|
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|---|
| 446 | t loop |
|---|
| 447 | s/-\n.*// |
|---|
| 448 | ' >$as_me.lineno && |
|---|
| 449 | chmod +x "$as_me.lineno" || |
|---|
| 450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|---|
| 451 | |
|---|
| 452 | # Don't try to exec as it changes $[0], causing all sort of problems |
|---|
| 453 | # (the dirname of $[0] is not the place where we might find the |
|---|
| 454 | # original and so on. Autoconf is especially sensitive to this). |
|---|
| 455 | . "./$as_me.lineno" |
|---|
| 456 | # Exit status is that of the last command. |
|---|
| 457 | exit |
|---|
| 458 | } |
|---|
| 459 | |
|---|
| 460 | ECHO_C= ECHO_N= ECHO_T= |
|---|
| 461 | case `echo -n x` in #((((( |
|---|
| 462 | -n*) |
|---|
| 463 | case `echo 'xy\c'` in |
|---|
| 464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|---|
| 465 | xy) ECHO_C='\c';; |
|---|
| 466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|---|
| 467 | ECHO_T=' ';; |
|---|
| 468 | esac;; |
|---|
| 469 | *) |
|---|
| 470 | ECHO_N='-n';; |
|---|
| 471 | esac |
|---|
| 472 | |
|---|
| 473 | rm -f conf$$ conf$$.exe conf$$.file |
|---|
| 474 | if test -d conf$$.dir; then |
|---|
| 475 | rm -f conf$$.dir/conf$$.file |
|---|
| 476 | else |
|---|
| 477 | rm -f conf$$.dir |
|---|
| 478 | mkdir conf$$.dir 2>/dev/null |
|---|
| 479 | fi |
|---|
| 480 | if (echo >conf$$.file) 2>/dev/null; then |
|---|
| 481 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|---|
| 482 | as_ln_s='ln -s' |
|---|
| 483 | # ... but there are two gotchas: |
|---|
| 484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|---|
| 485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|---|
| 486 | # In both cases, we have to default to `cp -p'. |
|---|
| 487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|---|
| 488 | as_ln_s='cp -p' |
|---|
| 489 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|---|
| 490 | as_ln_s=ln |
|---|
| 491 | else |
|---|
| 492 | as_ln_s='cp -p' |
|---|
| 493 | fi |
|---|
| 494 | else |
|---|
| 495 | as_ln_s='cp -p' |
|---|
| 496 | fi |
|---|
| 497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|---|
| 498 | rmdir conf$$.dir 2>/dev/null |
|---|
| 499 | |
|---|
| 500 | if mkdir -p . 2>/dev/null; then |
|---|
| 501 | as_mkdir_p='mkdir -p "$as_dir"' |
|---|
| 502 | else |
|---|
| 503 | test -d ./-p && rmdir ./-p |
|---|
| 504 | as_mkdir_p=false |
|---|
| 505 | fi |
|---|
| 506 | |
|---|
| 507 | if test -x / >/dev/null 2>&1; then |
|---|
| 508 | as_test_x='test -x' |
|---|
| 509 | else |
|---|
| 510 | if ls -dL / >/dev/null 2>&1; then |
|---|
| 511 | as_ls_L_option=L |
|---|
| 512 | else |
|---|
| 513 | as_ls_L_option= |
|---|
| 514 | fi |
|---|
| 515 | as_test_x=' |
|---|
| 516 | eval sh -c '\'' |
|---|
| 517 | if test -d "$1"; then |
|---|
| 518 | test -d "$1/."; |
|---|
| 519 | else |
|---|
| 520 | case $1 in #( |
|---|
| 521 | -*)set "./$1";; |
|---|
| 522 | esac; |
|---|
| 523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|---|
| 524 | ???[sx]*):;;*)false;;esac;fi |
|---|
| 525 | '\'' sh |
|---|
| 526 | ' |
|---|
| 527 | fi |
|---|
| 528 | as_executable_p=$as_test_x |
|---|
| 529 | |
|---|
| 530 | # Sed expression to map a string onto a valid CPP name. |
|---|
| 531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 532 | |
|---|
| 533 | # Sed expression to map a string onto a valid variable name. |
|---|
| 534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 535 | |
|---|
| 536 | |
|---|
| 537 | test -n "$DJDIR" || exec 7<&0 </dev/null |
|---|
| 538 | exec 6>&1 |
|---|
| 539 | |
|---|
| 540 | # Name of the host. |
|---|
| 541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|---|
| 542 | # so uname gets run too. |
|---|
| 543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 544 | |
|---|
| 545 | # |
|---|
| 546 | # Initializations. |
|---|
| 547 | # |
|---|
| 548 | ac_default_prefix=/usr/local |
|---|
| 549 | ac_clean_files= |
|---|
| 550 | ac_config_libobj_dir=. |
|---|
| 551 | LIBOBJS= |
|---|
| 552 | cross_compiling=no |
|---|
| 553 | subdirs= |
|---|
| 554 | MFLAGS= |
|---|
| 555 | MAKEFLAGS= |
|---|
| 556 | |
|---|
| 557 | # Identity of this package. |
|---|
| 558 | PACKAGE_NAME= |
|---|
| 559 | PACKAGE_TARNAME= |
|---|
| 560 | PACKAGE_VERSION= |
|---|
| 561 | PACKAGE_STRING= |
|---|
| 562 | PACKAGE_BUGREPORT= |
|---|
| 563 | PACKAGE_URL= |
|---|
| 564 | |
|---|
| 565 | ac_unique_file="main.cpp" |
|---|
| 566 | # Factoring default headers for most tests. |
|---|
| 567 | ac_includes_default="\ |
|---|
| 568 | #include <stdio.h> |
|---|
| 569 | #ifdef HAVE_SYS_TYPES_H |
|---|
| 570 | # include <sys/types.h> |
|---|
| 571 | #endif |
|---|
| 572 | #ifdef HAVE_SYS_STAT_H |
|---|
| 573 | # include <sys/stat.h> |
|---|
| 574 | #endif |
|---|
| 575 | #ifdef STDC_HEADERS |
|---|
| 576 | # include <stdlib.h> |
|---|
| 577 | # include <stddef.h> |
|---|
| 578 | #else |
|---|
| 579 | # ifdef HAVE_STDLIB_H |
|---|
| 580 | # include <stdlib.h> |
|---|
| 581 | # endif |
|---|
| 582 | #endif |
|---|
| 583 | #ifdef HAVE_STRING_H |
|---|
| 584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|---|
| 585 | # include <memory.h> |
|---|
| 586 | # endif |
|---|
| 587 | # include <string.h> |
|---|
| 588 | #endif |
|---|
| 589 | #ifdef HAVE_STRINGS_H |
|---|
| 590 | # include <strings.h> |
|---|
| 591 | #endif |
|---|
| 592 | #ifdef HAVE_INTTYPES_H |
|---|
| 593 | # include <inttypes.h> |
|---|
| 594 | #endif |
|---|
| 595 | #ifdef HAVE_STDINT_H |
|---|
| 596 | # include <stdint.h> |
|---|
| 597 | #endif |
|---|
| 598 | #ifdef HAVE_UNISTD_H |
|---|
| 599 | # include <unistd.h> |
|---|
| 600 | #endif" |
|---|
| 601 | |
|---|
| 602 | ac_subst_vars='LTLIBOBJS |
|---|
| 603 | LIBOBJS |
|---|
| 604 | V_EXTRACPP_OBJ |
|---|
| 605 | V_EXTRAC_OBJ |
|---|
| 606 | V_OBJ_CRYPT |
|---|
| 607 | V_BROKEN_OBJ |
|---|
| 608 | V_INCLUDE |
|---|
| 609 | V_TARCMD |
|---|
| 610 | V_STATIC |
|---|
| 611 | V_SHELL |
|---|
| 612 | V_SIGRET |
|---|
| 613 | V_DEFINE |
|---|
| 614 | V_TAR_EXTRA |
|---|
| 615 | V_CCOPT_H261 |
|---|
| 616 | V_CCLDFLAGS32 |
|---|
| 617 | V_LDFLAGS |
|---|
| 618 | V_CCOPT |
|---|
| 619 | V_ALL |
|---|
| 620 | V_TAR_TARGET |
|---|
| 621 | V_PROG |
|---|
| 622 | V_CPUDETECT_OBJ |
|---|
| 623 | V_CODEC_LIB |
|---|
| 624 | V_LIB |
|---|
| 625 | V_OBJ |
|---|
| 626 | V_OBJ_XIL |
|---|
| 627 | V_LIB_XIL |
|---|
| 628 | V_OBJ_GRABBER |
|---|
| 629 | V_LIB_GRABBER |
|---|
| 630 | V_INCLUDE_GRABBER |
|---|
| 631 | V_LIB_X264 |
|---|
| 632 | V_LIB_FFMPEG |
|---|
| 633 | DOWNLOAD |
|---|
| 634 | V_TCL2CPP_JPEG_PLAY_OBJS |
|---|
| 635 | V_TCL2CPP_H261_PLAY_OBJS |
|---|
| 636 | V_TCL2CPP_VDD_OBJS |
|---|
| 637 | V_TCL2CPP_OBJS |
|---|
| 638 | V_TKBASE_RC |
|---|
| 639 | V_ZVFS_ZIP |
|---|
| 640 | V_ZVFS_OBJS |
|---|
| 641 | V_LIB_X11 |
|---|
| 642 | V_INCLUDE_X11 |
|---|
| 643 | V_LIB_TK |
|---|
| 644 | V_LIBRARY_TK |
|---|
| 645 | V_INCLUDE_TK |
|---|
| 646 | V_TCL_PLATFORM |
|---|
| 647 | V_LIB_TCL |
|---|
| 648 | V_LIBRARY_TCL |
|---|
| 649 | V_INCLUDE_TCL |
|---|
| 650 | RC_PROG |
|---|
| 651 | TK_STUB_LIB_SPEC |
|---|
| 652 | TK_STUB_LIB_FLAG |
|---|
| 653 | TK_STUB_LIB_FILE |
|---|
| 654 | TK_LIB_SPEC |
|---|
| 655 | TK_LIB_FLAG |
|---|
| 656 | TK_LIB_FILE |
|---|
| 657 | TK_SRC_DIR |
|---|
| 658 | TK_BIN_DIR |
|---|
| 659 | TK_VERSION |
|---|
| 660 | TCLSH_PROG |
|---|
| 661 | ZIP_PROG |
|---|
| 662 | TCL_STUB_LIB_SPEC |
|---|
| 663 | TCL_STUB_LIB_FLAG |
|---|
| 664 | TCL_STUB_LIB_FILE |
|---|
| 665 | TCL_LIB_SPEC |
|---|
| 666 | TCL_LIB_FLAG |
|---|
| 667 | TCL_LIB_FILE |
|---|
| 668 | TCL_SRC_DIR |
|---|
| 669 | TCL_BIN_DIR |
|---|
| 670 | TCL_PATCH_LEVEL |
|---|
| 671 | TCL_VERSION |
|---|
| 672 | EGREP |
|---|
| 673 | GREP |
|---|
| 674 | CPP |
|---|
| 675 | ac_ct_CXX |
|---|
| 676 | CXXFLAGS |
|---|
| 677 | CXX |
|---|
| 678 | OBJEXT |
|---|
| 679 | EXEEXT |
|---|
| 680 | ac_ct_CC |
|---|
| 681 | CPPFLAGS |
|---|
| 682 | LDFLAGS |
|---|
| 683 | CFLAGS |
|---|
| 684 | CC |
|---|
| 685 | target_os |
|---|
| 686 | target_vendor |
|---|
| 687 | target_cpu |
|---|
| 688 | target |
|---|
| 689 | host_os |
|---|
| 690 | host_vendor |
|---|
| 691 | host_cpu |
|---|
| 692 | host |
|---|
| 693 | build_os |
|---|
| 694 | build_vendor |
|---|
| 695 | build_cpu |
|---|
| 696 | build |
|---|
| 697 | INSTALL_DATA |
|---|
| 698 | INSTALL_SCRIPT |
|---|
| 699 | INSTALL_PROGRAM |
|---|
| 700 | target_alias |
|---|
| 701 | host_alias |
|---|
| 702 | build_alias |
|---|
| 703 | LIBS |
|---|
| 704 | ECHO_T |
|---|
| 705 | ECHO_N |
|---|
| 706 | ECHO_C |
|---|
| 707 | DEFS |
|---|
| 708 | mandir |
|---|
| 709 | localedir |
|---|
| 710 | libdir |
|---|
| 711 | psdir |
|---|
| 712 | pdfdir |
|---|
| 713 | dvidir |
|---|
| 714 | htmldir |
|---|
| 715 | infodir |
|---|
| 716 | docdir |
|---|
| 717 | oldincludedir |
|---|
| 718 | includedir |
|---|
| 719 | localstatedir |
|---|
| 720 | sharedstatedir |
|---|
| 721 | sysconfdir |
|---|
| 722 | datadir |
|---|
| 723 | datarootdir |
|---|
| 724 | libexecdir |
|---|
| 725 | sbindir |
|---|
| 726 | bindir |
|---|
| 727 | program_transform_name |
|---|
| 728 | prefix |
|---|
| 729 | exec_prefix |
|---|
| 730 | PACKAGE_URL |
|---|
| 731 | PACKAGE_BUGREPORT |
|---|
| 732 | PACKAGE_STRING |
|---|
| 733 | PACKAGE_VERSION |
|---|
| 734 | PACKAGE_TARNAME |
|---|
| 735 | PACKAGE_NAME |
|---|
| 736 | PATH_SEPARATOR |
|---|
| 737 | SHELL' |
|---|
| 738 | ac_subst_files='' |
|---|
| 739 | ac_user_opts=' |
|---|
| 740 | enable_option_checking |
|---|
| 741 | enable_debug |
|---|
| 742 | enable_ipv6 |
|---|
| 743 | with_fore |
|---|
| 744 | enable_aquatcl |
|---|
| 745 | enable_aquatk |
|---|
| 746 | with_tcl |
|---|
| 747 | enable_zvfs |
|---|
| 748 | with_zipprog |
|---|
| 749 | with_tk |
|---|
| 750 | with_rcprog |
|---|
| 751 | with_aix_shm |
|---|
| 752 | with_qcam |
|---|
| 753 | enable_dvdecode |
|---|
| 754 | enable_xvideo |
|---|
| 755 | with_decklink |
|---|
| 756 | enable_XvGrabber |
|---|
| 757 | enable_Linux1394Grabber |
|---|
| 758 | enable_ddraw |
|---|
| 759 | enable_gpl |
|---|
| 760 | with_ffmpegver |
|---|
| 761 | enable_ffmpeg_co |
|---|
| 762 | with_x264ver |
|---|
| 763 | enable_x264_co |
|---|
| 764 | with_ffmpeginc |
|---|
| 765 | with_ffmpeglib |
|---|
| 766 | with_x264inc |
|---|
| 767 | with_x264lib |
|---|
| 768 | enable_cpudetect |
|---|
| 769 | ' |
|---|
| 770 | ac_precious_vars='build_alias |
|---|
| 771 | host_alias |
|---|
| 772 | target_alias |
|---|
| 773 | CC |
|---|
| 774 | CFLAGS |
|---|
| 775 | LDFLAGS |
|---|
| 776 | LIBS |
|---|
| 777 | CPPFLAGS |
|---|
| 778 | CXX |
|---|
| 779 | CXXFLAGS |
|---|
| 780 | CCC |
|---|
| 781 | CPP' |
|---|
| 782 | |
|---|
| 783 | |
|---|
| 784 | # Initialize some variables set by options. |
|---|
| 785 | ac_init_help= |
|---|
| 786 | ac_init_version=false |
|---|
| 787 | ac_unrecognized_opts= |
|---|
| 788 | ac_unrecognized_sep= |
|---|
| 789 | # The variables have the same names as the options, with |
|---|
| 790 | # dashes changed to underlines. |
|---|
| 791 | cache_file=/dev/null |
|---|
| 792 | exec_prefix=NONE |
|---|
| 793 | no_create= |
|---|
| 794 | no_recursion= |
|---|
| 795 | prefix=NONE |
|---|
| 796 | program_prefix=NONE |
|---|
| 797 | program_suffix=NONE |
|---|
| 798 | program_transform_name=s,x,x, |
|---|
| 799 | silent= |
|---|
| 800 | site= |
|---|
| 801 | srcdir= |
|---|
| 802 | verbose= |
|---|
| 803 | x_includes=NONE |
|---|
| 804 | x_libraries=NONE |
|---|
| 805 | |
|---|
| 806 | # Installation directory options. |
|---|
| 807 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
|---|
| 808 | # and all the variables that are supposed to be based on exec_prefix |
|---|
| 809 | # by default will actually change. |
|---|
| 810 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|---|
| 811 | # (The list follows the same order as the GNU Coding Standards.) |
|---|
| 812 | bindir='${exec_prefix}/bin' |
|---|
| 813 | sbindir='${exec_prefix}/sbin' |
|---|
| 814 | libexecdir='${exec_prefix}/libexec' |
|---|
| 815 | datarootdir='${prefix}/share' |
|---|
| 816 | datadir='${datarootdir}' |
|---|
| 817 | sysconfdir='${prefix}/etc' |
|---|
| 818 | sharedstatedir='${prefix}/com' |
|---|
| 819 | localstatedir='${prefix}/var' |
|---|
| 820 | includedir='${prefix}/include' |
|---|
| 821 | oldincludedir='/usr/include' |
|---|
| 822 | docdir='${datarootdir}/doc/${PACKAGE}' |
|---|
| 823 | infodir='${datarootdir}/info' |
|---|
| 824 | htmldir='${docdir}' |
|---|
| 825 | dvidir='${docdir}' |
|---|
| 826 | pdfdir='${docdir}' |
|---|
| 827 | psdir='${docdir}' |
|---|
| 828 | libdir='${exec_prefix}/lib' |
|---|
| 829 | localedir='${datarootdir}/locale' |
|---|
| 830 | mandir='${datarootdir}/man' |
|---|
| 831 | |
|---|
| 832 | ac_prev= |
|---|
| 833 | ac_dashdash= |
|---|
| 834 | for ac_option |
|---|
| 835 | do |
|---|
| 836 | # If the previous option needs an argument, assign it. |
|---|
| 837 | if test -n "$ac_prev"; then |
|---|
| 838 | eval $ac_prev=\$ac_option |
|---|
| 839 | ac_prev= |
|---|
| 840 | continue |
|---|
| 841 | fi |
|---|
| 842 | |
|---|
| 843 | case $ac_option in |
|---|
| 844 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|---|
| 845 | *=) ac_optarg= ;; |
|---|
| 846 | *) ac_optarg=yes ;; |
|---|
| 847 | esac |
|---|
| 848 | |
|---|
| 849 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|---|
| 850 | |
|---|
| 851 | case $ac_dashdash$ac_option in |
|---|
| 852 | --) |
|---|
| 853 | ac_dashdash=yes ;; |
|---|
| 854 | |
|---|
| 855 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|---|
| 856 | ac_prev=bindir ;; |
|---|
| 857 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|---|
| 858 | bindir=$ac_optarg ;; |
|---|
| 859 | |
|---|
| 860 | -build | --build | --buil | --bui | --bu) |
|---|
| 861 | ac_prev=build_alias ;; |
|---|
| 862 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|---|
| 863 | build_alias=$ac_optarg ;; |
|---|
| 864 | |
|---|
| 865 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|---|
| 866 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|---|
| 867 | ac_prev=cache_file ;; |
|---|
| 868 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|---|
| 869 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|---|
| 870 | cache_file=$ac_optarg ;; |
|---|
| 871 | |
|---|
| 872 | --config-cache | -C) |
|---|
| 873 | cache_file=config.cache ;; |
|---|
| 874 | |
|---|
| 875 | -datadir | --datadir | --datadi | --datad) |
|---|
| 876 | ac_prev=datadir ;; |
|---|
| 877 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|---|
| 878 | datadir=$ac_optarg ;; |
|---|
| 879 | |
|---|
| 880 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|---|
| 881 | | --dataroo | --dataro | --datar) |
|---|
| 882 | ac_prev=datarootdir ;; |
|---|
| 883 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|---|
| 884 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|---|
| 885 | datarootdir=$ac_optarg ;; |
|---|
| 886 | |
|---|
| 887 | -disable-* | --disable-*) |
|---|
| 888 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|---|
| 889 | # Reject names that are not valid shell variable names. |
|---|
| 890 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 891 | as_fn_error $? "invalid feature name: $ac_useropt" |
|---|
| 892 | ac_useropt_orig=$ac_useropt |
|---|
| 893 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 894 | case $ac_user_opts in |
|---|
| 895 | *" |
|---|
| 896 | "enable_$ac_useropt" |
|---|
| 897 | "*) ;; |
|---|
| 898 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|---|
| 899 | ac_unrecognized_sep=', ';; |
|---|
| 900 | esac |
|---|
| 901 | eval enable_$ac_useropt=no ;; |
|---|
| 902 | |
|---|
| 903 | -docdir | --docdir | --docdi | --doc | --do) |
|---|
| 904 | ac_prev=docdir ;; |
|---|
| 905 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|---|
| 906 | docdir=$ac_optarg ;; |
|---|
| 907 | |
|---|
| 908 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|---|
| 909 | ac_prev=dvidir ;; |
|---|
| 910 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|---|
| 911 | dvidir=$ac_optarg ;; |
|---|
| 912 | |
|---|
| 913 | -enable-* | --enable-*) |
|---|
| 914 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|---|
| 915 | # Reject names that are not valid shell variable names. |
|---|
| 916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 917 | as_fn_error $? "invalid feature name: $ac_useropt" |
|---|
| 918 | ac_useropt_orig=$ac_useropt |
|---|
| 919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 920 | case $ac_user_opts in |
|---|
| 921 | *" |
|---|
| 922 | "enable_$ac_useropt" |
|---|
| 923 | "*) ;; |
|---|
| 924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|---|
| 925 | ac_unrecognized_sep=', ';; |
|---|
| 926 | esac |
|---|
| 927 | eval enable_$ac_useropt=\$ac_optarg ;; |
|---|
| 928 | |
|---|
| 929 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|---|
| 930 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|---|
| 931 | | --exec | --exe | --ex) |
|---|
| 932 | ac_prev=exec_prefix ;; |
|---|
| 933 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|---|
| 934 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|---|
| 935 | | --exec=* | --exe=* | --ex=*) |
|---|
| 936 | exec_prefix=$ac_optarg ;; |
|---|
| 937 | |
|---|
| 938 | -gas | --gas | --ga | --g) |
|---|
| 939 | # Obsolete; use --with-gas. |
|---|
| 940 | with_gas=yes ;; |
|---|
| 941 | |
|---|
| 942 | -help | --help | --hel | --he | -h) |
|---|
| 943 | ac_init_help=long ;; |
|---|
| 944 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|---|
| 945 | ac_init_help=recursive ;; |
|---|
| 946 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|---|
| 947 | ac_init_help=short ;; |
|---|
| 948 | |
|---|
| 949 | -host | --host | --hos | --ho) |
|---|
| 950 | ac_prev=host_alias ;; |
|---|
| 951 | -host=* | --host=* | --hos=* | --ho=*) |
|---|
| 952 | host_alias=$ac_optarg ;; |
|---|
| 953 | |
|---|
| 954 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|---|
| 955 | ac_prev=htmldir ;; |
|---|
| 956 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|---|
| 957 | | --ht=*) |
|---|
| 958 | htmldir=$ac_optarg ;; |
|---|
| 959 | |
|---|
| 960 | -includedir | --includedir | --includedi | --included | --include \ |
|---|
| 961 | | --includ | --inclu | --incl | --inc) |
|---|
| 962 | ac_prev=includedir ;; |
|---|
| 963 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|---|
| 964 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
|---|
| 965 | includedir=$ac_optarg ;; |
|---|
| 966 | |
|---|
| 967 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
|---|
| 968 | ac_prev=infodir ;; |
|---|
| 969 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|---|
| 970 | infodir=$ac_optarg ;; |
|---|
| 971 | |
|---|
| 972 | -libdir | --libdir | --libdi | --libd) |
|---|
| 973 | ac_prev=libdir ;; |
|---|
| 974 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|---|
| 975 | libdir=$ac_optarg ;; |
|---|
| 976 | |
|---|
| 977 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|---|
| 978 | | --libexe | --libex | --libe) |
|---|
| 979 | ac_prev=libexecdir ;; |
|---|
| 980 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|---|
| 981 | | --libexe=* | --libex=* | --libe=*) |
|---|
| 982 | libexecdir=$ac_optarg ;; |
|---|
| 983 | |
|---|
| 984 | -localedir | --localedir | --localedi | --localed | --locale) |
|---|
| 985 | ac_prev=localedir ;; |
|---|
| 986 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|---|
| 987 | localedir=$ac_optarg ;; |
|---|
| 988 | |
|---|
| 989 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|---|
| 990 | | --localstate | --localstat | --localsta | --localst | --locals) |
|---|
| 991 | ac_prev=localstatedir ;; |
|---|
| 992 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|---|
| 993 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|---|
| 994 | localstatedir=$ac_optarg ;; |
|---|
| 995 | |
|---|
| 996 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|---|
| 997 | ac_prev=mandir ;; |
|---|
| 998 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|---|
| 999 | mandir=$ac_optarg ;; |
|---|
| 1000 | |
|---|
| 1001 | -nfp | --nfp | --nf) |
|---|
| 1002 | # Obsolete; use --without-fp. |
|---|
| 1003 | with_fp=no ;; |
|---|
| 1004 | |
|---|
| 1005 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|---|
| 1006 | | --no-cr | --no-c | -n) |
|---|
| 1007 | no_create=yes ;; |
|---|
| 1008 | |
|---|
| 1009 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|---|
| 1010 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|---|
| 1011 | no_recursion=yes ;; |
|---|
| 1012 | |
|---|
| 1013 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|---|
| 1014 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|---|
| 1015 | | --oldin | --oldi | --old | --ol | --o) |
|---|
| 1016 | ac_prev=oldincludedir ;; |
|---|
| 1017 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|---|
| 1018 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|---|
| 1019 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|---|
| 1020 | oldincludedir=$ac_optarg ;; |
|---|
| 1021 | |
|---|
| 1022 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|---|
| 1023 | ac_prev=prefix ;; |
|---|
| 1024 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|---|
| 1025 | prefix=$ac_optarg ;; |
|---|
| 1026 | |
|---|
| 1027 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|---|
| 1028 | | --program-pre | --program-pr | --program-p) |
|---|
| 1029 | ac_prev=program_prefix ;; |
|---|
| 1030 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|---|
| 1031 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|---|
| 1032 | program_prefix=$ac_optarg ;; |
|---|
| 1033 | |
|---|
| 1034 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|---|
| 1035 | | --program-suf | --program-su | --program-s) |
|---|
| 1036 | ac_prev=program_suffix ;; |
|---|
| 1037 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|---|
| 1038 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|---|
| 1039 | program_suffix=$ac_optarg ;; |
|---|
| 1040 | |
|---|
| 1041 | -program-transform-name | --program-transform-name \ |
|---|
| 1042 | | --program-transform-nam | --program-transform-na \ |
|---|
| 1043 | | --program-transform-n | --program-transform- \ |
|---|
| 1044 | | --program-transform | --program-transfor \ |
|---|
| 1045 | | --program-transfo | --program-transf \ |
|---|
| 1046 | | --program-trans | --program-tran \ |
|---|
| 1047 | | --progr-tra | --program-tr | --program-t) |
|---|
| 1048 | ac_prev=program_transform_name ;; |
|---|
| 1049 | -program-transform-name=* | --program-transform-name=* \ |
|---|
| 1050 | | --program-transform-nam=* | --program-transform-na=* \ |
|---|
| 1051 | | --program-transform-n=* | --program-transform-=* \ |
|---|
| 1052 | | --program-transform=* | --program-transfor=* \ |
|---|
| 1053 | | --program-transfo=* | --program-transf=* \ |
|---|
| 1054 | | --program-trans=* | --program-tran=* \ |
|---|
| 1055 | | --progr-tra=* | --program-tr=* | --program-t=*) |
|---|
| 1056 | program_transform_name=$ac_optarg ;; |
|---|
| 1057 | |
|---|
| 1058 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|---|
| 1059 | ac_prev=pdfdir ;; |
|---|
| 1060 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|---|
| 1061 | pdfdir=$ac_optarg ;; |
|---|
| 1062 | |
|---|
| 1063 | -psdir | --psdir | --psdi | --psd | --ps) |
|---|
| 1064 | ac_prev=psdir ;; |
|---|
| 1065 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|---|
| 1066 | psdir=$ac_optarg ;; |
|---|
| 1067 | |
|---|
| 1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 1069 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 1070 | silent=yes ;; |
|---|
| 1071 | |
|---|
| 1072 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|---|
| 1073 | ac_prev=sbindir ;; |
|---|
| 1074 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|---|
| 1075 | | --sbi=* | --sb=*) |
|---|
| 1076 | sbindir=$ac_optarg ;; |
|---|
| 1077 | |
|---|
| 1078 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|---|
| 1079 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|---|
| 1080 | | --sharedst | --shareds | --shared | --share | --shar \ |
|---|
| 1081 | | --sha | --sh) |
|---|
| 1082 | ac_prev=sharedstatedir ;; |
|---|
| 1083 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|---|
| 1084 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|---|
| 1085 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|---|
| 1086 | | --sha=* | --sh=*) |
|---|
| 1087 | sharedstatedir=$ac_optarg ;; |
|---|
| 1088 | |
|---|
| 1089 | -site | --site | --sit) |
|---|
| 1090 | ac_prev=site ;; |
|---|
| 1091 | -site=* | --site=* | --sit=*) |
|---|
| 1092 | site=$ac_optarg ;; |
|---|
| 1093 | |
|---|
| 1094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|---|
| 1095 | ac_prev=srcdir ;; |
|---|
| 1096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|---|
| 1097 | srcdir=$ac_optarg ;; |
|---|
| 1098 | |
|---|
| 1099 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|---|
| 1100 | | --syscon | --sysco | --sysc | --sys | --sy) |
|---|
| 1101 | ac_prev=sysconfdir ;; |
|---|
| 1102 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|---|
| 1103 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|---|
| 1104 | sysconfdir=$ac_optarg ;; |
|---|
| 1105 | |
|---|
| 1106 | -target | --target | --targe | --targ | --tar | --ta | --t) |
|---|
| 1107 | ac_prev=target_alias ;; |
|---|
| 1108 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|---|
| 1109 | target_alias=$ac_optarg ;; |
|---|
| 1110 | |
|---|
| 1111 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|---|
| 1112 | verbose=yes ;; |
|---|
| 1113 | |
|---|
| 1114 | -version | --version | --versio | --versi | --vers | -V) |
|---|
| 1115 | ac_init_version=: ;; |
|---|
| 1116 | |
|---|
| 1117 | -with-* | --with-*) |
|---|
| 1118 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|---|
| 1119 | # Reject names that are not valid shell variable names. |
|---|
| 1120 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 1121 | as_fn_error $? "invalid package name: $ac_useropt" |
|---|
| 1122 | ac_useropt_orig=$ac_useropt |
|---|
| 1123 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 1124 | case $ac_user_opts in |
|---|
| 1125 | *" |
|---|
| 1126 | "with_$ac_useropt" |
|---|
| 1127 | "*) ;; |
|---|
| 1128 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|---|
| 1129 | ac_unrecognized_sep=', ';; |
|---|
| 1130 | esac |
|---|
| 1131 | eval with_$ac_useropt=\$ac_optarg ;; |
|---|
| 1132 | |
|---|
| 1133 | -without-* | --without-*) |
|---|
| 1134 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|---|
| 1135 | # Reject names that are not valid shell variable names. |
|---|
| 1136 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 1137 | as_fn_error $? "invalid package name: $ac_useropt" |
|---|
| 1138 | ac_useropt_orig=$ac_useropt |
|---|
| 1139 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 1140 | case $ac_user_opts in |
|---|
| 1141 | *" |
|---|
| 1142 | "with_$ac_useropt" |
|---|
| 1143 | "*) ;; |
|---|
| 1144 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|---|
| 1145 | ac_unrecognized_sep=', ';; |
|---|
| 1146 | esac |
|---|
| 1147 | eval with_$ac_useropt=no ;; |
|---|
| 1148 | |
|---|
| 1149 | --x) |
|---|
| 1150 | # Obsolete; use --with-x. |
|---|
| 1151 | with_x=yes ;; |
|---|
| 1152 | |
|---|
| 1153 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|---|
| 1154 | | --x-incl | --x-inc | --x-in | --x-i) |
|---|
| 1155 | ac_prev=x_includes ;; |
|---|
| 1156 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|---|
| 1157 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|---|
| 1158 | x_includes=$ac_optarg ;; |
|---|
| 1159 | |
|---|
| 1160 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|---|
| 1161 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|---|
| 1162 | ac_prev=x_libraries ;; |
|---|
| 1163 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|---|
| 1164 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|---|
| 1165 | x_libraries=$ac_optarg ;; |
|---|
| 1166 | |
|---|
| 1167 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
|---|
| 1168 | Try \`$0 --help' for more information" |
|---|
| 1169 | ;; |
|---|
| 1170 | |
|---|
| 1171 | *=*) |
|---|
| 1172 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|---|
| 1173 | # Reject names that are not valid shell variable names. |
|---|
| 1174 | case $ac_envvar in #( |
|---|
| 1175 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
|---|
| 1176 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|---|
| 1177 | esac |
|---|
| 1178 | eval $ac_envvar=\$ac_optarg |
|---|
| 1179 | export $ac_envvar ;; |
|---|
| 1180 | |
|---|
| 1181 | *) |
|---|
| 1182 | # FIXME: should be removed in autoconf 3.0. |
|---|
| 1183 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|---|
| 1184 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|---|
| 1185 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|---|
| 1186 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|---|
| 1187 | ;; |
|---|
| 1188 | |
|---|
| 1189 | esac |
|---|
| 1190 | done |
|---|
| 1191 | |
|---|
| 1192 | if test -n "$ac_prev"; then |
|---|
| 1193 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|---|
| 1194 | as_fn_error $? "missing argument to $ac_option" |
|---|
| 1195 | fi |
|---|
| 1196 | |
|---|
| 1197 | if test -n "$ac_unrecognized_opts"; then |
|---|
| 1198 | case $enable_option_checking in |
|---|
| 1199 | no) ;; |
|---|
| 1200 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|---|
| 1201 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|---|
| 1202 | esac |
|---|
| 1203 | fi |
|---|
| 1204 | |
|---|
| 1205 | # Check all directory arguments for consistency. |
|---|
| 1206 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|---|
| 1207 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
|---|
| 1208 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|---|
| 1209 | libdir localedir mandir |
|---|
| 1210 | do |
|---|
| 1211 | eval ac_val=\$$ac_var |
|---|
| 1212 | # Remove trailing slashes. |
|---|
| 1213 | case $ac_val in |
|---|
| 1214 | */ ) |
|---|
| 1215 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|---|
| 1216 | eval $ac_var=\$ac_val;; |
|---|
| 1217 | esac |
|---|
| 1218 | # Be sure to have absolute directory names. |
|---|
| 1219 | case $ac_val in |
|---|
| 1220 | [\\/$]* | ?:[\\/]* ) continue;; |
|---|
| 1221 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|---|
| 1222 | esac |
|---|
| 1223 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|---|
| 1224 | done |
|---|
| 1225 | |
|---|
| 1226 | # There might be people who depend on the old broken behavior: `$host' |
|---|
| 1227 | # used to hold the argument of --host etc. |
|---|
| 1228 | # FIXME: To remove some day. |
|---|
| 1229 | build=$build_alias |
|---|
| 1230 | host=$host_alias |
|---|
| 1231 | target=$target_alias |
|---|
| 1232 | |
|---|
| 1233 | # FIXME: To remove some day. |
|---|
| 1234 | if test "x$host_alias" != x; then |
|---|
| 1235 | if test "x$build_alias" = x; then |
|---|
| 1236 | cross_compiling=maybe |
|---|
| 1237 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
|---|
| 1238 | If a cross compiler is detected then cross compile mode will be used" >&2 |
|---|
| 1239 | elif test "x$build_alias" != "x$host_alias"; then |
|---|
| 1240 | cross_compiling=yes |
|---|
| 1241 | fi |
|---|
| 1242 | fi |
|---|
| 1243 | |
|---|
| 1244 | ac_tool_prefix= |
|---|
| 1245 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|---|
| 1246 | |
|---|
| 1247 | test "$silent" = yes && exec 6>/dev/null |
|---|
| 1248 | |
|---|
| 1249 | |
|---|
| 1250 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
|---|
| 1251 | ac_ls_di=`ls -di .` && |
|---|
| 1252 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|---|
| 1253 | as_fn_error $? "working directory cannot be determined" |
|---|
| 1254 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|---|
| 1255 | as_fn_error $? "pwd does not report name of working directory" |
|---|
| 1256 | |
|---|
| 1257 | |
|---|
| 1258 | # Find the source files, if location was not specified. |
|---|
| 1259 | if test -z "$srcdir"; then |
|---|
| 1260 | ac_srcdir_defaulted=yes |
|---|
| 1261 | # Try the directory containing this script, then the parent directory. |
|---|
| 1262 | ac_confdir=`$as_dirname -- "$as_myself" || |
|---|
| 1263 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 1264 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
|---|
| 1265 | X"$as_myself" : 'X\(//\)$' \| \ |
|---|
| 1266 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 1267 | $as_echo X"$as_myself" | |
|---|
| 1268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 1269 | s//\1/ |
|---|
| 1270 | q |
|---|
| 1271 | } |
|---|
| 1272 | /^X\(\/\/\)[^/].*/{ |
|---|
| 1273 | s//\1/ |
|---|
| 1274 | q |
|---|
| 1275 | } |
|---|
| 1276 | /^X\(\/\/\)$/{ |
|---|
| 1277 | s//\1/ |
|---|
| 1278 | q |
|---|
| 1279 | } |
|---|
| 1280 | /^X\(\/\).*/{ |
|---|
| 1281 | s//\1/ |
|---|
| 1282 | q |
|---|
| 1283 | } |
|---|
| 1284 | s/.*/./; q'` |
|---|
| 1285 | srcdir=$ac_confdir |
|---|
| 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
|---|
| 1287 | srcdir=.. |
|---|
| 1288 | fi |
|---|
| 1289 | else |
|---|
| 1290 | ac_srcdir_defaulted=no |
|---|
| 1291 | fi |
|---|
| 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
|---|
| 1293 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|---|
| 1294 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|---|
| 1295 | fi |
|---|
| 1296 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|---|
| 1297 | ac_abs_confdir=`( |
|---|
| 1298 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|---|
| 1299 | pwd)` |
|---|
| 1300 | # When building in place, set srcdir=. |
|---|
| 1301 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
|---|
| 1302 | srcdir=. |
|---|
| 1303 | fi |
|---|
| 1304 | # Remove unnecessary trailing slashes from srcdir. |
|---|
| 1305 | # Double slashes in file names in object file debugging info |
|---|
| 1306 | # mess up M-x gdb in Emacs. |
|---|
| 1307 | case $srcdir in |
|---|
| 1308 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|---|
| 1309 | esac |
|---|
| 1310 | for ac_var in $ac_precious_vars; do |
|---|
| 1311 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|---|
| 1312 | eval ac_env_${ac_var}_value=\$${ac_var} |
|---|
| 1313 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|---|
| 1314 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|---|
| 1315 | done |
|---|
| 1316 | |
|---|
| 1317 | # |
|---|
| 1318 | # Report the --help message. |
|---|
| 1319 | # |
|---|
| 1320 | if test "$ac_init_help" = "long"; then |
|---|
| 1321 | # Omit some internal or obsolete options to make the list less imposing. |
|---|
| 1322 | # This message is too long to be a string in the A/UX 3.1 sh. |
|---|
| 1323 | cat <<_ACEOF |
|---|
| 1324 | \`configure' configures this package to adapt to many kinds of systems. |
|---|
| 1325 | |
|---|
| 1326 | Usage: $0 [OPTION]... [VAR=VALUE]... |
|---|
| 1327 | |
|---|
| 1328 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|---|
| 1329 | VAR=VALUE. See below for descriptions of some of the useful variables. |
|---|
| 1330 | |
|---|
| 1331 | Defaults for the options are specified in brackets. |
|---|
| 1332 | |
|---|
| 1333 | Configuration: |
|---|
| 1334 | -h, --help display this help and exit |
|---|
| 1335 | --help=short display options specific to this package |
|---|
| 1336 | --help=recursive display the short help of all the included packages |
|---|
| 1337 | -V, --version display version information and exit |
|---|
| 1338 | -q, --quiet, --silent do not print \`checking ...' messages |
|---|
| 1339 | --cache-file=FILE cache test results in FILE [disabled] |
|---|
| 1340 | -C, --config-cache alias for \`--cache-file=config.cache' |
|---|
| 1341 | -n, --no-create do not create output files |
|---|
| 1342 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|---|
| 1343 | |
|---|
| 1344 | Installation directories: |
|---|
| 1345 | --prefix=PREFIX install architecture-independent files in PREFIX |
|---|
| 1346 | [$ac_default_prefix] |
|---|
| 1347 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|---|
| 1348 | [PREFIX] |
|---|
| 1349 | |
|---|
| 1350 | By default, \`make install' will install all the files in |
|---|
| 1351 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|---|
| 1352 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|---|
| 1353 | for instance \`--prefix=\$HOME'. |
|---|
| 1354 | |
|---|
| 1355 | For better control, use the options below. |
|---|
| 1356 | |
|---|
| 1357 | Fine tuning of the installation directories: |
|---|
| 1358 | --bindir=DIR user executables [EPREFIX/bin] |
|---|
| 1359 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
|---|
| 1360 | --libexecdir=DIR program executables [EPREFIX/libexec] |
|---|
| 1361 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|---|
| 1362 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|---|
| 1363 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|---|
| 1364 | --libdir=DIR object code libraries [EPREFIX/lib] |
|---|
| 1365 | --includedir=DIR C header files [PREFIX/include] |
|---|
| 1366 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|---|
| 1367 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|---|
| 1368 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|---|
| 1369 | --infodir=DIR info documentation [DATAROOTDIR/info] |
|---|
| 1370 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|---|
| 1371 | --mandir=DIR man documentation [DATAROOTDIR/man] |
|---|
| 1372 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|---|
| 1373 | --htmldir=DIR html documentation [DOCDIR] |
|---|
| 1374 | --dvidir=DIR dvi documentation [DOCDIR] |
|---|
| 1375 | --pdfdir=DIR pdf documentation [DOCDIR] |
|---|
| 1376 | --psdir=DIR ps documentation [DOCDIR] |
|---|
| 1377 | _ACEOF |
|---|
| 1378 | |
|---|
| 1379 | cat <<\_ACEOF |
|---|
| 1380 | |
|---|
| 1381 | System types: |
|---|
| 1382 | --build=BUILD configure for building on BUILD [guessed] |
|---|
| 1383 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|---|
| 1384 | --target=TARGET configure for building compilers for TARGET [HOST] |
|---|
| 1385 | _ACEOF |
|---|
| 1386 | fi |
|---|
| 1387 | |
|---|
| 1388 | if test -n "$ac_init_help"; then |
|---|
| 1389 | |
|---|
| 1390 | cat <<\_ACEOF |
|---|
| 1391 | |
|---|
| 1392 | Optional Features: |
|---|
| 1393 | --disable-option-checking ignore unrecognized --enable/--with options |
|---|
| 1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|---|
| 1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|---|
| 1396 | --enable-debug build with debugging enabled |
|---|
| 1397 | --enable-ipv6 build with ipv6 enabled |
|---|
| 1398 | --disable-aquatcl build with aquatcl enabled |
|---|
| 1399 | --disable-aquatk build with aquatk enabled |
|---|
| 1400 | --enable-zvfs Enable or disable attachment of tcl to binary |
|---|
| 1401 | --enable-dvdecode Enable or disable dv decoding (default: disabled) |
|---|
| 1402 | --enable-xvideo Enable or disable Xvideo rendering (default: disabled) |
|---|
| 1403 | --enable-XvGrabber Enable or disable old XvGrabber (default: disabled) |
|---|
| 1404 | --enable-Linux1394Grabber Enable or disable Linux1394XvGrabber (default: disabled) |
|---|
| 1405 | --enable-ddraw Enable or disable DirectDraw |
|---|
| 1406 | --enable-gpl Enable or disable use of gpl functionality - H264 MPEG4 Swscale |
|---|
| 1407 | --disable-ffmpeg-co Enable or disable ffmpeg download |
|---|
| 1408 | --disable-x264-co Enable or disable x264 download |
|---|
| 1409 | --disable-cpudetect Enable or disable runtime cpu detection |
|---|
| 1410 | |
|---|
| 1411 | Optional Packages: |
|---|
| 1412 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|---|
| 1413 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|---|
| 1414 | --with-fore=path specify a pathname for fore atm |
|---|
| 1415 | --with-tcl directory containing tcl configuration |
|---|
| 1416 | (tclConfig.sh) |
|---|
| 1417 | --with-zip=zip specify the zip program to use |
|---|
| 1418 | --with-tk directory containing tk configuration (tkConfig.sh) |
|---|
| 1419 | --with-rc=rc specify the rc program to use |
|---|
| 1420 | --with-aix-shm=path specify a pathname for the AIX shm X extension library file |
|---|
| 1421 | --with-qcam=dir specify directory with qcam.h for Connectix QuickCam device driver |
|---|
| 1422 | --with-decklink=dir specify directory containing DeckLinkAPIDispatch.cpp |
|---|
| 1423 | --with-ffmpegver=ffmpeg-version specify the version of ffmpeg to download and build |
|---|
| 1424 | --with-x264ver=x264ver-version specify the version of x264 to download and build |
|---|
| 1425 | --with-ffmpeginc=dir specify the prefix directory of ffmpeg header |
|---|
| 1426 | --with-ffmpeglib=dir specify the directory of ffmpeg library |
|---|
| 1427 | --with-x264inc=dir specify the directory of x264 header |
|---|
| 1428 | --with-x264lib=dir specify the directory of x264 library |
|---|
| 1429 | |
|---|
| 1430 | Some influential environment variables: |
|---|
| 1431 | CC C compiler command |
|---|
| 1432 | CFLAGS C compiler flags |
|---|
| 1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|---|
| 1434 | nonstandard directory <lib dir> |
|---|
| 1435 | LIBS libraries to pass to the linker, e.g. -l<library> |
|---|
| 1436 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|---|
| 1437 | you have headers in a nonstandard directory <include dir> |
|---|
| 1438 | CXX C++ compiler command |
|---|
| 1439 | CXXFLAGS C++ compiler flags |
|---|
| 1440 | CPP C preprocessor |
|---|
| 1441 | |
|---|
| 1442 | Use these variables to override the choices made by `configure' or to help |
|---|
| 1443 | it to find libraries and programs with nonstandard names/locations. |
|---|
| 1444 | |
|---|
| 1445 | Report bugs to the package provider. |
|---|
| 1446 | _ACEOF |
|---|
| 1447 | ac_status=$? |
|---|
| 1448 | fi |
|---|
| 1449 | |
|---|
| 1450 | if test "$ac_init_help" = "recursive"; then |
|---|
| 1451 | # If there are subdirs, report their specific --help. |
|---|
| 1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|---|
| 1453 | test -d "$ac_dir" || |
|---|
| 1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|---|
| 1455 | continue |
|---|
| 1456 | ac_builddir=. |
|---|
| 1457 | |
|---|
| 1458 | case "$ac_dir" in |
|---|
| 1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 1460 | *) |
|---|
| 1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|---|
| 1462 | # A ".." for each directory in $ac_dir_suffix. |
|---|
| 1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|---|
| 1464 | case $ac_top_builddir_sub in |
|---|
| 1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 1466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|---|
| 1467 | esac ;; |
|---|
| 1468 | esac |
|---|
| 1469 | ac_abs_top_builddir=$ac_pwd |
|---|
| 1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|---|
| 1471 | # for backward compatibility: |
|---|
| 1472 | ac_top_builddir=$ac_top_build_prefix |
|---|
| 1473 | |
|---|
| 1474 | case $srcdir in |
|---|
| 1475 | .) # We are building in place. |
|---|
| 1476 | ac_srcdir=. |
|---|
| 1477 | ac_top_srcdir=$ac_top_builddir_sub |
|---|
| 1478 | ac_abs_top_srcdir=$ac_pwd ;; |
|---|
| 1479 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|---|
| 1480 | ac_srcdir=$srcdir$ac_dir_suffix; |
|---|
| 1481 | ac_top_srcdir=$srcdir |
|---|
| 1482 | ac_abs_top_srcdir=$srcdir ;; |
|---|
| 1483 | *) # Relative name. |
|---|
| 1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|---|
| 1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|---|
| 1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|---|
| 1487 | esac |
|---|
| 1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|---|
| 1489 | |
|---|
| 1490 | cd "$ac_dir" || { ac_status=$?; continue; } |
|---|
| 1491 | # Check for guested configure. |
|---|
| 1492 | if test -f "$ac_srcdir/configure.gnu"; then |
|---|
| 1493 | echo && |
|---|
| 1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|---|
| 1495 | elif test -f "$ac_srcdir/configure"; then |
|---|
| 1496 | echo && |
|---|
| 1497 | $SHELL "$ac_srcdir/configure" --help=recursive |
|---|
| 1498 | else |
|---|
| 1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|---|
| 1500 | fi || ac_status=$? |
|---|
| 1501 | cd "$ac_pwd" || { ac_status=$?; break; } |
|---|
| 1502 | done |
|---|
| 1503 | fi |
|---|
| 1504 | |
|---|
| 1505 | test -n "$ac_init_help" && exit $ac_status |
|---|
| 1506 | if $ac_init_version; then |
|---|
| 1507 | cat <<\_ACEOF |
|---|
| 1508 | configure |
|---|
| 1509 | generated by GNU Autoconf 2.68 |
|---|
| 1510 | |
|---|
| 1511 | Copyright (C) 2010 Free Software Foundation, Inc. |
|---|
| 1512 | This configure script is free software; the Free Software Foundation |
|---|
| 1513 | gives unlimited permission to copy, distribute and modify it. |
|---|
| 1514 | _ACEOF |
|---|
| 1515 | exit |
|---|
| 1516 | fi |
|---|
| 1517 | |
|---|
| 1518 | ## ------------------------ ## |
|---|
| 1519 | ## Autoconf initialization. ## |
|---|
| 1520 | ## ------------------------ ## |
|---|
| 1521 | |
|---|
| 1522 | # ac_fn_c_try_compile LINENO |
|---|
| 1523 | # -------------------------- |
|---|
| 1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1525 | ac_fn_c_try_compile () |
|---|
| 1526 | { |
|---|
| 1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1528 | rm -f conftest.$ac_objext |
|---|
| 1529 | if { { ac_try="$ac_compile" |
|---|
| 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_compile") 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; } && { |
|---|
| 1545 | test -z "$ac_c_werror_flag" || |
|---|
| 1546 | test ! -s conftest.err |
|---|
| 1547 | } && test -s conftest.$ac_objext; 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_compile |
|---|
| 1559 | |
|---|
| 1560 | # ac_fn_cxx_try_compile LINENO |
|---|
| 1561 | # ---------------------------- |
|---|
| 1562 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1563 | ac_fn_cxx_try_compile () |
|---|
| 1564 | { |
|---|
| 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1566 | rm -f conftest.$ac_objext |
|---|
| 1567 | if { { ac_try="$ac_compile" |
|---|
| 1568 | case "(($ac_try" in |
|---|
| 1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1570 | *) ac_try_echo=$ac_try;; |
|---|
| 1571 | esac |
|---|
| 1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1573 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1574 | (eval "$ac_compile") 2>conftest.err |
|---|
| 1575 | ac_status=$? |
|---|
| 1576 | if test -s conftest.err; then |
|---|
| 1577 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1578 | cat conftest.er1 >&5 |
|---|
| 1579 | mv -f conftest.er1 conftest.err |
|---|
| 1580 | fi |
|---|
| 1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1582 | test $ac_status = 0; } && { |
|---|
| 1583 | test -z "$ac_cxx_werror_flag" || |
|---|
| 1584 | test ! -s conftest.err |
|---|
| 1585 | } && test -s conftest.$ac_objext; then : |
|---|
| 1586 | ac_retval=0 |
|---|
| 1587 | else |
|---|
| 1588 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1589 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1590 | |
|---|
| 1591 | ac_retval=1 |
|---|
| 1592 | fi |
|---|
| 1593 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1594 | as_fn_set_status $ac_retval |
|---|
| 1595 | |
|---|
| 1596 | } # ac_fn_cxx_try_compile |
|---|
| 1597 | |
|---|
| 1598 | # ac_fn_c_try_cpp LINENO |
|---|
| 1599 | # ---------------------- |
|---|
| 1600 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1601 | ac_fn_c_try_cpp () |
|---|
| 1602 | { |
|---|
| 1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1604 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|---|
| 1605 | case "(($ac_try" in |
|---|
| 1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1607 | *) ac_try_echo=$ac_try;; |
|---|
| 1608 | esac |
|---|
| 1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1610 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|---|
| 1612 | ac_status=$? |
|---|
| 1613 | if test -s conftest.err; then |
|---|
| 1614 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1615 | cat conftest.er1 >&5 |
|---|
| 1616 | mv -f conftest.er1 conftest.err |
|---|
| 1617 | fi |
|---|
| 1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1619 | test $ac_status = 0; } > conftest.i && { |
|---|
| 1620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|---|
| 1621 | test ! -s conftest.err |
|---|
| 1622 | }; then : |
|---|
| 1623 | ac_retval=0 |
|---|
| 1624 | else |
|---|
| 1625 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1626 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1627 | |
|---|
| 1628 | ac_retval=1 |
|---|
| 1629 | fi |
|---|
| 1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1631 | as_fn_set_status $ac_retval |
|---|
| 1632 | |
|---|
| 1633 | } # ac_fn_c_try_cpp |
|---|
| 1634 | |
|---|
| 1635 | # ac_fn_c_try_run LINENO |
|---|
| 1636 | # ---------------------- |
|---|
| 1637 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|---|
| 1638 | # that executables *can* be run. |
|---|
| 1639 | ac_fn_c_try_run () |
|---|
| 1640 | { |
|---|
| 1641 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1642 | if { { ac_try="$ac_link" |
|---|
| 1643 | case "(($ac_try" in |
|---|
| 1644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1645 | *) ac_try_echo=$ac_try;; |
|---|
| 1646 | esac |
|---|
| 1647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1648 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1649 | (eval "$ac_link") 2>&5 |
|---|
| 1650 | ac_status=$? |
|---|
| 1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1652 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|---|
| 1653 | { { case "(($ac_try" in |
|---|
| 1654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1655 | *) ac_try_echo=$ac_try;; |
|---|
| 1656 | esac |
|---|
| 1657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1658 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1659 | (eval "$ac_try") 2>&5 |
|---|
| 1660 | ac_status=$? |
|---|
| 1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1662 | test $ac_status = 0; }; }; then : |
|---|
| 1663 | ac_retval=0 |
|---|
| 1664 | else |
|---|
| 1665 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 1666 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1667 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1668 | |
|---|
| 1669 | ac_retval=$ac_status |
|---|
| 1670 | fi |
|---|
| 1671 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|---|
| 1672 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1673 | as_fn_set_status $ac_retval |
|---|
| 1674 | |
|---|
| 1675 | } # ac_fn_c_try_run |
|---|
| 1676 | |
|---|
| 1677 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|---|
| 1678 | # ------------------------------------------------------- |
|---|
| 1679 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|---|
| 1680 | # the include files in INCLUDES and setting the cache variable VAR |
|---|
| 1681 | # accordingly. |
|---|
| 1682 | ac_fn_c_check_header_mongrel () |
|---|
| 1683 | { |
|---|
| 1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1685 | if eval \${$3+:} false; then : |
|---|
| 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1687 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1688 | if eval \${$3+:} false; then : |
|---|
| 1689 | $as_echo_n "(cached) " >&6 |
|---|
| 1690 | fi |
|---|
| 1691 | eval ac_res=\$$3 |
|---|
| 1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1693 | $as_echo "$ac_res" >&6; } |
|---|
| 1694 | else |
|---|
| 1695 | # Is the header compilable? |
|---|
| 1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|---|
| 1697 | $as_echo_n "checking $2 usability... " >&6; } |
|---|
| 1698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1699 | /* end confdefs.h. */ |
|---|
| 1700 | $4 |
|---|
| 1701 | #include <$2> |
|---|
| 1702 | _ACEOF |
|---|
| 1703 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1704 | ac_header_compiler=yes |
|---|
| 1705 | else |
|---|
| 1706 | ac_header_compiler=no |
|---|
| 1707 | fi |
|---|
| 1708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|---|
| 1710 | $as_echo "$ac_header_compiler" >&6; } |
|---|
| 1711 | |
|---|
| 1712 | # Is the header present? |
|---|
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|---|
| 1714 | $as_echo_n "checking $2 presence... " >&6; } |
|---|
| 1715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1716 | /* end confdefs.h. */ |
|---|
| 1717 | #include <$2> |
|---|
| 1718 | _ACEOF |
|---|
| 1719 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 1720 | ac_header_preproc=yes |
|---|
| 1721 | else |
|---|
| 1722 | ac_header_preproc=no |
|---|
| 1723 | fi |
|---|
| 1724 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|---|
| 1726 | $as_echo "$ac_header_preproc" >&6; } |
|---|
| 1727 | |
|---|
| 1728 | # So? What about this header? |
|---|
| 1729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|---|
| 1730 | yes:no: ) |
|---|
| 1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| 1732 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| 1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|---|
| 1734 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|---|
| 1735 | ;; |
|---|
| 1736 | no:yes:* ) |
|---|
| 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|---|
| 1738 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|---|
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|---|
| 1740 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|---|
| 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|---|
| 1742 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|---|
| 1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| 1744 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| 1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|---|
| 1746 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|---|
| 1747 | ;; |
|---|
| 1748 | esac |
|---|
| 1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1750 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1751 | if eval \${$3+:} false; then : |
|---|
| 1752 | $as_echo_n "(cached) " >&6 |
|---|
| 1753 | else |
|---|
| 1754 | eval "$3=\$ac_header_compiler" |
|---|
| 1755 | fi |
|---|
| 1756 | eval ac_res=\$$3 |
|---|
| 1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1758 | $as_echo "$ac_res" >&6; } |
|---|
| 1759 | fi |
|---|
| 1760 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1761 | |
|---|
| 1762 | } # ac_fn_c_check_header_mongrel |
|---|
| 1763 | |
|---|
| 1764 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|---|
| 1765 | # ------------------------------------------------------- |
|---|
| 1766 | # Tests whether HEADER exists and can be compiled using the include files in |
|---|
| 1767 | # INCLUDES, setting the cache variable VAR accordingly. |
|---|
| 1768 | ac_fn_c_check_header_compile () |
|---|
| 1769 | { |
|---|
| 1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1772 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1773 | if eval \${$3+:} false; then : |
|---|
| 1774 | $as_echo_n "(cached) " >&6 |
|---|
| 1775 | else |
|---|
| 1776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1777 | /* end confdefs.h. */ |
|---|
| 1778 | $4 |
|---|
| 1779 | #include <$2> |
|---|
| 1780 | _ACEOF |
|---|
| 1781 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1782 | eval "$3=yes" |
|---|
| 1783 | else |
|---|
| 1784 | eval "$3=no" |
|---|
| 1785 | fi |
|---|
| 1786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1787 | fi |
|---|
| 1788 | eval ac_res=\$$3 |
|---|
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1790 | $as_echo "$ac_res" >&6; } |
|---|
| 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1792 | |
|---|
| 1793 | } # ac_fn_c_check_header_compile |
|---|
| 1794 | |
|---|
| 1795 | # ac_fn_c_try_link LINENO |
|---|
| 1796 | # ----------------------- |
|---|
| 1797 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1798 | ac_fn_c_try_link () |
|---|
| 1799 | { |
|---|
| 1800 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1801 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 1802 | if { { ac_try="$ac_link" |
|---|
| 1803 | case "(($ac_try" in |
|---|
| 1804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1805 | *) ac_try_echo=$ac_try;; |
|---|
| 1806 | esac |
|---|
| 1807 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1808 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1809 | (eval "$ac_link") 2>conftest.err |
|---|
| 1810 | ac_status=$? |
|---|
| 1811 | if test -s conftest.err; then |
|---|
| 1812 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1813 | cat conftest.er1 >&5 |
|---|
| 1814 | mv -f conftest.er1 conftest.err |
|---|
| 1815 | fi |
|---|
| 1816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1817 | test $ac_status = 0; } && { |
|---|
| 1818 | test -z "$ac_c_werror_flag" || |
|---|
| 1819 | test ! -s conftest.err |
|---|
| 1820 | } && test -s conftest$ac_exeext && { |
|---|
| 1821 | test "$cross_compiling" = yes || |
|---|
| 1822 | $as_test_x conftest$ac_exeext |
|---|
| 1823 | }; then : |
|---|
| 1824 | ac_retval=0 |
|---|
| 1825 | else |
|---|
| 1826 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1827 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1828 | |
|---|
| 1829 | ac_retval=1 |
|---|
| 1830 | fi |
|---|
| 1831 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|---|
| 1832 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|---|
| 1833 | # interfere with the next link command; also delete a directory that is |
|---|
| 1834 | # left behind by Apple's compiler. We do this before executing the actions. |
|---|
| 1835 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|---|
| 1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1837 | as_fn_set_status $ac_retval |
|---|
| 1838 | |
|---|
| 1839 | } # ac_fn_c_try_link |
|---|
| 1840 | cat >config.log <<_ACEOF |
|---|
| 1841 | This file contains any messages produced by compilers while |
|---|
| 1842 | running configure, to aid debugging if configure makes a mistake. |
|---|
| 1843 | |
|---|
| 1844 | It was created by $as_me, which was |
|---|
| 1845 | generated by GNU Autoconf 2.68. Invocation command line was |
|---|
| 1846 | |
|---|
| 1847 | $ $0 $@ |
|---|
| 1848 | |
|---|
| 1849 | _ACEOF |
|---|
| 1850 | exec 5>>config.log |
|---|
| 1851 | { |
|---|
| 1852 | cat <<_ASUNAME |
|---|
| 1853 | ## --------- ## |
|---|
| 1854 | ## Platform. ## |
|---|
| 1855 | ## --------- ## |
|---|
| 1856 | |
|---|
| 1857 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 1858 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|---|
| 1859 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|---|
| 1860 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|---|
| 1861 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|---|
| 1862 | |
|---|
| 1863 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|---|
| 1864 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|---|
| 1865 | |
|---|
| 1866 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|---|
| 1867 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|---|
| 1868 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|---|
| 1869 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|---|
| 1870 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|---|
| 1871 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|---|
| 1872 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|---|
| 1873 | |
|---|
| 1874 | _ASUNAME |
|---|
| 1875 | |
|---|
| 1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1877 | for as_dir in $PATH |
|---|
| 1878 | do |
|---|
| 1879 | IFS=$as_save_IFS |
|---|
| 1880 | test -z "$as_dir" && as_dir=. |
|---|
| 1881 | $as_echo "PATH: $as_dir" |
|---|
| 1882 | done |
|---|
| 1883 | IFS=$as_save_IFS |
|---|
| 1884 | |
|---|
| 1885 | } >&5 |
|---|
| 1886 | |
|---|
| 1887 | cat >&5 <<_ACEOF |
|---|
| 1888 | |
|---|
| 1889 | |
|---|
| 1890 | ## ----------- ## |
|---|
| 1891 | ## Core tests. ## |
|---|
| 1892 | ## ----------- ## |
|---|
| 1893 | |
|---|
| 1894 | _ACEOF |
|---|
| 1895 | |
|---|
| 1896 | |
|---|
| 1897 | # Keep a trace of the command line. |
|---|
| 1898 | # Strip out --no-create and --no-recursion so they do not pile up. |
|---|
| 1899 | # Strip out --silent because we don't want to record it for future runs. |
|---|
| 1900 | # Also quote any args containing shell meta-characters. |
|---|
| 1901 | # Make two passes to allow for proper duplicate-argument suppression. |
|---|
| 1902 | ac_configure_args= |
|---|
| 1903 | ac_configure_args0= |
|---|
| 1904 | ac_configure_args1= |
|---|
| 1905 | ac_must_keep_next=false |
|---|
| 1906 | for ac_pass in 1 2 |
|---|
| 1907 | do |
|---|
| 1908 | for ac_arg |
|---|
| 1909 | do |
|---|
| 1910 | case $ac_arg in |
|---|
| 1911 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|---|
| 1912 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 1913 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 1914 | continue ;; |
|---|
| 1915 | *\'*) |
|---|
| 1916 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 1917 | esac |
|---|
| 1918 | case $ac_pass in |
|---|
| 1919 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|---|
| 1920 | 2) |
|---|
| 1921 | as_fn_append ac_configure_args1 " '$ac_arg'" |
|---|
| 1922 | if test $ac_must_keep_next = true; then |
|---|
| 1923 | ac_must_keep_next=false # Got value, back to normal. |
|---|
| 1924 | else |
|---|
| 1925 | case $ac_arg in |
|---|
| 1926 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
|---|
| 1927 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|---|
| 1928 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|---|
| 1929 | | -with-* | --with-* | -without-* | --without-* | --x) |
|---|
| 1930 | case "$ac_configure_args0 " in |
|---|
| 1931 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|---|
| 1932 | esac |
|---|
| 1933 | ;; |
|---|
| 1934 | -* ) ac_must_keep_next=true ;; |
|---|
| 1935 | esac |
|---|
| 1936 | fi |
|---|
| 1937 | as_fn_append ac_configure_args " '$ac_arg'" |
|---|
| 1938 | ;; |
|---|
| 1939 | esac |
|---|
| 1940 | done |
|---|
| 1941 | done |
|---|
| 1942 | { ac_configure_args0=; unset ac_configure_args0;} |
|---|
| 1943 | { ac_configure_args1=; unset ac_configure_args1;} |
|---|
| 1944 | |
|---|
| 1945 | # When interrupted or exit'd, cleanup temporary files, and complete |
|---|
| 1946 | # config.log. We remove comments because anyway the quotes in there |
|---|
| 1947 | # would cause problems or look ugly. |
|---|
| 1948 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
|---|
| 1949 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|---|
| 1950 | trap 'exit_status=$? |
|---|
| 1951 | # Save into config.log some information that might help in debugging. |
|---|
| 1952 | { |
|---|
| 1953 | echo |
|---|
| 1954 | |
|---|
| 1955 | $as_echo "## ---------------- ## |
|---|
| 1956 | ## Cache variables. ## |
|---|
| 1957 | ## ---------------- ##" |
|---|
| 1958 | echo |
|---|
| 1959 | # The following way of writing the cache mishandles newlines in values, |
|---|
| 1960 | ( |
|---|
| 1961 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|---|
| 1962 | eval ac_val=\$$ac_var |
|---|
| 1963 | case $ac_val in #( |
|---|
| 1964 | *${as_nl}*) |
|---|
| 1965 | case $ac_var in #( |
|---|
| 1966 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|---|
| 1967 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|---|
| 1968 | esac |
|---|
| 1969 | case $ac_var in #( |
|---|
| 1970 | _ | IFS | as_nl) ;; #( |
|---|
| 1971 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|---|
| 1972 | *) { eval $ac_var=; unset $ac_var;} ;; |
|---|
| 1973 | esac ;; |
|---|
| 1974 | esac |
|---|
| 1975 | done |
|---|
| 1976 | (set) 2>&1 | |
|---|
| 1977 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|---|
| 1978 | *${as_nl}ac_space=\ *) |
|---|
| 1979 | sed -n \ |
|---|
| 1980 | "s/'\''/'\''\\\\'\'''\''/g; |
|---|
| 1981 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|---|
| 1982 | ;; #( |
|---|
| 1983 | *) |
|---|
| 1984 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|---|
| 1985 | ;; |
|---|
| 1986 | esac | |
|---|
| 1987 | sort |
|---|
| 1988 | ) |
|---|
| 1989 | echo |
|---|
| 1990 | |
|---|
| 1991 | $as_echo "## ----------------- ## |
|---|
| 1992 | ## Output variables. ## |
|---|
| 1993 | ## ----------------- ##" |
|---|
| 1994 | echo |
|---|
| 1995 | for ac_var in $ac_subst_vars |
|---|
| 1996 | do |
|---|
| 1997 | eval ac_val=\$$ac_var |
|---|
| 1998 | case $ac_val in |
|---|
| 1999 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|---|
| 2000 | esac |
|---|
| 2001 | $as_echo "$ac_var='\''$ac_val'\''" |
|---|
| 2002 | done | sort |
|---|
| 2003 | echo |
|---|
| 2004 | |
|---|
| 2005 | if test -n "$ac_subst_files"; then |
|---|
| 2006 | $as_echo "## ------------------- ## |
|---|
| 2007 | ## File substitutions. ## |
|---|
| 2008 | ## ------------------- ##" |
|---|
| 2009 | echo |
|---|
| 2010 | for ac_var in $ac_subst_files |
|---|
| 2011 | do |
|---|
| 2012 | eval ac_val=\$$ac_var |
|---|
| 2013 | case $ac_val in |
|---|
| 2014 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|---|
| 2015 | esac |
|---|
| 2016 | $as_echo "$ac_var='\''$ac_val'\''" |
|---|
| 2017 | done | sort |
|---|
| 2018 | echo |
|---|
| 2019 | fi |
|---|
| 2020 | |
|---|
| 2021 | if test -s confdefs.h; then |
|---|
| 2022 | $as_echo "## ----------- ## |
|---|
| 2023 | ## confdefs.h. ## |
|---|
| 2024 | ## ----------- ##" |
|---|
| 2025 | echo |
|---|
| 2026 | cat confdefs.h |
|---|
| 2027 | echo |
|---|
| 2028 | fi |
|---|
| 2029 | test "$ac_signal" != 0 && |
|---|
| 2030 | $as_echo "$as_me: caught signal $ac_signal" |
|---|
| 2031 | $as_echo "$as_me: exit $exit_status" |
|---|
| 2032 | } >&5 |
|---|
| 2033 | rm -f core *.core core.conftest.* && |
|---|
| 2034 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|---|
| 2035 | exit $exit_status |
|---|
| 2036 | ' 0 |
|---|
| 2037 | for ac_signal in 1 2 13 15; do |
|---|
| 2038 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|---|
| 2039 | done |
|---|
| 2040 | ac_signal=0 |
|---|
| 2041 | |
|---|
| 2042 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|---|
| 2043 | rm -f -r conftest* confdefs.h |
|---|
| 2044 | |
|---|
| 2045 | $as_echo "/* confdefs.h */" > confdefs.h |
|---|
| 2046 | |
|---|
| 2047 | # Predefined preprocessor variables. |
|---|
| 2048 | |
|---|
| 2049 | cat >>confdefs.h <<_ACEOF |
|---|
| 2050 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|---|
| 2051 | _ACEOF |
|---|
| 2052 | |
|---|
| 2053 | cat >>confdefs.h <<_ACEOF |
|---|
| 2054 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|---|
| 2055 | _ACEOF |
|---|
| 2056 | |
|---|
| 2057 | cat >>confdefs.h <<_ACEOF |
|---|
| 2058 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|---|
| 2059 | _ACEOF |
|---|
| 2060 | |
|---|
| 2061 | cat >>confdefs.h <<_ACEOF |
|---|
| 2062 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|---|
| 2063 | _ACEOF |
|---|
| 2064 | |
|---|
| 2065 | cat >>confdefs.h <<_ACEOF |
|---|
| 2066 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|---|
| 2067 | _ACEOF |
|---|
| 2068 | |
|---|
| 2069 | cat >>confdefs.h <<_ACEOF |
|---|
| 2070 | #define PACKAGE_URL "$PACKAGE_URL" |
|---|
| 2071 | _ACEOF |
|---|
| 2072 | |
|---|
| 2073 | |
|---|
| 2074 | # Let the site file select an alternate cache file if it wants to. |
|---|
| 2075 | # Prefer an explicitly selected file to automatically selected ones. |
|---|
| 2076 | ac_site_file1=NONE |
|---|
| 2077 | ac_site_file2=NONE |
|---|
| 2078 | if test -n "$CONFIG_SITE"; then |
|---|
| 2079 | # We do not want a PATH search for config.site. |
|---|
| 2080 | case $CONFIG_SITE in #(( |
|---|
| 2081 | -*) ac_site_file1=./$CONFIG_SITE;; |
|---|
| 2082 | */*) ac_site_file1=$CONFIG_SITE;; |
|---|
| 2083 | *) ac_site_file1=./$CONFIG_SITE;; |
|---|
| 2084 | esac |
|---|
| 2085 | elif test "x$prefix" != xNONE; then |
|---|
| 2086 | ac_site_file1=$prefix/share/config.site |
|---|
| 2087 | ac_site_file2=$prefix/etc/config.site |
|---|
| 2088 | else |
|---|
| 2089 | ac_site_file1=$ac_default_prefix/share/config.site |
|---|
| 2090 | ac_site_file2=$ac_default_prefix/etc/config.site |
|---|
| 2091 | fi |
|---|
| 2092 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|---|
| 2093 | do |
|---|
| 2094 | test "x$ac_site_file" = xNONE && continue |
|---|
| 2095 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|---|
| 2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|---|
| 2097 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|---|
| 2098 | sed 's/^/| /' "$ac_site_file" >&5 |
|---|
| 2099 | . "$ac_site_file" \ |
|---|
| 2100 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2101 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2102 | as_fn_error $? "failed to load site script $ac_site_file |
|---|
| 2103 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2104 | fi |
|---|
| 2105 | done |
|---|
| 2106 | |
|---|
| 2107 | if test -r "$cache_file"; then |
|---|
| 2108 | # Some versions of bash will fail to source /dev/null (special files |
|---|
| 2109 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|---|
| 2110 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|---|
| 2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|---|
| 2112 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
|---|
| 2113 | case $cache_file in |
|---|
| 2114 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|---|
| 2115 | *) . "./$cache_file";; |
|---|
| 2116 | esac |
|---|
| 2117 | fi |
|---|
| 2118 | else |
|---|
| 2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|---|
| 2120 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
|---|
| 2121 | >$cache_file |
|---|
| 2122 | fi |
|---|
| 2123 | |
|---|
| 2124 | # Check that the precious variables saved in the cache have kept the same |
|---|
| 2125 | # value. |
|---|
| 2126 | ac_cache_corrupted=false |
|---|
| 2127 | for ac_var in $ac_precious_vars; do |
|---|
| 2128 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|---|
| 2129 | eval ac_new_set=\$ac_env_${ac_var}_set |
|---|
| 2130 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|---|
| 2131 | eval ac_new_val=\$ac_env_${ac_var}_value |
|---|
| 2132 | case $ac_old_set,$ac_new_set in |
|---|
| 2133 | set,) |
|---|
| 2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|---|
| 2135 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|---|
| 2136 | ac_cache_corrupted=: ;; |
|---|
| 2137 | ,set) |
|---|
| 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|---|
| 2139 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|---|
| 2140 | ac_cache_corrupted=: ;; |
|---|
| 2141 | ,);; |
|---|
| 2142 | *) |
|---|
| 2143 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|---|
| 2144 | # differences in whitespace do not lead to failure. |
|---|
| 2145 | ac_old_val_w=`echo x $ac_old_val` |
|---|
| 2146 | ac_new_val_w=`echo x $ac_new_val` |
|---|
| 2147 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|---|
| 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|---|
| 2149 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|---|
| 2150 | ac_cache_corrupted=: |
|---|
| 2151 | else |
|---|
| 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|---|
| 2153 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|---|
| 2154 | eval $ac_var=\$ac_old_val |
|---|
| 2155 | fi |
|---|
| 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|---|
| 2157 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|---|
| 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|---|
| 2159 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|---|
| 2160 | fi;; |
|---|
| 2161 | esac |
|---|
| 2162 | # Pass precious variables to config.status. |
|---|
| 2163 | if test "$ac_new_set" = set; then |
|---|
| 2164 | case $ac_new_val in |
|---|
| 2165 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 2166 | *) ac_arg=$ac_var=$ac_new_val ;; |
|---|
| 2167 | esac |
|---|
| 2168 | case " $ac_configure_args " in |
|---|
| 2169 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|---|
| 2170 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|---|
| 2171 | esac |
|---|
| 2172 | fi |
|---|
| 2173 | done |
|---|
| 2174 | if $ac_cache_corrupted; then |
|---|
| 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|---|
| 2178 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|---|
| 2179 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|---|
| 2180 | fi |
|---|
| 2181 | ## -------------------- ## |
|---|
| 2182 | ## Main body of script. ## |
|---|
| 2183 | ## -------------------- ## |
|---|
| 2184 | |
|---|
| 2185 | ac_ext=c |
|---|
| 2186 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2190 | |
|---|
| 2191 | |
|---|
| 2192 | |
|---|
| 2193 | ac_aux_dir= |
|---|
| 2194 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|---|
| 2195 | if test -f "$ac_dir/install-sh"; then |
|---|
| 2196 | ac_aux_dir=$ac_dir |
|---|
| 2197 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|---|
| 2198 | break |
|---|
| 2199 | elif test -f "$ac_dir/install.sh"; then |
|---|
| 2200 | ac_aux_dir=$ac_dir |
|---|
| 2201 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|---|
| 2202 | break |
|---|
| 2203 | elif test -f "$ac_dir/shtool"; then |
|---|
| 2204 | ac_aux_dir=$ac_dir |
|---|
| 2205 | ac_install_sh="$ac_aux_dir/shtool install -c" |
|---|
| 2206 | break |
|---|
| 2207 | fi |
|---|
| 2208 | done |
|---|
| 2209 | if test -z "$ac_aux_dir"; then |
|---|
| 2210 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
|---|
| 2211 | fi |
|---|
| 2212 | |
|---|
| 2213 | # These three variables are undocumented and unsupported, |
|---|
| 2214 | # and are intended to be withdrawn in a future Autoconf release. |
|---|
| 2215 | # They can cause serious problems if a builder's source tree is in a directory |
|---|
| 2216 | # whose full name contains unusual characters. |
|---|
| 2217 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|---|
| 2218 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|---|
| 2219 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|---|
| 2220 | |
|---|
| 2221 | |
|---|
| 2222 | # Find a good install program. We prefer a C program (faster), |
|---|
| 2223 | # so one script is as good as another. But avoid the broken or |
|---|
| 2224 | # incompatible versions: |
|---|
| 2225 | # SysV /etc/install, /usr/sbin/install |
|---|
| 2226 | # SunOS /usr/etc/install |
|---|
| 2227 | # IRIX /sbin/install |
|---|
| 2228 | # AIX /bin/install |
|---|
| 2229 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
|---|
| 2230 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|---|
| 2231 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|---|
| 2232 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|---|
| 2233 | # OS/2's system install, which has a completely different semantic |
|---|
| 2234 | # ./install, which can be erroneously created by make from ./install.sh. |
|---|
| 2235 | # Reject install programs that cannot install multiple files. |
|---|
| 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
|---|
| 2237 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
|---|
| 2238 | if test -z "$INSTALL"; then |
|---|
| 2239 | if ${ac_cv_path_install+:} false; then : |
|---|
| 2240 | $as_echo_n "(cached) " >&6 |
|---|
| 2241 | else |
|---|
| 2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2243 | for as_dir in $PATH |
|---|
| 2244 | do |
|---|
| 2245 | IFS=$as_save_IFS |
|---|
| 2246 | test -z "$as_dir" && as_dir=. |
|---|
| 2247 | # Account for people who put trailing slashes in PATH elements. |
|---|
| 2248 | case $as_dir/ in #(( |
|---|
| 2249 | ./ | .// | /[cC]/* | \ |
|---|
| 2250 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|---|
| 2251 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
|---|
| 2252 | /usr/ucb/* ) ;; |
|---|
| 2253 | *) |
|---|
| 2254 | # OSF1 and SCO ODT 3.0 have their own names for install. |
|---|
| 2255 | # Don't use installbsd from OSF since it installs stuff as root |
|---|
| 2256 | # by default. |
|---|
| 2257 | for ac_prog in ginstall scoinst install; do |
|---|
| 2258 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2259 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|---|
| 2260 | if test $ac_prog = install && |
|---|
| 2261 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|---|
| 2262 | # AIX install. It has an incompatible calling convention. |
|---|
| 2263 | : |
|---|
| 2264 | elif test $ac_prog = install && |
|---|
| 2265 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|---|
| 2266 | # program-specific install script used by HP pwplus--don't use. |
|---|
| 2267 | : |
|---|
| 2268 | else |
|---|
| 2269 | rm -rf conftest.one conftest.two conftest.dir |
|---|
| 2270 | echo one > conftest.one |
|---|
| 2271 | echo two > conftest.two |
|---|
| 2272 | mkdir conftest.dir |
|---|
| 2273 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|---|
| 2274 | test -s conftest.one && test -s conftest.two && |
|---|
| 2275 | test -s conftest.dir/conftest.one && |
|---|
| 2276 | test -s conftest.dir/conftest.two |
|---|
| 2277 | then |
|---|
| 2278 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|---|
| 2279 | break 3 |
|---|
| 2280 | fi |
|---|
| 2281 | fi |
|---|
| 2282 | fi |
|---|
| 2283 | done |
|---|
| 2284 | done |
|---|
| 2285 | ;; |
|---|
| 2286 | esac |
|---|
| 2287 | |
|---|
| 2288 | done |
|---|
| 2289 | IFS=$as_save_IFS |
|---|
| 2290 | |
|---|
| 2291 | rm -rf conftest.one conftest.two conftest.dir |
|---|
| 2292 | |
|---|
| 2293 | fi |
|---|
| 2294 | if test "${ac_cv_path_install+set}" = set; then |
|---|
| 2295 | INSTALL=$ac_cv_path_install |
|---|
| 2296 | else |
|---|
| 2297 | # As a last resort, use the slow shell script. Don't cache a |
|---|
| 2298 | # value for INSTALL within a source directory, because that will |
|---|
| 2299 | # break other packages using the cache if that directory is |
|---|
| 2300 | # removed, or if the value is a relative name. |
|---|
| 2301 | INSTALL=$ac_install_sh |
|---|
| 2302 | fi |
|---|
| 2303 | fi |
|---|
| 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
|---|
| 2305 | $as_echo "$INSTALL" >&6; } |
|---|
| 2306 | |
|---|
| 2307 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|---|
| 2308 | # It thinks the first close brace ends the variable substitution. |
|---|
| 2309 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|---|
| 2310 | |
|---|
| 2311 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|---|
| 2312 | |
|---|
| 2313 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|---|
| 2314 | |
|---|
| 2315 | |
|---|
| 2316 | V_PROG="vic" |
|---|
| 2317 | V_SHM="-DUSE_SHM" |
|---|
| 2318 | V_PATH=`pwd` |
|---|
| 2319 | V_OBJ="" |
|---|
| 2320 | V_LIB="" |
|---|
| 2321 | V_CODEC_LIB="" |
|---|
| 2322 | V_DEFINE="" |
|---|
| 2323 | |
|---|
| 2324 | #ARCH DETECTION |
|---|
| 2325 | v_ARCH="" |
|---|
| 2326 | arch=`uname -m` |
|---|
| 2327 | case "$arch" in |
|---|
| 2328 | i386|i486|i586|i686|i86pc|BePC) |
|---|
| 2329 | V_ARCH="ARCH_X86" |
|---|
| 2330 | ;; |
|---|
| 2331 | x86_64|amd64) |
|---|
| 2332 | V_ARCH="ARCH_X86_64" |
|---|
| 2333 | ;; |
|---|
| 2334 | "Power Macintosh"|ppc|ppc64|powerpc) |
|---|
| 2335 | V_ARCH="ARCH_PPC" |
|---|
| 2336 | case "$target" in (*darwin*) V_DEFINE="$V_DEFINE -DSYS_DARWIN";; esac |
|---|
| 2337 | ffmpeg_conf="--disable-altivec" |
|---|
| 2338 | ppc_tune="-mcpu=G3" |
|---|
| 2339 | if sysctl hw.vectorunit 2>/dev/null | grep "hw.vectorunit: 1" >/dev/null 2>&1; then |
|---|
| 2340 | ffmpeg_conf="" |
|---|
| 2341 | ppc_tune="-mcpu=G4 -mtune=G4" |
|---|
| 2342 | fi |
|---|
| 2343 | ;; |
|---|
| 2344 | esac |
|---|
| 2345 | |
|---|
| 2346 | echo "Architecture $V_ARCH" |
|---|
| 2347 | |
|---|
| 2348 | |
|---|
| 2349 | |
|---|
| 2350 | # Make sure we can run config.sub. |
|---|
| 2351 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|---|
| 2352 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
|---|
| 2353 | |
|---|
| 2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|---|
| 2355 | $as_echo_n "checking build system type... " >&6; } |
|---|
| 2356 | if ${ac_cv_build+:} false; then : |
|---|
| 2357 | $as_echo_n "(cached) " >&6 |
|---|
| 2358 | else |
|---|
| 2359 | ac_build_alias=$build_alias |
|---|
| 2360 | test "x$ac_build_alias" = x && |
|---|
| 2361 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|---|
| 2362 | test "x$ac_build_alias" = x && |
|---|
| 2363 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|---|
| 2364 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|---|
| 2365 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
|---|
| 2366 | |
|---|
| 2367 | fi |
|---|
| 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|---|
| 2369 | $as_echo "$ac_cv_build" >&6; } |
|---|
| 2370 | case $ac_cv_build in |
|---|
| 2371 | *-*-*) ;; |
|---|
| 2372 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|---|
| 2373 | esac |
|---|
| 2374 | build=$ac_cv_build |
|---|
| 2375 | ac_save_IFS=$IFS; IFS='-' |
|---|
| 2376 | set x $ac_cv_build |
|---|
| 2377 | shift |
|---|
| 2378 | build_cpu=$1 |
|---|
| 2379 | build_vendor=$2 |
|---|
| 2380 | shift; shift |
|---|
| 2381 | # Remember, the first character of IFS is used to create $*, |
|---|
| 2382 | # except with old shells: |
|---|
| 2383 | build_os=$* |
|---|
| 2384 | IFS=$ac_save_IFS |
|---|
| 2385 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|---|
| 2386 | |
|---|
| 2387 | |
|---|
| 2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|---|
| 2389 | $as_echo_n "checking host system type... " >&6; } |
|---|
| 2390 | if ${ac_cv_host+:} false; then : |
|---|
| 2391 | $as_echo_n "(cached) " >&6 |
|---|
| 2392 | else |
|---|
| 2393 | if test "x$host_alias" = x; then |
|---|
| 2394 | ac_cv_host=$ac_cv_build |
|---|
| 2395 | else |
|---|
| 2396 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|---|
| 2397 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
|---|
| 2398 | fi |
|---|
| 2399 | |
|---|
| 2400 | fi |
|---|
| 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|---|
| 2402 | $as_echo "$ac_cv_host" >&6; } |
|---|
| 2403 | case $ac_cv_host in |
|---|
| 2404 | *-*-*) ;; |
|---|
| 2405 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|---|
| 2406 | esac |
|---|
| 2407 | host=$ac_cv_host |
|---|
| 2408 | ac_save_IFS=$IFS; IFS='-' |
|---|
| 2409 | set x $ac_cv_host |
|---|
| 2410 | shift |
|---|
| 2411 | host_cpu=$1 |
|---|
| 2412 | host_vendor=$2 |
|---|
| 2413 | shift; shift |
|---|
| 2414 | # Remember, the first character of IFS is used to create $*, |
|---|
| 2415 | # except with old shells: |
|---|
| 2416 | host_os=$* |
|---|
| 2417 | IFS=$ac_save_IFS |
|---|
| 2418 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|---|
| 2419 | |
|---|
| 2420 | |
|---|
| 2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
|---|
| 2422 | $as_echo_n "checking target system type... " >&6; } |
|---|
| 2423 | if ${ac_cv_target+:} false; then : |
|---|
| 2424 | $as_echo_n "(cached) " >&6 |
|---|
| 2425 | else |
|---|
| 2426 | if test "x$target_alias" = x; then |
|---|
| 2427 | ac_cv_target=$ac_cv_host |
|---|
| 2428 | else |
|---|
| 2429 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
|---|
| 2430 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
|---|
| 2431 | fi |
|---|
| 2432 | |
|---|
| 2433 | fi |
|---|
| 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
|---|
| 2435 | $as_echo "$ac_cv_target" >&6; } |
|---|
| 2436 | case $ac_cv_target in |
|---|
| 2437 | *-*-*) ;; |
|---|
| 2438 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
|---|
| 2439 | esac |
|---|
| 2440 | target=$ac_cv_target |
|---|
| 2441 | ac_save_IFS=$IFS; IFS='-' |
|---|
| 2442 | set x $ac_cv_target |
|---|
| 2443 | shift |
|---|
| 2444 | target_cpu=$1 |
|---|
| 2445 | target_vendor=$2 |
|---|
| 2446 | shift; shift |
|---|
| 2447 | # Remember, the first character of IFS is used to create $*, |
|---|
| 2448 | # except with old shells: |
|---|
| 2449 | target_os=$* |
|---|
| 2450 | IFS=$ac_save_IFS |
|---|
| 2451 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
|---|
| 2452 | |
|---|
| 2453 | |
|---|
| 2454 | # The aliases save the names the user supplied, while $host etc. |
|---|
| 2455 | # will get canonicalized. |
|---|
| 2456 | test -n "$target_alias" && |
|---|
| 2457 | test "$program_prefix$program_suffix$program_transform_name" = \ |
|---|
| 2458 | NONENONEs,x,x, && |
|---|
| 2459 | program_prefix=${target_alias}- |
|---|
| 2460 | |
|---|
| 2461 | |
|---|
| 2462 | ac_ext=c |
|---|
| 2463 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2467 | if test -n "$ac_tool_prefix"; then |
|---|
| 2468 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|---|
| 2469 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|---|
| 2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2471 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2472 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2473 | $as_echo_n "(cached) " >&6 |
|---|
| 2474 | else |
|---|
| 2475 | if test -n "$CC"; then |
|---|
| 2476 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2477 | else |
|---|
| 2478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2479 | for as_dir in $PATH |
|---|
| 2480 | do |
|---|
| 2481 | IFS=$as_save_IFS |
|---|
| 2482 | test -z "$as_dir" && as_dir=. |
|---|
| 2483 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2485 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|---|
| 2486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2487 | break 2 |
|---|
| 2488 | fi |
|---|
| 2489 | done |
|---|
| 2490 | done |
|---|
| 2491 | IFS=$as_save_IFS |
|---|
| 2492 | |
|---|
| 2493 | fi |
|---|
| 2494 | fi |
|---|
| 2495 | CC=$ac_cv_prog_CC |
|---|
| 2496 | if test -n "$CC"; then |
|---|
| 2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2498 | $as_echo "$CC" >&6; } |
|---|
| 2499 | else |
|---|
| 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2501 | $as_echo "no" >&6; } |
|---|
| 2502 | fi |
|---|
| 2503 | |
|---|
| 2504 | |
|---|
| 2505 | fi |
|---|
| 2506 | if test -z "$ac_cv_prog_CC"; then |
|---|
| 2507 | ac_ct_CC=$CC |
|---|
| 2508 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 2509 | set dummy gcc; ac_word=$2 |
|---|
| 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2511 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2512 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 2513 | $as_echo_n "(cached) " >&6 |
|---|
| 2514 | else |
|---|
| 2515 | if test -n "$ac_ct_CC"; then |
|---|
| 2516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 2517 | else |
|---|
| 2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2519 | for as_dir in $PATH |
|---|
| 2520 | do |
|---|
| 2521 | IFS=$as_save_IFS |
|---|
| 2522 | test -z "$as_dir" && as_dir=. |
|---|
| 2523 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2525 | ac_cv_prog_ac_ct_CC="gcc" |
|---|
| 2526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2527 | break 2 |
|---|
| 2528 | fi |
|---|
| 2529 | done |
|---|
| 2530 | done |
|---|
| 2531 | IFS=$as_save_IFS |
|---|
| 2532 | |
|---|
| 2533 | fi |
|---|
| 2534 | fi |
|---|
| 2535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 2536 | if test -n "$ac_ct_CC"; then |
|---|
| 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 2538 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 2539 | else |
|---|
| 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2541 | $as_echo "no" >&6; } |
|---|
| 2542 | fi |
|---|
| 2543 | |
|---|
| 2544 | if test "x$ac_ct_CC" = x; then |
|---|
| 2545 | CC="" |
|---|
| 2546 | else |
|---|
| 2547 | case $cross_compiling:$ac_tool_warned in |
|---|
| 2548 | yes:) |
|---|
| 2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 2550 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 2551 | ac_tool_warned=yes ;; |
|---|
| 2552 | esac |
|---|
| 2553 | CC=$ac_ct_CC |
|---|
| 2554 | fi |
|---|
| 2555 | else |
|---|
| 2556 | CC="$ac_cv_prog_CC" |
|---|
| 2557 | fi |
|---|
| 2558 | |
|---|
| 2559 | if test -z "$CC"; then |
|---|
| 2560 | if test -n "$ac_tool_prefix"; then |
|---|
| 2561 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|---|
| 2562 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|---|
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2564 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2565 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2566 | $as_echo_n "(cached) " >&6 |
|---|
| 2567 | else |
|---|
| 2568 | if test -n "$CC"; then |
|---|
| 2569 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2570 | else |
|---|
| 2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2572 | for as_dir in $PATH |
|---|
| 2573 | do |
|---|
| 2574 | IFS=$as_save_IFS |
|---|
| 2575 | test -z "$as_dir" && as_dir=. |
|---|
| 2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2578 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|---|
| 2579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2580 | break 2 |
|---|
| 2581 | fi |
|---|
| 2582 | done |
|---|
| 2583 | done |
|---|
| 2584 | IFS=$as_save_IFS |
|---|
| 2585 | |
|---|
| 2586 | fi |
|---|
| 2587 | fi |
|---|
| 2588 | CC=$ac_cv_prog_CC |
|---|
| 2589 | if test -n "$CC"; then |
|---|
| 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2591 | $as_echo "$CC" >&6; } |
|---|
| 2592 | else |
|---|
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2594 | $as_echo "no" >&6; } |
|---|
| 2595 | fi |
|---|
| 2596 | |
|---|
| 2597 | |
|---|
| 2598 | fi |
|---|
| 2599 | fi |
|---|
| 2600 | if test -z "$CC"; then |
|---|
| 2601 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 2602 | set dummy cc; ac_word=$2 |
|---|
| 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2604 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2605 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2606 | $as_echo_n "(cached) " >&6 |
|---|
| 2607 | else |
|---|
| 2608 | if test -n "$CC"; then |
|---|
| 2609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2610 | else |
|---|
| 2611 | ac_prog_rejected=no |
|---|
| 2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2613 | for as_dir in $PATH |
|---|
| 2614 | do |
|---|
| 2615 | IFS=$as_save_IFS |
|---|
| 2616 | test -z "$as_dir" && as_dir=. |
|---|
| 2617 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2619 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|---|
| 2620 | ac_prog_rejected=yes |
|---|
| 2621 | continue |
|---|
| 2622 | fi |
|---|
| 2623 | ac_cv_prog_CC="cc" |
|---|
| 2624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2625 | break 2 |
|---|
| 2626 | fi |
|---|
| 2627 | done |
|---|
| 2628 | done |
|---|
| 2629 | IFS=$as_save_IFS |
|---|
| 2630 | |
|---|
| 2631 | if test $ac_prog_rejected = yes; then |
|---|
| 2632 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 2633 | set dummy $ac_cv_prog_CC |
|---|
| 2634 | shift |
|---|
| 2635 | if test $# != 0; then |
|---|
| 2636 | # We chose a different compiler from the bogus one. |
|---|
| 2637 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 2638 | # first if we set CC to just the basename; use the full file name. |
|---|
| 2639 | shift |
|---|
| 2640 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|---|
| 2641 | fi |
|---|
| 2642 | fi |
|---|
| 2643 | fi |
|---|
| 2644 | fi |
|---|
| 2645 | CC=$ac_cv_prog_CC |
|---|
| 2646 | if test -n "$CC"; then |
|---|
| 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2648 | $as_echo "$CC" >&6; } |
|---|
| 2649 | else |
|---|
| 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2651 | $as_echo "no" >&6; } |
|---|
| 2652 | fi |
|---|
| 2653 | |
|---|
| 2654 | |
|---|
| 2655 | fi |
|---|
| 2656 | if test -z "$CC"; then |
|---|
| 2657 | if test -n "$ac_tool_prefix"; then |
|---|
| 2658 | for ac_prog in cl.exe |
|---|
| 2659 | do |
|---|
| 2660 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 2661 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2663 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2664 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2665 | $as_echo_n "(cached) " >&6 |
|---|
| 2666 | else |
|---|
| 2667 | if test -n "$CC"; then |
|---|
| 2668 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2669 | else |
|---|
| 2670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2671 | for as_dir in $PATH |
|---|
| 2672 | do |
|---|
| 2673 | IFS=$as_save_IFS |
|---|
| 2674 | test -z "$as_dir" && as_dir=. |
|---|
| 2675 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2677 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|---|
| 2678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2679 | break 2 |
|---|
| 2680 | fi |
|---|
| 2681 | done |
|---|
| 2682 | done |
|---|
| 2683 | IFS=$as_save_IFS |
|---|
| 2684 | |
|---|
| 2685 | fi |
|---|
| 2686 | fi |
|---|
| 2687 | CC=$ac_cv_prog_CC |
|---|
| 2688 | if test -n "$CC"; then |
|---|
| 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2690 | $as_echo "$CC" >&6; } |
|---|
| 2691 | else |
|---|
| 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2693 | $as_echo "no" >&6; } |
|---|
| 2694 | fi |
|---|
| 2695 | |
|---|
| 2696 | |
|---|
| 2697 | test -n "$CC" && break |
|---|
| 2698 | done |
|---|
| 2699 | fi |
|---|
| 2700 | if test -z "$CC"; then |
|---|
| 2701 | ac_ct_CC=$CC |
|---|
| 2702 | for ac_prog in cl.exe |
|---|
| 2703 | do |
|---|
| 2704 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 2705 | set dummy $ac_prog; ac_word=$2 |
|---|
| 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2707 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2708 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 2709 | $as_echo_n "(cached) " >&6 |
|---|
| 2710 | else |
|---|
| 2711 | if test -n "$ac_ct_CC"; then |
|---|
| 2712 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 2713 | else |
|---|
| 2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2715 | for as_dir in $PATH |
|---|
| 2716 | do |
|---|
| 2717 | IFS=$as_save_IFS |
|---|
| 2718 | test -z "$as_dir" && as_dir=. |
|---|
| 2719 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2721 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|---|
| 2722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2723 | break 2 |
|---|
| 2724 | fi |
|---|
| 2725 | done |
|---|
| 2726 | done |
|---|
| 2727 | IFS=$as_save_IFS |
|---|
| 2728 | |
|---|
| 2729 | fi |
|---|
| 2730 | fi |
|---|
| 2731 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 2732 | if test -n "$ac_ct_CC"; then |
|---|
| 2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 2734 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 2735 | else |
|---|
| 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2737 | $as_echo "no" >&6; } |
|---|
| 2738 | fi |
|---|
| 2739 | |
|---|
| 2740 | |
|---|
| 2741 | test -n "$ac_ct_CC" && break |
|---|
| 2742 | done |
|---|
| 2743 | |
|---|
| 2744 | if test "x$ac_ct_CC" = x; then |
|---|
| 2745 | CC="" |
|---|
| 2746 | else |
|---|
| 2747 | case $cross_compiling:$ac_tool_warned in |
|---|
| 2748 | yes:) |
|---|
| 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 2750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 2751 | ac_tool_warned=yes ;; |
|---|
| 2752 | esac |
|---|
| 2753 | CC=$ac_ct_CC |
|---|
| 2754 | fi |
|---|
| 2755 | fi |
|---|
| 2756 | |
|---|
| 2757 | fi |
|---|
| 2758 | |
|---|
| 2759 | |
|---|
| 2760 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2762 | as_fn_error $? "no acceptable C compiler found in \$PATH |
|---|
| 2763 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2764 | |
|---|
| 2765 | # Provide some information about the compiler. |
|---|
| 2766 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|---|
| 2767 | set X $ac_compile |
|---|
| 2768 | ac_compiler=$2 |
|---|
| 2769 | for ac_option in --version -v -V -qversion; do |
|---|
| 2770 | { { ac_try="$ac_compiler $ac_option >&5" |
|---|
| 2771 | case "(($ac_try" in |
|---|
| 2772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2773 | *) ac_try_echo=$ac_try;; |
|---|
| 2774 | esac |
|---|
| 2775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2776 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2777 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|---|
| 2778 | ac_status=$? |
|---|
| 2779 | if test -s conftest.err; then |
|---|
| 2780 | sed '10a\ |
|---|
| 2781 | ... rest of stderr output deleted ... |
|---|
| 2782 | 10q' conftest.err >conftest.er1 |
|---|
| 2783 | cat conftest.er1 >&5 |
|---|
| 2784 | fi |
|---|
| 2785 | rm -f conftest.er1 conftest.err |
|---|
| 2786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2787 | test $ac_status = 0; } |
|---|
| 2788 | done |
|---|
| 2789 | |
|---|
| 2790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2791 | /* end confdefs.h. */ |
|---|
| 2792 | |
|---|
| 2793 | int |
|---|
| 2794 | main () |
|---|
| 2795 | { |
|---|
| 2796 | |
|---|
| 2797 | ; |
|---|
| 2798 | return 0; |
|---|
| 2799 | } |
|---|
| 2800 | _ACEOF |
|---|
| 2801 | ac_clean_files_save=$ac_clean_files |
|---|
| 2802 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|---|
| 2803 | # Try to create an executable without -o first, disregard a.out. |
|---|
| 2804 | # It will help us diagnose broken compilers, and finding out an intuition |
|---|
| 2805 | # of exeext. |
|---|
| 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|---|
| 2807 | $as_echo_n "checking whether the C compiler works... " >&6; } |
|---|
| 2808 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|---|
| 2809 | |
|---|
| 2810 | # The possible output files: |
|---|
| 2811 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|---|
| 2812 | |
|---|
| 2813 | ac_rmfiles= |
|---|
| 2814 | for ac_file in $ac_files |
|---|
| 2815 | do |
|---|
| 2816 | case $ac_file in |
|---|
| 2817 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|---|
| 2818 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|---|
| 2819 | esac |
|---|
| 2820 | done |
|---|
| 2821 | rm -f $ac_rmfiles |
|---|
| 2822 | |
|---|
| 2823 | if { { ac_try="$ac_link_default" |
|---|
| 2824 | case "(($ac_try" in |
|---|
| 2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2826 | *) ac_try_echo=$ac_try;; |
|---|
| 2827 | esac |
|---|
| 2828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2829 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2830 | (eval "$ac_link_default") 2>&5 |
|---|
| 2831 | ac_status=$? |
|---|
| 2832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2833 | test $ac_status = 0; }; then : |
|---|
| 2834 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|---|
| 2835 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|---|
| 2836 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|---|
| 2837 | # so that the user can short-circuit this test for compilers unknown to |
|---|
| 2838 | # Autoconf. |
|---|
| 2839 | for ac_file in $ac_files '' |
|---|
| 2840 | do |
|---|
| 2841 | test -f "$ac_file" || continue |
|---|
| 2842 | case $ac_file in |
|---|
| 2843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|---|
| 2844 | ;; |
|---|
| 2845 | [ab].out ) |
|---|
| 2846 | # We found the default executable, but exeext='' is most |
|---|
| 2847 | # certainly right. |
|---|
| 2848 | break;; |
|---|
| 2849 | *.* ) |
|---|
| 2850 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|---|
| 2851 | then :; else |
|---|
| 2852 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 2853 | fi |
|---|
| 2854 | # We set ac_cv_exeext here because the later test for it is not |
|---|
| 2855 | # safe: cross compilers may not add the suffix if given an `-o' |
|---|
| 2856 | # argument, so we may need to know it at that point already. |
|---|
| 2857 | # Even if this section looks crufty: it has the advantage of |
|---|
| 2858 | # actually working. |
|---|
| 2859 | break;; |
|---|
| 2860 | * ) |
|---|
| 2861 | break;; |
|---|
| 2862 | esac |
|---|
| 2863 | done |
|---|
| 2864 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
|---|
| 2865 | |
|---|
| 2866 | else |
|---|
| 2867 | ac_file='' |
|---|
| 2868 | fi |
|---|
| 2869 | if test -z "$ac_file"; then : |
|---|
| 2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2871 | $as_echo "no" >&6; } |
|---|
| 2872 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 2873 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2874 | |
|---|
| 2875 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2876 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2877 | as_fn_error 77 "C compiler cannot create executables |
|---|
| 2878 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2879 | else |
|---|
| 2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|---|
| 2881 | $as_echo "yes" >&6; } |
|---|
| 2882 | fi |
|---|
| 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|---|
| 2884 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
|---|
| 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|---|
| 2886 | $as_echo "$ac_file" >&6; } |
|---|
| 2887 | ac_exeext=$ac_cv_exeext |
|---|
| 2888 | |
|---|
| 2889 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|---|
| 2890 | ac_clean_files=$ac_clean_files_save |
|---|
| 2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|---|
| 2892 | $as_echo_n "checking for suffix of executables... " >&6; } |
|---|
| 2893 | if { { ac_try="$ac_link" |
|---|
| 2894 | case "(($ac_try" in |
|---|
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2896 | *) ac_try_echo=$ac_try;; |
|---|
| 2897 | esac |
|---|
| 2898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2899 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2900 | (eval "$ac_link") 2>&5 |
|---|
| 2901 | ac_status=$? |
|---|
| 2902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2903 | test $ac_status = 0; }; then : |
|---|
| 2904 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|---|
| 2905 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|---|
| 2906 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
|---|
| 2907 | # `rm'. |
|---|
| 2908 | for ac_file in conftest.exe conftest conftest.*; do |
|---|
| 2909 | test -f "$ac_file" || continue |
|---|
| 2910 | case $ac_file in |
|---|
| 2911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|---|
| 2912 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 2913 | break;; |
|---|
| 2914 | * ) break;; |
|---|
| 2915 | esac |
|---|
| 2916 | done |
|---|
| 2917 | else |
|---|
| 2918 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2919 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2920 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|---|
| 2921 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2922 | fi |
|---|
| 2923 | rm -f conftest conftest$ac_cv_exeext |
|---|
| 2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|---|
| 2925 | $as_echo "$ac_cv_exeext" >&6; } |
|---|
| 2926 | |
|---|
| 2927 | rm -f conftest.$ac_ext |
|---|
| 2928 | EXEEXT=$ac_cv_exeext |
|---|
| 2929 | ac_exeext=$EXEEXT |
|---|
| 2930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2931 | /* end confdefs.h. */ |
|---|
| 2932 | #include <stdio.h> |
|---|
| 2933 | int |
|---|
| 2934 | main () |
|---|
| 2935 | { |
|---|
| 2936 | FILE *f = fopen ("conftest.out", "w"); |
|---|
| 2937 | return ferror (f) || fclose (f) != 0; |
|---|
| 2938 | |
|---|
| 2939 | ; |
|---|
| 2940 | return 0; |
|---|
| 2941 | } |
|---|
| 2942 | _ACEOF |
|---|
| 2943 | ac_clean_files="$ac_clean_files conftest.out" |
|---|
| 2944 | # Check that the compiler produces executables we can run. If not, either |
|---|
| 2945 | # the compiler is broken, or we cross compile. |
|---|
| 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|---|
| 2947 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
|---|
| 2948 | if test "$cross_compiling" != yes; then |
|---|
| 2949 | { { ac_try="$ac_link" |
|---|
| 2950 | case "(($ac_try" in |
|---|
| 2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2952 | *) ac_try_echo=$ac_try;; |
|---|
| 2953 | esac |
|---|
| 2954 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2955 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2956 | (eval "$ac_link") 2>&5 |
|---|
| 2957 | ac_status=$? |
|---|
| 2958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2959 | test $ac_status = 0; } |
|---|
| 2960 | if { ac_try='./conftest$ac_cv_exeext' |
|---|
| 2961 | { { case "(($ac_try" in |
|---|
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2963 | *) ac_try_echo=$ac_try;; |
|---|
| 2964 | esac |
|---|
| 2965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2966 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2967 | (eval "$ac_try") 2>&5 |
|---|
| 2968 | ac_status=$? |
|---|
| 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2970 | test $ac_status = 0; }; }; then |
|---|
| 2971 | cross_compiling=no |
|---|
| 2972 | else |
|---|
| 2973 | if test "$cross_compiling" = maybe; then |
|---|
| 2974 | cross_compiling=yes |
|---|
| 2975 | else |
|---|
| 2976 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2978 | as_fn_error $? "cannot run C compiled programs. |
|---|
| 2979 | If you meant to cross compile, use \`--host'. |
|---|
| 2980 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2981 | fi |
|---|
| 2982 | fi |
|---|
| 2983 | fi |
|---|
| 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|---|
| 2985 | $as_echo "$cross_compiling" >&6; } |
|---|
| 2986 | |
|---|
| 2987 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|---|
| 2988 | ac_clean_files=$ac_clean_files_save |
|---|
| 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|---|
| 2990 | $as_echo_n "checking for suffix of object files... " >&6; } |
|---|
| 2991 | if ${ac_cv_objext+:} false; then : |
|---|
| 2992 | $as_echo_n "(cached) " >&6 |
|---|
| 2993 | else |
|---|
| 2994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2995 | /* end confdefs.h. */ |
|---|
| 2996 | |
|---|
| 2997 | int |
|---|
| 2998 | main () |
|---|
| 2999 | { |
|---|
| 3000 | |
|---|
| 3001 | ; |
|---|
| 3002 | return 0; |
|---|
| 3003 | } |
|---|
| 3004 | _ACEOF |
|---|
| 3005 | rm -f conftest.o conftest.obj |
|---|
| 3006 | if { { ac_try="$ac_compile" |
|---|
| 3007 | case "(($ac_try" in |
|---|
| 3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 3009 | *) ac_try_echo=$ac_try;; |
|---|
| 3010 | esac |
|---|
| 3011 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 3012 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 3013 | (eval "$ac_compile") 2>&5 |
|---|
| 3014 | ac_status=$? |
|---|
| 3015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 3016 | test $ac_status = 0; }; then : |
|---|
| 3017 | for ac_file in conftest.o conftest.obj conftest.*; do |
|---|
| 3018 | test -f "$ac_file" || continue; |
|---|
| 3019 | case $ac_file in |
|---|
| 3020 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|---|
| 3021 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|---|
| 3022 | break;; |
|---|
| 3023 | esac |
|---|
| 3024 | done |
|---|
| 3025 | else |
|---|
| 3026 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3028 | |
|---|
| 3029 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 3030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 3031 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
|---|
| 3032 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 3033 | fi |
|---|
| 3034 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|---|
| 3035 | fi |
|---|
| 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|---|
| 3037 | $as_echo "$ac_cv_objext" >&6; } |
|---|
| 3038 | OBJEXT=$ac_cv_objext |
|---|
| 3039 | ac_objext=$OBJEXT |
|---|
| 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|---|
| 3041 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|---|
| 3042 | if ${ac_cv_c_compiler_gnu+:} false; then : |
|---|
| 3043 | $as_echo_n "(cached) " >&6 |
|---|
| 3044 | else |
|---|
| 3045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3046 | /* end confdefs.h. */ |
|---|
| 3047 | |
|---|
| 3048 | int |
|---|
| 3049 | main () |
|---|
| 3050 | { |
|---|
| 3051 | #ifndef __GNUC__ |
|---|
| 3052 | choke me |
|---|
| 3053 | #endif |
|---|
| 3054 | |
|---|
| 3055 | ; |
|---|
| 3056 | return 0; |
|---|
| 3057 | } |
|---|
| 3058 | _ACEOF |
|---|
| 3059 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3060 | ac_compiler_gnu=yes |
|---|
| 3061 | else |
|---|
| 3062 | ac_compiler_gnu=no |
|---|
| 3063 | fi |
|---|
| 3064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3065 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|---|
| 3066 | |
|---|
| 3067 | fi |
|---|
| 3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|---|
| 3069 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|---|
| 3070 | if test $ac_compiler_gnu = yes; then |
|---|
| 3071 | GCC=yes |
|---|
| 3072 | else |
|---|
| 3073 | GCC= |
|---|
| 3074 | fi |
|---|
| 3075 | ac_test_CFLAGS=${CFLAGS+set} |
|---|
| 3076 | ac_save_CFLAGS=$CFLAGS |
|---|
| 3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|---|
| 3078 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|---|
| 3079 | if ${ac_cv_prog_cc_g+:} false; then : |
|---|
| 3080 | $as_echo_n "(cached) " >&6 |
|---|
| 3081 | else |
|---|
| 3082 | ac_save_c_werror_flag=$ac_c_werror_flag |
|---|
| 3083 | ac_c_werror_flag=yes |
|---|
| 3084 | ac_cv_prog_cc_g=no |
|---|
| 3085 | CFLAGS="-g" |
|---|
| 3086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3087 | /* end confdefs.h. */ |
|---|
| 3088 | |
|---|
| 3089 | int |
|---|
| 3090 | main () |
|---|
| 3091 | { |
|---|
| 3092 | |
|---|
| 3093 | ; |
|---|
| 3094 | return 0; |
|---|
| 3095 | } |
|---|
| 3096 | _ACEOF |
|---|
| 3097 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3098 | ac_cv_prog_cc_g=yes |
|---|
| 3099 | else |
|---|
| 3100 | CFLAGS="" |
|---|
| 3101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3102 | /* end confdefs.h. */ |
|---|
| 3103 | |
|---|
| 3104 | int |
|---|
| 3105 | main () |
|---|
| 3106 | { |
|---|
| 3107 | |
|---|
| 3108 | ; |
|---|
| 3109 | return 0; |
|---|
| 3110 | } |
|---|
| 3111 | _ACEOF |
|---|
| 3112 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3113 | |
|---|
| 3114 | else |
|---|
| 3115 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 3116 | CFLAGS="-g" |
|---|
| 3117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3118 | /* end confdefs.h. */ |
|---|
| 3119 | |
|---|
| 3120 | int |
|---|
| 3121 | main () |
|---|
| 3122 | { |
|---|
| 3123 | |
|---|
| 3124 | ; |
|---|
| 3125 | return 0; |
|---|
| 3126 | } |
|---|
| 3127 | _ACEOF |
|---|
| 3128 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3129 | ac_cv_prog_cc_g=yes |
|---|
| 3130 | fi |
|---|
| 3131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3132 | fi |
|---|
| 3133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3134 | fi |
|---|
| 3135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3136 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 3137 | fi |
|---|
| 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|---|
| 3139 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
|---|
| 3140 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 3141 | CFLAGS=$ac_save_CFLAGS |
|---|
| 3142 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 3143 | if test "$GCC" = yes; then |
|---|
| 3144 | CFLAGS="-g -O2" |
|---|
| 3145 | else |
|---|
| 3146 | CFLAGS="-g" |
|---|
| 3147 | fi |
|---|
| 3148 | else |
|---|
| 3149 | if test "$GCC" = yes; then |
|---|
| 3150 | CFLAGS="-O2" |
|---|
| 3151 | else |
|---|
| 3152 | CFLAGS= |
|---|
| 3153 | fi |
|---|
| 3154 | fi |
|---|
| 3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|---|
| 3156 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|---|
| 3157 | if ${ac_cv_prog_cc_c89+:} false; then : |
|---|
| 3158 | $as_echo_n "(cached) " >&6 |
|---|
| 3159 | else |
|---|
| 3160 | ac_cv_prog_cc_c89=no |
|---|
| 3161 | ac_save_CC=$CC |
|---|
| 3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3163 | /* end confdefs.h. */ |
|---|
| 3164 | #include <stdarg.h> |
|---|
| 3165 | #include <stdio.h> |
|---|
| 3166 | #include <sys/types.h> |
|---|
| 3167 | #include <sys/stat.h> |
|---|
| 3168 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|---|
| 3169 | struct buf { int x; }; |
|---|
| 3170 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|---|
| 3171 | static char *e (p, i) |
|---|
| 3172 | char **p; |
|---|
| 3173 | int i; |
|---|
| 3174 | { |
|---|
| 3175 | return p[i]; |
|---|
| 3176 | } |
|---|
| 3177 | static char *f (char * (*g) (char **, int), char **p, ...) |
|---|
| 3178 | { |
|---|
| 3179 | char *s; |
|---|
| 3180 | va_list v; |
|---|
| 3181 | va_start (v,p); |
|---|
| 3182 | s = g (p, va_arg (v,int)); |
|---|
| 3183 | va_end (v); |
|---|
| 3184 | return s; |
|---|
| 3185 | } |
|---|
| 3186 | |
|---|
| 3187 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|---|
| 3188 | function prototypes and stuff, but not '\xHH' hex character constants. |
|---|
| 3189 | These don't provoke an error unfortunately, instead are silently treated |
|---|
| 3190 | as 'x'. The following induces an error, until -std is added to get |
|---|
| 3191 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|---|
| 3192 | array size at least. It's necessary to write '\x00'==0 to get something |
|---|
| 3193 | that's true only with -std. */ |
|---|
| 3194 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|---|
| 3195 | |
|---|
| 3196 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|---|
| 3197 | inside strings and character constants. */ |
|---|
| 3198 | #define FOO(x) 'x' |
|---|
| 3199 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|---|
| 3200 | |
|---|
| 3201 | int test (int i, double x); |
|---|
| 3202 | struct s1 {int (*f) (int a);}; |
|---|
| 3203 | struct s2 {int (*f) (double a);}; |
|---|
| 3204 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|---|
| 3205 | int argc; |
|---|
| 3206 | char **argv; |
|---|
| 3207 | int |
|---|
| 3208 | main () |
|---|
| 3209 | { |
|---|
| 3210 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|---|
| 3211 | ; |
|---|
| 3212 | return 0; |
|---|
| 3213 | } |
|---|
| 3214 | _ACEOF |
|---|
| 3215 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|---|
| 3216 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|---|
| 3217 | do |
|---|
| 3218 | CC="$ac_save_CC $ac_arg" |
|---|
| 3219 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3220 | ac_cv_prog_cc_c89=$ac_arg |
|---|
| 3221 | fi |
|---|
| 3222 | rm -f core conftest.err conftest.$ac_objext |
|---|
| 3223 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|---|
| 3224 | done |
|---|
| 3225 | rm -f conftest.$ac_ext |
|---|
| 3226 | CC=$ac_save_CC |
|---|
| 3227 | |
|---|
| 3228 | fi |
|---|
| 3229 | # AC_CACHE_VAL |
|---|
| 3230 | case "x$ac_cv_prog_cc_c89" in |
|---|
| 3231 | x) |
|---|
| 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|---|
| 3233 | $as_echo "none needed" >&6; } ;; |
|---|
| 3234 | xno) |
|---|
| 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|---|
| 3236 | $as_echo "unsupported" >&6; } ;; |
|---|
| 3237 | *) |
|---|
| 3238 | CC="$CC $ac_cv_prog_cc_c89" |
|---|
| 3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|---|
| 3240 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|---|
| 3241 | esac |
|---|
| 3242 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
|---|
| 3243 | |
|---|
| 3244 | fi |
|---|
| 3245 | |
|---|
| 3246 | ac_ext=c |
|---|
| 3247 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3251 | |
|---|
| 3252 | ac_ext=cpp |
|---|
| 3253 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 3254 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3255 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3256 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|---|
| 3257 | if test -z "$CXX"; then |
|---|
| 3258 | if test -n "$CCC"; then |
|---|
| 3259 | CXX=$CCC |
|---|
| 3260 | else |
|---|
| 3261 | if test -n "$ac_tool_prefix"; then |
|---|
| 3262 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|---|
| 3263 | do |
|---|
| 3264 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 3265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3267 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3268 | if ${ac_cv_prog_CXX+:} false; then : |
|---|
| 3269 | $as_echo_n "(cached) " >&6 |
|---|
| 3270 | else |
|---|
| 3271 | if test -n "$CXX"; then |
|---|
| 3272 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|---|
| 3273 | else |
|---|
| 3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3275 | for as_dir in $PATH |
|---|
| 3276 | do |
|---|
| 3277 | IFS=$as_save_IFS |
|---|
| 3278 | test -z "$as_dir" && as_dir=. |
|---|
| 3279 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3281 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|---|
| 3282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3283 | break 2 |
|---|
| 3284 | fi |
|---|
| 3285 | done |
|---|
| 3286 | done |
|---|
| 3287 | IFS=$as_save_IFS |
|---|
| 3288 | |
|---|
| 3289 | fi |
|---|
| 3290 | fi |
|---|
| 3291 | CXX=$ac_cv_prog_CXX |
|---|
| 3292 | if test -n "$CXX"; then |
|---|
| 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|---|
| 3294 | $as_echo "$CXX" >&6; } |
|---|
| 3295 | else |
|---|
| 3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3297 | $as_echo "no" >&6; } |
|---|
| 3298 | fi |
|---|
| 3299 | |
|---|
| 3300 | |
|---|
| 3301 | test -n "$CXX" && break |
|---|
| 3302 | done |
|---|
| 3303 | fi |
|---|
| 3304 | if test -z "$CXX"; then |
|---|
| 3305 | ac_ct_CXX=$CXX |
|---|
| 3306 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|---|
| 3307 | do |
|---|
| 3308 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 3309 | set dummy $ac_prog; ac_word=$2 |
|---|
| 3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3311 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3312 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
|---|
| 3313 | $as_echo_n "(cached) " >&6 |
|---|
| 3314 | else |
|---|
| 3315 | if test -n "$ac_ct_CXX"; then |
|---|
| 3316 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|---|
| 3317 | else |
|---|
| 3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3319 | for as_dir in $PATH |
|---|
| 3320 | do |
|---|
| 3321 | IFS=$as_save_IFS |
|---|
| 3322 | test -z "$as_dir" && as_dir=. |
|---|
| 3323 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3325 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
|---|
| 3326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3327 | break 2 |
|---|
| 3328 | fi |
|---|
| 3329 | done |
|---|
| 3330 | done |
|---|
| 3331 | IFS=$as_save_IFS |
|---|
| 3332 | |
|---|
| 3333 | fi |
|---|
| 3334 | fi |
|---|
| 3335 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|---|
| 3336 | if test -n "$ac_ct_CXX"; then |
|---|
| 3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|---|
| 3338 | $as_echo "$ac_ct_CXX" >&6; } |
|---|
| 3339 | else |
|---|
| 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3341 | $as_echo "no" >&6; } |
|---|
| 3342 | fi |
|---|
| 3343 | |
|---|
| 3344 | |
|---|
| 3345 | test -n "$ac_ct_CXX" && break |
|---|
| 3346 | done |
|---|
| 3347 | |
|---|
| 3348 | if test "x$ac_ct_CXX" = x; then |
|---|
| 3349 | CXX="g++" |
|---|
| 3350 | else |
|---|
| 3351 | case $cross_compiling:$ac_tool_warned in |
|---|
| 3352 | yes:) |
|---|
| 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 3354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 3355 | ac_tool_warned=yes ;; |
|---|
| 3356 | esac |
|---|
| 3357 | CXX=$ac_ct_CXX |
|---|
| 3358 | fi |
|---|
| 3359 | fi |
|---|
| 3360 | |
|---|
| 3361 | fi |
|---|
| 3362 | fi |
|---|
| 3363 | # Provide some information about the compiler. |
|---|
| 3364 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|---|
| 3365 | set X $ac_compile |
|---|
| 3366 | ac_compiler=$2 |
|---|
| 3367 | for ac_option in --version -v -V -qversion; do |
|---|
| 3368 | { { ac_try="$ac_compiler $ac_option >&5" |
|---|
| 3369 | case "(($ac_try" in |
|---|
| 3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 3371 | *) ac_try_echo=$ac_try;; |
|---|
| 3372 | esac |
|---|
| 3373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 3374 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 3375 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|---|
| 3376 | ac_status=$? |
|---|
| 3377 | if test -s conftest.err; then |
|---|
| 3378 | sed '10a\ |
|---|
| 3379 | ... rest of stderr output deleted ... |
|---|
| 3380 | 10q' conftest.err >conftest.er1 |
|---|
| 3381 | cat conftest.er1 >&5 |
|---|
| 3382 | fi |
|---|
| 3383 | rm -f conftest.er1 conftest.err |
|---|
| 3384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 3385 | test $ac_status = 0; } |
|---|
| 3386 | done |
|---|
| 3387 | |
|---|
| 3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|---|
| 3389 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|---|
| 3390 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
|---|
| 3391 | $as_echo_n "(cached) " >&6 |
|---|
| 3392 | else |
|---|
| 3393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3394 | /* end confdefs.h. */ |
|---|
| 3395 | |
|---|
| 3396 | int |
|---|
| 3397 | main () |
|---|
| 3398 | { |
|---|
| 3399 | #ifndef __GNUC__ |
|---|
| 3400 | choke me |
|---|
| 3401 | #endif |
|---|
| 3402 | |
|---|
| 3403 | ; |
|---|
| 3404 | return 0; |
|---|
| 3405 | } |
|---|
| 3406 | _ACEOF |
|---|
| 3407 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3408 | ac_compiler_gnu=yes |
|---|
| 3409 | else |
|---|
| 3410 | ac_compiler_gnu=no |
|---|
| 3411 | fi |
|---|
| 3412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3413 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|---|
| 3414 | |
|---|
| 3415 | fi |
|---|
| 3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|---|
| 3417 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|---|
| 3418 | if test $ac_compiler_gnu = yes; then |
|---|
| 3419 | GXX=yes |
|---|
| 3420 | else |
|---|
| 3421 | GXX= |
|---|
| 3422 | fi |
|---|
| 3423 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
|---|
| 3424 | ac_save_CXXFLAGS=$CXXFLAGS |
|---|
| 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|---|
| 3426 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|---|
| 3427 | if ${ac_cv_prog_cxx_g+:} false; then : |
|---|
| 3428 | $as_echo_n "(cached) " >&6 |
|---|
| 3429 | else |
|---|
| 3430 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|---|
| 3431 | ac_cxx_werror_flag=yes |
|---|
| 3432 | ac_cv_prog_cxx_g=no |
|---|
| 3433 | CXXFLAGS="-g" |
|---|
| 3434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3435 | /* end confdefs.h. */ |
|---|
| 3436 | |
|---|
| 3437 | int |
|---|
| 3438 | main () |
|---|
| 3439 | { |
|---|
| 3440 | |
|---|
| 3441 | ; |
|---|
| 3442 | return 0; |
|---|
| 3443 | } |
|---|
| 3444 | _ACEOF |
|---|
| 3445 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3446 | ac_cv_prog_cxx_g=yes |
|---|
| 3447 | else |
|---|
| 3448 | CXXFLAGS="" |
|---|
| 3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3450 | /* end confdefs.h. */ |
|---|
| 3451 | |
|---|
| 3452 | int |
|---|
| 3453 | main () |
|---|
| 3454 | { |
|---|
| 3455 | |
|---|
| 3456 | ; |
|---|
| 3457 | return 0; |
|---|
| 3458 | } |
|---|
| 3459 | _ACEOF |
|---|
| 3460 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3461 | |
|---|
| 3462 | else |
|---|
| 3463 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|---|
| 3464 | CXXFLAGS="-g" |
|---|
| 3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3466 | /* end confdefs.h. */ |
|---|
| 3467 | |
|---|
| 3468 | int |
|---|
| 3469 | main () |
|---|
| 3470 | { |
|---|
| 3471 | |
|---|
| 3472 | ; |
|---|
| 3473 | return 0; |
|---|
| 3474 | } |
|---|
| 3475 | _ACEOF |
|---|
| 3476 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3477 | ac_cv_prog_cxx_g=yes |
|---|
| 3478 | fi |
|---|
| 3479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3480 | fi |
|---|
| 3481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3482 | fi |
|---|
| 3483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3484 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|---|
| 3485 | fi |
|---|
| 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|---|
| 3487 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
|---|
| 3488 | if test "$ac_test_CXXFLAGS" = set; then |
|---|
| 3489 | CXXFLAGS=$ac_save_CXXFLAGS |
|---|
| 3490 | elif test $ac_cv_prog_cxx_g = yes; then |
|---|
| 3491 | if test "$GXX" = yes; then |
|---|
| 3492 | CXXFLAGS="-g -O2" |
|---|
| 3493 | else |
|---|
| 3494 | CXXFLAGS="-g" |
|---|
| 3495 | fi |
|---|
| 3496 | else |
|---|
| 3497 | if test "$GXX" = yes; then |
|---|
| 3498 | CXXFLAGS="-O2" |
|---|
| 3499 | else |
|---|
| 3500 | CXXFLAGS= |
|---|
| 3501 | fi |
|---|
| 3502 | fi |
|---|
| 3503 | ac_ext=c |
|---|
| 3504 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3508 | |
|---|
| 3509 | |
|---|
| 3510 | ac_ext=c |
|---|
| 3511 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|---|
| 3516 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|---|
| 3517 | # On Suns, sometimes $CPP names a directory. |
|---|
| 3518 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 3519 | CPP= |
|---|
| 3520 | fi |
|---|
| 3521 | if test -z "$CPP"; then |
|---|
| 3522 | if ${ac_cv_prog_CPP+:} false; then : |
|---|
| 3523 | $as_echo_n "(cached) " >&6 |
|---|
| 3524 | else |
|---|
| 3525 | # Double quotes because CPP needs to be expanded |
|---|
| 3526 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|---|
| 3527 | do |
|---|
| 3528 | ac_preproc_ok=false |
|---|
| 3529 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3530 | do |
|---|
| 3531 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3532 | # with a fresh cross-compiler works. |
|---|
| 3533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3534 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3535 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3536 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3538 | /* end confdefs.h. */ |
|---|
| 3539 | #ifdef __STDC__ |
|---|
| 3540 | # include <limits.h> |
|---|
| 3541 | #else |
|---|
| 3542 | # include <assert.h> |
|---|
| 3543 | #endif |
|---|
| 3544 | Syntax error |
|---|
| 3545 | _ACEOF |
|---|
| 3546 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3547 | |
|---|
| 3548 | else |
|---|
| 3549 | # Broken: fails on valid input. |
|---|
| 3550 | continue |
|---|
| 3551 | fi |
|---|
| 3552 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3553 | |
|---|
| 3554 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 3555 | # can be detected and how. |
|---|
| 3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3557 | /* end confdefs.h. */ |
|---|
| 3558 | #include <ac_nonexistent.h> |
|---|
| 3559 | _ACEOF |
|---|
| 3560 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3561 | # Broken: success on invalid input. |
|---|
| 3562 | continue |
|---|
| 3563 | else |
|---|
| 3564 | # Passes both tests. |
|---|
| 3565 | ac_preproc_ok=: |
|---|
| 3566 | break |
|---|
| 3567 | fi |
|---|
| 3568 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3569 | |
|---|
| 3570 | done |
|---|
| 3571 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3572 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 3573 | if $ac_preproc_ok; then : |
|---|
| 3574 | break |
|---|
| 3575 | fi |
|---|
| 3576 | |
|---|
| 3577 | done |
|---|
| 3578 | ac_cv_prog_CPP=$CPP |
|---|
| 3579 | |
|---|
| 3580 | fi |
|---|
| 3581 | CPP=$ac_cv_prog_CPP |
|---|
| 3582 | else |
|---|
| 3583 | ac_cv_prog_CPP=$CPP |
|---|
| 3584 | fi |
|---|
| 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|---|
| 3586 | $as_echo "$CPP" >&6; } |
|---|
| 3587 | ac_preproc_ok=false |
|---|
| 3588 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3589 | do |
|---|
| 3590 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3591 | # with a fresh cross-compiler works. |
|---|
| 3592 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3593 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3594 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3595 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3597 | /* end confdefs.h. */ |
|---|
| 3598 | #ifdef __STDC__ |
|---|
| 3599 | # include <limits.h> |
|---|
| 3600 | #else |
|---|
| 3601 | # include <assert.h> |
|---|
| 3602 | #endif |
|---|
| 3603 | Syntax error |
|---|
| 3604 | _ACEOF |
|---|
| 3605 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3606 | |
|---|
| 3607 | else |
|---|
| 3608 | # Broken: fails on valid input. |
|---|
| 3609 | continue |
|---|
| 3610 | fi |
|---|
| 3611 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3612 | |
|---|
| 3613 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 3614 | # can be detected and how. |
|---|
| 3615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3616 | /* end confdefs.h. */ |
|---|
| 3617 | #include <ac_nonexistent.h> |
|---|
| 3618 | _ACEOF |
|---|
| 3619 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3620 | # Broken: success on invalid input. |
|---|
| 3621 | continue |
|---|
| 3622 | else |
|---|
| 3623 | # Passes both tests. |
|---|
| 3624 | ac_preproc_ok=: |
|---|
| 3625 | break |
|---|
| 3626 | fi |
|---|
| 3627 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3628 | |
|---|
| 3629 | done |
|---|
| 3630 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3631 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 3632 | if $ac_preproc_ok; then : |
|---|
| 3633 | |
|---|
| 3634 | else |
|---|
| 3635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 3636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 3637 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|---|
| 3638 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 3639 | fi |
|---|
| 3640 | |
|---|
| 3641 | ac_ext=c |
|---|
| 3642 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3646 | |
|---|
| 3647 | |
|---|
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|---|
| 3649 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|---|
| 3650 | if ${ac_cv_path_GREP+:} false; then : |
|---|
| 3651 | $as_echo_n "(cached) " >&6 |
|---|
| 3652 | else |
|---|
| 3653 | if test -z "$GREP"; then |
|---|
| 3654 | ac_path_GREP_found=false |
|---|
| 3655 | # Loop through the user's path and test for each of PROGNAME-LIST |
|---|
| 3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3657 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|---|
| 3658 | do |
|---|
| 3659 | IFS=$as_save_IFS |
|---|
| 3660 | test -z "$as_dir" && as_dir=. |
|---|
| 3661 | for ac_prog in grep ggrep; do |
|---|
| 3662 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3663 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|---|
| 3664 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|---|
| 3665 | # Check for GNU ac_path_GREP and select it if it is found. |
|---|
| 3666 | # Check for GNU $ac_path_GREP |
|---|
| 3667 | case `"$ac_path_GREP" --version 2>&1` in |
|---|
| 3668 | *GNU*) |
|---|
| 3669 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|---|
| 3670 | *) |
|---|
| 3671 | ac_count=0 |
|---|
| 3672 | $as_echo_n 0123456789 >"conftest.in" |
|---|
| 3673 | while : |
|---|
| 3674 | do |
|---|
| 3675 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|---|
| 3676 | mv "conftest.tmp" "conftest.in" |
|---|
| 3677 | cp "conftest.in" "conftest.nl" |
|---|
| 3678 | $as_echo 'GREP' >> "conftest.nl" |
|---|
| 3679 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|---|
| 3680 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|---|
| 3681 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|---|
| 3682 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|---|
| 3683 | # Best one so far, save it but keep looking for a better one |
|---|
| 3684 | ac_cv_path_GREP="$ac_path_GREP" |
|---|
| 3685 | ac_path_GREP_max=$ac_count |
|---|
| 3686 | fi |
|---|
| 3687 | # 10*(2^10) chars as input seems more than enough |
|---|
| 3688 | test $ac_count -gt 10 && break |
|---|
| 3689 | done |
|---|
| 3690 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|---|
| 3691 | esac |
|---|
| 3692 | |
|---|
| 3693 | $ac_path_GREP_found && break 3 |
|---|
| 3694 | done |
|---|
| 3695 | done |
|---|
| 3696 | done |
|---|
| 3697 | IFS=$as_save_IFS |
|---|
| 3698 | if test -z "$ac_cv_path_GREP"; then |
|---|
| 3699 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|---|
| 3700 | fi |
|---|
| 3701 | else |
|---|
| 3702 | ac_cv_path_GREP=$GREP |
|---|
| 3703 | fi |
|---|
| 3704 | |
|---|
| 3705 | fi |
|---|
| 3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|---|
| 3707 | $as_echo "$ac_cv_path_GREP" >&6; } |
|---|
| 3708 | GREP="$ac_cv_path_GREP" |
|---|
| 3709 | |
|---|
| 3710 | |
|---|
| 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|---|
| 3712 | $as_echo_n "checking for egrep... " >&6; } |
|---|
| 3713 | if ${ac_cv_path_EGREP+:} false; then : |
|---|
| 3714 | $as_echo_n "(cached) " >&6 |
|---|
| 3715 | else |
|---|
| 3716 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|---|
| 3717 | then ac_cv_path_EGREP="$GREP -E" |
|---|
| 3718 | else |
|---|
| 3719 | if test -z "$EGREP"; then |
|---|
| 3720 | ac_path_EGREP_found=false |
|---|
| 3721 | # Loop through the user's path and test for each of PROGNAME-LIST |
|---|
| 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3723 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|---|
| 3724 | do |
|---|
| 3725 | IFS=$as_save_IFS |
|---|
| 3726 | test -z "$as_dir" && as_dir=. |
|---|
| 3727 | for ac_prog in egrep; do |
|---|
| 3728 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3729 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|---|
| 3730 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|---|
| 3731 | # Check for GNU ac_path_EGREP and select it if it is found. |
|---|
| 3732 | # Check for GNU $ac_path_EGREP |
|---|
| 3733 | case `"$ac_path_EGREP" --version 2>&1` in |
|---|
| 3734 | *GNU*) |
|---|
| 3735 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|---|
| 3736 | *) |
|---|
| 3737 | ac_count=0 |
|---|
| 3738 | $as_echo_n 0123456789 >"conftest.in" |
|---|
| 3739 | while : |
|---|
| 3740 | do |
|---|
| 3741 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|---|
| 3742 | mv "conftest.tmp" "conftest.in" |
|---|
| 3743 | cp "conftest.in" "conftest.nl" |
|---|
| 3744 | $as_echo 'EGREP' >> "conftest.nl" |
|---|
| 3745 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|---|
| 3746 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|---|
| 3747 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|---|
| 3748 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|---|
| 3749 | # Best one so far, save it but keep looking for a better one |
|---|
| 3750 | ac_cv_path_EGREP="$ac_path_EGREP" |
|---|
| 3751 | ac_path_EGREP_max=$ac_count |
|---|
| 3752 | fi |
|---|
| 3753 | # 10*(2^10) chars as input seems more than enough |
|---|
| 3754 | test $ac_count -gt 10 && break |
|---|
| 3755 | done |
|---|
| 3756 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|---|
| 3757 | esac |
|---|
| 3758 | |
|---|
| 3759 | $ac_path_EGREP_found && break 3 |
|---|
| 3760 | done |
|---|
| 3761 | done |
|---|
| 3762 | done |
|---|
| 3763 | IFS=$as_save_IFS |
|---|
| 3764 | if test -z "$ac_cv_path_EGREP"; then |
|---|
| 3765 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|---|
| 3766 | fi |
|---|
| 3767 | else |
|---|
| 3768 | ac_cv_path_EGREP=$EGREP |
|---|
| 3769 | fi |
|---|
| 3770 | |
|---|
| 3771 | fi |
|---|
| 3772 | fi |
|---|
| 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|---|
| 3774 | $as_echo "$ac_cv_path_EGREP" >&6; } |
|---|
| 3775 | EGREP="$ac_cv_path_EGREP" |
|---|
| 3776 | |
|---|
| 3777 | |
|---|
| 3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|---|
| 3779 | $as_echo_n "checking for ANSI C header files... " >&6; } |
|---|
| 3780 | if ${ac_cv_header_stdc+:} false; then : |
|---|
| 3781 | $as_echo_n "(cached) " >&6 |
|---|
| 3782 | else |
|---|
| 3783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3784 | /* end confdefs.h. */ |
|---|
| 3785 | #include <stdlib.h> |
|---|
| 3786 | #include <stdarg.h> |
|---|
| 3787 | #include <string.h> |
|---|
| 3788 | #include <float.h> |
|---|
| 3789 | |
|---|
| 3790 | int |
|---|
| 3791 | main () |
|---|
| 3792 | { |
|---|
| 3793 | |
|---|
| 3794 | ; |
|---|
| 3795 | return 0; |
|---|
| 3796 | } |
|---|
| 3797 | _ACEOF |
|---|
| 3798 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3799 | ac_cv_header_stdc=yes |
|---|
| 3800 | else |
|---|
| 3801 | ac_cv_header_stdc=no |
|---|
| 3802 | fi |
|---|
| 3803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3804 | |
|---|
| 3805 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3806 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|---|
| 3807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3808 | /* end confdefs.h. */ |
|---|
| 3809 | #include <string.h> |
|---|
| 3810 | |
|---|
| 3811 | _ACEOF |
|---|
| 3812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3813 | $EGREP "memchr" >/dev/null 2>&1; then : |
|---|
| 3814 | |
|---|
| 3815 | else |
|---|
| 3816 | ac_cv_header_stdc=no |
|---|
| 3817 | fi |
|---|
| 3818 | rm -f conftest* |
|---|
| 3819 | |
|---|
| 3820 | fi |
|---|
| 3821 | |
|---|
| 3822 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3823 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|---|
| 3824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3825 | /* end confdefs.h. */ |
|---|
| 3826 | #include <stdlib.h> |
|---|
| 3827 | |
|---|
| 3828 | _ACEOF |
|---|
| 3829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3830 | $EGREP "free" >/dev/null 2>&1; then : |
|---|
| 3831 | |
|---|
| 3832 | else |
|---|
| 3833 | ac_cv_header_stdc=no |
|---|
| 3834 | fi |
|---|
| 3835 | rm -f conftest* |
|---|
| 3836 | |
|---|
| 3837 | fi |
|---|
| 3838 | |
|---|
| 3839 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3840 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|---|
| 3841 | if test "$cross_compiling" = yes; then : |
|---|
| 3842 | : |
|---|
| 3843 | else |
|---|
| 3844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3845 | /* end confdefs.h. */ |
|---|
| 3846 | #include <ctype.h> |
|---|
| 3847 | #include <stdlib.h> |
|---|
| 3848 | #if ((' ' & 0x0FF) == 0x020) |
|---|
| 3849 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|---|
| 3850 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|---|
| 3851 | #else |
|---|
| 3852 | # define ISLOWER(c) \ |
|---|
| 3853 | (('a' <= (c) && (c) <= 'i') \ |
|---|
| 3854 | || ('j' <= (c) && (c) <= 'r') \ |
|---|
| 3855 | || ('s' <= (c) && (c) <= 'z')) |
|---|
| 3856 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|---|
| 3857 | #endif |
|---|
| 3858 | |
|---|
| 3859 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|---|
| 3860 | int |
|---|
| 3861 | main () |
|---|
| 3862 | { |
|---|
| 3863 | int i; |
|---|
| 3864 | for (i = 0; i < 256; i++) |
|---|
| 3865 | if (XOR (islower (i), ISLOWER (i)) |
|---|
| 3866 | || toupper (i) != TOUPPER (i)) |
|---|
| 3867 | return 2; |
|---|
| 3868 | return 0; |
|---|
| 3869 | } |
|---|
| 3870 | _ACEOF |
|---|
| 3871 | if ac_fn_c_try_run "$LINENO"; then : |
|---|
| 3872 | |
|---|
| 3873 | else |
|---|
| 3874 | ac_cv_header_stdc=no |
|---|
| 3875 | fi |
|---|
| 3876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|---|
| 3877 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|---|
| 3878 | fi |
|---|
| 3879 | |
|---|
| 3880 | fi |
|---|
| 3881 | fi |
|---|
| 3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|---|
| 3883 | $as_echo "$ac_cv_header_stdc" >&6; } |
|---|
| 3884 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3885 | |
|---|
| 3886 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|---|
| 3887 | |
|---|
| 3888 | fi |
|---|
| 3889 | |
|---|
| 3890 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|---|
| 3891 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|---|
| 3892 | inttypes.h stdint.h unistd.h |
|---|
| 3893 | do : |
|---|
| 3894 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 3895 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|---|
| 3896 | " |
|---|
| 3897 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|---|
| 3898 | cat >>confdefs.h <<_ACEOF |
|---|
| 3899 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 3900 | _ACEOF |
|---|
| 3901 | |
|---|
| 3902 | fi |
|---|
| 3903 | |
|---|
| 3904 | done |
|---|
| 3905 | |
|---|
| 3906 | |
|---|
| 3907 | for ac_header in string.h malloc.h |
|---|
| 3908 | do : |
|---|
| 3909 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 3910 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|---|
| 3911 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|---|
| 3912 | cat >>confdefs.h <<_ACEOF |
|---|
| 3913 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 3914 | _ACEOF |
|---|
| 3915 | |
|---|
| 3916 | fi |
|---|
| 3917 | |
|---|
| 3918 | done |
|---|
| 3919 | |
|---|
| 3920 | |
|---|
| 3921 | V_INCLUDE="" |
|---|
| 3922 | V_LIB="" |
|---|
| 3923 | V_OBJ="" |
|---|
| 3924 | V_OBJ_CRYPT="" |
|---|
| 3925 | V_BROKEN_OBJ="strtol.o strtoul.o" |
|---|
| 3926 | |
|---|
| 3927 | V_SHELL="" |
|---|
| 3928 | V_TARCMD="tar cfh" |
|---|
| 3929 | V_SIGRET="void" |
|---|
| 3930 | |
|---|
| 3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 |
|---|
| 3932 | $as_echo_n "checking for main in -lXbsd... " >&6; } |
|---|
| 3933 | if ${ac_cv_lib_Xbsd_main+:} false; then : |
|---|
| 3934 | $as_echo_n "(cached) " >&6 |
|---|
| 3935 | else |
|---|
| 3936 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 3937 | LIBS="-lXbsd $LIBS" |
|---|
| 3938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3939 | /* end confdefs.h. */ |
|---|
| 3940 | |
|---|
| 3941 | |
|---|
| 3942 | int |
|---|
| 3943 | main () |
|---|
| 3944 | { |
|---|
| 3945 | return main (); |
|---|
| 3946 | ; |
|---|
| 3947 | return 0; |
|---|
| 3948 | } |
|---|
| 3949 | _ACEOF |
|---|
| 3950 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 3951 | ac_cv_lib_Xbsd_main=yes |
|---|
| 3952 | else |
|---|
| 3953 | ac_cv_lib_Xbsd_main=no |
|---|
| 3954 | fi |
|---|
| 3955 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 3956 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3957 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 3958 | fi |
|---|
| 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 |
|---|
| 3960 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } |
|---|
| 3961 | if test "x$ac_cv_lib_Xbsd_main" = xyes; then : |
|---|
| 3962 | V_LIB="$V_LIB -lXbsd" |
|---|
| 3963 | fi |
|---|
| 3964 | |
|---|
| 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lsocket" >&5 |
|---|
| 3966 | $as_echo_n "checking for poll in -lsocket... " >&6; } |
|---|
| 3967 | if ${ac_cv_lib_socket_poll+:} false; then : |
|---|
| 3968 | $as_echo_n "(cached) " >&6 |
|---|
| 3969 | else |
|---|
| 3970 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 3971 | LIBS="-lsocket $LIBS" |
|---|
| 3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3973 | /* end confdefs.h. */ |
|---|
| 3974 | |
|---|
| 3975 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 3976 | Use char because int might match the return type of a GCC |
|---|
| 3977 | builtin and then its argument prototype would still apply. */ |
|---|
| 3978 | #ifdef __cplusplus |
|---|
| 3979 | extern "C" |
|---|
| 3980 | #endif |
|---|
| 3981 | char poll (); |
|---|
| 3982 | int |
|---|
| 3983 | main () |
|---|
| 3984 | { |
|---|
| 3985 | return poll (); |
|---|
| 3986 | ; |
|---|
| 3987 | return 0; |
|---|
| 3988 | } |
|---|
| 3989 | _ACEOF |
|---|
| 3990 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 3991 | ac_cv_lib_socket_poll=yes |
|---|
| 3992 | else |
|---|
| 3993 | ac_cv_lib_socket_poll=no |
|---|
| 3994 | fi |
|---|
| 3995 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 3996 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3997 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 3998 | fi |
|---|
| 3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_poll" >&5 |
|---|
| 4000 | $as_echo "$ac_cv_lib_socket_poll" >&6; } |
|---|
| 4001 | if test "x$ac_cv_lib_socket_poll" = xyes; then : |
|---|
| 4002 | V_LIB="$V_LIB -lsocket" |
|---|
| 4003 | fi |
|---|
| 4004 | |
|---|
| 4005 | |
|---|
| 4006 | # nsl lib seems to cause problems on IRIX |
|---|
| 4007 | if test `echo "$target_os" | sed 's/\..*//'` != irix6 ; then |
|---|
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
|---|
| 4009 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
|---|
| 4010 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
|---|
| 4011 | $as_echo_n "(cached) " >&6 |
|---|
| 4012 | else |
|---|
| 4013 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4014 | LIBS="-lnsl $LIBS" |
|---|
| 4015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4016 | /* end confdefs.h. */ |
|---|
| 4017 | |
|---|
| 4018 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4019 | Use char because int might match the return type of a GCC |
|---|
| 4020 | builtin and then its argument prototype would still apply. */ |
|---|
| 4021 | #ifdef __cplusplus |
|---|
| 4022 | extern "C" |
|---|
| 4023 | #endif |
|---|
| 4024 | char gethostbyname (); |
|---|
| 4025 | int |
|---|
| 4026 | main () |
|---|
| 4027 | { |
|---|
| 4028 | return gethostbyname (); |
|---|
| 4029 | ; |
|---|
| 4030 | return 0; |
|---|
| 4031 | } |
|---|
| 4032 | _ACEOF |
|---|
| 4033 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 4034 | ac_cv_lib_nsl_gethostbyname=yes |
|---|
| 4035 | else |
|---|
| 4036 | ac_cv_lib_nsl_gethostbyname=no |
|---|
| 4037 | fi |
|---|
| 4038 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 4039 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4040 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4041 | fi |
|---|
| 4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|---|
| 4043 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
|---|
| 4044 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
|---|
| 4045 | V_LIB="$V_LIB -lnsl" |
|---|
| 4046 | fi |
|---|
| 4047 | |
|---|
| 4048 | fi |
|---|
| 4049 | |
|---|
| 4050 | V_TAR_EXTRA="" |
|---|
| 4051 | |
|---|
| 4052 | V_CCOPT_H261="-O2" |
|---|
| 4053 | |
|---|
| 4054 | # Check whether --enable-debug was given. |
|---|
| 4055 | if test "${enable_debug+set}" = set; then : |
|---|
| 4056 | enableval=$enable_debug; V_CCOPT="-g" |
|---|
| 4057 | else |
|---|
| 4058 | V_CCOPT="-O2" |
|---|
| 4059 | fi |
|---|
| 4060 | |
|---|
| 4061 | |
|---|
| 4062 | # Check whether --enable-ipv6 was given. |
|---|
| 4063 | if test "${enable_ipv6+set}" = set; then : |
|---|
| 4064 | enableval=$enable_ipv6; ipv6=yes |
|---|
| 4065 | else |
|---|
| 4066 | ipv6=no |
|---|
| 4067 | fi |
|---|
| 4068 | |
|---|
| 4069 | |
|---|
| 4070 | |
|---|
| 4071 | # Check whether --with-fore was given. |
|---|
| 4072 | if test "${with_fore+set}" = set; then : |
|---|
| 4073 | withval=$with_fore; d=$withval |
|---|
| 4074 | else |
|---|
| 4075 | d="" |
|---|
| 4076 | fi |
|---|
| 4077 | |
|---|
| 4078 | if test "$d" = "" ; then |
|---|
| 4079 | if test -d /usr/src/local/fore ; then |
|---|
| 4080 | d=/usr/src/local/fore |
|---|
| 4081 | fi |
|---|
| 4082 | fi |
|---|
| 4083 | if test "$d" != "" ; then |
|---|
| 4084 | if test ! -d $d ; then |
|---|
| 4085 | echo "'$d' is not a directory" |
|---|
| 4086 | exit 1 |
|---|
| 4087 | fi |
|---|
| 4088 | V_INCLUDE="$V_INCLUDE -I$d/include" |
|---|
| 4089 | V_LIB="$V_LIB $d/api/libatm.a" |
|---|
| 4090 | V_OBJ="$V_OBJ net-atm.o" |
|---|
| 4091 | fi |
|---|
| 4092 | |
|---|
| 4093 | if test -z "$PWD" ; then |
|---|
| 4094 | PWD=`pwd` |
|---|
| 4095 | fi |
|---|
| 4096 | |
|---|
| 4097 | solaris="" |
|---|
| 4098 | if test `echo "$target_os" | sed 's/\..*//'` = solaris2 ; then |
|---|
| 4099 | solaris="yes" |
|---|
| 4100 | fi |
|---|
| 4101 | |
|---|
| 4102 | places="desCore.a \ |
|---|
| 4103 | /usr/src/local/desCore/desCore.a \ |
|---|
| 4104 | ../desCore/desCore.a" |
|---|
| 4105 | for f in $places; do |
|---|
| 4106 | if test -f $f ; then |
|---|
| 4107 | V_LIB="$V_LIB $f" |
|---|
| 4108 | V_OBJ_CRYPT="$V_OBJ_CRYPT crypt-des.o" |
|---|
| 4109 | break |
|---|
| 4110 | fi |
|---|
| 4111 | done |
|---|
| 4112 | |
|---|
| 4113 | aquatcl="no" |
|---|
| 4114 | aquatk="no" |
|---|
| 4115 | cygwin="no" |
|---|
| 4116 | mingw="no" |
|---|
| 4117 | |
|---|
| 4118 | case "$target" in |
|---|
| 4119 | *-*-darwin*) |
|---|
| 4120 | aquatcl="yes" |
|---|
| 4121 | aquatk="yes" |
|---|
| 4122 | ;; |
|---|
| 4123 | *-*-cygwin*) |
|---|
| 4124 | cygwin="yes" |
|---|
| 4125 | ;; |
|---|
| 4126 | *-*-mingw*) |
|---|
| 4127 | mingw="yes" |
|---|
| 4128 | ;; |
|---|
| 4129 | esac |
|---|
| 4130 | |
|---|
| 4131 | # Check whether --enable-aquatcl was given. |
|---|
| 4132 | if test "${enable_aquatcl+set}" = set; then : |
|---|
| 4133 | enableval=$enable_aquatcl; aquatcl=no |
|---|
| 4134 | fi |
|---|
| 4135 | |
|---|
| 4136 | # Check whether --enable-aquatk was given. |
|---|
| 4137 | if test "${enable_aquatk+set}" = set; then : |
|---|
| 4138 | enableval=$enable_aquatk; aquatk=no |
|---|
| 4139 | fi |
|---|
| 4140 | |
|---|
| 4141 | |
|---|
| 4142 | |
|---|
| 4143 | # |
|---|
| 4144 | # Ok, lets find the tcl configuration |
|---|
| 4145 | # First, look for one uninstalled. |
|---|
| 4146 | # the alternative search directory is invoked by --with-tcl |
|---|
| 4147 | # |
|---|
| 4148 | |
|---|
| 4149 | if test x"${no_tcl}" = x ; then |
|---|
| 4150 | # we reset no_tcl in case something fails here |
|---|
| 4151 | no_tcl=true |
|---|
| 4152 | |
|---|
| 4153 | # Check whether --with-tcl was given. |
|---|
| 4154 | if test "${with_tcl+set}" = set; then : |
|---|
| 4155 | withval=$with_tcl; with_tclconfig=${withval} |
|---|
| 4156 | fi |
|---|
| 4157 | |
|---|
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 |
|---|
| 4159 | $as_echo_n "checking for Tcl configuration... " >&6; } |
|---|
| 4160 | if ${ac_cv_c_tclconfig+:} false; then : |
|---|
| 4161 | $as_echo_n "(cached) " >&6 |
|---|
| 4162 | else |
|---|
| 4163 | |
|---|
| 4164 | |
|---|
| 4165 | # First check to see if --with-tcl was specified. |
|---|
| 4166 | if test x"${with_tclconfig}" != x ; then |
|---|
| 4167 | case ${with_tclconfig} in |
|---|
| 4168 | */tclConfig.sh ) |
|---|
| 4169 | if test -f ${with_tclconfig}; then |
|---|
| 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 |
|---|
| 4171 | $as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} |
|---|
| 4172 | with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` |
|---|
| 4173 | fi ;; |
|---|
| 4174 | esac |
|---|
| 4175 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
|---|
| 4176 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
|---|
| 4177 | else |
|---|
| 4178 | as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 |
|---|
| 4179 | fi |
|---|
| 4180 | fi |
|---|
| 4181 | |
|---|
| 4182 | # then check for a private Tcl installation |
|---|
| 4183 | if test x"${ac_cv_c_tclconfig}" = x ; then |
|---|
| 4184 | for i in \ |
|---|
| 4185 | ../tcl \ |
|---|
| 4186 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4187 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4188 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` ; do |
|---|
| 4189 | if test -f "$i/unix/tclConfig.sh" ; then |
|---|
| 4190 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
|---|
| 4191 | break |
|---|
| 4192 | fi |
|---|
| 4193 | done |
|---|
| 4194 | fi |
|---|
| 4195 | |
|---|
| 4196 | # on Darwin, check in Framework installation locations |
|---|
| 4197 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then |
|---|
| 4198 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ |
|---|
| 4199 | `ls -d /Library/Frameworks 2>/dev/null` \ |
|---|
| 4200 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ |
|---|
| 4201 | `ls -d /System/Library/Frameworks 2>/dev/null` \ |
|---|
| 4202 | ; do |
|---|
| 4203 | if test -f "$i/Tcl.framework/tclConfig.sh" ; then |
|---|
| 4204 | ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` |
|---|
| 4205 | break |
|---|
| 4206 | fi |
|---|
| 4207 | done |
|---|
| 4208 | fi |
|---|
| 4209 | |
|---|
| 4210 | # check in a few common install locations |
|---|
| 4211 | if test x"${ac_cv_c_tclconfig}" = x ; then |
|---|
| 4212 | for i in `ls -d ${libdir} 2>/dev/null` \ |
|---|
| 4213 | `ls -d ${exec_prefix}/lib64 2>/dev/null` \ |
|---|
| 4214 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ |
|---|
| 4215 | `ls -d ${prefix}/lib64 2>/dev/null` \ |
|---|
| 4216 | `ls -d ${prefix}/lib 2>/dev/null` \ |
|---|
| 4217 | `ls -d /usr/local/lib64 2>/dev/null` \ |
|---|
| 4218 | `ls -d /usr/local/lib 2>/dev/null` \ |
|---|
| 4219 | `ls -d /usr/contrib/lib64 2>/dev/null` \ |
|---|
| 4220 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
|---|
| 4221 | `ls -d /usr/lib64 2>/dev/null` \ |
|---|
| 4222 | `ls -d /usr/lib 2>/dev/null` \ |
|---|
| 4223 | `ls -d /usr/lib64/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4224 | `ls -d /usr/lib64/tcl/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4225 | `ls -d /usr/lib/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4226 | `ls -d /usr/lib/tcl/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4227 | `ls -d /usr/local/lib64/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4228 | `ls -d /usr/local/lib64/tcl/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4229 | `ls -d /usr/local/lib/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4230 | `ls -d /usr/local/lib/tcl/tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4231 | ; do |
|---|
| 4232 | if test -f "$i/tclConfig.sh" ; then |
|---|
| 4233 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
|---|
| 4234 | break |
|---|
| 4235 | fi |
|---|
| 4236 | done |
|---|
| 4237 | fi |
|---|
| 4238 | |
|---|
| 4239 | # check in a few other private locations |
|---|
| 4240 | if test x"${ac_cv_c_tclconfig}" = x ; then |
|---|
| 4241 | for i in \ |
|---|
| 4242 | ${srcdir}/../tcl \ |
|---|
| 4243 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4244 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4245 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4246 | `ls -dr ../tcl-[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4247 | `ls -dr ../tcl-[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4248 | `ls -dr ../tcl-[8-9].[0-9]* 2>/dev/null` ; do |
|---|
| 4249 | if test -f "$i/unix/tclConfig.sh" ; then |
|---|
| 4250 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
|---|
| 4251 | break |
|---|
| 4252 | fi |
|---|
| 4253 | done |
|---|
| 4254 | fi |
|---|
| 4255 | |
|---|
| 4256 | fi |
|---|
| 4257 | |
|---|
| 4258 | |
|---|
| 4259 | if test x"${ac_cv_c_tclconfig}" = x ; then |
|---|
| 4260 | TCL_BIN_DIR="# no Tcl configs found" |
|---|
| 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 |
|---|
| 4262 | $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
|---|
| 4263 | exit 0 |
|---|
| 4264 | else |
|---|
| 4265 | no_tcl= |
|---|
| 4266 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
|---|
| 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
|---|
| 4268 | $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } |
|---|
| 4269 | fi |
|---|
| 4270 | fi |
|---|
| 4271 | |
|---|
| 4272 | |
|---|
| 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
|---|
| 4274 | $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } |
|---|
| 4275 | |
|---|
| 4276 | if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then |
|---|
| 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 |
|---|
| 4278 | $as_echo "loading" >&6; } |
|---|
| 4279 | . "${TCL_BIN_DIR}/tclConfig.sh" |
|---|
| 4280 | else |
|---|
| 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
|---|
| 4282 | $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } |
|---|
| 4283 | fi |
|---|
| 4284 | |
|---|
| 4285 | # eval is required to do the TCL_DBGX substitution |
|---|
| 4286 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
|---|
| 4287 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
|---|
| 4288 | |
|---|
| 4289 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
|---|
| 4290 | # then set the common variable name to the value of the build variables. |
|---|
| 4291 | # For example, the variable TCL_LIB_SPEC will be set to the value |
|---|
| 4292 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
|---|
| 4293 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
|---|
| 4294 | # installed and uninstalled version of Tcl. |
|---|
| 4295 | if test -f "${TCL_BIN_DIR}/Makefile" ; then |
|---|
| 4296 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
|---|
| 4297 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
|---|
| 4298 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
|---|
| 4299 | elif test "`uname -s`" = "Darwin"; then |
|---|
| 4300 | # If Tcl was built as a framework, attempt to use the libraries |
|---|
| 4301 | # from the framework at the given location so that linking works |
|---|
| 4302 | # against Tcl.framework installed in an arbitary location. |
|---|
| 4303 | case ${TCL_DEFS} in |
|---|
| 4304 | *TCL_FRAMEWORK*) |
|---|
| 4305 | if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then |
|---|
| 4306 | for i in "`cd ${TCL_BIN_DIR}; pwd`" \ |
|---|
| 4307 | "`cd ${TCL_BIN_DIR}/../..; pwd`"; do |
|---|
| 4308 | if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then |
|---|
| 4309 | TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" |
|---|
| 4310 | break |
|---|
| 4311 | fi |
|---|
| 4312 | done |
|---|
| 4313 | fi |
|---|
| 4314 | if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then |
|---|
| 4315 | TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" |
|---|
| 4316 | TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" |
|---|
| 4317 | fi |
|---|
| 4318 | ;; |
|---|
| 4319 | esac |
|---|
| 4320 | fi |
|---|
| 4321 | |
|---|
| 4322 | # eval is required to do the TCL_DBGX substitution |
|---|
| 4323 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
|---|
| 4324 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
|---|
| 4325 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
|---|
| 4326 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
|---|
| 4327 | |
|---|
| 4328 | |
|---|
| 4329 | |
|---|
| 4330 | |
|---|
| 4331 | |
|---|
| 4332 | |
|---|
| 4333 | |
|---|
| 4334 | |
|---|
| 4335 | |
|---|
| 4336 | |
|---|
| 4337 | |
|---|
| 4338 | |
|---|
| 4339 | |
|---|
| 4340 | |
|---|
| 4341 | |
|---|
| 4342 | V_ZVFS="" |
|---|
| 4343 | V_ZVFS_OBJS="" |
|---|
| 4344 | V_ZVFS_ZIP="" |
|---|
| 4345 | V_TCL2CPP_OBJS="" |
|---|
| 4346 | V_TCL2CPP_VDD_OBJS="" |
|---|
| 4347 | V_TCL2CPP_H261_PLAY_OBJS="" |
|---|
| 4348 | V_TCL2CPP_JPEG_PLAY_OBJS="" |
|---|
| 4349 | V_TCL_PLATFORM="" |
|---|
| 4350 | V_TKBASE_RC="" |
|---|
| 4351 | RC_PROG="" |
|---|
| 4352 | zvfs="no" |
|---|
| 4353 | |
|---|
| 4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compatible version of Tcl" >&5 |
|---|
| 4355 | $as_echo_n "checking for a compatible version of Tcl... " >&6; } |
|---|
| 4356 | if test "${TCL_MAJOR_VERSION}" -gt 8 \ |
|---|
| 4357 | -o \( "${TCL_MAJOR_VERSION}" -eq 8 -a "${TCL_MINOR_VERSION}" -ge 4 \); then |
|---|
| 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&5 |
|---|
| 4359 | $as_echo "Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&6; } |
|---|
| 4360 | |
|---|
| 4361 | if test "$aquatcl" = yes; then |
|---|
| 4362 | echo "Using AquaTCL" |
|---|
| 4363 | V_DEFINE="$V_DEFINE -DMAC_OSX_TCL" |
|---|
| 4364 | fi |
|---|
| 4365 | |
|---|
| 4366 | # Check whether --enable-zvfs was given. |
|---|
| 4367 | if test "${enable_zvfs+set}" = set; then : |
|---|
| 4368 | enableval=$enable_zvfs; zvfs="yes" |
|---|
| 4369 | else |
|---|
| 4370 | zvfs="no" |
|---|
| 4371 | fi |
|---|
| 4372 | |
|---|
| 4373 | if test "$zvfs" = "yes" ; then |
|---|
| 4374 | echo "Using ZVFS" |
|---|
| 4375 | |
|---|
| 4376 | # Check whether --with-zipprog was given. |
|---|
| 4377 | if test "${with_zipprog+set}" = set; then : |
|---|
| 4378 | withval=$with_zipprog; zipprog=$withval |
|---|
| 4379 | else |
|---|
| 4380 | zipprog=zip |
|---|
| 4381 | fi |
|---|
| 4382 | |
|---|
| 4383 | # Extract the first word of ""$zipprog"", so it can be a program name with args. |
|---|
| 4384 | set dummy "$zipprog"; ac_word=$2 |
|---|
| 4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4386 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4387 | if ${ac_cv_prog_ZIP_PROG+:} false; then : |
|---|
| 4388 | $as_echo_n "(cached) " >&6 |
|---|
| 4389 | else |
|---|
| 4390 | if test -n "$ZIP_PROG"; then |
|---|
| 4391 | ac_cv_prog_ZIP_PROG="$ZIP_PROG" # Let the user override the test. |
|---|
| 4392 | else |
|---|
| 4393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4394 | for as_dir in $PATH |
|---|
| 4395 | do |
|---|
| 4396 | IFS=$as_save_IFS |
|---|
| 4397 | test -z "$as_dir" && as_dir=. |
|---|
| 4398 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4400 | ac_cv_prog_ZIP_PROG="$zipprog" |
|---|
| 4401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4402 | break 2 |
|---|
| 4403 | fi |
|---|
| 4404 | done |
|---|
| 4405 | done |
|---|
| 4406 | IFS=$as_save_IFS |
|---|
| 4407 | |
|---|
| 4408 | test -z "$ac_cv_prog_ZIP_PROG" && ac_cv_prog_ZIP_PROG="""" |
|---|
| 4409 | fi |
|---|
| 4410 | fi |
|---|
| 4411 | ZIP_PROG=$ac_cv_prog_ZIP_PROG |
|---|
| 4412 | if test -n "$ZIP_PROG"; then |
|---|
| 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP_PROG" >&5 |
|---|
| 4414 | $as_echo "$ZIP_PROG" >&6; } |
|---|
| 4415 | else |
|---|
| 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4417 | $as_echo "no" >&6; } |
|---|
| 4418 | fi |
|---|
| 4419 | |
|---|
| 4420 | |
|---|
| 4421 | if test "${ZIP_PROG}" = ""; then : |
|---|
| 4422 | |
|---|
| 4423 | as_fn_error $? "Required zip tool '$zipprog' not found on PATH." "$LINENO" 5 |
|---|
| 4424 | |
|---|
| 4425 | fi |
|---|
| 4426 | |
|---|
| 4427 | V_ZVFS="-DUSE_ZVFS" |
|---|
| 4428 | V_ZVFS_OBJS=zvfs.o |
|---|
| 4429 | V_ZVFS_ZIP=vic-zvfs.zip |
|---|
| 4430 | |
|---|
| 4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 |
|---|
| 4432 | $as_echo_n "checking for tclsh... " >&6; } |
|---|
| 4433 | if ${ac_cv_path_tclsh+:} false; then : |
|---|
| 4434 | $as_echo_n "(cached) " >&6 |
|---|
| 4435 | else |
|---|
| 4436 | |
|---|
| 4437 | search_path=`echo ${PATH} | sed -e 's/:/ /g'` |
|---|
| 4438 | for dir in $search_path ; do |
|---|
| 4439 | for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ |
|---|
| 4440 | `ls -r $dir/tclsh* 2> /dev/null` ; do |
|---|
| 4441 | if test x"$ac_cv_path_tclsh" = x ; then |
|---|
| 4442 | if test -f "$j" ; then |
|---|
| 4443 | ac_cv_path_tclsh=$j |
|---|
| 4444 | break |
|---|
| 4445 | fi |
|---|
| 4446 | fi |
|---|
| 4447 | done |
|---|
| 4448 | done |
|---|
| 4449 | |
|---|
| 4450 | fi |
|---|
| 4451 | |
|---|
| 4452 | |
|---|
| 4453 | if test -f "$ac_cv_path_tclsh" ; then |
|---|
| 4454 | TCLSH_PROG="$ac_cv_path_tclsh" |
|---|
| 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_PROG" >&5 |
|---|
| 4456 | $as_echo "$TCLSH_PROG" >&6; } |
|---|
| 4457 | else |
|---|
| 4458 | # It is not an error if an installed version of Tcl can't be located. |
|---|
| 4459 | TCLSH_PROG="" |
|---|
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: No tclsh found on PATH" >&5 |
|---|
| 4461 | $as_echo "No tclsh found on PATH" >&6; } |
|---|
| 4462 | fi |
|---|
| 4463 | |
|---|
| 4464 | |
|---|
| 4465 | fi |
|---|
| 4466 | elif test "${TCL_VERSION}" = "8.0" ; then |
|---|
| 4467 | if test -f "${TCL_SRC_DIR}/generic/tcl2c.c" ; then |
|---|
| 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: UCL Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&5 |
|---|
| 4469 | $as_echo "UCL Tcl ${TCL_VERSION}${TCL_PATCH_LEVEL}" >&6; } |
|---|
| 4470 | else |
|---|
| 4471 | as_fn_error $? "Found Tcl 8.0 which is not UCL Tcl 8.0" "$LINENO" 5 |
|---|
| 4472 | fi |
|---|
| 4473 | else |
|---|
| 4474 | as_fn_error $? "Tcl $TCL_VERSION, compatible Tcl for VIC not found |
|---|
| 4475 | Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl." "$LINENO" 5 |
|---|
| 4476 | fi |
|---|
| 4477 | |
|---|
| 4478 | if test "$zvfs" == "no" ; then |
|---|
| 4479 | V_TCL2CPP_OBJS="\$(TCL_VIC:.tcl=.o)" |
|---|
| 4480 | V_TCL2CPP_VDD_OBJS="ui-vdd.o" |
|---|
| 4481 | V_TCL2CPP_H261_PLAY_OBJS="ui-h261_play.o" |
|---|
| 4482 | V_TCL2CPP_JPEG_PLAY_OBJS="ui-jpeg_play.o" |
|---|
| 4483 | fi |
|---|
| 4484 | |
|---|
| 4485 | |
|---|
| 4486 | # |
|---|
| 4487 | # Ok, lets find the tk configuration |
|---|
| 4488 | # First, look for one uninstalled. |
|---|
| 4489 | # the alternative search directory is invoked by --with-tk |
|---|
| 4490 | # |
|---|
| 4491 | |
|---|
| 4492 | if test x"${no_tk}" = x ; then |
|---|
| 4493 | # we reset no_tk in case something fails here |
|---|
| 4494 | no_tk=true |
|---|
| 4495 | |
|---|
| 4496 | # Check whether --with-tk was given. |
|---|
| 4497 | if test "${with_tk+set}" = set; then : |
|---|
| 4498 | withval=$with_tk; with_tkconfig=${withval} |
|---|
| 4499 | fi |
|---|
| 4500 | |
|---|
| 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5 |
|---|
| 4502 | $as_echo_n "checking for Tk configuration... " >&6; } |
|---|
| 4503 | if ${ac_cv_c_tkconfig+:} false; then : |
|---|
| 4504 | $as_echo_n "(cached) " >&6 |
|---|
| 4505 | else |
|---|
| 4506 | |
|---|
| 4507 | |
|---|
| 4508 | # First check to see if --with-tkconfig was specified. |
|---|
| 4509 | if test x"${with_tkconfig}" != x ; then |
|---|
| 4510 | case ${with_tkconfig} in |
|---|
| 4511 | */tkConfig.sh ) |
|---|
| 4512 | if test -f ${with_tkconfig}; then |
|---|
| 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 |
|---|
| 4514 | $as_echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} |
|---|
| 4515 | with_tkconfig=`echo ${with_tkconfig} | sed 's!/tkConfig\.sh$!!'` |
|---|
| 4516 | fi ;; |
|---|
| 4517 | esac |
|---|
| 4518 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
|---|
| 4519 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
|---|
| 4520 | else |
|---|
| 4521 | as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5 |
|---|
| 4522 | fi |
|---|
| 4523 | fi |
|---|
| 4524 | |
|---|
| 4525 | # then check for a private Tk library |
|---|
| 4526 | if test x"${ac_cv_c_tkconfig}" = x ; then |
|---|
| 4527 | for i in \ |
|---|
| 4528 | ../tk \ |
|---|
| 4529 | `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4530 | `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4531 | `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` ; do |
|---|
| 4532 | if test -f "$i/unix/tkConfig.sh" ; then |
|---|
| 4533 | ac_cv_c_tkconfig=`(cd $i/unix; pwd)` |
|---|
| 4534 | break |
|---|
| 4535 | fi |
|---|
| 4536 | done |
|---|
| 4537 | fi |
|---|
| 4538 | |
|---|
| 4539 | # on Darwin, check in Framework installation locations |
|---|
| 4540 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then |
|---|
| 4541 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ |
|---|
| 4542 | `ls -d /Library/Frameworks 2>/dev/null` \ |
|---|
| 4543 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ |
|---|
| 4544 | `ls -d /System/Library/Frameworks 2>/dev/null` \ |
|---|
| 4545 | ; do |
|---|
| 4546 | if test -f "$i/Tk.framework/tkConfig.sh" ; then |
|---|
| 4547 | ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` |
|---|
| 4548 | break |
|---|
| 4549 | fi |
|---|
| 4550 | done |
|---|
| 4551 | fi |
|---|
| 4552 | |
|---|
| 4553 | # check in a few common install locations |
|---|
| 4554 | if test x"${ac_cv_c_tkconfig}" = x ; then |
|---|
| 4555 | for i in `ls -d ${libdir} 2>/dev/null` \ |
|---|
| 4556 | `ls -d ${exec_prefix}/lib64 2>/dev/null` \ |
|---|
| 4557 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ |
|---|
| 4558 | `ls -d ${prefix}/lib64 2>/dev/null` \ |
|---|
| 4559 | `ls -d ${prefix}/lib 2>/dev/null` \ |
|---|
| 4560 | `ls -d /usr/local/lib64 2>/dev/null` \ |
|---|
| 4561 | `ls -d /usr/local/lib 2>/dev/null` \ |
|---|
| 4562 | `ls -d /usr/contrib/lib64 2>/dev/null` \ |
|---|
| 4563 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
|---|
| 4564 | `ls -d /usr/lib64 2>/dev/null` \ |
|---|
| 4565 | `ls -d /usr/lib 2>/dev/null` \ |
|---|
| 4566 | `ls -d /usr/lib64/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4567 | `ls -d /usr/lib64/tcl/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4568 | `ls -d /usr/lib/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4569 | `ls -d /usr/lib/tcl/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4570 | `ls -d /usr/local/lib64/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4571 | `ls -d /usr/local/lib64/tcl/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4572 | `ls -d /usr/local/lib/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4573 | `ls -d /usr/local/lib/tcl/tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4574 | ; do |
|---|
| 4575 | if test -f "$i/tkConfig.sh" ; then |
|---|
| 4576 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
|---|
| 4577 | break |
|---|
| 4578 | fi |
|---|
| 4579 | done |
|---|
| 4580 | fi |
|---|
| 4581 | |
|---|
| 4582 | # check in a few other private locations |
|---|
| 4583 | if test x"${ac_cv_c_tkconfig}" = x ; then |
|---|
| 4584 | for i in \ |
|---|
| 4585 | ${srcdir}/../tk \ |
|---|
| 4586 | `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4587 | `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4588 | `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` \ |
|---|
| 4589 | `ls -dr ../tk-[8-9].[0-9].[0-9]* 2>/dev/null` \ |
|---|
| 4590 | `ls -dr ../tk-[8-9].[0-9] 2>/dev/null` \ |
|---|
| 4591 | `ls -dr ../tk-[8-9].[0-9]* 2>/dev/null` ; do |
|---|
| 4592 | if test -f "$i/unix/tkConfig.sh" ; then |
|---|
| 4593 | ac_cv_c_tkconfig=`(cd $i/unix; pwd)` |
|---|
| 4594 | break |
|---|
| 4595 | fi |
|---|
| 4596 | done |
|---|
| 4597 | fi |
|---|
| 4598 | |
|---|
| 4599 | fi |
|---|
| 4600 | |
|---|
| 4601 | |
|---|
| 4602 | if test x"${ac_cv_c_tkconfig}" = x ; then |
|---|
| 4603 | TK_BIN_DIR="# no Tk configs found" |
|---|
| 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5 |
|---|
| 4605 | $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} |
|---|
| 4606 | exit 0 |
|---|
| 4607 | else |
|---|
| 4608 | no_tk= |
|---|
| 4609 | TK_BIN_DIR=${ac_cv_c_tkconfig} |
|---|
| 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 |
|---|
| 4611 | $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; } |
|---|
| 4612 | fi |
|---|
| 4613 | fi |
|---|
| 4614 | |
|---|
| 4615 | |
|---|
| 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 |
|---|
| 4617 | $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; } |
|---|
| 4618 | |
|---|
| 4619 | if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then |
|---|
| 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 |
|---|
| 4621 | $as_echo "loading" >&6; } |
|---|
| 4622 | . "${TK_BIN_DIR}/tkConfig.sh" |
|---|
| 4623 | else |
|---|
| 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 |
|---|
| 4625 | $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } |
|---|
| 4626 | fi |
|---|
| 4627 | |
|---|
| 4628 | # eval is required to do the TK_DBGX substitution |
|---|
| 4629 | eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" |
|---|
| 4630 | eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" |
|---|
| 4631 | |
|---|
| 4632 | # If the TK_BIN_DIR is the build directory (not the install directory), |
|---|
| 4633 | # then set the common variable name to the value of the build variables. |
|---|
| 4634 | # For example, the variable TK_LIB_SPEC will be set to the value |
|---|
| 4635 | # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC |
|---|
| 4636 | # instead of TK_BUILD_LIB_SPEC since it will work with both an |
|---|
| 4637 | # installed and uninstalled version of Tcl. |
|---|
| 4638 | if test -f "${TK_BIN_DIR}/Makefile" ; then |
|---|
| 4639 | TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} |
|---|
| 4640 | TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} |
|---|
| 4641 | TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} |
|---|
| 4642 | elif test "`uname -s`" = "Darwin"; then |
|---|
| 4643 | # If Tk was built as a framework, attempt to use the libraries |
|---|
| 4644 | # from the framework at the given location so that linking works |
|---|
| 4645 | # against Tk.framework installed in an arbitary location. |
|---|
| 4646 | case ${TK_DEFS} in |
|---|
| 4647 | *TK_FRAMEWORK*) |
|---|
| 4648 | if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then |
|---|
| 4649 | for i in "`cd ${TK_BIN_DIR}; pwd`" \ |
|---|
| 4650 | "`cd ${TK_BIN_DIR}/../..; pwd`"; do |
|---|
| 4651 | if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then |
|---|
| 4652 | TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" |
|---|
| 4653 | break |
|---|
| 4654 | fi |
|---|
| 4655 | done |
|---|
| 4656 | fi |
|---|
| 4657 | if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then |
|---|
| 4658 | TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" |
|---|
| 4659 | TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" |
|---|
| 4660 | fi |
|---|
| 4661 | ;; |
|---|
| 4662 | esac |
|---|
| 4663 | fi |
|---|
| 4664 | |
|---|
| 4665 | # eval is required to do the TK_DBGX substitution |
|---|
| 4666 | eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" |
|---|
| 4667 | eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" |
|---|
| 4668 | eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" |
|---|
| 4669 | eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" |
|---|
| 4670 | |
|---|
| 4671 | |
|---|
| 4672 | |
|---|
| 4673 | |
|---|
| 4674 | |
|---|
| 4675 | |
|---|
| 4676 | |
|---|
| 4677 | |
|---|
| 4678 | |
|---|
| 4679 | |
|---|
| 4680 | |
|---|
| 4681 | |
|---|
| 4682 | |
|---|
| 4683 | |
|---|
| 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compatible version of Tk" >&5 |
|---|
| 4685 | $as_echo_n "checking for a compatible version of Tk... " >&6; } |
|---|
| 4686 | if test "${TCL_VERSION}" = "${TK_VERSION}"; then |
|---|
| 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tk ${TK_VERSION}${TK_PATCH_LEVEL}" >&5 |
|---|
| 4688 | $as_echo "Tk ${TK_VERSION}${TK_PATCH_LEVEL}" >&6; } |
|---|
| 4689 | |
|---|
| 4690 | if test "$aquatk" = yes; then |
|---|
| 4691 | echo "Using AquaTk" |
|---|
| 4692 | V_DEFINE="$V_DEFINE -DMAC_OSX_TK" |
|---|
| 4693 | fi |
|---|
| 4694 | |
|---|
| 4695 | else |
|---|
| 4696 | as_fn_error $? "${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. |
|---|
| 4697 | ${TK_BIN_DIR}/tkConfig.sh is for Tk ${TK_VERSION}. |
|---|
| 4698 | Tk ${TK_VERSION} needs Tcl ${TK_VERSION} |
|---|
| 4699 | Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl. |
|---|
| 4700 | Use --with-tk= option to indicate location of tkConfig.sh file for Tk." "$LINENO" 5 |
|---|
| 4701 | fi |
|---|
| 4702 | |
|---|
| 4703 | if test -f "${TCL_BIN_DIR}/Makefile" ; then |
|---|
| 4704 | # dealing with Tcl source tree |
|---|
| 4705 | V_INCLUDE_TCL="-I${TCL_SRC_DIR}/generic" |
|---|
| 4706 | V_LIBRARY_TCL="${TCL_SRC_DIR}/library" |
|---|
| 4707 | V_LIB_TCL="-L${TCL_SRC_DIR}/unix ${TCL_LIB_FLAG}" |
|---|
| 4708 | case "$target" in |
|---|
| 4709 | *-*-mingw*) |
|---|
| 4710 | V_LIB_TCL="-L${TCL_SRC_DIR}/win ${TCL_LIB_FLAG}" |
|---|
| 4711 | if test -f "${TK_SRC_DIR}/win/rc/tk_base.rc" ; then |
|---|
| 4712 | |
|---|
| 4713 | # Check whether --with-rcprog was given. |
|---|
| 4714 | if test "${with_rcprog+set}" = set; then : |
|---|
| 4715 | withval=$with_rcprog; rcprog=$withval |
|---|
| 4716 | else |
|---|
| 4717 | rcprog=windres |
|---|
| 4718 | fi |
|---|
| 4719 | |
|---|
| 4720 | # Extract the first word of ""$rcprog"", so it can be a program name with args. |
|---|
| 4721 | set dummy "$rcprog"; ac_word=$2 |
|---|
| 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4723 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4724 | if ${ac_cv_prog_RC_PROG+:} false; then : |
|---|
| 4725 | $as_echo_n "(cached) " >&6 |
|---|
| 4726 | else |
|---|
| 4727 | if test -n "$RC_PROG"; then |
|---|
| 4728 | ac_cv_prog_RC_PROG="$RC_PROG" # Let the user override the test. |
|---|
| 4729 | else |
|---|
| 4730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4731 | for as_dir in $PATH |
|---|
| 4732 | do |
|---|
| 4733 | IFS=$as_save_IFS |
|---|
| 4734 | test -z "$as_dir" && as_dir=. |
|---|
| 4735 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4737 | ac_cv_prog_RC_PROG="$rcprog" |
|---|
| 4738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4739 | break 2 |
|---|
| 4740 | fi |
|---|
| 4741 | done |
|---|
| 4742 | done |
|---|
| 4743 | IFS=$as_save_IFS |
|---|
| 4744 | |
|---|
| 4745 | test -z "$ac_cv_prog_RC_PROG" && ac_cv_prog_RC_PROG="""" |
|---|
| 4746 | fi |
|---|
| 4747 | fi |
|---|
| 4748 | RC_PROG=$ac_cv_prog_RC_PROG |
|---|
| 4749 | if test -n "$RC_PROG"; then |
|---|
| 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_PROG" >&5 |
|---|
| 4751 | $as_echo "$RC_PROG" >&6; } |
|---|
| 4752 | else |
|---|
| 4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4754 | $as_echo "no" >&6; } |
|---|
| 4755 | fi |
|---|
| 4756 | |
|---|
| 4757 | |
|---|
| 4758 | if test "${RC_PROG}" = ""; then : |
|---|
| 4759 | as_fn_error $? "Required rc tool '$rcprog' not found on PATH." "$LINENO" 5 |
|---|
| 4760 | fi |
|---|
| 4761 | echo "Linking in TK Windows Resources" |
|---|
| 4762 | V_TCL2CPP_OBJS="$V_TCL2CPP_OBJS tk_base.o" |
|---|
| 4763 | V_TKBASE_RC="${TK_SRC_DIR}/win/rc/tk_base.rc" |
|---|
| 4764 | fi |
|---|
| 4765 | ;; |
|---|
| 4766 | *) |
|---|
| 4767 | V_LIB_TCL="-L${TCL_SRC_DIR}/unix ${TCL_LIB_FLAG}" |
|---|
| 4768 | ;; |
|---|
| 4769 | esac |
|---|
| 4770 | |
|---|
| 4771 | else |
|---|
| 4772 | # dealing with Tcl system install |
|---|
| 4773 | |
|---|
| 4774 | if test -d "${TCL_BIN_DIR}/Headers" ; then |
|---|
| 4775 | # Darwin / MacOS X |
|---|
| 4776 | V_INCLUDE_TCL=-I${TCL_BIN_DIR}/Headers |
|---|
| 4777 | V_LIBRARY_TCL=${TCL_BIN_DIR}/Resources/Scripts |
|---|
| 4778 | |
|---|
| 4779 | else |
|---|
| 4780 | V_INCLUDE_TCL=$TCL_INCLUDE_SPEC |
|---|
| 4781 | |
|---|
| 4782 | V_LIBRARY_TCL=FAIL |
|---|
| 4783 | for dir in $TCL_PACKAGE_PATH; do |
|---|
| 4784 | if test -r "${dir}/init.tcl" ; then |
|---|
| 4785 | V_LIBRARY_TCL=$dir |
|---|
| 4786 | break |
|---|
| 4787 | elif test -r "${dir}/tcl${TCL_VERSION}/init.tcl" ; then |
|---|
| 4788 | V_LIBRARY_TCL="${dir}/tcl${TCL_VERSION}" |
|---|
| 4789 | break |
|---|
| 4790 | elif test -r "${dir}/tcl/tcl${TCL_VERSION}/init.tcl" ; then |
|---|
| 4791 | V_LIBRARY_TCL="${dir}/tcl/tcl${TCL_VERSION}" |
|---|
| 4792 | break |
|---|
| 4793 | fi |
|---|
| 4794 | done |
|---|
| 4795 | if test $V_LIBRARY_TCL = FAIL ; then |
|---|
| 4796 | echo "can't find init.tcl in ${TCL_PACKAGE_PATH}" |
|---|
| 4797 | exit 1 |
|---|
| 4798 | fi |
|---|
| 4799 | fi |
|---|
| 4800 | V_LIB_TCL=`echo $TCL_LIB_SPEC | sed 's#-L/usr/lib[0-9]* ##'` |
|---|
| 4801 | fi |
|---|
| 4802 | |
|---|
| 4803 | case "$target" in |
|---|
| 4804 | *-*-mingw*) |
|---|
| 4805 | V_TCL_PLATFORM="ui-win32.tcl" |
|---|
| 4806 | ;; |
|---|
| 4807 | *) |
|---|
| 4808 | V_TCL_PLATFORM="ui-unix.tcl" |
|---|
| 4809 | ;; |
|---|
| 4810 | esac |
|---|
| 4811 | |
|---|
| 4812 | |
|---|
| 4813 | |
|---|
| 4814 | |
|---|
| 4815 | |
|---|
| 4816 | |
|---|
| 4817 | |
|---|
| 4818 | if test -f "${TK_BIN_DIR}/Makefile" ; then |
|---|
| 4819 | # dealing with Tk source tree |
|---|
| 4820 | V_LIBRARY_TK="${TK_SRC_DIR}/library" |
|---|
| 4821 | case "$target" in |
|---|
| 4822 | *-*-mingw*) |
|---|
| 4823 | V_INCLUDE_TK="-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/xlib" |
|---|
| 4824 | V_LIB_TK="-L${TK_SRC_DIR}/win ${TK_LIB_FLAG}" |
|---|
| 4825 | ;; |
|---|
| 4826 | *) |
|---|
| 4827 | V_INCLUDE_TK="-I${TK_SRC_DIR}/generic" |
|---|
| 4828 | V_LIB_TK="-L${TK_SRC_DIR}/unix ${TK_LIB_FLAG}" |
|---|
| 4829 | ;; |
|---|
| 4830 | esac |
|---|
| 4831 | |
|---|
| 4832 | else |
|---|
| 4833 | # dealing with Tk system install |
|---|
| 4834 | |
|---|
| 4835 | if test -d "${TK_BIN_DIR}/Headers" ; then |
|---|
| 4836 | # Darwin / MacOS X |
|---|
| 4837 | |
|---|
| 4838 | if test ! -f "${TK_BIN_DIR}/PrivateHeaders/tkInt.h" ; then |
|---|
| 4839 | as_fn_error $? "${TK_BIN_DIR}/PrivateHeaders/tkInt.h not found. |
|---|
| 4840 | Use --with-tk= option to indicate location of tkConfig.sh file for a Tk |
|---|
| 4841 | which comes with the PrivateHeaders folder." "$LINENO" 5 |
|---|
| 4842 | fi |
|---|
| 4843 | |
|---|
| 4844 | V_INCLUDE_TK="-I${TK_BIN_DIR}/Headers -I${TK_BIN_DIR}/PrivateHeaders" |
|---|
| 4845 | V_LIBRARY_TK=${TK_BIN_DIR}/Resources/Scripts |
|---|
| 4846 | |
|---|
| 4847 | else |
|---|
| 4848 | V_INCLUDE_TK=$TK_INCLUDE_SPEC |
|---|
| 4849 | |
|---|
| 4850 | V_LIBRARY_TK=FAIL |
|---|
| 4851 | TK_PACKAGE_PATH=`echo $TCL_PACKAGE_PATH | sed 's/tcl/tk/g'` |
|---|
| 4852 | TK_PACKAGE_PATH="$TK_PACKAGE_PATH $TCL_PACKAGE_PATH" |
|---|
| 4853 | for dir in $TK_PACKAGE_PATH; do |
|---|
| 4854 | if test -r "${dir}/tk.tcl" ; then |
|---|
| 4855 | V_LIBRARY_TK=$dir |
|---|
| 4856 | break |
|---|
| 4857 | elif test -r "${dir}/tk${TK_VERSION}/tk.tcl" ; then |
|---|
| 4858 | V_LIBRARY_TK="${dir}/tk${TK_VERSION}" |
|---|
| 4859 | break |
|---|
| 4860 | elif test -r "${dir}/tcl/tk${TK_VERSION}/tk.tcl" ; then |
|---|
| 4861 | V_LIBRARY_TK="${dir}/tcl/tk${TK_VERSION}" |
|---|
| 4862 | break |
|---|
| 4863 | fi |
|---|
| 4864 | done |
|---|
| 4865 | fi |
|---|
| 4866 | |
|---|
| 4867 | if test $V_LIBRARY_TK = FAIL ; then |
|---|
| 4868 | echo "can't find tk.tcl in ${TK_PACKAGE_PATH}" |
|---|
| 4869 | exit 1 |
|---|
| 4870 | fi |
|---|
| 4871 | V_LIB_TK=`echo $TK_LIB_SPEC | sed 's#-L/usr/lib[0-9]* ##'` |
|---|
| 4872 | fi |
|---|
| 4873 | |
|---|
| 4874 | V_INCLUDE_X11=$TK_XINCLUDES |
|---|
| 4875 | V_LIB_X11=$TK_XLIBSW |
|---|
| 4876 | |
|---|
| 4877 | # if using X11 shared memory add -lXext if not already supplied |
|---|
| 4878 | if test $V_SHM = "-DUSE_SHM" -a "$aquatcl" != yes -a "$mingw" != "yes"; then |
|---|
| 4879 | echo $TK_XLIBSW | grep "\-lXext" > /dev/null 2>&1 |
|---|
| 4880 | if test $? -ne 0 ; then |
|---|
| 4881 | V_LIB_X11="$V_LIB_X11 -lXext" |
|---|
| 4882 | fi |
|---|
| 4883 | fi |
|---|
| 4884 | |
|---|
| 4885 | |
|---|
| 4886 | |
|---|
| 4887 | |
|---|
| 4888 | |
|---|
| 4889 | |
|---|
| 4890 | |
|---|
| 4891 | |
|---|
| 4892 | |
|---|
| 4893 | |
|---|
| 4894 | |
|---|
| 4895 | |
|---|
| 4896 | |
|---|
| 4897 | |
|---|
| 4898 | |
|---|
| 4899 | |
|---|
| 4900 | |
|---|
| 4901 | |
|---|
| 4902 | |
|---|
| 4903 | |
|---|
| 4904 | #XXX |
|---|
| 4905 | V_STATIC="-static" |
|---|
| 4906 | V_LIB_GRABBER="" |
|---|
| 4907 | V_INCLUDE_GRABBER="" |
|---|
| 4908 | V_OBJ_GRABBER="" |
|---|
| 4909 | V_LIB_XIL="" |
|---|
| 4910 | V_OBJ_XIL="" |
|---|
| 4911 | V_LIB_FFMPEG="" |
|---|
| 4912 | V_LIB_X264="" |
|---|
| 4913 | V_DDRAW="" |
|---|
| 4914 | |
|---|
| 4915 | |
|---|
| 4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy version of GCC-2.96" >&5 |
|---|
| 4917 | $as_echo_n "checking for buggy version of GCC-2.96... " >&6; } |
|---|
| 4918 | if test $CC = gcc ; then |
|---|
| 4919 | if $CC --version | grep 2.96 >&/dev/null; then |
|---|
| 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes - Turning off optimisation for dct code" >&5 |
|---|
| 4921 | $as_echo "Yes - Turning off optimisation for dct code" >&6; } |
|---|
| 4922 | V_CCOPT_H261=""; |
|---|
| 4923 | else |
|---|
| 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4925 | $as_echo "no" >&6; } |
|---|
| 4926 | fi |
|---|
| 4927 | fi |
|---|
| 4928 | |
|---|
| 4929 | if test -f codec/encoder-bvc.cpp ; then |
|---|
| 4930 | V_OBJ="$V_OBJ codec/encoder-bvc.o codec/decoder-bvc.o" |
|---|
| 4931 | fi |
|---|
| 4932 | |
|---|
| 4933 | |
|---|
| 4934 | # Check whether --with-aix-shm was given. |
|---|
| 4935 | if test "${with_aix_shm+set}" = set; then : |
|---|
| 4936 | withval=$with_aix_shm; lib=$withval |
|---|
| 4937 | else |
|---|
| 4938 | lib="" |
|---|
| 4939 | fi |
|---|
| 4940 | |
|---|
| 4941 | if test "$lib" != "" ; then |
|---|
| 4942 | if test ! -r $lib ; then |
|---|
| 4943 | echo "'$lib' does not exist" |
|---|
| 4944 | exit 1 |
|---|
| 4945 | fi |
|---|
| 4946 | V_LIB_AIXSHM=$lib |
|---|
| 4947 | else |
|---|
| 4948 | V_LIB_AIXSHM="" |
|---|
| 4949 | fi |
|---|
| 4950 | |
|---|
| 4951 | |
|---|
| 4952 | # Check whether --with-qcam was given. |
|---|
| 4953 | if test "${with_qcam+set}" = set; then : |
|---|
| 4954 | withval=$with_qcam; qcamdir=$withval |
|---|
| 4955 | else |
|---|
| 4956 | qcamdir="" |
|---|
| 4957 | fi |
|---|
| 4958 | |
|---|
| 4959 | if test "$qcamdir" != "" -a ! -r $qcamdir/qcam.h ; then |
|---|
| 4960 | echo "'$dir/qcam.h' does not exist" |
|---|
| 4961 | exit 1 |
|---|
| 4962 | fi |
|---|
| 4963 | |
|---|
| 4964 | |
|---|
| 4965 | V_DV="" |
|---|
| 4966 | # Check whether --enable-dvdecode was given. |
|---|
| 4967 | if test "${enable_dvdecode+set}" = set; then : |
|---|
| 4968 | enableval=$enable_dvdecode; dvdecode=yes |
|---|
| 4969 | else |
|---|
| 4970 | dvdecode=no |
|---|
| 4971 | fi |
|---|
| 4972 | |
|---|
| 4973 | if test "$dvdecode" = "yes"; then |
|---|
| 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldv" >&5 |
|---|
| 4975 | $as_echo_n "checking for main in -ldv... " >&6; } |
|---|
| 4976 | if ${ac_cv_lib_dv_main+:} false; then : |
|---|
| 4977 | $as_echo_n "(cached) " >&6 |
|---|
| 4978 | else |
|---|
| 4979 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4980 | LIBS="-ldv $LIBS" |
|---|
| 4981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4982 | /* end confdefs.h. */ |
|---|
| 4983 | |
|---|
| 4984 | |
|---|
| 4985 | int |
|---|
| 4986 | main () |
|---|
| 4987 | { |
|---|
| 4988 | return main (); |
|---|
| 4989 | ; |
|---|
| 4990 | return 0; |
|---|
| 4991 | } |
|---|
| 4992 | _ACEOF |
|---|
| 4993 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 4994 | ac_cv_lib_dv_main=yes |
|---|
| 4995 | else |
|---|
| 4996 | ac_cv_lib_dv_main=no |
|---|
| 4997 | fi |
|---|
| 4998 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 4999 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5000 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5001 | fi |
|---|
| 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dv_main" >&5 |
|---|
| 5003 | $as_echo "$ac_cv_lib_dv_main" >&6; } |
|---|
| 5004 | if test "x$ac_cv_lib_dv_main" = xyes; then : |
|---|
| 5005 | cat >>confdefs.h <<_ACEOF |
|---|
| 5006 | #define HAVE_LIBDV 1 |
|---|
| 5007 | _ACEOF |
|---|
| 5008 | |
|---|
| 5009 | LIBS="-ldv $LIBS" |
|---|
| 5010 | |
|---|
| 5011 | else |
|---|
| 5012 | |
|---|
| 5013 | echo "Error! libdv not available. Please install libdv." |
|---|
| 5014 | exit 1 |
|---|
| 5015 | |
|---|
| 5016 | fi |
|---|
| 5017 | |
|---|
| 5018 | for ac_header in libdv/dv.h |
|---|
| 5019 | do : |
|---|
| 5020 | ac_fn_c_check_header_mongrel "$LINENO" "libdv/dv.h" "ac_cv_header_libdv_dv_h" "$ac_includes_default" |
|---|
| 5021 | if test "x$ac_cv_header_libdv_dv_h" = xyes; then : |
|---|
| 5022 | cat >>confdefs.h <<_ACEOF |
|---|
| 5023 | #define HAVE_LIBDV_DV_H 1 |
|---|
| 5024 | _ACEOF |
|---|
| 5025 | |
|---|
| 5026 | else |
|---|
| 5027 | |
|---|
| 5028 | echo "Error! libdv/dv.h not found. Please install libdv developer package." |
|---|
| 5029 | exit 1 |
|---|
| 5030 | |
|---|
| 5031 | fi |
|---|
| 5032 | |
|---|
| 5033 | done |
|---|
| 5034 | |
|---|
| 5035 | V_OBJ="$V_OBJ codec/decoder-dv.o" |
|---|
| 5036 | V_DV="-DUSE_DVDECODER" |
|---|
| 5037 | V_LIB="$V_LIB -ldv" |
|---|
| 5038 | fi |
|---|
| 5039 | |
|---|
| 5040 | V_XV="" |
|---|
| 5041 | # Check whether --enable-xvideo was given. |
|---|
| 5042 | if test "${enable_xvideo+set}" = set; then : |
|---|
| 5043 | enableval=$enable_xvideo; xvideo=yes |
|---|
| 5044 | else |
|---|
| 5045 | xvideo=no |
|---|
| 5046 | fi |
|---|
| 5047 | |
|---|
| 5048 | if test "$xvideo" = "yes"; then |
|---|
| 5049 | |
|---|
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XvQueryExtension in -lXv_pic" >&5 |
|---|
| 5051 | $as_echo_n "checking for XvQueryExtension in -lXv_pic... " >&6; } |
|---|
| 5052 | if ${ac_cv_lib_Xv_pic_XvQueryExtension+:} false; then : |
|---|
| 5053 | $as_echo_n "(cached) " >&6 |
|---|
| 5054 | else |
|---|
| 5055 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5056 | LIBS="-lXv_pic -lXext $LIBS" |
|---|
| 5057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5058 | /* end confdefs.h. */ |
|---|
| 5059 | |
|---|
| 5060 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5061 | Use char because int might match the return type of a GCC |
|---|
| 5062 | builtin and then its argument prototype would still apply. */ |
|---|
| 5063 | #ifdef __cplusplus |
|---|
| 5064 | extern "C" |
|---|
| 5065 | #endif |
|---|
| 5066 | char XvQueryExtension (); |
|---|
| 5067 | int |
|---|
| 5068 | main () |
|---|
| 5069 | { |
|---|
| 5070 | return XvQueryExtension (); |
|---|
| 5071 | ; |
|---|
| 5072 | return 0; |
|---|
| 5073 | } |
|---|
| 5074 | _ACEOF |
|---|
| 5075 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5076 | ac_cv_lib_Xv_pic_XvQueryExtension=yes |
|---|
| 5077 | else |
|---|
| 5078 | ac_cv_lib_Xv_pic_XvQueryExtension=no |
|---|
| 5079 | fi |
|---|
| 5080 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5081 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5082 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5083 | fi |
|---|
| 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xv_pic_XvQueryExtension" >&5 |
|---|
| 5085 | $as_echo "$ac_cv_lib_Xv_pic_XvQueryExtension" >&6; } |
|---|
| 5086 | if test "x$ac_cv_lib_Xv_pic_XvQueryExtension" = xyes; then : |
|---|
| 5087 | HAVE_XVIDEO="yes" |
|---|
| 5088 | else |
|---|
| 5089 | HAVE_XVIDEO="no" |
|---|
| 5090 | fi |
|---|
| 5091 | |
|---|
| 5092 | if test $HAVE_XVIDEO = "yes"; then |
|---|
| 5093 | V_LIB="$V_LIB -lXv_pic" |
|---|
| 5094 | V_XV="-DHAVE_XVIDEO" |
|---|
| 5095 | V_OBJ="$V_OBJ render/xvideo.o" |
|---|
| 5096 | else |
|---|
| 5097 | |
|---|
| 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XvQueryExtension in -lXv" >&5 |
|---|
| 5099 | $as_echo_n "checking for XvQueryExtension in -lXv... " >&6; } |
|---|
| 5100 | if ${ac_cv_lib_Xv_XvQueryExtension+:} false; then : |
|---|
| 5101 | $as_echo_n "(cached) " >&6 |
|---|
| 5102 | else |
|---|
| 5103 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5104 | LIBS="-lXv -lXext $LIBS" |
|---|
| 5105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5106 | /* end confdefs.h. */ |
|---|
| 5107 | |
|---|
| 5108 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5109 | Use char because int might match the return type of a GCC |
|---|
| 5110 | builtin and then its argument prototype would still apply. */ |
|---|
| 5111 | #ifdef __cplusplus |
|---|
| 5112 | extern "C" |
|---|
| 5113 | #endif |
|---|
| 5114 | char XvQueryExtension (); |
|---|
| 5115 | int |
|---|
| 5116 | main () |
|---|
| 5117 | { |
|---|
| 5118 | return XvQueryExtension (); |
|---|
| 5119 | ; |
|---|
| 5120 | return 0; |
|---|
| 5121 | } |
|---|
| 5122 | _ACEOF |
|---|
| 5123 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5124 | ac_cv_lib_Xv_XvQueryExtension=yes |
|---|
| 5125 | else |
|---|
| 5126 | ac_cv_lib_Xv_XvQueryExtension=no |
|---|
| 5127 | fi |
|---|
| 5128 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5129 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5130 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5131 | fi |
|---|
| 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xv_XvQueryExtension" >&5 |
|---|
| 5133 | $as_echo "$ac_cv_lib_Xv_XvQueryExtension" >&6; } |
|---|
| 5134 | if test "x$ac_cv_lib_Xv_XvQueryExtension" = xyes; then : |
|---|
| 5135 | HAVE_XVIDEO="yes" |
|---|
| 5136 | else |
|---|
| 5137 | HAVE_XVIDEO="no" |
|---|
| 5138 | fi |
|---|
| 5139 | |
|---|
| 5140 | |
|---|
| 5141 | if test $HAVE_XVIDEO = "yes"; then |
|---|
| 5142 | V_XV="-DHAVE_XVIDEO" |
|---|
| 5143 | V_LIB="$V_LIB -lXv" |
|---|
| 5144 | V_OBJ="$V_OBJ render/xvideo.o" |
|---|
| 5145 | fi |
|---|
| 5146 | fi |
|---|
| 5147 | |
|---|
| 5148 | if test $HAVE_XVIDEO = "yes"; then |
|---|
| 5149 | for ac_header in X11/extensions/Xvlib.h |
|---|
| 5150 | do : |
|---|
| 5151 | ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xvlib.h" "ac_cv_header_X11_extensions_Xvlib_h" "$ac_includes_default" |
|---|
| 5152 | if test "x$ac_cv_header_X11_extensions_Xvlib_h" = xyes; then : |
|---|
| 5153 | cat >>confdefs.h <<_ACEOF |
|---|
| 5154 | #define HAVE_X11_EXTENSIONS_XVLIB_H 1 |
|---|
| 5155 | _ACEOF |
|---|
| 5156 | |
|---|
| 5157 | else |
|---|
| 5158 | |
|---|
| 5159 | echo "Error! \"X11/extensions/Xvlib.h\" not found. Please install \"libxv-dev\" package." |
|---|
| 5160 | exit 1 |
|---|
| 5161 | |
|---|
| 5162 | fi |
|---|
| 5163 | |
|---|
| 5164 | done |
|---|
| 5165 | |
|---|
| 5166 | fi |
|---|
| 5167 | fi |
|---|
| 5168 | |
|---|
| 5169 | |
|---|
| 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V4L support" >&5 |
|---|
| 5171 | $as_echo "$as_me: checking for V4L support" >&6;} |
|---|
| 5172 | ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" |
|---|
| 5173 | if test "x$ac_cv_header_linux_videodev_h" = xyes; then : |
|---|
| 5174 | have_videodev_h=yes; |
|---|
| 5175 | else |
|---|
| 5176 | ac_fn_c_check_header_mongrel "$LINENO" "/usr/local/include/linux/videodev.h" "ac_cv_header__usr_local_include_linux_videodev_h" "$ac_includes_default" |
|---|
| 5177 | if test "x$ac_cv_header__usr_local_include_linux_videodev_h" = xyes; then : |
|---|
| 5178 | have_videodev_h=yes; |
|---|
| 5179 | fi |
|---|
| 5180 | |
|---|
| 5181 | |
|---|
| 5182 | fi |
|---|
| 5183 | |
|---|
| 5184 | |
|---|
| 5185 | if test x$have_videodev_h = xyes; then |
|---|
| 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: suitable V4L support found... using linux/videodev.h" >&5 |
|---|
| 5187 | $as_echo "$as_me: suitable V4L support found... using linux/videodev.h" >&6;} |
|---|
| 5188 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-video4linux.o" |
|---|
| 5189 | have_V4L=yes |
|---|
| 5190 | fi |
|---|
| 5191 | |
|---|
| 5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V4L2 support" >&5 |
|---|
| 5193 | $as_echo "$as_me: checking for V4L2 support" >&6;} |
|---|
| 5194 | ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" |
|---|
| 5195 | if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : |
|---|
| 5196 | have_linux_videodev2_h=yes; |
|---|
| 5197 | fi |
|---|
| 5198 | |
|---|
| 5199 | |
|---|
| 5200 | ac_fn_c_check_header_mongrel "$LINENO" "sys/videodev2.h" "ac_cv_header_sys_videodev2_h" "$ac_includes_default" |
|---|
| 5201 | if test "x$ac_cv_header_sys_videodev2_h" = xyes; then : |
|---|
| 5202 | have_sys_videodev2_h=yes; |
|---|
| 5203 | fi |
|---|
| 5204 | |
|---|
| 5205 | |
|---|
| 5206 | ac_fn_c_check_header_mongrel "$LINENO" "sys/videoio.h" "ac_cv_header_sys_videoio_h" "$ac_includes_default" |
|---|
| 5207 | if test "x$ac_cv_header_sys_videoio_h" = xyes; then : |
|---|
| 5208 | have_sys_videoio_h=yes; |
|---|
| 5209 | fi |
|---|
| 5210 | |
|---|
| 5211 | |
|---|
| 5212 | |
|---|
| 5213 | if test x$have_linux_videodev2_h = xyes ; then |
|---|
| 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: suitable V4L2 support found... using linux/videodev2.h" >&5 |
|---|
| 5215 | $as_echo "$as_me: suitable V4L2 support found... using linux/videodev2.h" >&6;} |
|---|
| 5216 | V_DEFINE="$V_DEFINE -DHAVE_LINUX_VIDEODEV2_H" |
|---|
| 5217 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o" |
|---|
| 5218 | have_V4L2=yes |
|---|
| 5219 | |
|---|
| 5220 | elif test x$have_sys_videodev2_h = xyes; then |
|---|
| 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: suitable V4L2 support found... using sys/videodev2.h" >&5 |
|---|
| 5222 | $as_echo "$as_me: suitable V4L2 support found... using sys/videodev2.h" >&6;} |
|---|
| 5223 | V_DEFINE="$V_DEFINE -DHAVE_SYS_VIDEODEV2_H" |
|---|
| 5224 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o" |
|---|
| 5225 | have_V4L2=yes |
|---|
| 5226 | |
|---|
| 5227 | elif test x$have_sys_videoio_h = xyes; then |
|---|
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: suitable V4L2 support found... using sys/videoio.h" >&5 |
|---|
| 5229 | $as_echo "$as_me: suitable V4L2 support found... using sys/videoio.h" >&6;} |
|---|
| 5230 | V_DEFINE="$V_DEFINE -DHAVE_SYS_VIDEOIO_H" |
|---|
| 5231 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-v4l2.o" |
|---|
| 5232 | have_V4L2=yes |
|---|
| 5233 | |
|---|
| 5234 | fi |
|---|
| 5235 | |
|---|
| 5236 | if test x$have_V4L = xyes -o x$have_V4L2 = xyes; then |
|---|
| 5237 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/yuv_convert.o" |
|---|
| 5238 | fi |
|---|
| 5239 | |
|---|
| 5240 | ac_fn_c_check_header_mongrel "$LINENO" "libv4lconvert.h" "ac_cv_header_libv4lconvert_h" "$ac_includes_default" |
|---|
| 5241 | if test "x$ac_cv_header_libv4lconvert_h" = xyes; then : |
|---|
| 5242 | have_libv4lconvert_h=yes; |
|---|
| 5243 | fi |
|---|
| 5244 | |
|---|
| 5245 | |
|---|
| 5246 | if test x$have_libv4lconvert_h = xyes; then |
|---|
| 5247 | V_DEFINE="$V_DEFINE -DHAVE_LIBV4L" |
|---|
| 5248 | if test x$have_V4L = xyes; then |
|---|
| 5249 | V_LIB_GRABBER="$V_LIB_GRABBER -lv4l1" |
|---|
| 5250 | fi |
|---|
| 5251 | if test x$have_V4L2 = xyes; then |
|---|
| 5252 | V_LIB_GRABBER="$V_LIB_GRABBER -lv4l2" |
|---|
| 5253 | fi |
|---|
| 5254 | else |
|---|
| 5255 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/tinyjpeg.o video/jidctflt.o" |
|---|
| 5256 | fi |
|---|
| 5257 | |
|---|
| 5258 | |
|---|
| 5259 | # Check whether --with-decklink was given. |
|---|
| 5260 | if test "${with_decklink+set}" = set; then : |
|---|
| 5261 | withval=$with_decklink; with_decklinkapidispatch=${withval} |
|---|
| 5262 | fi |
|---|
| 5263 | |
|---|
| 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blackmagic DeckLink SDK" >&5 |
|---|
| 5265 | $as_echo "$as_me: checking for Blackmagic DeckLink SDK" >&6;} |
|---|
| 5266 | if ${ac_cv_c_decklinkapidispatch+:} false; then : |
|---|
| 5267 | $as_echo_n "(cached) " >&6 |
|---|
| 5268 | else |
|---|
| 5269 | |
|---|
| 5270 | # First check to see if --with-decklink was specified. |
|---|
| 5271 | if test x"${with_decklinkapidispatch}" != x ; then |
|---|
| 5272 | case ${with_decklinkapidispatch} in |
|---|
| 5273 | */DeckLinkAPIDispatch.cpp ) |
|---|
| 5274 | if test -f ${with_decklinkapidispatch}; then |
|---|
| 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-decklink argument should refer to directory containing DeckLinkAPIDispatch.cpp, not to DeckLinkAPIDispatch.cpp itself" >&5 |
|---|
| 5276 | $as_echo "$as_me: WARNING: --with-decklink argument should refer to directory containing DeckLinkAPIDispatch.cpp, not to DeckLinkAPIDispatch.cpp itself" >&2;} |
|---|
| 5277 | with_decklinkapidispatch=`echo ${with_decklinkapidispatch} | sed 's!/DeckLinkAPIDispatch\.cpp!!'` |
|---|
| 5278 | fi ;; |
|---|
| 5279 | esac |
|---|
| 5280 | if test -f "${with_decklinkapidispatch}/DeckLinkAPIDispatch.cpp" ; then |
|---|
| 5281 | ac_cv_c_decklinkapidispatch=`(cd ${with_decklinkapidispatch}; pwd)` |
|---|
| 5282 | else |
|---|
| 5283 | as_fn_error $? "${with_decklinkapidispatch} directory doesn't contain DeckLinkAPIDispatch.cpp" "$LINENO" 5 |
|---|
| 5284 | fi |
|---|
| 5285 | fi |
|---|
| 5286 | |
|---|
| 5287 | # then check for a private Blackmagic DeckLink SDK installation |
|---|
| 5288 | if test x"${ac_cv_c_decklinkapidispatch}" = x ; then |
|---|
| 5289 | as_save_IFS=$IFS |
|---|
| 5290 | IFS=`echo` |
|---|
| 5291 | for i in \ |
|---|
| 5292 | `ls -dr "Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` \ |
|---|
| 5293 | `ls -dr ../"Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` \ |
|---|
| 5294 | `ls -dr $HOME/"Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` \ |
|---|
| 5295 | `ls -dr $HOME/Downloads/"Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` \ |
|---|
| 5296 | `ls -dr /usr/local/"Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` \ |
|---|
| 5297 | `ls -dr /opt/local/"Blackmagic DeckLink SDK "[0-9]* 2>/dev/null` ; do |
|---|
| 5298 | case "$target" in |
|---|
| 5299 | *linux* ) |
|---|
| 5300 | if test -f "$i/Linux/include/DeckLinkAPIDispatch.cpp" ; then |
|---|
| 5301 | ac_cv_c_decklinkapidispatch=`(cd "$i/Linux/include"; pwd)` |
|---|
| 5302 | break |
|---|
| 5303 | fi ;; |
|---|
| 5304 | *darwin* ) |
|---|
| 5305 | if test -f "$i/Mac/include/DeckLinkAPIDispatch.cpp" ; then |
|---|
| 5306 | ac_cv_c_decklinkapidispatch=`(cd "$i/Mac/include"; pwd)` |
|---|
| 5307 | break |
|---|
| 5308 | fi ;; |
|---|
| 5309 | esac |
|---|
| 5310 | done |
|---|
| 5311 | IFS=$as_save_IFS |
|---|
| 5312 | fi |
|---|
| 5313 | |
|---|
| 5314 | fi |
|---|
| 5315 | |
|---|
| 5316 | if test x"${ac_cv_c_decklinkapidispatch}" = x ; then |
|---|
| 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no DeckLinkAPIDispatch.cpp file found" >&5 |
|---|
| 5318 | $as_echo "$as_me: WARNING: no DeckLinkAPIDispatch.cpp file found" >&2;} |
|---|
| 5319 | else |
|---|
| 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${ac_cv_c_decklinkapidispatch}/DeckLinkAPIDispatch.cpp" >&5 |
|---|
| 5321 | $as_echo "found ${ac_cv_c_decklinkapidispatch}/DeckLinkAPIDispatch.cpp" >&6; } |
|---|
| 5322 | V_INCLUDE="$V_INCLUDE -I\"${ac_cv_c_decklinkapidispatch}\"" |
|---|
| 5323 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o" |
|---|
| 5324 | |
|---|
| 5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
|---|
| 5326 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
|---|
| 5327 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
|---|
| 5328 | $as_echo_n "(cached) " >&6 |
|---|
| 5329 | else |
|---|
| 5330 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5331 | LIBS="-ldl $LIBS" |
|---|
| 5332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5333 | /* end confdefs.h. */ |
|---|
| 5334 | |
|---|
| 5335 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5336 | Use char because int might match the return type of a GCC |
|---|
| 5337 | builtin and then its argument prototype would still apply. */ |
|---|
| 5338 | #ifdef __cplusplus |
|---|
| 5339 | extern "C" |
|---|
| 5340 | #endif |
|---|
| 5341 | char dlsym (); |
|---|
| 5342 | int |
|---|
| 5343 | main () |
|---|
| 5344 | { |
|---|
| 5345 | return dlsym (); |
|---|
| 5346 | ; |
|---|
| 5347 | return 0; |
|---|
| 5348 | } |
|---|
| 5349 | _ACEOF |
|---|
| 5350 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5351 | ac_cv_lib_dl_dlsym=yes |
|---|
| 5352 | else |
|---|
| 5353 | ac_cv_lib_dl_dlsym=no |
|---|
| 5354 | fi |
|---|
| 5355 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5356 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5357 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5358 | fi |
|---|
| 5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
|---|
| 5360 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
|---|
| 5361 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
|---|
| 5362 | V_LIB="$V_LIB -ldl" |
|---|
| 5363 | fi |
|---|
| 5364 | |
|---|
| 5365 | fi |
|---|
| 5366 | |
|---|
| 5367 | if test -r /usr/lib/libvl.so ; then |
|---|
| 5368 | V_LIB_GRABBER="$V_LIB_GRABBER -lvl -ldmedia" |
|---|
| 5369 | V_OBJ_GRABBER="video/grabber-vl.o video/output-vl.o $V_OBJ_GRABBER" |
|---|
| 5370 | if test -r /usr/include/dmedia/cl_cosmo.h ; then |
|---|
| 5371 | V_LIB_GRABBER="$V_LIB_GRABBER -lcl" |
|---|
| 5372 | V_OBJ_GRABBER="video/grabber-cosmo.o $V_OBJ_GRABBER" |
|---|
| 5373 | fi |
|---|
| 5374 | fi |
|---|
| 5375 | if test -r /usr/lib/libsvideo.a ; then |
|---|
| 5376 | V_LIB_GRABBER="$V_LIB_GRABBER -lsvideo" |
|---|
| 5377 | V_OBJ_GRABBER="video/grabber-svideo.o $V_OBJ_GRABBER" |
|---|
| 5378 | fi |
|---|
| 5379 | |
|---|
| 5380 | # Check whether --enable-XvGrabber was given. |
|---|
| 5381 | if test "${enable_XvGrabber+set}" = set; then : |
|---|
| 5382 | enableval=$enable_XvGrabber; XvGrabber=yes |
|---|
| 5383 | else |
|---|
| 5384 | XvGrabber=no |
|---|
| 5385 | fi |
|---|
| 5386 | |
|---|
| 5387 | if test -r /usr/lib/libXv.a -a "$XvGrabber" = "yes" ; then |
|---|
| 5388 | V_LIB_GRABBER="$V_LIB_GRABBER -lXv" |
|---|
| 5389 | V_DEFINE="$V_DEFINE -DXV_PSEUDO8" |
|---|
| 5390 | V_OBJ_GRABBER="video/grabber-xv.o $V_OBJ_GRABBER" |
|---|
| 5391 | fi |
|---|
| 5392 | if test -r /usr/lpp/parallax/lib/libXvid.a ; then |
|---|
| 5393 | V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/parallax/lib -lXvid -lXv" |
|---|
| 5394 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/parallax/include" |
|---|
| 5395 | V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER" |
|---|
| 5396 | fi |
|---|
| 5397 | if test -r /usr/lpp/UMS6000/lib/libUMSobj.a ; then |
|---|
| 5398 | V_LIB_GRABBER="$V_LIB_GRABBER -L/usr/lpp/UMS6000/lib -lUMSobj" |
|---|
| 5399 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/lpp/UMS6000/include" |
|---|
| 5400 | V_DEFINE="$V_DEFINE -DSUNRISE" |
|---|
| 5401 | V_OBJ_GRABBER="video/grabber-sunrise.o video/output-sunrise.o $V_OBJ_GRABBER" |
|---|
| 5402 | fi |
|---|
| 5403 | |
|---|
| 5404 | if test -r /usr/include/machine/ioctl_meteor.h -o \ |
|---|
| 5405 | -r /usr/include/dev/ic/bt8xx.h ; then |
|---|
| 5406 | V_OBJ_GRABBER="video/grabber-meteor.o $V_OBJ_GRABBER" |
|---|
| 5407 | fi |
|---|
| 5408 | |
|---|
| 5409 | # Check whether --enable-Linux1394Grabber was given. |
|---|
| 5410 | if test "${enable_Linux1394Grabber+set}" = set; then : |
|---|
| 5411 | enableval=$enable_Linux1394Grabber; Linux1394Grabber=yes |
|---|
| 5412 | else |
|---|
| 5413 | Linux1394Grabber=no |
|---|
| 5414 | fi |
|---|
| 5415 | |
|---|
| 5416 | if test -r /usr/include/libdc1394/dc1394_control.h -a -r /usr/include/libraw1394/raw1394.h -a "$Linux1394Grabber" = "yes"; then |
|---|
| 5417 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-linux1394.o" |
|---|
| 5418 | V_LIB_GRABBER="$V_LIB_GRABBER -lraw1394 -ldc1394_control" |
|---|
| 5419 | fi |
|---|
| 5420 | |
|---|
| 5421 | #if test -r /usr/local/lib/libspigot.a -a ${PORTOBJFORMAT} != elf; then |
|---|
| 5422 | if test -r /usr/local/lib/libspigot.a ; then |
|---|
| 5423 | V_OBJ_GRABBER="video/grabber-spigot.o $V_OBJ_GRABBER" |
|---|
| 5424 | V_LIB_GRABBER="$V_LIB_GRABBER -lspigot" |
|---|
| 5425 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include" |
|---|
| 5426 | fi |
|---|
| 5427 | |
|---|
| 5428 | if test "$qcamdir" != "" ; then |
|---|
| 5429 | V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER" |
|---|
| 5430 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$qcamdir" |
|---|
| 5431 | V_DEFINE="$V_DEFINE -DQCAMDEV -DQCAMDOTH=qcam.h" |
|---|
| 5432 | elif test -r /usr/local/lib/libqcam.a ; then |
|---|
| 5433 | V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER" |
|---|
| 5434 | V_LIB_GRABBER="$V_LIB_GRABBER -lqcam" |
|---|
| 5435 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I/usr/local/include" |
|---|
| 5436 | V_DEFINE="$V_DEFINE -DQCAMLIB" |
|---|
| 5437 | elif test -r /dev/qcam0 ; then |
|---|
| 5438 | V_OBJ_GRABBER="video/grabber-qcam.o $V_OBJ_GRABBER" |
|---|
| 5439 | V_DEFINE="$V_DEFINE -DQCAMDEV" |
|---|
| 5440 | fi |
|---|
| 5441 | vpix_dir=/usr/src/local/vfc-1.0 |
|---|
| 5442 | vpix_lib=$vpix_dir/vfc_lib |
|---|
| 5443 | if test -d /import/VideoPix ; then |
|---|
| 5444 | vpix_dir=/import/VideoPix |
|---|
| 5445 | vpic_lib=$vpix_dir/lib |
|---|
| 5446 | fi |
|---|
| 5447 | if test -d $vpix_dir ; then |
|---|
| 5448 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$vpix_dir/sys -I$vpix_lib" |
|---|
| 5449 | V_LIB_GRABBER="$V_LIB_GRABBER $vpix_lib/libvfc.a" |
|---|
| 5450 | V_DEFINE="$V_DEFINE -DVIDEOPIX" |
|---|
| 5451 | V_OBJ_GRABBER="video/grabber-vpix.o $V_OBJ_GRABBER" |
|---|
| 5452 | fi |
|---|
| 5453 | places="/usr/src/local/vigrapix/lib \ |
|---|
| 5454 | /opt/VIGRAvigrapix/lib" |
|---|
| 5455 | for dir in $places; do |
|---|
| 5456 | if test -d $dir ; then |
|---|
| 5457 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$dir" |
|---|
| 5458 | V_LIB_GRABBER="$V_LIB_GRABBER $dir/libvigrapix.a" |
|---|
| 5459 | V_OBJ_GRABBER="video/grabber-vigra.o $V_OBJ_GRABBER" |
|---|
| 5460 | break |
|---|
| 5461 | fi |
|---|
| 5462 | done |
|---|
| 5463 | |
|---|
| 5464 | d=/opt/MMACslv |
|---|
| 5465 | if test -d $d ; then |
|---|
| 5466 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$d/include" |
|---|
| 5467 | V_LIB_GRABBER="$V_LIB_GRABBER $d/lib/libslv.a -lintl" |
|---|
| 5468 | V_OBJ_GRABBER="video/grabber-slv.o $V_OBJ_GRABBER" |
|---|
| 5469 | fi |
|---|
| 5470 | |
|---|
| 5471 | d=/usr/include/mme |
|---|
| 5472 | if test -d $d ; then |
|---|
| 5473 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$d" |
|---|
| 5474 | V_LIB_GRABBER="$V_LIB_GRABBER -lmme" |
|---|
| 5475 | V_OBJ_GRABBER="video/grabber-mme.o $V_OBJ_GRABBER" |
|---|
| 5476 | fi |
|---|
| 5477 | |
|---|
| 5478 | places="/opt/parallax \ |
|---|
| 5479 | /usr/src/local/parallax \ |
|---|
| 5480 | /usr/local/parallax \ |
|---|
| 5481 | /usr/local/parallax/components/Xclients_sun4.ow3_1.18 \ |
|---|
| 5482 | /usr/src/local/parallax/components/Xclients_sun4.ow3_1.18" |
|---|
| 5483 | for dir in $places; do |
|---|
| 5484 | if test -d $dir/include ; then |
|---|
| 5485 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$dir/include" |
|---|
| 5486 | V_LIB_GRABBER="$V_LIB_GRABBER -L$dir/lib -lXext -lXvid" |
|---|
| 5487 | V_OBJ_GRABBER="video/grabber-plx.o video/assistor-plx.o $V_OBJ_GRABBER" |
|---|
| 5488 | break |
|---|
| 5489 | fi |
|---|
| 5490 | done |
|---|
| 5491 | |
|---|
| 5492 | case "$target" in |
|---|
| 5493 | *-dec-*) |
|---|
| 5494 | jv_dir=jv2 |
|---|
| 5495 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$jv_dir" |
|---|
| 5496 | V_LIB_GRABBER="$V_LIB_GRABBER $jv_dir/jvdriverint.o" |
|---|
| 5497 | V_OBJ_GRABBER="video/assistor-jv.o video/grabber-jv.o $V_OBJ_GRABBER" |
|---|
| 5498 | if test "$target_os" = ultrix4.3 ; then |
|---|
| 5499 | #XXX rtip code currently broken |
|---|
| 5500 | #V_DEFINE="$V_DEFINE -DRTIP" |
|---|
| 5501 | #V_LIB="$V_LIB lib.ultrix/librcap.a" |
|---|
| 5502 | #V_INCLUDE="$V_INCLUDE -Ircap-include" |
|---|
| 5503 | #XXX |
|---|
| 5504 | #V_OBJ_GRABBER="$V_OBJ_GRABBER net-rtip.o" |
|---|
| 5505 | echo no rtip support |
|---|
| 5506 | fi |
|---|
| 5507 | ;; |
|---|
| 5508 | sparc-sun-solaris*) |
|---|
| 5509 | V_STATIC="" |
|---|
| 5510 | have_xil=no |
|---|
| 5511 | xil_dir=/usr/openwin |
|---|
| 5512 | if test -d $xil_dir ; then |
|---|
| 5513 | if test ! -d $xil_dir/include/xil ; then |
|---|
| 5514 | echo "You don't have the XIL developer's kit!" |
|---|
| 5515 | echo "Building without XIL support..." |
|---|
| 5516 | else |
|---|
| 5517 | echo "Using XIL developer's kit (Found in: $xil_dir/include/xil)" |
|---|
| 5518 | have_xil=yes |
|---|
| 5519 | fi |
|---|
| 5520 | fi |
|---|
| 5521 | SYSINC="-I" |
|---|
| 5522 | if test $CC = gcc ; then |
|---|
| 5523 | V_DEFINE="$V_DEFINE -mv8 -msupersparc" |
|---|
| 5524 | SYSINC="-isystem " |
|---|
| 5525 | elif test -z "$enable_debug" ; then |
|---|
| 5526 | V_CCOPT="-xO2"; |
|---|
| 5527 | fi |
|---|
| 5528 | if test $ipv6 = yes; then |
|---|
| 5529 | V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris -DHAVE_IPV6 -DSOLARIS7_IPV6" |
|---|
| 5530 | else |
|---|
| 5531 | V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris" |
|---|
| 5532 | fi |
|---|
| 5533 | OPSYS=solaris |
|---|
| 5534 | if test -f video/grabber-rtvc.cpp || test -f video/grabber-rtvc.o ; then |
|---|
| 5535 | V_OBJ_GRABBER="video/grabber-rtvc.o $V_OBJ_GRABBER" |
|---|
| 5536 | if test "$have_xil" = yes ; then |
|---|
| 5537 | V_PROG="vic vic.xil" |
|---|
| 5538 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER $SYSINC$xil_dir/include -DSUNXIL_WARNING_DISABLE" |
|---|
| 5539 | V_LIB_XIL="-L$xil_dir/lib -R\"$xil_dir/lib:/opt/SUNWo1kp/lib:/opt/MMACo1k/lib\" -lxil" |
|---|
| 5540 | V_OBJ_XIL="video/grabber-xil.o codec/framer-h261hw.o codec/framer-cellb.o video/assistor-xil.o" |
|---|
| 5541 | fi |
|---|
| 5542 | elif test "$have_xil" = yes ; then |
|---|
| 5543 | V_OBJ_XIL="video/grabber-xil.o codec/framer-h261hw.o codec/framer-cellb.o video/assistor-xil.o" |
|---|
| 5544 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -I$xil_dir/include" |
|---|
| 5545 | V_LIB_GRABBER="$V_LIB_GRABBER -L$xil_dir/lib -R\"$xil_dir/lib:/opt/SUNWo1kp/lib:/opt/MMACo1k/lib\" -lxil " |
|---|
| 5546 | fi |
|---|
| 5547 | ;; |
|---|
| 5548 | sparc-sun-sunos*) |
|---|
| 5549 | V_DEFINE="$V_DEFINE -DNEED_SUNOS_PROTOS -DSunOS" |
|---|
| 5550 | ;; |
|---|
| 5551 | *-sgi-irix*) |
|---|
| 5552 | V_DEFINE="$V_DEFINE -D_BSD_SIGNALS -DIRIX" |
|---|
| 5553 | OPSYS=irix |
|---|
| 5554 | if test "$target_os" = irix6.2 ; then |
|---|
| 5555 | V_DEFINE="$V_DEFINE -DIRIX6_2 -DSIGARGS=__sigargs" |
|---|
| 5556 | fi |
|---|
| 5557 | V_TARCMD="tar cfL" |
|---|
| 5558 | V_SHELL="SHELL = /bin/sh" |
|---|
| 5559 | if test $CC != gcc ; then |
|---|
| 5560 | V_DEFINE="$V_DEFINE -signed -g3" |
|---|
| 5561 | CC="cc -Dinline=" |
|---|
| 5562 | if test "$target_os" = irix5.2 ; then |
|---|
| 5563 | CC="$CC -xansi -D__STDC__" |
|---|
| 5564 | fi |
|---|
| 5565 | CXX="CC +p -float -woff 3262 -DSGI_COMPAT" |
|---|
| 5566 | else |
|---|
| 5567 | CXX=$CC |
|---|
| 5568 | fi |
|---|
| 5569 | V_STATIC="" |
|---|
| 5570 | ;; |
|---|
| 5571 | *-*-bsdi1*) |
|---|
| 5572 | V_SHM="" |
|---|
| 5573 | V_TARCMD="tar cfL" |
|---|
| 5574 | ;; |
|---|
| 5575 | *-*-bsdi2.0*) |
|---|
| 5576 | V_SHM="" |
|---|
| 5577 | V_TARCMD="tar cfL" |
|---|
| 5578 | ;; |
|---|
| 5579 | *-*-bsdi*) |
|---|
| 5580 | # bsdi2.1 added sys-v shared memory support but their implementation |
|---|
| 5581 | # is broken so we have to turn it off. If they ever fix libipc, |
|---|
| 5582 | # the following line should be deleted. |
|---|
| 5583 | V_SHM="" |
|---|
| 5584 | V_TARCMD="tar cfL" |
|---|
| 5585 | V_CCOPT="-O2 -m486" |
|---|
| 5586 | V_LIB="$V_LIB -lipc" |
|---|
| 5587 | ;; |
|---|
| 5588 | *-*-netbsd*) |
|---|
| 5589 | if test "$gpl" = "yes" ; then |
|---|
| 5590 | V_OBJ_GRABBER="video/grabber-ov511.o $V_OBJ_GRABBER" |
|---|
| 5591 | fi |
|---|
| 5592 | V_DEFINE="$V_DEFINE -DNetBSD" |
|---|
| 5593 | V_STATIC="" |
|---|
| 5594 | V_TARCMD="tar -h -c -f" |
|---|
| 5595 | OPSYS=netbsd |
|---|
| 5596 | ;; |
|---|
| 5597 | *-*-openbsd*) |
|---|
| 5598 | if test "$gpl" = "yes" ; then |
|---|
| 5599 | V_OBJ_GRABBER="video/grabber-ov511.o $V_OBJ_GRABBER" |
|---|
| 5600 | fi |
|---|
| 5601 | V_DEFINE="$V_DEFINE -DOpenBSD" |
|---|
| 5602 | V_STATIC="" |
|---|
| 5603 | V_TARCMD="tar -h -c -f" |
|---|
| 5604 | OPSYS=openbsd |
|---|
| 5605 | ;; |
|---|
| 5606 | *-*-freebsd*) |
|---|
| 5607 | if test "$gpl" = "yes" ; then |
|---|
| 5608 | V_OBJ_GRABBER="video/grabber-ov511.o $V_OBJ_GRABBER" |
|---|
| 5609 | fi |
|---|
| 5610 | V_STATIC="" |
|---|
| 5611 | V_DEFINE="$V_DEFINE -DSIGARGS=int -DFreeBSD" |
|---|
| 5612 | if test $ipv6 = yes; then |
|---|
| 5613 | V_DEFINE="$V_DEFINE -DHAVE_IPV6" |
|---|
| 5614 | V_LIB="$V_LIB -L/usr/local/v6/lib" |
|---|
| 5615 | fi |
|---|
| 5616 | OPSYS=freebsd |
|---|
| 5617 | ;; |
|---|
| 5618 | *-*-hpux*) |
|---|
| 5619 | V_CCOPT="-O -DHPUX" |
|---|
| 5620 | OPSYS=hpux |
|---|
| 5621 | ;; |
|---|
| 5622 | *-*-aix3*) |
|---|
| 5623 | V_STATIC="" |
|---|
| 5624 | V_DEFINE="$V_DEFINE -DSIGARGS=int -DHPUX" |
|---|
| 5625 | if test "$V_LIB_AIXSHM" != "" ; then |
|---|
| 5626 | V_LIB="$V_LIB $V_LIB_AIXSHM" |
|---|
| 5627 | else |
|---|
| 5628 | V_SHM="" |
|---|
| 5629 | fi |
|---|
| 5630 | CXX="xlC -+" |
|---|
| 5631 | ;; |
|---|
| 5632 | *-*-aix4*) |
|---|
| 5633 | V_STATIC="" |
|---|
| 5634 | V_DEFINE="$V_DEFINE -DSIGARGS=int -D_AIX41" |
|---|
| 5635 | if test "$V_LIB_AIXSHM" != "" ; then |
|---|
| 5636 | V_LIB="$V_LIB $V_LIB_AIXSHM" |
|---|
| 5637 | else |
|---|
| 5638 | V_SHM="" |
|---|
| 5639 | fi |
|---|
| 5640 | CXX="xlC -+" |
|---|
| 5641 | ;; |
|---|
| 5642 | armv4l-*-linux) |
|---|
| 5643 | V_STATIC="" |
|---|
| 5644 | V_BROKEN_OBJ= |
|---|
| 5645 | CC=arm-linux-gcc |
|---|
| 5646 | CPP=arm-linux-g++ |
|---|
| 5647 | AR=arm-linux-ar |
|---|
| 5648 | RANLIB=arm-linux-ranlib |
|---|
| 5649 | if test $ipv6 = yes; then |
|---|
| 5650 | V_DEFINE="$V_DEFINE -DLinux -DHAVE_IPV6 -DLINUX_IPV6" |
|---|
| 5651 | else |
|---|
| 5652 | V_DEFINE="$V_DEFINE -DLinux" |
|---|
| 5653 | fi |
|---|
| 5654 | OPSYS=linux |
|---|
| 5655 | ;; |
|---|
| 5656 | *-*-linux*) |
|---|
| 5657 | V_STATIC="" |
|---|
| 5658 | V_BROKEN_OBJ= |
|---|
| 5659 | if test $ipv6 = yes; then |
|---|
| 5660 | V_DEFINE="$V_DEFINE -DLinux -DHAVE_IPV6 -DLINUX_IPV6" |
|---|
| 5661 | else |
|---|
| 5662 | V_DEFINE="$V_DEFINE -DLinux" |
|---|
| 5663 | fi |
|---|
| 5664 | OPSYS=linux |
|---|
| 5665 | ;; |
|---|
| 5666 | *darwin*) |
|---|
| 5667 | V_SHM="" |
|---|
| 5668 | V_STATIC="" |
|---|
| 5669 | V_BROKEN_OBJ= |
|---|
| 5670 | V_DEFINE="$V_DEFINE -DHAVE_IPV6 -DHAVE_FAST_INT" |
|---|
| 5671 | V_LIB="$V_LIB -framework Carbon -framework QuickTime" |
|---|
| 5672 | if test "$target_cpu" = powerpc; then |
|---|
| 5673 | V_CCOPT="-O2 $ppc_tune" |
|---|
| 5674 | fi |
|---|
| 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit gcc on OSX" >&5 |
|---|
| 5676 | $as_echo_n "checking for 64-bit gcc on OSX... " >&6; } |
|---|
| 5677 | if gcc -v 2>&1 | grep host=x86_64 >& /dev/null ; then |
|---|
| 5678 | if ! file -L /System/Library/Frameworks/QuickTime.framework/QuickTime 2>&1 | grep x86_64 >&/dev/null; then |
|---|
| 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes but forcing 32-bit due to QuickTime" >&5 |
|---|
| 5680 | $as_echo "Yes but forcing 32-bit due to QuickTime" >&6; } |
|---|
| 5681 | x264_conf="$x264_conf --host=i686-apple-darwin" |
|---|
| 5682 | if [ -d /Developer/SDKs/MacOSX10.4u.sdk ] ; then |
|---|
| 5683 | V_LDFLAGS="$V_LDFLAGS -arch i386 -mmacosx-version-min=10.4" |
|---|
| 5684 | V_CCLDFLAGS32="LDFLAGS='-arch i386 -mmacosx-version-min=10.4' CFLAGS='-arch i386'" |
|---|
| 5685 | V_CCOPT="$V_CCOPT -arch i386" |
|---|
| 5686 | elif [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then |
|---|
| 5687 | V_LDFLAGS="$V_LDFLAGS -arch i386 -mmacosx-version-min=10.5" |
|---|
| 5688 | V_CCLDFLAGS32="LDFLAGS='-arch i386 -mmacosx-version-min=10.5' CFLAGS='-arch i386'" |
|---|
| 5689 | V_CCOPT="$V_CCOPT -arch i386" |
|---|
| 5690 | elif [ -d /Developer/SDKs/MacOSX10.6.sdk ] ; then |
|---|
| 5691 | V_LDFLAGS="$V_LDFLAGS -arch i386 -mmacosx-version-min=10.6" |
|---|
| 5692 | V_CCLDFLAGS32="LDFLAGS='-arch i386 -mmacosx-version-min=10.6' CFLAGS='-arch i386'" |
|---|
| 5693 | V_CCOPT="$V_CCOPT -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk" |
|---|
| 5694 | else |
|---|
| 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: No suitable SDK under /Developer/SDKs/ found for building with QuickTime framework" >&5 |
|---|
| 5696 | $as_echo "No suitable SDK under /Developer/SDKs/ found for building with QuickTime framework" >&6; } |
|---|
| 5697 | fi |
|---|
| 5698 | fi |
|---|
| 5699 | else |
|---|
| 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: No - using 32-bit" >&5 |
|---|
| 5701 | $as_echo "No - using 32-bit" >&6; } |
|---|
| 5702 | fi |
|---|
| 5703 | OPSYS=macosx |
|---|
| 5704 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-macosx.o video/yuv_convert.o" |
|---|
| 5705 | ;; |
|---|
| 5706 | *mingw*|*mingw32*) |
|---|
| 5707 | V_SHM="" |
|---|
| 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5 |
|---|
| 5709 | $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; } |
|---|
| 5710 | if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then : |
|---|
| 5711 | $as_echo_n "(cached) " >&6 |
|---|
| 5712 | else |
|---|
| 5713 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5714 | LIBS="-lws2_32 $LIBS" |
|---|
| 5715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5716 | /* end confdefs.h. */ |
|---|
| 5717 | |
|---|
| 5718 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5719 | Use char because int might match the return type of a GCC |
|---|
| 5720 | builtin and then its argument prototype would still apply. */ |
|---|
| 5721 | #ifdef __cplusplus |
|---|
| 5722 | extern "C" |
|---|
| 5723 | #endif |
|---|
| 5724 | char _head_libws2_32_a (); |
|---|
| 5725 | int |
|---|
| 5726 | main () |
|---|
| 5727 | { |
|---|
| 5728 | return _head_libws2_32_a (); |
|---|
| 5729 | ; |
|---|
| 5730 | return 0; |
|---|
| 5731 | } |
|---|
| 5732 | _ACEOF |
|---|
| 5733 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5734 | ac_cv_lib_ws2_32__head_libws2_32_a=yes |
|---|
| 5735 | else |
|---|
| 5736 | ac_cv_lib_ws2_32__head_libws2_32_a=no |
|---|
| 5737 | fi |
|---|
| 5738 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5739 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5740 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5741 | fi |
|---|
| 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5 |
|---|
| 5743 | $as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; } |
|---|
| 5744 | if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then : |
|---|
| 5745 | ws2="yes" |
|---|
| 5746 | else |
|---|
| 5747 | ws2="no" |
|---|
| 5748 | fi |
|---|
| 5749 | |
|---|
| 5750 | if test "$ws2" == "yes"; then |
|---|
| 5751 | LIBS="$LIBS -lws2_32" |
|---|
| 5752 | else |
|---|
| 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 |
|---|
| 5754 | $as_echo_n "checking for socket in -lwsock32... " >&6; } |
|---|
| 5755 | if ${ac_cv_lib_wsock32_socket+:} false; then : |
|---|
| 5756 | $as_echo_n "(cached) " >&6 |
|---|
| 5757 | else |
|---|
| 5758 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5759 | LIBS="-lwsock32 $LIBS" |
|---|
| 5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5761 | /* end confdefs.h. */ |
|---|
| 5762 | |
|---|
| 5763 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5764 | Use char because int might match the return type of a GCC |
|---|
| 5765 | builtin and then its argument prototype would still apply. */ |
|---|
| 5766 | #ifdef __cplusplus |
|---|
| 5767 | extern "C" |
|---|
| 5768 | #endif |
|---|
| 5769 | char socket (); |
|---|
| 5770 | int |
|---|
| 5771 | main () |
|---|
| 5772 | { |
|---|
| 5773 | return socket (); |
|---|
| 5774 | ; |
|---|
| 5775 | return 0; |
|---|
| 5776 | } |
|---|
| 5777 | _ACEOF |
|---|
| 5778 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5779 | ac_cv_lib_wsock32_socket=yes |
|---|
| 5780 | else |
|---|
| 5781 | ac_cv_lib_wsock32_socket=no |
|---|
| 5782 | fi |
|---|
| 5783 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5784 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5785 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5786 | fi |
|---|
| 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_socket" >&5 |
|---|
| 5788 | $as_echo "$ac_cv_lib_wsock32_socket" >&6; } |
|---|
| 5789 | if test "x$ac_cv_lib_wsock32_socket" = xyes; then : |
|---|
| 5790 | ws1="yes" |
|---|
| 5791 | else |
|---|
| 5792 | ws1="no" |
|---|
| 5793 | fi |
|---|
| 5794 | |
|---|
| 5795 | if test "$ws1" == "yes"; then |
|---|
| 5796 | LIBS="$LIBS -lwsock32" |
|---|
| 5797 | else |
|---|
| 5798 | as_fn_error $? "Winsock library not found!" "$LINENO" 5 |
|---|
| 5799 | fi |
|---|
| 5800 | fi |
|---|
| 5801 | LIBS="$LIBS -liphlpapi -lvfw32 -lgdi32 -lole32 -loleaut32 -luuid -lcomctl32 -lcomdlg32 -limm32" |
|---|
| 5802 | V_DEFINE="$V_DEFINE -DSTATIC_BUILD -DWIN32 -D_WINDOWS -DHAVE_SWSCALE -DHAVE_STDLIB_H -DSASR -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_WIN32_WINNT=_WIN32_WINNT_WINXP" |
|---|
| 5803 | V_EXTRAC_OBJ="$V_EXTRAC_OBJ win32/win32.o getopt.o" |
|---|
| 5804 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-win32.o video/yuv_convert.o" |
|---|
| 5805 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-win32DS.o video/crossbar.o" |
|---|
| 5806 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-decklink.o video/DeckLinkAPI_i.o" |
|---|
| 5807 | V_LIB_GRABBER="$V_LIB_GRABBER dx9/Lib/x86/ddraw.lib dx9/Lib/x86/dxguid.lib dx9/Extras/DirectShow/Lib/x86/strmiids.lib dx9/Extras/DirectShow/Lib/x86/quartz.lib" |
|---|
| 5808 | V_INCLUDE_GRABBER="$V_INCLUDE_GRABBER -Idx9/Include -Idx9/Extras/DirectShow/Include" |
|---|
| 5809 | ffmpeg_conf="$ffmpeg_conf --enable-memalign-hack --enable-w32threads" |
|---|
| 5810 | x264_conf="$x264_conf --disable-avis-input --disable-pthread" |
|---|
| 5811 | # Check whether --enable-ddraw was given. |
|---|
| 5812 | if test "${enable_ddraw+set}" = set; then : |
|---|
| 5813 | enableval=$enable_ddraw; ddraw="yes" |
|---|
| 5814 | else |
|---|
| 5815 | ddraw="no" |
|---|
| 5816 | fi |
|---|
| 5817 | |
|---|
| 5818 | if test "$ddraw" == "yes"; then |
|---|
| 5819 | V_DDRAW="-DUSE_DDRAW" |
|---|
| 5820 | echo "Using DirectDraw" |
|---|
| 5821 | fi; |
|---|
| 5822 | V_PROG="vic.exe" |
|---|
| 5823 | V_CCOPT="$V_CCOPT -Wl,-subsystem,windows" |
|---|
| 5824 | ;; |
|---|
| 5825 | esac |
|---|
| 5826 | |
|---|
| 5827 | case "$target" in |
|---|
| 5828 | *-*-darwin* | *-*-mingw* | *-*-cygwin* | *-*-pw32*) |
|---|
| 5829 | ;; |
|---|
| 5830 | *) |
|---|
| 5831 | V_OBJ_GRABBER="$V_OBJ_GRABBER video/grabber-x11.o" |
|---|
| 5832 | ;; |
|---|
| 5833 | esac |
|---|
| 5834 | |
|---|
| 5835 | # Check whether --enable-gpl was given. |
|---|
| 5836 | if test "${enable_gpl+set}" = set; then : |
|---|
| 5837 | enableval=$enable_gpl; gpl="yes" |
|---|
| 5838 | else |
|---|
| 5839 | gpl="no" |
|---|
| 5840 | fi |
|---|
| 5841 | |
|---|
| 5842 | if test "$gpl" = "yes" ; then |
|---|
| 5843 | V_DEFINE="$V_DEFINE -DHAVE_SWSCALE" |
|---|
| 5844 | V_OBJ="$V_OBJ codec/packetbuffer.o codec/databuffer.o \ |
|---|
| 5845 | codec/ffmpeg_codec.o codec/encoder-mpeg4.o codec/decoder-mpeg4.o \ |
|---|
| 5846 | codec/x264encoder.o codec/encoder-h264.o codec/decoder-h264.o \ |
|---|
| 5847 | codec/rtp_h264_depayloader.o render/color-swscale.o video/deinterlace.o" |
|---|
| 5848 | else |
|---|
| 5849 | V_OBJ="$V_OBJ render/color-true.o render/color-hi.o" |
|---|
| 5850 | fi |
|---|
| 5851 | |
|---|
| 5852 | # Extract the first word of "wget", so it can be a program name with args. |
|---|
| 5853 | set dummy wget; ac_word=$2 |
|---|
| 5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 5855 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 5856 | if ${ac_cv_prog_DOWNLOAD+:} false; then : |
|---|
| 5857 | $as_echo_n "(cached) " >&6 |
|---|
| 5858 | else |
|---|
| 5859 | if test -n "$DOWNLOAD"; then |
|---|
| 5860 | ac_cv_prog_DOWNLOAD="$DOWNLOAD" # Let the user override the test. |
|---|
| 5861 | else |
|---|
| 5862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5863 | for as_dir in $PATH |
|---|
| 5864 | do |
|---|
| 5865 | IFS=$as_save_IFS |
|---|
| 5866 | test -z "$as_dir" && as_dir=. |
|---|
| 5867 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 5868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 5869 | ac_cv_prog_DOWNLOAD="wget -q -O -" |
|---|
| 5870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 5871 | break 2 |
|---|
| 5872 | fi |
|---|
| 5873 | done |
|---|
| 5874 | done |
|---|
| 5875 | IFS=$as_save_IFS |
|---|
| 5876 | |
|---|
| 5877 | fi |
|---|
| 5878 | fi |
|---|
| 5879 | DOWNLOAD=$ac_cv_prog_DOWNLOAD |
|---|
| 5880 | if test -n "$DOWNLOAD"; then |
|---|
| 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOWNLOAD" >&5 |
|---|
| 5882 | $as_echo "$DOWNLOAD" >&6; } |
|---|
| 5883 | else |
|---|
| 5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 5885 | $as_echo "no" >&6; } |
|---|
| 5886 | fi |
|---|
| 5887 | |
|---|
| 5888 | |
|---|
| 5889 | # Extract the first word of "curl", so it can be a program name with args. |
|---|
| 5890 | set dummy curl; ac_word=$2 |
|---|
| 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 5892 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 5893 | if ${ac_cv_prog_DOWNLOAD+:} false; then : |
|---|
| 5894 | $as_echo_n "(cached) " >&6 |
|---|
| 5895 | else |
|---|
| 5896 | if test -n "$DOWNLOAD"; then |
|---|
| 5897 | ac_cv_prog_DOWNLOAD="$DOWNLOAD" # Let the user override the test. |
|---|
| 5898 | else |
|---|
| 5899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5900 | for as_dir in $PATH |
|---|
| 5901 | do |
|---|
| 5902 | IFS=$as_save_IFS |
|---|
| 5903 | test -z "$as_dir" && as_dir=. |
|---|
| 5904 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 5905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 5906 | ac_cv_prog_DOWNLOAD="curl -s" |
|---|
| 5907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 5908 | break 2 |
|---|
| 5909 | fi |
|---|
| 5910 | done |
|---|
| 5911 | done |
|---|
| 5912 | IFS=$as_save_IFS |
|---|
| 5913 | |
|---|
| 5914 | fi |
|---|
| 5915 | fi |
|---|
| 5916 | DOWNLOAD=$ac_cv_prog_DOWNLOAD |
|---|
| 5917 | if test -n "$DOWNLOAD"; then |
|---|
| 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOWNLOAD" >&5 |
|---|
| 5919 | $as_echo "$DOWNLOAD" >&6; } |
|---|
| 5920 | else |
|---|
| 5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 5922 | $as_echo "no" >&6; } |
|---|
| 5923 | fi |
|---|
| 5924 | |
|---|
| 5925 | |
|---|
| 5926 | |
|---|
| 5927 | havex264="no" |
|---|
| 5928 | |
|---|
| 5929 | # Check whether --with-ffmpegver was given. |
|---|
| 5930 | if test "${with_ffmpegver+set}" = set; then : |
|---|
| 5931 | withval=$with_ffmpegver; ffmpegver=$withval |
|---|
| 5932 | else |
|---|
| 5933 | ffmpegver=ffmpeg-0.5.8 |
|---|
| 5934 | fi |
|---|
| 5935 | |
|---|
| 5936 | # Check whether --enable-ffmpeg-co was given. |
|---|
| 5937 | if test "${enable_ffmpeg_co+set}" = set; then : |
|---|
| 5938 | enableval=$enable_ffmpeg_co; ffmpegco="no" |
|---|
| 5939 | else |
|---|
| 5940 | ffmpegco="yes" |
|---|
| 5941 | fi |
|---|
| 5942 | |
|---|
| 5943 | if test "$ffmpegco" = "yes" ; then |
|---|
| 5944 | if test "$gpl" = "yes" ; then |
|---|
| 5945 | if test ! -d ${ffmpegver} ; then |
|---|
| 5946 | echo "Downloading ${ffmpegver} of ffmpeg from ffmpeg.org ..." |
|---|
| 5947 | ${DOWNLOAD} http://ffmpeg.org/releases/${ffmpegver}.tar.bz2 | tar xjf - && ln -sf ${ffmpegver} ffmpeg |
|---|
| 5948 | fi |
|---|
| 5949 | patch --dry-run -sf -p0 < ffmpeg.iocom.patch >& /dev/null |
|---|
| 5950 | if test $? = 0; then |
|---|
| 5951 | echo "Patching ffmpeg h264 for IOCOM decode compatibility..." |
|---|
| 5952 | patch -p0 < ffmpeg.iocom.patch |
|---|
| 5953 | else |
|---|
| 5954 | echo "ffmpeg has already been patched for IOCOM decode compatibility" |
|---|
| 5955 | fi |
|---|
| 5956 | echo "Configuring ffmpeg..." |
|---|
| 5957 | echo "${V_CCLDFLAGS32} ./configure --prefix=$V_PATH/ffmpeg $ffmpeg_conf --enable-gpl --enable-swscale --enable-postproc" |
|---|
| 5958 | cd ffmpeg && eval ${V_CCLDFLAGS32} ./configure --prefix=$V_PATH/ffmpeg $ffmpeg_conf --enable-gpl --enable-swscale --enable-postproc; cd .. |
|---|
| 5959 | V_INCLUDE="$V_INCLUDE -Iffmpeg/include -Iffmpeg" |
|---|
| 5960 | V_CODEC_LIB="$V_CODEC_LIB -Lffmpeg/lib -lavcodec -lavutil -lswscale -lpostproc " |
|---|
| 5961 | else |
|---|
| 5962 | echo "ffmpeg not available without --enable-gpl" |
|---|
| 5963 | fi |
|---|
| 5964 | fi |
|---|
| 5965 | |
|---|
| 5966 | |
|---|
| 5967 | # Check whether --with-x264ver was given. |
|---|
| 5968 | if test "${with_x264ver+set}" = set; then : |
|---|
| 5969 | withval=$with_x264ver; x264ver=$withval |
|---|
| 5970 | else |
|---|
| 5971 | x264ver=x264-snapshot-20100805-2245 |
|---|
| 5972 | fi |
|---|
| 5973 | |
|---|
| 5974 | # Check whether --enable-x264-co was given. |
|---|
| 5975 | if test "${enable_x264_co+set}" = set; then : |
|---|
| 5976 | enableval=$enable_x264_co; x264co="no" |
|---|
| 5977 | else |
|---|
| 5978 | x264co="yes" |
|---|
| 5979 | fi |
|---|
| 5980 | |
|---|
| 5981 | if test "$x264co" = "yes" ; then |
|---|
| 5982 | if test "$gpl" = "yes" ; then |
|---|
| 5983 | if test ! -d "x264" ; then |
|---|
| 5984 | echo "Downloading ${x264ver} of x264 from videolan.org ..." |
|---|
| 5985 | ${DOWNLOAD} http://downloads.videolan.org/pub/videolan/x264/snapshots/${x264ver}.tar.bz2 | tar xjf - && ln -sf ${x264ver} x264 |
|---|
| 5986 | fi |
|---|
| 5987 | echo;echo "Configuring x264..." |
|---|
| 5988 | echo "${V_CCLDFLAGS32} ./configure --prefix=$V_PATH/x264 $x264_conf" |
|---|
| 5989 | cd x264 && eval ${V_CCLDFLAGS32} ./configure --prefix=$V_PATH/x264 $x264_conf; cd .. |
|---|
| 5990 | V_INCLUDE="$V_INCLUDE -Ix264/include" |
|---|
| 5991 | V_CODEC_LIB="$V_CODEC_LIB -Lx264/lib -lx264" |
|---|
| 5992 | havex264="yes" |
|---|
| 5993 | else |
|---|
| 5994 | echo "x264 not available without --enable-gpl" |
|---|
| 5995 | fi |
|---|
| 5996 | fi |
|---|
| 5997 | |
|---|
| 5998 | |
|---|
| 5999 | # Check whether --with-ffmpeginc was given. |
|---|
| 6000 | if test "${with_ffmpeginc+set}" = set; then : |
|---|
| 6001 | withval=$with_ffmpeginc; ffmpeginc=$withval |
|---|
| 6002 | else |
|---|
| 6003 | ffmpeginc="" |
|---|
| 6004 | fi |
|---|
| 6005 | |
|---|
| 6006 | |
|---|
| 6007 | # Check whether --with-ffmpeglib was given. |
|---|
| 6008 | if test "${with_ffmpeglib+set}" = set; then : |
|---|
| 6009 | withval=$with_ffmpeglib; ffmpeglib=$withval |
|---|
| 6010 | else |
|---|
| 6011 | ffmpeglib="" |
|---|
| 6012 | fi |
|---|
| 6013 | |
|---|
| 6014 | |
|---|
| 6015 | if test "$gpl" = "yes" ; then |
|---|
| 6016 | if test "$ffmpegco" != "yes"; then |
|---|
| 6017 | |
|---|
| 6018 | if test "$ffmpeginc" != "" ; then |
|---|
| 6019 | if test ! -r $ffmpeginc/libavcodec/avcodec.h ; then |
|---|
| 6020 | echo "Error! you need to have $ffmpeginc/ffmpeg/avcodec.h around" |
|---|
| 6021 | exit 1 |
|---|
| 6022 | elif test ! -r $ffmpeginc/libavutil/avutil.h ; then |
|---|
| 6023 | echo "Error! you need to have $ffmpeginc/ffmpeg/avutil.h around" |
|---|
| 6024 | exit 1 |
|---|
| 6025 | elif test ! -r $ffmpeginc/libswscale/swscale.h ; then |
|---|
| 6026 | echo "Error! you need to have $ffmpeginc/ffmpeg/swscale.h around" |
|---|
| 6027 | exit 1 |
|---|
| 6028 | fi |
|---|
| 6029 | echo "checking for FFmpeg headers...yes" |
|---|
| 6030 | V_INCLUDE="$V_INCLUDE -I$ffmpeginc" |
|---|
| 6031 | |
|---|
| 6032 | else |
|---|
| 6033 | |
|---|
| 6034 | ac_fn_c_check_header_mongrel "$LINENO" "libavcodec/avcodec.h" "ac_cv_header_libavcodec_avcodec_h" "$ac_includes_default" |
|---|
| 6035 | if test "x$ac_cv_header_libavcodec_avcodec_h" = xyes; then : |
|---|
| 6036 | |
|---|
| 6037 | else |
|---|
| 6038 | |
|---|
| 6039 | echo "Error! you need to have avcodec.h around." |
|---|
| 6040 | exit -1 |
|---|
| 6041 | |
|---|
| 6042 | fi |
|---|
| 6043 | |
|---|
| 6044 | |
|---|
| 6045 | ac_fn_c_check_header_mongrel "$LINENO" "libavutil/avutil.h" "ac_cv_header_libavutil_avutil_h" "$ac_includes_default" |
|---|
| 6046 | if test "x$ac_cv_header_libavutil_avutil_h" = xyes; then : |
|---|
| 6047 | |
|---|
| 6048 | else |
|---|
| 6049 | |
|---|
| 6050 | echo "Error! you need to have avutil.h around." |
|---|
| 6051 | exit -1 |
|---|
| 6052 | |
|---|
| 6053 | fi |
|---|
| 6054 | |
|---|
| 6055 | |
|---|
| 6056 | ac_fn_c_check_header_mongrel "$LINENO" "libswscale/swscale.h" "ac_cv_header_libswscale_swscale_h" "$ac_includes_default" |
|---|
| 6057 | if test "x$ac_cv_header_libswscale_swscale_h" = xyes; then : |
|---|
| 6058 | |
|---|
| 6059 | else |
|---|
| 6060 | |
|---|
| 6061 | echo "Error! you need to have swscale.h around." |
|---|
| 6062 | exit -1 |
|---|
| 6063 | |
|---|
| 6064 | fi |
|---|
| 6065 | |
|---|
| 6066 | |
|---|
| 6067 | fi |
|---|
| 6068 | |
|---|
| 6069 | if test "$ffmpeglib" != "" ; then |
|---|
| 6070 | if test ! -r $ffmpeglib/libavcodec.a ; then |
|---|
| 6071 | echo "Error! you need to have $ffmpeglib/libavcodec.a around" |
|---|
| 6072 | elif test ! -r $ffmpeglib/libavutil.a ; then |
|---|
| 6073 | echo "Error! you need to have $ffmpeglib/libavutil.a around" |
|---|
| 6074 | elif test ! -r $ffmpeglib/libswscale.a ; then |
|---|
| 6075 | echo "Error! you need to have $ffmpeglib/libswscale.a around" |
|---|
| 6076 | elif test ! -r $ffmpeglib/libpostproc.a ; then |
|---|
| 6077 | echo "Error! you need to have $ffmpeglib/libpostproc.a around" |
|---|
| 6078 | fi |
|---|
| 6079 | |
|---|
| 6080 | V_CODEC_LIB="$V_CODEC_LIB -L$ffmpeglib -lavcodec -lavutil -lswscale -lpostproc" |
|---|
| 6081 | else |
|---|
| 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5 |
|---|
| 6083 | $as_echo_n "checking for main in -lavcodec... " >&6; } |
|---|
| 6084 | if ${ac_cv_lib_avcodec_main+:} false; then : |
|---|
| 6085 | $as_echo_n "(cached) " >&6 |
|---|
| 6086 | else |
|---|
| 6087 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6088 | LIBS="-lavcodec $LIBS" |
|---|
| 6089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6090 | /* end confdefs.h. */ |
|---|
| 6091 | |
|---|
| 6092 | |
|---|
| 6093 | int |
|---|
| 6094 | main () |
|---|
| 6095 | { |
|---|
| 6096 | return main (); |
|---|
| 6097 | ; |
|---|
| 6098 | return 0; |
|---|
| 6099 | } |
|---|
| 6100 | _ACEOF |
|---|
| 6101 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6102 | ac_cv_lib_avcodec_main=yes |
|---|
| 6103 | else |
|---|
| 6104 | ac_cv_lib_avcodec_main=no |
|---|
| 6105 | fi |
|---|
| 6106 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6107 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6108 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6109 | fi |
|---|
| 6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5 |
|---|
| 6111 | $as_echo "$ac_cv_lib_avcodec_main" >&6; } |
|---|
| 6112 | if test "x$ac_cv_lib_avcodec_main" = xyes; then : |
|---|
| 6113 | cat >>confdefs.h <<_ACEOF |
|---|
| 6114 | #define HAVE_LIBAVCODEC 1 |
|---|
| 6115 | _ACEOF |
|---|
| 6116 | |
|---|
| 6117 | LIBS="-lavcodec $LIBS" |
|---|
| 6118 | |
|---|
| 6119 | else |
|---|
| 6120 | |
|---|
| 6121 | echo "Error! you need to have libavcodec around." |
|---|
| 6122 | exit -1 |
|---|
| 6123 | |
|---|
| 6124 | fi |
|---|
| 6125 | |
|---|
| 6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5 |
|---|
| 6127 | $as_echo_n "checking for main in -lavutil... " >&6; } |
|---|
| 6128 | if ${ac_cv_lib_avutil_main+:} false; then : |
|---|
| 6129 | $as_echo_n "(cached) " >&6 |
|---|
| 6130 | else |
|---|
| 6131 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6132 | LIBS="-lavutil $LIBS" |
|---|
| 6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6134 | /* end confdefs.h. */ |
|---|
| 6135 | |
|---|
| 6136 | |
|---|
| 6137 | int |
|---|
| 6138 | main () |
|---|
| 6139 | { |
|---|
| 6140 | return main (); |
|---|
| 6141 | ; |
|---|
| 6142 | return 0; |
|---|
| 6143 | } |
|---|
| 6144 | _ACEOF |
|---|
| 6145 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6146 | ac_cv_lib_avutil_main=yes |
|---|
| 6147 | else |
|---|
| 6148 | ac_cv_lib_avutil_main=no |
|---|
| 6149 | fi |
|---|
| 6150 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6151 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6152 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6153 | fi |
|---|
| 6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5 |
|---|
| 6155 | $as_echo "$ac_cv_lib_avutil_main" >&6; } |
|---|
| 6156 | if test "x$ac_cv_lib_avutil_main" = xyes; then : |
|---|
| 6157 | cat >>confdefs.h <<_ACEOF |
|---|
| 6158 | #define HAVE_LIBAVUTIL 1 |
|---|
| 6159 | _ACEOF |
|---|
| 6160 | |
|---|
| 6161 | LIBS="-lavutil $LIBS" |
|---|
| 6162 | |
|---|
| 6163 | else |
|---|
| 6164 | |
|---|
| 6165 | echo "Error! you need to have libavutil around." |
|---|
| 6166 | exit -1 |
|---|
| 6167 | |
|---|
| 6168 | fi |
|---|
| 6169 | |
|---|
| 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5 |
|---|
| 6171 | $as_echo_n "checking for main in -lswscale... " >&6; } |
|---|
| 6172 | if ${ac_cv_lib_swscale_main+:} false; then : |
|---|
| 6173 | $as_echo_n "(cached) " >&6 |
|---|
| 6174 | else |
|---|
| 6175 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6176 | LIBS="-lswscale $LIBS" |
|---|
| 6177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6178 | /* end confdefs.h. */ |
|---|
| 6179 | |
|---|
| 6180 | |
|---|
| 6181 | int |
|---|
| 6182 | main () |
|---|
| 6183 | { |
|---|
| 6184 | return main (); |
|---|
| 6185 | ; |
|---|
| 6186 | return 0; |
|---|
| 6187 | } |
|---|
| 6188 | _ACEOF |
|---|
| 6189 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6190 | ac_cv_lib_swscale_main=yes |
|---|
| 6191 | else |
|---|
| 6192 | ac_cv_lib_swscale_main=no |
|---|
| 6193 | fi |
|---|
| 6194 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6195 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6196 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6197 | fi |
|---|
| 6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5 |
|---|
| 6199 | $as_echo "$ac_cv_lib_swscale_main" >&6; } |
|---|
| 6200 | if test "x$ac_cv_lib_swscale_main" = xyes; then : |
|---|
| 6201 | cat >>confdefs.h <<_ACEOF |
|---|
| 6202 | #define HAVE_LIBSWSCALE 1 |
|---|
| 6203 | _ACEOF |
|---|
| 6204 | |
|---|
| 6205 | LIBS="-lswscale $LIBS" |
|---|
| 6206 | |
|---|
| 6207 | else |
|---|
| 6208 | |
|---|
| 6209 | echo "Error! you need to have libswscale around." |
|---|
| 6210 | exit -1 |
|---|
| 6211 | |
|---|
| 6212 | fi |
|---|
| 6213 | |
|---|
| 6214 | |
|---|
| 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpostproc" >&5 |
|---|
| 6216 | $as_echo_n "checking for main in -lpostproc... " >&6; } |
|---|
| 6217 | if ${ac_cv_lib_postproc_main+:} false; then : |
|---|
| 6218 | $as_echo_n "(cached) " >&6 |
|---|
| 6219 | else |
|---|
| 6220 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6221 | LIBS="-lpostproc $LIBS" |
|---|
| 6222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6223 | /* end confdefs.h. */ |
|---|
| 6224 | |
|---|
| 6225 | |
|---|
| 6226 | int |
|---|
| 6227 | main () |
|---|
| 6228 | { |
|---|
| 6229 | return main (); |
|---|
| 6230 | ; |
|---|
| 6231 | return 0; |
|---|
| 6232 | } |
|---|
| 6233 | _ACEOF |
|---|
| 6234 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6235 | ac_cv_lib_postproc_main=yes |
|---|
| 6236 | else |
|---|
| 6237 | ac_cv_lib_postproc_main=no |
|---|
| 6238 | fi |
|---|
| 6239 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6240 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6241 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6242 | fi |
|---|
| 6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_postproc_main" >&5 |
|---|
| 6244 | $as_echo "$ac_cv_lib_postproc_main" >&6; } |
|---|
| 6245 | if test "x$ac_cv_lib_postproc_main" = xyes; then : |
|---|
| 6246 | cat >>confdefs.h <<_ACEOF |
|---|
| 6247 | #define HAVE_LIBPOSTPROC 1 |
|---|
| 6248 | _ACEOF |
|---|
| 6249 | |
|---|
| 6250 | LIBS="-lpostproc $LIBS" |
|---|
| 6251 | |
|---|
| 6252 | else |
|---|
| 6253 | |
|---|
| 6254 | echo "Error! you need to have libpostproc around." |
|---|
| 6255 | exit -1 |
|---|
| 6256 | |
|---|
| 6257 | fi |
|---|
| 6258 | |
|---|
| 6259 | |
|---|
| 6260 | V_CODEC_LIB="$V_CODEC_LIB -lavcodec -lavutil -lswscale -lpostproc" |
|---|
| 6261 | fi |
|---|
| 6262 | fi |
|---|
| 6263 | fi |
|---|
| 6264 | |
|---|
| 6265 | |
|---|
| 6266 | # Check whether --with-x264inc was given. |
|---|
| 6267 | if test "${with_x264inc+set}" = set; then : |
|---|
| 6268 | withval=$with_x264inc; x264inc=$withval |
|---|
| 6269 | else |
|---|
| 6270 | x264inc="" |
|---|
| 6271 | fi |
|---|
| 6272 | |
|---|
| 6273 | |
|---|
| 6274 | # Check whether --with-x264lib was given. |
|---|
| 6275 | if test "${with_x264lib+set}" = set; then : |
|---|
| 6276 | withval=$with_x264lib; x264lib=$withval |
|---|
| 6277 | else |
|---|
| 6278 | x264lib="" |
|---|
| 6279 | fi |
|---|
| 6280 | |
|---|
| 6281 | if test "$gpl" = "yes" ; then |
|---|
| 6282 | if test "$x264co" != "yes" ; then |
|---|
| 6283 | if test "$x264inc" != "" ; then |
|---|
| 6284 | if test ! -r $x264inc/x264.h ; then |
|---|
| 6285 | echo "Error! you need to have $x264inc/x264.h around." |
|---|
| 6286 | exit 1 |
|---|
| 6287 | fi |
|---|
| 6288 | V_INCLUDE="$V_INCLUDE -I$x264inc" |
|---|
| 6289 | elif test ! -r /usr/local/include/x264.h -a ! -r /usr/include/x264.h ; then |
|---|
| 6290 | echo "Error! you need to have x264.h around." |
|---|
| 6291 | exit 1 |
|---|
| 6292 | else |
|---|
| 6293 | echo "checking for x264.h...yes" |
|---|
| 6294 | fi |
|---|
| 6295 | |
|---|
| 6296 | if test "$x264lib" != "" ; then |
|---|
| 6297 | if test ! -r $x264lib/libx264.a ; then |
|---|
| 6298 | echo "Error! you need to have $x264lib/libx264.a around" |
|---|
| 6299 | exit 1 |
|---|
| 6300 | fi |
|---|
| 6301 | V_CODEC_LIB="$V_CODEC_LIB -L$x264lib -lx264" |
|---|
| 6302 | else |
|---|
| 6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lx264" >&5 |
|---|
| 6304 | $as_echo_n "checking for main in -lx264... " >&6; } |
|---|
| 6305 | if ${ac_cv_lib_x264_main+:} false; then : |
|---|
| 6306 | $as_echo_n "(cached) " >&6 |
|---|
| 6307 | else |
|---|
| 6308 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6309 | LIBS="-lx264 $LIBS" |
|---|
| 6310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6311 | /* end confdefs.h. */ |
|---|
| 6312 | |
|---|
| 6313 | |
|---|
| 6314 | int |
|---|
| 6315 | main () |
|---|
| 6316 | { |
|---|
| 6317 | return main (); |
|---|
| 6318 | ; |
|---|
| 6319 | return 0; |
|---|
| 6320 | } |
|---|
| 6321 | _ACEOF |
|---|
| 6322 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6323 | ac_cv_lib_x264_main=yes |
|---|
| 6324 | else |
|---|
| 6325 | ac_cv_lib_x264_main=no |
|---|
| 6326 | fi |
|---|
| 6327 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6328 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6329 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6330 | fi |
|---|
| 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x264_main" >&5 |
|---|
| 6332 | $as_echo "$ac_cv_lib_x264_main" >&6; } |
|---|
| 6333 | if test "x$ac_cv_lib_x264_main" = xyes; then : |
|---|
| 6334 | cat >>confdefs.h <<_ACEOF |
|---|
| 6335 | #define HAVE_LIBX264 1 |
|---|
| 6336 | _ACEOF |
|---|
| 6337 | |
|---|
| 6338 | LIBS="-lx264 $LIBS" |
|---|
| 6339 | |
|---|
| 6340 | else |
|---|
| 6341 | |
|---|
| 6342 | echo "Error! you need to have libx264 around." |
|---|
| 6343 | exit -1 |
|---|
| 6344 | |
|---|
| 6345 | fi |
|---|
| 6346 | |
|---|
| 6347 | V_CODEC_LIB="$V_CODEC_LIB -lx264" |
|---|
| 6348 | fi |
|---|
| 6349 | havex264="yes" |
|---|
| 6350 | fi |
|---|
| 6351 | fi |
|---|
| 6352 | |
|---|
| 6353 | if test "$havex264" == "yes"; then |
|---|
| 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
|---|
| 6355 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
|---|
| 6356 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
|---|
| 6357 | $as_echo_n "(cached) " >&6 |
|---|
| 6358 | else |
|---|
| 6359 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6360 | LIBS="-lpthread $LIBS" |
|---|
| 6361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6362 | /* end confdefs.h. */ |
|---|
| 6363 | |
|---|
| 6364 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 6365 | Use char because int might match the return type of a GCC |
|---|
| 6366 | builtin and then its argument prototype would still apply. */ |
|---|
| 6367 | #ifdef __cplusplus |
|---|
| 6368 | extern "C" |
|---|
| 6369 | #endif |
|---|
| 6370 | char pthread_create (); |
|---|
| 6371 | int |
|---|
| 6372 | main () |
|---|
| 6373 | { |
|---|
| 6374 | return pthread_create (); |
|---|
| 6375 | ; |
|---|
| 6376 | return 0; |
|---|
| 6377 | } |
|---|
| 6378 | _ACEOF |
|---|
| 6379 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6380 | ac_cv_lib_pthread_pthread_create=yes |
|---|
| 6381 | else |
|---|
| 6382 | ac_cv_lib_pthread_pthread_create=no |
|---|
| 6383 | fi |
|---|
| 6384 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6385 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6386 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6387 | fi |
|---|
| 6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
|---|
| 6389 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
|---|
| 6390 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
|---|
| 6391 | pthread="yes" |
|---|
| 6392 | else |
|---|
| 6393 | pthread="no" |
|---|
| 6394 | fi |
|---|
| 6395 | |
|---|
| 6396 | if test "$pthread" == "yes"; then |
|---|
| 6397 | V_CODEC_LIB="$V_CODEC_LIB -lpthread" |
|---|
| 6398 | else |
|---|
| 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC2" >&5 |
|---|
| 6400 | $as_echo_n "checking for pthread_create in -lpthreadGC2... " >&6; } |
|---|
| 6401 | if ${ac_cv_lib_pthreadGC2_pthread_create+:} false; then : |
|---|
| 6402 | $as_echo_n "(cached) " >&6 |
|---|
| 6403 | else |
|---|
| 6404 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 6405 | LIBS="-lpthreadGC2 $LIBS" |
|---|
| 6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 6407 | /* end confdefs.h. */ |
|---|
| 6408 | |
|---|
| 6409 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 6410 | Use char because int might match the return type of a GCC |
|---|
| 6411 | builtin and then its argument prototype would still apply. */ |
|---|
| 6412 | #ifdef __cplusplus |
|---|
| 6413 | extern "C" |
|---|
| 6414 | #endif |
|---|
| 6415 | char pthread_create (); |
|---|
| 6416 | int |
|---|
| 6417 | main () |
|---|
| 6418 | { |
|---|
| 6419 | return pthread_create (); |
|---|
| 6420 | ; |
|---|
| 6421 | return 0; |
|---|
| 6422 | } |
|---|
| 6423 | _ACEOF |
|---|
| 6424 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 6425 | ac_cv_lib_pthreadGC2_pthread_create=yes |
|---|
| 6426 | else |
|---|
| 6427 | ac_cv_lib_pthreadGC2_pthread_create=no |
|---|
| 6428 | fi |
|---|
| 6429 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 6430 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 6431 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 6432 | fi |
|---|
| 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_create" >&5 |
|---|
| 6434 | $as_echo "$ac_cv_lib_pthreadGC2_pthread_create" >&6; } |
|---|
| 6435 | if test "x$ac_cv_lib_pthreadGC2_pthread_create" = xyes; then : |
|---|
| 6436 | pthreadGC2="yes" |
|---|
| 6437 | else |
|---|
| 6438 | pthreadGC2="no" |
|---|
| 6439 | fi |
|---|
| 6440 | |
|---|
| 6441 | if test "$pthreadGC2" == "yes"; then |
|---|
| 6442 | V_CODEC_LIB="$V_CODEC_LIB -lpthreadGC2" |
|---|
| 6443 | V_DEFINE="$V_DEFINE -DPTW32_STATIC_LIB" |
|---|
| 6444 | fi |
|---|
| 6445 | fi |
|---|
| 6446 | fi |
|---|
| 6447 | |
|---|
| 6448 | V_CPUDETECT="" |
|---|
| 6449 | # Check whether --enable-cpudetect was given. |
|---|
| 6450 | if test "${enable_cpudetect+set}" = set; then : |
|---|
| 6451 | enableval=$enable_cpudetect; cpudetect="no" |
|---|
| 6452 | else |
|---|
| 6453 | cpudetect="yes" |
|---|
| 6454 | fi |
|---|
| 6455 | |
|---|
| 6456 | if test "$gpl" = "yes" ; then |
|---|
| 6457 | if test "$cpudetect" = "yes"; then |
|---|
| 6458 | echo "Using CPU runtime detection..." |
|---|
| 6459 | V_CPUDETECT="-DRUNTIME_CPUDETECT" |
|---|
| 6460 | V_CPUDETECT_OBJ="cpu/cpudetect.o cpu/cpuid.o" |
|---|
| 6461 | fi |
|---|
| 6462 | else |
|---|
| 6463 | echo "No runtime cputect without --enable-gpl" |
|---|
| 6464 | fi |
|---|
| 6465 | |
|---|
| 6466 | |
|---|
| 6467 | |
|---|
| 6468 | |
|---|
| 6469 | |
|---|
| 6470 | |
|---|
| 6471 | |
|---|
| 6472 | |
|---|
| 6473 | |
|---|
| 6474 | |
|---|
| 6475 | |
|---|
| 6476 | |
|---|
| 6477 | |
|---|
| 6478 | |
|---|
| 6479 | V_DEFINE="$V_DEFINE $V_SHM $V_ZVFS $V_DDRAW $V_DV $V_XV $V_CPUDETECT -D$V_ARCH " |
|---|
| 6480 | |
|---|
| 6481 | |
|---|
| 6482 | # various include hacks |
|---|
| 6483 | dirs="../common/src \ |
|---|
| 6484 | /usr/include/uclmmbase \ |
|---|
| 6485 | /usr/include/common-mml \ |
|---|
| 6486 | /usr/local/include/uclmmbase \ |
|---|
| 6487 | /usr/local/include/common-mml" |
|---|
| 6488 | |
|---|
| 6489 | if test x$prefix != xNONE ; then |
|---|
| 6490 | dirs="$prefix/include/common-mml $prefix/include/uclmmbase $dirs" |
|---|
| 6491 | fi |
|---|
| 6492 | |
|---|
| 6493 | for dir in $dirs; do |
|---|
| 6494 | if test -d $dir ; then |
|---|
| 6495 | V_INCLUDE="$V_INCLUDE -I$dir" |
|---|
| 6496 | fi |
|---|
| 6497 | done |
|---|
| 6498 | |
|---|
| 6499 | # various linker hacks |
|---|
| 6500 | if test x$prefix != xNONE ; then |
|---|
| 6501 | if test -d $prefix/lib64 ; then |
|---|
| 6502 | V_LDFLAGS="-L$prefix/lib64 $V_LDFLAGS" |
|---|
| 6503 | else |
|---|
| 6504 | V_LDFLAGS="-L$prefix/lib $V_LDFLAGS" |
|---|
| 6505 | fi |
|---|
| 6506 | else |
|---|
| 6507 | if test -d ../common/src ; then |
|---|
| 6508 | V_LDFLAGS="-L../common/src $V_LDFLAGS" |
|---|
| 6509 | fi |
|---|
| 6510 | fi |
|---|
| 6511 | |
|---|
| 6512 | # always use -g with gcc during development (even with -O) |
|---|
| 6513 | #if test "$CC" = gcc && test -f .devel ; then |
|---|
| 6514 | if test "$CC" = gcc ; then |
|---|
| 6515 | V_CCOPT="$V_CCOPT -g -W -Wall -Wno-return-type" |
|---|
| 6516 | V_CCOPT_H261="$V_CCOPT_H261 -g -W -Wall -Wno-return-type" |
|---|
| 6517 | V_DEFINE="$V_DEFINE -fsigned-char" |
|---|
| 6518 | fi |
|---|
| 6519 | |
|---|
| 6520 | V_TAR_TARGET=$target_os |
|---|
| 6521 | |
|---|
| 6522 | |
|---|
| 6523 | |
|---|
| 6524 | |
|---|
| 6525 | |
|---|
| 6526 | |
|---|
| 6527 | |
|---|
| 6528 | |
|---|
| 6529 | |
|---|
| 6530 | |
|---|
| 6531 | |
|---|
| 6532 | |
|---|
| 6533 | |
|---|
| 6534 | |
|---|
| 6535 | |
|---|
| 6536 | |
|---|
| 6537 | |
|---|
| 6538 | |
|---|
| 6539 | |
|---|
| 6540 | |
|---|
| 6541 | ac_config_headers="$ac_config_headers uclconf.h:config.h.in" |
|---|
| 6542 | |
|---|
| 6543 | ac_config_files="$ac_config_files Makefile" |
|---|
| 6544 | |
|---|
| 6545 | cat >confcache <<\_ACEOF |
|---|
| 6546 | # This file is a shell script that caches the results of configure |
|---|
| 6547 | # tests run on this system so they can be shared between configure |
|---|
| 6548 | # scripts and configure runs, see configure's option --config-cache. |
|---|
| 6549 | # It is not useful on other systems. If it contains results you don't |
|---|
| 6550 | # want to keep, you may remove or edit it. |
|---|
| 6551 | # |
|---|
| 6552 | # config.status only pays attention to the cache file if you give it |
|---|
| 6553 | # the --recheck option to rerun configure. |
|---|
| 6554 | # |
|---|
| 6555 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|---|
| 6556 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|---|
| 6557 | # following values. |
|---|
| 6558 | |
|---|
| 6559 | _ACEOF |
|---|
| 6560 | |
|---|
| 6561 | # The following way of writing the cache mishandles newlines in values, |
|---|
| 6562 | # but we know of no workaround that is simple, portable, and efficient. |
|---|
| 6563 | # So, we kill variables containing newlines. |
|---|
| 6564 | # Ultrix sh set writes to stderr and can't be redirected directly, |
|---|
| 6565 | # and sets the high bit in the cache file unless we assign to the vars. |
|---|
| 6566 | ( |
|---|
| 6567 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|---|
| 6568 | eval ac_val=\$$ac_var |
|---|
| 6569 | case $ac_val in #( |
|---|
| 6570 | *${as_nl}*) |
|---|
| 6571 | case $ac_var in #( |
|---|
| 6572 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|---|
| 6573 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|---|
| 6574 | esac |
|---|
| 6575 | case $ac_var in #( |
|---|
| 6576 | _ | IFS | as_nl) ;; #( |
|---|
| 6577 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|---|
| 6578 | *) { eval $ac_var=; unset $ac_var;} ;; |
|---|
| 6579 | esac ;; |
|---|
| 6580 | esac |
|---|
| 6581 | done |
|---|
| 6582 | |
|---|
| 6583 | (set) 2>&1 | |
|---|
| 6584 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|---|
| 6585 | *${as_nl}ac_space=\ *) |
|---|
| 6586 | # `set' does not quote correctly, so add quotes: double-quote |
|---|
| 6587 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
|---|
| 6588 | sed -n \ |
|---|
| 6589 | "s/'/'\\\\''/g; |
|---|
| 6590 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|---|
| 6591 | ;; #( |
|---|
| 6592 | *) |
|---|
| 6593 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
|---|
| 6594 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|---|
| 6595 | ;; |
|---|
| 6596 | esac | |
|---|
| 6597 | sort |
|---|
| 6598 | ) | |
|---|
| 6599 | sed ' |
|---|
| 6600 | /^ac_cv_env_/b end |
|---|
| 6601 | t clear |
|---|
| 6602 | :clear |
|---|
| 6603 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|---|
| 6604 | t end |
|---|
| 6605 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|---|
| 6606 | :end' >>confcache |
|---|
| 6607 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|---|
| 6608 | if test -w "$cache_file"; then |
|---|
| 6609 | if test "x$cache_file" != "x/dev/null"; then |
|---|
| 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|---|
| 6611 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
|---|
| 6612 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
|---|
| 6613 | cat confcache >"$cache_file" |
|---|
| 6614 | else |
|---|
| 6615 | case $cache_file in #( |
|---|
| 6616 | */* | ?:*) |
|---|
| 6617 | mv -f confcache "$cache_file"$$ && |
|---|
| 6618 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|---|
| 6619 | *) |
|---|
| 6620 | mv -f confcache "$cache_file" ;; |
|---|
| 6621 | esac |
|---|
| 6622 | fi |
|---|
| 6623 | fi |
|---|
| 6624 | else |
|---|
| 6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|---|
| 6626 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|---|
| 6627 | fi |
|---|
| 6628 | fi |
|---|
| 6629 | rm -f confcache |
|---|
| 6630 | |
|---|
| 6631 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|---|
| 6632 | # Let make expand exec_prefix. |
|---|
| 6633 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|---|
| 6634 | |
|---|
| 6635 | DEFS=-DHAVE_CONFIG_H |
|---|
| 6636 | |
|---|
| 6637 | ac_libobjs= |
|---|
| 6638 | ac_ltlibobjs= |
|---|
| 6639 | U= |
|---|
| 6640 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|---|
| 6641 | # 1. Remove the extension, and $U if already installed. |
|---|
| 6642 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|---|
| 6643 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|---|
| 6644 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|---|
| 6645 | # will be set to the directory where LIBOBJS objects are built. |
|---|
| 6646 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|---|
| 6647 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|---|
| 6648 | done |
|---|
| 6649 | LIBOBJS=$ac_libobjs |
|---|
| 6650 | |
|---|
| 6651 | LTLIBOBJS=$ac_ltlibobjs |
|---|
| 6652 | |
|---|
| 6653 | |
|---|
| 6654 | |
|---|
| 6655 | : "${CONFIG_STATUS=./config.status}" |
|---|
| 6656 | ac_write_fail=0 |
|---|
| 6657 | ac_clean_files_save=$ac_clean_files |
|---|
| 6658 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|---|
| 6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|---|
| 6660 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|---|
| 6661 | as_write_fail=0 |
|---|
| 6662 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|---|
| 6663 | #! $SHELL |
|---|
| 6664 | # Generated by $as_me. |
|---|
| 6665 | # Run this file to recreate the current configuration. |
|---|
| 6666 | # Compiler output produced by configure, useful for debugging |
|---|
| 6667 | # configure, is in config.log if it exists. |
|---|
| 6668 | |
|---|
| 6669 | debug=false |
|---|
| 6670 | ac_cs_recheck=false |
|---|
| 6671 | ac_cs_silent=false |
|---|
| 6672 | |
|---|
| 6673 | SHELL=\${CONFIG_SHELL-$SHELL} |
|---|
| 6674 | export SHELL |
|---|
| 6675 | _ASEOF |
|---|
| 6676 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|---|
| 6677 | ## -------------------- ## |
|---|
| 6678 | ## M4sh Initialization. ## |
|---|
| 6679 | ## -------------------- ## |
|---|
| 6680 | |
|---|
| 6681 | # Be more Bourne compatible |
|---|
| 6682 | DUALCASE=1; export DUALCASE # for MKS sh |
|---|
| 6683 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|---|
| 6684 | emulate sh |
|---|
| 6685 | NULLCMD=: |
|---|
| 6686 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|---|
| 6687 | # is contrary to our usage. Disable this feature. |
|---|
| 6688 | alias -g '${1+"$@"}'='"$@"' |
|---|
| 6689 | setopt NO_GLOB_SUBST |
|---|
| 6690 | else |
|---|
| 6691 | case `(set -o) 2>/dev/null` in #( |
|---|
| 6692 | *posix*) : |
|---|
| 6693 | set -o posix ;; #( |
|---|
| 6694 | *) : |
|---|
| 6695 | ;; |
|---|
| 6696 | esac |
|---|
| 6697 | fi |
|---|
| 6698 | |
|---|
| 6699 | |
|---|
| 6700 | as_nl=' |
|---|
| 6701 | ' |
|---|
| 6702 | export as_nl |
|---|
| 6703 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|---|
| 6704 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|---|
| 6705 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 6706 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 6707 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
|---|
| 6708 | # but without wasting forks for bash or zsh. |
|---|
| 6709 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|---|
| 6710 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|---|
| 6711 | as_echo='print -r --' |
|---|
| 6712 | as_echo_n='print -rn --' |
|---|
| 6713 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|---|
| 6714 | as_echo='printf %s\n' |
|---|
| 6715 | as_echo_n='printf %s' |
|---|
| 6716 | else |
|---|
| 6717 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|---|
| 6718 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|---|
| 6719 | as_echo_n='/usr/ucb/echo -n' |
|---|
| 6720 | else |
|---|
| 6721 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|---|
| 6722 | as_echo_n_body='eval |
|---|
| 6723 | arg=$1; |
|---|
| 6724 | case $arg in #( |
|---|
| 6725 | *"$as_nl"*) |
|---|
| 6726 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
|---|
| 6727 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|---|
| 6728 | esac; |
|---|
| 6729 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|---|
| 6730 | ' |
|---|
| 6731 | export as_echo_n_body |
|---|
| 6732 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|---|
| 6733 | fi |
|---|
| 6734 | export as_echo_body |
|---|
| 6735 | as_echo='sh -c $as_echo_body as_echo' |
|---|
| 6736 | fi |
|---|
| 6737 | |
|---|
| 6738 | # The user is always right. |
|---|
| 6739 | if test "${PATH_SEPARATOR+set}" != set; then |
|---|
| 6740 | PATH_SEPARATOR=: |
|---|
| 6741 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|---|
| 6742 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|---|
| 6743 | PATH_SEPARATOR=';' |
|---|
| 6744 | } |
|---|
| 6745 | fi |
|---|
| 6746 | |
|---|
| 6747 | |
|---|
| 6748 | # IFS |
|---|
| 6749 | # We need space, tab and new line, in precisely that order. Quoting is |
|---|
| 6750 | # there to prevent editors from complaining about space-tab. |
|---|
| 6751 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|---|
| 6752 | # splitting by setting IFS to empty value.) |
|---|
| 6753 | IFS=" "" $as_nl" |
|---|
| 6754 | |
|---|
| 6755 | # Find who we are. Look in the path if we contain no directory separator. |
|---|
| 6756 | as_myself= |
|---|
| 6757 | case $0 in #(( |
|---|
| 6758 | *[\\/]* ) as_myself=$0 ;; |
|---|
| 6759 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 6760 | for as_dir in $PATH |
|---|
| 6761 | do |
|---|
| 6762 | IFS=$as_save_IFS |
|---|
| 6763 | test -z "$as_dir" && as_dir=. |
|---|
| 6764 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|---|
| 6765 | done |
|---|
| 6766 | IFS=$as_save_IFS |
|---|
| 6767 | |
|---|
| 6768 | ;; |
|---|
| 6769 | esac |
|---|
| 6770 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|---|
| 6771 | # in which case we are not to be found in the path. |
|---|
| 6772 | if test "x$as_myself" = x; then |
|---|
| 6773 | as_myself=$0 |
|---|
| 6774 | fi |
|---|
| 6775 | if test ! -f "$as_myself"; then |
|---|
| 6776 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|---|
| 6777 | exit 1 |
|---|
| 6778 | fi |
|---|
| 6779 | |
|---|
| 6780 | # Unset variables that we do not need and which cause bugs (e.g. in |
|---|
| 6781 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|---|
| 6782 | # suppresses any "Segmentation fault" message there. '((' could |
|---|
| 6783 | # trigger a bug in pdksh 5.2.14. |
|---|
| 6784 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|---|
| 6785 | do eval test x\${$as_var+set} = xset \ |
|---|
| 6786 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|---|
| 6787 | done |
|---|
| 6788 | PS1='$ ' |
|---|
| 6789 | PS2='> ' |
|---|
| 6790 | PS4='+ ' |
|---|
| 6791 | |
|---|
| 6792 | # NLS nuisances. |
|---|
| 6793 | LC_ALL=C |
|---|
| 6794 | export LC_ALL |
|---|
| 6795 | LANGUAGE=C |
|---|
| 6796 | export LANGUAGE |
|---|
| 6797 | |
|---|
| 6798 | # CDPATH. |
|---|
| 6799 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|---|
| 6800 | |
|---|
| 6801 | |
|---|
| 6802 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|---|
| 6803 | # ---------------------------------------- |
|---|
| 6804 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|---|
| 6805 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|---|
| 6806 | # script with STATUS, using 1 if that was 0. |
|---|
| 6807 | as_fn_error () |
|---|
| 6808 | { |
|---|
| 6809 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|---|
| 6810 | if test "$4"; then |
|---|
| 6811 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 6812 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|---|
| 6813 | fi |
|---|
| 6814 | $as_echo "$as_me: error: $2" >&2 |
|---|
| 6815 | as_fn_exit $as_status |
|---|
| 6816 | } # as_fn_error |
|---|
| 6817 | |
|---|
| 6818 | |
|---|
| 6819 | # as_fn_set_status STATUS |
|---|
| 6820 | # ----------------------- |
|---|
| 6821 | # Set $? to STATUS, without forking. |
|---|
| 6822 | as_fn_set_status () |
|---|
| 6823 | { |
|---|
| 6824 | return $1 |
|---|
| 6825 | } # as_fn_set_status |
|---|
| 6826 | |
|---|
| 6827 | # as_fn_exit STATUS |
|---|
| 6828 | # ----------------- |
|---|
| 6829 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|---|
| 6830 | as_fn_exit () |
|---|
| 6831 | { |
|---|
| 6832 | set +e |
|---|
| 6833 | as_fn_set_status $1 |
|---|
| 6834 | exit $1 |
|---|
| 6835 | } # as_fn_exit |
|---|
| 6836 | |
|---|
| 6837 | # as_fn_unset VAR |
|---|
| 6838 | # --------------- |
|---|
| 6839 | # Portably unset VAR. |
|---|
| 6840 | as_fn_unset () |
|---|
| 6841 | { |
|---|
| 6842 | { eval $1=; unset $1;} |
|---|
| 6843 | } |
|---|
| 6844 | as_unset=as_fn_unset |
|---|
| 6845 | # as_fn_append VAR VALUE |
|---|
| 6846 | # ---------------------- |
|---|
| 6847 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|---|
| 6848 | # advantage of any shell optimizations that allow amortized linear growth over |
|---|
| 6849 | # repeated appends, instead of the typical quadratic growth present in naive |
|---|
| 6850 | # implementations. |
|---|
| 6851 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|---|
| 6852 | eval 'as_fn_append () |
|---|
| 6853 | { |
|---|
| 6854 | eval $1+=\$2 |
|---|
| 6855 | }' |
|---|
| 6856 | else |
|---|
| 6857 | as_fn_append () |
|---|
| 6858 | { |
|---|
| 6859 | eval $1=\$$1\$2 |
|---|
| 6860 | } |
|---|
| 6861 | fi # as_fn_append |
|---|
| 6862 | |
|---|
| 6863 | # as_fn_arith ARG... |
|---|
| 6864 | # ------------------ |
|---|
| 6865 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|---|
| 6866 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|---|
| 6867 | # must be portable across $(()) and expr. |
|---|
| 6868 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|---|
| 6869 | eval 'as_fn_arith () |
|---|
| 6870 | { |
|---|
| 6871 | as_val=$(( $* )) |
|---|
| 6872 | }' |
|---|
| 6873 | else |
|---|
| 6874 | as_fn_arith () |
|---|
| 6875 | { |
|---|
| 6876 | as_val=`expr "$@" || test $? -eq 1` |
|---|
| 6877 | } |
|---|
| 6878 | fi # as_fn_arith |
|---|
| 6879 | |
|---|
| 6880 | |
|---|
| 6881 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|---|
| 6882 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|---|
| 6883 | as_expr=expr |
|---|
| 6884 | else |
|---|
| 6885 | as_expr=false |
|---|
| 6886 | fi |
|---|
| 6887 | |
|---|
| 6888 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|---|
| 6889 | as_basename=basename |
|---|
| 6890 | else |
|---|
| 6891 | as_basename=false |
|---|
| 6892 | fi |
|---|
| 6893 | |
|---|
| 6894 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|---|
| 6895 | as_dirname=dirname |
|---|
| 6896 | else |
|---|
| 6897 | as_dirname=false |
|---|
| 6898 | fi |
|---|
| 6899 | |
|---|
| 6900 | as_me=`$as_basename -- "$0" || |
|---|
| 6901 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|---|
| 6902 | X"$0" : 'X\(//\)$' \| \ |
|---|
| 6903 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 6904 | $as_echo X/"$0" | |
|---|
| 6905 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|---|
| 6906 | s//\1/ |
|---|
| 6907 | q |
|---|
| 6908 | } |
|---|
| 6909 | /^X\/\(\/\/\)$/{ |
|---|
| 6910 | s//\1/ |
|---|
| 6911 | q |
|---|
| 6912 | } |
|---|
| 6913 | /^X\/\(\/\).*/{ |
|---|
| 6914 | s//\1/ |
|---|
| 6915 | q |
|---|
| 6916 | } |
|---|
| 6917 | s/.*/./; q'` |
|---|
| 6918 | |
|---|
| 6919 | # Avoid depending upon Character Ranges. |
|---|
| 6920 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|---|
| 6921 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|---|
| 6922 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|---|
| 6923 | as_cr_digits='0123456789' |
|---|
| 6924 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|---|
| 6925 | |
|---|
| 6926 | ECHO_C= ECHO_N= ECHO_T= |
|---|
| 6927 | case `echo -n x` in #((((( |
|---|
| 6928 | -n*) |
|---|
| 6929 | case `echo 'xy\c'` in |
|---|
| 6930 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|---|
| 6931 | xy) ECHO_C='\c';; |
|---|
| 6932 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|---|
| 6933 | ECHO_T=' ';; |
|---|
| 6934 | esac;; |
|---|
| 6935 | *) |
|---|
| 6936 | ECHO_N='-n';; |
|---|
| 6937 | esac |
|---|
| 6938 | |
|---|
| 6939 | rm -f conf$$ conf$$.exe conf$$.file |
|---|
| 6940 | if test -d conf$$.dir; then |
|---|
| 6941 | rm -f conf$$.dir/conf$$.file |
|---|
| 6942 | else |
|---|
| 6943 | rm -f conf$$.dir |
|---|
| 6944 | mkdir conf$$.dir 2>/dev/null |
|---|
| 6945 | fi |
|---|
| 6946 | if (echo >conf$$.file) 2>/dev/null; then |
|---|
| 6947 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|---|
| 6948 | as_ln_s='ln -s' |
|---|
| 6949 | # ... but there are two gotchas: |
|---|
| 6950 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|---|
| 6951 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|---|
| 6952 | # In both cases, we have to default to `cp -p'. |
|---|
| 6953 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|---|
| 6954 | as_ln_s='cp -p' |
|---|
| 6955 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|---|
| 6956 | as_ln_s=ln |
|---|
| 6957 | else |
|---|
| 6958 | as_ln_s='cp -p' |
|---|
| 6959 | fi |
|---|
| 6960 | else |
|---|
| 6961 | as_ln_s='cp -p' |
|---|
| 6962 | fi |
|---|
| 6963 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|---|
| 6964 | rmdir conf$$.dir 2>/dev/null |
|---|
| 6965 | |
|---|
| 6966 | |
|---|
| 6967 | # as_fn_mkdir_p |
|---|
| 6968 | # ------------- |
|---|
| 6969 | # Create "$as_dir" as a directory, including parents if necessary. |
|---|
| 6970 | as_fn_mkdir_p () |
|---|
| 6971 | { |
|---|
| 6972 | |
|---|
| 6973 | case $as_dir in #( |
|---|
| 6974 | -*) as_dir=./$as_dir;; |
|---|
| 6975 | esac |
|---|
| 6976 | test -d "$as_dir" || eval $as_mkdir_p || { |
|---|
| 6977 | as_dirs= |
|---|
| 6978 | while :; do |
|---|
| 6979 | case $as_dir in #( |
|---|
| 6980 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|---|
| 6981 | *) as_qdir=$as_dir;; |
|---|
| 6982 | esac |
|---|
| 6983 | as_dirs="'$as_qdir' $as_dirs" |
|---|
| 6984 | as_dir=`$as_dirname -- "$as_dir" || |
|---|
| 6985 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 6986 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|---|
| 6987 | X"$as_dir" : 'X\(//\)$' \| \ |
|---|
| 6988 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 6989 | $as_echo X"$as_dir" | |
|---|
| 6990 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 6991 | s//\1/ |
|---|
| 6992 | q |
|---|
| 6993 | } |
|---|
| 6994 | /^X\(\/\/\)[^/].*/{ |
|---|
| 6995 | s//\1/ |
|---|
| 6996 | q |
|---|
| 6997 | } |
|---|
| 6998 | /^X\(\/\/\)$/{ |
|---|
| 6999 | s//\1/ |
|---|
| 7000 | q |
|---|
| 7001 | } |
|---|
| 7002 | /^X\(\/\).*/{ |
|---|
| 7003 | s//\1/ |
|---|
| 7004 | q |
|---|
| 7005 | } |
|---|
| 7006 | s/.*/./; q'` |
|---|
| 7007 | test -d "$as_dir" && break |
|---|
| 7008 | done |
|---|
| 7009 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|---|
| 7010 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|---|
| 7011 | |
|---|
| 7012 | |
|---|
| 7013 | } # as_fn_mkdir_p |
|---|
| 7014 | if mkdir -p . 2>/dev/null; then |
|---|
| 7015 | as_mkdir_p='mkdir -p "$as_dir"' |
|---|
| 7016 | else |
|---|
| 7017 | test -d ./-p && rmdir ./-p |
|---|
| 7018 | as_mkdir_p=false |
|---|
| 7019 | fi |
|---|
| 7020 | |
|---|
| 7021 | if test -x / >/dev/null 2>&1; then |
|---|
| 7022 | as_test_x='test -x' |
|---|
| 7023 | else |
|---|
| 7024 | if ls -dL / >/dev/null 2>&1; then |
|---|
| 7025 | as_ls_L_option=L |
|---|
| 7026 | else |
|---|
| 7027 | as_ls_L_option= |
|---|
| 7028 | fi |
|---|
| 7029 | as_test_x=' |
|---|
| 7030 | eval sh -c '\'' |
|---|
| 7031 | if test -d "$1"; then |
|---|
| 7032 | test -d "$1/."; |
|---|
| 7033 | else |
|---|
| 7034 | case $1 in #( |
|---|
| 7035 | -*)set "./$1";; |
|---|
| 7036 | esac; |
|---|
| 7037 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|---|
| 7038 | ???[sx]*):;;*)false;;esac;fi |
|---|
| 7039 | '\'' sh |
|---|
| 7040 | ' |
|---|
| 7041 | fi |
|---|
| 7042 | as_executable_p=$as_test_x |
|---|
| 7043 | |
|---|
| 7044 | # Sed expression to map a string onto a valid CPP name. |
|---|
| 7045 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 7046 | |
|---|
| 7047 | # Sed expression to map a string onto a valid variable name. |
|---|
| 7048 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 7049 | |
|---|
| 7050 | |
|---|
| 7051 | exec 6>&1 |
|---|
| 7052 | ## ----------------------------------- ## |
|---|
| 7053 | ## Main body of $CONFIG_STATUS script. ## |
|---|
| 7054 | ## ----------------------------------- ## |
|---|
| 7055 | _ASEOF |
|---|
| 7056 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|---|
| 7057 | |
|---|
| 7058 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7059 | # Save the log message, to keep $0 and so on meaningful, and to |
|---|
| 7060 | # report actual input values of CONFIG_FILES etc. instead of their |
|---|
| 7061 | # values after options handling. |
|---|
| 7062 | ac_log=" |
|---|
| 7063 | This file was extended by $as_me, which was |
|---|
| 7064 | generated by GNU Autoconf 2.68. Invocation command line was |
|---|
| 7065 | |
|---|
| 7066 | CONFIG_FILES = $CONFIG_FILES |
|---|
| 7067 | CONFIG_HEADERS = $CONFIG_HEADERS |
|---|
| 7068 | CONFIG_LINKS = $CONFIG_LINKS |
|---|
| 7069 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|---|
| 7070 | $ $0 $@ |
|---|
| 7071 | |
|---|
| 7072 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 7073 | " |
|---|
| 7074 | |
|---|
| 7075 | _ACEOF |
|---|
| 7076 | |
|---|
| 7077 | case $ac_config_files in *" |
|---|
| 7078 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|---|
| 7079 | esac |
|---|
| 7080 | |
|---|
| 7081 | case $ac_config_headers in *" |
|---|
| 7082 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|---|
| 7083 | esac |
|---|
| 7084 | |
|---|
| 7085 | |
|---|
| 7086 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7087 | # Files that config.status was made for. |
|---|
| 7088 | config_files="$ac_config_files" |
|---|
| 7089 | config_headers="$ac_config_headers" |
|---|
| 7090 | |
|---|
| 7091 | _ACEOF |
|---|
| 7092 | |
|---|
| 7093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7094 | ac_cs_usage="\ |
|---|
| 7095 | \`$as_me' instantiates files and other configuration actions |
|---|
| 7096 | from templates according to the current configuration. Unless the files |
|---|
| 7097 | and actions are specified as TAGs, all are instantiated by default. |
|---|
| 7098 | |
|---|
| 7099 | Usage: $0 [OPTION]... [TAG]... |
|---|
| 7100 | |
|---|
| 7101 | -h, --help print this help, then exit |
|---|
| 7102 | -V, --version print version number and configuration settings, then exit |
|---|
| 7103 | --config print configuration, then exit |
|---|
| 7104 | -q, --quiet, --silent |
|---|
| 7105 | do not print progress messages |
|---|
| 7106 | -d, --debug don't remove temporary files |
|---|
| 7107 | --recheck update $as_me by reconfiguring in the same conditions |
|---|
| 7108 | --file=FILE[:TEMPLATE] |
|---|
| 7109 | instantiate the configuration file FILE |
|---|
| 7110 | --header=FILE[:TEMPLATE] |
|---|
| 7111 | instantiate the configuration header FILE |
|---|
| 7112 | |
|---|
| 7113 | Configuration files: |
|---|
| 7114 | $config_files |
|---|
| 7115 | |
|---|
| 7116 | Configuration headers: |
|---|
| 7117 | $config_headers |
|---|
| 7118 | |
|---|
| 7119 | Report bugs to the package provider." |
|---|
| 7120 | |
|---|
| 7121 | _ACEOF |
|---|
| 7122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7123 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
|---|
| 7124 | ac_cs_version="\\ |
|---|
| 7125 | config.status |
|---|
| 7126 | configured by $0, generated by GNU Autoconf 2.68, |
|---|
| 7127 | with options \\"\$ac_cs_config\\" |
|---|
| 7128 | |
|---|
| 7129 | Copyright (C) 2010 Free Software Foundation, Inc. |
|---|
| 7130 | This config.status script is free software; the Free Software Foundation |
|---|
| 7131 | gives unlimited permission to copy, distribute and modify it." |
|---|
| 7132 | |
|---|
| 7133 | ac_pwd='$ac_pwd' |
|---|
| 7134 | srcdir='$srcdir' |
|---|
| 7135 | INSTALL='$INSTALL' |
|---|
| 7136 | test -n "\$AWK" || AWK=awk |
|---|
| 7137 | _ACEOF |
|---|
| 7138 | |
|---|
| 7139 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7140 | # The default lists apply if the user does not specify any file. |
|---|
| 7141 | ac_need_defaults=: |
|---|
| 7142 | while test $# != 0 |
|---|
| 7143 | do |
|---|
| 7144 | case $1 in |
|---|
| 7145 | --*=?*) |
|---|
| 7146 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|---|
| 7147 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|---|
| 7148 | ac_shift=: |
|---|
| 7149 | ;; |
|---|
| 7150 | --*=) |
|---|
| 7151 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|---|
| 7152 | ac_optarg= |
|---|
| 7153 | ac_shift=: |
|---|
| 7154 | ;; |
|---|
| 7155 | *) |
|---|
| 7156 | ac_option=$1 |
|---|
| 7157 | ac_optarg=$2 |
|---|
| 7158 | ac_shift=shift |
|---|
| 7159 | ;; |
|---|
| 7160 | esac |
|---|
| 7161 | |
|---|
| 7162 | case $ac_option in |
|---|
| 7163 | # Handling of the options. |
|---|
| 7164 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|---|
| 7165 | ac_cs_recheck=: ;; |
|---|
| 7166 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|---|
| 7167 | $as_echo "$ac_cs_version"; exit ;; |
|---|
| 7168 | --config | --confi | --conf | --con | --co | --c ) |
|---|
| 7169 | $as_echo "$ac_cs_config"; exit ;; |
|---|
| 7170 | --debug | --debu | --deb | --de | --d | -d ) |
|---|
| 7171 | debug=: ;; |
|---|
| 7172 | --file | --fil | --fi | --f ) |
|---|
| 7173 | $ac_shift |
|---|
| 7174 | case $ac_optarg in |
|---|
| 7175 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 7176 | '') as_fn_error $? "missing file argument" ;; |
|---|
| 7177 | esac |
|---|
| 7178 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
|---|
| 7179 | ac_need_defaults=false;; |
|---|
| 7180 | --header | --heade | --head | --hea ) |
|---|
| 7181 | $ac_shift |
|---|
| 7182 | case $ac_optarg in |
|---|
| 7183 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 7184 | esac |
|---|
| 7185 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|---|
| 7186 | ac_need_defaults=false;; |
|---|
| 7187 | --he | --h) |
|---|
| 7188 | # Conflict between --help and --header |
|---|
| 7189 | as_fn_error $? "ambiguous option: \`$1' |
|---|
| 7190 | Try \`$0 --help' for more information.";; |
|---|
| 7191 | --help | --hel | -h ) |
|---|
| 7192 | $as_echo "$ac_cs_usage"; exit ;; |
|---|
| 7193 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 7194 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|---|
| 7195 | ac_cs_silent=: ;; |
|---|
| 7196 | |
|---|
| 7197 | # This is an error. |
|---|
| 7198 | -*) as_fn_error $? "unrecognized option: \`$1' |
|---|
| 7199 | Try \`$0 --help' for more information." ;; |
|---|
| 7200 | |
|---|
| 7201 | *) as_fn_append ac_config_targets " $1" |
|---|
| 7202 | ac_need_defaults=false ;; |
|---|
| 7203 | |
|---|
| 7204 | esac |
|---|
| 7205 | shift |
|---|
| 7206 | done |
|---|
| 7207 | |
|---|
| 7208 | ac_configure_extra_args= |
|---|
| 7209 | |
|---|
| 7210 | if $ac_cs_silent; then |
|---|
| 7211 | exec 6>/dev/null |
|---|
| 7212 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|---|
| 7213 | fi |
|---|
| 7214 | |
|---|
| 7215 | _ACEOF |
|---|
| 7216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7217 | if \$ac_cs_recheck; then |
|---|
| 7218 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|---|
| 7219 | shift |
|---|
| 7220 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|---|
| 7221 | CONFIG_SHELL='$SHELL' |
|---|
| 7222 | export CONFIG_SHELL |
|---|
| 7223 | exec "\$@" |
|---|
| 7224 | fi |
|---|
| 7225 | |
|---|
| 7226 | _ACEOF |
|---|
| 7227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7228 | exec 5>>config.log |
|---|
| 7229 | { |
|---|
| 7230 | echo |
|---|
| 7231 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|---|
| 7232 | ## Running $as_me. ## |
|---|
| 7233 | _ASBOX |
|---|
| 7234 | $as_echo "$ac_log" |
|---|
| 7235 | } >&5 |
|---|
| 7236 | |
|---|
| 7237 | _ACEOF |
|---|
| 7238 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7239 | _ACEOF |
|---|
| 7240 | |
|---|
| 7241 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7242 | |
|---|
| 7243 | # Handling of arguments. |
|---|
| 7244 | for ac_config_target in $ac_config_targets |
|---|
| 7245 | do |
|---|
| 7246 | case $ac_config_target in |
|---|
| 7247 | "uclconf.h") CONFIG_HEADERS="$CONFIG_HEADERS uclconf.h:config.h.in" ;; |
|---|
| 7248 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|---|
| 7249 | |
|---|
| 7250 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|---|
| 7251 | esac |
|---|
| 7252 | done |
|---|
| 7253 | |
|---|
| 7254 | |
|---|
| 7255 | # If the user did not use the arguments to specify the items to instantiate, |
|---|
| 7256 | # then the envvar interface is used. Set only those that are not. |
|---|
| 7257 | # We use the long form for the default assignment because of an extremely |
|---|
| 7258 | # bizarre bug on SunOS 4.1.3. |
|---|
| 7259 | if $ac_need_defaults; then |
|---|
| 7260 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|---|
| 7261 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|---|
| 7262 | fi |
|---|
| 7263 | |
|---|
| 7264 | # Have a temporary directory for convenience. Make it in the build tree |
|---|
| 7265 | # simply because there is no reason against having it here, and in addition, |
|---|
| 7266 | # creating and moving files from /tmp can sometimes cause problems. |
|---|
| 7267 | # Hook for its removal unless debugging. |
|---|
| 7268 | # Note that there is a small window in which the directory will not be cleaned: |
|---|
| 7269 | # after its creation but before its name has been assigned to `$tmp'. |
|---|
| 7270 | $debug || |
|---|
| 7271 | { |
|---|
| 7272 | tmp= ac_tmp= |
|---|
| 7273 | trap 'exit_status=$? |
|---|
| 7274 | : "${ac_tmp:=$tmp}" |
|---|
| 7275 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|---|
| 7276 | ' 0 |
|---|
| 7277 | trap 'as_fn_exit 1' 1 2 13 15 |
|---|
| 7278 | } |
|---|
| 7279 | # Create a (secure) tmp directory for tmp files. |
|---|
| 7280 | |
|---|
| 7281 | { |
|---|
| 7282 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|---|
| 7283 | test -d "$tmp" |
|---|
| 7284 | } || |
|---|
| 7285 | { |
|---|
| 7286 | tmp=./conf$$-$RANDOM |
|---|
| 7287 | (umask 077 && mkdir "$tmp") |
|---|
| 7288 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|---|
| 7289 | ac_tmp=$tmp |
|---|
| 7290 | |
|---|
| 7291 | # Set up the scripts for CONFIG_FILES section. |
|---|
| 7292 | # No need to generate them if there are no CONFIG_FILES. |
|---|
| 7293 | # This happens for instance with `./config.status config.h'. |
|---|
| 7294 | if test -n "$CONFIG_FILES"; then |
|---|
| 7295 | |
|---|
| 7296 | |
|---|
| 7297 | ac_cr=`echo X | tr X '\015'` |
|---|
| 7298 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|---|
| 7299 | # But we know of no other shell where ac_cr would be empty at this |
|---|
| 7300 | # point, so we can use a bashism as a fallback. |
|---|
| 7301 | if test "x$ac_cr" = x; then |
|---|
| 7302 | eval ac_cr=\$\'\\r\' |
|---|
| 7303 | fi |
|---|
| 7304 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|---|
| 7305 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|---|
| 7306 | ac_cs_awk_cr='\\r' |
|---|
| 7307 | else |
|---|
| 7308 | ac_cs_awk_cr=$ac_cr |
|---|
| 7309 | fi |
|---|
| 7310 | |
|---|
| 7311 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|---|
| 7312 | _ACEOF |
|---|
| 7313 | |
|---|
| 7314 | |
|---|
| 7315 | { |
|---|
| 7316 | echo "cat >conf$$subs.awk <<_ACEOF" && |
|---|
| 7317 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|---|
| 7318 | echo "_ACEOF" |
|---|
| 7319 | } >conf$$subs.sh || |
|---|
| 7320 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|---|
| 7321 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|---|
| 7322 | ac_delim='%!_!# ' |
|---|
| 7323 | for ac_last_try in false false false false false :; do |
|---|
| 7324 | . ./conf$$subs.sh || |
|---|
| 7325 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|---|
| 7326 | |
|---|
| 7327 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|---|
| 7328 | if test $ac_delim_n = $ac_delim_num; then |
|---|
| 7329 | break |
|---|
| 7330 | elif $ac_last_try; then |
|---|
| 7331 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|---|
| 7332 | else |
|---|
| 7333 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|---|
| 7334 | fi |
|---|
| 7335 | done |
|---|
| 7336 | rm -f conf$$subs.sh |
|---|
| 7337 | |
|---|
| 7338 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7339 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|---|
| 7340 | _ACEOF |
|---|
| 7341 | sed -n ' |
|---|
| 7342 | h |
|---|
| 7343 | s/^/S["/; s/!.*/"]=/ |
|---|
| 7344 | p |
|---|
| 7345 | g |
|---|
| 7346 | s/^[^!]*!// |
|---|
| 7347 | :repl |
|---|
| 7348 | t repl |
|---|
| 7349 | s/'"$ac_delim"'$// |
|---|
| 7350 | t delim |
|---|
| 7351 | :nl |
|---|
| 7352 | h |
|---|
| 7353 | s/\(.\{148\}\)..*/\1/ |
|---|
| 7354 | t more1 |
|---|
| 7355 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|---|
| 7356 | p |
|---|
| 7357 | n |
|---|
| 7358 | b repl |
|---|
| 7359 | :more1 |
|---|
| 7360 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|---|
| 7361 | p |
|---|
| 7362 | g |
|---|
| 7363 | s/.\{148\}// |
|---|
| 7364 | t nl |
|---|
| 7365 | :delim |
|---|
| 7366 | h |
|---|
| 7367 | s/\(.\{148\}\)..*/\1/ |
|---|
| 7368 | t more2 |
|---|
| 7369 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|---|
| 7370 | p |
|---|
| 7371 | b |
|---|
| 7372 | :more2 |
|---|
| 7373 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|---|
| 7374 | p |
|---|
| 7375 | g |
|---|
| 7376 | s/.\{148\}// |
|---|
| 7377 | t delim |
|---|
| 7378 | ' <conf$$subs.awk | sed ' |
|---|
| 7379 | /^[^""]/{ |
|---|
| 7380 | N |
|---|
| 7381 | s/\n// |
|---|
| 7382 | } |
|---|
| 7383 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
|---|
| 7384 | rm -f conf$$subs.awk |
|---|
| 7385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7386 | _ACAWK |
|---|
| 7387 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|---|
| 7388 | for (key in S) S_is_set[key] = 1 |
|---|
| 7389 | FS = "" |
|---|
| 7390 | |
|---|
| 7391 | } |
|---|
| 7392 | { |
|---|
| 7393 | line = $ 0 |
|---|
| 7394 | nfields = split(line, field, "@") |
|---|
| 7395 | substed = 0 |
|---|
| 7396 | len = length(field[1]) |
|---|
| 7397 | for (i = 2; i < nfields; i++) { |
|---|
| 7398 | key = field[i] |
|---|
| 7399 | keylen = length(key) |
|---|
| 7400 | if (S_is_set[key]) { |
|---|
| 7401 | value = S[key] |
|---|
| 7402 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|---|
| 7403 | len += length(value) + length(field[++i]) |
|---|
| 7404 | substed = 1 |
|---|
| 7405 | } else |
|---|
| 7406 | len += 1 + keylen |
|---|
| 7407 | } |
|---|
| 7408 | |
|---|
| 7409 | print line |
|---|
| 7410 | } |
|---|
| 7411 | |
|---|
| 7412 | _ACAWK |
|---|
| 7413 | _ACEOF |
|---|
| 7414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7415 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|---|
| 7416 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|---|
| 7417 | else |
|---|
| 7418 | cat |
|---|
| 7419 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|---|
| 7420 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|---|
| 7421 | _ACEOF |
|---|
| 7422 | |
|---|
| 7423 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|---|
| 7424 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|---|
| 7425 | # trailing colons and then remove the whole line if VPATH becomes empty |
|---|
| 7426 | # (actually we leave an empty line to preserve line numbers). |
|---|
| 7427 | if test "x$srcdir" = x.; then |
|---|
| 7428 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|---|
| 7429 | h |
|---|
| 7430 | s/// |
|---|
| 7431 | s/^/:/ |
|---|
| 7432 | s/[ ]*$/:/ |
|---|
| 7433 | s/:\$(srcdir):/:/g |
|---|
| 7434 | s/:\${srcdir}:/:/g |
|---|
| 7435 | s/:@srcdir@:/:/g |
|---|
| 7436 | s/^:*// |
|---|
| 7437 | s/:*$// |
|---|
| 7438 | x |
|---|
| 7439 | s/\(=[ ]*\).*/\1/ |
|---|
| 7440 | G |
|---|
| 7441 | s/\n// |
|---|
| 7442 | s/^[^=]*=[ ]*$// |
|---|
| 7443 | }' |
|---|
| 7444 | fi |
|---|
| 7445 | |
|---|
| 7446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7447 | fi # test -n "$CONFIG_FILES" |
|---|
| 7448 | |
|---|
| 7449 | # Set up the scripts for CONFIG_HEADERS section. |
|---|
| 7450 | # No need to generate them if there are no CONFIG_HEADERS. |
|---|
| 7451 | # This happens for instance with `./config.status Makefile'. |
|---|
| 7452 | if test -n "$CONFIG_HEADERS"; then |
|---|
| 7453 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
|---|
| 7454 | BEGIN { |
|---|
| 7455 | _ACEOF |
|---|
| 7456 | |
|---|
| 7457 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
|---|
| 7458 | # here-document in config.status, that substitutes the proper values into |
|---|
| 7459 | # config.h.in to produce config.h. |
|---|
| 7460 | |
|---|
| 7461 | # Create a delimiter string that does not exist in confdefs.h, to ease |
|---|
| 7462 | # handling of long lines. |
|---|
| 7463 | ac_delim='%!_!# ' |
|---|
| 7464 | for ac_last_try in false false :; do |
|---|
| 7465 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
|---|
| 7466 | if test -z "$ac_tt"; then |
|---|
| 7467 | break |
|---|
| 7468 | elif $ac_last_try; then |
|---|
| 7469 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|---|
| 7470 | else |
|---|
| 7471 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|---|
| 7472 | fi |
|---|
| 7473 | done |
|---|
| 7474 | |
|---|
| 7475 | # For the awk script, D is an array of macro values keyed by name, |
|---|
| 7476 | # likewise P contains macro parameters if any. Preserve backslash |
|---|
| 7477 | # newline sequences. |
|---|
| 7478 | |
|---|
| 7479 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|---|
| 7480 | sed -n ' |
|---|
| 7481 | s/.\{148\}/&'"$ac_delim"'/g |
|---|
| 7482 | t rset |
|---|
| 7483 | :rset |
|---|
| 7484 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
|---|
| 7485 | t def |
|---|
| 7486 | d |
|---|
| 7487 | :def |
|---|
| 7488 | s/\\$// |
|---|
| 7489 | t bsnl |
|---|
| 7490 | s/["\\]/\\&/g |
|---|
| 7491 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|---|
| 7492 | D["\1"]=" \3"/p |
|---|
| 7493 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|---|
| 7494 | d |
|---|
| 7495 | :bsnl |
|---|
| 7496 | s/["\\]/\\&/g |
|---|
| 7497 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|---|
| 7498 | D["\1"]=" \3\\\\\\n"\\/p |
|---|
| 7499 | t cont |
|---|
| 7500 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|---|
| 7501 | t cont |
|---|
| 7502 | d |
|---|
| 7503 | :cont |
|---|
| 7504 | n |
|---|
| 7505 | s/.\{148\}/&'"$ac_delim"'/g |
|---|
| 7506 | t clear |
|---|
| 7507 | :clear |
|---|
| 7508 | s/\\$// |
|---|
| 7509 | t bsnlc |
|---|
| 7510 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|---|
| 7511 | d |
|---|
| 7512 | :bsnlc |
|---|
| 7513 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|---|
| 7514 | b cont |
|---|
| 7515 | ' <confdefs.h | sed ' |
|---|
| 7516 | s/'"$ac_delim"'/"\\\ |
|---|
| 7517 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|---|
| 7518 | |
|---|
| 7519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7520 | for (key in D) D_is_set[key] = 1 |
|---|
| 7521 | FS = "" |
|---|
| 7522 | } |
|---|
| 7523 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|---|
| 7524 | line = \$ 0 |
|---|
| 7525 | split(line, arg, " ") |
|---|
| 7526 | if (arg[1] == "#") { |
|---|
| 7527 | defundef = arg[2] |
|---|
| 7528 | mac1 = arg[3] |
|---|
| 7529 | } else { |
|---|
| 7530 | defundef = substr(arg[1], 2) |
|---|
| 7531 | mac1 = arg[2] |
|---|
| 7532 | } |
|---|
| 7533 | split(mac1, mac2, "(") #) |
|---|
| 7534 | macro = mac2[1] |
|---|
| 7535 | prefix = substr(line, 1, index(line, defundef) - 1) |
|---|
| 7536 | if (D_is_set[macro]) { |
|---|
| 7537 | # Preserve the white space surrounding the "#". |
|---|
| 7538 | print prefix "define", macro P[macro] D[macro] |
|---|
| 7539 | next |
|---|
| 7540 | } else { |
|---|
| 7541 | # Replace #undef with comments. This is necessary, for example, |
|---|
| 7542 | # in the case of _POSIX_SOURCE, which is predefined and required |
|---|
| 7543 | # on some systems where configure will not decide to define it. |
|---|
| 7544 | if (defundef == "undef") { |
|---|
| 7545 | print "/*", prefix defundef, macro, "*/" |
|---|
| 7546 | next |
|---|
| 7547 | } |
|---|
| 7548 | } |
|---|
| 7549 | } |
|---|
| 7550 | { print } |
|---|
| 7551 | _ACAWK |
|---|
| 7552 | _ACEOF |
|---|
| 7553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7554 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
|---|
| 7555 | fi # test -n "$CONFIG_HEADERS" |
|---|
| 7556 | |
|---|
| 7557 | |
|---|
| 7558 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
|---|
| 7559 | shift |
|---|
| 7560 | for ac_tag |
|---|
| 7561 | do |
|---|
| 7562 | case $ac_tag in |
|---|
| 7563 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|---|
| 7564 | esac |
|---|
| 7565 | case $ac_mode$ac_tag in |
|---|
| 7566 | :[FHL]*:*);; |
|---|
| 7567 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|---|
| 7568 | :[FH]-) ac_tag=-:-;; |
|---|
| 7569 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|---|
| 7570 | esac |
|---|
| 7571 | ac_save_IFS=$IFS |
|---|
| 7572 | IFS=: |
|---|
| 7573 | set x $ac_tag |
|---|
| 7574 | IFS=$ac_save_IFS |
|---|
| 7575 | shift |
|---|
| 7576 | ac_file=$1 |
|---|
| 7577 | shift |
|---|
| 7578 | |
|---|
| 7579 | case $ac_mode in |
|---|
| 7580 | :L) ac_source=$1;; |
|---|
| 7581 | :[FH]) |
|---|
| 7582 | ac_file_inputs= |
|---|
| 7583 | for ac_f |
|---|
| 7584 | do |
|---|
| 7585 | case $ac_f in |
|---|
| 7586 | -) ac_f="$ac_tmp/stdin";; |
|---|
| 7587 | *) # Look for the file first in the build tree, then in the source tree |
|---|
| 7588 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|---|
| 7589 | # because $ac_f cannot contain `:'. |
|---|
| 7590 | test -f "$ac_f" || |
|---|
| 7591 | case $ac_f in |
|---|
| 7592 | [\\/$]*) false;; |
|---|
| 7593 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|---|
| 7594 | esac || |
|---|
| 7595 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|---|
| 7596 | esac |
|---|
| 7597 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|---|
| 7598 | as_fn_append ac_file_inputs " '$ac_f'" |
|---|
| 7599 | done |
|---|
| 7600 | |
|---|
| 7601 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|---|
| 7602 | # use $as_me), people would be surprised to read: |
|---|
| 7603 | # /* config.h. Generated by config.status. */ |
|---|
| 7604 | configure_input='Generated from '` |
|---|
| 7605 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|---|
| 7606 | `' by configure.' |
|---|
| 7607 | if test x"$ac_file" != x-; then |
|---|
| 7608 | configure_input="$ac_file. $configure_input" |
|---|
| 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|---|
| 7610 | $as_echo "$as_me: creating $ac_file" >&6;} |
|---|
| 7611 | fi |
|---|
| 7612 | # Neutralize special characters interpreted by sed in replacement strings. |
|---|
| 7613 | case $configure_input in #( |
|---|
| 7614 | *\&* | *\|* | *\\* ) |
|---|
| 7615 | ac_sed_conf_input=`$as_echo "$configure_input" | |
|---|
| 7616 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|---|
| 7617 | *) ac_sed_conf_input=$configure_input;; |
|---|
| 7618 | esac |
|---|
| 7619 | |
|---|
| 7620 | case $ac_tag in |
|---|
| 7621 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|---|
| 7622 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|---|
| 7623 | esac |
|---|
| 7624 | ;; |
|---|
| 7625 | esac |
|---|
| 7626 | |
|---|
| 7627 | ac_dir=`$as_dirname -- "$ac_file" || |
|---|
| 7628 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 7629 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|---|
| 7630 | X"$ac_file" : 'X\(//\)$' \| \ |
|---|
| 7631 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 7632 | $as_echo X"$ac_file" | |
|---|
| 7633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 7634 | s//\1/ |
|---|
| 7635 | q |
|---|
| 7636 | } |
|---|
| 7637 | /^X\(\/\/\)[^/].*/{ |
|---|
| 7638 | s//\1/ |
|---|
| 7639 | q |
|---|
| 7640 | } |
|---|
| 7641 | /^X\(\/\/\)$/{ |
|---|
| 7642 | s//\1/ |
|---|
| 7643 | q |
|---|
| 7644 | } |
|---|
| 7645 | /^X\(\/\).*/{ |
|---|
| 7646 | s//\1/ |
|---|
| 7647 | q |
|---|
| 7648 | } |
|---|
| 7649 | s/.*/./; q'` |
|---|
| 7650 | as_dir="$ac_dir"; as_fn_mkdir_p |
|---|
| 7651 | ac_builddir=. |
|---|
| 7652 | |
|---|
| 7653 | case "$ac_dir" in |
|---|
| 7654 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 7655 | *) |
|---|
| 7656 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|---|
| 7657 | # A ".." for each directory in $ac_dir_suffix. |
|---|
| 7658 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|---|
| 7659 | case $ac_top_builddir_sub in |
|---|
| 7660 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 7661 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|---|
| 7662 | esac ;; |
|---|
| 7663 | esac |
|---|
| 7664 | ac_abs_top_builddir=$ac_pwd |
|---|
| 7665 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|---|
| 7666 | # for backward compatibility: |
|---|
| 7667 | ac_top_builddir=$ac_top_build_prefix |
|---|
| 7668 | |
|---|
| 7669 | case $srcdir in |
|---|
| 7670 | .) # We are building in place. |
|---|
| 7671 | ac_srcdir=. |
|---|
| 7672 | ac_top_srcdir=$ac_top_builddir_sub |
|---|
| 7673 | ac_abs_top_srcdir=$ac_pwd ;; |
|---|
| 7674 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|---|
| 7675 | ac_srcdir=$srcdir$ac_dir_suffix; |
|---|
| 7676 | ac_top_srcdir=$srcdir |
|---|
| 7677 | ac_abs_top_srcdir=$srcdir ;; |
|---|
| 7678 | *) # Relative name. |
|---|
| 7679 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|---|
| 7680 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|---|
| 7681 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|---|
| 7682 | esac |
|---|
| 7683 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|---|
| 7684 | |
|---|
| 7685 | |
|---|
| 7686 | case $ac_mode in |
|---|
| 7687 | :F) |
|---|
| 7688 | # |
|---|
| 7689 | # CONFIG_FILE |
|---|
| 7690 | # |
|---|
| 7691 | |
|---|
| 7692 | case $INSTALL in |
|---|
| 7693 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|---|
| 7694 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|---|
| 7695 | esac |
|---|
| 7696 | _ACEOF |
|---|
| 7697 | |
|---|
| 7698 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7699 | # If the template does not know about datarootdir, expand it. |
|---|
| 7700 | # FIXME: This hack should be removed a few years after 2.60. |
|---|
| 7701 | ac_datarootdir_hack=; ac_datarootdir_seen= |
|---|
| 7702 | ac_sed_dataroot=' |
|---|
| 7703 | /datarootdir/ { |
|---|
| 7704 | p |
|---|
| 7705 | q |
|---|
| 7706 | } |
|---|
| 7707 | /@datadir@/p |
|---|
| 7708 | /@docdir@/p |
|---|
| 7709 | /@infodir@/p |
|---|
| 7710 | /@localedir@/p |
|---|
| 7711 | /@mandir@/p' |
|---|
| 7712 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|---|
| 7713 | *datarootdir*) ac_datarootdir_seen=yes;; |
|---|
| 7714 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|---|
| 7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|---|
| 7716 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|---|
| 7717 | _ACEOF |
|---|
| 7718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7719 | ac_datarootdir_hack=' |
|---|
| 7720 | s&@datadir@&$datadir&g |
|---|
| 7721 | s&@docdir@&$docdir&g |
|---|
| 7722 | s&@infodir@&$infodir&g |
|---|
| 7723 | s&@localedir@&$localedir&g |
|---|
| 7724 | s&@mandir@&$mandir&g |
|---|
| 7725 | s&\\\${datarootdir}&$datarootdir&g' ;; |
|---|
| 7726 | esac |
|---|
| 7727 | _ACEOF |
|---|
| 7728 | |
|---|
| 7729 | # Neutralize VPATH when `$srcdir' = `.'. |
|---|
| 7730 | # Shell code in configure.ac might set extrasub. |
|---|
| 7731 | # FIXME: do we really want to maintain this feature? |
|---|
| 7732 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|---|
| 7733 | ac_sed_extra="$ac_vpsub |
|---|
| 7734 | $extrasub |
|---|
| 7735 | _ACEOF |
|---|
| 7736 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|---|
| 7737 | :t |
|---|
| 7738 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|---|
| 7739 | s|@configure_input@|$ac_sed_conf_input|;t t |
|---|
| 7740 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
|---|
| 7741 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|---|
| 7742 | s&@srcdir@&$ac_srcdir&;t t |
|---|
| 7743 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|---|
| 7744 | s&@top_srcdir@&$ac_top_srcdir&;t t |
|---|
| 7745 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|---|
| 7746 | s&@builddir@&$ac_builddir&;t t |
|---|
| 7747 | s&@abs_builddir@&$ac_abs_builddir&;t t |
|---|
| 7748 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|---|
| 7749 | s&@INSTALL@&$ac_INSTALL&;t t |
|---|
| 7750 | $ac_datarootdir_hack |
|---|
| 7751 | " |
|---|
| 7752 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|---|
| 7753 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|---|
| 7754 | |
|---|
| 7755 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|---|
| 7756 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
|---|
| 7757 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|---|
| 7758 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
|---|
| 7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|---|
| 7760 | which seems to be undefined. Please make sure it is defined" >&5 |
|---|
| 7761 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|---|
| 7762 | which seems to be undefined. Please make sure it is defined" >&2;} |
|---|
| 7763 | |
|---|
| 7764 | rm -f "$ac_tmp/stdin" |
|---|
| 7765 | case $ac_file in |
|---|
| 7766 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
|---|
| 7767 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
|---|
| 7768 | esac \ |
|---|
| 7769 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|---|
| 7770 | ;; |
|---|
| 7771 | :H) |
|---|
| 7772 | # |
|---|
| 7773 | # CONFIG_HEADER |
|---|
| 7774 | # |
|---|
| 7775 | if test x"$ac_file" != x-; then |
|---|
| 7776 | { |
|---|
| 7777 | $as_echo "/* $configure_input */" \ |
|---|
| 7778 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
|---|
| 7779 | } >"$ac_tmp/config.h" \ |
|---|
| 7780 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|---|
| 7781 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
|---|
| 7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
|---|
| 7783 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
|---|
| 7784 | else |
|---|
| 7785 | rm -f "$ac_file" |
|---|
| 7786 | mv "$ac_tmp/config.h" "$ac_file" \ |
|---|
| 7787 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|---|
| 7788 | fi |
|---|
| 7789 | else |
|---|
| 7790 | $as_echo "/* $configure_input */" \ |
|---|
| 7791 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
|---|
| 7792 | || as_fn_error $? "could not create -" "$LINENO" 5 |
|---|
| 7793 | fi |
|---|
| 7794 | ;; |
|---|
| 7795 | |
|---|
| 7796 | |
|---|
| 7797 | esac |
|---|
| 7798 | |
|---|
| 7799 | done # for ac_tag |
|---|
| 7800 | |
|---|
| 7801 | |
|---|
| 7802 | as_fn_exit 0 |
|---|
| 7803 | _ACEOF |
|---|
| 7804 | ac_clean_files=$ac_clean_files_save |
|---|
| 7805 | |
|---|
| 7806 | test $ac_write_fail = 0 || |
|---|
| 7807 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|---|
| 7808 | |
|---|
| 7809 | |
|---|
| 7810 | # configure is writing to config.log, and then calls config.status. |
|---|
| 7811 | # config.status does its own redirection, appending to config.log. |
|---|
| 7812 | # Unfortunately, on DOS this fails, as config.log is still kept open |
|---|
| 7813 | # by configure, so config.status won't be able to write to it; its |
|---|
| 7814 | # output is simply discarded. So we exec the FD to /dev/null, |
|---|
| 7815 | # effectively closing config.log, so it can be properly (re)opened and |
|---|
| 7816 | # appended to by config.status. When coming back to configure, we |
|---|
| 7817 | # need to make the FD available again. |
|---|
| 7818 | if test "$no_create" != yes; then |
|---|
| 7819 | ac_cs_success=: |
|---|
| 7820 | ac_config_status_args= |
|---|
| 7821 | test "$silent" = yes && |
|---|
| 7822 | ac_config_status_args="$ac_config_status_args --quiet" |
|---|
| 7823 | exec 5>/dev/null |
|---|
| 7824 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|---|
| 7825 | exec 5>>config.log |
|---|
| 7826 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|---|
| 7827 | # would make configure fail if this is the last instruction. |
|---|
| 7828 | $ac_cs_success || as_fn_exit 1 |
|---|
| 7829 | fi |
|---|
| 7830 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|---|
| 7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|---|
| 7832 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|---|
| 7833 | fi |
|---|
| 7834 | |
|---|
| 7835 | |
|---|
| 7836 | if test -f .devel ; then |
|---|
| 7837 | make depend |
|---|
| 7838 | fi |
|---|
| 7839 | |
|---|