[4060] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.69 for nanovis 1.2. |
---|
| 4 | # |
---|
| 5 | # Report bugs to <rappture@nanohub.org>. |
---|
| 6 | # |
---|
| 7 | # |
---|
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software 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 | # Use a proper internal environment variable to ensure we don't fall |
---|
| 138 | # into an infinite loop, continuously re-executing ourselves. |
---|
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
| 140 | _as_can_reexec=no; export _as_can_reexec; |
---|
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 142 | # neutralization value for shells without unset; and this also |
---|
| 143 | # works around shells that cannot unset nonexistent variables. |
---|
| 144 | # Preserve -v and -x to the replacement shell. |
---|
| 145 | BASH_ENV=/dev/null |
---|
| 146 | ENV=/dev/null |
---|
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 148 | case $- in # (((( |
---|
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 150 | *v* ) as_opts=-v ;; |
---|
| 151 | *x* ) as_opts=-x ;; |
---|
| 152 | * ) as_opts= ;; |
---|
| 153 | esac |
---|
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 156 | # out after a failed `exec'. |
---|
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 158 | as_fn_exit 255 |
---|
| 159 | fi |
---|
| 160 | # We don't want this to propagate to other subprocesses. |
---|
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
| 162 | if test "x$CONFIG_SHELL" = x; then |
---|
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
| 164 | emulate sh |
---|
| 165 | NULLCMD=: |
---|
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
| 167 | # is contrary to our usage. Disable this feature. |
---|
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
| 169 | setopt NO_GLOB_SUBST |
---|
| 170 | else |
---|
| 171 | case \`(set -o) 2>/dev/null\` in #( |
---|
| 172 | *posix*) : |
---|
| 173 | set -o posix ;; #( |
---|
| 174 | *) : |
---|
| 175 | ;; |
---|
| 176 | esac |
---|
| 177 | fi |
---|
| 178 | " |
---|
| 179 | as_required="as_fn_return () { (exit \$1); } |
---|
| 180 | as_fn_success () { as_fn_return 0; } |
---|
| 181 | as_fn_failure () { as_fn_return 1; } |
---|
| 182 | as_fn_ret_success () { return 0; } |
---|
| 183 | as_fn_ret_failure () { return 1; } |
---|
| 184 | |
---|
| 185 | exitcode=0 |
---|
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
| 191 | |
---|
| 192 | else |
---|
| 193 | exitcode=1; echo positional parameters were not saved. |
---|
| 194 | fi |
---|
| 195 | test x\$exitcode = x0 || exit 1 |
---|
| 196 | test -x / || exit 1" |
---|
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
| 202 | if (eval "$as_required") 2>/dev/null; then : |
---|
| 203 | as_have_required=yes |
---|
| 204 | else |
---|
| 205 | as_have_required=no |
---|
| 206 | fi |
---|
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
| 208 | |
---|
| 209 | else |
---|
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 211 | as_found=false |
---|
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 213 | do |
---|
| 214 | IFS=$as_save_IFS |
---|
| 215 | test -z "$as_dir" && as_dir=. |
---|
| 216 | as_found=: |
---|
| 217 | case $as_dir in #( |
---|
| 218 | /*) |
---|
| 219 | for as_base in sh bash ksh sh5; do |
---|
| 220 | # Try only shells that exist, to save several forks. |
---|
| 221 | as_shell=$as_dir/$as_base |
---|
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 226 | break 2 |
---|
| 227 | fi |
---|
| 228 | fi |
---|
| 229 | done;; |
---|
| 230 | esac |
---|
| 231 | as_found=false |
---|
| 232 | done |
---|
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
| 236 | fi; } |
---|
| 237 | IFS=$as_save_IFS |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | if test "x$CONFIG_SHELL" != x; then : |
---|
| 241 | export CONFIG_SHELL |
---|
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 243 | # neutralization value for shells without unset; and this also |
---|
| 244 | # works around shells that cannot unset nonexistent variables. |
---|
| 245 | # Preserve -v and -x to the replacement shell. |
---|
| 246 | BASH_ENV=/dev/null |
---|
| 247 | ENV=/dev/null |
---|
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 249 | case $- in # (((( |
---|
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 251 | *v* ) as_opts=-v ;; |
---|
| 252 | *x* ) as_opts=-x ;; |
---|
| 253 | * ) as_opts= ;; |
---|
| 254 | esac |
---|
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 257 | # out after a failed `exec'. |
---|
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 259 | exit 255 |
---|
| 260 | fi |
---|
| 261 | |
---|
| 262 | if test x$as_have_required = xno; then : |
---|
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
| 264 | $as_echo "$0: the shells that I found on your system." |
---|
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
| 268 | else |
---|
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
| 270 | $0: rappture@nanohub.org about your system, including any |
---|
| 271 | $0: error possibly output before this message. Then install |
---|
| 272 | $0: a modern shell, or manually run the script under such a |
---|
| 273 | $0: shell if you do have one." |
---|
| 274 | fi |
---|
| 275 | exit 1 |
---|
| 276 | fi |
---|
| 277 | fi |
---|
| 278 | fi |
---|
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 280 | export SHELL |
---|
| 281 | # Unset more variables known to interfere with behavior of common tools. |
---|
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
| 284 | |
---|
| 285 | ## --------------------- ## |
---|
| 286 | ## M4sh Shell Functions. ## |
---|
| 287 | ## --------------------- ## |
---|
| 288 | # as_fn_unset VAR |
---|
| 289 | # --------------- |
---|
| 290 | # Portably unset VAR. |
---|
| 291 | as_fn_unset () |
---|
| 292 | { |
---|
| 293 | { eval $1=; unset $1;} |
---|
| 294 | } |
---|
| 295 | as_unset=as_fn_unset |
---|
| 296 | |
---|
| 297 | # as_fn_set_status STATUS |
---|
| 298 | # ----------------------- |
---|
| 299 | # Set $? to STATUS, without forking. |
---|
| 300 | as_fn_set_status () |
---|
| 301 | { |
---|
| 302 | return $1 |
---|
| 303 | } # as_fn_set_status |
---|
| 304 | |
---|
| 305 | # as_fn_exit STATUS |
---|
| 306 | # ----------------- |
---|
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 308 | as_fn_exit () |
---|
| 309 | { |
---|
| 310 | set +e |
---|
| 311 | as_fn_set_status $1 |
---|
| 312 | exit $1 |
---|
| 313 | } # as_fn_exit |
---|
| 314 | |
---|
| 315 | # as_fn_mkdir_p |
---|
| 316 | # ------------- |
---|
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 318 | as_fn_mkdir_p () |
---|
| 319 | { |
---|
| 320 | |
---|
| 321 | case $as_dir in #( |
---|
| 322 | -*) as_dir=./$as_dir;; |
---|
| 323 | esac |
---|
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 325 | as_dirs= |
---|
| 326 | while :; do |
---|
| 327 | case $as_dir in #( |
---|
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 329 | *) as_qdir=$as_dir;; |
---|
| 330 | esac |
---|
| 331 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 337 | $as_echo X"$as_dir" | |
---|
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 339 | s//\1/ |
---|
| 340 | q |
---|
| 341 | } |
---|
| 342 | /^X\(\/\/\)[^/].*/{ |
---|
| 343 | s//\1/ |
---|
| 344 | q |
---|
| 345 | } |
---|
| 346 | /^X\(\/\/\)$/{ |
---|
| 347 | s//\1/ |
---|
| 348 | q |
---|
| 349 | } |
---|
| 350 | /^X\(\/\).*/{ |
---|
| 351 | s//\1/ |
---|
| 352 | q |
---|
| 353 | } |
---|
| 354 | s/.*/./; q'` |
---|
| 355 | test -d "$as_dir" && break |
---|
| 356 | done |
---|
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 359 | |
---|
| 360 | |
---|
| 361 | } # as_fn_mkdir_p |
---|
| 362 | |
---|
| 363 | # as_fn_executable_p FILE |
---|
| 364 | # ----------------------- |
---|
| 365 | # Test if FILE is an executable regular file. |
---|
| 366 | as_fn_executable_p () |
---|
| 367 | { |
---|
| 368 | test -f "$1" && test -x "$1" |
---|
| 369 | } # as_fn_executable_p |
---|
| 370 | # as_fn_append VAR VALUE |
---|
| 371 | # ---------------------- |
---|
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 375 | # implementations. |
---|
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 377 | eval 'as_fn_append () |
---|
| 378 | { |
---|
| 379 | eval $1+=\$2 |
---|
| 380 | }' |
---|
| 381 | else |
---|
| 382 | as_fn_append () |
---|
| 383 | { |
---|
| 384 | eval $1=\$$1\$2 |
---|
| 385 | } |
---|
| 386 | fi # as_fn_append |
---|
| 387 | |
---|
| 388 | # as_fn_arith ARG... |
---|
| 389 | # ------------------ |
---|
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 392 | # must be portable across $(()) and expr. |
---|
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 394 | eval 'as_fn_arith () |
---|
| 395 | { |
---|
| 396 | as_val=$(( $* )) |
---|
| 397 | }' |
---|
| 398 | else |
---|
| 399 | as_fn_arith () |
---|
| 400 | { |
---|
| 401 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 402 | } |
---|
| 403 | fi # as_fn_arith |
---|
| 404 | |
---|
| 405 | |
---|
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 407 | # ---------------------------------------- |
---|
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 410 | # script with STATUS, using 1 if that was 0. |
---|
| 411 | as_fn_error () |
---|
| 412 | { |
---|
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 414 | if test "$4"; then |
---|
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 417 | fi |
---|
| 418 | $as_echo "$as_me: error: $2" >&2 |
---|
| 419 | as_fn_exit $as_status |
---|
| 420 | } # as_fn_error |
---|
| 421 | |
---|
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 424 | as_expr=expr |
---|
| 425 | else |
---|
| 426 | as_expr=false |
---|
| 427 | fi |
---|
| 428 | |
---|
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 430 | as_basename=basename |
---|
| 431 | else |
---|
| 432 | as_basename=false |
---|
| 433 | fi |
---|
| 434 | |
---|
| 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 436 | as_dirname=dirname |
---|
| 437 | else |
---|
| 438 | as_dirname=false |
---|
| 439 | fi |
---|
| 440 | |
---|
| 441 | as_me=`$as_basename -- "$0" || |
---|
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 443 | X"$0" : 'X\(//\)$' \| \ |
---|
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 445 | $as_echo X/"$0" | |
---|
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 447 | s//\1/ |
---|
| 448 | q |
---|
| 449 | } |
---|
| 450 | /^X\/\(\/\/\)$/{ |
---|
| 451 | s//\1/ |
---|
| 452 | q |
---|
| 453 | } |
---|
| 454 | /^X\/\(\/\).*/{ |
---|
| 455 | s//\1/ |
---|
| 456 | q |
---|
| 457 | } |
---|
| 458 | s/.*/./; q'` |
---|
| 459 | |
---|
| 460 | # Avoid depending upon Character Ranges. |
---|
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 464 | as_cr_digits='0123456789' |
---|
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 466 | |
---|
| 467 | |
---|
| 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 473 | sed -n ' |
---|
| 474 | p |
---|
| 475 | /[$]LINENO/= |
---|
| 476 | ' <$as_myself | |
---|
| 477 | sed ' |
---|
| 478 | s/[$]LINENO.*/&-/ |
---|
| 479 | t lineno |
---|
| 480 | b |
---|
| 481 | :lineno |
---|
| 482 | N |
---|
| 483 | :loop |
---|
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 485 | t loop |
---|
| 486 | s/-\n.*// |
---|
| 487 | ' >$as_me.lineno && |
---|
| 488 | chmod +x "$as_me.lineno" || |
---|
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
| 490 | |
---|
| 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
| 492 | # already done that, so ensure we don't try to do so again and fall |
---|
| 493 | # in an infinite loop. This has already happened in practice. |
---|
| 494 | _as_can_reexec=no; export _as_can_reexec |
---|
| 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 496 | # (the dirname of $[0] is not the place where we might find the |
---|
| 497 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 498 | . "./$as_me.lineno" |
---|
| 499 | # Exit status is that of the last command. |
---|
| 500 | exit |
---|
| 501 | } |
---|
| 502 | |
---|
| 503 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 504 | case `echo -n x` in #((((( |
---|
| 505 | -n*) |
---|
| 506 | case `echo 'xy\c'` in |
---|
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 508 | xy) ECHO_C='\c';; |
---|
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 510 | ECHO_T=' ';; |
---|
| 511 | esac;; |
---|
| 512 | *) |
---|
| 513 | ECHO_N='-n';; |
---|
| 514 | esac |
---|
| 515 | |
---|
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 517 | if test -d conf$$.dir; then |
---|
| 518 | rm -f conf$$.dir/conf$$.file |
---|
| 519 | else |
---|
| 520 | rm -f conf$$.dir |
---|
| 521 | mkdir conf$$.dir 2>/dev/null |
---|
| 522 | fi |
---|
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 525 | as_ln_s='ln -s' |
---|
| 526 | # ... but there are two gotchas: |
---|
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 529 | # In both cases, we have to default to `cp -pR'. |
---|
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 531 | as_ln_s='cp -pR' |
---|
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 533 | as_ln_s=ln |
---|
| 534 | else |
---|
| 535 | as_ln_s='cp -pR' |
---|
| 536 | fi |
---|
| 537 | else |
---|
| 538 | as_ln_s='cp -pR' |
---|
| 539 | fi |
---|
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 541 | rmdir conf$$.dir 2>/dev/null |
---|
| 542 | |
---|
| 543 | if mkdir -p . 2>/dev/null; then |
---|
| 544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 545 | else |
---|
| 546 | test -d ./-p && rmdir ./-p |
---|
| 547 | as_mkdir_p=false |
---|
| 548 | fi |
---|
| 549 | |
---|
| 550 | as_test_x='test -x' |
---|
| 551 | as_executable_p=as_fn_executable_p |
---|
| 552 | |
---|
| 553 | # Sed expression to map a string onto a valid CPP name. |
---|
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 555 | |
---|
| 556 | # Sed expression to map a string onto a valid variable name. |
---|
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 558 | |
---|
| 559 | |
---|
| 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
| 561 | exec 6>&1 |
---|
| 562 | |
---|
| 563 | # Name of the host. |
---|
| 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
| 565 | # so uname gets run too. |
---|
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 567 | |
---|
| 568 | # |
---|
| 569 | # Initializations. |
---|
| 570 | # |
---|
| 571 | ac_default_prefix=/usr/local |
---|
| 572 | ac_clean_files= |
---|
| 573 | ac_config_libobj_dir=. |
---|
| 574 | LIBOBJS= |
---|
| 575 | cross_compiling=no |
---|
| 576 | subdirs= |
---|
| 577 | MFLAGS= |
---|
| 578 | MAKEFLAGS= |
---|
| 579 | |
---|
| 580 | # Identity of this package. |
---|
| 581 | PACKAGE_NAME='nanovis' |
---|
| 582 | PACKAGE_TARNAME='nanovis' |
---|
| 583 | PACKAGE_VERSION='1.2' |
---|
| 584 | PACKAGE_STRING='nanovis 1.2' |
---|
| 585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
| 586 | PACKAGE_URL='' |
---|
| 587 | |
---|
| 588 | # Factoring default headers for most tests. |
---|
| 589 | ac_includes_default="\ |
---|
| 590 | #include <stdio.h> |
---|
| 591 | #ifdef HAVE_SYS_TYPES_H |
---|
| 592 | # include <sys/types.h> |
---|
| 593 | #endif |
---|
| 594 | #ifdef HAVE_SYS_STAT_H |
---|
| 595 | # include <sys/stat.h> |
---|
| 596 | #endif |
---|
| 597 | #ifdef STDC_HEADERS |
---|
| 598 | # include <stdlib.h> |
---|
| 599 | # include <stddef.h> |
---|
| 600 | #else |
---|
| 601 | # ifdef HAVE_STDLIB_H |
---|
| 602 | # include <stdlib.h> |
---|
| 603 | # endif |
---|
| 604 | #endif |
---|
| 605 | #ifdef HAVE_STRING_H |
---|
| 606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
| 607 | # include <memory.h> |
---|
| 608 | # endif |
---|
| 609 | # include <string.h> |
---|
| 610 | #endif |
---|
| 611 | #ifdef HAVE_STRINGS_H |
---|
| 612 | # include <strings.h> |
---|
| 613 | #endif |
---|
| 614 | #ifdef HAVE_INTTYPES_H |
---|
| 615 | # include <inttypes.h> |
---|
| 616 | #endif |
---|
| 617 | #ifdef HAVE_STDINT_H |
---|
| 618 | # include <stdint.h> |
---|
| 619 | #endif |
---|
| 620 | #ifdef HAVE_UNISTD_H |
---|
| 621 | # include <unistd.h> |
---|
| 622 | #endif" |
---|
| 623 | |
---|
| 624 | ac_subst_vars='LTLIBOBJS |
---|
| 625 | LIBOBJS |
---|
| 626 | VTK_LIB_DIR |
---|
| 627 | VTK_INC_DIR |
---|
| 628 | VTK_VERSION |
---|
| 629 | TCL_VERSION |
---|
| 630 | TCL_LIB_SPEC |
---|
| 631 | TCL_INC_SPEC |
---|
| 632 | STATSDIR |
---|
| 633 | RP_LIB_DIR |
---|
| 634 | RP_INC_SPEC |
---|
| 635 | RP_DIR |
---|
| 636 | LD_RPATH |
---|
| 637 | CG_LIB_SPEC |
---|
| 638 | CG_INC_SPEC |
---|
| 639 | FFMPEG |
---|
| 640 | EGREP |
---|
| 641 | GREP |
---|
| 642 | CXXCPP |
---|
| 643 | ac_ct_CXX |
---|
| 644 | CXXFLAGS |
---|
| 645 | CXX |
---|
| 646 | CPP |
---|
| 647 | OBJEXT |
---|
| 648 | EXEEXT |
---|
| 649 | ac_ct_CC |
---|
| 650 | CPPFLAGS |
---|
| 651 | LDFLAGS |
---|
| 652 | CFLAGS |
---|
| 653 | CC |
---|
| 654 | MKDIR_P |
---|
| 655 | LN_S |
---|
| 656 | RANLIB |
---|
| 657 | INSTALL_DATA |
---|
| 658 | INSTALL_SCRIPT |
---|
| 659 | INSTALL_PROGRAM |
---|
| 660 | target_alias |
---|
| 661 | host_alias |
---|
| 662 | build_alias |
---|
| 663 | LIBS |
---|
| 664 | ECHO_T |
---|
| 665 | ECHO_N |
---|
| 666 | ECHO_C |
---|
| 667 | DEFS |
---|
| 668 | mandir |
---|
| 669 | localedir |
---|
| 670 | libdir |
---|
| 671 | psdir |
---|
| 672 | pdfdir |
---|
| 673 | dvidir |
---|
| 674 | htmldir |
---|
| 675 | infodir |
---|
| 676 | docdir |
---|
| 677 | oldincludedir |
---|
| 678 | includedir |
---|
| 679 | localstatedir |
---|
| 680 | sharedstatedir |
---|
| 681 | sysconfdir |
---|
| 682 | datadir |
---|
| 683 | datarootdir |
---|
| 684 | libexecdir |
---|
| 685 | sbindir |
---|
| 686 | bindir |
---|
| 687 | program_transform_name |
---|
| 688 | prefix |
---|
| 689 | exec_prefix |
---|
| 690 | PACKAGE_URL |
---|
| 691 | PACKAGE_BUGREPORT |
---|
| 692 | PACKAGE_STRING |
---|
| 693 | PACKAGE_VERSION |
---|
| 694 | PACKAGE_TARNAME |
---|
| 695 | PACKAGE_NAME |
---|
| 696 | PATH_SEPARATOR |
---|
| 697 | SHELL' |
---|
| 698 | ac_subst_files='' |
---|
| 699 | ac_user_opts=' |
---|
| 700 | enable_option_checking |
---|
| 701 | with_tcllib |
---|
| 702 | with_rappture |
---|
| 703 | with_vtk_includes |
---|
| 704 | with_vtk_libs |
---|
| 705 | with_vtk |
---|
| 706 | with_ffmpeg |
---|
| 707 | with_statsdir |
---|
| 708 | ' |
---|
| 709 | ac_precious_vars='build_alias |
---|
| 710 | host_alias |
---|
| 711 | target_alias |
---|
| 712 | CC |
---|
| 713 | CFLAGS |
---|
| 714 | LDFLAGS |
---|
| 715 | LIBS |
---|
| 716 | CPPFLAGS |
---|
| 717 | CPP |
---|
| 718 | CXX |
---|
| 719 | CXXFLAGS |
---|
| 720 | CCC |
---|
| 721 | CXXCPP' |
---|
| 722 | |
---|
| 723 | |
---|
| 724 | # Initialize some variables set by options. |
---|
| 725 | ac_init_help= |
---|
| 726 | ac_init_version=false |
---|
| 727 | ac_unrecognized_opts= |
---|
| 728 | ac_unrecognized_sep= |
---|
| 729 | # The variables have the same names as the options, with |
---|
| 730 | # dashes changed to underlines. |
---|
| 731 | cache_file=/dev/null |
---|
| 732 | exec_prefix=NONE |
---|
| 733 | no_create= |
---|
| 734 | no_recursion= |
---|
| 735 | prefix=NONE |
---|
| 736 | program_prefix=NONE |
---|
| 737 | program_suffix=NONE |
---|
| 738 | program_transform_name=s,x,x, |
---|
| 739 | silent= |
---|
| 740 | site= |
---|
| 741 | srcdir= |
---|
| 742 | verbose= |
---|
| 743 | x_includes=NONE |
---|
| 744 | x_libraries=NONE |
---|
| 745 | |
---|
| 746 | # Installation directory options. |
---|
| 747 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 748 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 749 | # by default will actually change. |
---|
| 750 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 751 | # (The list follows the same order as the GNU Coding Standards.) |
---|
| 752 | bindir='${exec_prefix}/bin' |
---|
| 753 | sbindir='${exec_prefix}/sbin' |
---|
| 754 | libexecdir='${exec_prefix}/libexec' |
---|
| 755 | datarootdir='${prefix}/share' |
---|
| 756 | datadir='${datarootdir}' |
---|
| 757 | sysconfdir='${prefix}/etc' |
---|
| 758 | sharedstatedir='${prefix}/com' |
---|
| 759 | localstatedir='${prefix}/var' |
---|
| 760 | includedir='${prefix}/include' |
---|
| 761 | oldincludedir='/usr/include' |
---|
| 762 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 763 | infodir='${datarootdir}/info' |
---|
| 764 | htmldir='${docdir}' |
---|
| 765 | dvidir='${docdir}' |
---|
| 766 | pdfdir='${docdir}' |
---|
| 767 | psdir='${docdir}' |
---|
| 768 | libdir='${exec_prefix}/lib' |
---|
| 769 | localedir='${datarootdir}/locale' |
---|
| 770 | mandir='${datarootdir}/man' |
---|
| 771 | |
---|
| 772 | ac_prev= |
---|
| 773 | ac_dashdash= |
---|
| 774 | for ac_option |
---|
| 775 | do |
---|
| 776 | # If the previous option needs an argument, assign it. |
---|
| 777 | if test -n "$ac_prev"; then |
---|
| 778 | eval $ac_prev=\$ac_option |
---|
| 779 | ac_prev= |
---|
| 780 | continue |
---|
| 781 | fi |
---|
| 782 | |
---|
| 783 | case $ac_option in |
---|
| 784 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 785 | *=) ac_optarg= ;; |
---|
| 786 | *) ac_optarg=yes ;; |
---|
| 787 | esac |
---|
| 788 | |
---|
| 789 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 790 | |
---|
| 791 | case $ac_dashdash$ac_option in |
---|
| 792 | --) |
---|
| 793 | ac_dashdash=yes ;; |
---|
| 794 | |
---|
| 795 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 796 | ac_prev=bindir ;; |
---|
| 797 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 798 | bindir=$ac_optarg ;; |
---|
| 799 | |
---|
| 800 | -build | --build | --buil | --bui | --bu) |
---|
| 801 | ac_prev=build_alias ;; |
---|
| 802 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 803 | build_alias=$ac_optarg ;; |
---|
| 804 | |
---|
| 805 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 806 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 807 | ac_prev=cache_file ;; |
---|
| 808 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 809 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 810 | cache_file=$ac_optarg ;; |
---|
| 811 | |
---|
| 812 | --config-cache | -C) |
---|
| 813 | cache_file=config.cache ;; |
---|
| 814 | |
---|
| 815 | -datadir | --datadir | --datadi | --datad) |
---|
| 816 | ac_prev=datadir ;; |
---|
| 817 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
| 818 | datadir=$ac_optarg ;; |
---|
| 819 | |
---|
| 820 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 821 | | --dataroo | --dataro | --datar) |
---|
| 822 | ac_prev=datarootdir ;; |
---|
| 823 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 824 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 825 | datarootdir=$ac_optarg ;; |
---|
| 826 | |
---|
| 827 | -disable-* | --disable-*) |
---|
| 828 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 829 | # Reject names that are not valid shell variable names. |
---|
| 830 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 831 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 832 | ac_useropt_orig=$ac_useropt |
---|
| 833 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 834 | case $ac_user_opts in |
---|
| 835 | *" |
---|
| 836 | "enable_$ac_useropt" |
---|
| 837 | "*) ;; |
---|
| 838 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 839 | ac_unrecognized_sep=', ';; |
---|
| 840 | esac |
---|
| 841 | eval enable_$ac_useropt=no ;; |
---|
| 842 | |
---|
| 843 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 844 | ac_prev=docdir ;; |
---|
| 845 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 846 | docdir=$ac_optarg ;; |
---|
| 847 | |
---|
| 848 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 849 | ac_prev=dvidir ;; |
---|
| 850 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 851 | dvidir=$ac_optarg ;; |
---|
| 852 | |
---|
| 853 | -enable-* | --enable-*) |
---|
| 854 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 855 | # Reject names that are not valid shell variable names. |
---|
| 856 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 857 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 858 | ac_useropt_orig=$ac_useropt |
---|
| 859 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 860 | case $ac_user_opts in |
---|
| 861 | *" |
---|
| 862 | "enable_$ac_useropt" |
---|
| 863 | "*) ;; |
---|
| 864 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 865 | ac_unrecognized_sep=', ';; |
---|
| 866 | esac |
---|
| 867 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
| 868 | |
---|
| 869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 871 | | --exec | --exe | --ex) |
---|
| 872 | ac_prev=exec_prefix ;; |
---|
| 873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 875 | | --exec=* | --exe=* | --ex=*) |
---|
| 876 | exec_prefix=$ac_optarg ;; |
---|
| 877 | |
---|
| 878 | -gas | --gas | --ga | --g) |
---|
| 879 | # Obsolete; use --with-gas. |
---|
| 880 | with_gas=yes ;; |
---|
| 881 | |
---|
| 882 | -help | --help | --hel | --he | -h) |
---|
| 883 | ac_init_help=long ;; |
---|
| 884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 885 | ac_init_help=recursive ;; |
---|
| 886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 887 | ac_init_help=short ;; |
---|
| 888 | |
---|
| 889 | -host | --host | --hos | --ho) |
---|
| 890 | ac_prev=host_alias ;; |
---|
| 891 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 892 | host_alias=$ac_optarg ;; |
---|
| 893 | |
---|
| 894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 895 | ac_prev=htmldir ;; |
---|
| 896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 897 | | --ht=*) |
---|
| 898 | htmldir=$ac_optarg ;; |
---|
| 899 | |
---|
| 900 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 901 | | --includ | --inclu | --incl | --inc) |
---|
| 902 | ac_prev=includedir ;; |
---|
| 903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 904 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 905 | includedir=$ac_optarg ;; |
---|
| 906 | |
---|
| 907 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 908 | ac_prev=infodir ;; |
---|
| 909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 910 | infodir=$ac_optarg ;; |
---|
| 911 | |
---|
| 912 | -libdir | --libdir | --libdi | --libd) |
---|
| 913 | ac_prev=libdir ;; |
---|
| 914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 915 | libdir=$ac_optarg ;; |
---|
| 916 | |
---|
| 917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 918 | | --libexe | --libex | --libe) |
---|
| 919 | ac_prev=libexecdir ;; |
---|
| 920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 921 | | --libexe=* | --libex=* | --libe=*) |
---|
| 922 | libexecdir=$ac_optarg ;; |
---|
| 923 | |
---|
| 924 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 925 | ac_prev=localedir ;; |
---|
| 926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 927 | localedir=$ac_optarg ;; |
---|
| 928 | |
---|
| 929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 930 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
| 931 | ac_prev=localstatedir ;; |
---|
| 932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
| 934 | localstatedir=$ac_optarg ;; |
---|
| 935 | |
---|
| 936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 937 | ac_prev=mandir ;; |
---|
| 938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 939 | mandir=$ac_optarg ;; |
---|
| 940 | |
---|
| 941 | -nfp | --nfp | --nf) |
---|
| 942 | # Obsolete; use --without-fp. |
---|
| 943 | with_fp=no ;; |
---|
| 944 | |
---|
| 945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 946 | | --no-cr | --no-c | -n) |
---|
| 947 | no_create=yes ;; |
---|
| 948 | |
---|
| 949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 951 | no_recursion=yes ;; |
---|
| 952 | |
---|
| 953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 955 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 956 | ac_prev=oldincludedir ;; |
---|
| 957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 960 | oldincludedir=$ac_optarg ;; |
---|
| 961 | |
---|
| 962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 963 | ac_prev=prefix ;; |
---|
| 964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 965 | prefix=$ac_optarg ;; |
---|
| 966 | |
---|
| 967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 968 | | --program-pre | --program-pr | --program-p) |
---|
| 969 | ac_prev=program_prefix ;; |
---|
| 970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 972 | program_prefix=$ac_optarg ;; |
---|
| 973 | |
---|
| 974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 975 | | --program-suf | --program-su | --program-s) |
---|
| 976 | ac_prev=program_suffix ;; |
---|
| 977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 979 | program_suffix=$ac_optarg ;; |
---|
| 980 | |
---|
| 981 | -program-transform-name | --program-transform-name \ |
---|
| 982 | | --program-transform-nam | --program-transform-na \ |
---|
| 983 | | --program-transform-n | --program-transform- \ |
---|
| 984 | | --program-transform | --program-transfor \ |
---|
| 985 | | --program-transfo | --program-transf \ |
---|
| 986 | | --program-trans | --program-tran \ |
---|
| 987 | | --progr-tra | --program-tr | --program-t) |
---|
| 988 | ac_prev=program_transform_name ;; |
---|
| 989 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 990 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 991 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 992 | | --program-transform=* | --program-transfor=* \ |
---|
| 993 | | --program-transfo=* | --program-transf=* \ |
---|
| 994 | | --program-trans=* | --program-tran=* \ |
---|
| 995 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 996 | program_transform_name=$ac_optarg ;; |
---|
| 997 | |
---|
| 998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 999 | ac_prev=pdfdir ;; |
---|
| 1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1001 | pdfdir=$ac_optarg ;; |
---|
| 1002 | |
---|
| 1003 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1004 | ac_prev=psdir ;; |
---|
| 1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1006 | psdir=$ac_optarg ;; |
---|
| 1007 | |
---|
| 1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1009 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1010 | silent=yes ;; |
---|
| 1011 | |
---|
| 1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1013 | ac_prev=sbindir ;; |
---|
| 1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1015 | | --sbi=* | --sb=*) |
---|
| 1016 | sbindir=$ac_optarg ;; |
---|
| 1017 | |
---|
| 1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1020 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1021 | | --sha | --sh) |
---|
| 1022 | ac_prev=sharedstatedir ;; |
---|
| 1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1026 | | --sha=* | --sh=*) |
---|
| 1027 | sharedstatedir=$ac_optarg ;; |
---|
| 1028 | |
---|
| 1029 | -site | --site | --sit) |
---|
| 1030 | ac_prev=site ;; |
---|
| 1031 | -site=* | --site=* | --sit=*) |
---|
| 1032 | site=$ac_optarg ;; |
---|
| 1033 | |
---|
| 1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1035 | ac_prev=srcdir ;; |
---|
| 1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1037 | srcdir=$ac_optarg ;; |
---|
| 1038 | |
---|
| 1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1040 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1041 | ac_prev=sysconfdir ;; |
---|
| 1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1044 | sysconfdir=$ac_optarg ;; |
---|
| 1045 | |
---|
| 1046 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1047 | ac_prev=target_alias ;; |
---|
| 1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1049 | target_alias=$ac_optarg ;; |
---|
| 1050 | |
---|
| 1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1052 | verbose=yes ;; |
---|
| 1053 | |
---|
| 1054 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1055 | ac_init_version=: ;; |
---|
| 1056 | |
---|
| 1057 | -with-* | --with-*) |
---|
| 1058 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 1059 | # Reject names that are not valid shell variable names. |
---|
| 1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1061 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1062 | ac_useropt_orig=$ac_useropt |
---|
| 1063 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1064 | case $ac_user_opts in |
---|
| 1065 | *" |
---|
| 1066 | "with_$ac_useropt" |
---|
| 1067 | "*) ;; |
---|
| 1068 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1069 | ac_unrecognized_sep=', ';; |
---|
| 1070 | esac |
---|
| 1071 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
| 1072 | |
---|
| 1073 | -without-* | --without-*) |
---|
| 1074 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 1075 | # Reject names that are not valid shell variable names. |
---|
| 1076 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1077 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1078 | ac_useropt_orig=$ac_useropt |
---|
| 1079 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1080 | case $ac_user_opts in |
---|
| 1081 | *" |
---|
| 1082 | "with_$ac_useropt" |
---|
| 1083 | "*) ;; |
---|
| 1084 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1085 | ac_unrecognized_sep=', ';; |
---|
| 1086 | esac |
---|
| 1087 | eval with_$ac_useropt=no ;; |
---|
| 1088 | |
---|
| 1089 | --x) |
---|
| 1090 | # Obsolete; use --with-x. |
---|
| 1091 | with_x=yes ;; |
---|
| 1092 | |
---|
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1095 | ac_prev=x_includes ;; |
---|
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1098 | x_includes=$ac_optarg ;; |
---|
| 1099 | |
---|
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1102 | ac_prev=x_libraries ;; |
---|
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1104 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1105 | x_libraries=$ac_optarg ;; |
---|
| 1106 | |
---|
| 1107 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
| 1108 | Try \`$0 --help' for more information" |
---|
| 1109 | ;; |
---|
| 1110 | |
---|
| 1111 | *=*) |
---|
| 1112 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1113 | # Reject names that are not valid shell variable names. |
---|
| 1114 | case $ac_envvar in #( |
---|
| 1115 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
| 1116 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
| 1117 | esac |
---|
| 1118 | eval $ac_envvar=\$ac_optarg |
---|
| 1119 | export $ac_envvar ;; |
---|
| 1120 | |
---|
| 1121 | *) |
---|
| 1122 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1123 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1125 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1126 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
| 1127 | ;; |
---|
| 1128 | |
---|
| 1129 | esac |
---|
| 1130 | done |
---|
| 1131 | |
---|
| 1132 | if test -n "$ac_prev"; then |
---|
| 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1134 | as_fn_error $? "missing argument to $ac_option" |
---|
| 1135 | fi |
---|
| 1136 | |
---|
| 1137 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1138 | case $enable_option_checking in |
---|
| 1139 | no) ;; |
---|
| 1140 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
| 1141 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
| 1142 | esac |
---|
| 1143 | fi |
---|
| 1144 | |
---|
| 1145 | # Check all directory arguments for consistency. |
---|
| 1146 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1147 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1148 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1149 | libdir localedir mandir |
---|
| 1150 | do |
---|
| 1151 | eval ac_val=\$$ac_var |
---|
| 1152 | # Remove trailing slashes. |
---|
| 1153 | case $ac_val in |
---|
| 1154 | */ ) |
---|
| 1155 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1156 | eval $ac_var=\$ac_val;; |
---|
| 1157 | esac |
---|
| 1158 | # Be sure to have absolute directory names. |
---|
| 1159 | case $ac_val in |
---|
| 1160 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1161 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1162 | esac |
---|
| 1163 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
| 1164 | done |
---|
| 1165 | |
---|
| 1166 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1167 | # used to hold the argument of --host etc. |
---|
| 1168 | # FIXME: To remove some day. |
---|
| 1169 | build=$build_alias |
---|
| 1170 | host=$host_alias |
---|
| 1171 | target=$target_alias |
---|
| 1172 | |
---|
| 1173 | # FIXME: To remove some day. |
---|
| 1174 | if test "x$host_alias" != x; then |
---|
| 1175 | if test "x$build_alias" = x; then |
---|
| 1176 | cross_compiling=maybe |
---|
| 1177 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1178 | cross_compiling=yes |
---|
| 1179 | fi |
---|
| 1180 | fi |
---|
| 1181 | |
---|
| 1182 | ac_tool_prefix= |
---|
| 1183 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1184 | |
---|
| 1185 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1186 | |
---|
| 1187 | |
---|
| 1188 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1189 | ac_ls_di=`ls -di .` && |
---|
| 1190 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1191 | as_fn_error $? "working directory cannot be determined" |
---|
| 1192 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1193 | as_fn_error $? "pwd does not report name of working directory" |
---|
| 1194 | |
---|
| 1195 | |
---|
| 1196 | # Find the source files, if location was not specified. |
---|
| 1197 | if test -z "$srcdir"; then |
---|
| 1198 | ac_srcdir_defaulted=yes |
---|
| 1199 | # Try the directory containing this script, then the parent directory. |
---|
| 1200 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1201 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1202 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1203 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1204 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1205 | $as_echo X"$as_myself" | |
---|
| 1206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1207 | s//\1/ |
---|
| 1208 | q |
---|
| 1209 | } |
---|
| 1210 | /^X\(\/\/\)[^/].*/{ |
---|
| 1211 | s//\1/ |
---|
| 1212 | q |
---|
| 1213 | } |
---|
| 1214 | /^X\(\/\/\)$/{ |
---|
| 1215 | s//\1/ |
---|
| 1216 | q |
---|
| 1217 | } |
---|
| 1218 | /^X\(\/\).*/{ |
---|
| 1219 | s//\1/ |
---|
| 1220 | q |
---|
| 1221 | } |
---|
| 1222 | s/.*/./; q'` |
---|
| 1223 | srcdir=$ac_confdir |
---|
| 1224 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1225 | srcdir=.. |
---|
| 1226 | fi |
---|
| 1227 | else |
---|
| 1228 | ac_srcdir_defaulted=no |
---|
| 1229 | fi |
---|
| 1230 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1231 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1232 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
| 1233 | fi |
---|
| 1234 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1235 | ac_abs_confdir=`( |
---|
| 1236 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
| 1237 | pwd)` |
---|
| 1238 | # When building in place, set srcdir=. |
---|
| 1239 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1240 | srcdir=. |
---|
| 1241 | fi |
---|
| 1242 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1243 | # Double slashes in file names in object file debugging info |
---|
| 1244 | # mess up M-x gdb in Emacs. |
---|
| 1245 | case $srcdir in |
---|
| 1246 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1247 | esac |
---|
| 1248 | for ac_var in $ac_precious_vars; do |
---|
| 1249 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1250 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1251 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1252 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1253 | done |
---|
| 1254 | |
---|
| 1255 | # |
---|
| 1256 | # Report the --help message. |
---|
| 1257 | # |
---|
| 1258 | if test "$ac_init_help" = "long"; then |
---|
| 1259 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1260 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1261 | cat <<_ACEOF |
---|
| 1262 | \`configure' configures nanovis 1.2 to adapt to many kinds of systems. |
---|
| 1263 | |
---|
| 1264 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1265 | |
---|
| 1266 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1267 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1268 | |
---|
| 1269 | Defaults for the options are specified in brackets. |
---|
| 1270 | |
---|
| 1271 | Configuration: |
---|
| 1272 | -h, --help display this help and exit |
---|
| 1273 | --help=short display options specific to this package |
---|
| 1274 | --help=recursive display the short help of all the included packages |
---|
| 1275 | -V, --version display version information and exit |
---|
| 1276 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
| 1277 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1278 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1279 | -n, --no-create do not create output files |
---|
| 1280 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1281 | |
---|
| 1282 | Installation directories: |
---|
| 1283 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1284 | [$ac_default_prefix] |
---|
| 1285 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1286 | [PREFIX] |
---|
| 1287 | |
---|
| 1288 | By default, \`make install' will install all the files in |
---|
| 1289 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1290 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1291 | for instance \`--prefix=\$HOME'. |
---|
| 1292 | |
---|
| 1293 | For better control, use the options below. |
---|
| 1294 | |
---|
| 1295 | Fine tuning of the installation directories: |
---|
| 1296 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1297 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1298 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1299 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1300 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1301 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1302 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1303 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1304 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1305 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1306 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1307 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1308 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1309 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1310 | --docdir=DIR documentation root [DATAROOTDIR/doc/nanovis] |
---|
| 1311 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1312 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1313 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1314 | --psdir=DIR ps documentation [DOCDIR] |
---|
| 1315 | _ACEOF |
---|
| 1316 | |
---|
| 1317 | cat <<\_ACEOF |
---|
| 1318 | _ACEOF |
---|
| 1319 | fi |
---|
| 1320 | |
---|
| 1321 | if test -n "$ac_init_help"; then |
---|
| 1322 | case $ac_init_help in |
---|
| 1323 | short | recursive ) echo "Configuration of nanovis 1.2:";; |
---|
| 1324 | esac |
---|
| 1325 | cat <<\_ACEOF |
---|
| 1326 | |
---|
| 1327 | Optional Packages: |
---|
| 1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 1330 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
| 1331 | [default=/usr/lib] |
---|
| 1332 | --with-rappture=DIR location of rappture files lib/librappture.a and |
---|
| 1333 | include/rappture.h [default=/usr] |
---|
| 1334 | --with-vtk-includes=DIR VTK include files are in DIR |
---|
| 1335 | --with-vtk-libs=DIR VTK libraries are in DIR |
---|
[4158] | 1336 | --with-vtk=VERSION Version of VTK required [default=6.1] |
---|
[4060] | 1337 | --with-ffmpeg=DIR location of ffmpeg [default=yes] |
---|
| 1338 | --with-statsdir=DIR Write statistics in DIR |
---|
| 1339 | |
---|
| 1340 | Some influential environment variables: |
---|
| 1341 | CC C compiler command |
---|
| 1342 | CFLAGS C compiler flags |
---|
| 1343 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1344 | nonstandard directory <lib dir> |
---|
| 1345 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1346 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
| 1347 | you have headers in a nonstandard directory <include dir> |
---|
| 1348 | CPP C preprocessor |
---|
| 1349 | CXX C++ compiler command |
---|
| 1350 | CXXFLAGS C++ compiler flags |
---|
| 1351 | CXXCPP C++ preprocessor |
---|
| 1352 | |
---|
| 1353 | Use these variables to override the choices made by `configure' or to help |
---|
| 1354 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1355 | |
---|
| 1356 | Report bugs to <rappture@nanohub.org>. |
---|
| 1357 | _ACEOF |
---|
| 1358 | ac_status=$? |
---|
| 1359 | fi |
---|
| 1360 | |
---|
| 1361 | if test "$ac_init_help" = "recursive"; then |
---|
| 1362 | # If there are subdirs, report their specific --help. |
---|
| 1363 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 1364 | test -d "$ac_dir" || |
---|
| 1365 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1366 | continue |
---|
| 1367 | ac_builddir=. |
---|
| 1368 | |
---|
| 1369 | case "$ac_dir" in |
---|
| 1370 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1371 | *) |
---|
| 1372 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 1373 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1374 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 1375 | case $ac_top_builddir_sub in |
---|
| 1376 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1377 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1378 | esac ;; |
---|
| 1379 | esac |
---|
| 1380 | ac_abs_top_builddir=$ac_pwd |
---|
| 1381 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1382 | # for backward compatibility: |
---|
| 1383 | ac_top_builddir=$ac_top_build_prefix |
---|
| 1384 | |
---|
| 1385 | case $srcdir in |
---|
| 1386 | .) # We are building in place. |
---|
| 1387 | ac_srcdir=. |
---|
| 1388 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1389 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1390 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 1391 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 1392 | ac_top_srcdir=$srcdir |
---|
| 1393 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1394 | *) # Relative name. |
---|
| 1395 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1396 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1397 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 1398 | esac |
---|
| 1399 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 1400 | |
---|
| 1401 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1402 | # Check for guested configure. |
---|
| 1403 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1404 | echo && |
---|
| 1405 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1406 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1407 | echo && |
---|
| 1408 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
| 1409 | else |
---|
| 1410 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1411 | fi || ac_status=$? |
---|
| 1412 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
| 1413 | done |
---|
| 1414 | fi |
---|
| 1415 | |
---|
| 1416 | test -n "$ac_init_help" && exit $ac_status |
---|
| 1417 | if $ac_init_version; then |
---|
| 1418 | cat <<\_ACEOF |
---|
| 1419 | nanovis configure 1.2 |
---|
| 1420 | generated by GNU Autoconf 2.69 |
---|
| 1421 | |
---|
| 1422 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
| 1423 | This configure script is free software; the Free Software Foundation |
---|
| 1424 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1425 | _ACEOF |
---|
| 1426 | exit |
---|
| 1427 | fi |
---|
| 1428 | |
---|
| 1429 | ## ------------------------ ## |
---|
| 1430 | ## Autoconf initialization. ## |
---|
| 1431 | ## ------------------------ ## |
---|
| 1432 | |
---|
| 1433 | # ac_fn_c_try_compile LINENO |
---|
| 1434 | # -------------------------- |
---|
| 1435 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1436 | ac_fn_c_try_compile () |
---|
| 1437 | { |
---|
| 1438 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1439 | rm -f conftest.$ac_objext |
---|
| 1440 | if { { ac_try="$ac_compile" |
---|
| 1441 | case "(($ac_try" in |
---|
| 1442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1443 | *) ac_try_echo=$ac_try;; |
---|
| 1444 | esac |
---|
| 1445 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1446 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1447 | (eval "$ac_compile") 2>conftest.err |
---|
| 1448 | ac_status=$? |
---|
| 1449 | if test -s conftest.err; then |
---|
| 1450 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1451 | cat conftest.er1 >&5 |
---|
| 1452 | mv -f conftest.er1 conftest.err |
---|
| 1453 | fi |
---|
| 1454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1455 | test $ac_status = 0; } && { |
---|
| 1456 | test -z "$ac_c_werror_flag" || |
---|
| 1457 | test ! -s conftest.err |
---|
| 1458 | } && test -s conftest.$ac_objext; then : |
---|
| 1459 | ac_retval=0 |
---|
| 1460 | else |
---|
| 1461 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1462 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1463 | |
---|
| 1464 | ac_retval=1 |
---|
| 1465 | fi |
---|
| 1466 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1467 | as_fn_set_status $ac_retval |
---|
| 1468 | |
---|
| 1469 | } # ac_fn_c_try_compile |
---|
| 1470 | |
---|
| 1471 | # ac_fn_c_try_cpp LINENO |
---|
| 1472 | # ---------------------- |
---|
| 1473 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1474 | ac_fn_c_try_cpp () |
---|
| 1475 | { |
---|
| 1476 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1477 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1478 | case "(($ac_try" in |
---|
| 1479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1480 | *) ac_try_echo=$ac_try;; |
---|
| 1481 | esac |
---|
| 1482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1483 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1484 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1485 | ac_status=$? |
---|
| 1486 | if test -s conftest.err; then |
---|
| 1487 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1488 | cat conftest.er1 >&5 |
---|
| 1489 | mv -f conftest.er1 conftest.err |
---|
| 1490 | fi |
---|
| 1491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1492 | test $ac_status = 0; } > conftest.i && { |
---|
| 1493 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 1494 | test ! -s conftest.err |
---|
| 1495 | }; then : |
---|
| 1496 | ac_retval=0 |
---|
| 1497 | else |
---|
| 1498 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1500 | |
---|
| 1501 | ac_retval=1 |
---|
| 1502 | fi |
---|
| 1503 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1504 | as_fn_set_status $ac_retval |
---|
| 1505 | |
---|
| 1506 | } # ac_fn_c_try_cpp |
---|
| 1507 | |
---|
| 1508 | # ac_fn_cxx_try_compile LINENO |
---|
| 1509 | # ---------------------------- |
---|
| 1510 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1511 | ac_fn_cxx_try_compile () |
---|
| 1512 | { |
---|
| 1513 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1514 | rm -f conftest.$ac_objext |
---|
| 1515 | if { { ac_try="$ac_compile" |
---|
| 1516 | case "(($ac_try" in |
---|
| 1517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1518 | *) ac_try_echo=$ac_try;; |
---|
| 1519 | esac |
---|
| 1520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1521 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1522 | (eval "$ac_compile") 2>conftest.err |
---|
| 1523 | ac_status=$? |
---|
| 1524 | if test -s conftest.err; then |
---|
| 1525 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1526 | cat conftest.er1 >&5 |
---|
| 1527 | mv -f conftest.er1 conftest.err |
---|
| 1528 | fi |
---|
| 1529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1530 | test $ac_status = 0; } && { |
---|
| 1531 | test -z "$ac_cxx_werror_flag" || |
---|
| 1532 | test ! -s conftest.err |
---|
| 1533 | } && test -s conftest.$ac_objext; then : |
---|
| 1534 | ac_retval=0 |
---|
| 1535 | else |
---|
| 1536 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1537 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1538 | |
---|
| 1539 | ac_retval=1 |
---|
| 1540 | fi |
---|
| 1541 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1542 | as_fn_set_status $ac_retval |
---|
| 1543 | |
---|
| 1544 | } # ac_fn_cxx_try_compile |
---|
| 1545 | |
---|
| 1546 | # ac_fn_cxx_try_cpp LINENO |
---|
| 1547 | # ------------------------ |
---|
| 1548 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1549 | ac_fn_cxx_try_cpp () |
---|
| 1550 | { |
---|
| 1551 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1552 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1553 | case "(($ac_try" in |
---|
| 1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1555 | *) ac_try_echo=$ac_try;; |
---|
| 1556 | esac |
---|
| 1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1558 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1559 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1560 | ac_status=$? |
---|
| 1561 | if test -s conftest.err; then |
---|
| 1562 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1563 | cat conftest.er1 >&5 |
---|
| 1564 | mv -f conftest.er1 conftest.err |
---|
| 1565 | fi |
---|
| 1566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1567 | test $ac_status = 0; } > conftest.i && { |
---|
| 1568 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 1569 | test ! -s conftest.err |
---|
| 1570 | }; then : |
---|
| 1571 | ac_retval=0 |
---|
| 1572 | else |
---|
| 1573 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1574 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1575 | |
---|
| 1576 | ac_retval=1 |
---|
| 1577 | fi |
---|
| 1578 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1579 | as_fn_set_status $ac_retval |
---|
| 1580 | |
---|
| 1581 | } # ac_fn_cxx_try_cpp |
---|
| 1582 | |
---|
| 1583 | # ac_fn_cxx_try_run LINENO |
---|
| 1584 | # ------------------------ |
---|
| 1585 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
| 1586 | # that executables *can* be run. |
---|
| 1587 | ac_fn_cxx_try_run () |
---|
| 1588 | { |
---|
| 1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1590 | if { { ac_try="$ac_link" |
---|
| 1591 | case "(($ac_try" in |
---|
| 1592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1593 | *) ac_try_echo=$ac_try;; |
---|
| 1594 | esac |
---|
| 1595 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1596 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1597 | (eval "$ac_link") 2>&5 |
---|
| 1598 | ac_status=$? |
---|
| 1599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1600 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1601 | { { case "(($ac_try" in |
---|
| 1602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1603 | *) ac_try_echo=$ac_try;; |
---|
| 1604 | esac |
---|
| 1605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1606 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1607 | (eval "$ac_try") 2>&5 |
---|
| 1608 | ac_status=$? |
---|
| 1609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1610 | test $ac_status = 0; }; }; then : |
---|
| 1611 | ac_retval=0 |
---|
| 1612 | else |
---|
| 1613 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 1614 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1616 | |
---|
| 1617 | ac_retval=$ac_status |
---|
| 1618 | fi |
---|
| 1619 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1620 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1621 | as_fn_set_status $ac_retval |
---|
| 1622 | |
---|
| 1623 | } # ac_fn_cxx_try_run |
---|
| 1624 | |
---|
| 1625 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
---|
| 1626 | # --------------------------------------------------------- |
---|
| 1627 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
| 1628 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
| 1629 | ac_fn_cxx_check_header_compile () |
---|
| 1630 | { |
---|
| 1631 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1633 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1634 | if eval \${$3+:} false; then : |
---|
| 1635 | $as_echo_n "(cached) " >&6 |
---|
| 1636 | else |
---|
| 1637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1638 | /* end confdefs.h. */ |
---|
| 1639 | $4 |
---|
| 1640 | #include <$2> |
---|
| 1641 | _ACEOF |
---|
| 1642 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 1643 | eval "$3=yes" |
---|
| 1644 | else |
---|
| 1645 | eval "$3=no" |
---|
| 1646 | fi |
---|
| 1647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1648 | fi |
---|
| 1649 | eval ac_res=\$$3 |
---|
| 1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1651 | $as_echo "$ac_res" >&6; } |
---|
| 1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1653 | |
---|
| 1654 | } # ac_fn_cxx_check_header_compile |
---|
| 1655 | |
---|
| 1656 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
| 1657 | # --------------------------------------------------------- |
---|
| 1658 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
| 1659 | # the include files in INCLUDES and setting the cache variable VAR |
---|
| 1660 | # accordingly. |
---|
| 1661 | ac_fn_cxx_check_header_mongrel () |
---|
| 1662 | { |
---|
| 1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1664 | if eval \${$3+:} false; then : |
---|
| 1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1666 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1667 | if eval \${$3+:} false; then : |
---|
| 1668 | $as_echo_n "(cached) " >&6 |
---|
| 1669 | fi |
---|
| 1670 | eval ac_res=\$$3 |
---|
| 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1672 | $as_echo "$ac_res" >&6; } |
---|
| 1673 | else |
---|
| 1674 | # Is the header compilable? |
---|
| 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
| 1676 | $as_echo_n "checking $2 usability... " >&6; } |
---|
| 1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1678 | /* end confdefs.h. */ |
---|
| 1679 | $4 |
---|
| 1680 | #include <$2> |
---|
| 1681 | _ACEOF |
---|
| 1682 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 1683 | ac_header_compiler=yes |
---|
| 1684 | else |
---|
| 1685 | ac_header_compiler=no |
---|
| 1686 | fi |
---|
| 1687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
| 1689 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 1690 | |
---|
| 1691 | # Is the header present? |
---|
| 1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
| 1693 | $as_echo_n "checking $2 presence... " >&6; } |
---|
| 1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1695 | /* end confdefs.h. */ |
---|
| 1696 | #include <$2> |
---|
| 1697 | _ACEOF |
---|
| 1698 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 1699 | ac_header_preproc=yes |
---|
| 1700 | else |
---|
| 1701 | ac_header_preproc=no |
---|
| 1702 | fi |
---|
| 1703 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
| 1705 | $as_echo "$ac_header_preproc" >&6; } |
---|
| 1706 | |
---|
| 1707 | # So? What about this header? |
---|
| 1708 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
| 1709 | yes:no: ) |
---|
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 1711 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1713 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1714 | ;; |
---|
| 1715 | no:yes:* ) |
---|
| 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
| 1717 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
| 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
| 1719 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
| 1721 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
| 1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 1723 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1725 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1726 | ( $as_echo "## ----------------------------------- ## |
---|
| 1727 | ## Report this to rappture@nanohub.org ## |
---|
| 1728 | ## ----------------------------------- ##" |
---|
| 1729 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 1730 | ;; |
---|
| 1731 | esac |
---|
| 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1733 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1734 | if eval \${$3+:} false; then : |
---|
| 1735 | $as_echo_n "(cached) " >&6 |
---|
| 1736 | else |
---|
| 1737 | eval "$3=\$ac_header_compiler" |
---|
| 1738 | fi |
---|
| 1739 | eval ac_res=\$$3 |
---|
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1741 | $as_echo "$ac_res" >&6; } |
---|
| 1742 | fi |
---|
| 1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1744 | |
---|
| 1745 | } # ac_fn_cxx_check_header_mongrel |
---|
| 1746 | |
---|
| 1747 | # ac_fn_cxx_try_link LINENO |
---|
| 1748 | # ------------------------- |
---|
| 1749 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1750 | ac_fn_cxx_try_link () |
---|
| 1751 | { |
---|
| 1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1753 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1754 | if { { ac_try="$ac_link" |
---|
| 1755 | case "(($ac_try" in |
---|
| 1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1757 | *) ac_try_echo=$ac_try;; |
---|
| 1758 | esac |
---|
| 1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1760 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1761 | (eval "$ac_link") 2>conftest.err |
---|
| 1762 | ac_status=$? |
---|
| 1763 | if test -s conftest.err; then |
---|
| 1764 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1765 | cat conftest.er1 >&5 |
---|
| 1766 | mv -f conftest.er1 conftest.err |
---|
| 1767 | fi |
---|
| 1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1769 | test $ac_status = 0; } && { |
---|
| 1770 | test -z "$ac_cxx_werror_flag" || |
---|
| 1771 | test ! -s conftest.err |
---|
| 1772 | } && test -s conftest$ac_exeext && { |
---|
| 1773 | test "$cross_compiling" = yes || |
---|
| 1774 | test -x conftest$ac_exeext |
---|
| 1775 | }; then : |
---|
| 1776 | ac_retval=0 |
---|
| 1777 | else |
---|
| 1778 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1780 | |
---|
| 1781 | ac_retval=1 |
---|
| 1782 | fi |
---|
| 1783 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1784 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1785 | # interfere with the next link command; also delete a directory that is |
---|
| 1786 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1787 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1788 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1789 | as_fn_set_status $ac_retval |
---|
| 1790 | |
---|
| 1791 | } # ac_fn_cxx_try_link |
---|
| 1792 | |
---|
| 1793 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
| 1794 | # ------------------------------------ |
---|
| 1795 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
| 1796 | ac_fn_cxx_check_func () |
---|
| 1797 | { |
---|
| 1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1800 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1801 | if eval \${$3+:} false; then : |
---|
| 1802 | $as_echo_n "(cached) " >&6 |
---|
| 1803 | else |
---|
| 1804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1805 | /* end confdefs.h. */ |
---|
| 1806 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
| 1807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 1808 | #define $2 innocuous_$2 |
---|
| 1809 | |
---|
| 1810 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1811 | which can conflict with char $2 (); below. |
---|
| 1812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 1813 | <limits.h> exists even on freestanding compilers. */ |
---|
| 1814 | |
---|
| 1815 | #ifdef __STDC__ |
---|
| 1816 | # include <limits.h> |
---|
| 1817 | #else |
---|
| 1818 | # include <assert.h> |
---|
| 1819 | #endif |
---|
| 1820 | |
---|
| 1821 | #undef $2 |
---|
| 1822 | |
---|
| 1823 | /* Override any GCC internal prototype to avoid an error. |
---|
| 1824 | Use char because int might match the return type of a GCC |
---|
| 1825 | builtin and then its argument prototype would still apply. */ |
---|
| 1826 | #ifdef __cplusplus |
---|
| 1827 | extern "C" |
---|
| 1828 | #endif |
---|
| 1829 | char $2 (); |
---|
| 1830 | /* The GNU C library defines this for functions which it implements |
---|
| 1831 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1832 | something starting with __ and the normal name is an alias. */ |
---|
| 1833 | #if defined __stub_$2 || defined __stub___$2 |
---|
| 1834 | choke me |
---|
| 1835 | #endif |
---|
| 1836 | |
---|
| 1837 | int |
---|
| 1838 | main () |
---|
| 1839 | { |
---|
| 1840 | return $2 (); |
---|
| 1841 | ; |
---|
| 1842 | return 0; |
---|
| 1843 | } |
---|
| 1844 | _ACEOF |
---|
| 1845 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
| 1846 | eval "$3=yes" |
---|
| 1847 | else |
---|
| 1848 | eval "$3=no" |
---|
| 1849 | fi |
---|
| 1850 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 1851 | conftest$ac_exeext conftest.$ac_ext |
---|
| 1852 | fi |
---|
| 1853 | eval ac_res=\$$3 |
---|
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1855 | $as_echo "$ac_res" >&6; } |
---|
| 1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1857 | |
---|
| 1858 | } # ac_fn_cxx_check_func |
---|
| 1859 | cat >config.log <<_ACEOF |
---|
| 1860 | This file contains any messages produced by compilers while |
---|
| 1861 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1862 | |
---|
| 1863 | It was created by nanovis $as_me 1.2, which was |
---|
| 1864 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
| 1865 | |
---|
| 1866 | $ $0 $@ |
---|
| 1867 | |
---|
| 1868 | _ACEOF |
---|
| 1869 | exec 5>>config.log |
---|
| 1870 | { |
---|
| 1871 | cat <<_ASUNAME |
---|
| 1872 | ## --------- ## |
---|
| 1873 | ## Platform. ## |
---|
| 1874 | ## --------- ## |
---|
| 1875 | |
---|
| 1876 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1877 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1878 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1879 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1880 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1881 | |
---|
| 1882 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1883 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1884 | |
---|
| 1885 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1886 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1887 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1888 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
| 1889 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1890 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1891 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1892 | |
---|
| 1893 | _ASUNAME |
---|
| 1894 | |
---|
| 1895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1896 | for as_dir in $PATH |
---|
| 1897 | do |
---|
| 1898 | IFS=$as_save_IFS |
---|
| 1899 | test -z "$as_dir" && as_dir=. |
---|
| 1900 | $as_echo "PATH: $as_dir" |
---|
| 1901 | done |
---|
| 1902 | IFS=$as_save_IFS |
---|
| 1903 | |
---|
| 1904 | } >&5 |
---|
| 1905 | |
---|
| 1906 | cat >&5 <<_ACEOF |
---|
| 1907 | |
---|
| 1908 | |
---|
| 1909 | ## ----------- ## |
---|
| 1910 | ## Core tests. ## |
---|
| 1911 | ## ----------- ## |
---|
| 1912 | |
---|
| 1913 | _ACEOF |
---|
| 1914 | |
---|
| 1915 | |
---|
| 1916 | # Keep a trace of the command line. |
---|
| 1917 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1918 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1919 | # Also quote any args containing shell meta-characters. |
---|
| 1920 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1921 | ac_configure_args= |
---|
| 1922 | ac_configure_args0= |
---|
| 1923 | ac_configure_args1= |
---|
| 1924 | ac_must_keep_next=false |
---|
| 1925 | for ac_pass in 1 2 |
---|
| 1926 | do |
---|
| 1927 | for ac_arg |
---|
| 1928 | do |
---|
| 1929 | case $ac_arg in |
---|
| 1930 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1931 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1932 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1933 | continue ;; |
---|
| 1934 | *\'*) |
---|
| 1935 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1936 | esac |
---|
| 1937 | case $ac_pass in |
---|
| 1938 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
| 1939 | 2) |
---|
| 1940 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
| 1941 | if test $ac_must_keep_next = true; then |
---|
| 1942 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1943 | else |
---|
| 1944 | case $ac_arg in |
---|
| 1945 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1946 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1947 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1948 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1949 | case "$ac_configure_args0 " in |
---|
| 1950 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1951 | esac |
---|
| 1952 | ;; |
---|
| 1953 | -* ) ac_must_keep_next=true ;; |
---|
| 1954 | esac |
---|
| 1955 | fi |
---|
| 1956 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
| 1957 | ;; |
---|
| 1958 | esac |
---|
| 1959 | done |
---|
| 1960 | done |
---|
| 1961 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
| 1962 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
| 1963 | |
---|
| 1964 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1965 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1966 | # would cause problems or look ugly. |
---|
| 1967 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1968 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
| 1969 | trap 'exit_status=$? |
---|
| 1970 | # Save into config.log some information that might help in debugging. |
---|
| 1971 | { |
---|
| 1972 | echo |
---|
| 1973 | |
---|
| 1974 | $as_echo "## ---------------- ## |
---|
| 1975 | ## Cache variables. ## |
---|
| 1976 | ## ---------------- ##" |
---|
| 1977 | echo |
---|
| 1978 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1979 | ( |
---|
| 1980 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1981 | eval ac_val=\$$ac_var |
---|
| 1982 | case $ac_val in #( |
---|
| 1983 | *${as_nl}*) |
---|
| 1984 | case $ac_var in #( |
---|
| 1985 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 1986 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 1987 | esac |
---|
| 1988 | case $ac_var in #( |
---|
| 1989 | _ | IFS | as_nl) ;; #( |
---|
| 1990 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 1991 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 1992 | esac ;; |
---|
| 1993 | esac |
---|
| 1994 | done |
---|
| 1995 | (set) 2>&1 | |
---|
| 1996 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1997 | *${as_nl}ac_space=\ *) |
---|
| 1998 | sed -n \ |
---|
| 1999 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 2000 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 2001 | ;; #( |
---|
| 2002 | *) |
---|
| 2003 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 2004 | ;; |
---|
| 2005 | esac | |
---|
| 2006 | sort |
---|
| 2007 | ) |
---|
| 2008 | echo |
---|
| 2009 | |
---|
| 2010 | $as_echo "## ----------------- ## |
---|
| 2011 | ## Output variables. ## |
---|
| 2012 | ## ----------------- ##" |
---|
| 2013 | echo |
---|
| 2014 | for ac_var in $ac_subst_vars |
---|
| 2015 | do |
---|
| 2016 | eval ac_val=\$$ac_var |
---|
| 2017 | case $ac_val in |
---|
| 2018 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 2019 | esac |
---|
| 2020 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
| 2021 | done | sort |
---|
| 2022 | echo |
---|
| 2023 | |
---|
| 2024 | if test -n "$ac_subst_files"; then |
---|
| 2025 | $as_echo "## ------------------- ## |
---|
| 2026 | ## File substitutions. ## |
---|
| 2027 | ## ------------------- ##" |
---|
| 2028 | echo |
---|
| 2029 | for ac_var in $ac_subst_files |
---|
| 2030 | do |
---|
| 2031 | eval ac_val=\$$ac_var |
---|
| 2032 | case $ac_val in |
---|
| 2033 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 2034 | esac |
---|
| 2035 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
| 2036 | done | sort |
---|
| 2037 | echo |
---|
| 2038 | fi |
---|
| 2039 | |
---|
| 2040 | if test -s confdefs.h; then |
---|
| 2041 | $as_echo "## ----------- ## |
---|
| 2042 | ## confdefs.h. ## |
---|
| 2043 | ## ----------- ##" |
---|
| 2044 | echo |
---|
| 2045 | cat confdefs.h |
---|
| 2046 | echo |
---|
| 2047 | fi |
---|
| 2048 | test "$ac_signal" != 0 && |
---|
| 2049 | $as_echo "$as_me: caught signal $ac_signal" |
---|
| 2050 | $as_echo "$as_me: exit $exit_status" |
---|
| 2051 | } >&5 |
---|
| 2052 | rm -f core *.core core.conftest.* && |
---|
| 2053 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 2054 | exit $exit_status |
---|
| 2055 | ' 0 |
---|
| 2056 | for ac_signal in 1 2 13 15; do |
---|
| 2057 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
| 2058 | done |
---|
| 2059 | ac_signal=0 |
---|
| 2060 | |
---|
| 2061 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 2062 | rm -f -r conftest* confdefs.h |
---|
| 2063 | |
---|
| 2064 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
| 2065 | |
---|
| 2066 | # Predefined preprocessor variables. |
---|
| 2067 | |
---|
| 2068 | cat >>confdefs.h <<_ACEOF |
---|
| 2069 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 2070 | _ACEOF |
---|
| 2071 | |
---|
| 2072 | cat >>confdefs.h <<_ACEOF |
---|
| 2073 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 2074 | _ACEOF |
---|
| 2075 | |
---|
| 2076 | cat >>confdefs.h <<_ACEOF |
---|
| 2077 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 2078 | _ACEOF |
---|
| 2079 | |
---|
| 2080 | cat >>confdefs.h <<_ACEOF |
---|
| 2081 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 2082 | _ACEOF |
---|
| 2083 | |
---|
| 2084 | cat >>confdefs.h <<_ACEOF |
---|
| 2085 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 2086 | _ACEOF |
---|
| 2087 | |
---|
| 2088 | cat >>confdefs.h <<_ACEOF |
---|
| 2089 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
| 2090 | _ACEOF |
---|
| 2091 | |
---|
| 2092 | |
---|
| 2093 | # Let the site file select an alternate cache file if it wants to. |
---|
| 2094 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 2095 | ac_site_file1=NONE |
---|
| 2096 | ac_site_file2=NONE |
---|
| 2097 | if test -n "$CONFIG_SITE"; then |
---|
| 2098 | # We do not want a PATH search for config.site. |
---|
| 2099 | case $CONFIG_SITE in #(( |
---|
| 2100 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2101 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
| 2102 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2103 | esac |
---|
| 2104 | elif test "x$prefix" != xNONE; then |
---|
| 2105 | ac_site_file1=$prefix/share/config.site |
---|
| 2106 | ac_site_file2=$prefix/etc/config.site |
---|
| 2107 | else |
---|
| 2108 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
| 2109 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
| 2110 | fi |
---|
| 2111 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
| 2112 | do |
---|
| 2113 | test "x$ac_site_file" = xNONE && continue |
---|
| 2114 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
| 2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
| 2116 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 2117 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 2118 | . "$ac_site_file" \ |
---|
| 2119 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2120 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2121 | as_fn_error $? "failed to load site script $ac_site_file |
---|
| 2122 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2123 | fi |
---|
| 2124 | done |
---|
| 2125 | |
---|
| 2126 | if test -r "$cache_file"; then |
---|
| 2127 | # Some versions of bash will fail to source /dev/null (special files |
---|
| 2128 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
| 2129 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
| 2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
| 2131 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 2132 | case $cache_file in |
---|
| 2133 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 2134 | *) . "./$cache_file";; |
---|
| 2135 | esac |
---|
| 2136 | fi |
---|
| 2137 | else |
---|
| 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
| 2139 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 2140 | >$cache_file |
---|
| 2141 | fi |
---|
| 2142 | |
---|
| 2143 | # Check that the precious variables saved in the cache have kept the same |
---|
| 2144 | # value. |
---|
| 2145 | ac_cache_corrupted=false |
---|
| 2146 | for ac_var in $ac_precious_vars; do |
---|
| 2147 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 2148 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 2149 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 2150 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
| 2151 | case $ac_old_set,$ac_new_set in |
---|
| 2152 | set,) |
---|
| 2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 2154 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 2155 | ac_cache_corrupted=: ;; |
---|
| 2156 | ,set) |
---|
| 2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 2158 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 2159 | ac_cache_corrupted=: ;; |
---|
| 2160 | ,);; |
---|
| 2161 | *) |
---|
| 2162 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 2163 | # differences in whitespace do not lead to failure. |
---|
| 2164 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 2165 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 2166 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 2168 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 2169 | ac_cache_corrupted=: |
---|
| 2170 | else |
---|
| 2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 2172 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 2173 | eval $ac_var=\$ac_old_val |
---|
| 2174 | fi |
---|
| 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
| 2176 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
| 2178 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
| 2179 | fi;; |
---|
| 2180 | esac |
---|
| 2181 | # Pass precious variables to config.status. |
---|
| 2182 | if test "$ac_new_set" = set; then |
---|
| 2183 | case $ac_new_val in |
---|
| 2184 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 2185 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 2186 | esac |
---|
| 2187 | case " $ac_configure_args " in |
---|
| 2188 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 2189 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
| 2190 | esac |
---|
| 2191 | fi |
---|
| 2192 | done |
---|
| 2193 | if $ac_cache_corrupted; then |
---|
| 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
| 2197 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 2198 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
| 2199 | fi |
---|
| 2200 | ## -------------------- ## |
---|
| 2201 | ## Main body of script. ## |
---|
| 2202 | ## -------------------- ## |
---|
| 2203 | |
---|
| 2204 | ac_ext=c |
---|
| 2205 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2209 | |
---|
| 2210 | |
---|
| 2211 | ac_aux_dir= |
---|
| 2212 | for ac_dir in cf "$srcdir"/cf; do |
---|
| 2213 | if test -f "$ac_dir/install-sh"; then |
---|
| 2214 | ac_aux_dir=$ac_dir |
---|
| 2215 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 2216 | break |
---|
| 2217 | elif test -f "$ac_dir/install.sh"; then |
---|
| 2218 | ac_aux_dir=$ac_dir |
---|
| 2219 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 2220 | break |
---|
| 2221 | elif test -f "$ac_dir/shtool"; then |
---|
| 2222 | ac_aux_dir=$ac_dir |
---|
| 2223 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 2224 | break |
---|
| 2225 | fi |
---|
| 2226 | done |
---|
| 2227 | if test -z "$ac_aux_dir"; then |
---|
| 2228 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
| 2229 | fi |
---|
| 2230 | |
---|
| 2231 | # These three variables are undocumented and unsupported, |
---|
| 2232 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 2233 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 2234 | # whose full name contains unusual characters. |
---|
| 2235 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 2236 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 2237 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
| 2238 | |
---|
| 2239 | |
---|
| 2240 | ac_config_headers="$ac_config_headers nvconf.h" |
---|
| 2241 | |
---|
| 2242 | |
---|
| 2243 | |
---|
| 2244 | # Check whether --with-tcllib was given. |
---|
| 2245 | if test "${with_tcllib+set}" = set; then : |
---|
| 2246 | withval=$with_tcllib; with_tcllib=$withval |
---|
| 2247 | else |
---|
| 2248 | with_tcllib="" |
---|
| 2249 | fi |
---|
| 2250 | |
---|
| 2251 | |
---|
| 2252 | |
---|
| 2253 | # Check whether --with-rappture was given. |
---|
| 2254 | if test "${with_rappture+set}" = set; then : |
---|
| 2255 | withval=$with_rappture; with_rappture=$withval |
---|
| 2256 | else |
---|
| 2257 | with_rappture=yes |
---|
| 2258 | fi |
---|
| 2259 | |
---|
| 2260 | |
---|
| 2261 | |
---|
| 2262 | # Check whether --with-vtk-includes was given. |
---|
| 2263 | if test "${with_vtk_includes+set}" = set; then : |
---|
| 2264 | withval=$with_vtk_includes; with_vtk_includes=$withval |
---|
| 2265 | else |
---|
| 2266 | with_vtk_includes="" |
---|
| 2267 | fi |
---|
| 2268 | |
---|
| 2269 | |
---|
| 2270 | |
---|
| 2271 | # Check whether --with-vtk-libs was given. |
---|
| 2272 | if test "${with_vtk_libs+set}" = set; then : |
---|
| 2273 | withval=$with_vtk_libs; with_vtk_libs=$withval |
---|
| 2274 | else |
---|
| 2275 | with_vtk_libs="" |
---|
| 2276 | fi |
---|
| 2277 | |
---|
| 2278 | |
---|
| 2279 | |
---|
| 2280 | # Check whether --with-vtk was given. |
---|
| 2281 | if test "${with_vtk+set}" = set; then : |
---|
| 2282 | withval=$with_vtk; with_vtk=$withval |
---|
| 2283 | else |
---|
[4061] | 2284 | with_vtk="" |
---|
[4060] | 2285 | fi |
---|
| 2286 | |
---|
| 2287 | |
---|
| 2288 | |
---|
| 2289 | # Check whether --with-ffmpeg was given. |
---|
| 2290 | if test "${with_ffmpeg+set}" = set; then : |
---|
| 2291 | withval=$with_ffmpeg; |
---|
| 2292 | else |
---|
| 2293 | with_ffmpeg=yes |
---|
| 2294 | fi |
---|
| 2295 | |
---|
| 2296 | |
---|
| 2297 | |
---|
| 2298 | # Check whether --with-statsdir was given. |
---|
| 2299 | if test "${with_statsdir+set}" = set; then : |
---|
| 2300 | withval=$with_statsdir; STATSDIR=$withval |
---|
| 2301 | else |
---|
| 2302 | STATSDIR="/var/tmp/visservers" |
---|
| 2303 | fi |
---|
| 2304 | |
---|
| 2305 | |
---|
| 2306 | #------------------------------------------------------------------------ |
---|
| 2307 | # Handle the --prefix=... option |
---|
| 2308 | #------------------------------------------------------------------------ |
---|
| 2309 | |
---|
| 2310 | if test "${prefix}" = "NONE"; then |
---|
| 2311 | prefix=/usr/local |
---|
| 2312 | fi |
---|
| 2313 | if test "${exec_prefix}" = "NONE"; then |
---|
| 2314 | exec_prefix=$prefix |
---|
| 2315 | fi |
---|
| 2316 | |
---|
| 2317 | if test "x${incdir}" == "x"; then |
---|
| 2318 | incdir=${exec_prefix}/include |
---|
| 2319 | fi |
---|
| 2320 | libdir=${exec_prefix}/lib |
---|
| 2321 | |
---|
| 2322 | if test "${libdir}" != "${prefix}/lib"; then |
---|
| 2323 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
| 2324 | else |
---|
| 2325 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
| 2326 | fi |
---|
| 2327 | |
---|
| 2328 | # Find a good install program. We prefer a C program (faster), |
---|
| 2329 | # so one script is as good as another. But avoid the broken or |
---|
| 2330 | # incompatible versions: |
---|
| 2331 | # SysV /etc/install, /usr/sbin/install |
---|
| 2332 | # SunOS /usr/etc/install |
---|
| 2333 | # IRIX /sbin/install |
---|
| 2334 | # AIX /bin/install |
---|
| 2335 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 2336 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 2337 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 2338 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 2339 | # OS/2's system install, which has a completely different semantic |
---|
| 2340 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 2341 | # Reject install programs that cannot install multiple files. |
---|
| 2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
| 2343 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
| 2344 | if test -z "$INSTALL"; then |
---|
| 2345 | if ${ac_cv_path_install+:} false; then : |
---|
| 2346 | $as_echo_n "(cached) " >&6 |
---|
| 2347 | else |
---|
| 2348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2349 | for as_dir in $PATH |
---|
| 2350 | do |
---|
| 2351 | IFS=$as_save_IFS |
---|
| 2352 | test -z "$as_dir" && as_dir=. |
---|
| 2353 | # Account for people who put trailing slashes in PATH elements. |
---|
| 2354 | case $as_dir/ in #(( |
---|
| 2355 | ./ | .// | /[cC]/* | \ |
---|
| 2356 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 2357 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
| 2358 | /usr/ucb/* ) ;; |
---|
| 2359 | *) |
---|
| 2360 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 2361 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 2362 | # by default. |
---|
| 2363 | for ac_prog in ginstall scoinst install; do |
---|
| 2364 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2365 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 2366 | if test $ac_prog = install && |
---|
| 2367 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 2368 | # AIX install. It has an incompatible calling convention. |
---|
| 2369 | : |
---|
| 2370 | elif test $ac_prog = install && |
---|
| 2371 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 2372 | # program-specific install script used by HP pwplus--don't use. |
---|
| 2373 | : |
---|
| 2374 | else |
---|
| 2375 | rm -rf conftest.one conftest.two conftest.dir |
---|
| 2376 | echo one > conftest.one |
---|
| 2377 | echo two > conftest.two |
---|
| 2378 | mkdir conftest.dir |
---|
| 2379 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
| 2380 | test -s conftest.one && test -s conftest.two && |
---|
| 2381 | test -s conftest.dir/conftest.one && |
---|
| 2382 | test -s conftest.dir/conftest.two |
---|
| 2383 | then |
---|
| 2384 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 2385 | break 3 |
---|
| 2386 | fi |
---|
| 2387 | fi |
---|
| 2388 | fi |
---|
| 2389 | done |
---|
| 2390 | done |
---|
| 2391 | ;; |
---|
| 2392 | esac |
---|
| 2393 | |
---|
| 2394 | done |
---|
| 2395 | IFS=$as_save_IFS |
---|
| 2396 | |
---|
| 2397 | rm -rf conftest.one conftest.two conftest.dir |
---|
| 2398 | |
---|
| 2399 | fi |
---|
| 2400 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 2401 | INSTALL=$ac_cv_path_install |
---|
| 2402 | else |
---|
| 2403 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 2404 | # value for INSTALL within a source directory, because that will |
---|
| 2405 | # break other packages using the cache if that directory is |
---|
| 2406 | # removed, or if the value is a relative name. |
---|
| 2407 | INSTALL=$ac_install_sh |
---|
| 2408 | fi |
---|
| 2409 | fi |
---|
| 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
| 2411 | $as_echo "$INSTALL" >&6; } |
---|
| 2412 | |
---|
| 2413 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 2414 | # It thinks the first close brace ends the variable substitution. |
---|
| 2415 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 2416 | |
---|
| 2417 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 2418 | |
---|
| 2419 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 2420 | |
---|
| 2421 | if test -n "$ac_tool_prefix"; then |
---|
| 2422 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2423 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2425 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2426 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
| 2427 | $as_echo_n "(cached) " >&6 |
---|
| 2428 | else |
---|
| 2429 | if test -n "$RANLIB"; then |
---|
| 2430 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2431 | else |
---|
| 2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2433 | for as_dir in $PATH |
---|
| 2434 | do |
---|
| 2435 | IFS=$as_save_IFS |
---|
| 2436 | test -z "$as_dir" && as_dir=. |
---|
| 2437 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2439 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2441 | break 2 |
---|
| 2442 | fi |
---|
| 2443 | done |
---|
| 2444 | done |
---|
| 2445 | IFS=$as_save_IFS |
---|
| 2446 | |
---|
| 2447 | fi |
---|
| 2448 | fi |
---|
| 2449 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2450 | if test -n "$RANLIB"; then |
---|
| 2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 2452 | $as_echo "$RANLIB" >&6; } |
---|
| 2453 | else |
---|
| 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2455 | $as_echo "no" >&6; } |
---|
| 2456 | fi |
---|
| 2457 | |
---|
| 2458 | |
---|
| 2459 | fi |
---|
| 2460 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2461 | ac_ct_RANLIB=$RANLIB |
---|
| 2462 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2463 | set dummy ranlib; ac_word=$2 |
---|
| 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2465 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2466 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
| 2467 | $as_echo_n "(cached) " >&6 |
---|
| 2468 | else |
---|
| 2469 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2470 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2471 | else |
---|
| 2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2473 | for as_dir in $PATH |
---|
| 2474 | do |
---|
| 2475 | IFS=$as_save_IFS |
---|
| 2476 | test -z "$as_dir" && as_dir=. |
---|
| 2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2479 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2481 | break 2 |
---|
| 2482 | fi |
---|
| 2483 | done |
---|
| 2484 | done |
---|
| 2485 | IFS=$as_save_IFS |
---|
| 2486 | |
---|
| 2487 | fi |
---|
| 2488 | fi |
---|
| 2489 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2490 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 2492 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
| 2493 | else |
---|
| 2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2495 | $as_echo "no" >&6; } |
---|
| 2496 | fi |
---|
| 2497 | |
---|
| 2498 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 2499 | RANLIB=":" |
---|
| 2500 | else |
---|
| 2501 | case $cross_compiling:$ac_tool_warned in |
---|
| 2502 | yes:) |
---|
| 2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2505 | ac_tool_warned=yes ;; |
---|
| 2506 | esac |
---|
| 2507 | RANLIB=$ac_ct_RANLIB |
---|
| 2508 | fi |
---|
| 2509 | else |
---|
| 2510 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2511 | fi |
---|
| 2512 | |
---|
| 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
| 2514 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
| 2515 | LN_S=$as_ln_s |
---|
| 2516 | if test "$LN_S" = "ln -s"; then |
---|
| 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2518 | $as_echo "yes" >&6; } |
---|
| 2519 | else |
---|
| 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
| 2521 | $as_echo "no, using $LN_S" >&6; } |
---|
| 2522 | fi |
---|
| 2523 | |
---|
| 2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
| 2525 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
| 2526 | if test -z "$MKDIR_P"; then |
---|
| 2527 | if ${ac_cv_path_mkdir+:} false; then : |
---|
| 2528 | $as_echo_n "(cached) " >&6 |
---|
| 2529 | else |
---|
| 2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2531 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
| 2532 | do |
---|
| 2533 | IFS=$as_save_IFS |
---|
| 2534 | test -z "$as_dir" && as_dir=. |
---|
| 2535 | for ac_prog in mkdir gmkdir; do |
---|
| 2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2537 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
| 2538 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
| 2539 | 'mkdir (GNU coreutils) '* | \ |
---|
| 2540 | 'mkdir (coreutils) '* | \ |
---|
| 2541 | 'mkdir (fileutils) '4.1*) |
---|
| 2542 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
| 2543 | break 3;; |
---|
| 2544 | esac |
---|
| 2545 | done |
---|
| 2546 | done |
---|
| 2547 | done |
---|
| 2548 | IFS=$as_save_IFS |
---|
| 2549 | |
---|
| 2550 | fi |
---|
| 2551 | |
---|
| 2552 | test -d ./--version && rmdir ./--version |
---|
| 2553 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
| 2554 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
| 2555 | else |
---|
| 2556 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 2557 | # value for MKDIR_P within a source directory, because that will |
---|
| 2558 | # break other packages using the cache if that directory is |
---|
| 2559 | # removed, or if the value is a relative name. |
---|
| 2560 | MKDIR_P="$ac_install_sh -d" |
---|
| 2561 | fi |
---|
| 2562 | fi |
---|
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
| 2564 | $as_echo "$MKDIR_P" >&6; } |
---|
| 2565 | |
---|
| 2566 | |
---|
| 2567 | ac_ext=c |
---|
| 2568 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2572 | if test -n "$ac_tool_prefix"; then |
---|
| 2573 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2574 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2576 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2577 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2578 | $as_echo_n "(cached) " >&6 |
---|
| 2579 | else |
---|
| 2580 | if test -n "$CC"; then |
---|
| 2581 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2582 | else |
---|
| 2583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2584 | for as_dir in $PATH |
---|
| 2585 | do |
---|
| 2586 | IFS=$as_save_IFS |
---|
| 2587 | test -z "$as_dir" && as_dir=. |
---|
| 2588 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2590 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2592 | break 2 |
---|
| 2593 | fi |
---|
| 2594 | done |
---|
| 2595 | done |
---|
| 2596 | IFS=$as_save_IFS |
---|
| 2597 | |
---|
| 2598 | fi |
---|
| 2599 | fi |
---|
| 2600 | CC=$ac_cv_prog_CC |
---|
| 2601 | if test -n "$CC"; then |
---|
| 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2603 | $as_echo "$CC" >&6; } |
---|
| 2604 | else |
---|
| 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2606 | $as_echo "no" >&6; } |
---|
| 2607 | fi |
---|
| 2608 | |
---|
| 2609 | |
---|
| 2610 | fi |
---|
| 2611 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2612 | ac_ct_CC=$CC |
---|
| 2613 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2614 | set dummy gcc; ac_word=$2 |
---|
| 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2616 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2617 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2618 | $as_echo_n "(cached) " >&6 |
---|
| 2619 | else |
---|
| 2620 | if test -n "$ac_ct_CC"; then |
---|
| 2621 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2622 | else |
---|
| 2623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2624 | for as_dir in $PATH |
---|
| 2625 | do |
---|
| 2626 | IFS=$as_save_IFS |
---|
| 2627 | test -z "$as_dir" && as_dir=. |
---|
| 2628 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2630 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2632 | break 2 |
---|
| 2633 | fi |
---|
| 2634 | done |
---|
| 2635 | done |
---|
| 2636 | IFS=$as_save_IFS |
---|
| 2637 | |
---|
| 2638 | fi |
---|
| 2639 | fi |
---|
| 2640 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2641 | if test -n "$ac_ct_CC"; then |
---|
| 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2643 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 2644 | else |
---|
| 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2646 | $as_echo "no" >&6; } |
---|
| 2647 | fi |
---|
| 2648 | |
---|
| 2649 | if test "x$ac_ct_CC" = x; then |
---|
| 2650 | CC="" |
---|
| 2651 | else |
---|
| 2652 | case $cross_compiling:$ac_tool_warned in |
---|
| 2653 | yes:) |
---|
| 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2655 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2656 | ac_tool_warned=yes ;; |
---|
| 2657 | esac |
---|
| 2658 | CC=$ac_ct_CC |
---|
| 2659 | fi |
---|
| 2660 | else |
---|
| 2661 | CC="$ac_cv_prog_CC" |
---|
| 2662 | fi |
---|
| 2663 | |
---|
| 2664 | if test -z "$CC"; then |
---|
| 2665 | if test -n "$ac_tool_prefix"; then |
---|
| 2666 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2667 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2669 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2670 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2671 | $as_echo_n "(cached) " >&6 |
---|
| 2672 | else |
---|
| 2673 | if test -n "$CC"; then |
---|
| 2674 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2675 | else |
---|
| 2676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2677 | for as_dir in $PATH |
---|
| 2678 | do |
---|
| 2679 | IFS=$as_save_IFS |
---|
| 2680 | test -z "$as_dir" && as_dir=. |
---|
| 2681 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2683 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2685 | break 2 |
---|
| 2686 | fi |
---|
| 2687 | done |
---|
| 2688 | done |
---|
| 2689 | IFS=$as_save_IFS |
---|
| 2690 | |
---|
| 2691 | fi |
---|
| 2692 | fi |
---|
| 2693 | CC=$ac_cv_prog_CC |
---|
| 2694 | if test -n "$CC"; then |
---|
| 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2696 | $as_echo "$CC" >&6; } |
---|
| 2697 | else |
---|
| 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2699 | $as_echo "no" >&6; } |
---|
| 2700 | fi |
---|
| 2701 | |
---|
| 2702 | |
---|
| 2703 | fi |
---|
| 2704 | fi |
---|
| 2705 | if test -z "$CC"; then |
---|
| 2706 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2707 | set dummy cc; ac_word=$2 |
---|
| 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2709 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2710 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2711 | $as_echo_n "(cached) " >&6 |
---|
| 2712 | else |
---|
| 2713 | if test -n "$CC"; then |
---|
| 2714 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2715 | else |
---|
| 2716 | ac_prog_rejected=no |
---|
| 2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2718 | for as_dir in $PATH |
---|
| 2719 | do |
---|
| 2720 | IFS=$as_save_IFS |
---|
| 2721 | test -z "$as_dir" && as_dir=. |
---|
| 2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2724 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2725 | ac_prog_rejected=yes |
---|
| 2726 | continue |
---|
| 2727 | fi |
---|
| 2728 | ac_cv_prog_CC="cc" |
---|
| 2729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2730 | break 2 |
---|
| 2731 | fi |
---|
| 2732 | done |
---|
| 2733 | done |
---|
| 2734 | IFS=$as_save_IFS |
---|
| 2735 | |
---|
| 2736 | if test $ac_prog_rejected = yes; then |
---|
| 2737 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2738 | set dummy $ac_cv_prog_CC |
---|
| 2739 | shift |
---|
| 2740 | if test $# != 0; then |
---|
| 2741 | # We chose a different compiler from the bogus one. |
---|
| 2742 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2743 | # first if we set CC to just the basename; use the full file name. |
---|
| 2744 | shift |
---|
| 2745 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2746 | fi |
---|
| 2747 | fi |
---|
| 2748 | fi |
---|
| 2749 | fi |
---|
| 2750 | CC=$ac_cv_prog_CC |
---|
| 2751 | if test -n "$CC"; then |
---|
| 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2753 | $as_echo "$CC" >&6; } |
---|
| 2754 | else |
---|
| 2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2756 | $as_echo "no" >&6; } |
---|
| 2757 | fi |
---|
| 2758 | |
---|
| 2759 | |
---|
| 2760 | fi |
---|
| 2761 | if test -z "$CC"; then |
---|
| 2762 | if test -n "$ac_tool_prefix"; then |
---|
| 2763 | for ac_prog in cl.exe |
---|
| 2764 | do |
---|
| 2765 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2766 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2768 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2769 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2770 | $as_echo_n "(cached) " >&6 |
---|
| 2771 | else |
---|
| 2772 | if test -n "$CC"; then |
---|
| 2773 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2774 | else |
---|
| 2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2776 | for as_dir in $PATH |
---|
| 2777 | do |
---|
| 2778 | IFS=$as_save_IFS |
---|
| 2779 | test -z "$as_dir" && as_dir=. |
---|
| 2780 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2782 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2784 | break 2 |
---|
| 2785 | fi |
---|
| 2786 | done |
---|
| 2787 | done |
---|
| 2788 | IFS=$as_save_IFS |
---|
| 2789 | |
---|
| 2790 | fi |
---|
| 2791 | fi |
---|
| 2792 | CC=$ac_cv_prog_CC |
---|
| 2793 | if test -n "$CC"; then |
---|
| 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2795 | $as_echo "$CC" >&6; } |
---|
| 2796 | else |
---|
| 2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2798 | $as_echo "no" >&6; } |
---|
| 2799 | fi |
---|
| 2800 | |
---|
| 2801 | |
---|
| 2802 | test -n "$CC" && break |
---|
| 2803 | done |
---|
| 2804 | fi |
---|
| 2805 | if test -z "$CC"; then |
---|
| 2806 | ac_ct_CC=$CC |
---|
| 2807 | for ac_prog in cl.exe |
---|
| 2808 | do |
---|
| 2809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2810 | set dummy $ac_prog; ac_word=$2 |
---|
| 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2812 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2813 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2814 | $as_echo_n "(cached) " >&6 |
---|
| 2815 | else |
---|
| 2816 | if test -n "$ac_ct_CC"; then |
---|
| 2817 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2818 | else |
---|
| 2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2820 | for as_dir in $PATH |
---|
| 2821 | do |
---|
| 2822 | IFS=$as_save_IFS |
---|
| 2823 | test -z "$as_dir" && as_dir=. |
---|
| 2824 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2825 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2826 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2828 | break 2 |
---|
| 2829 | fi |
---|
| 2830 | done |
---|
| 2831 | done |
---|
| 2832 | IFS=$as_save_IFS |
---|
| 2833 | |
---|
| 2834 | fi |
---|
| 2835 | fi |
---|
| 2836 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2837 | if test -n "$ac_ct_CC"; then |
---|
| 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2839 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 2840 | else |
---|
| 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2842 | $as_echo "no" >&6; } |
---|
| 2843 | fi |
---|
| 2844 | |
---|
| 2845 | |
---|
| 2846 | test -n "$ac_ct_CC" && break |
---|
| 2847 | done |
---|
| 2848 | |
---|
| 2849 | if test "x$ac_ct_CC" = x; then |
---|
| 2850 | CC="" |
---|
| 2851 | else |
---|
| 2852 | case $cross_compiling:$ac_tool_warned in |
---|
| 2853 | yes:) |
---|
| 2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2856 | ac_tool_warned=yes ;; |
---|
| 2857 | esac |
---|
| 2858 | CC=$ac_ct_CC |
---|
| 2859 | fi |
---|
| 2860 | fi |
---|
| 2861 | |
---|
| 2862 | fi |
---|
| 2863 | |
---|
| 2864 | |
---|
| 2865 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2866 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2867 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 2868 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2869 | |
---|
| 2870 | # Provide some information about the compiler. |
---|
| 2871 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 2872 | set X $ac_compile |
---|
| 2873 | ac_compiler=$2 |
---|
| 2874 | for ac_option in --version -v -V -qversion; do |
---|
| 2875 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 2876 | case "(($ac_try" in |
---|
| 2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2878 | *) ac_try_echo=$ac_try;; |
---|
| 2879 | esac |
---|
| 2880 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2881 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2882 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 2883 | ac_status=$? |
---|
| 2884 | if test -s conftest.err; then |
---|
| 2885 | sed '10a\ |
---|
| 2886 | ... rest of stderr output deleted ... |
---|
| 2887 | 10q' conftest.err >conftest.er1 |
---|
| 2888 | cat conftest.er1 >&5 |
---|
| 2889 | fi |
---|
| 2890 | rm -f conftest.er1 conftest.err |
---|
| 2891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2892 | test $ac_status = 0; } |
---|
| 2893 | done |
---|
| 2894 | |
---|
| 2895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2896 | /* end confdefs.h. */ |
---|
| 2897 | |
---|
| 2898 | int |
---|
| 2899 | main () |
---|
| 2900 | { |
---|
| 2901 | |
---|
| 2902 | ; |
---|
| 2903 | return 0; |
---|
| 2904 | } |
---|
| 2905 | _ACEOF |
---|
| 2906 | ac_clean_files_save=$ac_clean_files |
---|
| 2907 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
| 2908 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2909 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2910 | # of exeext. |
---|
| 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
| 2912 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
| 2913 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2914 | |
---|
| 2915 | # The possible output files: |
---|
| 2916 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2917 | |
---|
| 2918 | ac_rmfiles= |
---|
| 2919 | for ac_file in $ac_files |
---|
| 2920 | do |
---|
| 2921 | case $ac_file in |
---|
| 2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2923 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2924 | esac |
---|
| 2925 | done |
---|
| 2926 | rm -f $ac_rmfiles |
---|
| 2927 | |
---|
| 2928 | if { { ac_try="$ac_link_default" |
---|
| 2929 | case "(($ac_try" in |
---|
| 2930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2931 | *) ac_try_echo=$ac_try;; |
---|
| 2932 | esac |
---|
| 2933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2934 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2935 | (eval "$ac_link_default") 2>&5 |
---|
| 2936 | ac_status=$? |
---|
| 2937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2938 | test $ac_status = 0; }; then : |
---|
| 2939 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2940 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2941 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2942 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2943 | # Autoconf. |
---|
| 2944 | for ac_file in $ac_files '' |
---|
| 2945 | do |
---|
| 2946 | test -f "$ac_file" || continue |
---|
| 2947 | case $ac_file in |
---|
| 2948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
| 2949 | ;; |
---|
| 2950 | [ab].out ) |
---|
| 2951 | # We found the default executable, but exeext='' is most |
---|
| 2952 | # certainly right. |
---|
| 2953 | break;; |
---|
| 2954 | *.* ) |
---|
| 2955 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2956 | then :; else |
---|
| 2957 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2958 | fi |
---|
| 2959 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2960 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2961 | # argument, so we may need to know it at that point already. |
---|
| 2962 | # Even if this section looks crufty: it has the advantage of |
---|
| 2963 | # actually working. |
---|
| 2964 | break;; |
---|
| 2965 | * ) |
---|
| 2966 | break;; |
---|
| 2967 | esac |
---|
| 2968 | done |
---|
| 2969 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2970 | |
---|
| 2971 | else |
---|
| 2972 | ac_file='' |
---|
| 2973 | fi |
---|
| 2974 | if test -z "$ac_file"; then : |
---|
| 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2976 | $as_echo "no" >&6; } |
---|
| 2977 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2979 | |
---|
| 2980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2982 | as_fn_error 77 "C compiler cannot create executables |
---|
| 2983 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2984 | else |
---|
| 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2986 | $as_echo "yes" >&6; } |
---|
| 2987 | fi |
---|
| 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
| 2989 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
| 2991 | $as_echo "$ac_file" >&6; } |
---|
| 2992 | ac_exeext=$ac_cv_exeext |
---|
| 2993 | |
---|
| 2994 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
| 2995 | ac_clean_files=$ac_clean_files_save |
---|
| 2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
| 2997 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
| 2998 | if { { ac_try="$ac_link" |
---|
| 2999 | case "(($ac_try" in |
---|
| 3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3001 | *) ac_try_echo=$ac_try;; |
---|
| 3002 | esac |
---|
| 3003 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3004 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3005 | (eval "$ac_link") 2>&5 |
---|
| 3006 | ac_status=$? |
---|
| 3007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3008 | test $ac_status = 0; }; then : |
---|
| 3009 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 3010 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 3011 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 3012 | # `rm'. |
---|
| 3013 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 3014 | test -f "$ac_file" || continue |
---|
| 3015 | case $ac_file in |
---|
| 3016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 3017 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 3018 | break;; |
---|
| 3019 | * ) break;; |
---|
| 3020 | esac |
---|
| 3021 | done |
---|
| 3022 | else |
---|
| 3023 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3024 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3025 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
| 3026 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3027 | fi |
---|
| 3028 | rm -f conftest conftest$ac_cv_exeext |
---|
| 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
| 3030 | $as_echo "$ac_cv_exeext" >&6; } |
---|
| 3031 | |
---|
| 3032 | rm -f conftest.$ac_ext |
---|
| 3033 | EXEEXT=$ac_cv_exeext |
---|
| 3034 | ac_exeext=$EXEEXT |
---|
| 3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3036 | /* end confdefs.h. */ |
---|
| 3037 | #include <stdio.h> |
---|
| 3038 | int |
---|
| 3039 | main () |
---|
| 3040 | { |
---|
| 3041 | FILE *f = fopen ("conftest.out", "w"); |
---|
| 3042 | return ferror (f) || fclose (f) != 0; |
---|
| 3043 | |
---|
| 3044 | ; |
---|
| 3045 | return 0; |
---|
| 3046 | } |
---|
| 3047 | _ACEOF |
---|
| 3048 | ac_clean_files="$ac_clean_files conftest.out" |
---|
| 3049 | # Check that the compiler produces executables we can run. If not, either |
---|
| 3050 | # the compiler is broken, or we cross compile. |
---|
| 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
| 3052 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
| 3053 | if test "$cross_compiling" != yes; then |
---|
| 3054 | { { ac_try="$ac_link" |
---|
| 3055 | case "(($ac_try" in |
---|
| 3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3057 | *) ac_try_echo=$ac_try;; |
---|
| 3058 | esac |
---|
| 3059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3060 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3061 | (eval "$ac_link") 2>&5 |
---|
| 3062 | ac_status=$? |
---|
| 3063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3064 | test $ac_status = 0; } |
---|
| 3065 | if { ac_try='./conftest$ac_cv_exeext' |
---|
| 3066 | { { case "(($ac_try" in |
---|
| 3067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3068 | *) ac_try_echo=$ac_try;; |
---|
| 3069 | esac |
---|
| 3070 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3071 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3072 | (eval "$ac_try") 2>&5 |
---|
| 3073 | ac_status=$? |
---|
| 3074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3075 | test $ac_status = 0; }; }; then |
---|
| 3076 | cross_compiling=no |
---|
| 3077 | else |
---|
| 3078 | if test "$cross_compiling" = maybe; then |
---|
| 3079 | cross_compiling=yes |
---|
| 3080 | else |
---|
| 3081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3083 | as_fn_error $? "cannot run C compiled programs. |
---|
| 3084 | If you meant to cross compile, use \`--host'. |
---|
| 3085 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3086 | fi |
---|
| 3087 | fi |
---|
| 3088 | fi |
---|
| 3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
| 3090 | $as_echo "$cross_compiling" >&6; } |
---|
| 3091 | |
---|
| 3092 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
| 3093 | ac_clean_files=$ac_clean_files_save |
---|
| 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
| 3095 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
| 3096 | if ${ac_cv_objext+:} false; then : |
---|
| 3097 | $as_echo_n "(cached) " >&6 |
---|
| 3098 | else |
---|
| 3099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3100 | /* end confdefs.h. */ |
---|
| 3101 | |
---|
| 3102 | int |
---|
| 3103 | main () |
---|
| 3104 | { |
---|
| 3105 | |
---|
| 3106 | ; |
---|
| 3107 | return 0; |
---|
| 3108 | } |
---|
| 3109 | _ACEOF |
---|
| 3110 | rm -f conftest.o conftest.obj |
---|
| 3111 | if { { ac_try="$ac_compile" |
---|
| 3112 | case "(($ac_try" in |
---|
| 3113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3114 | *) ac_try_echo=$ac_try;; |
---|
| 3115 | esac |
---|
| 3116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3117 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3118 | (eval "$ac_compile") 2>&5 |
---|
| 3119 | ac_status=$? |
---|
| 3120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3121 | test $ac_status = 0; }; then : |
---|
| 3122 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 3123 | test -f "$ac_file" || continue; |
---|
| 3124 | case $ac_file in |
---|
| 3125 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
| 3126 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 3127 | break;; |
---|
| 3128 | esac |
---|
| 3129 | done |
---|
| 3130 | else |
---|
| 3131 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 3132 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3133 | |
---|
| 3134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3136 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
| 3137 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3138 | fi |
---|
| 3139 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 3140 | fi |
---|
| 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
| 3142 | $as_echo "$ac_cv_objext" >&6; } |
---|
| 3143 | OBJEXT=$ac_cv_objext |
---|
| 3144 | ac_objext=$OBJEXT |
---|
| 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
| 3146 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
| 3147 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
| 3148 | $as_echo_n "(cached) " >&6 |
---|
| 3149 | else |
---|
| 3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3151 | /* end confdefs.h. */ |
---|
| 3152 | |
---|
| 3153 | int |
---|
| 3154 | main () |
---|
| 3155 | { |
---|
| 3156 | #ifndef __GNUC__ |
---|
| 3157 | choke me |
---|
| 3158 | #endif |
---|
| 3159 | |
---|
| 3160 | ; |
---|
| 3161 | return 0; |
---|
| 3162 | } |
---|
| 3163 | _ACEOF |
---|
| 3164 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3165 | ac_compiler_gnu=yes |
---|
| 3166 | else |
---|
| 3167 | ac_compiler_gnu=no |
---|
| 3168 | fi |
---|
| 3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3170 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3171 | |
---|
| 3172 | fi |
---|
| 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3174 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 3175 | if test $ac_compiler_gnu = yes; then |
---|
| 3176 | GCC=yes |
---|
| 3177 | else |
---|
| 3178 | GCC= |
---|
| 3179 | fi |
---|
| 3180 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3181 | ac_save_CFLAGS=$CFLAGS |
---|
| 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 3183 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
| 3184 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
| 3185 | $as_echo_n "(cached) " >&6 |
---|
| 3186 | else |
---|
| 3187 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 3188 | ac_c_werror_flag=yes |
---|
| 3189 | ac_cv_prog_cc_g=no |
---|
| 3190 | CFLAGS="-g" |
---|
| 3191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3192 | /* end confdefs.h. */ |
---|
| 3193 | |
---|
| 3194 | int |
---|
| 3195 | main () |
---|
| 3196 | { |
---|
| 3197 | |
---|
| 3198 | ; |
---|
| 3199 | return 0; |
---|
| 3200 | } |
---|
| 3201 | _ACEOF |
---|
| 3202 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3203 | ac_cv_prog_cc_g=yes |
---|
| 3204 | else |
---|
| 3205 | CFLAGS="" |
---|
| 3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3207 | /* end confdefs.h. */ |
---|
| 3208 | |
---|
| 3209 | int |
---|
| 3210 | main () |
---|
| 3211 | { |
---|
| 3212 | |
---|
| 3213 | ; |
---|
| 3214 | return 0; |
---|
| 3215 | } |
---|
| 3216 | _ACEOF |
---|
| 3217 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3218 | |
---|
| 3219 | else |
---|
| 3220 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3221 | CFLAGS="-g" |
---|
| 3222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3223 | /* end confdefs.h. */ |
---|
| 3224 | |
---|
| 3225 | int |
---|
| 3226 | main () |
---|
| 3227 | { |
---|
| 3228 | |
---|
| 3229 | ; |
---|
| 3230 | return 0; |
---|
| 3231 | } |
---|
| 3232 | _ACEOF |
---|
| 3233 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3234 | ac_cv_prog_cc_g=yes |
---|
| 3235 | fi |
---|
| 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3237 | fi |
---|
| 3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3239 | fi |
---|
| 3240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3241 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3242 | fi |
---|
| 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3244 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
| 3245 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3246 | CFLAGS=$ac_save_CFLAGS |
---|
| 3247 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3248 | if test "$GCC" = yes; then |
---|
| 3249 | CFLAGS="-g -O2" |
---|
| 3250 | else |
---|
| 3251 | CFLAGS="-g" |
---|
| 3252 | fi |
---|
| 3253 | else |
---|
| 3254 | if test "$GCC" = yes; then |
---|
| 3255 | CFLAGS="-O2" |
---|
| 3256 | else |
---|
| 3257 | CFLAGS= |
---|
| 3258 | fi |
---|
| 3259 | fi |
---|
| 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
| 3261 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 3262 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
| 3263 | $as_echo_n "(cached) " >&6 |
---|
| 3264 | else |
---|
| 3265 | ac_cv_prog_cc_c89=no |
---|
| 3266 | ac_save_CC=$CC |
---|
| 3267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3268 | /* end confdefs.h. */ |
---|
| 3269 | #include <stdarg.h> |
---|
| 3270 | #include <stdio.h> |
---|
| 3271 | struct stat; |
---|
| 3272 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3273 | struct buf { int x; }; |
---|
| 3274 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3275 | static char *e (p, i) |
---|
| 3276 | char **p; |
---|
| 3277 | int i; |
---|
| 3278 | { |
---|
| 3279 | return p[i]; |
---|
| 3280 | } |
---|
| 3281 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3282 | { |
---|
| 3283 | char *s; |
---|
| 3284 | va_list v; |
---|
| 3285 | va_start (v,p); |
---|
| 3286 | s = g (p, va_arg (v,int)); |
---|
| 3287 | va_end (v); |
---|
| 3288 | return s; |
---|
| 3289 | } |
---|
| 3290 | |
---|
| 3291 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3292 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3293 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3294 | as 'x'. The following induces an error, until -std is added to get |
---|
| 3295 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3296 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3297 | that's true only with -std. */ |
---|
| 3298 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3299 | |
---|
| 3300 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3301 | inside strings and character constants. */ |
---|
| 3302 | #define FOO(x) 'x' |
---|
| 3303 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3304 | |
---|
| 3305 | int test (int i, double x); |
---|
| 3306 | struct s1 {int (*f) (int a);}; |
---|
| 3307 | struct s2 {int (*f) (double a);}; |
---|
| 3308 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3309 | int argc; |
---|
| 3310 | char **argv; |
---|
| 3311 | int |
---|
| 3312 | main () |
---|
| 3313 | { |
---|
| 3314 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3315 | ; |
---|
| 3316 | return 0; |
---|
| 3317 | } |
---|
| 3318 | _ACEOF |
---|
| 3319 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3320 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3321 | do |
---|
| 3322 | CC="$ac_save_CC $ac_arg" |
---|
| 3323 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3324 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 3325 | fi |
---|
| 3326 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3327 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 3328 | done |
---|
| 3329 | rm -f conftest.$ac_ext |
---|
| 3330 | CC=$ac_save_CC |
---|
| 3331 | |
---|
| 3332 | fi |
---|
| 3333 | # AC_CACHE_VAL |
---|
| 3334 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3335 | x) |
---|
| 3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3337 | $as_echo "none needed" >&6; } ;; |
---|
| 3338 | xno) |
---|
| 3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3340 | $as_echo "unsupported" >&6; } ;; |
---|
| 3341 | *) |
---|
| 3342 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3344 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 3345 | esac |
---|
| 3346 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
| 3347 | |
---|
| 3348 | fi |
---|
| 3349 | |
---|
| 3350 | ac_ext=c |
---|
| 3351 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3355 | |
---|
| 3356 | ac_ext=c |
---|
| 3357 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
| 3362 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
| 3363 | # On Suns, sometimes $CPP names a directory. |
---|
| 3364 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3365 | CPP= |
---|
| 3366 | fi |
---|
| 3367 | if test -z "$CPP"; then |
---|
| 3368 | if ${ac_cv_prog_CPP+:} false; then : |
---|
| 3369 | $as_echo_n "(cached) " >&6 |
---|
| 3370 | else |
---|
| 3371 | # Double quotes because CPP needs to be expanded |
---|
| 3372 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3373 | do |
---|
| 3374 | ac_preproc_ok=false |
---|
| 3375 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3376 | do |
---|
| 3377 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3378 | # with a fresh cross-compiler works. |
---|
| 3379 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3380 | # <limits.h> exists even on freestanding compilers. |
---|
| 3381 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3382 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3384 | /* end confdefs.h. */ |
---|
| 3385 | #ifdef __STDC__ |
---|
| 3386 | # include <limits.h> |
---|
| 3387 | #else |
---|
| 3388 | # include <assert.h> |
---|
| 3389 | #endif |
---|
| 3390 | Syntax error |
---|
| 3391 | _ACEOF |
---|
| 3392 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3393 | |
---|
| 3394 | else |
---|
| 3395 | # Broken: fails on valid input. |
---|
| 3396 | continue |
---|
| 3397 | fi |
---|
| 3398 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3399 | |
---|
| 3400 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3401 | # can be detected and how. |
---|
| 3402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3403 | /* end confdefs.h. */ |
---|
| 3404 | #include <ac_nonexistent.h> |
---|
| 3405 | _ACEOF |
---|
| 3406 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3407 | # Broken: success on invalid input. |
---|
| 3408 | continue |
---|
| 3409 | else |
---|
| 3410 | # Passes both tests. |
---|
| 3411 | ac_preproc_ok=: |
---|
| 3412 | break |
---|
| 3413 | fi |
---|
| 3414 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3415 | |
---|
| 3416 | done |
---|
| 3417 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3418 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3419 | if $ac_preproc_ok; then : |
---|
| 3420 | break |
---|
| 3421 | fi |
---|
| 3422 | |
---|
| 3423 | done |
---|
| 3424 | ac_cv_prog_CPP=$CPP |
---|
| 3425 | |
---|
| 3426 | fi |
---|
| 3427 | CPP=$ac_cv_prog_CPP |
---|
| 3428 | else |
---|
| 3429 | ac_cv_prog_CPP=$CPP |
---|
| 3430 | fi |
---|
| 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
| 3432 | $as_echo "$CPP" >&6; } |
---|
| 3433 | ac_preproc_ok=false |
---|
| 3434 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3435 | do |
---|
| 3436 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3437 | # with a fresh cross-compiler works. |
---|
| 3438 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3439 | # <limits.h> exists even on freestanding compilers. |
---|
| 3440 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3441 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3443 | /* end confdefs.h. */ |
---|
| 3444 | #ifdef __STDC__ |
---|
| 3445 | # include <limits.h> |
---|
| 3446 | #else |
---|
| 3447 | # include <assert.h> |
---|
| 3448 | #endif |
---|
| 3449 | Syntax error |
---|
| 3450 | _ACEOF |
---|
| 3451 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3452 | |
---|
| 3453 | else |
---|
| 3454 | # Broken: fails on valid input. |
---|
| 3455 | continue |
---|
| 3456 | fi |
---|
| 3457 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3458 | |
---|
| 3459 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3460 | # can be detected and how. |
---|
| 3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3462 | /* end confdefs.h. */ |
---|
| 3463 | #include <ac_nonexistent.h> |
---|
| 3464 | _ACEOF |
---|
| 3465 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3466 | # Broken: success on invalid input. |
---|
| 3467 | continue |
---|
| 3468 | else |
---|
| 3469 | # Passes both tests. |
---|
| 3470 | ac_preproc_ok=: |
---|
| 3471 | break |
---|
| 3472 | fi |
---|
| 3473 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3474 | |
---|
| 3475 | done |
---|
| 3476 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3477 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3478 | if $ac_preproc_ok; then : |
---|
| 3479 | |
---|
| 3480 | else |
---|
| 3481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3482 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3483 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
| 3484 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3485 | fi |
---|
| 3486 | |
---|
| 3487 | ac_ext=c |
---|
| 3488 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3492 | |
---|
| 3493 | ac_ext=cpp |
---|
| 3494 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 3498 | if test -z "$CXX"; then |
---|
| 3499 | if test -n "$CCC"; then |
---|
| 3500 | CXX=$CCC |
---|
| 3501 | else |
---|
| 3502 | if test -n "$ac_tool_prefix"; then |
---|
| 3503 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 3504 | do |
---|
| 3505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3508 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3509 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 3510 | $as_echo_n "(cached) " >&6 |
---|
| 3511 | else |
---|
| 3512 | if test -n "$CXX"; then |
---|
| 3513 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 3514 | else |
---|
| 3515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3516 | for as_dir in $PATH |
---|
| 3517 | do |
---|
| 3518 | IFS=$as_save_IFS |
---|
| 3519 | test -z "$as_dir" && as_dir=. |
---|
| 3520 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3522 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 3523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3524 | break 2 |
---|
| 3525 | fi |
---|
| 3526 | done |
---|
| 3527 | done |
---|
| 3528 | IFS=$as_save_IFS |
---|
| 3529 | |
---|
| 3530 | fi |
---|
| 3531 | fi |
---|
| 3532 | CXX=$ac_cv_prog_CXX |
---|
| 3533 | if test -n "$CXX"; then |
---|
| 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 3535 | $as_echo "$CXX" >&6; } |
---|
| 3536 | else |
---|
| 3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3538 | $as_echo "no" >&6; } |
---|
| 3539 | fi |
---|
| 3540 | |
---|
| 3541 | |
---|
| 3542 | test -n "$CXX" && break |
---|
| 3543 | done |
---|
| 3544 | fi |
---|
| 3545 | if test -z "$CXX"; then |
---|
| 3546 | ac_ct_CXX=$CXX |
---|
| 3547 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 3548 | do |
---|
| 3549 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3550 | set dummy $ac_prog; ac_word=$2 |
---|
| 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3552 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3553 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 3554 | $as_echo_n "(cached) " >&6 |
---|
| 3555 | else |
---|
| 3556 | if test -n "$ac_ct_CXX"; then |
---|
| 3557 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 3558 | else |
---|
| 3559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3560 | for as_dir in $PATH |
---|
| 3561 | do |
---|
| 3562 | IFS=$as_save_IFS |
---|
| 3563 | test -z "$as_dir" && as_dir=. |
---|
| 3564 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3566 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 3567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3568 | break 2 |
---|
| 3569 | fi |
---|
| 3570 | done |
---|
| 3571 | done |
---|
| 3572 | IFS=$as_save_IFS |
---|
| 3573 | |
---|
| 3574 | fi |
---|
| 3575 | fi |
---|
| 3576 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 3577 | if test -n "$ac_ct_CXX"; then |
---|
| 3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 3579 | $as_echo "$ac_ct_CXX" >&6; } |
---|
| 3580 | else |
---|
| 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3582 | $as_echo "no" >&6; } |
---|
| 3583 | fi |
---|
| 3584 | |
---|
| 3585 | |
---|
| 3586 | test -n "$ac_ct_CXX" && break |
---|
| 3587 | done |
---|
| 3588 | |
---|
| 3589 | if test "x$ac_ct_CXX" = x; then |
---|
| 3590 | CXX="g++" |
---|
| 3591 | else |
---|
| 3592 | case $cross_compiling:$ac_tool_warned in |
---|
| 3593 | yes:) |
---|
| 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 3596 | ac_tool_warned=yes ;; |
---|
| 3597 | esac |
---|
| 3598 | CXX=$ac_ct_CXX |
---|
| 3599 | fi |
---|
| 3600 | fi |
---|
| 3601 | |
---|
| 3602 | fi |
---|
| 3603 | fi |
---|
| 3604 | # Provide some information about the compiler. |
---|
| 3605 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 3606 | set X $ac_compile |
---|
| 3607 | ac_compiler=$2 |
---|
| 3608 | for ac_option in --version -v -V -qversion; do |
---|
| 3609 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 3610 | case "(($ac_try" in |
---|
| 3611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3612 | *) ac_try_echo=$ac_try;; |
---|
| 3613 | esac |
---|
| 3614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3615 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3616 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 3617 | ac_status=$? |
---|
| 3618 | if test -s conftest.err; then |
---|
| 3619 | sed '10a\ |
---|
| 3620 | ... rest of stderr output deleted ... |
---|
| 3621 | 10q' conftest.err >conftest.er1 |
---|
| 3622 | cat conftest.er1 >&5 |
---|
| 3623 | fi |
---|
| 3624 | rm -f conftest.er1 conftest.err |
---|
| 3625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3626 | test $ac_status = 0; } |
---|
| 3627 | done |
---|
| 3628 | |
---|
| 3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 3630 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 3631 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 3632 | $as_echo_n "(cached) " >&6 |
---|
| 3633 | else |
---|
| 3634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3635 | /* end confdefs.h. */ |
---|
| 3636 | |
---|
| 3637 | int |
---|
| 3638 | main () |
---|
| 3639 | { |
---|
| 3640 | #ifndef __GNUC__ |
---|
| 3641 | choke me |
---|
| 3642 | #endif |
---|
| 3643 | |
---|
| 3644 | ; |
---|
| 3645 | return 0; |
---|
| 3646 | } |
---|
| 3647 | _ACEOF |
---|
| 3648 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 3649 | ac_compiler_gnu=yes |
---|
| 3650 | else |
---|
| 3651 | ac_compiler_gnu=no |
---|
| 3652 | fi |
---|
| 3653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3654 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 3655 | |
---|
| 3656 | fi |
---|
| 3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 3658 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 3659 | if test $ac_compiler_gnu = yes; then |
---|
| 3660 | GXX=yes |
---|
| 3661 | else |
---|
| 3662 | GXX= |
---|
| 3663 | fi |
---|
| 3664 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 3665 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 3667 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 3668 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 3669 | $as_echo_n "(cached) " >&6 |
---|
| 3670 | else |
---|
| 3671 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 3672 | ac_cxx_werror_flag=yes |
---|
| 3673 | ac_cv_prog_cxx_g=no |
---|
| 3674 | CXXFLAGS="-g" |
---|
| 3675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3676 | /* end confdefs.h. */ |
---|
| 3677 | |
---|
| 3678 | int |
---|
| 3679 | main () |
---|
| 3680 | { |
---|
| 3681 | |
---|
| 3682 | ; |
---|
| 3683 | return 0; |
---|
| 3684 | } |
---|
| 3685 | _ACEOF |
---|
| 3686 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 3687 | ac_cv_prog_cxx_g=yes |
---|
| 3688 | else |
---|
| 3689 | CXXFLAGS="" |
---|
| 3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3691 | /* end confdefs.h. */ |
---|
| 3692 | |
---|
| 3693 | int |
---|
| 3694 | main () |
---|
| 3695 | { |
---|
| 3696 | |
---|
| 3697 | ; |
---|
| 3698 | return 0; |
---|
| 3699 | } |
---|
| 3700 | _ACEOF |
---|
| 3701 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 3702 | |
---|
| 3703 | else |
---|
| 3704 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 3705 | CXXFLAGS="-g" |
---|
| 3706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3707 | /* end confdefs.h. */ |
---|
| 3708 | |
---|
| 3709 | int |
---|
| 3710 | main () |
---|
| 3711 | { |
---|
| 3712 | |
---|
| 3713 | ; |
---|
| 3714 | return 0; |
---|
| 3715 | } |
---|
| 3716 | _ACEOF |
---|
| 3717 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 3718 | ac_cv_prog_cxx_g=yes |
---|
| 3719 | fi |
---|
| 3720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3721 | fi |
---|
| 3722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3723 | fi |
---|
| 3724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3725 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 3726 | fi |
---|
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 3728 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
| 3729 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 3730 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 3731 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 3732 | if test "$GXX" = yes; then |
---|
| 3733 | CXXFLAGS="-g -O2" |
---|
| 3734 | else |
---|
| 3735 | CXXFLAGS="-g" |
---|
| 3736 | fi |
---|
| 3737 | else |
---|
| 3738 | if test "$GXX" = yes; then |
---|
| 3739 | CXXFLAGS="-O2" |
---|
| 3740 | else |
---|
| 3741 | CXXFLAGS= |
---|
| 3742 | fi |
---|
| 3743 | fi |
---|
| 3744 | ac_ext=c |
---|
| 3745 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3749 | |
---|
| 3750 | ac_ext=cpp |
---|
| 3751 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3752 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3753 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3754 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
| 3756 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
| 3757 | if test -z "$CXXCPP"; then |
---|
| 3758 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
| 3759 | $as_echo_n "(cached) " >&6 |
---|
| 3760 | else |
---|
| 3761 | # Double quotes because CXXCPP needs to be expanded |
---|
| 3762 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
| 3763 | do |
---|
| 3764 | ac_preproc_ok=false |
---|
| 3765 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 3766 | do |
---|
| 3767 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3768 | # with a fresh cross-compiler works. |
---|
| 3769 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3770 | # <limits.h> exists even on freestanding compilers. |
---|
| 3771 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3772 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3774 | /* end confdefs.h. */ |
---|
| 3775 | #ifdef __STDC__ |
---|
| 3776 | # include <limits.h> |
---|
| 3777 | #else |
---|
| 3778 | # include <assert.h> |
---|
| 3779 | #endif |
---|
| 3780 | Syntax error |
---|
| 3781 | _ACEOF |
---|
| 3782 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 3783 | |
---|
| 3784 | else |
---|
| 3785 | # Broken: fails on valid input. |
---|
| 3786 | continue |
---|
| 3787 | fi |
---|
| 3788 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3789 | |
---|
| 3790 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3791 | # can be detected and how. |
---|
| 3792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3793 | /* end confdefs.h. */ |
---|
| 3794 | #include <ac_nonexistent.h> |
---|
| 3795 | _ACEOF |
---|
| 3796 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 3797 | # Broken: success on invalid input. |
---|
| 3798 | continue |
---|
| 3799 | else |
---|
| 3800 | # Passes both tests. |
---|
| 3801 | ac_preproc_ok=: |
---|
| 3802 | break |
---|
| 3803 | fi |
---|
| 3804 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3805 | |
---|
| 3806 | done |
---|
| 3807 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3808 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3809 | if $ac_preproc_ok; then : |
---|
| 3810 | break |
---|
| 3811 | fi |
---|
| 3812 | |
---|
| 3813 | done |
---|
| 3814 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 3815 | |
---|
| 3816 | fi |
---|
| 3817 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
| 3818 | else |
---|
| 3819 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 3820 | fi |
---|
| 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
| 3822 | $as_echo "$CXXCPP" >&6; } |
---|
| 3823 | ac_preproc_ok=false |
---|
| 3824 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 3825 | do |
---|
| 3826 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3827 | # with a fresh cross-compiler works. |
---|
| 3828 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3829 | # <limits.h> exists even on freestanding compilers. |
---|
| 3830 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3831 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3833 | /* end confdefs.h. */ |
---|
| 3834 | #ifdef __STDC__ |
---|
| 3835 | # include <limits.h> |
---|
| 3836 | #else |
---|
| 3837 | # include <assert.h> |
---|
| 3838 | #endif |
---|
| 3839 | Syntax error |
---|
| 3840 | _ACEOF |
---|
| 3841 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 3842 | |
---|
| 3843 | else |
---|
| 3844 | # Broken: fails on valid input. |
---|
| 3845 | continue |
---|
| 3846 | fi |
---|
| 3847 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3848 | |
---|
| 3849 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3850 | # can be detected and how. |
---|
| 3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3852 | /* end confdefs.h. */ |
---|
| 3853 | #include <ac_nonexistent.h> |
---|
| 3854 | _ACEOF |
---|
| 3855 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 3856 | # Broken: success on invalid input. |
---|
| 3857 | continue |
---|
| 3858 | else |
---|
| 3859 | # Passes both tests. |
---|
| 3860 | ac_preproc_ok=: |
---|
| 3861 | break |
---|
| 3862 | fi |
---|
| 3863 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3864 | |
---|
| 3865 | done |
---|
| 3866 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3867 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3868 | if $ac_preproc_ok; then : |
---|
| 3869 | |
---|
| 3870 | else |
---|
| 3871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3873 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
| 3874 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3875 | fi |
---|
| 3876 | |
---|
| 3877 | ac_ext=c |
---|
| 3878 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3882 | |
---|
| 3883 | ac_ext=cpp |
---|
| 3884 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3885 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3886 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3887 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 3888 | if test -z "$CXX"; then |
---|
| 3889 | if test -n "$CCC"; then |
---|
| 3890 | CXX=$CCC |
---|
| 3891 | else |
---|
| 3892 | if test -n "$ac_tool_prefix"; then |
---|
| 3893 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 3894 | do |
---|
| 3895 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3896 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3898 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3899 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 3900 | $as_echo_n "(cached) " >&6 |
---|
| 3901 | else |
---|
| 3902 | if test -n "$CXX"; then |
---|
| 3903 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 3904 | else |
---|
| 3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3906 | for as_dir in $PATH |
---|
| 3907 | do |
---|
| 3908 | IFS=$as_save_IFS |
---|
| 3909 | test -z "$as_dir" && as_dir=. |
---|
| 3910 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3912 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3914 | break 2 |
---|
| 3915 | fi |
---|
| 3916 | done |
---|
| 3917 | done |
---|
| 3918 | IFS=$as_save_IFS |
---|
| 3919 | |
---|
| 3920 | fi |
---|
| 3921 | fi |
---|
| 3922 | CXX=$ac_cv_prog_CXX |
---|
| 3923 | if test -n "$CXX"; then |
---|
| 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 3925 | $as_echo "$CXX" >&6; } |
---|
| 3926 | else |
---|
| 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3928 | $as_echo "no" >&6; } |
---|
| 3929 | fi |
---|
| 3930 | |
---|
| 3931 | |
---|
| 3932 | test -n "$CXX" && break |
---|
| 3933 | done |
---|
| 3934 | fi |
---|
| 3935 | if test -z "$CXX"; then |
---|
| 3936 | ac_ct_CXX=$CXX |
---|
| 3937 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 3938 | do |
---|
| 3939 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3940 | set dummy $ac_prog; ac_word=$2 |
---|
| 3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3942 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3943 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 3944 | $as_echo_n "(cached) " >&6 |
---|
| 3945 | else |
---|
| 3946 | if test -n "$ac_ct_CXX"; then |
---|
| 3947 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 3948 | else |
---|
| 3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3950 | for as_dir in $PATH |
---|
| 3951 | do |
---|
| 3952 | IFS=$as_save_IFS |
---|
| 3953 | test -z "$as_dir" && as_dir=. |
---|
| 3954 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3956 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 3957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3958 | break 2 |
---|
| 3959 | fi |
---|
| 3960 | done |
---|
| 3961 | done |
---|
| 3962 | IFS=$as_save_IFS |
---|
| 3963 | |
---|
| 3964 | fi |
---|
| 3965 | fi |
---|
| 3966 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 3967 | if test -n "$ac_ct_CXX"; then |
---|
| 3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 3969 | $as_echo "$ac_ct_CXX" >&6; } |
---|
| 3970 | else |
---|
| 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3972 | $as_echo "no" >&6; } |
---|
| 3973 | fi |
---|
| 3974 | |
---|
| 3975 | |
---|
| 3976 | test -n "$ac_ct_CXX" && break |
---|
| 3977 | done |
---|
| 3978 | |
---|
| 3979 | if test "x$ac_ct_CXX" = x; then |
---|
| 3980 | CXX="g++" |
---|
| 3981 | else |
---|
| 3982 | case $cross_compiling:$ac_tool_warned in |
---|
| 3983 | yes:) |
---|
| 3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 3986 | ac_tool_warned=yes ;; |
---|
| 3987 | esac |
---|
| 3988 | CXX=$ac_ct_CXX |
---|
| 3989 | fi |
---|
| 3990 | fi |
---|
| 3991 | |
---|
| 3992 | fi |
---|
| 3993 | fi |
---|
| 3994 | # Provide some information about the compiler. |
---|
| 3995 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 3996 | set X $ac_compile |
---|
| 3997 | ac_compiler=$2 |
---|
| 3998 | for ac_option in --version -v -V -qversion; do |
---|
| 3999 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 4000 | case "(($ac_try" in |
---|
| 4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4002 | *) ac_try_echo=$ac_try;; |
---|
| 4003 | esac |
---|
| 4004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 4005 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 4006 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 4007 | ac_status=$? |
---|
| 4008 | if test -s conftest.err; then |
---|
| 4009 | sed '10a\ |
---|
| 4010 | ... rest of stderr output deleted ... |
---|
| 4011 | 10q' conftest.err >conftest.er1 |
---|
| 4012 | cat conftest.er1 >&5 |
---|
| 4013 | fi |
---|
| 4014 | rm -f conftest.er1 conftest.err |
---|
| 4015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 4016 | test $ac_status = 0; } |
---|
| 4017 | done |
---|
| 4018 | |
---|
| 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 4020 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 4021 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 4022 | $as_echo_n "(cached) " >&6 |
---|
| 4023 | else |
---|
| 4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4025 | /* end confdefs.h. */ |
---|
| 4026 | |
---|
| 4027 | int |
---|
| 4028 | main () |
---|
| 4029 | { |
---|
| 4030 | #ifndef __GNUC__ |
---|
| 4031 | choke me |
---|
| 4032 | #endif |
---|
| 4033 | |
---|
| 4034 | ; |
---|
| 4035 | return 0; |
---|
| 4036 | } |
---|
| 4037 | _ACEOF |
---|
| 4038 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4039 | ac_compiler_gnu=yes |
---|
| 4040 | else |
---|
| 4041 | ac_compiler_gnu=no |
---|
| 4042 | fi |
---|
| 4043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4044 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 4045 | |
---|
| 4046 | fi |
---|
| 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 4048 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 4049 | if test $ac_compiler_gnu = yes; then |
---|
| 4050 | GXX=yes |
---|
| 4051 | else |
---|
| 4052 | GXX= |
---|
| 4053 | fi |
---|
| 4054 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 4055 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 4057 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 4058 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 4059 | $as_echo_n "(cached) " >&6 |
---|
| 4060 | else |
---|
| 4061 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 4062 | ac_cxx_werror_flag=yes |
---|
| 4063 | ac_cv_prog_cxx_g=no |
---|
| 4064 | CXXFLAGS="-g" |
---|
| 4065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4066 | /* end confdefs.h. */ |
---|
| 4067 | |
---|
| 4068 | int |
---|
| 4069 | main () |
---|
| 4070 | { |
---|
| 4071 | |
---|
| 4072 | ; |
---|
| 4073 | return 0; |
---|
| 4074 | } |
---|
| 4075 | _ACEOF |
---|
| 4076 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4077 | ac_cv_prog_cxx_g=yes |
---|
| 4078 | else |
---|
| 4079 | CXXFLAGS="" |
---|
| 4080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4081 | /* end confdefs.h. */ |
---|
| 4082 | |
---|
| 4083 | int |
---|
| 4084 | main () |
---|
| 4085 | { |
---|
| 4086 | |
---|
| 4087 | ; |
---|
| 4088 | return 0; |
---|
| 4089 | } |
---|
| 4090 | _ACEOF |
---|
| 4091 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4092 | |
---|
| 4093 | else |
---|
| 4094 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 4095 | CXXFLAGS="-g" |
---|
| 4096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4097 | /* end confdefs.h. */ |
---|
| 4098 | |
---|
| 4099 | int |
---|
| 4100 | main () |
---|
| 4101 | { |
---|
| 4102 | |
---|
| 4103 | ; |
---|
| 4104 | return 0; |
---|
| 4105 | } |
---|
| 4106 | _ACEOF |
---|
| 4107 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4108 | ac_cv_prog_cxx_g=yes |
---|
| 4109 | fi |
---|
| 4110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4111 | fi |
---|
| 4112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4113 | fi |
---|
| 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4115 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 4116 | fi |
---|
| 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 4118 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
| 4119 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 4120 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 4121 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 4122 | if test "$GXX" = yes; then |
---|
| 4123 | CXXFLAGS="-g -O2" |
---|
| 4124 | else |
---|
| 4125 | CXXFLAGS="-g" |
---|
| 4126 | fi |
---|
| 4127 | else |
---|
| 4128 | if test "$GXX" = yes; then |
---|
| 4129 | CXXFLAGS="-O2" |
---|
| 4130 | else |
---|
| 4131 | CXXFLAGS= |
---|
| 4132 | fi |
---|
| 4133 | fi |
---|
| 4134 | ac_ext=c |
---|
| 4135 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4139 | |
---|
| 4140 | ac_ext=cpp |
---|
| 4141 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 4142 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4143 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4144 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 4145 | |
---|
| 4146 | |
---|
| 4147 | |
---|
| 4148 | |
---|
| 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
| 4150 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
| 4151 | if ${ac_cv_path_GREP+:} false; then : |
---|
| 4152 | $as_echo_n "(cached) " >&6 |
---|
| 4153 | else |
---|
| 4154 | if test -z "$GREP"; then |
---|
| 4155 | ac_path_GREP_found=false |
---|
| 4156 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4158 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4159 | do |
---|
| 4160 | IFS=$as_save_IFS |
---|
| 4161 | test -z "$as_dir" && as_dir=. |
---|
| 4162 | for ac_prog in grep ggrep; do |
---|
| 4163 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4164 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4165 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
| 4166 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 4167 | # Check for GNU $ac_path_GREP |
---|
| 4168 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 4169 | *GNU*) |
---|
| 4170 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 4171 | *) |
---|
| 4172 | ac_count=0 |
---|
| 4173 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 4174 | while : |
---|
| 4175 | do |
---|
| 4176 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4177 | mv "conftest.tmp" "conftest.in" |
---|
| 4178 | cp "conftest.in" "conftest.nl" |
---|
| 4179 | $as_echo 'GREP' >> "conftest.nl" |
---|
| 4180 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4181 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4182 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
| 4183 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 4184 | # Best one so far, save it but keep looking for a better one |
---|
| 4185 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 4186 | ac_path_GREP_max=$ac_count |
---|
| 4187 | fi |
---|
| 4188 | # 10*(2^10) chars as input seems more than enough |
---|
| 4189 | test $ac_count -gt 10 && break |
---|
| 4190 | done |
---|
| 4191 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4192 | esac |
---|
| 4193 | |
---|
| 4194 | $ac_path_GREP_found && break 3 |
---|
| 4195 | done |
---|
| 4196 | done |
---|
| 4197 | done |
---|
| 4198 | IFS=$as_save_IFS |
---|
| 4199 | if test -z "$ac_cv_path_GREP"; then |
---|
| 4200 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 4201 | fi |
---|
| 4202 | else |
---|
| 4203 | ac_cv_path_GREP=$GREP |
---|
| 4204 | fi |
---|
| 4205 | |
---|
| 4206 | fi |
---|
| 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
| 4208 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
| 4209 | GREP="$ac_cv_path_GREP" |
---|
| 4210 | |
---|
| 4211 | |
---|
| 4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
| 4213 | $as_echo_n "checking for egrep... " >&6; } |
---|
| 4214 | if ${ac_cv_path_EGREP+:} false; then : |
---|
| 4215 | $as_echo_n "(cached) " >&6 |
---|
| 4216 | else |
---|
| 4217 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 4218 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 4219 | else |
---|
| 4220 | if test -z "$EGREP"; then |
---|
| 4221 | ac_path_EGREP_found=false |
---|
| 4222 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4224 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4225 | do |
---|
| 4226 | IFS=$as_save_IFS |
---|
| 4227 | test -z "$as_dir" && as_dir=. |
---|
| 4228 | for ac_prog in egrep; do |
---|
| 4229 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4230 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4231 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
| 4232 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 4233 | # Check for GNU $ac_path_EGREP |
---|
| 4234 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 4235 | *GNU*) |
---|
| 4236 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 4237 | *) |
---|
| 4238 | ac_count=0 |
---|
| 4239 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 4240 | while : |
---|
| 4241 | do |
---|
| 4242 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4243 | mv "conftest.tmp" "conftest.in" |
---|
| 4244 | cp "conftest.in" "conftest.nl" |
---|
| 4245 | $as_echo 'EGREP' >> "conftest.nl" |
---|
| 4246 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4247 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4248 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
| 4249 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 4250 | # Best one so far, save it but keep looking for a better one |
---|
| 4251 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 4252 | ac_path_EGREP_max=$ac_count |
---|
| 4253 | fi |
---|
| 4254 | # 10*(2^10) chars as input seems more than enough |
---|
| 4255 | test $ac_count -gt 10 && break |
---|
| 4256 | done |
---|
| 4257 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4258 | esac |
---|
| 4259 | |
---|
| 4260 | $ac_path_EGREP_found && break 3 |
---|
| 4261 | done |
---|
| 4262 | done |
---|
| 4263 | done |
---|
| 4264 | IFS=$as_save_IFS |
---|
| 4265 | if test -z "$ac_cv_path_EGREP"; then |
---|
| 4266 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 4267 | fi |
---|
| 4268 | else |
---|
| 4269 | ac_cv_path_EGREP=$EGREP |
---|
| 4270 | fi |
---|
| 4271 | |
---|
| 4272 | fi |
---|
| 4273 | fi |
---|
| 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
| 4275 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
| 4276 | EGREP="$ac_cv_path_EGREP" |
---|
| 4277 | |
---|
| 4278 | |
---|
| 4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
| 4280 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
| 4281 | if ${ac_cv_header_stdc+:} false; then : |
---|
| 4282 | $as_echo_n "(cached) " >&6 |
---|
| 4283 | else |
---|
| 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4285 | /* end confdefs.h. */ |
---|
| 4286 | #include <stdlib.h> |
---|
| 4287 | #include <stdarg.h> |
---|
| 4288 | #include <string.h> |
---|
| 4289 | #include <float.h> |
---|
| 4290 | |
---|
| 4291 | int |
---|
| 4292 | main () |
---|
| 4293 | { |
---|
| 4294 | |
---|
| 4295 | ; |
---|
| 4296 | return 0; |
---|
| 4297 | } |
---|
| 4298 | _ACEOF |
---|
| 4299 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4300 | ac_cv_header_stdc=yes |
---|
| 4301 | else |
---|
| 4302 | ac_cv_header_stdc=no |
---|
| 4303 | fi |
---|
| 4304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4305 | |
---|
| 4306 | if test $ac_cv_header_stdc = yes; then |
---|
| 4307 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4309 | /* end confdefs.h. */ |
---|
| 4310 | #include <string.h> |
---|
| 4311 | |
---|
| 4312 | _ACEOF |
---|
| 4313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4314 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
| 4315 | |
---|
| 4316 | else |
---|
| 4317 | ac_cv_header_stdc=no |
---|
| 4318 | fi |
---|
| 4319 | rm -f conftest* |
---|
| 4320 | |
---|
| 4321 | fi |
---|
| 4322 | |
---|
| 4323 | if test $ac_cv_header_stdc = yes; then |
---|
| 4324 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4326 | /* end confdefs.h. */ |
---|
| 4327 | #include <stdlib.h> |
---|
| 4328 | |
---|
| 4329 | _ACEOF |
---|
| 4330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4331 | $EGREP "free" >/dev/null 2>&1; then : |
---|
| 4332 | |
---|
| 4333 | else |
---|
| 4334 | ac_cv_header_stdc=no |
---|
| 4335 | fi |
---|
| 4336 | rm -f conftest* |
---|
| 4337 | |
---|
| 4338 | fi |
---|
| 4339 | |
---|
| 4340 | if test $ac_cv_header_stdc = yes; then |
---|
| 4341 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 4342 | if test "$cross_compiling" = yes; then : |
---|
| 4343 | : |
---|
| 4344 | else |
---|
| 4345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4346 | /* end confdefs.h. */ |
---|
| 4347 | #include <ctype.h> |
---|
| 4348 | #include <stdlib.h> |
---|
| 4349 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4350 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4351 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4352 | #else |
---|
| 4353 | # define ISLOWER(c) \ |
---|
| 4354 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4355 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4356 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 4357 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4358 | #endif |
---|
| 4359 | |
---|
| 4360 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4361 | int |
---|
| 4362 | main () |
---|
| 4363 | { |
---|
| 4364 | int i; |
---|
| 4365 | for (i = 0; i < 256; i++) |
---|
| 4366 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 4367 | || toupper (i) != TOUPPER (i)) |
---|
| 4368 | return 2; |
---|
| 4369 | return 0; |
---|
| 4370 | } |
---|
| 4371 | _ACEOF |
---|
| 4372 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
| 4373 | |
---|
| 4374 | else |
---|
| 4375 | ac_cv_header_stdc=no |
---|
| 4376 | fi |
---|
| 4377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4378 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4379 | fi |
---|
| 4380 | |
---|
| 4381 | fi |
---|
| 4382 | fi |
---|
| 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
| 4384 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
| 4385 | if test $ac_cv_header_stdc = yes; then |
---|
| 4386 | |
---|
| 4387 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
| 4388 | |
---|
| 4389 | fi |
---|
| 4390 | |
---|
| 4391 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 4392 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4393 | inttypes.h stdint.h unistd.h |
---|
| 4394 | do : |
---|
| 4395 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4396 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
| 4397 | " |
---|
| 4398 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 4399 | cat >>confdefs.h <<_ACEOF |
---|
| 4400 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4401 | _ACEOF |
---|
| 4402 | |
---|
| 4403 | fi |
---|
| 4404 | |
---|
| 4405 | done |
---|
| 4406 | |
---|
| 4407 | |
---|
| 4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
| 4409 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
| 4410 | if ${ac_cv_c_bigendian+:} false; then : |
---|
| 4411 | $as_echo_n "(cached) " >&6 |
---|
| 4412 | else |
---|
| 4413 | ac_cv_c_bigendian=unknown |
---|
| 4414 | # See if we're dealing with a universal compiler. |
---|
| 4415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4416 | /* end confdefs.h. */ |
---|
| 4417 | #ifndef __APPLE_CC__ |
---|
| 4418 | not a universal capable compiler |
---|
| 4419 | #endif |
---|
| 4420 | typedef int dummy; |
---|
| 4421 | |
---|
| 4422 | _ACEOF |
---|
| 4423 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4424 | |
---|
| 4425 | # Check for potential -arch flags. It is not universal unless |
---|
| 4426 | # there are at least two -arch flags with different values. |
---|
| 4427 | ac_arch= |
---|
| 4428 | ac_prev= |
---|
| 4429 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
| 4430 | if test -n "$ac_prev"; then |
---|
| 4431 | case $ac_word in |
---|
| 4432 | i?86 | x86_64 | ppc | ppc64) |
---|
| 4433 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
| 4434 | ac_arch=$ac_word |
---|
| 4435 | else |
---|
| 4436 | ac_cv_c_bigendian=universal |
---|
| 4437 | break |
---|
| 4438 | fi |
---|
| 4439 | ;; |
---|
| 4440 | esac |
---|
| 4441 | ac_prev= |
---|
| 4442 | elif test "x$ac_word" = "x-arch"; then |
---|
| 4443 | ac_prev=arch |
---|
| 4444 | fi |
---|
| 4445 | done |
---|
| 4446 | fi |
---|
| 4447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4448 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 4449 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4451 | /* end confdefs.h. */ |
---|
| 4452 | #include <sys/types.h> |
---|
| 4453 | #include <sys/param.h> |
---|
| 4454 | |
---|
| 4455 | int |
---|
| 4456 | main () |
---|
| 4457 | { |
---|
| 4458 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
| 4459 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
| 4460 | && LITTLE_ENDIAN) |
---|
| 4461 | bogus endian macros |
---|
| 4462 | #endif |
---|
| 4463 | |
---|
| 4464 | ; |
---|
| 4465 | return 0; |
---|
| 4466 | } |
---|
| 4467 | _ACEOF |
---|
| 4468 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4469 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 4470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4471 | /* end confdefs.h. */ |
---|
| 4472 | #include <sys/types.h> |
---|
| 4473 | #include <sys/param.h> |
---|
| 4474 | |
---|
| 4475 | int |
---|
| 4476 | main () |
---|
| 4477 | { |
---|
| 4478 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 4479 | not big endian |
---|
| 4480 | #endif |
---|
| 4481 | |
---|
| 4482 | ; |
---|
| 4483 | return 0; |
---|
| 4484 | } |
---|
| 4485 | _ACEOF |
---|
| 4486 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4487 | ac_cv_c_bigendian=yes |
---|
| 4488 | else |
---|
| 4489 | ac_cv_c_bigendian=no |
---|
| 4490 | fi |
---|
| 4491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4492 | fi |
---|
| 4493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4494 | fi |
---|
| 4495 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 4496 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
| 4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4498 | /* end confdefs.h. */ |
---|
| 4499 | #include <limits.h> |
---|
| 4500 | |
---|
| 4501 | int |
---|
| 4502 | main () |
---|
| 4503 | { |
---|
| 4504 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
| 4505 | bogus endian macros |
---|
| 4506 | #endif |
---|
| 4507 | |
---|
| 4508 | ; |
---|
| 4509 | return 0; |
---|
| 4510 | } |
---|
| 4511 | _ACEOF |
---|
| 4512 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4513 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
| 4514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4515 | /* end confdefs.h. */ |
---|
| 4516 | #include <limits.h> |
---|
| 4517 | |
---|
| 4518 | int |
---|
| 4519 | main () |
---|
| 4520 | { |
---|
| 4521 | #ifndef _BIG_ENDIAN |
---|
| 4522 | not big endian |
---|
| 4523 | #endif |
---|
| 4524 | |
---|
| 4525 | ; |
---|
| 4526 | return 0; |
---|
| 4527 | } |
---|
| 4528 | _ACEOF |
---|
| 4529 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4530 | ac_cv_c_bigendian=yes |
---|
| 4531 | else |
---|
| 4532 | ac_cv_c_bigendian=no |
---|
| 4533 | fi |
---|
| 4534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4535 | fi |
---|
| 4536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4537 | fi |
---|
| 4538 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 4539 | # Compile a test program. |
---|
| 4540 | if test "$cross_compiling" = yes; then : |
---|
| 4541 | # Try to guess by grepping values from an object file. |
---|
| 4542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4543 | /* end confdefs.h. */ |
---|
| 4544 | short int ascii_mm[] = |
---|
| 4545 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
| 4546 | short int ascii_ii[] = |
---|
| 4547 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
| 4548 | int use_ascii (int i) { |
---|
| 4549 | return ascii_mm[i] + ascii_ii[i]; |
---|
| 4550 | } |
---|
| 4551 | short int ebcdic_ii[] = |
---|
| 4552 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
| 4553 | short int ebcdic_mm[] = |
---|
| 4554 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
| 4555 | int use_ebcdic (int i) { |
---|
| 4556 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
| 4557 | } |
---|
| 4558 | extern int foo; |
---|
| 4559 | |
---|
| 4560 | int |
---|
| 4561 | main () |
---|
| 4562 | { |
---|
| 4563 | return use_ascii (foo) == use_ebcdic (foo); |
---|
| 4564 | ; |
---|
| 4565 | return 0; |
---|
| 4566 | } |
---|
| 4567 | _ACEOF |
---|
| 4568 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 4569 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
| 4570 | ac_cv_c_bigendian=yes |
---|
| 4571 | fi |
---|
| 4572 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
| 4573 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
| 4574 | ac_cv_c_bigendian=no |
---|
| 4575 | else |
---|
| 4576 | # finding both strings is unlikely to happen, but who knows? |
---|
| 4577 | ac_cv_c_bigendian=unknown |
---|
| 4578 | fi |
---|
| 4579 | fi |
---|
| 4580 | fi |
---|
| 4581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4582 | else |
---|
| 4583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4584 | /* end confdefs.h. */ |
---|
| 4585 | $ac_includes_default |
---|
| 4586 | int |
---|
| 4587 | main () |
---|
| 4588 | { |
---|
| 4589 | |
---|
| 4590 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 4591 | union |
---|
| 4592 | { |
---|
| 4593 | long int l; |
---|
| 4594 | char c[sizeof (long int)]; |
---|
| 4595 | } u; |
---|
| 4596 | u.l = 1; |
---|
| 4597 | return u.c[sizeof (long int) - 1] == 1; |
---|
| 4598 | |
---|
| 4599 | ; |
---|
| 4600 | return 0; |
---|
| 4601 | } |
---|
| 4602 | _ACEOF |
---|
| 4603 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
| 4604 | ac_cv_c_bigendian=no |
---|
| 4605 | else |
---|
| 4606 | ac_cv_c_bigendian=yes |
---|
| 4607 | fi |
---|
| 4608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4609 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 4610 | fi |
---|
| 4611 | |
---|
| 4612 | fi |
---|
| 4613 | fi |
---|
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
| 4615 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
| 4616 | case $ac_cv_c_bigendian in #( |
---|
| 4617 | yes) |
---|
| 4618 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
| 4619 | ;; #( |
---|
| 4620 | no) |
---|
| 4621 | ;; #( |
---|
| 4622 | universal) |
---|
| 4623 | |
---|
| 4624 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
| 4625 | |
---|
| 4626 | ;; #( |
---|
| 4627 | *) |
---|
| 4628 | as_fn_error $? "unknown endianness |
---|
| 4629 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
| 4630 | esac |
---|
| 4631 | |
---|
| 4632 | |
---|
| 4633 | # Save the values as shell variables so that we can substitute them |
---|
| 4634 | # into bltHash.h for situtations where there's no bltInt.h. |
---|
| 4635 | |
---|
| 4636 | |
---|
| 4637 | LD_RPATH=""; |
---|
| 4638 | |
---|
| 4639 | # |
---|
| 4640 | # Need to check for the following dependencies: |
---|
| 4641 | # Rappture headers and library (done) |
---|
| 4642 | # Tcl headers and library (done) |
---|
| 4643 | # GL headers and library |
---|
| 4644 | # GLuT headers and library |
---|
| 4645 | # GLEW header and library |
---|
| 4646 | # Cg headers and library |
---|
| 4647 | # CgGL headers and library |
---|
| 4648 | # pthread library |
---|
| 4649 | # ffmpeg headers and library (started) |
---|
| 4650 | # |
---|
| 4651 | |
---|
| 4652 | TCL_VERSION="8.4" |
---|
| 4653 | for dir in \ |
---|
| 4654 | ${exec_prefix} \ |
---|
| 4655 | ${exec_prefix}/lib \ |
---|
| 4656 | ${with_rappture} \ |
---|
| 4657 | ${with_rappture}/lib ; do |
---|
| 4658 | tclconfig="${dir}/tclConfig.sh" |
---|
| 4659 | if test -f "$tclconfig" ; then |
---|
| 4660 | . $tclconfig |
---|
| 4661 | break |
---|
| 4662 | fi |
---|
| 4663 | done |
---|
| 4664 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
| 4665 | |
---|
| 4666 | if test "x$with_tcllib" != "x" ; then |
---|
| 4667 | tclconfig="${with_tcllib}/tclConfig.sh" |
---|
| 4668 | if test -f "$tclconfig" ; then |
---|
| 4669 | . $tclconfig |
---|
| 4670 | fi |
---|
| 4671 | TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}" |
---|
| 4672 | fi |
---|
| 4673 | if test "x$with_tclinclude" != "x" ; then |
---|
| 4674 | TCL_INC_SPEC="-I${with_tclinclude}" |
---|
| 4675 | fi |
---|
| 4676 | |
---|
| 4677 | RP_DIR="" |
---|
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5 |
---|
| 4679 | $as_echo_n "checking for rappture... " >&6; } |
---|
| 4680 | if test "$with_rappture" == "yes" ; then |
---|
| 4681 | for dir in "$exec_prefix" "/usr" ; do |
---|
| 4682 | if test -r "$dir/include/rappture2/rappture2.h" -a \ |
---|
| 4683 | -r "$dir/lib/librappture.a"; then |
---|
| 4684 | RP_DIR="$dir" |
---|
| 4685 | RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2" |
---|
| 4686 | RP_LIB_DIR="$dir/lib" |
---|
| 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5 |
---|
| 4688 | $as_echo "$dir" >&6; } |
---|
| 4689 | break |
---|
| 4690 | fi |
---|
| 4691 | done |
---|
| 4692 | else |
---|
| 4693 | if test ! -d "$with_rappture" ; then |
---|
| 4694 | as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5 |
---|
| 4695 | fi |
---|
| 4696 | RP_DIR=$with_rappture |
---|
| 4697 | RP_INC_SPEC="-I$with_rappture/include -I$with_rappture/include/rappture2" |
---|
| 4698 | RP_LIB_DIR="$with_rappture/lib" |
---|
| 4699 | fi |
---|
| 4700 | if test "x${RP_DIR}" = "x" ; then |
---|
| 4701 | as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5 |
---|
| 4702 | else |
---|
| 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5 |
---|
| 4704 | $as_echo "$with_rappture" >&6; } |
---|
| 4705 | fi |
---|
| 4706 | |
---|
| 4707 | # We are assuming that we're using VTK 6.0 |
---|
[4158] | 4708 | VTK_VERSION=6.1 |
---|
[4060] | 4709 | VTK_LIB_DIR=${libdir} |
---|
| 4710 | VTK_INC_DIR=${incdir} |
---|
| 4711 | |
---|
| 4712 | if test "x$with_vtk_includes" != "x"; then |
---|
| 4713 | VTK_INC_DIR=$with_vtk_includes |
---|
| 4714 | fi |
---|
| 4715 | |
---|
| 4716 | if test "x$with_vtk_libs" != "x"; then |
---|
| 4717 | VTK_LIB_DIR=$with_vtk_libs |
---|
| 4718 | fi |
---|
| 4719 | |
---|
| 4720 | if test "x$with_vtk" != "x" ; then |
---|
| 4721 | VTK_VERSION=$with_vtk |
---|
| 4722 | fi |
---|
| 4723 | |
---|
| 4724 | if ! test -d "$VTK_INC_DIR/vtk-${VTK_VERSION}" ; then |
---|
| 4725 | as_fn_error $? "Couldn't find VTK includes" "$LINENO" 5 |
---|
| 4726 | else |
---|
| 4727 | VTK_INC_SPEC="-I${VTK_INC_DIR}/vtk-${VTK_VERSION}" |
---|
| 4728 | fi |
---|
| 4729 | |
---|
| 4730 | save_CPPFLAGS=$CPPFLAGS |
---|
| 4731 | CPPFLAGS=$VTK_INC_SPEC |
---|
| 4732 | for ac_header in vtkSmartPointer.h |
---|
| 4733 | do : |
---|
| 4734 | ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default" |
---|
| 4735 | if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then : |
---|
| 4736 | cat >>confdefs.h <<_ACEOF |
---|
| 4737 | #define HAVE_VTKSMARTPOINTER_H 1 |
---|
| 4738 | _ACEOF |
---|
| 4739 | |
---|
| 4740 | else |
---|
| 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5 |
---|
| 4742 | $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;} |
---|
| 4743 | fi |
---|
| 4744 | |
---|
| 4745 | done |
---|
| 4746 | |
---|
| 4747 | CPPFLAGS=$save_CPPFLAGS |
---|
| 4748 | |
---|
| 4749 | ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" |
---|
| 4750 | if test "x$ac_cv_header_GL_glut_h" = xyes; then : |
---|
| 4751 | |
---|
| 4752 | fi |
---|
| 4753 | |
---|
| 4754 | |
---|
| 4755 | ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" |
---|
| 4756 | if test "x$ac_cv_header_GL_glew_h" = xyes; then : |
---|
| 4757 | |
---|
| 4758 | fi |
---|
| 4759 | |
---|
| 4760 | |
---|
| 4761 | |
---|
| 4762 | for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h |
---|
| 4763 | do : |
---|
| 4764 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4765 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 4766 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 4767 | cat >>confdefs.h <<_ACEOF |
---|
| 4768 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4769 | _ACEOF |
---|
| 4770 | |
---|
| 4771 | fi |
---|
| 4772 | |
---|
| 4773 | done |
---|
| 4774 | |
---|
| 4775 | for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h |
---|
| 4776 | do : |
---|
| 4777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4778 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 4779 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 4780 | cat >>confdefs.h <<_ACEOF |
---|
| 4781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4782 | _ACEOF |
---|
| 4783 | |
---|
| 4784 | fi |
---|
| 4785 | |
---|
| 4786 | done |
---|
| 4787 | |
---|
| 4788 | |
---|
| 4789 | for ac_func in accept4 |
---|
| 4790 | do : |
---|
| 4791 | ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
---|
| 4792 | if test "x$ac_cv_func_accept4" = xyes; then : |
---|
| 4793 | cat >>confdefs.h <<_ACEOF |
---|
| 4794 | #define HAVE_ACCEPT4 1 |
---|
| 4795 | _ACEOF |
---|
| 4796 | |
---|
| 4797 | fi |
---|
| 4798 | done |
---|
| 4799 | |
---|
| 4800 | |
---|
| 4801 | #-------------------------------------------------------------------- |
---|
| 4802 | # search for ffmpeg executable |
---|
| 4803 | #-------------------------------------------------------------------- |
---|
| 4804 | if test "${with_ffmpeg}" != "no" ; then |
---|
| 4805 | if test "${with_ffmpeg}" = "yes" ; then |
---|
| 4806 | # Extract the first word of "ffmpeg", so it can be a program name with args. |
---|
| 4807 | set dummy ffmpeg; ac_word=$2 |
---|
| 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4809 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4810 | if ${ac_cv_path_FFMPEG+:} false; then : |
---|
| 4811 | $as_echo_n "(cached) " >&6 |
---|
| 4812 | else |
---|
| 4813 | case $FFMPEG in |
---|
| 4814 | [\\/]* | ?:[\\/]*) |
---|
| 4815 | ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. |
---|
| 4816 | ;; |
---|
| 4817 | *) |
---|
| 4818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4819 | for as_dir in $PATH |
---|
| 4820 | do |
---|
| 4821 | IFS=$as_save_IFS |
---|
| 4822 | test -z "$as_dir" && as_dir=. |
---|
| 4823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4825 | ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4827 | break 2 |
---|
| 4828 | fi |
---|
| 4829 | done |
---|
| 4830 | done |
---|
| 4831 | IFS=$as_save_IFS |
---|
| 4832 | |
---|
| 4833 | ;; |
---|
| 4834 | esac |
---|
| 4835 | fi |
---|
| 4836 | FFMPEG=$ac_cv_path_FFMPEG |
---|
| 4837 | if test -n "$FFMPEG"; then |
---|
| 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 |
---|
| 4839 | $as_echo "$FFMPEG" >&6; } |
---|
| 4840 | else |
---|
| 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4842 | $as_echo "no" >&6; } |
---|
| 4843 | fi |
---|
| 4844 | |
---|
| 4845 | |
---|
| 4846 | else |
---|
| 4847 | # Extract the first word of "ffmpeg", so it can be a program name with args. |
---|
| 4848 | set dummy ffmpeg; ac_word=$2 |
---|
| 4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4850 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4851 | if ${ac_cv_path_FFMPEG+:} false; then : |
---|
| 4852 | $as_echo_n "(cached) " >&6 |
---|
| 4853 | else |
---|
| 4854 | case $FFMPEG in |
---|
| 4855 | [\\/]* | ?:[\\/]*) |
---|
| 4856 | ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. |
---|
| 4857 | ;; |
---|
| 4858 | *) |
---|
| 4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4860 | as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}" |
---|
| 4861 | for as_dir in $as_dummy |
---|
| 4862 | do |
---|
| 4863 | IFS=$as_save_IFS |
---|
| 4864 | test -z "$as_dir" && as_dir=. |
---|
| 4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4867 | ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4869 | break 2 |
---|
| 4870 | fi |
---|
| 4871 | done |
---|
| 4872 | done |
---|
| 4873 | IFS=$as_save_IFS |
---|
| 4874 | |
---|
| 4875 | ;; |
---|
| 4876 | esac |
---|
| 4877 | fi |
---|
| 4878 | FFMPEG=$ac_cv_path_FFMPEG |
---|
| 4879 | if test -n "$FFMPEG"; then |
---|
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 |
---|
| 4881 | $as_echo "$FFMPEG" >&6; } |
---|
| 4882 | else |
---|
| 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4884 | $as_echo "no" >&6; } |
---|
| 4885 | fi |
---|
| 4886 | |
---|
| 4887 | |
---|
| 4888 | fi |
---|
| 4889 | if test "${FFMPEG}x" != "x" ; then |
---|
| 4890 | |
---|
| 4891 | $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h |
---|
| 4892 | |
---|
| 4893 | fi |
---|
| 4894 | fi |
---|
| 4895 | |
---|
| 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5 |
---|
| 4897 | $as_echo_n "checking for nVidia Cg installation... " >&6; } |
---|
| 4898 | CG_DIR="" |
---|
| 4899 | for dir in \ |
---|
| 4900 | /opt/nvidia-cg-toolkit \ |
---|
| 4901 | /usr/cg \ |
---|
| 4902 | /usr |
---|
| 4903 | do |
---|
| 4904 | if test -r "$dir/include" ; then |
---|
| 4905 | CG_DIR=$dir |
---|
| 4906 | break |
---|
| 4907 | fi |
---|
| 4908 | done |
---|
| 4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5 |
---|
| 4910 | $as_echo "${CG_DIR}" >&6; } |
---|
| 4911 | |
---|
| 4912 | CG_INC_SPEC="-I${CG_DIR}/include" |
---|
| 4913 | |
---|
| 4914 | save_CPPFLAGS=$CPPFLAGS |
---|
| 4915 | CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS" |
---|
| 4916 | for ac_header in Cg/cgGL.h |
---|
| 4917 | do : |
---|
| 4918 | ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default" |
---|
| 4919 | if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then : |
---|
| 4920 | cat >>confdefs.h <<_ACEOF |
---|
| 4921 | #define HAVE_CG_CGGL_H 1 |
---|
| 4922 | _ACEOF |
---|
| 4923 | |
---|
| 4924 | else |
---|
| 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5 |
---|
| 4926 | $as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;} |
---|
| 4927 | fi |
---|
| 4928 | |
---|
| 4929 | done |
---|
| 4930 | |
---|
| 4931 | CPPFLAGS=$save_CPPFLAGS |
---|
| 4932 | |
---|
| 4933 | CG_LIB_DIR="" |
---|
| 4934 | for dir in \ |
---|
| 4935 | /opt/nvidia-cg-toolkit \ |
---|
| 4936 | /usr/cg \ |
---|
| 4937 | /usr |
---|
| 4938 | do |
---|
| 4939 | if test -r "$dir/lib" ; then |
---|
| 4940 | CG_LIB_DIR=$dir/lib |
---|
| 4941 | break |
---|
| 4942 | fi |
---|
| 4943 | if test -r "$dir/lib64" ; then |
---|
| 4944 | CG_LIB_DIR=$dir/lib64 |
---|
| 4945 | break |
---|
| 4946 | fi |
---|
| 4947 | done |
---|
| 4948 | |
---|
| 4949 | if test "${CG_LIB_DIR}" = "/usr/lib" ; then |
---|
| 4950 | CG_INC_SPEC="" |
---|
| 4951 | CG_LIB_SPEC="-lCg -lCgGL" |
---|
| 4952 | else |
---|
| 4953 | CG_LIB_SPEC="-L${CG_LIB_DIR} -lCg -lCgGL" |
---|
| 4954 | LD_RPATH="$loader_run_path:${CG_LIB_DIR}" |
---|
| 4955 | fi |
---|
| 4956 | |
---|
| 4957 | |
---|
| 4958 | |
---|
| 4959 | |
---|
| 4960 | |
---|
| 4961 | |
---|
| 4962 | |
---|
| 4963 | |
---|
| 4964 | |
---|
| 4965 | |
---|
| 4966 | |
---|
| 4967 | |
---|
| 4968 | |
---|
| 4969 | |
---|
| 4970 | |
---|
| 4971 | |
---|
| 4972 | ac_config_files="$ac_config_files Doxyfile Makefile graphics/Makefile imgLoaders/Makefile newmat11/Makefile util/Makefile vrmath/Makefile" |
---|
| 4973 | |
---|
| 4974 | cat >confcache <<\_ACEOF |
---|
| 4975 | # This file is a shell script that caches the results of configure |
---|
| 4976 | # tests run on this system so they can be shared between configure |
---|
| 4977 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 4978 | # It is not useful on other systems. If it contains results you don't |
---|
| 4979 | # want to keep, you may remove or edit it. |
---|
| 4980 | # |
---|
| 4981 | # config.status only pays attention to the cache file if you give it |
---|
| 4982 | # the --recheck option to rerun configure. |
---|
| 4983 | # |
---|
| 4984 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 4985 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 4986 | # following values. |
---|
| 4987 | |
---|
| 4988 | _ACEOF |
---|
| 4989 | |
---|
| 4990 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4991 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 4992 | # So, we kill variables containing newlines. |
---|
| 4993 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4994 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 4995 | ( |
---|
| 4996 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 4997 | eval ac_val=\$$ac_var |
---|
| 4998 | case $ac_val in #( |
---|
| 4999 | *${as_nl}*) |
---|
| 5000 | case $ac_var in #( |
---|
| 5001 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 5002 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 5003 | esac |
---|
| 5004 | case $ac_var in #( |
---|
| 5005 | _ | IFS | as_nl) ;; #( |
---|
| 5006 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 5007 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 5008 | esac ;; |
---|
| 5009 | esac |
---|
| 5010 | done |
---|
| 5011 | |
---|
| 5012 | (set) 2>&1 | |
---|
| 5013 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 5014 | *${as_nl}ac_space=\ *) |
---|
| 5015 | # `set' does not quote correctly, so add quotes: double-quote |
---|
| 5016 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
| 5017 | sed -n \ |
---|
| 5018 | "s/'/'\\\\''/g; |
---|
| 5019 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5020 | ;; #( |
---|
| 5021 | *) |
---|
| 5022 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5023 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 5024 | ;; |
---|
| 5025 | esac | |
---|
| 5026 | sort |
---|
| 5027 | ) | |
---|
| 5028 | sed ' |
---|
| 5029 | /^ac_cv_env_/b end |
---|
| 5030 | t clear |
---|
| 5031 | :clear |
---|
| 5032 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 5033 | t end |
---|
| 5034 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5035 | :end' >>confcache |
---|
| 5036 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 5037 | if test -w "$cache_file"; then |
---|
| 5038 | if test "x$cache_file" != "x/dev/null"; then |
---|
| 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
| 5040 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 5041 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
| 5042 | cat confcache >"$cache_file" |
---|
| 5043 | else |
---|
| 5044 | case $cache_file in #( |
---|
| 5045 | */* | ?:*) |
---|
| 5046 | mv -f confcache "$cache_file"$$ && |
---|
| 5047 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
| 5048 | *) |
---|
| 5049 | mv -f confcache "$cache_file" ;; |
---|
| 5050 | esac |
---|
| 5051 | fi |
---|
| 5052 | fi |
---|
| 5053 | else |
---|
| 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
| 5055 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
| 5056 | fi |
---|
| 5057 | fi |
---|
| 5058 | rm -f confcache |
---|
| 5059 | |
---|
| 5060 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5061 | # Let make expand exec_prefix. |
---|
| 5062 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5063 | |
---|
| 5064 | DEFS=-DHAVE_CONFIG_H |
---|
| 5065 | |
---|
| 5066 | ac_libobjs= |
---|
| 5067 | ac_ltlibobjs= |
---|
| 5068 | U= |
---|
| 5069 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5070 | # 1. Remove the extension, and $U if already installed. |
---|
| 5071 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 5072 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
| 5073 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 5074 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 5075 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 5076 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
| 5077 | done |
---|
| 5078 | LIBOBJS=$ac_libobjs |
---|
| 5079 | |
---|
| 5080 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5081 | |
---|
| 5082 | |
---|
| 5083 | |
---|
| 5084 | |
---|
| 5085 | : "${CONFIG_STATUS=./config.status}" |
---|
| 5086 | ac_write_fail=0 |
---|
| 5087 | ac_clean_files_save=$ac_clean_files |
---|
| 5088 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
| 5090 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5091 | as_write_fail=0 |
---|
| 5092 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
| 5093 | #! $SHELL |
---|
| 5094 | # Generated by $as_me. |
---|
| 5095 | # Run this file to recreate the current configuration. |
---|
| 5096 | # Compiler output produced by configure, useful for debugging |
---|
| 5097 | # configure, is in config.log if it exists. |
---|
| 5098 | |
---|
| 5099 | debug=false |
---|
| 5100 | ac_cs_recheck=false |
---|
| 5101 | ac_cs_silent=false |
---|
| 5102 | |
---|
| 5103 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5104 | export SHELL |
---|
| 5105 | _ASEOF |
---|
| 5106 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
| 5107 | ## -------------------- ## |
---|
| 5108 | ## M4sh Initialization. ## |
---|
| 5109 | ## -------------------- ## |
---|
| 5110 | |
---|
| 5111 | # Be more Bourne compatible |
---|
| 5112 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 5113 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
| 5114 | emulate sh |
---|
| 5115 | NULLCMD=: |
---|
| 5116 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 5117 | # is contrary to our usage. Disable this feature. |
---|
| 5118 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5119 | setopt NO_GLOB_SUBST |
---|
| 5120 | else |
---|
| 5121 | case `(set -o) 2>/dev/null` in #( |
---|
| 5122 | *posix*) : |
---|
| 5123 | set -o posix ;; #( |
---|
| 5124 | *) : |
---|
| 5125 | ;; |
---|
| 5126 | esac |
---|
| 5127 | fi |
---|
| 5128 | |
---|
| 5129 | |
---|
| 5130 | as_nl=' |
---|
| 5131 | ' |
---|
| 5132 | export as_nl |
---|
| 5133 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 5134 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 5135 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 5136 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 5137 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
| 5138 | # but without wasting forks for bash or zsh. |
---|
| 5139 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
| 5140 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 5141 | as_echo='print -r --' |
---|
| 5142 | as_echo_n='print -rn --' |
---|
| 5143 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 5144 | as_echo='printf %s\n' |
---|
| 5145 | as_echo_n='printf %s' |
---|
| 5146 | else |
---|
| 5147 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 5148 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 5149 | as_echo_n='/usr/ucb/echo -n' |
---|
| 5150 | else |
---|
| 5151 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 5152 | as_echo_n_body='eval |
---|
| 5153 | arg=$1; |
---|
| 5154 | case $arg in #( |
---|
| 5155 | *"$as_nl"*) |
---|
| 5156 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 5157 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 5158 | esac; |
---|
| 5159 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 5160 | ' |
---|
| 5161 | export as_echo_n_body |
---|
| 5162 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
| 5163 | fi |
---|
| 5164 | export as_echo_body |
---|
| 5165 | as_echo='sh -c $as_echo_body as_echo' |
---|
| 5166 | fi |
---|
| 5167 | |
---|
| 5168 | # The user is always right. |
---|
| 5169 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 5170 | PATH_SEPARATOR=: |
---|
| 5171 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 5172 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 5173 | PATH_SEPARATOR=';' |
---|
| 5174 | } |
---|
| 5175 | fi |
---|
| 5176 | |
---|
| 5177 | |
---|
| 5178 | # IFS |
---|
| 5179 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 5180 | # there to prevent editors from complaining about space-tab. |
---|
| 5181 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 5182 | # splitting by setting IFS to empty value.) |
---|
| 5183 | IFS=" "" $as_nl" |
---|
| 5184 | |
---|
| 5185 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 5186 | as_myself= |
---|
| 5187 | case $0 in #(( |
---|
| 5188 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5189 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5190 | for as_dir in $PATH |
---|
| 5191 | do |
---|
| 5192 | IFS=$as_save_IFS |
---|
| 5193 | test -z "$as_dir" && as_dir=. |
---|
| 5194 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 5195 | done |
---|
| 5196 | IFS=$as_save_IFS |
---|
| 5197 | |
---|
| 5198 | ;; |
---|
| 5199 | esac |
---|
| 5200 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5201 | # in which case we are not to be found in the path. |
---|
| 5202 | if test "x$as_myself" = x; then |
---|
| 5203 | as_myself=$0 |
---|
| 5204 | fi |
---|
| 5205 | if test ! -f "$as_myself"; then |
---|
| 5206 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 5207 | exit 1 |
---|
| 5208 | fi |
---|
| 5209 | |
---|
| 5210 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
| 5211 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
| 5212 | # suppresses any "Segmentation fault" message there. '((' could |
---|
| 5213 | # trigger a bug in pdksh 5.2.14. |
---|
| 5214 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
| 5215 | do eval test x\${$as_var+set} = xset \ |
---|
| 5216 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
| 5217 | done |
---|
| 5218 | PS1='$ ' |
---|
| 5219 | PS2='> ' |
---|
| 5220 | PS4='+ ' |
---|
| 5221 | |
---|
| 5222 | # NLS nuisances. |
---|
| 5223 | LC_ALL=C |
---|
| 5224 | export LC_ALL |
---|
| 5225 | LANGUAGE=C |
---|
| 5226 | export LANGUAGE |
---|
| 5227 | |
---|
| 5228 | # CDPATH. |
---|
| 5229 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
| 5230 | |
---|
| 5231 | |
---|
| 5232 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 5233 | # ---------------------------------------- |
---|
| 5234 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 5235 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 5236 | # script with STATUS, using 1 if that was 0. |
---|
| 5237 | as_fn_error () |
---|
| 5238 | { |
---|
| 5239 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 5240 | if test "$4"; then |
---|
| 5241 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 5242 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 5243 | fi |
---|
| 5244 | $as_echo "$as_me: error: $2" >&2 |
---|
| 5245 | as_fn_exit $as_status |
---|
| 5246 | } # as_fn_error |
---|
| 5247 | |
---|
| 5248 | |
---|
| 5249 | # as_fn_set_status STATUS |
---|
| 5250 | # ----------------------- |
---|
| 5251 | # Set $? to STATUS, without forking. |
---|
| 5252 | as_fn_set_status () |
---|
| 5253 | { |
---|
| 5254 | return $1 |
---|
| 5255 | } # as_fn_set_status |
---|
| 5256 | |
---|
| 5257 | # as_fn_exit STATUS |
---|
| 5258 | # ----------------- |
---|
| 5259 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 5260 | as_fn_exit () |
---|
| 5261 | { |
---|
| 5262 | set +e |
---|
| 5263 | as_fn_set_status $1 |
---|
| 5264 | exit $1 |
---|
| 5265 | } # as_fn_exit |
---|
| 5266 | |
---|
| 5267 | # as_fn_unset VAR |
---|
| 5268 | # --------------- |
---|
| 5269 | # Portably unset VAR. |
---|
| 5270 | as_fn_unset () |
---|
| 5271 | { |
---|
| 5272 | { eval $1=; unset $1;} |
---|
| 5273 | } |
---|
| 5274 | as_unset=as_fn_unset |
---|
| 5275 | # as_fn_append VAR VALUE |
---|
| 5276 | # ---------------------- |
---|
| 5277 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 5278 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 5279 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 5280 | # implementations. |
---|
| 5281 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 5282 | eval 'as_fn_append () |
---|
| 5283 | { |
---|
| 5284 | eval $1+=\$2 |
---|
| 5285 | }' |
---|
| 5286 | else |
---|
| 5287 | as_fn_append () |
---|
| 5288 | { |
---|
| 5289 | eval $1=\$$1\$2 |
---|
| 5290 | } |
---|
| 5291 | fi # as_fn_append |
---|
| 5292 | |
---|
| 5293 | # as_fn_arith ARG... |
---|
| 5294 | # ------------------ |
---|
| 5295 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 5296 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 5297 | # must be portable across $(()) and expr. |
---|
| 5298 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 5299 | eval 'as_fn_arith () |
---|
| 5300 | { |
---|
| 5301 | as_val=$(( $* )) |
---|
| 5302 | }' |
---|
| 5303 | else |
---|
| 5304 | as_fn_arith () |
---|
| 5305 | { |
---|
| 5306 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 5307 | } |
---|
| 5308 | fi # as_fn_arith |
---|
| 5309 | |
---|
| 5310 | |
---|
| 5311 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5312 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 5313 | as_expr=expr |
---|
| 5314 | else |
---|
| 5315 | as_expr=false |
---|
| 5316 | fi |
---|
| 5317 | |
---|
| 5318 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 5319 | as_basename=basename |
---|
| 5320 | else |
---|
| 5321 | as_basename=false |
---|
| 5322 | fi |
---|
| 5323 | |
---|
| 5324 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 5325 | as_dirname=dirname |
---|
| 5326 | else |
---|
| 5327 | as_dirname=false |
---|
| 5328 | fi |
---|
| 5329 | |
---|
| 5330 | as_me=`$as_basename -- "$0" || |
---|
| 5331 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5332 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5333 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5334 | $as_echo X/"$0" | |
---|
| 5335 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 5336 | s//\1/ |
---|
| 5337 | q |
---|
| 5338 | } |
---|
| 5339 | /^X\/\(\/\/\)$/{ |
---|
| 5340 | s//\1/ |
---|
| 5341 | q |
---|
| 5342 | } |
---|
| 5343 | /^X\/\(\/\).*/{ |
---|
| 5344 | s//\1/ |
---|
| 5345 | q |
---|
| 5346 | } |
---|
| 5347 | s/.*/./; q'` |
---|
| 5348 | |
---|
| 5349 | # Avoid depending upon Character Ranges. |
---|
| 5350 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 5351 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 5352 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 5353 | as_cr_digits='0123456789' |
---|
| 5354 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 5355 | |
---|
| 5356 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 5357 | case `echo -n x` in #((((( |
---|
| 5358 | -n*) |
---|
| 5359 | case `echo 'xy\c'` in |
---|
| 5360 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 5361 | xy) ECHO_C='\c';; |
---|
| 5362 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 5363 | ECHO_T=' ';; |
---|
| 5364 | esac;; |
---|
| 5365 | *) |
---|
| 5366 | ECHO_N='-n';; |
---|
| 5367 | esac |
---|
| 5368 | |
---|
| 5369 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5370 | if test -d conf$$.dir; then |
---|
| 5371 | rm -f conf$$.dir/conf$$.file |
---|
| 5372 | else |
---|
| 5373 | rm -f conf$$.dir |
---|
| 5374 | mkdir conf$$.dir 2>/dev/null |
---|
| 5375 | fi |
---|
| 5376 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 5377 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 5378 | as_ln_s='ln -s' |
---|
| 5379 | # ... but there are two gotchas: |
---|
| 5380 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 5381 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 5382 | # In both cases, we have to default to `cp -pR'. |
---|
| 5383 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 5384 | as_ln_s='cp -pR' |
---|
| 5385 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5386 | as_ln_s=ln |
---|
| 5387 | else |
---|
| 5388 | as_ln_s='cp -pR' |
---|
| 5389 | fi |
---|
| 5390 | else |
---|
| 5391 | as_ln_s='cp -pR' |
---|
| 5392 | fi |
---|
| 5393 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 5394 | rmdir conf$$.dir 2>/dev/null |
---|
| 5395 | |
---|
| 5396 | |
---|
| 5397 | # as_fn_mkdir_p |
---|
| 5398 | # ------------- |
---|
| 5399 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 5400 | as_fn_mkdir_p () |
---|
| 5401 | { |
---|
| 5402 | |
---|
| 5403 | case $as_dir in #( |
---|
| 5404 | -*) as_dir=./$as_dir;; |
---|
| 5405 | esac |
---|
| 5406 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 5407 | as_dirs= |
---|
| 5408 | while :; do |
---|
| 5409 | case $as_dir in #( |
---|
| 5410 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 5411 | *) as_qdir=$as_dir;; |
---|
| 5412 | esac |
---|
| 5413 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 5414 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 5415 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5416 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 5417 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 5418 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5419 | $as_echo X"$as_dir" | |
---|
| 5420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5421 | s//\1/ |
---|
| 5422 | q |
---|
| 5423 | } |
---|
| 5424 | /^X\(\/\/\)[^/].*/{ |
---|
| 5425 | s//\1/ |
---|
| 5426 | q |
---|
| 5427 | } |
---|
| 5428 | /^X\(\/\/\)$/{ |
---|
| 5429 | s//\1/ |
---|
| 5430 | q |
---|
| 5431 | } |
---|
| 5432 | /^X\(\/\).*/{ |
---|
| 5433 | s//\1/ |
---|
| 5434 | q |
---|
| 5435 | } |
---|
| 5436 | s/.*/./; q'` |
---|
| 5437 | test -d "$as_dir" && break |
---|
| 5438 | done |
---|
| 5439 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 5440 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 5441 | |
---|
| 5442 | |
---|
| 5443 | } # as_fn_mkdir_p |
---|
| 5444 | if mkdir -p . 2>/dev/null; then |
---|
| 5445 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 5446 | else |
---|
| 5447 | test -d ./-p && rmdir ./-p |
---|
| 5448 | as_mkdir_p=false |
---|
| 5449 | fi |
---|
| 5450 | |
---|
| 5451 | |
---|
| 5452 | # as_fn_executable_p FILE |
---|
| 5453 | # ----------------------- |
---|
| 5454 | # Test if FILE is an executable regular file. |
---|
| 5455 | as_fn_executable_p () |
---|
| 5456 | { |
---|
| 5457 | test -f "$1" && test -x "$1" |
---|
| 5458 | } # as_fn_executable_p |
---|
| 5459 | as_test_x='test -x' |
---|
| 5460 | as_executable_p=as_fn_executable_p |
---|
| 5461 | |
---|
| 5462 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5463 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5464 | |
---|
| 5465 | # Sed expression to map a string onto a valid variable name. |
---|
| 5466 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5467 | |
---|
| 5468 | |
---|
| 5469 | exec 6>&1 |
---|
| 5470 | ## ----------------------------------- ## |
---|
| 5471 | ## Main body of $CONFIG_STATUS script. ## |
---|
| 5472 | ## ----------------------------------- ## |
---|
| 5473 | _ASEOF |
---|
| 5474 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
| 5475 | |
---|
| 5476 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5477 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
| 5478 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 5479 | # values after options handling. |
---|
| 5480 | ac_log=" |
---|
| 5481 | This file was extended by nanovis $as_me 1.2, which was |
---|
| 5482 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
| 5483 | |
---|
| 5484 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5485 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5486 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5487 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5488 | $ $0 $@ |
---|
| 5489 | |
---|
| 5490 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 5491 | " |
---|
| 5492 | |
---|
| 5493 | _ACEOF |
---|
| 5494 | |
---|
| 5495 | case $ac_config_files in *" |
---|
| 5496 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 5497 | esac |
---|
| 5498 | |
---|
| 5499 | case $ac_config_headers in *" |
---|
| 5500 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
| 5501 | esac |
---|
| 5502 | |
---|
| 5503 | |
---|
| 5504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5505 | # Files that config.status was made for. |
---|
| 5506 | config_files="$ac_config_files" |
---|
| 5507 | config_headers="$ac_config_headers" |
---|
| 5508 | |
---|
| 5509 | _ACEOF |
---|
| 5510 | |
---|
| 5511 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5512 | ac_cs_usage="\ |
---|
| 5513 | \`$as_me' instantiates files and other configuration actions |
---|
| 5514 | from templates according to the current configuration. Unless the files |
---|
| 5515 | and actions are specified as TAGs, all are instantiated by default. |
---|
| 5516 | |
---|
| 5517 | Usage: $0 [OPTION]... [TAG]... |
---|
| 5518 | |
---|
| 5519 | -h, --help print this help, then exit |
---|
| 5520 | -V, --version print version number and configuration settings, then exit |
---|
| 5521 | --config print configuration, then exit |
---|
| 5522 | -q, --quiet, --silent |
---|
| 5523 | do not print progress messages |
---|
| 5524 | -d, --debug don't remove temporary files |
---|
| 5525 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5526 | --file=FILE[:TEMPLATE] |
---|
| 5527 | instantiate the configuration file FILE |
---|
| 5528 | --header=FILE[:TEMPLATE] |
---|
| 5529 | instantiate the configuration header FILE |
---|
| 5530 | |
---|
| 5531 | Configuration files: |
---|
| 5532 | $config_files |
---|
| 5533 | |
---|
| 5534 | Configuration headers: |
---|
| 5535 | $config_headers |
---|
| 5536 | |
---|
| 5537 | Report bugs to <rappture@nanohub.org>." |
---|
| 5538 | |
---|
| 5539 | _ACEOF |
---|
| 5540 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5541 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
| 5542 | ac_cs_version="\\ |
---|
| 5543 | nanovis config.status 1.2 |
---|
| 5544 | configured by $0, generated by GNU Autoconf 2.69, |
---|
| 5545 | with options \\"\$ac_cs_config\\" |
---|
| 5546 | |
---|
| 5547 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
| 5548 | This config.status script is free software; the Free Software Foundation |
---|
| 5549 | gives unlimited permission to copy, distribute and modify it." |
---|
| 5550 | |
---|
| 5551 | ac_pwd='$ac_pwd' |
---|
| 5552 | srcdir='$srcdir' |
---|
| 5553 | INSTALL='$INSTALL' |
---|
| 5554 | MKDIR_P='$MKDIR_P' |
---|
| 5555 | test -n "\$AWK" || AWK=awk |
---|
| 5556 | _ACEOF |
---|
| 5557 | |
---|
| 5558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5559 | # The default lists apply if the user does not specify any file. |
---|
| 5560 | ac_need_defaults=: |
---|
| 5561 | while test $# != 0 |
---|
| 5562 | do |
---|
| 5563 | case $1 in |
---|
| 5564 | --*=?*) |
---|
| 5565 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 5566 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
| 5567 | ac_shift=: |
---|
| 5568 | ;; |
---|
| 5569 | --*=) |
---|
| 5570 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 5571 | ac_optarg= |
---|
| 5572 | ac_shift=: |
---|
| 5573 | ;; |
---|
| 5574 | *) |
---|
| 5575 | ac_option=$1 |
---|
| 5576 | ac_optarg=$2 |
---|
| 5577 | ac_shift=shift |
---|
| 5578 | ;; |
---|
| 5579 | esac |
---|
| 5580 | |
---|
| 5581 | case $ac_option in |
---|
| 5582 | # Handling of the options. |
---|
| 5583 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5584 | ac_cs_recheck=: ;; |
---|
| 5585 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 5586 | $as_echo "$ac_cs_version"; exit ;; |
---|
| 5587 | --config | --confi | --conf | --con | --co | --c ) |
---|
| 5588 | $as_echo "$ac_cs_config"; exit ;; |
---|
| 5589 | --debug | --debu | --deb | --de | --d | -d ) |
---|
| 5590 | debug=: ;; |
---|
| 5591 | --file | --fil | --fi | --f ) |
---|
| 5592 | $ac_shift |
---|
| 5593 | case $ac_optarg in |
---|
| 5594 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 5595 | '') as_fn_error $? "missing file argument" ;; |
---|
| 5596 | esac |
---|
| 5597 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
| 5598 | ac_need_defaults=false;; |
---|
| 5599 | --header | --heade | --head | --hea ) |
---|
| 5600 | $ac_shift |
---|
| 5601 | case $ac_optarg in |
---|
| 5602 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 5603 | esac |
---|
| 5604 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
| 5605 | ac_need_defaults=false;; |
---|
| 5606 | --he | --h) |
---|
| 5607 | # Conflict between --help and --header |
---|
| 5608 | as_fn_error $? "ambiguous option: \`$1' |
---|
| 5609 | Try \`$0 --help' for more information.";; |
---|
| 5610 | --help | --hel | -h ) |
---|
| 5611 | $as_echo "$ac_cs_usage"; exit ;; |
---|
| 5612 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5613 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5614 | ac_cs_silent=: ;; |
---|
| 5615 | |
---|
| 5616 | # This is an error. |
---|
| 5617 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
| 5618 | Try \`$0 --help' for more information." ;; |
---|
| 5619 | |
---|
| 5620 | *) as_fn_append ac_config_targets " $1" |
---|
| 5621 | ac_need_defaults=false ;; |
---|
| 5622 | |
---|
| 5623 | esac |
---|
| 5624 | shift |
---|
| 5625 | done |
---|
| 5626 | |
---|
| 5627 | ac_configure_extra_args= |
---|
| 5628 | |
---|
| 5629 | if $ac_cs_silent; then |
---|
| 5630 | exec 6>/dev/null |
---|
| 5631 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5632 | fi |
---|
| 5633 | |
---|
| 5634 | _ACEOF |
---|
| 5635 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5636 | if \$ac_cs_recheck; then |
---|
| 5637 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 5638 | shift |
---|
| 5639 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 5640 | CONFIG_SHELL='$SHELL' |
---|
| 5641 | export CONFIG_SHELL |
---|
| 5642 | exec "\$@" |
---|
| 5643 | fi |
---|
| 5644 | |
---|
| 5645 | _ACEOF |
---|
| 5646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5647 | exec 5>>config.log |
---|
| 5648 | { |
---|
| 5649 | echo |
---|
| 5650 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5651 | ## Running $as_me. ## |
---|
| 5652 | _ASBOX |
---|
| 5653 | $as_echo "$ac_log" |
---|
| 5654 | } >&5 |
---|
| 5655 | |
---|
| 5656 | _ACEOF |
---|
| 5657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5658 | _ACEOF |
---|
| 5659 | |
---|
| 5660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5661 | |
---|
| 5662 | # Handling of arguments. |
---|
| 5663 | for ac_config_target in $ac_config_targets |
---|
| 5664 | do |
---|
| 5665 | case $ac_config_target in |
---|
| 5666 | "nvconf.h") CONFIG_HEADERS="$CONFIG_HEADERS nvconf.h" ;; |
---|
| 5667 | "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; |
---|
| 5668 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 5669 | "graphics/Makefile") CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;; |
---|
| 5670 | "imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES imgLoaders/Makefile" ;; |
---|
| 5671 | "newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES newmat11/Makefile" ;; |
---|
| 5672 | "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; |
---|
| 5673 | "vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES vrmath/Makefile" ;; |
---|
| 5674 | |
---|
| 5675 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
| 5676 | esac |
---|
| 5677 | done |
---|
| 5678 | |
---|
| 5679 | |
---|
| 5680 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 5681 | # then the envvar interface is used. Set only those that are not. |
---|
| 5682 | # We use the long form for the default assignment because of an extremely |
---|
| 5683 | # bizarre bug on SunOS 4.1.3. |
---|
| 5684 | if $ac_need_defaults; then |
---|
| 5685 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 5686 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 5687 | fi |
---|
| 5688 | |
---|
| 5689 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 5690 | # simply because there is no reason against having it here, and in addition, |
---|
| 5691 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 5692 | # Hook for its removal unless debugging. |
---|
| 5693 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 5694 | # after its creation but before its name has been assigned to `$tmp'. |
---|
| 5695 | $debug || |
---|
| 5696 | { |
---|
| 5697 | tmp= ac_tmp= |
---|
| 5698 | trap 'exit_status=$? |
---|
| 5699 | : "${ac_tmp:=$tmp}" |
---|
| 5700 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
| 5701 | ' 0 |
---|
| 5702 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
| 5703 | } |
---|
| 5704 | # Create a (secure) tmp directory for tmp files. |
---|
| 5705 | |
---|
| 5706 | { |
---|
| 5707 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
| 5708 | test -d "$tmp" |
---|
| 5709 | } || |
---|
| 5710 | { |
---|
| 5711 | tmp=./conf$$-$RANDOM |
---|
| 5712 | (umask 077 && mkdir "$tmp") |
---|
| 5713 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
| 5714 | ac_tmp=$tmp |
---|
| 5715 | |
---|
| 5716 | # Set up the scripts for CONFIG_FILES section. |
---|
| 5717 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 5718 | # This happens for instance with `./config.status config.h'. |
---|
| 5719 | if test -n "$CONFIG_FILES"; then |
---|
| 5720 | |
---|
| 5721 | |
---|
| 5722 | ac_cr=`echo X | tr X '\015'` |
---|
| 5723 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
| 5724 | # But we know of no other shell where ac_cr would be empty at this |
---|
| 5725 | # point, so we can use a bashism as a fallback. |
---|
| 5726 | if test "x$ac_cr" = x; then |
---|
| 5727 | eval ac_cr=\$\'\\r\' |
---|
| 5728 | fi |
---|
| 5729 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 5730 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 5731 | ac_cs_awk_cr='\\r' |
---|
| 5732 | else |
---|
| 5733 | ac_cs_awk_cr=$ac_cr |
---|
| 5734 | fi |
---|
| 5735 | |
---|
| 5736 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
| 5737 | _ACEOF |
---|
| 5738 | |
---|
| 5739 | |
---|
| 5740 | { |
---|
| 5741 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 5742 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 5743 | echo "_ACEOF" |
---|
| 5744 | } >conf$$subs.sh || |
---|
| 5745 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 5746 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
| 5747 | ac_delim='%!_!# ' |
---|
| 5748 | for ac_last_try in false false false false false :; do |
---|
| 5749 | . ./conf$$subs.sh || |
---|
| 5750 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 5751 | |
---|
| 5752 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 5753 | if test $ac_delim_n = $ac_delim_num; then |
---|
| 5754 | break |
---|
| 5755 | elif $ac_last_try; then |
---|
| 5756 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 5757 | else |
---|
| 5758 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 5759 | fi |
---|
| 5760 | done |
---|
| 5761 | rm -f conf$$subs.sh |
---|
| 5762 | |
---|
| 5763 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5764 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
| 5765 | _ACEOF |
---|
| 5766 | sed -n ' |
---|
| 5767 | h |
---|
| 5768 | s/^/S["/; s/!.*/"]=/ |
---|
| 5769 | p |
---|
| 5770 | g |
---|
| 5771 | s/^[^!]*!// |
---|
| 5772 | :repl |
---|
| 5773 | t repl |
---|
| 5774 | s/'"$ac_delim"'$// |
---|
| 5775 | t delim |
---|
| 5776 | :nl |
---|
| 5777 | h |
---|
| 5778 | s/\(.\{148\}\)..*/\1/ |
---|
| 5779 | t more1 |
---|
| 5780 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 5781 | p |
---|
| 5782 | n |
---|
| 5783 | b repl |
---|
| 5784 | :more1 |
---|
| 5785 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 5786 | p |
---|
| 5787 | g |
---|
| 5788 | s/.\{148\}// |
---|
| 5789 | t nl |
---|
| 5790 | :delim |
---|
| 5791 | h |
---|
| 5792 | s/\(.\{148\}\)..*/\1/ |
---|
| 5793 | t more2 |
---|
| 5794 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 5795 | p |
---|
| 5796 | b |
---|
| 5797 | :more2 |
---|
| 5798 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 5799 | p |
---|
| 5800 | g |
---|
| 5801 | s/.\{148\}// |
---|
| 5802 | t delim |
---|
| 5803 | ' <conf$$subs.awk | sed ' |
---|
| 5804 | /^[^""]/{ |
---|
| 5805 | N |
---|
| 5806 | s/\n// |
---|
| 5807 | } |
---|
| 5808 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 5809 | rm -f conf$$subs.awk |
---|
| 5810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5811 | _ACAWK |
---|
| 5812 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
| 5813 | for (key in S) S_is_set[key] = 1 |
---|
| 5814 | FS = "" |
---|
| 5815 | |
---|
| 5816 | } |
---|
| 5817 | { |
---|
| 5818 | line = $ 0 |
---|
| 5819 | nfields = split(line, field, "@") |
---|
| 5820 | substed = 0 |
---|
| 5821 | len = length(field[1]) |
---|
| 5822 | for (i = 2; i < nfields; i++) { |
---|
| 5823 | key = field[i] |
---|
| 5824 | keylen = length(key) |
---|
| 5825 | if (S_is_set[key]) { |
---|
| 5826 | value = S[key] |
---|
| 5827 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 5828 | len += length(value) + length(field[++i]) |
---|
| 5829 | substed = 1 |
---|
| 5830 | } else |
---|
| 5831 | len += 1 + keylen |
---|
| 5832 | } |
---|
| 5833 | |
---|
| 5834 | print line |
---|
| 5835 | } |
---|
| 5836 | |
---|
| 5837 | _ACAWK |
---|
| 5838 | _ACEOF |
---|
| 5839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5840 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 5841 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 5842 | else |
---|
| 5843 | cat |
---|
| 5844 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
| 5845 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
| 5846 | _ACEOF |
---|
| 5847 | |
---|
| 5848 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
| 5849 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
| 5850 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5851 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5852 | if test "x$srcdir" = x.; then |
---|
| 5853 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
| 5854 | h |
---|
| 5855 | s/// |
---|
| 5856 | s/^/:/ |
---|
| 5857 | s/[ ]*$/:/ |
---|
| 5858 | s/:\$(srcdir):/:/g |
---|
| 5859 | s/:\${srcdir}:/:/g |
---|
| 5860 | s/:@srcdir@:/:/g |
---|
| 5861 | s/^:*// |
---|
| 5862 | s/:*$// |
---|
| 5863 | x |
---|
| 5864 | s/\(=[ ]*\).*/\1/ |
---|
| 5865 | G |
---|
| 5866 | s/\n// |
---|
| 5867 | s/^[^=]*=[ ]*$// |
---|
| 5868 | }' |
---|
| 5869 | fi |
---|
| 5870 | |
---|
| 5871 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5872 | fi # test -n "$CONFIG_FILES" |
---|
| 5873 | |
---|
| 5874 | # Set up the scripts for CONFIG_HEADERS section. |
---|
| 5875 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
| 5876 | # This happens for instance with `./config.status Makefile'. |
---|
| 5877 | if test -n "$CONFIG_HEADERS"; then |
---|
| 5878 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
| 5879 | BEGIN { |
---|
| 5880 | _ACEOF |
---|
| 5881 | |
---|
| 5882 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
| 5883 | # here-document in config.status, that substitutes the proper values into |
---|
| 5884 | # config.h.in to produce config.h. |
---|
| 5885 | |
---|
| 5886 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
| 5887 | # handling of long lines. |
---|
| 5888 | ac_delim='%!_!# ' |
---|
| 5889 | for ac_last_try in false false :; do |
---|
| 5890 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
| 5891 | if test -z "$ac_tt"; then |
---|
| 5892 | break |
---|
| 5893 | elif $ac_last_try; then |
---|
| 5894 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
| 5895 | else |
---|
| 5896 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 5897 | fi |
---|
| 5898 | done |
---|
| 5899 | |
---|
| 5900 | # For the awk script, D is an array of macro values keyed by name, |
---|
| 5901 | # likewise P contains macro parameters if any. Preserve backslash |
---|
| 5902 | # newline sequences. |
---|
| 5903 | |
---|
| 5904 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
| 5905 | sed -n ' |
---|
| 5906 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 5907 | t rset |
---|
| 5908 | :rset |
---|
| 5909 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
| 5910 | t def |
---|
| 5911 | d |
---|
| 5912 | :def |
---|
| 5913 | s/\\$// |
---|
| 5914 | t bsnl |
---|
| 5915 | s/["\\]/\\&/g |
---|
| 5916 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 5917 | D["\1"]=" \3"/p |
---|
| 5918 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
| 5919 | d |
---|
| 5920 | :bsnl |
---|
| 5921 | s/["\\]/\\&/g |
---|
| 5922 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 5923 | D["\1"]=" \3\\\\\\n"\\/p |
---|
| 5924 | t cont |
---|
| 5925 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
| 5926 | t cont |
---|
| 5927 | d |
---|
| 5928 | :cont |
---|
| 5929 | n |
---|
| 5930 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 5931 | t clear |
---|
| 5932 | :clear |
---|
| 5933 | s/\\$// |
---|
| 5934 | t bsnlc |
---|
| 5935 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
| 5936 | d |
---|
| 5937 | :bsnlc |
---|
| 5938 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
| 5939 | b cont |
---|
| 5940 | ' <confdefs.h | sed ' |
---|
| 5941 | s/'"$ac_delim"'/"\\\ |
---|
| 5942 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 5943 | |
---|
| 5944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 5945 | for (key in D) D_is_set[key] = 1 |
---|
| 5946 | FS = "" |
---|
| 5947 | } |
---|
| 5948 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
| 5949 | line = \$ 0 |
---|
| 5950 | split(line, arg, " ") |
---|
| 5951 | if (arg[1] == "#") { |
---|
| 5952 | defundef = arg[2] |
---|
| 5953 | mac1 = arg[3] |
---|
| 5954 | } else { |
---|
| 5955 | defundef = substr(arg[1], 2) |
---|
| 5956 | mac1 = arg[2] |
---|
| 5957 | } |
---|
| 5958 | split(mac1, mac2, "(") #) |
---|
| 5959 | macro = mac2[1] |
---|
| 5960 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
| 5961 | if (D_is_set[macro]) { |
---|
| 5962 | # Preserve the white space surrounding the "#". |
---|
| 5963 | print prefix "define", macro P[macro] D[macro] |
---|
| 5964 | next |
---|
| 5965 | } else { |
---|
| 5966 | # Replace #undef with comments. This is necessary, for example, |
---|
| 5967 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 5968 | # on some systems where configure will not decide to define it. |
---|
| 5969 | if (defundef == "undef") { |
---|
| 5970 | print "/*", prefix defundef, macro, "*/" |
---|
| 5971 | next |
---|
| 5972 | } |
---|
| 5973 | } |
---|
| 5974 | } |
---|
| 5975 | { print } |
---|
| 5976 | _ACAWK |
---|
| 5977 | _ACEOF |
---|
| 5978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 5979 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
| 5980 | fi # test -n "$CONFIG_HEADERS" |
---|
| 5981 | |
---|
| 5982 | |
---|
| 5983 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
| 5984 | shift |
---|
| 5985 | for ac_tag |
---|
| 5986 | do |
---|
| 5987 | case $ac_tag in |
---|
| 5988 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
| 5989 | esac |
---|
| 5990 | case $ac_mode$ac_tag in |
---|
| 5991 | :[FHL]*:*);; |
---|
| 5992 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
| 5993 | :[FH]-) ac_tag=-:-;; |
---|
| 5994 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 5995 | esac |
---|
| 5996 | ac_save_IFS=$IFS |
---|
| 5997 | IFS=: |
---|
| 5998 | set x $ac_tag |
---|
| 5999 | IFS=$ac_save_IFS |
---|
| 6000 | shift |
---|
| 6001 | ac_file=$1 |
---|
| 6002 | shift |
---|
| 6003 | |
---|
| 6004 | case $ac_mode in |
---|
| 6005 | :L) ac_source=$1;; |
---|
| 6006 | :[FH]) |
---|
| 6007 | ac_file_inputs= |
---|
| 6008 | for ac_f |
---|
| 6009 | do |
---|
| 6010 | case $ac_f in |
---|
| 6011 | -) ac_f="$ac_tmp/stdin";; |
---|
| 6012 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 6013 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 6014 | # because $ac_f cannot contain `:'. |
---|
| 6015 | test -f "$ac_f" || |
---|
| 6016 | case $ac_f in |
---|
| 6017 | [\\/$]*) false;; |
---|
| 6018 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 6019 | esac || |
---|
| 6020 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
| 6021 | esac |
---|
| 6022 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 6023 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
| 6024 | done |
---|
| 6025 | |
---|
| 6026 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6027 | # use $as_me), people would be surprised to read: |
---|
| 6028 | # /* config.h. Generated by config.status. */ |
---|
| 6029 | configure_input='Generated from '` |
---|
| 6030 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 6031 | `' by configure.' |
---|
| 6032 | if test x"$ac_file" != x-; then |
---|
| 6033 | configure_input="$ac_file. $configure_input" |
---|
| 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
| 6035 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
| 6036 | fi |
---|
| 6037 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 6038 | case $configure_input in #( |
---|
| 6039 | *\&* | *\|* | *\\* ) |
---|
| 6040 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
| 6041 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 6042 | *) ac_sed_conf_input=$configure_input;; |
---|
| 6043 | esac |
---|
| 6044 | |
---|
| 6045 | case $ac_tag in |
---|
| 6046 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
| 6047 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
| 6048 | esac |
---|
| 6049 | ;; |
---|
| 6050 | esac |
---|
| 6051 | |
---|
| 6052 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
| 6053 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6054 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6055 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6056 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6057 | $as_echo X"$ac_file" | |
---|
| 6058 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6059 | s//\1/ |
---|
| 6060 | q |
---|
| 6061 | } |
---|
| 6062 | /^X\(\/\/\)[^/].*/{ |
---|
| 6063 | s//\1/ |
---|
| 6064 | q |
---|
| 6065 | } |
---|
| 6066 | /^X\(\/\/\)$/{ |
---|
| 6067 | s//\1/ |
---|
| 6068 | q |
---|
| 6069 | } |
---|
| 6070 | /^X\(\/\).*/{ |
---|
| 6071 | s//\1/ |
---|
| 6072 | q |
---|
| 6073 | } |
---|
| 6074 | s/.*/./; q'` |
---|
| 6075 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
| 6076 | ac_builddir=. |
---|
| 6077 | |
---|
| 6078 | case "$ac_dir" in |
---|
| 6079 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6080 | *) |
---|
| 6081 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 6082 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 6083 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 6084 | case $ac_top_builddir_sub in |
---|
| 6085 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6086 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 6087 | esac ;; |
---|
| 6088 | esac |
---|
| 6089 | ac_abs_top_builddir=$ac_pwd |
---|
| 6090 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 6091 | # for backward compatibility: |
---|
| 6092 | ac_top_builddir=$ac_top_build_prefix |
---|
| 6093 | |
---|
| 6094 | case $srcdir in |
---|
| 6095 | .) # We are building in place. |
---|
| 6096 | ac_srcdir=. |
---|
| 6097 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 6098 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 6099 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 6100 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6101 | ac_top_srcdir=$srcdir |
---|
| 6102 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 6103 | *) # Relative name. |
---|
| 6104 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 6105 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 6106 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 6107 | esac |
---|
| 6108 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 6109 | |
---|
| 6110 | |
---|
| 6111 | case $ac_mode in |
---|
| 6112 | :F) |
---|
| 6113 | # |
---|
| 6114 | # CONFIG_FILE |
---|
| 6115 | # |
---|
| 6116 | |
---|
| 6117 | case $INSTALL in |
---|
| 6118 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 6119 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
| 6120 | esac |
---|
| 6121 | ac_MKDIR_P=$MKDIR_P |
---|
| 6122 | case $MKDIR_P in |
---|
| 6123 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 6124 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
| 6125 | esac |
---|
| 6126 | _ACEOF |
---|
| 6127 | |
---|
| 6128 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6129 | # If the template does not know about datarootdir, expand it. |
---|
| 6130 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 6131 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
| 6132 | ac_sed_dataroot=' |
---|
| 6133 | /datarootdir/ { |
---|
| 6134 | p |
---|
| 6135 | q |
---|
| 6136 | } |
---|
| 6137 | /@datadir@/p |
---|
| 6138 | /@docdir@/p |
---|
| 6139 | /@infodir@/p |
---|
| 6140 | /@localedir@/p |
---|
| 6141 | /@mandir@/p' |
---|
| 6142 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
| 6143 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 6144 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 6146 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
| 6147 | _ACEOF |
---|
| 6148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6149 | ac_datarootdir_hack=' |
---|
| 6150 | s&@datadir@&$datadir&g |
---|
| 6151 | s&@docdir@&$docdir&g |
---|
| 6152 | s&@infodir@&$infodir&g |
---|
| 6153 | s&@localedir@&$localedir&g |
---|
| 6154 | s&@mandir@&$mandir&g |
---|
| 6155 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 6156 | esac |
---|
| 6157 | _ACEOF |
---|
| 6158 | |
---|
| 6159 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 6160 | # Shell code in configure.ac might set extrasub. |
---|
| 6161 | # FIXME: do we really want to maintain this feature? |
---|
| 6162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6163 | ac_sed_extra="$ac_vpsub |
---|
| 6164 | $extrasub |
---|
| 6165 | _ACEOF |
---|
| 6166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6167 | :t |
---|
| 6168 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6169 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
| 6170 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 6171 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
| 6172 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 6173 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 6174 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 6175 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 6176 | s&@builddir@&$ac_builddir&;t t |
---|
| 6177 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 6178 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 6179 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
| 6180 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
| 6181 | $ac_datarootdir_hack |
---|
| 6182 | " |
---|
| 6183 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
| 6184 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6185 | |
---|
| 6186 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 6187 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
| 6188 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
| 6189 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
| 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6191 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
| 6192 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6193 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
| 6194 | |
---|
| 6195 | rm -f "$ac_tmp/stdin" |
---|
| 6196 | case $ac_file in |
---|
| 6197 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
| 6198 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
| 6199 | esac \ |
---|
| 6200 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6201 | ;; |
---|
| 6202 | :H) |
---|
| 6203 | # |
---|
| 6204 | # CONFIG_HEADER |
---|
| 6205 | # |
---|
| 6206 | if test x"$ac_file" != x-; then |
---|
| 6207 | { |
---|
| 6208 | $as_echo "/* $configure_input */" \ |
---|
| 6209 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
| 6210 | } >"$ac_tmp/config.h" \ |
---|
| 6211 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6212 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
| 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
| 6214 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 6215 | else |
---|
| 6216 | rm -f "$ac_file" |
---|
| 6217 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
| 6218 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 6219 | fi |
---|
| 6220 | else |
---|
| 6221 | $as_echo "/* $configure_input */" \ |
---|
| 6222 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
| 6223 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
| 6224 | fi |
---|
| 6225 | ;; |
---|
| 6226 | |
---|
| 6227 | |
---|
| 6228 | esac |
---|
| 6229 | |
---|
| 6230 | done # for ac_tag |
---|
| 6231 | |
---|
| 6232 | |
---|
| 6233 | as_fn_exit 0 |
---|
| 6234 | _ACEOF |
---|
| 6235 | ac_clean_files=$ac_clean_files_save |
---|
| 6236 | |
---|
| 6237 | test $ac_write_fail = 0 || |
---|
| 6238 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
| 6239 | |
---|
| 6240 | |
---|
| 6241 | # configure is writing to config.log, and then calls config.status. |
---|
| 6242 | # config.status does its own redirection, appending to config.log. |
---|
| 6243 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6244 | # by configure, so config.status won't be able to write to it; its |
---|
| 6245 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6246 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6247 | # appended to by config.status. When coming back to configure, we |
---|
| 6248 | # need to make the FD available again. |
---|
| 6249 | if test "$no_create" != yes; then |
---|
| 6250 | ac_cs_success=: |
---|
| 6251 | ac_config_status_args= |
---|
| 6252 | test "$silent" = yes && |
---|
| 6253 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6254 | exec 5>/dev/null |
---|
| 6255 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6256 | exec 5>>config.log |
---|
| 6257 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6258 | # would make configure fail if this is the last instruction. |
---|
| 6259 | $ac_cs_success || as_fn_exit 1 |
---|
| 6260 | fi |
---|
| 6261 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 6263 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 6264 | fi |
---|
| 6265 | |
---|