[107] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[1088] | 3 | # Generated by GNU Autoconf 2.69 for Duchamp 1.2.1. |
---|
[107] | 4 | # |
---|
[121] | 5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 6 | # |
---|
[788] | 7 | # |
---|
[1088] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
[788] | 9 | # |
---|
| 10 | # |
---|
[107] | 11 | # This configure script is free software; the Free Software Foundation |
---|
| 12 | # gives unlimited permission to copy, distribute and modify it. |
---|
[788] | 13 | ## -------------------- ## |
---|
| 14 | ## M4sh Initialization. ## |
---|
| 15 | ## -------------------- ## |
---|
[107] | 16 | |
---|
[763] | 17 | # Be more Bourne compatible |
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[788] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
[107] | 20 | emulate sh |
---|
| 21 | NULLCMD=: |
---|
[788] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[107] | 23 | # is contrary to our usage. Disable this feature. |
---|
| 24 | alias -g '${1+"$@"}'='"$@"' |
---|
[763] | 25 | setopt NO_GLOB_SUBST |
---|
| 26 | else |
---|
[788] | 27 | case `(set -o) 2>/dev/null` in #( |
---|
| 28 | *posix*) : |
---|
| 29 | set -o posix ;; #( |
---|
| 30 | *) : |
---|
| 31 | ;; |
---|
[763] | 32 | esac |
---|
[107] | 33 | fi |
---|
| 34 | |
---|
[763] | 35 | |
---|
[788] | 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' |
---|
[763] | 56 | else |
---|
[788] | 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' |
---|
[763] | 69 | fi |
---|
[788] | 70 | export as_echo_body |
---|
| 71 | as_echo='sh -c $as_echo_body as_echo' |
---|
[763] | 72 | fi |
---|
| 73 | |
---|
[788] | 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 | } |
---|
[107] | 81 | fi |
---|
| 82 | |
---|
| 83 | |
---|
[763] | 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. |
---|
[788] | 92 | as_myself= |
---|
| 93 | case $0 in #(( |
---|
[763] | 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=. |
---|
[788] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 101 | done |
---|
[763] | 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 |
---|
[788] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 113 | exit 1 |
---|
[763] | 114 | fi |
---|
| 115 | |
---|
[788] | 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 || : |
---|
[763] | 123 | done |
---|
[107] | 124 | PS1='$ ' |
---|
| 125 | PS2='> ' |
---|
| 126 | PS4='+ ' |
---|
| 127 | |
---|
| 128 | # NLS nuisances. |
---|
[788] | 129 | LC_ALL=C |
---|
| 130 | export LC_ALL |
---|
| 131 | LANGUAGE=C |
---|
| 132 | export LANGUAGE |
---|
[107] | 133 | |
---|
[763] | 134 | # CDPATH. |
---|
[788] | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
[107] | 136 | |
---|
[1088] | 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;} |
---|
[763] | 162 | if test "x$CONFIG_SHELL" = x; then |
---|
[788] | 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 |
---|
[763] | 170 | else |
---|
[788] | 171 | case \`(set -o) 2>/dev/null\` in #( |
---|
| 172 | *posix*) : |
---|
| 173 | set -o posix ;; #( |
---|
| 174 | *) : |
---|
| 175 | ;; |
---|
| 176 | esac |
---|
[107] | 177 | fi |
---|
[788] | 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; } |
---|
[107] | 184 | |
---|
[763] | 185 | exitcode=0 |
---|
[788] | 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 : |
---|
[107] | 191 | |
---|
[763] | 192 | else |
---|
[788] | 193 | exitcode=1; echo positional parameters were not saved. |
---|
[763] | 194 | fi |
---|
[1088] | 195 | test x\$exitcode = x0 || exit 1 |
---|
| 196 | test -x / || exit 1" |
---|
[788] | 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 |
---|
[763] | 204 | else |
---|
[788] | 205 | as_have_required=no |
---|
[763] | 206 | fi |
---|
[788] | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
[763] | 208 | |
---|
| 209 | else |
---|
[788] | 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 211 | as_found=false |
---|
[107] | 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=. |
---|
[788] | 216 | as_found=: |
---|
| 217 | case $as_dir in #( |
---|
[107] | 218 | /*) |
---|
[763] | 219 | for as_base in sh bash ksh sh5; do |
---|
[788] | 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 |
---|
[763] | 229 | done;; |
---|
| 230 | esac |
---|
[788] | 231 | as_found=false |
---|
[763] | 232 | done |
---|
[788] | 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; } |
---|
[763] | 237 | IFS=$as_save_IFS |
---|
| 238 | |
---|
| 239 | |
---|
[788] | 240 | if test "x$CONFIG_SHELL" != x; then : |
---|
[1088] | 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 |
---|
[763] | 260 | fi |
---|
| 261 | |
---|
[788] | 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: Matthew.Whiting@csiro.au about your system, including |
---|
| 271 | $0: any error possibly output before this message. Then |
---|
| 272 | $0: install a modern shell, or manually run the script |
---|
| 273 | $0: under such a shell if you do have one." |
---|
| 274 | fi |
---|
| 275 | exit 1 |
---|
[763] | 276 | fi |
---|
| 277 | fi |
---|
| 278 | fi |
---|
[788] | 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 |
---|
[763] | 284 | |
---|
[788] | 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 |
---|
[763] | 296 | |
---|
[788] | 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 |
---|
[763] | 304 | |
---|
[788] | 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 |
---|
[763] | 314 | |
---|
[788] | 315 | # as_fn_mkdir_p |
---|
| 316 | # ------------- |
---|
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 318 | as_fn_mkdir_p () |
---|
| 319 | { |
---|
[763] | 320 | |
---|
[788] | 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" |
---|
[107] | 359 | |
---|
[763] | 360 | |
---|
[788] | 361 | } # as_fn_mkdir_p |
---|
[1088] | 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 |
---|
[788] | 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 |
---|
[763] | 387 | |
---|
[788] | 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 |
---|
[763] | 404 | |
---|
| 405 | |
---|
[788] | 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 |
---|
[763] | 421 | |
---|
[788] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 424 | as_expr=expr |
---|
[763] | 425 | else |
---|
[788] | 426 | as_expr=false |
---|
[763] | 427 | fi |
---|
| 428 | |
---|
[788] | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 430 | as_basename=basename |
---|
[763] | 431 | else |
---|
[788] | 432 | as_basename=false |
---|
[763] | 433 | fi |
---|
| 434 | |
---|
[788] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 436 | as_dirname=dirname |
---|
[763] | 437 | else |
---|
[788] | 438 | as_dirname=false |
---|
[763] | 439 | fi |
---|
| 440 | |
---|
[788] | 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'` |
---|
[763] | 459 | |
---|
[788] | 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 |
---|
[763] | 466 | |
---|
| 467 | |
---|
[788] | 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. :-) |
---|
[763] | 473 | sed -n ' |
---|
| 474 | p |
---|
| 475 | /[$]LINENO/= |
---|
| 476 | ' <$as_myself | |
---|
[107] | 477 | sed ' |
---|
[763] | 478 | s/[$]LINENO.*/&-/ |
---|
| 479 | t lineno |
---|
| 480 | b |
---|
| 481 | :lineno |
---|
[107] | 482 | N |
---|
[763] | 483 | :loop |
---|
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[107] | 485 | t loop |
---|
[763] | 486 | s/-\n.*// |
---|
[107] | 487 | ' >$as_me.lineno && |
---|
[763] | 488 | chmod +x "$as_me.lineno" || |
---|
[788] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
[107] | 490 | |
---|
[1088] | 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 |
---|
[107] | 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 |
---|
[763] | 497 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 498 | . "./$as_me.lineno" |
---|
[107] | 499 | # Exit status is that of the last command. |
---|
| 500 | exit |
---|
| 501 | } |
---|
| 502 | |
---|
[763] | 503 | ECHO_C= ECHO_N= ECHO_T= |
---|
[788] | 504 | case `echo -n x` in #((((( |
---|
[763] | 505 | -n*) |
---|
[788] | 506 | case `echo 'xy\c'` in |
---|
[763] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
[788] | 508 | xy) ECHO_C='\c';; |
---|
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 510 | ECHO_T=' ';; |
---|
[763] | 511 | esac;; |
---|
| 512 | *) |
---|
| 513 | ECHO_N='-n';; |
---|
[107] | 514 | esac |
---|
| 515 | |
---|
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[763] | 517 | if test -d conf$$.dir; then |
---|
| 518 | rm -f conf$$.dir/conf$$.file |
---|
| 519 | else |
---|
| 520 | rm -f conf$$.dir |
---|
[788] | 521 | mkdir conf$$.dir 2>/dev/null |
---|
[763] | 522 | fi |
---|
[788] | 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. |
---|
[1088] | 529 | # In both cases, we have to default to `cp -pR'. |
---|
[788] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[1088] | 531 | as_ln_s='cp -pR' |
---|
[788] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 533 | as_ln_s=ln |
---|
| 534 | else |
---|
[1088] | 535 | as_ln_s='cp -pR' |
---|
[788] | 536 | fi |
---|
[107] | 537 | else |
---|
[1088] | 538 | as_ln_s='cp -pR' |
---|
[107] | 539 | fi |
---|
[763] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 541 | rmdir conf$$.dir 2>/dev/null |
---|
[107] | 542 | |
---|
| 543 | if mkdir -p . 2>/dev/null; then |
---|
[788] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
[107] | 545 | else |
---|
[349] | 546 | test -d ./-p && rmdir ./-p |
---|
[107] | 547 | as_mkdir_p=false |
---|
| 548 | fi |
---|
| 549 | |
---|
[1088] | 550 | as_test_x='test -x' |
---|
| 551 | as_executable_p=as_fn_executable_p |
---|
[107] | 552 | |
---|
| 553 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 555 | |
---|
| 556 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 558 | |
---|
| 559 | |
---|
[788] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
| 561 | exec 6>&1 |
---|
[107] | 562 | |
---|
| 563 | # Name of the host. |
---|
[788] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
[107] | 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 |
---|
[763] | 572 | ac_clean_files= |
---|
[107] | 573 | ac_config_libobj_dir=. |
---|
[763] | 574 | LIBOBJS= |
---|
[107] | 575 | cross_compiling=no |
---|
| 576 | subdirs= |
---|
| 577 | MFLAGS= |
---|
| 578 | MAKEFLAGS= |
---|
| 579 | |
---|
| 580 | # Identity of this package. |
---|
| 581 | PACKAGE_NAME='Duchamp' |
---|
| 582 | PACKAGE_TARNAME='duchamp' |
---|
[1088] | 583 | PACKAGE_VERSION='1.2.1' |
---|
| 584 | PACKAGE_STRING='Duchamp 1.2.1' |
---|
[121] | 585 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
[788] | 586 | PACKAGE_URL='' |
---|
[107] | 587 | |
---|
[168] | 588 | ac_unique_file="src/duchamp.hh" |
---|
[347] | 589 | ac_default_prefix=/usr/local |
---|
[107] | 590 | # Factoring default headers for most tests. |
---|
| 591 | ac_includes_default="\ |
---|
| 592 | #include <stdio.h> |
---|
[763] | 593 | #ifdef HAVE_SYS_TYPES_H |
---|
[107] | 594 | # include <sys/types.h> |
---|
| 595 | #endif |
---|
[763] | 596 | #ifdef HAVE_SYS_STAT_H |
---|
[107] | 597 | # include <sys/stat.h> |
---|
| 598 | #endif |
---|
[763] | 599 | #ifdef STDC_HEADERS |
---|
[107] | 600 | # include <stdlib.h> |
---|
| 601 | # include <stddef.h> |
---|
| 602 | #else |
---|
[763] | 603 | # ifdef HAVE_STDLIB_H |
---|
[107] | 604 | # include <stdlib.h> |
---|
| 605 | # endif |
---|
| 606 | #endif |
---|
[763] | 607 | #ifdef HAVE_STRING_H |
---|
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
[107] | 609 | # include <memory.h> |
---|
| 610 | # endif |
---|
| 611 | # include <string.h> |
---|
| 612 | #endif |
---|
[763] | 613 | #ifdef HAVE_STRINGS_H |
---|
[107] | 614 | # include <strings.h> |
---|
| 615 | #endif |
---|
[763] | 616 | #ifdef HAVE_INTTYPES_H |
---|
[107] | 617 | # include <inttypes.h> |
---|
| 618 | #endif |
---|
[763] | 619 | #ifdef HAVE_STDINT_H |
---|
| 620 | # include <stdint.h> |
---|
| 621 | #endif |
---|
| 622 | #ifdef HAVE_UNISTD_H |
---|
[107] | 623 | # include <unistd.h> |
---|
| 624 | #endif" |
---|
| 625 | |
---|
[788] | 626 | ac_subst_vars='LTLIBOBJS |
---|
| 627 | WCSLIB |
---|
| 628 | WCSINC |
---|
| 629 | CFITSIOLIB |
---|
| 630 | CFITSIOINC |
---|
| 631 | PGPLOTLIB |
---|
| 632 | PGPLOTINC |
---|
| 633 | LINKER |
---|
[1058] | 634 | X_EXTRA_LIBS |
---|
| 635 | X_LIBS |
---|
| 636 | X_PRE_LIBS |
---|
| 637 | X_CFLAGS |
---|
[788] | 638 | XMKMF |
---|
| 639 | LIBOBJS |
---|
| 640 | POW_LIB |
---|
| 641 | RANLIB |
---|
| 642 | EGREP |
---|
| 643 | GREP |
---|
| 644 | INSTALL |
---|
| 645 | LN_S |
---|
| 646 | ac_ct_F77 |
---|
| 647 | FFLAGS |
---|
| 648 | F77 |
---|
| 649 | CPP |
---|
| 650 | ac_ct_CC |
---|
| 651 | CFLAGS |
---|
| 652 | CC |
---|
| 653 | OBJEXT |
---|
| 654 | EXEEXT |
---|
| 655 | ac_ct_CXX |
---|
| 656 | CPPFLAGS |
---|
| 657 | LDFLAGS |
---|
| 658 | CXXFLAGS |
---|
| 659 | CXX |
---|
| 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 |
---|
[763] | 696 | PATH_SEPARATOR |
---|
[788] | 697 | SHELL' |
---|
[107] | 698 | ac_subst_files='' |
---|
[788] | 699 | ac_user_opts=' |
---|
| 700 | enable_option_checking |
---|
| 701 | with_pgplot |
---|
| 702 | with_x |
---|
| 703 | with_cfitsio |
---|
| 704 | with_wcslib |
---|
| 705 | ' |
---|
[763] | 706 | ac_precious_vars='build_alias |
---|
| 707 | host_alias |
---|
| 708 | target_alias |
---|
| 709 | CXX |
---|
| 710 | CXXFLAGS |
---|
| 711 | LDFLAGS |
---|
| 712 | LIBS |
---|
| 713 | CPPFLAGS |
---|
| 714 | CCC |
---|
| 715 | CC |
---|
| 716 | CFLAGS |
---|
| 717 | CPP |
---|
| 718 | F77 |
---|
| 719 | FFLAGS |
---|
| 720 | XMKMF' |
---|
[107] | 721 | |
---|
[763] | 722 | |
---|
[107] | 723 | # Initialize some variables set by options. |
---|
| 724 | ac_init_help= |
---|
| 725 | ac_init_version=false |
---|
[788] | 726 | ac_unrecognized_opts= |
---|
| 727 | ac_unrecognized_sep= |
---|
[107] | 728 | # The variables have the same names as the options, with |
---|
| 729 | # dashes changed to underlines. |
---|
| 730 | cache_file=/dev/null |
---|
| 731 | exec_prefix=NONE |
---|
| 732 | no_create= |
---|
| 733 | no_recursion= |
---|
| 734 | prefix=NONE |
---|
| 735 | program_prefix=NONE |
---|
| 736 | program_suffix=NONE |
---|
| 737 | program_transform_name=s,x,x, |
---|
| 738 | silent= |
---|
| 739 | site= |
---|
| 740 | srcdir= |
---|
| 741 | verbose= |
---|
| 742 | x_includes=NONE |
---|
| 743 | x_libraries=NONE |
---|
| 744 | |
---|
| 745 | # Installation directory options. |
---|
| 746 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 747 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 748 | # by default will actually change. |
---|
| 749 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
[763] | 750 | # (The list follows the same order as the GNU Coding Standards.) |
---|
[107] | 751 | bindir='${exec_prefix}/bin' |
---|
| 752 | sbindir='${exec_prefix}/sbin' |
---|
| 753 | libexecdir='${exec_prefix}/libexec' |
---|
[763] | 754 | datarootdir='${prefix}/share' |
---|
| 755 | datadir='${datarootdir}' |
---|
[107] | 756 | sysconfdir='${prefix}/etc' |
---|
| 757 | sharedstatedir='${prefix}/com' |
---|
| 758 | localstatedir='${prefix}/var' |
---|
| 759 | includedir='${prefix}/include' |
---|
| 760 | oldincludedir='/usr/include' |
---|
[763] | 761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 762 | infodir='${datarootdir}/info' |
---|
| 763 | htmldir='${docdir}' |
---|
| 764 | dvidir='${docdir}' |
---|
| 765 | pdfdir='${docdir}' |
---|
| 766 | psdir='${docdir}' |
---|
| 767 | libdir='${exec_prefix}/lib' |
---|
| 768 | localedir='${datarootdir}/locale' |
---|
| 769 | mandir='${datarootdir}/man' |
---|
[107] | 770 | |
---|
| 771 | ac_prev= |
---|
[763] | 772 | ac_dashdash= |
---|
[107] | 773 | for ac_option |
---|
| 774 | do |
---|
| 775 | # If the previous option needs an argument, assign it. |
---|
| 776 | if test -n "$ac_prev"; then |
---|
[763] | 777 | eval $ac_prev=\$ac_option |
---|
[107] | 778 | ac_prev= |
---|
| 779 | continue |
---|
| 780 | fi |
---|
| 781 | |
---|
[763] | 782 | case $ac_option in |
---|
[788] | 783 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 784 | *=) ac_optarg= ;; |
---|
| 785 | *) ac_optarg=yes ;; |
---|
[763] | 786 | esac |
---|
[107] | 787 | |
---|
| 788 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 789 | |
---|
[763] | 790 | case $ac_dashdash$ac_option in |
---|
| 791 | --) |
---|
| 792 | ac_dashdash=yes ;; |
---|
[107] | 793 | |
---|
| 794 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 795 | ac_prev=bindir ;; |
---|
| 796 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 797 | bindir=$ac_optarg ;; |
---|
| 798 | |
---|
| 799 | -build | --build | --buil | --bui | --bu) |
---|
| 800 | ac_prev=build_alias ;; |
---|
| 801 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 802 | build_alias=$ac_optarg ;; |
---|
| 803 | |
---|
| 804 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 805 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 806 | ac_prev=cache_file ;; |
---|
| 807 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 808 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 809 | cache_file=$ac_optarg ;; |
---|
| 810 | |
---|
| 811 | --config-cache | -C) |
---|
| 812 | cache_file=config.cache ;; |
---|
| 813 | |
---|
[763] | 814 | -datadir | --datadir | --datadi | --datad) |
---|
[107] | 815 | ac_prev=datadir ;; |
---|
[763] | 816 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
[107] | 817 | datadir=$ac_optarg ;; |
---|
| 818 | |
---|
[763] | 819 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 820 | | --dataroo | --dataro | --datar) |
---|
| 821 | ac_prev=datarootdir ;; |
---|
| 822 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 823 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 824 | datarootdir=$ac_optarg ;; |
---|
| 825 | |
---|
[107] | 826 | -disable-* | --disable-*) |
---|
[788] | 827 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
[107] | 828 | # Reject names that are not valid shell variable names. |
---|
[788] | 829 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 830 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 831 | ac_useropt_orig=$ac_useropt |
---|
| 832 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 833 | case $ac_user_opts in |
---|
| 834 | *" |
---|
| 835 | "enable_$ac_useropt" |
---|
| 836 | "*) ;; |
---|
| 837 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 838 | ac_unrecognized_sep=', ';; |
---|
| 839 | esac |
---|
| 840 | eval enable_$ac_useropt=no ;; |
---|
[107] | 841 | |
---|
[763] | 842 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 843 | ac_prev=docdir ;; |
---|
| 844 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 845 | docdir=$ac_optarg ;; |
---|
| 846 | |
---|
| 847 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 848 | ac_prev=dvidir ;; |
---|
| 849 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 850 | dvidir=$ac_optarg ;; |
---|
| 851 | |
---|
[107] | 852 | -enable-* | --enable-*) |
---|
[788] | 853 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
[107] | 854 | # Reject names that are not valid shell variable names. |
---|
[788] | 855 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 856 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 857 | ac_useropt_orig=$ac_useropt |
---|
| 858 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 859 | case $ac_user_opts in |
---|
| 860 | *" |
---|
| 861 | "enable_$ac_useropt" |
---|
| 862 | "*) ;; |
---|
| 863 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 864 | ac_unrecognized_sep=', ';; |
---|
| 865 | esac |
---|
| 866 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
[107] | 867 | |
---|
| 868 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 869 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 870 | | --exec | --exe | --ex) |
---|
| 871 | ac_prev=exec_prefix ;; |
---|
| 872 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 873 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 874 | | --exec=* | --exe=* | --ex=*) |
---|
| 875 | exec_prefix=$ac_optarg ;; |
---|
| 876 | |
---|
| 877 | -gas | --gas | --ga | --g) |
---|
| 878 | # Obsolete; use --with-gas. |
---|
| 879 | with_gas=yes ;; |
---|
| 880 | |
---|
| 881 | -help | --help | --hel | --he | -h) |
---|
| 882 | ac_init_help=long ;; |
---|
| 883 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 884 | ac_init_help=recursive ;; |
---|
| 885 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 886 | ac_init_help=short ;; |
---|
| 887 | |
---|
| 888 | -host | --host | --hos | --ho) |
---|
| 889 | ac_prev=host_alias ;; |
---|
| 890 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 891 | host_alias=$ac_optarg ;; |
---|
| 892 | |
---|
[763] | 893 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 894 | ac_prev=htmldir ;; |
---|
| 895 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 896 | | --ht=*) |
---|
| 897 | htmldir=$ac_optarg ;; |
---|
| 898 | |
---|
[107] | 899 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 900 | | --includ | --inclu | --incl | --inc) |
---|
| 901 | ac_prev=includedir ;; |
---|
| 902 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 903 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 904 | includedir=$ac_optarg ;; |
---|
| 905 | |
---|
| 906 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 907 | ac_prev=infodir ;; |
---|
| 908 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 909 | infodir=$ac_optarg ;; |
---|
| 910 | |
---|
| 911 | -libdir | --libdir | --libdi | --libd) |
---|
| 912 | ac_prev=libdir ;; |
---|
| 913 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 914 | libdir=$ac_optarg ;; |
---|
| 915 | |
---|
| 916 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 917 | | --libexe | --libex | --libe) |
---|
| 918 | ac_prev=libexecdir ;; |
---|
| 919 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 920 | | --libexe=* | --libex=* | --libe=*) |
---|
| 921 | libexecdir=$ac_optarg ;; |
---|
| 922 | |
---|
[763] | 923 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 924 | ac_prev=localedir ;; |
---|
| 925 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 926 | localedir=$ac_optarg ;; |
---|
| 927 | |
---|
[107] | 928 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
[763] | 929 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
[107] | 930 | ac_prev=localstatedir ;; |
---|
| 931 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
[763] | 932 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
[107] | 933 | localstatedir=$ac_optarg ;; |
---|
| 934 | |
---|
| 935 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 936 | ac_prev=mandir ;; |
---|
| 937 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 938 | mandir=$ac_optarg ;; |
---|
| 939 | |
---|
| 940 | -nfp | --nfp | --nf) |
---|
| 941 | # Obsolete; use --without-fp. |
---|
| 942 | with_fp=no ;; |
---|
| 943 | |
---|
| 944 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 945 | | --no-cr | --no-c | -n) |
---|
| 946 | no_create=yes ;; |
---|
| 947 | |
---|
| 948 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 949 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 950 | no_recursion=yes ;; |
---|
| 951 | |
---|
| 952 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 953 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 954 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 955 | ac_prev=oldincludedir ;; |
---|
| 956 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 957 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 958 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 959 | oldincludedir=$ac_optarg ;; |
---|
| 960 | |
---|
| 961 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 962 | ac_prev=prefix ;; |
---|
| 963 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 964 | prefix=$ac_optarg ;; |
---|
| 965 | |
---|
| 966 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 967 | | --program-pre | --program-pr | --program-p) |
---|
| 968 | ac_prev=program_prefix ;; |
---|
| 969 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 970 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 971 | program_prefix=$ac_optarg ;; |
---|
| 972 | |
---|
| 973 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 974 | | --program-suf | --program-su | --program-s) |
---|
| 975 | ac_prev=program_suffix ;; |
---|
| 976 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 977 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 978 | program_suffix=$ac_optarg ;; |
---|
| 979 | |
---|
| 980 | -program-transform-name | --program-transform-name \ |
---|
| 981 | | --program-transform-nam | --program-transform-na \ |
---|
| 982 | | --program-transform-n | --program-transform- \ |
---|
| 983 | | --program-transform | --program-transfor \ |
---|
| 984 | | --program-transfo | --program-transf \ |
---|
| 985 | | --program-trans | --program-tran \ |
---|
| 986 | | --progr-tra | --program-tr | --program-t) |
---|
| 987 | ac_prev=program_transform_name ;; |
---|
| 988 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 989 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 990 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 991 | | --program-transform=* | --program-transfor=* \ |
---|
| 992 | | --program-transfo=* | --program-transf=* \ |
---|
| 993 | | --program-trans=* | --program-tran=* \ |
---|
| 994 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 995 | program_transform_name=$ac_optarg ;; |
---|
| 996 | |
---|
[763] | 997 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 998 | ac_prev=pdfdir ;; |
---|
| 999 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1000 | pdfdir=$ac_optarg ;; |
---|
| 1001 | |
---|
| 1002 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1003 | ac_prev=psdir ;; |
---|
| 1004 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1005 | psdir=$ac_optarg ;; |
---|
| 1006 | |
---|
[107] | 1007 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1008 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1009 | silent=yes ;; |
---|
| 1010 | |
---|
| 1011 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1012 | ac_prev=sbindir ;; |
---|
| 1013 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1014 | | --sbi=* | --sb=*) |
---|
| 1015 | sbindir=$ac_optarg ;; |
---|
| 1016 | |
---|
| 1017 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1018 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1019 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1020 | | --sha | --sh) |
---|
| 1021 | ac_prev=sharedstatedir ;; |
---|
| 1022 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1023 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1024 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1025 | | --sha=* | --sh=*) |
---|
| 1026 | sharedstatedir=$ac_optarg ;; |
---|
| 1027 | |
---|
| 1028 | -site | --site | --sit) |
---|
| 1029 | ac_prev=site ;; |
---|
| 1030 | -site=* | --site=* | --sit=*) |
---|
| 1031 | site=$ac_optarg ;; |
---|
| 1032 | |
---|
| 1033 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1034 | ac_prev=srcdir ;; |
---|
| 1035 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1036 | srcdir=$ac_optarg ;; |
---|
| 1037 | |
---|
| 1038 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1039 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1040 | ac_prev=sysconfdir ;; |
---|
| 1041 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1042 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1043 | sysconfdir=$ac_optarg ;; |
---|
| 1044 | |
---|
| 1045 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1046 | ac_prev=target_alias ;; |
---|
| 1047 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1048 | target_alias=$ac_optarg ;; |
---|
| 1049 | |
---|
| 1050 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1051 | verbose=yes ;; |
---|
| 1052 | |
---|
| 1053 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1054 | ac_init_version=: ;; |
---|
| 1055 | |
---|
| 1056 | -with-* | --with-*) |
---|
[788] | 1057 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
[107] | 1058 | # Reject names that are not valid shell variable names. |
---|
[788] | 1059 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1060 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1061 | ac_useropt_orig=$ac_useropt |
---|
| 1062 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1063 | case $ac_user_opts in |
---|
| 1064 | *" |
---|
| 1065 | "with_$ac_useropt" |
---|
| 1066 | "*) ;; |
---|
| 1067 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1068 | ac_unrecognized_sep=', ';; |
---|
| 1069 | esac |
---|
| 1070 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
[107] | 1071 | |
---|
| 1072 | -without-* | --without-*) |
---|
[788] | 1073 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
[107] | 1074 | # Reject names that are not valid shell variable names. |
---|
[788] | 1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1076 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1077 | ac_useropt_orig=$ac_useropt |
---|
| 1078 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1079 | case $ac_user_opts in |
---|
| 1080 | *" |
---|
| 1081 | "with_$ac_useropt" |
---|
| 1082 | "*) ;; |
---|
| 1083 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1084 | ac_unrecognized_sep=', ';; |
---|
| 1085 | esac |
---|
| 1086 | eval with_$ac_useropt=no ;; |
---|
[107] | 1087 | |
---|
| 1088 | --x) |
---|
| 1089 | # Obsolete; use --with-x. |
---|
| 1090 | with_x=yes ;; |
---|
| 1091 | |
---|
| 1092 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1093 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1094 | ac_prev=x_includes ;; |
---|
| 1095 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1096 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1097 | x_includes=$ac_optarg ;; |
---|
| 1098 | |
---|
| 1099 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1100 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1101 | ac_prev=x_libraries ;; |
---|
| 1102 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1103 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1104 | x_libraries=$ac_optarg ;; |
---|
| 1105 | |
---|
[788] | 1106 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
| 1107 | Try \`$0 --help' for more information" |
---|
[107] | 1108 | ;; |
---|
| 1109 | |
---|
| 1110 | *=*) |
---|
| 1111 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1112 | # Reject names that are not valid shell variable names. |
---|
[788] | 1113 | case $ac_envvar in #( |
---|
| 1114 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
| 1115 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
| 1116 | esac |
---|
[763] | 1117 | eval $ac_envvar=\$ac_optarg |
---|
[107] | 1118 | export $ac_envvar ;; |
---|
| 1119 | |
---|
| 1120 | *) |
---|
| 1121 | # FIXME: should be removed in autoconf 3.0. |
---|
[788] | 1122 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
[107] | 1123 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[788] | 1124 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1125 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
[107] | 1126 | ;; |
---|
| 1127 | |
---|
| 1128 | esac |
---|
| 1129 | done |
---|
| 1130 | |
---|
| 1131 | if test -n "$ac_prev"; then |
---|
| 1132 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
[788] | 1133 | as_fn_error $? "missing argument to $ac_option" |
---|
[107] | 1134 | fi |
---|
| 1135 | |
---|
[788] | 1136 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1137 | case $enable_option_checking in |
---|
| 1138 | no) ;; |
---|
| 1139 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
| 1140 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
| 1141 | esac |
---|
| 1142 | fi |
---|
| 1143 | |
---|
| 1144 | # Check all directory arguments for consistency. |
---|
[763] | 1145 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1146 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1147 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1148 | libdir localedir mandir |
---|
[107] | 1149 | do |
---|
[763] | 1150 | eval ac_val=\$$ac_var |
---|
[788] | 1151 | # Remove trailing slashes. |
---|
[107] | 1152 | case $ac_val in |
---|
[788] | 1153 | */ ) |
---|
| 1154 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1155 | eval $ac_var=\$ac_val;; |
---|
| 1156 | esac |
---|
| 1157 | # Be sure to have absolute directory names. |
---|
| 1158 | case $ac_val in |
---|
[763] | 1159 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1160 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
[107] | 1161 | esac |
---|
[788] | 1162 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
[107] | 1163 | done |
---|
| 1164 | |
---|
| 1165 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1166 | # used to hold the argument of --host etc. |
---|
| 1167 | # FIXME: To remove some day. |
---|
| 1168 | build=$build_alias |
---|
| 1169 | host=$host_alias |
---|
| 1170 | target=$target_alias |
---|
| 1171 | |
---|
| 1172 | # FIXME: To remove some day. |
---|
| 1173 | if test "x$host_alias" != x; then |
---|
| 1174 | if test "x$build_alias" = x; then |
---|
| 1175 | cross_compiling=maybe |
---|
| 1176 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1177 | cross_compiling=yes |
---|
| 1178 | fi |
---|
| 1179 | fi |
---|
| 1180 | |
---|
| 1181 | ac_tool_prefix= |
---|
| 1182 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1183 | |
---|
| 1184 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1185 | |
---|
| 1186 | |
---|
[763] | 1187 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1188 | ac_ls_di=`ls -di .` && |
---|
| 1189 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
[788] | 1190 | as_fn_error $? "working directory cannot be determined" |
---|
[763] | 1191 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
[788] | 1192 | as_fn_error $? "pwd does not report name of working directory" |
---|
[763] | 1193 | |
---|
| 1194 | |
---|
[107] | 1195 | # Find the source files, if location was not specified. |
---|
| 1196 | if test -z "$srcdir"; then |
---|
| 1197 | ac_srcdir_defaulted=yes |
---|
[763] | 1198 | # Try the directory containing this script, then the parent directory. |
---|
[788] | 1199 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1200 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1201 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1202 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1203 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1204 | $as_echo X"$as_myself" | |
---|
[763] | 1205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1206 | s//\1/ |
---|
| 1207 | q |
---|
| 1208 | } |
---|
| 1209 | /^X\(\/\/\)[^/].*/{ |
---|
| 1210 | s//\1/ |
---|
| 1211 | q |
---|
| 1212 | } |
---|
| 1213 | /^X\(\/\/\)$/{ |
---|
| 1214 | s//\1/ |
---|
| 1215 | q |
---|
| 1216 | } |
---|
| 1217 | /^X\(\/\).*/{ |
---|
| 1218 | s//\1/ |
---|
| 1219 | q |
---|
| 1220 | } |
---|
| 1221 | s/.*/./; q'` |
---|
[107] | 1222 | srcdir=$ac_confdir |
---|
[763] | 1223 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
[107] | 1224 | srcdir=.. |
---|
| 1225 | fi |
---|
| 1226 | else |
---|
| 1227 | ac_srcdir_defaulted=no |
---|
| 1228 | fi |
---|
[763] | 1229 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1230 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
[788] | 1231 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
[763] | 1232 | fi |
---|
| 1233 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1234 | ac_abs_confdir=`( |
---|
[788] | 1235 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
[763] | 1236 | pwd)` |
---|
| 1237 | # When building in place, set srcdir=. |
---|
| 1238 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1239 | srcdir=. |
---|
[107] | 1240 | fi |
---|
[763] | 1241 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1242 | # Double slashes in file names in object file debugging info |
---|
| 1243 | # mess up M-x gdb in Emacs. |
---|
| 1244 | case $srcdir in |
---|
| 1245 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1246 | esac |
---|
| 1247 | for ac_var in $ac_precious_vars; do |
---|
| 1248 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1249 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1250 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1251 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1252 | done |
---|
[107] | 1253 | |
---|
| 1254 | # |
---|
| 1255 | # Report the --help message. |
---|
| 1256 | # |
---|
| 1257 | if test "$ac_init_help" = "long"; then |
---|
| 1258 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1259 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1260 | cat <<_ACEOF |
---|
[1088] | 1261 | \`configure' configures Duchamp 1.2.1 to adapt to many kinds of systems. |
---|
[107] | 1262 | |
---|
| 1263 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1264 | |
---|
| 1265 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1266 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1267 | |
---|
| 1268 | Defaults for the options are specified in brackets. |
---|
| 1269 | |
---|
| 1270 | Configuration: |
---|
| 1271 | -h, --help display this help and exit |
---|
| 1272 | --help=short display options specific to this package |
---|
| 1273 | --help=recursive display the short help of all the included packages |
---|
| 1274 | -V, --version display version information and exit |
---|
[788] | 1275 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
[107] | 1276 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1277 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1278 | -n, --no-create do not create output files |
---|
| 1279 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1280 | |
---|
| 1281 | Installation directories: |
---|
| 1282 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
[788] | 1283 | [$ac_default_prefix] |
---|
[107] | 1284 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
[788] | 1285 | [PREFIX] |
---|
[107] | 1286 | |
---|
| 1287 | By default, \`make install' will install all the files in |
---|
| 1288 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1289 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1290 | for instance \`--prefix=\$HOME'. |
---|
| 1291 | |
---|
| 1292 | For better control, use the options below. |
---|
| 1293 | |
---|
| 1294 | Fine tuning of the installation directories: |
---|
[788] | 1295 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1296 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1297 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1298 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1299 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1300 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1301 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1302 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1303 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1304 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1305 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1306 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1307 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1308 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1309 | --docdir=DIR documentation root [DATAROOTDIR/doc/duchamp] |
---|
| 1310 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1311 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1312 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1313 | --psdir=DIR ps documentation [DOCDIR] |
---|
[107] | 1314 | _ACEOF |
---|
| 1315 | |
---|
| 1316 | cat <<\_ACEOF |
---|
| 1317 | |
---|
| 1318 | X features: |
---|
| 1319 | --x-includes=DIR X include files are in DIR |
---|
| 1320 | --x-libraries=DIR X library files are in DIR |
---|
| 1321 | _ACEOF |
---|
| 1322 | fi |
---|
| 1323 | |
---|
| 1324 | if test -n "$ac_init_help"; then |
---|
| 1325 | case $ac_init_help in |
---|
[1088] | 1326 | short | recursive ) echo "Configuration of Duchamp 1.2.1:";; |
---|
[107] | 1327 | esac |
---|
| 1328 | cat <<\_ACEOF |
---|
| 1329 | |
---|
| 1330 | Optional Packages: |
---|
| 1331 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1332 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[342] | 1333 | |
---|
| 1334 | --with-pgplot=no Compile without PGPLOT graphics capabilities. |
---|
| 1335 | --without-pgplot Compile without PGPLOT graphics capabilities. |
---|
| 1336 | --with-pgplot=<dir> Compile with PGPLOT graphics capabilities, using the |
---|
| 1337 | directory <dir> to specify the PGPLOT library., |
---|
| 1338 | |
---|
[107] | 1339 | --with-x use the X Window System |
---|
[342] | 1340 | --with-cfitsio=<dir> The CFITSIO library and include files are in |
---|
| 1341 | directory <dir>. |
---|
| 1342 | --with-wcslib=<dir> The WCSLIB library and include files are in |
---|
| 1343 | directory <dir>. |
---|
[107] | 1344 | |
---|
| 1345 | Some influential environment variables: |
---|
| 1346 | CXX C++ compiler command |
---|
| 1347 | CXXFLAGS C++ compiler flags |
---|
| 1348 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1349 | nonstandard directory <lib dir> |
---|
[763] | 1350 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
[788] | 1351 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
[763] | 1352 | you have headers in a nonstandard directory <include dir> |
---|
[107] | 1353 | CC C compiler command |
---|
| 1354 | CFLAGS C compiler flags |
---|
| 1355 | CPP C preprocessor |
---|
[351] | 1356 | F77 Fortran 77 compiler command |
---|
| 1357 | FFLAGS Fortran 77 compiler flags |
---|
[763] | 1358 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
[107] | 1359 | |
---|
| 1360 | Use these variables to override the choices made by `configure' or to help |
---|
| 1361 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1362 | |
---|
[121] | 1363 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 1364 | _ACEOF |
---|
[763] | 1365 | ac_status=$? |
---|
[107] | 1366 | fi |
---|
| 1367 | |
---|
| 1368 | if test "$ac_init_help" = "recursive"; then |
---|
| 1369 | # If there are subdirs, report their specific --help. |
---|
| 1370 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
[788] | 1371 | test -d "$ac_dir" || |
---|
| 1372 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1373 | continue |
---|
[107] | 1374 | ac_builddir=. |
---|
| 1375 | |
---|
[763] | 1376 | case "$ac_dir" in |
---|
| 1377 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1378 | *) |
---|
[788] | 1379 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
[763] | 1380 | # A ".." for each directory in $ac_dir_suffix. |
---|
[788] | 1381 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
[763] | 1382 | case $ac_top_builddir_sub in |
---|
| 1383 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1384 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1385 | esac ;; |
---|
| 1386 | esac |
---|
| 1387 | ac_abs_top_builddir=$ac_pwd |
---|
| 1388 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1389 | # for backward compatibility: |
---|
| 1390 | ac_top_builddir=$ac_top_build_prefix |
---|
[107] | 1391 | |
---|
| 1392 | case $srcdir in |
---|
[763] | 1393 | .) # We are building in place. |
---|
[107] | 1394 | ac_srcdir=. |
---|
[763] | 1395 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1396 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1397 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[107] | 1398 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[763] | 1399 | ac_top_srcdir=$srcdir |
---|
| 1400 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1401 | *) # Relative name. |
---|
| 1402 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1403 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1404 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[107] | 1405 | esac |
---|
[763] | 1406 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[107] | 1407 | |
---|
[763] | 1408 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1409 | # Check for guested configure. |
---|
| 1410 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1411 | echo && |
---|
| 1412 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1413 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1414 | echo && |
---|
| 1415 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
[107] | 1416 | else |
---|
[788] | 1417 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
[763] | 1418 | fi || ac_status=$? |
---|
| 1419 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
[107] | 1420 | done |
---|
| 1421 | fi |
---|
| 1422 | |
---|
[763] | 1423 | test -n "$ac_init_help" && exit $ac_status |
---|
[107] | 1424 | if $ac_init_version; then |
---|
| 1425 | cat <<\_ACEOF |
---|
[1088] | 1426 | Duchamp configure 1.2.1 |
---|
| 1427 | generated by GNU Autoconf 2.69 |
---|
[107] | 1428 | |
---|
[1088] | 1429 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
[107] | 1430 | This configure script is free software; the Free Software Foundation |
---|
| 1431 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1432 | _ACEOF |
---|
[763] | 1433 | exit |
---|
[107] | 1434 | fi |
---|
[788] | 1435 | |
---|
| 1436 | ## ------------------------ ## |
---|
| 1437 | ## Autoconf initialization. ## |
---|
| 1438 | ## ------------------------ ## |
---|
| 1439 | |
---|
| 1440 | # ac_fn_cxx_try_compile LINENO |
---|
| 1441 | # ---------------------------- |
---|
| 1442 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1443 | ac_fn_cxx_try_compile () |
---|
| 1444 | { |
---|
| 1445 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1446 | rm -f conftest.$ac_objext |
---|
| 1447 | if { { ac_try="$ac_compile" |
---|
| 1448 | case "(($ac_try" in |
---|
| 1449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1450 | *) ac_try_echo=$ac_try;; |
---|
| 1451 | esac |
---|
| 1452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1453 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1454 | (eval "$ac_compile") 2>conftest.err |
---|
| 1455 | ac_status=$? |
---|
| 1456 | if test -s conftest.err; then |
---|
| 1457 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1458 | cat conftest.er1 >&5 |
---|
| 1459 | mv -f conftest.er1 conftest.err |
---|
| 1460 | fi |
---|
| 1461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1462 | test $ac_status = 0; } && { |
---|
| 1463 | test -z "$ac_cxx_werror_flag" || |
---|
| 1464 | test ! -s conftest.err |
---|
| 1465 | } && test -s conftest.$ac_objext; then : |
---|
| 1466 | ac_retval=0 |
---|
| 1467 | else |
---|
| 1468 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1470 | |
---|
| 1471 | ac_retval=1 |
---|
| 1472 | fi |
---|
| 1473 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1474 | as_fn_set_status $ac_retval |
---|
| 1475 | |
---|
| 1476 | } # ac_fn_cxx_try_compile |
---|
| 1477 | |
---|
| 1478 | # ac_fn_c_try_compile LINENO |
---|
| 1479 | # -------------------------- |
---|
| 1480 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1481 | ac_fn_c_try_compile () |
---|
| 1482 | { |
---|
| 1483 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1484 | rm -f conftest.$ac_objext |
---|
| 1485 | if { { ac_try="$ac_compile" |
---|
| 1486 | case "(($ac_try" in |
---|
| 1487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1488 | *) ac_try_echo=$ac_try;; |
---|
| 1489 | esac |
---|
| 1490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1491 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1492 | (eval "$ac_compile") 2>conftest.err |
---|
| 1493 | ac_status=$? |
---|
| 1494 | if test -s conftest.err; then |
---|
| 1495 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1496 | cat conftest.er1 >&5 |
---|
| 1497 | mv -f conftest.er1 conftest.err |
---|
| 1498 | fi |
---|
| 1499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1500 | test $ac_status = 0; } && { |
---|
| 1501 | test -z "$ac_c_werror_flag" || |
---|
| 1502 | test ! -s conftest.err |
---|
| 1503 | } && test -s conftest.$ac_objext; then : |
---|
| 1504 | ac_retval=0 |
---|
| 1505 | else |
---|
| 1506 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1508 | |
---|
| 1509 | ac_retval=1 |
---|
| 1510 | fi |
---|
| 1511 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1512 | as_fn_set_status $ac_retval |
---|
| 1513 | |
---|
| 1514 | } # ac_fn_c_try_compile |
---|
| 1515 | |
---|
| 1516 | # ac_fn_c_try_cpp LINENO |
---|
| 1517 | # ---------------------- |
---|
| 1518 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1519 | ac_fn_c_try_cpp () |
---|
| 1520 | { |
---|
| 1521 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1522 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1523 | case "(($ac_try" in |
---|
| 1524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1525 | *) ac_try_echo=$ac_try;; |
---|
| 1526 | esac |
---|
| 1527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1528 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1530 | ac_status=$? |
---|
| 1531 | if test -s conftest.err; then |
---|
| 1532 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1533 | cat conftest.er1 >&5 |
---|
| 1534 | mv -f conftest.er1 conftest.err |
---|
| 1535 | fi |
---|
| 1536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1537 | test $ac_status = 0; } > conftest.i && { |
---|
| 1538 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 1539 | test ! -s conftest.err |
---|
| 1540 | }; then : |
---|
| 1541 | ac_retval=0 |
---|
| 1542 | else |
---|
| 1543 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1545 | |
---|
| 1546 | ac_retval=1 |
---|
| 1547 | fi |
---|
| 1548 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1549 | as_fn_set_status $ac_retval |
---|
| 1550 | |
---|
| 1551 | } # ac_fn_c_try_cpp |
---|
| 1552 | |
---|
| 1553 | # ac_fn_f77_try_compile LINENO |
---|
| 1554 | # ---------------------------- |
---|
| 1555 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1556 | ac_fn_f77_try_compile () |
---|
| 1557 | { |
---|
| 1558 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1559 | rm -f conftest.$ac_objext |
---|
| 1560 | if { { ac_try="$ac_compile" |
---|
| 1561 | case "(($ac_try" in |
---|
| 1562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1563 | *) ac_try_echo=$ac_try;; |
---|
| 1564 | esac |
---|
| 1565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1566 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1567 | (eval "$ac_compile") 2>conftest.err |
---|
| 1568 | ac_status=$? |
---|
| 1569 | if test -s conftest.err; then |
---|
| 1570 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1571 | cat conftest.er1 >&5 |
---|
| 1572 | mv -f conftest.er1 conftest.err |
---|
| 1573 | fi |
---|
| 1574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1575 | test $ac_status = 0; } && { |
---|
| 1576 | test -z "$ac_f77_werror_flag" || |
---|
| 1577 | test ! -s conftest.err |
---|
| 1578 | } && test -s conftest.$ac_objext; then : |
---|
| 1579 | ac_retval=0 |
---|
| 1580 | else |
---|
| 1581 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1583 | |
---|
| 1584 | ac_retval=1 |
---|
| 1585 | fi |
---|
| 1586 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1587 | as_fn_set_status $ac_retval |
---|
| 1588 | |
---|
| 1589 | } # ac_fn_f77_try_compile |
---|
| 1590 | |
---|
| 1591 | # ac_fn_c_try_link LINENO |
---|
| 1592 | # ----------------------- |
---|
| 1593 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1594 | ac_fn_c_try_link () |
---|
| 1595 | { |
---|
| 1596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1597 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1598 | if { { ac_try="$ac_link" |
---|
| 1599 | case "(($ac_try" in |
---|
| 1600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1601 | *) ac_try_echo=$ac_try;; |
---|
| 1602 | esac |
---|
| 1603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1604 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1605 | (eval "$ac_link") 2>conftest.err |
---|
| 1606 | ac_status=$? |
---|
| 1607 | if test -s conftest.err; then |
---|
| 1608 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1609 | cat conftest.er1 >&5 |
---|
| 1610 | mv -f conftest.er1 conftest.err |
---|
| 1611 | fi |
---|
| 1612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1613 | test $ac_status = 0; } && { |
---|
| 1614 | test -z "$ac_c_werror_flag" || |
---|
| 1615 | test ! -s conftest.err |
---|
| 1616 | } && test -s conftest$ac_exeext && { |
---|
| 1617 | test "$cross_compiling" = yes || |
---|
[1088] | 1618 | test -x conftest$ac_exeext |
---|
[788] | 1619 | }; then : |
---|
| 1620 | ac_retval=0 |
---|
| 1621 | else |
---|
| 1622 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1623 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1624 | |
---|
| 1625 | ac_retval=1 |
---|
| 1626 | fi |
---|
| 1627 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1628 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1629 | # interfere with the next link command; also delete a directory that is |
---|
| 1630 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1631 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1632 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1633 | as_fn_set_status $ac_retval |
---|
| 1634 | |
---|
| 1635 | } # ac_fn_c_try_link |
---|
| 1636 | |
---|
| 1637 | # ac_fn_c_try_run LINENO |
---|
| 1638 | # ---------------------- |
---|
| 1639 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
| 1640 | # that executables *can* be run. |
---|
| 1641 | ac_fn_c_try_run () |
---|
| 1642 | { |
---|
| 1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1644 | if { { ac_try="$ac_link" |
---|
| 1645 | case "(($ac_try" in |
---|
| 1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1647 | *) ac_try_echo=$ac_try;; |
---|
| 1648 | esac |
---|
| 1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1650 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1651 | (eval "$ac_link") 2>&5 |
---|
| 1652 | ac_status=$? |
---|
| 1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1654 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1655 | { { case "(($ac_try" in |
---|
| 1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1657 | *) ac_try_echo=$ac_try;; |
---|
| 1658 | esac |
---|
| 1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1660 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1661 | (eval "$ac_try") 2>&5 |
---|
| 1662 | ac_status=$? |
---|
| 1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1664 | test $ac_status = 0; }; }; then : |
---|
| 1665 | ac_retval=0 |
---|
| 1666 | else |
---|
| 1667 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 1668 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1669 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1670 | |
---|
| 1671 | ac_retval=$ac_status |
---|
| 1672 | fi |
---|
| 1673 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1675 | as_fn_set_status $ac_retval |
---|
| 1676 | |
---|
| 1677 | } # ac_fn_c_try_run |
---|
| 1678 | |
---|
| 1679 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
| 1680 | # ------------------------------------------------------- |
---|
| 1681 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
| 1682 | # the include files in INCLUDES and setting the cache variable VAR |
---|
| 1683 | # accordingly. |
---|
| 1684 | ac_fn_c_check_header_mongrel () |
---|
| 1685 | { |
---|
| 1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1687 | if eval \${$3+:} false; then : |
---|
| 1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1689 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1690 | if eval \${$3+:} false; then : |
---|
| 1691 | $as_echo_n "(cached) " >&6 |
---|
| 1692 | fi |
---|
| 1693 | eval ac_res=\$$3 |
---|
| 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1695 | $as_echo "$ac_res" >&6; } |
---|
| 1696 | else |
---|
| 1697 | # Is the header compilable? |
---|
| 1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
| 1699 | $as_echo_n "checking $2 usability... " >&6; } |
---|
| 1700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1701 | /* end confdefs.h. */ |
---|
| 1702 | $4 |
---|
| 1703 | #include <$2> |
---|
| 1704 | _ACEOF |
---|
| 1705 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1706 | ac_header_compiler=yes |
---|
| 1707 | else |
---|
| 1708 | ac_header_compiler=no |
---|
| 1709 | fi |
---|
| 1710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
| 1712 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 1713 | |
---|
| 1714 | # Is the header present? |
---|
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
| 1716 | $as_echo_n "checking $2 presence... " >&6; } |
---|
| 1717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1718 | /* end confdefs.h. */ |
---|
| 1719 | #include <$2> |
---|
| 1720 | _ACEOF |
---|
| 1721 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 1722 | ac_header_preproc=yes |
---|
| 1723 | else |
---|
| 1724 | ac_header_preproc=no |
---|
| 1725 | fi |
---|
| 1726 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
| 1728 | $as_echo "$ac_header_preproc" >&6; } |
---|
| 1729 | |
---|
| 1730 | # So? What about this header? |
---|
| 1731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
| 1732 | yes:no: ) |
---|
| 1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 1734 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1736 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1737 | ;; |
---|
| 1738 | no:yes:* ) |
---|
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
| 1740 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
| 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
| 1742 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
| 1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
| 1744 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
| 1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 1746 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1748 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1749 | ( $as_echo "## --------------------------------------- ## |
---|
| 1750 | ## Report this to Matthew.Whiting@csiro.au ## |
---|
| 1751 | ## --------------------------------------- ##" |
---|
| 1752 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 1753 | ;; |
---|
| 1754 | esac |
---|
| 1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1756 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1757 | if eval \${$3+:} false; then : |
---|
| 1758 | $as_echo_n "(cached) " >&6 |
---|
| 1759 | else |
---|
| 1760 | eval "$3=\$ac_header_compiler" |
---|
| 1761 | fi |
---|
| 1762 | eval ac_res=\$$3 |
---|
| 1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1764 | $as_echo "$ac_res" >&6; } |
---|
| 1765 | fi |
---|
| 1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1767 | |
---|
| 1768 | } # ac_fn_c_check_header_mongrel |
---|
| 1769 | |
---|
| 1770 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
| 1771 | # ------------------------------------------------------- |
---|
| 1772 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
| 1773 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
| 1774 | ac_fn_c_check_header_compile () |
---|
| 1775 | { |
---|
| 1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1778 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1779 | if eval \${$3+:} false; then : |
---|
| 1780 | $as_echo_n "(cached) " >&6 |
---|
| 1781 | else |
---|
| 1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1783 | /* end confdefs.h. */ |
---|
| 1784 | $4 |
---|
| 1785 | #include <$2> |
---|
| 1786 | _ACEOF |
---|
| 1787 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1788 | eval "$3=yes" |
---|
| 1789 | else |
---|
| 1790 | eval "$3=no" |
---|
| 1791 | fi |
---|
| 1792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1793 | fi |
---|
| 1794 | eval ac_res=\$$3 |
---|
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1796 | $as_echo "$ac_res" >&6; } |
---|
| 1797 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1798 | |
---|
| 1799 | } # ac_fn_c_check_header_compile |
---|
| 1800 | |
---|
| 1801 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
| 1802 | # ------------------------------------------- |
---|
| 1803 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
| 1804 | # variable VAR accordingly. |
---|
| 1805 | ac_fn_c_check_type () |
---|
| 1806 | { |
---|
| 1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1809 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1810 | if eval \${$3+:} false; then : |
---|
| 1811 | $as_echo_n "(cached) " >&6 |
---|
| 1812 | else |
---|
| 1813 | eval "$3=no" |
---|
| 1814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1815 | /* end confdefs.h. */ |
---|
| 1816 | $4 |
---|
| 1817 | int |
---|
| 1818 | main () |
---|
| 1819 | { |
---|
| 1820 | if (sizeof ($2)) |
---|
| 1821 | return 0; |
---|
| 1822 | ; |
---|
| 1823 | return 0; |
---|
| 1824 | } |
---|
| 1825 | _ACEOF |
---|
| 1826 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1828 | /* end confdefs.h. */ |
---|
| 1829 | $4 |
---|
| 1830 | int |
---|
| 1831 | main () |
---|
| 1832 | { |
---|
| 1833 | if (sizeof (($2))) |
---|
| 1834 | return 0; |
---|
| 1835 | ; |
---|
| 1836 | return 0; |
---|
| 1837 | } |
---|
| 1838 | _ACEOF |
---|
| 1839 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1840 | |
---|
| 1841 | else |
---|
| 1842 | eval "$3=yes" |
---|
| 1843 | fi |
---|
| 1844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1845 | fi |
---|
| 1846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1847 | fi |
---|
| 1848 | eval ac_res=\$$3 |
---|
| 1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1850 | $as_echo "$ac_res" >&6; } |
---|
| 1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1852 | |
---|
| 1853 | } # ac_fn_c_check_type |
---|
| 1854 | |
---|
| 1855 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
| 1856 | # ---------------------------------- |
---|
| 1857 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
| 1858 | ac_fn_c_check_func () |
---|
| 1859 | { |
---|
| 1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1862 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1863 | if eval \${$3+:} false; then : |
---|
| 1864 | $as_echo_n "(cached) " >&6 |
---|
| 1865 | else |
---|
| 1866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1867 | /* end confdefs.h. */ |
---|
| 1868 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
| 1869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 1870 | #define $2 innocuous_$2 |
---|
| 1871 | |
---|
| 1872 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1873 | which can conflict with char $2 (); below. |
---|
| 1874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 1875 | <limits.h> exists even on freestanding compilers. */ |
---|
| 1876 | |
---|
| 1877 | #ifdef __STDC__ |
---|
| 1878 | # include <limits.h> |
---|
| 1879 | #else |
---|
| 1880 | # include <assert.h> |
---|
| 1881 | #endif |
---|
| 1882 | |
---|
| 1883 | #undef $2 |
---|
| 1884 | |
---|
| 1885 | /* Override any GCC internal prototype to avoid an error. |
---|
| 1886 | Use char because int might match the return type of a GCC |
---|
| 1887 | builtin and then its argument prototype would still apply. */ |
---|
| 1888 | #ifdef __cplusplus |
---|
| 1889 | extern "C" |
---|
| 1890 | #endif |
---|
| 1891 | char $2 (); |
---|
| 1892 | /* The GNU C library defines this for functions which it implements |
---|
| 1893 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1894 | something starting with __ and the normal name is an alias. */ |
---|
| 1895 | #if defined __stub_$2 || defined __stub___$2 |
---|
| 1896 | choke me |
---|
| 1897 | #endif |
---|
| 1898 | |
---|
| 1899 | int |
---|
| 1900 | main () |
---|
| 1901 | { |
---|
| 1902 | return $2 (); |
---|
| 1903 | ; |
---|
| 1904 | return 0; |
---|
| 1905 | } |
---|
| 1906 | _ACEOF |
---|
| 1907 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 1908 | eval "$3=yes" |
---|
| 1909 | else |
---|
| 1910 | eval "$3=no" |
---|
| 1911 | fi |
---|
| 1912 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 1913 | conftest$ac_exeext conftest.$ac_ext |
---|
| 1914 | fi |
---|
| 1915 | eval ac_res=\$$3 |
---|
| 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1917 | $as_echo "$ac_res" >&6; } |
---|
| 1918 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1919 | |
---|
| 1920 | } # ac_fn_c_check_func |
---|
| 1921 | |
---|
| 1922 | # ac_fn_f77_try_link LINENO |
---|
| 1923 | # ------------------------- |
---|
| 1924 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1925 | ac_fn_f77_try_link () |
---|
| 1926 | { |
---|
| 1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1928 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1929 | if { { ac_try="$ac_link" |
---|
| 1930 | case "(($ac_try" in |
---|
| 1931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1932 | *) ac_try_echo=$ac_try;; |
---|
| 1933 | esac |
---|
| 1934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1935 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1936 | (eval "$ac_link") 2>conftest.err |
---|
| 1937 | ac_status=$? |
---|
| 1938 | if test -s conftest.err; then |
---|
| 1939 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1940 | cat conftest.er1 >&5 |
---|
| 1941 | mv -f conftest.er1 conftest.err |
---|
| 1942 | fi |
---|
| 1943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1944 | test $ac_status = 0; } && { |
---|
| 1945 | test -z "$ac_f77_werror_flag" || |
---|
| 1946 | test ! -s conftest.err |
---|
| 1947 | } && test -s conftest$ac_exeext && { |
---|
| 1948 | test "$cross_compiling" = yes || |
---|
[1088] | 1949 | test -x conftest$ac_exeext |
---|
[788] | 1950 | }; then : |
---|
| 1951 | ac_retval=0 |
---|
| 1952 | else |
---|
| 1953 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1955 | |
---|
| 1956 | ac_retval=1 |
---|
| 1957 | fi |
---|
| 1958 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1959 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1960 | # interfere with the next link command; also delete a directory that is |
---|
| 1961 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1962 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1963 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1964 | as_fn_set_status $ac_retval |
---|
| 1965 | |
---|
| 1966 | } # ac_fn_f77_try_link |
---|
[763] | 1967 | cat >config.log <<_ACEOF |
---|
[107] | 1968 | This file contains any messages produced by compilers while |
---|
| 1969 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1970 | |
---|
[1088] | 1971 | It was created by Duchamp $as_me 1.2.1, which was |
---|
| 1972 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
[107] | 1973 | |
---|
| 1974 | $ $0 $@ |
---|
| 1975 | |
---|
| 1976 | _ACEOF |
---|
[763] | 1977 | exec 5>>config.log |
---|
[107] | 1978 | { |
---|
| 1979 | cat <<_ASUNAME |
---|
| 1980 | ## --------- ## |
---|
| 1981 | ## Platform. ## |
---|
| 1982 | ## --------- ## |
---|
| 1983 | |
---|
| 1984 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1985 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1986 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1987 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1988 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1989 | |
---|
| 1990 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1991 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1992 | |
---|
| 1993 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1994 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1995 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
[763] | 1996 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
[107] | 1997 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1998 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1999 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 2000 | |
---|
| 2001 | _ASUNAME |
---|
| 2002 | |
---|
| 2003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2004 | for as_dir in $PATH |
---|
| 2005 | do |
---|
| 2006 | IFS=$as_save_IFS |
---|
| 2007 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2008 | $as_echo "PATH: $as_dir" |
---|
| 2009 | done |
---|
[763] | 2010 | IFS=$as_save_IFS |
---|
[107] | 2011 | |
---|
| 2012 | } >&5 |
---|
| 2013 | |
---|
| 2014 | cat >&5 <<_ACEOF |
---|
| 2015 | |
---|
| 2016 | |
---|
| 2017 | ## ----------- ## |
---|
| 2018 | ## Core tests. ## |
---|
| 2019 | ## ----------- ## |
---|
| 2020 | |
---|
| 2021 | _ACEOF |
---|
| 2022 | |
---|
| 2023 | |
---|
| 2024 | # Keep a trace of the command line. |
---|
| 2025 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 2026 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 2027 | # Also quote any args containing shell meta-characters. |
---|
| 2028 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 2029 | ac_configure_args= |
---|
| 2030 | ac_configure_args0= |
---|
| 2031 | ac_configure_args1= |
---|
| 2032 | ac_must_keep_next=false |
---|
| 2033 | for ac_pass in 1 2 |
---|
| 2034 | do |
---|
| 2035 | for ac_arg |
---|
| 2036 | do |
---|
| 2037 | case $ac_arg in |
---|
| 2038 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 2039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 2040 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 2041 | continue ;; |
---|
[763] | 2042 | *\'*) |
---|
[788] | 2043 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[107] | 2044 | esac |
---|
| 2045 | case $ac_pass in |
---|
[788] | 2046 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
[107] | 2047 | 2) |
---|
[788] | 2048 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
[107] | 2049 | if test $ac_must_keep_next = true; then |
---|
[349] | 2050 | ac_must_keep_next=false # Got value, back to normal. |
---|
[107] | 2051 | else |
---|
[349] | 2052 | case $ac_arg in |
---|
| 2053 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 2054 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 2055 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 2056 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 2057 | case "$ac_configure_args0 " in |
---|
| 2058 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 2059 | esac |
---|
| 2060 | ;; |
---|
| 2061 | -* ) ac_must_keep_next=true ;; |
---|
| 2062 | esac |
---|
[107] | 2063 | fi |
---|
[788] | 2064 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
[107] | 2065 | ;; |
---|
| 2066 | esac |
---|
| 2067 | done |
---|
| 2068 | done |
---|
[788] | 2069 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
| 2070 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
[107] | 2071 | |
---|
| 2072 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 2073 | # config.log. We remove comments because anyway the quotes in there |
---|
| 2074 | # would cause problems or look ugly. |
---|
[763] | 2075 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 2076 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
[107] | 2077 | trap 'exit_status=$? |
---|
| 2078 | # Save into config.log some information that might help in debugging. |
---|
| 2079 | { |
---|
| 2080 | echo |
---|
| 2081 | |
---|
[788] | 2082 | $as_echo "## ---------------- ## |
---|
[107] | 2083 | ## Cache variables. ## |
---|
[788] | 2084 | ## ---------------- ##" |
---|
[107] | 2085 | echo |
---|
| 2086 | # The following way of writing the cache mishandles newlines in values, |
---|
[763] | 2087 | ( |
---|
| 2088 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 2089 | eval ac_val=\$$ac_var |
---|
| 2090 | case $ac_val in #( |
---|
| 2091 | *${as_nl}*) |
---|
| 2092 | case $ac_var in #( |
---|
[788] | 2093 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 2094 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
[763] | 2095 | esac |
---|
| 2096 | case $ac_var in #( |
---|
| 2097 | _ | IFS | as_nl) ;; #( |
---|
[788] | 2098 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 2099 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
[763] | 2100 | esac ;; |
---|
| 2101 | esac |
---|
| 2102 | done |
---|
[107] | 2103 | (set) 2>&1 | |
---|
[763] | 2104 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 2105 | *${as_nl}ac_space=\ *) |
---|
[107] | 2106 | sed -n \ |
---|
[763] | 2107 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 2108 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 2109 | ;; #( |
---|
[107] | 2110 | *) |
---|
[763] | 2111 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[107] | 2112 | ;; |
---|
[763] | 2113 | esac | |
---|
| 2114 | sort |
---|
| 2115 | ) |
---|
[107] | 2116 | echo |
---|
| 2117 | |
---|
[788] | 2118 | $as_echo "## ----------------- ## |
---|
[107] | 2119 | ## Output variables. ## |
---|
[788] | 2120 | ## ----------------- ##" |
---|
[107] | 2121 | echo |
---|
| 2122 | for ac_var in $ac_subst_vars |
---|
| 2123 | do |
---|
[763] | 2124 | eval ac_val=\$$ac_var |
---|
| 2125 | case $ac_val in |
---|
[788] | 2126 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
[763] | 2127 | esac |
---|
[788] | 2128 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[107] | 2129 | done | sort |
---|
| 2130 | echo |
---|
| 2131 | |
---|
| 2132 | if test -n "$ac_subst_files"; then |
---|
[788] | 2133 | $as_echo "## ------------------- ## |
---|
[763] | 2134 | ## File substitutions. ## |
---|
[788] | 2135 | ## ------------------- ##" |
---|
[107] | 2136 | echo |
---|
| 2137 | for ac_var in $ac_subst_files |
---|
| 2138 | do |
---|
[763] | 2139 | eval ac_val=\$$ac_var |
---|
| 2140 | case $ac_val in |
---|
[788] | 2141 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
[763] | 2142 | esac |
---|
[788] | 2143 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[107] | 2144 | done | sort |
---|
| 2145 | echo |
---|
| 2146 | fi |
---|
| 2147 | |
---|
| 2148 | if test -s confdefs.h; then |
---|
[788] | 2149 | $as_echo "## ----------- ## |
---|
[107] | 2150 | ## confdefs.h. ## |
---|
[788] | 2151 | ## ----------- ##" |
---|
[107] | 2152 | echo |
---|
[763] | 2153 | cat confdefs.h |
---|
[107] | 2154 | echo |
---|
| 2155 | fi |
---|
| 2156 | test "$ac_signal" != 0 && |
---|
[788] | 2157 | $as_echo "$as_me: caught signal $ac_signal" |
---|
| 2158 | $as_echo "$as_me: exit $exit_status" |
---|
[107] | 2159 | } >&5 |
---|
[763] | 2160 | rm -f core *.core core.conftest.* && |
---|
| 2161 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
[107] | 2162 | exit $exit_status |
---|
[763] | 2163 | ' 0 |
---|
[107] | 2164 | for ac_signal in 1 2 13 15; do |
---|
[788] | 2165 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
[107] | 2166 | done |
---|
| 2167 | ac_signal=0 |
---|
| 2168 | |
---|
| 2169 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
[763] | 2170 | rm -f -r conftest* confdefs.h |
---|
[107] | 2171 | |
---|
[788] | 2172 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
| 2173 | |
---|
[107] | 2174 | # Predefined preprocessor variables. |
---|
| 2175 | |
---|
| 2176 | cat >>confdefs.h <<_ACEOF |
---|
| 2177 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 2178 | _ACEOF |
---|
| 2179 | |
---|
| 2180 | cat >>confdefs.h <<_ACEOF |
---|
| 2181 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 2182 | _ACEOF |
---|
| 2183 | |
---|
| 2184 | cat >>confdefs.h <<_ACEOF |
---|
| 2185 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 2186 | _ACEOF |
---|
| 2187 | |
---|
| 2188 | cat >>confdefs.h <<_ACEOF |
---|
| 2189 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 2190 | _ACEOF |
---|
| 2191 | |
---|
| 2192 | cat >>confdefs.h <<_ACEOF |
---|
| 2193 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 2194 | _ACEOF |
---|
| 2195 | |
---|
[788] | 2196 | cat >>confdefs.h <<_ACEOF |
---|
| 2197 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
| 2198 | _ACEOF |
---|
[107] | 2199 | |
---|
[788] | 2200 | |
---|
[107] | 2201 | # Let the site file select an alternate cache file if it wants to. |
---|
[788] | 2202 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 2203 | ac_site_file1=NONE |
---|
| 2204 | ac_site_file2=NONE |
---|
[763] | 2205 | if test -n "$CONFIG_SITE"; then |
---|
[788] | 2206 | # We do not want a PATH search for config.site. |
---|
| 2207 | case $CONFIG_SITE in #(( |
---|
| 2208 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2209 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
| 2210 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2211 | esac |
---|
[763] | 2212 | elif test "x$prefix" != xNONE; then |
---|
[788] | 2213 | ac_site_file1=$prefix/share/config.site |
---|
| 2214 | ac_site_file2=$prefix/etc/config.site |
---|
[763] | 2215 | else |
---|
[788] | 2216 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
| 2217 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
[107] | 2218 | fi |
---|
[788] | 2219 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
[763] | 2220 | do |
---|
[788] | 2221 | test "x$ac_site_file" = xNONE && continue |
---|
| 2222 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
| 2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
| 2224 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
[107] | 2225 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
[788] | 2226 | . "$ac_site_file" \ |
---|
| 2227 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2229 | as_fn_error $? "failed to load site script $ac_site_file |
---|
| 2230 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2231 | fi |
---|
| 2232 | done |
---|
| 2233 | |
---|
| 2234 | if test -r "$cache_file"; then |
---|
[788] | 2235 | # Some versions of bash will fail to source /dev/null (special files |
---|
| 2236 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
| 2237 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
| 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
| 2239 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
[107] | 2240 | case $cache_file in |
---|
[763] | 2241 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 2242 | *) . "./$cache_file";; |
---|
[107] | 2243 | esac |
---|
| 2244 | fi |
---|
| 2245 | else |
---|
[788] | 2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
| 2247 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
[107] | 2248 | >$cache_file |
---|
| 2249 | fi |
---|
| 2250 | |
---|
| 2251 | # Check that the precious variables saved in the cache have kept the same |
---|
| 2252 | # value. |
---|
| 2253 | ac_cache_corrupted=false |
---|
[763] | 2254 | for ac_var in $ac_precious_vars; do |
---|
[107] | 2255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 2256 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
[763] | 2257 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 2258 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
[107] | 2259 | case $ac_old_set,$ac_new_set in |
---|
| 2260 | set,) |
---|
[788] | 2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 2262 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
[107] | 2263 | ac_cache_corrupted=: ;; |
---|
| 2264 | ,set) |
---|
[788] | 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 2266 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
[107] | 2267 | ac_cache_corrupted=: ;; |
---|
| 2268 | ,);; |
---|
| 2269 | *) |
---|
| 2270 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
[788] | 2271 | # differences in whitespace do not lead to failure. |
---|
| 2272 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 2273 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 2274 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 2276 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 2277 | ac_cache_corrupted=: |
---|
| 2278 | else |
---|
| 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 2280 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 2281 | eval $ac_var=\$ac_old_val |
---|
| 2282 | fi |
---|
| 2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
| 2284 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
| 2286 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
[107] | 2287 | fi;; |
---|
| 2288 | esac |
---|
| 2289 | # Pass precious variables to config.status. |
---|
| 2290 | if test "$ac_new_set" = set; then |
---|
| 2291 | case $ac_new_val in |
---|
[788] | 2292 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[107] | 2293 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 2294 | esac |
---|
| 2295 | case " $ac_configure_args " in |
---|
| 2296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
[788] | 2297 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
[107] | 2298 | esac |
---|
| 2299 | fi |
---|
| 2300 | done |
---|
| 2301 | if $ac_cache_corrupted; then |
---|
[788] | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
| 2305 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 2306 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
[107] | 2307 | fi |
---|
[788] | 2308 | ## -------------------- ## |
---|
| 2309 | ## Main body of script. ## |
---|
| 2310 | ## -------------------- ## |
---|
[107] | 2311 | |
---|
[763] | 2312 | ac_ext=c |
---|
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[107] | 2317 | |
---|
| 2318 | |
---|
| 2319 | |
---|
[763] | 2320 | ac_config_headers="$ac_config_headers src/config.h" |
---|
[107] | 2321 | |
---|
| 2322 | |
---|
| 2323 | |
---|
| 2324 | # Checks for programs. |
---|
[763] | 2325 | ac_ext=cpp |
---|
[107] | 2326 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2327 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2328 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2329 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
[763] | 2330 | if test -z "$CXX"; then |
---|
| 2331 | if test -n "$CCC"; then |
---|
| 2332 | CXX=$CCC |
---|
| 2333 | else |
---|
| 2334 | if test -n "$ac_tool_prefix"; then |
---|
| 2335 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[107] | 2336 | do |
---|
| 2337 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2338 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2340 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2341 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 2342 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2343 | else |
---|
| 2344 | if test -n "$CXX"; then |
---|
| 2345 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 2346 | else |
---|
| 2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2348 | for as_dir in $PATH |
---|
| 2349 | do |
---|
| 2350 | IFS=$as_save_IFS |
---|
| 2351 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2352 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2354 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
[788] | 2355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2356 | break 2 |
---|
| 2357 | fi |
---|
| 2358 | done |
---|
[788] | 2359 | done |
---|
[763] | 2360 | IFS=$as_save_IFS |
---|
[107] | 2361 | |
---|
| 2362 | fi |
---|
| 2363 | fi |
---|
| 2364 | CXX=$ac_cv_prog_CXX |
---|
| 2365 | if test -n "$CXX"; then |
---|
[788] | 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 2367 | $as_echo "$CXX" >&6; } |
---|
[107] | 2368 | else |
---|
[788] | 2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2370 | $as_echo "no" >&6; } |
---|
[107] | 2371 | fi |
---|
| 2372 | |
---|
[763] | 2373 | |
---|
[107] | 2374 | test -n "$CXX" && break |
---|
| 2375 | done |
---|
| 2376 | fi |
---|
| 2377 | if test -z "$CXX"; then |
---|
| 2378 | ac_ct_CXX=$CXX |
---|
[763] | 2379 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[107] | 2380 | do |
---|
| 2381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2382 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2384 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2385 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 2386 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2387 | else |
---|
| 2388 | if test -n "$ac_ct_CXX"; then |
---|
| 2389 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 2390 | else |
---|
| 2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2392 | for as_dir in $PATH |
---|
| 2393 | do |
---|
| 2394 | IFS=$as_save_IFS |
---|
| 2395 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2396 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2398 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
[788] | 2399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2400 | break 2 |
---|
| 2401 | fi |
---|
| 2402 | done |
---|
[788] | 2403 | done |
---|
[763] | 2404 | IFS=$as_save_IFS |
---|
[107] | 2405 | |
---|
| 2406 | fi |
---|
| 2407 | fi |
---|
| 2408 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 2409 | if test -n "$ac_ct_CXX"; then |
---|
[788] | 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 2411 | $as_echo "$ac_ct_CXX" >&6; } |
---|
[107] | 2412 | else |
---|
[788] | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2414 | $as_echo "no" >&6; } |
---|
[107] | 2415 | fi |
---|
| 2416 | |
---|
[763] | 2417 | |
---|
[107] | 2418 | test -n "$ac_ct_CXX" && break |
---|
| 2419 | done |
---|
| 2420 | |
---|
[763] | 2421 | if test "x$ac_ct_CXX" = x; then |
---|
| 2422 | CXX="g++" |
---|
| 2423 | else |
---|
| 2424 | case $cross_compiling:$ac_tool_warned in |
---|
| 2425 | yes:) |
---|
[788] | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2427 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 2428 | ac_tool_warned=yes ;; |
---|
| 2429 | esac |
---|
| 2430 | CXX=$ac_ct_CXX |
---|
| 2431 | fi |
---|
[107] | 2432 | fi |
---|
| 2433 | |
---|
[763] | 2434 | fi |
---|
| 2435 | fi |
---|
[107] | 2436 | # Provide some information about the compiler. |
---|
[788] | 2437 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 2438 | set X $ac_compile |
---|
| 2439 | ac_compiler=$2 |
---|
| 2440 | for ac_option in --version -v -V -qversion; do |
---|
| 2441 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 2442 | case "(($ac_try" in |
---|
| 2443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2444 | *) ac_try_echo=$ac_try;; |
---|
| 2445 | esac |
---|
[788] | 2446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2447 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2448 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[107] | 2449 | ac_status=$? |
---|
[788] | 2450 | if test -s conftest.err; then |
---|
| 2451 | sed '10a\ |
---|
| 2452 | ... rest of stderr output deleted ... |
---|
| 2453 | 10q' conftest.err >conftest.er1 |
---|
| 2454 | cat conftest.er1 >&5 |
---|
| 2455 | fi |
---|
| 2456 | rm -f conftest.er1 conftest.err |
---|
| 2457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2458 | test $ac_status = 0; } |
---|
| 2459 | done |
---|
[107] | 2460 | |
---|
[788] | 2461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2462 | /* end confdefs.h. */ |
---|
| 2463 | |
---|
| 2464 | int |
---|
| 2465 | main () |
---|
| 2466 | { |
---|
| 2467 | |
---|
| 2468 | ; |
---|
| 2469 | return 0; |
---|
| 2470 | } |
---|
| 2471 | _ACEOF |
---|
| 2472 | ac_clean_files_save=$ac_clean_files |
---|
[788] | 2473 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
[107] | 2474 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2475 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2476 | # of exeext. |
---|
[788] | 2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
| 2478 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
| 2479 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2480 | |
---|
| 2481 | # The possible output files: |
---|
| 2482 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2483 | |
---|
[763] | 2484 | ac_rmfiles= |
---|
| 2485 | for ac_file in $ac_files |
---|
| 2486 | do |
---|
| 2487 | case $ac_file in |
---|
[788] | 2488 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
[763] | 2489 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2490 | esac |
---|
| 2491 | done |
---|
| 2492 | rm -f $ac_rmfiles |
---|
| 2493 | |
---|
[788] | 2494 | if { { ac_try="$ac_link_default" |
---|
[763] | 2495 | case "(($ac_try" in |
---|
| 2496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2497 | *) ac_try_echo=$ac_try;; |
---|
| 2498 | esac |
---|
[788] | 2499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2500 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2501 | (eval "$ac_link_default") 2>&5 |
---|
[107] | 2502 | ac_status=$? |
---|
[788] | 2503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2504 | test $ac_status = 0; }; then : |
---|
[763] | 2505 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2506 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2507 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2508 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2509 | # Autoconf. |
---|
| 2510 | for ac_file in $ac_files '' |
---|
[107] | 2511 | do |
---|
| 2512 | test -f "$ac_file" || continue |
---|
| 2513 | case $ac_file in |
---|
[788] | 2514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
[349] | 2515 | ;; |
---|
[107] | 2516 | [ab].out ) |
---|
[349] | 2517 | # We found the default executable, but exeext='' is most |
---|
| 2518 | # certainly right. |
---|
| 2519 | break;; |
---|
[107] | 2520 | *.* ) |
---|
[788] | 2521 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
[763] | 2522 | then :; else |
---|
| 2523 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2524 | fi |
---|
| 2525 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2526 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2527 | # argument, so we may need to know it at that point already. |
---|
| 2528 | # Even if this section looks crufty: it has the advantage of |
---|
| 2529 | # actually working. |
---|
[349] | 2530 | break;; |
---|
[107] | 2531 | * ) |
---|
[349] | 2532 | break;; |
---|
[107] | 2533 | esac |
---|
| 2534 | done |
---|
[763] | 2535 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2536 | |
---|
[107] | 2537 | else |
---|
[763] | 2538 | ac_file='' |
---|
| 2539 | fi |
---|
[788] | 2540 | if test -z "$ac_file"; then : |
---|
| 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2542 | $as_echo "no" >&6; } |
---|
| 2543 | $as_echo "$as_me: failed program was:" >&5 |
---|
[107] | 2544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2545 | |
---|
[788] | 2546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2548 | as_fn_error 77 "C++ compiler cannot create executables |
---|
| 2549 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2550 | else |
---|
| 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2552 | $as_echo "yes" >&6; } |
---|
[107] | 2553 | fi |
---|
[788] | 2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
| 2555 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
| 2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
| 2557 | $as_echo "$ac_file" >&6; } |
---|
[107] | 2558 | ac_exeext=$ac_cv_exeext |
---|
| 2559 | |
---|
[788] | 2560 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
[107] | 2561 | ac_clean_files=$ac_clean_files_save |
---|
[788] | 2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
| 2563 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
| 2564 | if { { ac_try="$ac_link" |
---|
[763] | 2565 | case "(($ac_try" in |
---|
| 2566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2567 | *) ac_try_echo=$ac_try;; |
---|
| 2568 | esac |
---|
[788] | 2569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2570 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2571 | (eval "$ac_link") 2>&5 |
---|
[107] | 2572 | ac_status=$? |
---|
[788] | 2573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2574 | test $ac_status = 0; }; then : |
---|
[107] | 2575 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2576 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2577 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2578 | # `rm'. |
---|
| 2579 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2580 | test -f "$ac_file" || continue |
---|
| 2581 | case $ac_file in |
---|
[788] | 2582 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
[107] | 2583 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
[349] | 2584 | break;; |
---|
[107] | 2585 | * ) break;; |
---|
| 2586 | esac |
---|
| 2587 | done |
---|
| 2588 | else |
---|
[788] | 2589 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2591 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
| 2592 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2593 | fi |
---|
[788] | 2594 | rm -f conftest conftest$ac_cv_exeext |
---|
| 2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
| 2596 | $as_echo "$ac_cv_exeext" >&6; } |
---|
[107] | 2597 | |
---|
| 2598 | rm -f conftest.$ac_ext |
---|
| 2599 | EXEEXT=$ac_cv_exeext |
---|
| 2600 | ac_exeext=$EXEEXT |
---|
[788] | 2601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2602 | /* end confdefs.h. */ |
---|
| 2603 | #include <stdio.h> |
---|
| 2604 | int |
---|
| 2605 | main () |
---|
| 2606 | { |
---|
| 2607 | FILE *f = fopen ("conftest.out", "w"); |
---|
| 2608 | return ferror (f) || fclose (f) != 0; |
---|
| 2609 | |
---|
| 2610 | ; |
---|
| 2611 | return 0; |
---|
| 2612 | } |
---|
| 2613 | _ACEOF |
---|
| 2614 | ac_clean_files="$ac_clean_files conftest.out" |
---|
| 2615 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2616 | # the compiler is broken, or we cross compile. |
---|
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
| 2618 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
| 2619 | if test "$cross_compiling" != yes; then |
---|
| 2620 | { { ac_try="$ac_link" |
---|
| 2621 | case "(($ac_try" in |
---|
| 2622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2623 | *) ac_try_echo=$ac_try;; |
---|
| 2624 | esac |
---|
| 2625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2626 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2627 | (eval "$ac_link") 2>&5 |
---|
| 2628 | ac_status=$? |
---|
| 2629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2630 | test $ac_status = 0; } |
---|
| 2631 | if { ac_try='./conftest$ac_cv_exeext' |
---|
| 2632 | { { case "(($ac_try" in |
---|
| 2633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2634 | *) ac_try_echo=$ac_try;; |
---|
| 2635 | esac |
---|
| 2636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2637 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2638 | (eval "$ac_try") 2>&5 |
---|
| 2639 | ac_status=$? |
---|
| 2640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2641 | test $ac_status = 0; }; }; then |
---|
| 2642 | cross_compiling=no |
---|
| 2643 | else |
---|
| 2644 | if test "$cross_compiling" = maybe; then |
---|
| 2645 | cross_compiling=yes |
---|
| 2646 | else |
---|
| 2647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2648 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2649 | as_fn_error $? "cannot run C++ compiled programs. |
---|
| 2650 | If you meant to cross compile, use \`--host'. |
---|
| 2651 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2652 | fi |
---|
| 2653 | fi |
---|
| 2654 | fi |
---|
| 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
| 2656 | $as_echo "$cross_compiling" >&6; } |
---|
| 2657 | |
---|
| 2658 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
| 2659 | ac_clean_files=$ac_clean_files_save |
---|
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
| 2661 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
| 2662 | if ${ac_cv_objext+:} false; then : |
---|
| 2663 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2664 | else |
---|
[788] | 2665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2666 | /* end confdefs.h. */ |
---|
| 2667 | |
---|
| 2668 | int |
---|
| 2669 | main () |
---|
| 2670 | { |
---|
| 2671 | |
---|
| 2672 | ; |
---|
| 2673 | return 0; |
---|
| 2674 | } |
---|
| 2675 | _ACEOF |
---|
| 2676 | rm -f conftest.o conftest.obj |
---|
[788] | 2677 | if { { ac_try="$ac_compile" |
---|
[763] | 2678 | case "(($ac_try" in |
---|
| 2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2680 | *) ac_try_echo=$ac_try;; |
---|
| 2681 | esac |
---|
[788] | 2682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2683 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2684 | (eval "$ac_compile") 2>&5 |
---|
[107] | 2685 | ac_status=$? |
---|
[788] | 2686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2687 | test $ac_status = 0; }; then : |
---|
[763] | 2688 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2689 | test -f "$ac_file" || continue; |
---|
[107] | 2690 | case $ac_file in |
---|
[788] | 2691 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
[107] | 2692 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2693 | break;; |
---|
| 2694 | esac |
---|
| 2695 | done |
---|
| 2696 | else |
---|
[788] | 2697 | $as_echo "$as_me: failed program was:" >&5 |
---|
[107] | 2698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2699 | |
---|
[788] | 2700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2702 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
| 2703 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2704 | fi |
---|
| 2705 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2706 | fi |
---|
[788] | 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
| 2708 | $as_echo "$ac_cv_objext" >&6; } |
---|
[107] | 2709 | OBJEXT=$ac_cv_objext |
---|
| 2710 | ac_objext=$OBJEXT |
---|
[788] | 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2712 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 2713 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 2714 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2715 | else |
---|
[788] | 2716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2717 | /* end confdefs.h. */ |
---|
| 2718 | |
---|
| 2719 | int |
---|
| 2720 | main () |
---|
| 2721 | { |
---|
| 2722 | #ifndef __GNUC__ |
---|
| 2723 | choke me |
---|
| 2724 | #endif |
---|
| 2725 | |
---|
| 2726 | ; |
---|
| 2727 | return 0; |
---|
| 2728 | } |
---|
| 2729 | _ACEOF |
---|
[788] | 2730 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[107] | 2731 | ac_compiler_gnu=yes |
---|
| 2732 | else |
---|
[788] | 2733 | ac_compiler_gnu=no |
---|
[107] | 2734 | fi |
---|
[763] | 2735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2736 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2737 | |
---|
| 2738 | fi |
---|
[788] | 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2740 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 2741 | if test $ac_compiler_gnu = yes; then |
---|
| 2742 | GXX=yes |
---|
| 2743 | else |
---|
| 2744 | GXX= |
---|
| 2745 | fi |
---|
[107] | 2746 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2747 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
[788] | 2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 2749 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 2750 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 2751 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2752 | else |
---|
[763] | 2753 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 2754 | ac_cxx_werror_flag=yes |
---|
| 2755 | ac_cv_prog_cxx_g=no |
---|
| 2756 | CXXFLAGS="-g" |
---|
[788] | 2757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2758 | /* end confdefs.h. */ |
---|
| 2759 | |
---|
| 2760 | int |
---|
| 2761 | main () |
---|
| 2762 | { |
---|
| 2763 | |
---|
| 2764 | ; |
---|
| 2765 | return 0; |
---|
| 2766 | } |
---|
| 2767 | _ACEOF |
---|
[788] | 2768 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[107] | 2769 | ac_cv_prog_cxx_g=yes |
---|
| 2770 | else |
---|
[788] | 2771 | CXXFLAGS="" |
---|
| 2772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2773 | /* end confdefs.h. */ |
---|
[763] | 2774 | |
---|
[107] | 2775 | int |
---|
| 2776 | main () |
---|
| 2777 | { |
---|
[763] | 2778 | |
---|
[107] | 2779 | ; |
---|
| 2780 | return 0; |
---|
| 2781 | } |
---|
| 2782 | _ACEOF |
---|
[788] | 2783 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 2784 | |
---|
[107] | 2785 | else |
---|
[788] | 2786 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
[763] | 2787 | CXXFLAGS="-g" |
---|
[788] | 2788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2789 | /* end confdefs.h. */ |
---|
[763] | 2790 | |
---|
[107] | 2791 | int |
---|
| 2792 | main () |
---|
| 2793 | { |
---|
[763] | 2794 | |
---|
[107] | 2795 | ; |
---|
| 2796 | return 0; |
---|
| 2797 | } |
---|
| 2798 | _ACEOF |
---|
[788] | 2799 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[763] | 2800 | ac_cv_prog_cxx_g=yes |
---|
[107] | 2801 | fi |
---|
[763] | 2802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2803 | fi |
---|
[763] | 2804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2805 | fi |
---|
| 2806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2807 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 2808 | fi |
---|
[788] | 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2810 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
[763] | 2811 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2812 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2813 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2814 | if test "$GXX" = yes; then |
---|
| 2815 | CXXFLAGS="-g -O2" |
---|
| 2816 | else |
---|
| 2817 | CXXFLAGS="-g" |
---|
| 2818 | fi |
---|
| 2819 | else |
---|
| 2820 | if test "$GXX" = yes; then |
---|
| 2821 | CXXFLAGS="-O2" |
---|
| 2822 | else |
---|
| 2823 | CXXFLAGS= |
---|
| 2824 | fi |
---|
| 2825 | fi |
---|
[107] | 2826 | ac_ext=c |
---|
| 2827 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2831 | |
---|
| 2832 | ac_ext=c |
---|
| 2833 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2837 | if test -n "$ac_tool_prefix"; then |
---|
| 2838 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2839 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
[788] | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2841 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2842 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2843 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2844 | else |
---|
| 2845 | if test -n "$CC"; then |
---|
| 2846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2847 | else |
---|
| 2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2849 | for as_dir in $PATH |
---|
| 2850 | do |
---|
| 2851 | IFS=$as_save_IFS |
---|
| 2852 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2855 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
[788] | 2856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2857 | break 2 |
---|
| 2858 | fi |
---|
| 2859 | done |
---|
[788] | 2860 | done |
---|
[763] | 2861 | IFS=$as_save_IFS |
---|
[107] | 2862 | |
---|
| 2863 | fi |
---|
| 2864 | fi |
---|
| 2865 | CC=$ac_cv_prog_CC |
---|
| 2866 | if test -n "$CC"; then |
---|
[788] | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2868 | $as_echo "$CC" >&6; } |
---|
[107] | 2869 | else |
---|
[788] | 2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2871 | $as_echo "no" >&6; } |
---|
[107] | 2872 | fi |
---|
| 2873 | |
---|
[763] | 2874 | |
---|
[107] | 2875 | fi |
---|
| 2876 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2877 | ac_ct_CC=$CC |
---|
| 2878 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2879 | set dummy gcc; ac_word=$2 |
---|
[788] | 2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2881 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2882 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2883 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2884 | else |
---|
| 2885 | if test -n "$ac_ct_CC"; then |
---|
| 2886 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2887 | else |
---|
| 2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2889 | for as_dir in $PATH |
---|
| 2890 | do |
---|
| 2891 | IFS=$as_save_IFS |
---|
| 2892 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2895 | ac_cv_prog_ac_ct_CC="gcc" |
---|
[788] | 2896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2897 | break 2 |
---|
| 2898 | fi |
---|
| 2899 | done |
---|
[788] | 2900 | done |
---|
[763] | 2901 | IFS=$as_save_IFS |
---|
[107] | 2902 | |
---|
| 2903 | fi |
---|
| 2904 | fi |
---|
| 2905 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2906 | if test -n "$ac_ct_CC"; then |
---|
[788] | 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2908 | $as_echo "$ac_ct_CC" >&6; } |
---|
[107] | 2909 | else |
---|
[788] | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2911 | $as_echo "no" >&6; } |
---|
[107] | 2912 | fi |
---|
| 2913 | |
---|
[763] | 2914 | if test "x$ac_ct_CC" = x; then |
---|
| 2915 | CC="" |
---|
| 2916 | else |
---|
| 2917 | case $cross_compiling:$ac_tool_warned in |
---|
| 2918 | yes:) |
---|
[788] | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2920 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 2921 | ac_tool_warned=yes ;; |
---|
| 2922 | esac |
---|
| 2923 | CC=$ac_ct_CC |
---|
| 2924 | fi |
---|
[107] | 2925 | else |
---|
| 2926 | CC="$ac_cv_prog_CC" |
---|
| 2927 | fi |
---|
| 2928 | |
---|
| 2929 | if test -z "$CC"; then |
---|
[763] | 2930 | if test -n "$ac_tool_prefix"; then |
---|
| 2931 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
[107] | 2932 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
[788] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2934 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2935 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2936 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2937 | else |
---|
| 2938 | if test -n "$CC"; then |
---|
| 2939 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2940 | else |
---|
| 2941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2942 | for as_dir in $PATH |
---|
| 2943 | do |
---|
| 2944 | IFS=$as_save_IFS |
---|
| 2945 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2946 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2948 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
[788] | 2949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2950 | break 2 |
---|
| 2951 | fi |
---|
| 2952 | done |
---|
[788] | 2953 | done |
---|
[763] | 2954 | IFS=$as_save_IFS |
---|
[107] | 2955 | |
---|
| 2956 | fi |
---|
| 2957 | fi |
---|
| 2958 | CC=$ac_cv_prog_CC |
---|
| 2959 | if test -n "$CC"; then |
---|
[788] | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2961 | $as_echo "$CC" >&6; } |
---|
[107] | 2962 | else |
---|
[788] | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2964 | $as_echo "no" >&6; } |
---|
[107] | 2965 | fi |
---|
| 2966 | |
---|
[763] | 2967 | |
---|
[107] | 2968 | fi |
---|
| 2969 | fi |
---|
| 2970 | if test -z "$CC"; then |
---|
| 2971 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2972 | set dummy cc; ac_word=$2 |
---|
[788] | 2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2974 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2975 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2976 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2977 | else |
---|
| 2978 | if test -n "$CC"; then |
---|
| 2979 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2980 | else |
---|
| 2981 | ac_prog_rejected=no |
---|
| 2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2983 | for as_dir in $PATH |
---|
| 2984 | do |
---|
| 2985 | IFS=$as_save_IFS |
---|
| 2986 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2987 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 2988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2989 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2990 | ac_prog_rejected=yes |
---|
| 2991 | continue |
---|
| 2992 | fi |
---|
| 2993 | ac_cv_prog_CC="cc" |
---|
[788] | 2994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2995 | break 2 |
---|
| 2996 | fi |
---|
| 2997 | done |
---|
[788] | 2998 | done |
---|
[763] | 2999 | IFS=$as_save_IFS |
---|
[107] | 3000 | |
---|
| 3001 | if test $ac_prog_rejected = yes; then |
---|
| 3002 | # We found a bogon in the path, so make sure we never use it. |
---|
| 3003 | set dummy $ac_cv_prog_CC |
---|
| 3004 | shift |
---|
| 3005 | if test $# != 0; then |
---|
| 3006 | # We chose a different compiler from the bogus one. |
---|
| 3007 | # However, it has the same basename, so the bogon will be chosen |
---|
| 3008 | # first if we set CC to just the basename; use the full file name. |
---|
| 3009 | shift |
---|
| 3010 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 3011 | fi |
---|
| 3012 | fi |
---|
| 3013 | fi |
---|
| 3014 | fi |
---|
| 3015 | CC=$ac_cv_prog_CC |
---|
| 3016 | if test -n "$CC"; then |
---|
[788] | 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 3018 | $as_echo "$CC" >&6; } |
---|
[107] | 3019 | else |
---|
[788] | 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3021 | $as_echo "no" >&6; } |
---|
[107] | 3022 | fi |
---|
| 3023 | |
---|
[763] | 3024 | |
---|
[107] | 3025 | fi |
---|
| 3026 | if test -z "$CC"; then |
---|
| 3027 | if test -n "$ac_tool_prefix"; then |
---|
[763] | 3028 | for ac_prog in cl.exe |
---|
[107] | 3029 | do |
---|
| 3030 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3031 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3033 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3034 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 3035 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3036 | else |
---|
| 3037 | if test -n "$CC"; then |
---|
| 3038 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 3039 | else |
---|
| 3040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3041 | for as_dir in $PATH |
---|
| 3042 | do |
---|
| 3043 | IFS=$as_save_IFS |
---|
| 3044 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3045 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 3046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3047 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
[788] | 3048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3049 | break 2 |
---|
| 3050 | fi |
---|
| 3051 | done |
---|
[788] | 3052 | done |
---|
[763] | 3053 | IFS=$as_save_IFS |
---|
[107] | 3054 | |
---|
| 3055 | fi |
---|
| 3056 | fi |
---|
| 3057 | CC=$ac_cv_prog_CC |
---|
| 3058 | if test -n "$CC"; then |
---|
[788] | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 3060 | $as_echo "$CC" >&6; } |
---|
[107] | 3061 | else |
---|
[788] | 3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3063 | $as_echo "no" >&6; } |
---|
[107] | 3064 | fi |
---|
| 3065 | |
---|
[763] | 3066 | |
---|
[107] | 3067 | test -n "$CC" && break |
---|
| 3068 | done |
---|
| 3069 | fi |
---|
| 3070 | if test -z "$CC"; then |
---|
| 3071 | ac_ct_CC=$CC |
---|
[763] | 3072 | for ac_prog in cl.exe |
---|
[107] | 3073 | do |
---|
| 3074 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3075 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3077 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3078 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 3079 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3080 | else |
---|
| 3081 | if test -n "$ac_ct_CC"; then |
---|
| 3082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 3083 | else |
---|
| 3084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3085 | for as_dir in $PATH |
---|
| 3086 | do |
---|
| 3087 | IFS=$as_save_IFS |
---|
| 3088 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3089 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 3090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3091 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
[788] | 3092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3093 | break 2 |
---|
| 3094 | fi |
---|
| 3095 | done |
---|
[788] | 3096 | done |
---|
[763] | 3097 | IFS=$as_save_IFS |
---|
[107] | 3098 | |
---|
| 3099 | fi |
---|
| 3100 | fi |
---|
| 3101 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 3102 | if test -n "$ac_ct_CC"; then |
---|
[788] | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 3104 | $as_echo "$ac_ct_CC" >&6; } |
---|
[107] | 3105 | else |
---|
[788] | 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3107 | $as_echo "no" >&6; } |
---|
[107] | 3108 | fi |
---|
| 3109 | |
---|
[763] | 3110 | |
---|
[107] | 3111 | test -n "$ac_ct_CC" && break |
---|
| 3112 | done |
---|
| 3113 | |
---|
[763] | 3114 | if test "x$ac_ct_CC" = x; then |
---|
| 3115 | CC="" |
---|
| 3116 | else |
---|
| 3117 | case $cross_compiling:$ac_tool_warned in |
---|
| 3118 | yes:) |
---|
[788] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 3121 | ac_tool_warned=yes ;; |
---|
| 3122 | esac |
---|
| 3123 | CC=$ac_ct_CC |
---|
| 3124 | fi |
---|
[107] | 3125 | fi |
---|
| 3126 | |
---|
| 3127 | fi |
---|
| 3128 | |
---|
| 3129 | |
---|
[788] | 3130 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3131 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3132 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 3133 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 3134 | |
---|
| 3135 | # Provide some information about the compiler. |
---|
[788] | 3136 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 3137 | set X $ac_compile |
---|
| 3138 | ac_compiler=$2 |
---|
| 3139 | for ac_option in --version -v -V -qversion; do |
---|
| 3140 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 3141 | case "(($ac_try" in |
---|
| 3142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3143 | *) ac_try_echo=$ac_try;; |
---|
| 3144 | esac |
---|
[788] | 3145 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3146 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3147 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[107] | 3148 | ac_status=$? |
---|
[788] | 3149 | if test -s conftest.err; then |
---|
| 3150 | sed '10a\ |
---|
| 3151 | ... rest of stderr output deleted ... |
---|
| 3152 | 10q' conftest.err >conftest.er1 |
---|
| 3153 | cat conftest.er1 >&5 |
---|
| 3154 | fi |
---|
| 3155 | rm -f conftest.er1 conftest.err |
---|
| 3156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3157 | test $ac_status = 0; } |
---|
| 3158 | done |
---|
[107] | 3159 | |
---|
[788] | 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
| 3161 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
| 3162 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
| 3163 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3164 | else |
---|
[788] | 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3166 | /* end confdefs.h. */ |
---|
| 3167 | |
---|
| 3168 | int |
---|
| 3169 | main () |
---|
| 3170 | { |
---|
| 3171 | #ifndef __GNUC__ |
---|
| 3172 | choke me |
---|
| 3173 | #endif |
---|
| 3174 | |
---|
| 3175 | ; |
---|
| 3176 | return 0; |
---|
| 3177 | } |
---|
| 3178 | _ACEOF |
---|
[788] | 3179 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 3180 | ac_compiler_gnu=yes |
---|
| 3181 | else |
---|
[788] | 3182 | ac_compiler_gnu=no |
---|
[107] | 3183 | fi |
---|
[763] | 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3185 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3186 | |
---|
| 3187 | fi |
---|
[788] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3189 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 3190 | if test $ac_compiler_gnu = yes; then |
---|
| 3191 | GCC=yes |
---|
| 3192 | else |
---|
| 3193 | GCC= |
---|
| 3194 | fi |
---|
[107] | 3195 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3196 | ac_save_CFLAGS=$CFLAGS |
---|
[788] | 3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 3198 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
| 3199 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
| 3200 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3201 | else |
---|
[763] | 3202 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 3203 | ac_c_werror_flag=yes |
---|
| 3204 | ac_cv_prog_cc_g=no |
---|
| 3205 | CFLAGS="-g" |
---|
[788] | 3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3207 | /* end confdefs.h. */ |
---|
| 3208 | |
---|
| 3209 | int |
---|
| 3210 | main () |
---|
| 3211 | { |
---|
| 3212 | |
---|
| 3213 | ; |
---|
| 3214 | return 0; |
---|
| 3215 | } |
---|
| 3216 | _ACEOF |
---|
[788] | 3217 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 3218 | ac_cv_prog_cc_g=yes |
---|
| 3219 | else |
---|
[788] | 3220 | CFLAGS="" |
---|
| 3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[763] | 3222 | /* end confdefs.h. */ |
---|
| 3223 | |
---|
| 3224 | int |
---|
| 3225 | main () |
---|
| 3226 | { |
---|
| 3227 | |
---|
| 3228 | ; |
---|
| 3229 | return 0; |
---|
| 3230 | } |
---|
| 3231 | _ACEOF |
---|
[788] | 3232 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3233 | |
---|
[763] | 3234 | else |
---|
[788] | 3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
[763] | 3236 | CFLAGS="-g" |
---|
[788] | 3237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[763] | 3238 | /* end confdefs.h. */ |
---|
| 3239 | |
---|
| 3240 | int |
---|
| 3241 | main () |
---|
| 3242 | { |
---|
| 3243 | |
---|
| 3244 | ; |
---|
| 3245 | return 0; |
---|
| 3246 | } |
---|
| 3247 | _ACEOF |
---|
[788] | 3248 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 3249 | ac_cv_prog_cc_g=yes |
---|
| 3250 | fi |
---|
[763] | 3251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3252 | fi |
---|
[763] | 3253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3254 | fi |
---|
| 3255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3256 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3257 | fi |
---|
[788] | 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3259 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
[107] | 3260 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3261 | CFLAGS=$ac_save_CFLAGS |
---|
| 3262 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3263 | if test "$GCC" = yes; then |
---|
| 3264 | CFLAGS="-g -O2" |
---|
| 3265 | else |
---|
| 3266 | CFLAGS="-g" |
---|
| 3267 | fi |
---|
| 3268 | else |
---|
| 3269 | if test "$GCC" = yes; then |
---|
| 3270 | CFLAGS="-O2" |
---|
| 3271 | else |
---|
| 3272 | CFLAGS= |
---|
| 3273 | fi |
---|
| 3274 | fi |
---|
[788] | 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
| 3276 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 3277 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
| 3278 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3279 | else |
---|
[763] | 3280 | ac_cv_prog_cc_c89=no |
---|
[107] | 3281 | ac_save_CC=$CC |
---|
[788] | 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3283 | /* end confdefs.h. */ |
---|
| 3284 | #include <stdarg.h> |
---|
| 3285 | #include <stdio.h> |
---|
[1088] | 3286 | struct stat; |
---|
[107] | 3287 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3288 | struct buf { int x; }; |
---|
| 3289 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3290 | static char *e (p, i) |
---|
| 3291 | char **p; |
---|
| 3292 | int i; |
---|
| 3293 | { |
---|
| 3294 | return p[i]; |
---|
| 3295 | } |
---|
| 3296 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3297 | { |
---|
| 3298 | char *s; |
---|
| 3299 | va_list v; |
---|
| 3300 | va_start (v,p); |
---|
| 3301 | s = g (p, va_arg (v,int)); |
---|
| 3302 | va_end (v); |
---|
| 3303 | return s; |
---|
| 3304 | } |
---|
[349] | 3305 | |
---|
| 3306 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3307 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3308 | These don't provoke an error unfortunately, instead are silently treated |
---|
[763] | 3309 | as 'x'. The following induces an error, until -std is added to get |
---|
[349] | 3310 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3311 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
[763] | 3312 | that's true only with -std. */ |
---|
[349] | 3313 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3314 | |
---|
[763] | 3315 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3316 | inside strings and character constants. */ |
---|
| 3317 | #define FOO(x) 'x' |
---|
| 3318 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3319 | |
---|
[107] | 3320 | int test (int i, double x); |
---|
| 3321 | struct s1 {int (*f) (int a);}; |
---|
| 3322 | struct s2 {int (*f) (double a);}; |
---|
| 3323 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3324 | int argc; |
---|
| 3325 | char **argv; |
---|
| 3326 | int |
---|
| 3327 | main () |
---|
| 3328 | { |
---|
| 3329 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3330 | ; |
---|
| 3331 | return 0; |
---|
| 3332 | } |
---|
| 3333 | _ACEOF |
---|
[763] | 3334 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3335 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
[107] | 3336 | do |
---|
| 3337 | CC="$ac_save_CC $ac_arg" |
---|
[788] | 3338 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 3339 | ac_cv_prog_cc_c89=$ac_arg |
---|
[107] | 3340 | fi |
---|
[763] | 3341 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3342 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
[107] | 3343 | done |
---|
[763] | 3344 | rm -f conftest.$ac_ext |
---|
[107] | 3345 | CC=$ac_save_CC |
---|
| 3346 | |
---|
| 3347 | fi |
---|
[763] | 3348 | # AC_CACHE_VAL |
---|
| 3349 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3350 | x) |
---|
[788] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3352 | $as_echo "none needed" >&6; } ;; |
---|
[763] | 3353 | xno) |
---|
[788] | 3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3355 | $as_echo "unsupported" >&6; } ;; |
---|
[107] | 3356 | *) |
---|
[763] | 3357 | CC="$CC $ac_cv_prog_cc_c89" |
---|
[788] | 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3359 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
[107] | 3360 | esac |
---|
[788] | 3361 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
[107] | 3362 | |
---|
[788] | 3363 | fi |
---|
[107] | 3364 | |
---|
| 3365 | ac_ext=c |
---|
| 3366 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3370 | |
---|
| 3371 | ac_ext=c |
---|
| 3372 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[788] | 3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
| 3377 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
[107] | 3378 | # On Suns, sometimes $CPP names a directory. |
---|
| 3379 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3380 | CPP= |
---|
| 3381 | fi |
---|
| 3382 | if test -z "$CPP"; then |
---|
[788] | 3383 | if ${ac_cv_prog_CPP+:} false; then : |
---|
| 3384 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3385 | else |
---|
| 3386 | # Double quotes because CPP needs to be expanded |
---|
| 3387 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3388 | do |
---|
| 3389 | ac_preproc_ok=false |
---|
| 3390 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3391 | do |
---|
| 3392 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3393 | # with a fresh cross-compiler works. |
---|
| 3394 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3395 | # <limits.h> exists even on freestanding compilers. |
---|
| 3396 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3397 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
[788] | 3398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3399 | /* end confdefs.h. */ |
---|
| 3400 | #ifdef __STDC__ |
---|
| 3401 | # include <limits.h> |
---|
| 3402 | #else |
---|
| 3403 | # include <assert.h> |
---|
| 3404 | #endif |
---|
[349] | 3405 | Syntax error |
---|
[107] | 3406 | _ACEOF |
---|
[788] | 3407 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3408 | |
---|
[107] | 3409 | else |
---|
| 3410 | # Broken: fails on valid input. |
---|
| 3411 | continue |
---|
| 3412 | fi |
---|
[788] | 3413 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3414 | |
---|
| 3415 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[107] | 3416 | # can be detected and how. |
---|
[788] | 3417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3418 | /* end confdefs.h. */ |
---|
| 3419 | #include <ac_nonexistent.h> |
---|
| 3420 | _ACEOF |
---|
[788] | 3421 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 3422 | # Broken: success on invalid input. |
---|
| 3423 | continue |
---|
| 3424 | else |
---|
| 3425 | # Passes both tests. |
---|
| 3426 | ac_preproc_ok=: |
---|
| 3427 | break |
---|
| 3428 | fi |
---|
[788] | 3429 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3430 | |
---|
[107] | 3431 | done |
---|
| 3432 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
[788] | 3433 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3434 | if $ac_preproc_ok; then : |
---|
[107] | 3435 | break |
---|
| 3436 | fi |
---|
| 3437 | |
---|
| 3438 | done |
---|
| 3439 | ac_cv_prog_CPP=$CPP |
---|
| 3440 | |
---|
| 3441 | fi |
---|
| 3442 | CPP=$ac_cv_prog_CPP |
---|
| 3443 | else |
---|
| 3444 | ac_cv_prog_CPP=$CPP |
---|
| 3445 | fi |
---|
[788] | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
| 3447 | $as_echo "$CPP" >&6; } |
---|
[107] | 3448 | ac_preproc_ok=false |
---|
| 3449 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3450 | do |
---|
| 3451 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3452 | # with a fresh cross-compiler works. |
---|
| 3453 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3454 | # <limits.h> exists even on freestanding compilers. |
---|
| 3455 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3456 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
[788] | 3457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3458 | /* end confdefs.h. */ |
---|
| 3459 | #ifdef __STDC__ |
---|
| 3460 | # include <limits.h> |
---|
| 3461 | #else |
---|
| 3462 | # include <assert.h> |
---|
| 3463 | #endif |
---|
[349] | 3464 | Syntax error |
---|
[107] | 3465 | _ACEOF |
---|
[788] | 3466 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3467 | |
---|
[107] | 3468 | else |
---|
| 3469 | # Broken: fails on valid input. |
---|
| 3470 | continue |
---|
| 3471 | fi |
---|
[788] | 3472 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3473 | |
---|
| 3474 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[107] | 3475 | # can be detected and how. |
---|
[788] | 3476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3477 | /* end confdefs.h. */ |
---|
| 3478 | #include <ac_nonexistent.h> |
---|
| 3479 | _ACEOF |
---|
[788] | 3480 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 3481 | # Broken: success on invalid input. |
---|
| 3482 | continue |
---|
| 3483 | else |
---|
| 3484 | # Passes both tests. |
---|
| 3485 | ac_preproc_ok=: |
---|
| 3486 | break |
---|
| 3487 | fi |
---|
[788] | 3488 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3489 | |
---|
[107] | 3490 | done |
---|
| 3491 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
[788] | 3492 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3493 | if $ac_preproc_ok; then : |
---|
| 3494 | |
---|
[107] | 3495 | else |
---|
[788] | 3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3498 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
| 3499 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 3500 | fi |
---|
| 3501 | |
---|
| 3502 | ac_ext=c |
---|
| 3503 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3507 | |
---|
[351] | 3508 | ac_ext=f |
---|
| 3509 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 3510 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3511 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 3512 | if test -n "$ac_tool_prefix"; then |
---|
[1088] | 3513 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor |
---|
[351] | 3514 | do |
---|
| 3515 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3516 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3518 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3519 | if ${ac_cv_prog_F77+:} false; then : |
---|
| 3520 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3521 | else |
---|
| 3522 | if test -n "$F77"; then |
---|
| 3523 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
| 3524 | else |
---|
| 3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3526 | for as_dir in $PATH |
---|
| 3527 | do |
---|
| 3528 | IFS=$as_save_IFS |
---|
| 3529 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3530 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 3531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[351] | 3532 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
[788] | 3533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[351] | 3534 | break 2 |
---|
| 3535 | fi |
---|
| 3536 | done |
---|
[788] | 3537 | done |
---|
[763] | 3538 | IFS=$as_save_IFS |
---|
[351] | 3539 | |
---|
| 3540 | fi |
---|
| 3541 | fi |
---|
| 3542 | F77=$ac_cv_prog_F77 |
---|
| 3543 | if test -n "$F77"; then |
---|
[788] | 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
| 3545 | $as_echo "$F77" >&6; } |
---|
[351] | 3546 | else |
---|
[788] | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3548 | $as_echo "no" >&6; } |
---|
[351] | 3549 | fi |
---|
| 3550 | |
---|
[763] | 3551 | |
---|
[351] | 3552 | test -n "$F77" && break |
---|
| 3553 | done |
---|
| 3554 | fi |
---|
| 3555 | if test -z "$F77"; then |
---|
| 3556 | ac_ct_F77=$F77 |
---|
[1088] | 3557 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor |
---|
[351] | 3558 | do |
---|
| 3559 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3560 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3562 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3563 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
| 3564 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3565 | else |
---|
| 3566 | if test -n "$ac_ct_F77"; then |
---|
| 3567 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
| 3568 | else |
---|
| 3569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3570 | for as_dir in $PATH |
---|
| 3571 | do |
---|
| 3572 | IFS=$as_save_IFS |
---|
| 3573 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3574 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 3575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[351] | 3576 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
[788] | 3577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[351] | 3578 | break 2 |
---|
| 3579 | fi |
---|
| 3580 | done |
---|
[788] | 3581 | done |
---|
[763] | 3582 | IFS=$as_save_IFS |
---|
[351] | 3583 | |
---|
| 3584 | fi |
---|
| 3585 | fi |
---|
| 3586 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
| 3587 | if test -n "$ac_ct_F77"; then |
---|
[788] | 3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
| 3589 | $as_echo "$ac_ct_F77" >&6; } |
---|
[351] | 3590 | else |
---|
[788] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3592 | $as_echo "no" >&6; } |
---|
[351] | 3593 | fi |
---|
| 3594 | |
---|
[763] | 3595 | |
---|
[351] | 3596 | test -n "$ac_ct_F77" && break |
---|
| 3597 | done |
---|
| 3598 | |
---|
[763] | 3599 | if test "x$ac_ct_F77" = x; then |
---|
| 3600 | F77="" |
---|
| 3601 | else |
---|
| 3602 | case $cross_compiling:$ac_tool_warned in |
---|
| 3603 | yes:) |
---|
[788] | 3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3605 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 3606 | ac_tool_warned=yes ;; |
---|
| 3607 | esac |
---|
| 3608 | F77=$ac_ct_F77 |
---|
| 3609 | fi |
---|
[351] | 3610 | fi |
---|
| 3611 | |
---|
| 3612 | |
---|
| 3613 | # Provide some information about the compiler. |
---|
[788] | 3614 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
| 3615 | set X $ac_compile |
---|
| 3616 | ac_compiler=$2 |
---|
| 3617 | for ac_option in --version -v -V -qversion; do |
---|
| 3618 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 3619 | case "(($ac_try" in |
---|
| 3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3621 | *) ac_try_echo=$ac_try;; |
---|
| 3622 | esac |
---|
[788] | 3623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3624 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3625 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[351] | 3626 | ac_status=$? |
---|
[788] | 3627 | if test -s conftest.err; then |
---|
| 3628 | sed '10a\ |
---|
| 3629 | ... rest of stderr output deleted ... |
---|
| 3630 | 10q' conftest.err >conftest.er1 |
---|
| 3631 | cat conftest.er1 >&5 |
---|
| 3632 | fi |
---|
| 3633 | rm -f conftest.er1 conftest.err |
---|
| 3634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3635 | test $ac_status = 0; } |
---|
| 3636 | done |
---|
[351] | 3637 | rm -f a.out |
---|
| 3638 | |
---|
| 3639 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
| 3640 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
| 3641 | ac_save_ext=$ac_ext |
---|
| 3642 | ac_ext=F |
---|
[788] | 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
| 3644 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
| 3645 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
| 3646 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3647 | else |
---|
[788] | 3648 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 3649 | program main |
---|
| 3650 | #ifndef __GNUC__ |
---|
| 3651 | choke me |
---|
| 3652 | #endif |
---|
| 3653 | |
---|
| 3654 | end |
---|
| 3655 | _ACEOF |
---|
[788] | 3656 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
[351] | 3657 | ac_compiler_gnu=yes |
---|
| 3658 | else |
---|
[788] | 3659 | ac_compiler_gnu=no |
---|
[351] | 3660 | fi |
---|
[763] | 3661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[351] | 3662 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
| 3663 | |
---|
| 3664 | fi |
---|
[788] | 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
| 3666 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
[351] | 3667 | ac_ext=$ac_save_ext |
---|
| 3668 | ac_test_FFLAGS=${FFLAGS+set} |
---|
| 3669 | ac_save_FFLAGS=$FFLAGS |
---|
| 3670 | FFLAGS= |
---|
[788] | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
| 3672 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
| 3673 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
| 3674 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3675 | else |
---|
| 3676 | FFLAGS=-g |
---|
[788] | 3677 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 3678 | program main |
---|
| 3679 | |
---|
| 3680 | end |
---|
| 3681 | _ACEOF |
---|
[788] | 3682 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
[351] | 3683 | ac_cv_prog_f77_g=yes |
---|
| 3684 | else |
---|
[788] | 3685 | ac_cv_prog_f77_g=no |
---|
[351] | 3686 | fi |
---|
[763] | 3687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3688 | |
---|
[351] | 3689 | fi |
---|
[788] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
| 3691 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
[351] | 3692 | if test "$ac_test_FFLAGS" = set; then |
---|
| 3693 | FFLAGS=$ac_save_FFLAGS |
---|
| 3694 | elif test $ac_cv_prog_f77_g = yes; then |
---|
| 3695 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3696 | FFLAGS="-g -O2" |
---|
| 3697 | else |
---|
| 3698 | FFLAGS="-g" |
---|
| 3699 | fi |
---|
| 3700 | else |
---|
| 3701 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3702 | FFLAGS="-O2" |
---|
| 3703 | else |
---|
| 3704 | FFLAGS= |
---|
| 3705 | fi |
---|
| 3706 | fi |
---|
| 3707 | |
---|
[788] | 3708 | if test $ac_compiler_gnu = yes; then |
---|
| 3709 | G77=yes |
---|
| 3710 | else |
---|
| 3711 | G77= |
---|
| 3712 | fi |
---|
[351] | 3713 | ac_ext=c |
---|
| 3714 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3718 | |
---|
[788] | 3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
| 3720 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
[342] | 3721 | LN_S=$as_ln_s |
---|
| 3722 | if test "$LN_S" = "ln -s"; then |
---|
[788] | 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 3724 | $as_echo "yes" >&6; } |
---|
[342] | 3725 | else |
---|
[788] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
| 3727 | $as_echo "no, using $LN_S" >&6; } |
---|
[342] | 3728 | fi |
---|
[107] | 3729 | |
---|
[342] | 3730 | for ac_prog in install |
---|
| 3731 | do |
---|
| 3732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3733 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3735 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3736 | if ${ac_cv_prog_INSTALL+:} false; then : |
---|
| 3737 | $as_echo_n "(cached) " >&6 |
---|
[342] | 3738 | else |
---|
| 3739 | if test -n "$INSTALL"; then |
---|
| 3740 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
---|
| 3741 | else |
---|
| 3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3743 | for as_dir in $PATH |
---|
| 3744 | do |
---|
| 3745 | IFS=$as_save_IFS |
---|
| 3746 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3747 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 3748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[342] | 3749 | ac_cv_prog_INSTALL="$ac_prog" |
---|
[788] | 3750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[342] | 3751 | break 2 |
---|
| 3752 | fi |
---|
| 3753 | done |
---|
[788] | 3754 | done |
---|
[763] | 3755 | IFS=$as_save_IFS |
---|
[342] | 3756 | |
---|
| 3757 | fi |
---|
| 3758 | fi |
---|
| 3759 | INSTALL=$ac_cv_prog_INSTALL |
---|
| 3760 | if test -n "$INSTALL"; then |
---|
[788] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
| 3762 | $as_echo "$INSTALL" >&6; } |
---|
[342] | 3763 | else |
---|
[788] | 3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3765 | $as_echo "no" >&6; } |
---|
[342] | 3766 | fi |
---|
| 3767 | |
---|
[763] | 3768 | |
---|
[342] | 3769 | test -n "$INSTALL" && break |
---|
| 3770 | done |
---|
| 3771 | |
---|
| 3772 | |
---|
[347] | 3773 | # Check for maths library -- will add -lm to $LIBS |
---|
[107] | 3774 | |
---|
[788] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 |
---|
| 3776 | $as_echo_n "checking for log in -lm... " >&6; } |
---|
| 3777 | if ${ac_cv_lib_m_log+:} false; then : |
---|
| 3778 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3779 | else |
---|
| 3780 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3781 | LIBS="-lm $LIBS" |
---|
[788] | 3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3783 | /* end confdefs.h. */ |
---|
| 3784 | |
---|
[763] | 3785 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3786 | Use char because int might match the return type of a GCC |
---|
| 3787 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 3788 | #ifdef __cplusplus |
---|
| 3789 | extern "C" |
---|
| 3790 | #endif |
---|
| 3791 | char log (); |
---|
| 3792 | int |
---|
| 3793 | main () |
---|
| 3794 | { |
---|
[763] | 3795 | return log (); |
---|
[107] | 3796 | ; |
---|
| 3797 | return 0; |
---|
| 3798 | } |
---|
| 3799 | _ACEOF |
---|
[788] | 3800 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 3801 | ac_cv_lib_m_log=yes |
---|
| 3802 | else |
---|
[788] | 3803 | ac_cv_lib_m_log=no |
---|
[107] | 3804 | fi |
---|
[788] | 3805 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 3806 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 3807 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3808 | fi |
---|
[788] | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 |
---|
| 3810 | $as_echo "$ac_cv_lib_m_log" >&6; } |
---|
| 3811 | if test "x$ac_cv_lib_m_log" = xyes; then : |
---|
[107] | 3812 | cat >>confdefs.h <<_ACEOF |
---|
| 3813 | #define HAVE_LIBM 1 |
---|
| 3814 | _ACEOF |
---|
| 3815 | |
---|
| 3816 | LIBS="-lm $LIBS" |
---|
| 3817 | |
---|
| 3818 | fi |
---|
| 3819 | |
---|
| 3820 | |
---|
| 3821 | # Checks for header files. |
---|
| 3822 | |
---|
[788] | 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
| 3824 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
| 3825 | if ${ac_cv_path_GREP+:} false; then : |
---|
| 3826 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3827 | else |
---|
[788] | 3828 | if test -z "$GREP"; then |
---|
[763] | 3829 | ac_path_GREP_found=false |
---|
[788] | 3830 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[763] | 3832 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3833 | do |
---|
| 3834 | IFS=$as_save_IFS |
---|
| 3835 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3836 | for ac_prog in grep ggrep; do |
---|
| 3837 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3838 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
[1088] | 3839 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
[788] | 3840 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
[763] | 3841 | # Check for GNU $ac_path_GREP |
---|
| 3842 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 3843 | *GNU*) |
---|
| 3844 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 3845 | *) |
---|
| 3846 | ac_count=0 |
---|
[788] | 3847 | $as_echo_n 0123456789 >"conftest.in" |
---|
[763] | 3848 | while : |
---|
| 3849 | do |
---|
| 3850 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3851 | mv "conftest.tmp" "conftest.in" |
---|
| 3852 | cp "conftest.in" "conftest.nl" |
---|
[788] | 3853 | $as_echo 'GREP' >> "conftest.nl" |
---|
[763] | 3854 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3855 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
[788] | 3856 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
[763] | 3857 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 3858 | # Best one so far, save it but keep looking for a better one |
---|
| 3859 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 3860 | ac_path_GREP_max=$ac_count |
---|
[107] | 3861 | fi |
---|
[763] | 3862 | # 10*(2^10) chars as input seems more than enough |
---|
| 3863 | test $ac_count -gt 10 && break |
---|
| 3864 | done |
---|
| 3865 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3866 | esac |
---|
| 3867 | |
---|
[788] | 3868 | $ac_path_GREP_found && break 3 |
---|
| 3869 | done |
---|
[763] | 3870 | done |
---|
[788] | 3871 | done |
---|
[763] | 3872 | IFS=$as_save_IFS |
---|
[788] | 3873 | if test -z "$ac_cv_path_GREP"; then |
---|
| 3874 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 3875 | fi |
---|
[763] | 3876 | else |
---|
| 3877 | ac_cv_path_GREP=$GREP |
---|
| 3878 | fi |
---|
| 3879 | |
---|
| 3880 | fi |
---|
[788] | 3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
| 3882 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
[763] | 3883 | GREP="$ac_cv_path_GREP" |
---|
| 3884 | |
---|
| 3885 | |
---|
[788] | 3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
| 3887 | $as_echo_n "checking for egrep... " >&6; } |
---|
| 3888 | if ${ac_cv_path_EGREP+:} false; then : |
---|
| 3889 | $as_echo_n "(cached) " >&6 |
---|
[763] | 3890 | else |
---|
| 3891 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 3892 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 3893 | else |
---|
[788] | 3894 | if test -z "$EGREP"; then |
---|
[763] | 3895 | ac_path_EGREP_found=false |
---|
[788] | 3896 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[763] | 3898 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3899 | do |
---|
| 3900 | IFS=$as_save_IFS |
---|
| 3901 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3902 | for ac_prog in egrep; do |
---|
| 3903 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3904 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
[1088] | 3905 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
[788] | 3906 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
[763] | 3907 | # Check for GNU $ac_path_EGREP |
---|
| 3908 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 3909 | *GNU*) |
---|
| 3910 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 3911 | *) |
---|
| 3912 | ac_count=0 |
---|
[788] | 3913 | $as_echo_n 0123456789 >"conftest.in" |
---|
[763] | 3914 | while : |
---|
| 3915 | do |
---|
| 3916 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3917 | mv "conftest.tmp" "conftest.in" |
---|
| 3918 | cp "conftest.in" "conftest.nl" |
---|
[788] | 3919 | $as_echo 'EGREP' >> "conftest.nl" |
---|
[763] | 3920 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3921 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
[788] | 3922 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
[763] | 3923 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 3924 | # Best one so far, save it but keep looking for a better one |
---|
| 3925 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 3926 | ac_path_EGREP_max=$ac_count |
---|
| 3927 | fi |
---|
| 3928 | # 10*(2^10) chars as input seems more than enough |
---|
| 3929 | test $ac_count -gt 10 && break |
---|
| 3930 | done |
---|
| 3931 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3932 | esac |
---|
| 3933 | |
---|
[788] | 3934 | $ac_path_EGREP_found && break 3 |
---|
| 3935 | done |
---|
[763] | 3936 | done |
---|
[788] | 3937 | done |
---|
[763] | 3938 | IFS=$as_save_IFS |
---|
[788] | 3939 | if test -z "$ac_cv_path_EGREP"; then |
---|
| 3940 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 3941 | fi |
---|
[763] | 3942 | else |
---|
| 3943 | ac_cv_path_EGREP=$EGREP |
---|
| 3944 | fi |
---|
| 3945 | |
---|
| 3946 | fi |
---|
| 3947 | fi |
---|
[788] | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
| 3949 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
[763] | 3950 | EGREP="$ac_cv_path_EGREP" |
---|
| 3951 | |
---|
| 3952 | |
---|
[788] | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
| 3954 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
| 3955 | if ${ac_cv_header_stdc+:} false; then : |
---|
| 3956 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3957 | else |
---|
[788] | 3958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3959 | /* end confdefs.h. */ |
---|
| 3960 | #include <stdlib.h> |
---|
| 3961 | #include <stdarg.h> |
---|
| 3962 | #include <string.h> |
---|
| 3963 | #include <float.h> |
---|
| 3964 | |
---|
| 3965 | int |
---|
| 3966 | main () |
---|
| 3967 | { |
---|
| 3968 | |
---|
| 3969 | ; |
---|
| 3970 | return 0; |
---|
| 3971 | } |
---|
| 3972 | _ACEOF |
---|
[788] | 3973 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 3974 | ac_cv_header_stdc=yes |
---|
| 3975 | else |
---|
[788] | 3976 | ac_cv_header_stdc=no |
---|
[107] | 3977 | fi |
---|
[763] | 3978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3979 | |
---|
[107] | 3980 | if test $ac_cv_header_stdc = yes; then |
---|
| 3981 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
[788] | 3982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3983 | /* end confdefs.h. */ |
---|
| 3984 | #include <string.h> |
---|
| 3985 | |
---|
| 3986 | _ACEOF |
---|
| 3987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[788] | 3988 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
| 3989 | |
---|
[107] | 3990 | else |
---|
| 3991 | ac_cv_header_stdc=no |
---|
| 3992 | fi |
---|
[788] | 3993 | rm -f conftest* |
---|
[107] | 3994 | |
---|
| 3995 | fi |
---|
| 3996 | |
---|
| 3997 | if test $ac_cv_header_stdc = yes; then |
---|
| 3998 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
[788] | 3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4000 | /* end confdefs.h. */ |
---|
| 4001 | #include <stdlib.h> |
---|
| 4002 | |
---|
| 4003 | _ACEOF |
---|
| 4004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[788] | 4005 | $EGREP "free" >/dev/null 2>&1; then : |
---|
| 4006 | |
---|
[107] | 4007 | else |
---|
| 4008 | ac_cv_header_stdc=no |
---|
| 4009 | fi |
---|
[788] | 4010 | rm -f conftest* |
---|
[107] | 4011 | |
---|
| 4012 | fi |
---|
| 4013 | |
---|
| 4014 | if test $ac_cv_header_stdc = yes; then |
---|
| 4015 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
[788] | 4016 | if test "$cross_compiling" = yes; then : |
---|
[107] | 4017 | : |
---|
| 4018 | else |
---|
[788] | 4019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4020 | /* end confdefs.h. */ |
---|
| 4021 | #include <ctype.h> |
---|
[763] | 4022 | #include <stdlib.h> |
---|
[107] | 4023 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4024 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4025 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4026 | #else |
---|
| 4027 | # define ISLOWER(c) \ |
---|
[349] | 4028 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4029 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4030 | || ('s' <= (c) && (c) <= 'z')) |
---|
[107] | 4031 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4032 | #endif |
---|
| 4033 | |
---|
| 4034 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4035 | int |
---|
| 4036 | main () |
---|
| 4037 | { |
---|
| 4038 | int i; |
---|
| 4039 | for (i = 0; i < 256; i++) |
---|
| 4040 | if (XOR (islower (i), ISLOWER (i)) |
---|
[349] | 4041 | || toupper (i) != TOUPPER (i)) |
---|
[763] | 4042 | return 2; |
---|
| 4043 | return 0; |
---|
[107] | 4044 | } |
---|
| 4045 | _ACEOF |
---|
[788] | 4046 | if ac_fn_c_try_run "$LINENO"; then : |
---|
| 4047 | |
---|
[107] | 4048 | else |
---|
[788] | 4049 | ac_cv_header_stdc=no |
---|
[107] | 4050 | fi |
---|
[788] | 4051 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4052 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
[107] | 4053 | fi |
---|
[763] | 4054 | |
---|
[107] | 4055 | fi |
---|
| 4056 | fi |
---|
[788] | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
| 4058 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
[107] | 4059 | if test $ac_cv_header_stdc = yes; then |
---|
| 4060 | |
---|
[788] | 4061 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
[107] | 4062 | |
---|
| 4063 | fi |
---|
| 4064 | |
---|
| 4065 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 4066 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
[349] | 4067 | inttypes.h stdint.h unistd.h |
---|
[788] | 4068 | do : |
---|
| 4069 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4070 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
| 4071 | " |
---|
| 4072 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
[107] | 4073 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4074 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[107] | 4075 | _ACEOF |
---|
| 4076 | |
---|
| 4077 | fi |
---|
| 4078 | |
---|
| 4079 | done |
---|
| 4080 | |
---|
| 4081 | |
---|
[635] | 4082 | for ac_header in unistd.h time.h math.h values.h iostream fstream sstream iomanip vector string algorithm functional |
---|
[788] | 4083 | do : |
---|
| 4084 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4085 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 4086 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
[107] | 4087 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4088 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[107] | 4089 | _ACEOF |
---|
| 4090 | |
---|
| 4091 | fi |
---|
| 4092 | |
---|
| 4093 | done |
---|
| 4094 | |
---|
[168] | 4095 | if test "x$ac_cv_header_stdc" = xno; then |
---|
[788] | 4096 | as_fn_error 1 " |
---|
[168] | 4097 | ------------------------------------------------------------------- |
---|
| 4098 | An ANSI standard C library is required to build Duchamp. |
---|
| 4099 | One of the ANSI C header files it requires is missing or unusable. |
---|
[107] | 4100 | |
---|
[168] | 4101 | ERROR: Duchamp configuration failure. |
---|
[788] | 4102 | -------------------------------------------------------------------" "$LINENO" 5 |
---|
[168] | 4103 | fi |
---|
| 4104 | |
---|
[107] | 4105 | # Checks for typedefs, structures, and compiler characteristics. |
---|
[788] | 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
| 4107 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
| 4108 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
| 4109 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4110 | else |
---|
[788] | 4111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4112 | /* end confdefs.h. */ |
---|
| 4113 | |
---|
[1088] | 4114 | #include <stdbool.h> |
---|
| 4115 | #ifndef bool |
---|
| 4116 | "error: bool is not defined" |
---|
| 4117 | #endif |
---|
| 4118 | #ifndef false |
---|
| 4119 | "error: false is not defined" |
---|
| 4120 | #endif |
---|
| 4121 | #if false |
---|
| 4122 | "error: false is not 0" |
---|
| 4123 | #endif |
---|
| 4124 | #ifndef true |
---|
| 4125 | "error: true is not defined" |
---|
| 4126 | #endif |
---|
| 4127 | #if true != 1 |
---|
| 4128 | "error: true is not 1" |
---|
| 4129 | #endif |
---|
| 4130 | #ifndef __bool_true_false_are_defined |
---|
| 4131 | "error: __bool_true_false_are_defined is not defined" |
---|
| 4132 | #endif |
---|
[107] | 4133 | |
---|
[1088] | 4134 | struct s { _Bool s: 1; _Bool t; } s; |
---|
[107] | 4135 | |
---|
[1088] | 4136 | char a[true == 1 ? 1 : -1]; |
---|
| 4137 | char b[false == 0 ? 1 : -1]; |
---|
| 4138 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 4139 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
| 4140 | /* See body of main program for 'e'. */ |
---|
| 4141 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
| 4142 | char g[true]; |
---|
| 4143 | char h[sizeof (_Bool)]; |
---|
| 4144 | char i[sizeof s.t]; |
---|
| 4145 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
| 4146 | /* The following fails for |
---|
| 4147 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
| 4148 | _Bool n[m]; |
---|
| 4149 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
| 4150 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
| 4151 | /* Catch a bug in an HP-UX C compiler. See |
---|
| 4152 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
| 4153 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
| 4154 | */ |
---|
| 4155 | _Bool q = true; |
---|
| 4156 | _Bool *pq = &q; |
---|
[107] | 4157 | |
---|
| 4158 | int |
---|
| 4159 | main () |
---|
| 4160 | { |
---|
[763] | 4161 | |
---|
[1088] | 4162 | bool e = &s; |
---|
| 4163 | *pq |= q; |
---|
| 4164 | *pq |= ! q; |
---|
| 4165 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
| 4166 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
| 4167 | + !m + !n + !o + !p + !q + !pq); |
---|
[763] | 4168 | |
---|
[107] | 4169 | ; |
---|
| 4170 | return 0; |
---|
| 4171 | } |
---|
| 4172 | _ACEOF |
---|
[788] | 4173 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 4174 | ac_cv_header_stdbool_h=yes |
---|
| 4175 | else |
---|
[788] | 4176 | ac_cv_header_stdbool_h=no |
---|
[107] | 4177 | fi |
---|
[763] | 4178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 4179 | fi |
---|
[788] | 4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 4181 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
[1088] | 4182 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
[788] | 4183 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
[107] | 4184 | |
---|
| 4185 | cat >>confdefs.h <<_ACEOF |
---|
| 4186 | #define HAVE__BOOL 1 |
---|
| 4187 | _ACEOF |
---|
| 4188 | |
---|
| 4189 | |
---|
| 4190 | fi |
---|
| 4191 | |
---|
[1088] | 4192 | |
---|
[107] | 4193 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 4194 | |
---|
[788] | 4195 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
[107] | 4196 | |
---|
| 4197 | fi |
---|
| 4198 | |
---|
[788] | 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
---|
| 4200 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
| 4201 | if ${ac_cv_c_const+:} false; then : |
---|
| 4202 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4203 | else |
---|
[788] | 4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4205 | /* end confdefs.h. */ |
---|
| 4206 | |
---|
| 4207 | int |
---|
| 4208 | main () |
---|
| 4209 | { |
---|
[1088] | 4210 | |
---|
[107] | 4211 | #ifndef __cplusplus |
---|
[1088] | 4212 | /* Ultrix mips cc rejects this sort of thing. */ |
---|
[107] | 4213 | typedef int charset[2]; |
---|
[1088] | 4214 | const charset cs = { 0, 0 }; |
---|
[107] | 4215 | /* SunOS 4.1.1 cc rejects this. */ |
---|
[763] | 4216 | char const *const *pcpcc; |
---|
| 4217 | char **ppc; |
---|
[107] | 4218 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 4219 | struct point {int x, y;}; |
---|
| 4220 | static struct point const zero = {0,0}; |
---|
| 4221 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 4222 | It does not let you subtract one const X* pointer from another in |
---|
| 4223 | an arm of an if-expression whose if-part is not a constant |
---|
| 4224 | expression */ |
---|
| 4225 | const char *g = "string"; |
---|
[763] | 4226 | pcpcc = &g + (g ? g-g : 0); |
---|
[107] | 4227 | /* HPUX 7.0 cc rejects these. */ |
---|
[763] | 4228 | ++pcpcc; |
---|
| 4229 | ppc = (char**) pcpcc; |
---|
| 4230 | pcpcc = (char const *const *) ppc; |
---|
[1088] | 4231 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
---|
| 4232 | char tx; |
---|
| 4233 | char *t = &tx; |
---|
[107] | 4234 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 4235 | |
---|
| 4236 | *t++ = 0; |
---|
[763] | 4237 | if (s) return 0; |
---|
[107] | 4238 | } |
---|
| 4239 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 4240 | int x[] = {25, 17}; |
---|
| 4241 | const int *foo = &x[0]; |
---|
| 4242 | ++foo; |
---|
| 4243 | } |
---|
| 4244 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 4245 | typedef const int *iptr; |
---|
| 4246 | iptr p = 0; |
---|
| 4247 | ++p; |
---|
| 4248 | } |
---|
[1088] | 4249 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
---|
[107] | 4250 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
[1088] | 4251 | struct s { int j; const int *ap[3]; } bx; |
---|
| 4252 | struct s *b = &bx; b->j = 5; |
---|
[107] | 4253 | } |
---|
| 4254 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 4255 | const int foo = 10; |
---|
[763] | 4256 | if (!foo) return 0; |
---|
[107] | 4257 | } |
---|
[763] | 4258 | return !cs[0] && !zero.x; |
---|
[107] | 4259 | #endif |
---|
| 4260 | |
---|
| 4261 | ; |
---|
| 4262 | return 0; |
---|
| 4263 | } |
---|
| 4264 | _ACEOF |
---|
[788] | 4265 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 4266 | ac_cv_c_const=yes |
---|
| 4267 | else |
---|
[788] | 4268 | ac_cv_c_const=no |
---|
[107] | 4269 | fi |
---|
[763] | 4270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 4271 | fi |
---|
[788] | 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
---|
| 4273 | $as_echo "$ac_cv_c_const" >&6; } |
---|
[107] | 4274 | if test $ac_cv_c_const = no; then |
---|
| 4275 | |
---|
[788] | 4276 | $as_echo "#define const /**/" >>confdefs.h |
---|
[107] | 4277 | |
---|
| 4278 | fi |
---|
| 4279 | |
---|
[788] | 4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
| 4281 | $as_echo_n "checking for inline... " >&6; } |
---|
| 4282 | if ${ac_cv_c_inline+:} false; then : |
---|
| 4283 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4284 | else |
---|
| 4285 | ac_cv_c_inline=no |
---|
| 4286 | for ac_kw in inline __inline__ __inline; do |
---|
[788] | 4287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4288 | /* end confdefs.h. */ |
---|
| 4289 | #ifndef __cplusplus |
---|
| 4290 | typedef int foo_t; |
---|
| 4291 | static $ac_kw foo_t static_foo () {return 0; } |
---|
| 4292 | $ac_kw foo_t foo () {return 0; } |
---|
| 4293 | #endif |
---|
| 4294 | |
---|
| 4295 | _ACEOF |
---|
[788] | 4296 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 4297 | ac_cv_c_inline=$ac_kw |
---|
[107] | 4298 | fi |
---|
[763] | 4299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4300 | test "$ac_cv_c_inline" != no && break |
---|
[107] | 4301 | done |
---|
| 4302 | |
---|
| 4303 | fi |
---|
[788] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
| 4305 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
[349] | 4306 | |
---|
[107] | 4307 | case $ac_cv_c_inline in |
---|
| 4308 | inline | yes) ;; |
---|
[349] | 4309 | *) |
---|
| 4310 | case $ac_cv_c_inline in |
---|
| 4311 | no) ac_val=;; |
---|
| 4312 | *) ac_val=$ac_cv_c_inline;; |
---|
| 4313 | esac |
---|
| 4314 | cat >>confdefs.h <<_ACEOF |
---|
| 4315 | #ifndef __cplusplus |
---|
| 4316 | #define inline $ac_val |
---|
| 4317 | #endif |
---|
[107] | 4318 | _ACEOF |
---|
[349] | 4319 | ;; |
---|
[107] | 4320 | esac |
---|
| 4321 | |
---|
| 4322 | |
---|
[168] | 4323 | # Utilities. |
---|
| 4324 | if test -n "$ac_tool_prefix"; then |
---|
| 4325 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 4326 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
[788] | 4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4328 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4329 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
| 4330 | $as_echo_n "(cached) " >&6 |
---|
[168] | 4331 | else |
---|
| 4332 | if test -n "$RANLIB"; then |
---|
| 4333 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 4334 | else |
---|
| 4335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4336 | for as_dir in $PATH |
---|
| 4337 | do |
---|
| 4338 | IFS=$as_save_IFS |
---|
| 4339 | test -z "$as_dir" && as_dir=. |
---|
[788] | 4340 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 4341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[168] | 4342 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
[788] | 4343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[168] | 4344 | break 2 |
---|
| 4345 | fi |
---|
| 4346 | done |
---|
[788] | 4347 | done |
---|
[763] | 4348 | IFS=$as_save_IFS |
---|
[168] | 4349 | |
---|
| 4350 | fi |
---|
| 4351 | fi |
---|
| 4352 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 4353 | if test -n "$RANLIB"; then |
---|
[788] | 4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 4355 | $as_echo "$RANLIB" >&6; } |
---|
[168] | 4356 | else |
---|
[788] | 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4358 | $as_echo "no" >&6; } |
---|
[168] | 4359 | fi |
---|
| 4360 | |
---|
[763] | 4361 | |
---|
[168] | 4362 | fi |
---|
| 4363 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 4364 | ac_ct_RANLIB=$RANLIB |
---|
| 4365 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 4366 | set dummy ranlib; ac_word=$2 |
---|
[788] | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4368 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4369 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
| 4370 | $as_echo_n "(cached) " >&6 |
---|
[168] | 4371 | else |
---|
| 4372 | if test -n "$ac_ct_RANLIB"; then |
---|
| 4373 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 4374 | else |
---|
| 4375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4376 | for as_dir in $PATH |
---|
| 4377 | do |
---|
| 4378 | IFS=$as_save_IFS |
---|
| 4379 | test -z "$as_dir" && as_dir=. |
---|
[788] | 4380 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1088] | 4381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[168] | 4382 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
[788] | 4383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[168] | 4384 | break 2 |
---|
| 4385 | fi |
---|
| 4386 | done |
---|
[788] | 4387 | done |
---|
[763] | 4388 | IFS=$as_save_IFS |
---|
[168] | 4389 | |
---|
| 4390 | fi |
---|
| 4391 | fi |
---|
| 4392 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 4393 | if test -n "$ac_ct_RANLIB"; then |
---|
[788] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 4395 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
[168] | 4396 | else |
---|
[788] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4398 | $as_echo "no" >&6; } |
---|
[168] | 4399 | fi |
---|
| 4400 | |
---|
[763] | 4401 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 4402 | RANLIB=":" |
---|
| 4403 | else |
---|
| 4404 | case $cross_compiling:$ac_tool_warned in |
---|
| 4405 | yes:) |
---|
[788] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 4407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 4408 | ac_tool_warned=yes ;; |
---|
| 4409 | esac |
---|
| 4410 | RANLIB=$ac_ct_RANLIB |
---|
| 4411 | fi |
---|
[168] | 4412 | else |
---|
| 4413 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 4414 | fi |
---|
| 4415 | |
---|
| 4416 | |
---|
[107] | 4417 | # Checks for library functions. |
---|
[788] | 4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
---|
| 4419 | $as_echo_n "checking for working strtod... " >&6; } |
---|
| 4420 | if ${ac_cv_func_strtod+:} false; then : |
---|
| 4421 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4422 | else |
---|
[788] | 4423 | if test "$cross_compiling" = yes; then : |
---|
[107] | 4424 | ac_cv_func_strtod=no |
---|
| 4425 | else |
---|
[788] | 4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4427 | /* end confdefs.h. */ |
---|
| 4428 | |
---|
[763] | 4429 | $ac_includes_default |
---|
| 4430 | #ifndef strtod |
---|
[107] | 4431 | double strtod (); |
---|
[763] | 4432 | #endif |
---|
[107] | 4433 | int |
---|
| 4434 | main() |
---|
| 4435 | { |
---|
| 4436 | { |
---|
| 4437 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
| 4438 | char *string = " +69"; |
---|
| 4439 | char *term; |
---|
| 4440 | double value; |
---|
| 4441 | value = strtod (string, &term); |
---|
| 4442 | if (value != 69 || term != (string + 4)) |
---|
[763] | 4443 | return 1; |
---|
[107] | 4444 | } |
---|
| 4445 | |
---|
| 4446 | { |
---|
| 4447 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
| 4448 | terminating character under some conditions. */ |
---|
| 4449 | char *string = "NaN"; |
---|
| 4450 | char *term; |
---|
| 4451 | strtod (string, &term); |
---|
| 4452 | if (term != string && *(term - 1) == 0) |
---|
[763] | 4453 | return 1; |
---|
[107] | 4454 | } |
---|
[763] | 4455 | return 0; |
---|
[107] | 4456 | } |
---|
| 4457 | |
---|
| 4458 | _ACEOF |
---|
[788] | 4459 | if ac_fn_c_try_run "$LINENO"; then : |
---|
[107] | 4460 | ac_cv_func_strtod=yes |
---|
| 4461 | else |
---|
[788] | 4462 | ac_cv_func_strtod=no |
---|
[107] | 4463 | fi |
---|
[788] | 4464 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4465 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
[107] | 4466 | fi |
---|
[763] | 4467 | |
---|
[107] | 4468 | fi |
---|
[788] | 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
---|
| 4470 | $as_echo "$ac_cv_func_strtod" >&6; } |
---|
[107] | 4471 | if test $ac_cv_func_strtod = no; then |
---|
[763] | 4472 | case " $LIBOBJS " in |
---|
[349] | 4473 | *" strtod.$ac_objext "* ) ;; |
---|
[763] | 4474 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
| 4475 | ;; |
---|
[349] | 4476 | esac |
---|
| 4477 | |
---|
[788] | 4478 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
---|
| 4479 | if test "x$ac_cv_func_pow" = xyes; then : |
---|
[349] | 4480 | |
---|
[107] | 4481 | fi |
---|
[763] | 4482 | |
---|
[107] | 4483 | if test $ac_cv_func_pow = no; then |
---|
[788] | 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
---|
| 4485 | $as_echo_n "checking for pow in -lm... " >&6; } |
---|
| 4486 | if ${ac_cv_lib_m_pow+:} false; then : |
---|
| 4487 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4488 | else |
---|
| 4489 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4490 | LIBS="-lm $LIBS" |
---|
[788] | 4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4492 | /* end confdefs.h. */ |
---|
| 4493 | |
---|
[763] | 4494 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4495 | Use char because int might match the return type of a GCC |
---|
| 4496 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4497 | #ifdef __cplusplus |
---|
| 4498 | extern "C" |
---|
| 4499 | #endif |
---|
| 4500 | char pow (); |
---|
| 4501 | int |
---|
| 4502 | main () |
---|
| 4503 | { |
---|
[763] | 4504 | return pow (); |
---|
[107] | 4505 | ; |
---|
| 4506 | return 0; |
---|
| 4507 | } |
---|
| 4508 | _ACEOF |
---|
[788] | 4509 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4510 | ac_cv_lib_m_pow=yes |
---|
| 4511 | else |
---|
[788] | 4512 | ac_cv_lib_m_pow=no |
---|
[107] | 4513 | fi |
---|
[788] | 4514 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4515 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4516 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4517 | fi |
---|
[788] | 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
---|
| 4519 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
---|
| 4520 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
---|
[107] | 4521 | POW_LIB=-lm |
---|
| 4522 | else |
---|
[788] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
---|
| 4524 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
[107] | 4525 | fi |
---|
| 4526 | |
---|
| 4527 | fi |
---|
| 4528 | |
---|
| 4529 | fi |
---|
| 4530 | |
---|
| 4531 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
[788] | 4532 | do : |
---|
| 4533 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 4534 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
| 4535 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
[107] | 4536 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4537 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
[107] | 4538 | _ACEOF |
---|
| 4539 | |
---|
| 4540 | fi |
---|
| 4541 | done |
---|
| 4542 | |
---|
| 4543 | |
---|
| 4544 | # Extra places to look for third-party include files and libraries. |
---|
| 4545 | INCDIRS="$INCDIRS \ |
---|
| 4546 | /usr/include \ |
---|
| 4547 | /usr/local/include \ |
---|
| 4548 | /usr/local/pgplot \ |
---|
| 4549 | /usr/local/cfitsio \ |
---|
| 4550 | /usr/local/wcslib \ |
---|
| 4551 | /local/pgplot \ |
---|
[110] | 4552 | /local/cfitsio \ |
---|
| 4553 | /opt/local/include" |
---|
[107] | 4554 | |
---|
| 4555 | LIBDIRS="$LIBDIRS \ |
---|
| 4556 | /usr/lib \ |
---|
| 4557 | /usr/local/lib \ |
---|
| 4558 | /usr/local/pgplot \ |
---|
| 4559 | /usr/local/cfitsio \ |
---|
| 4560 | /usr/local/wcslib \ |
---|
| 4561 | /local/lib \ |
---|
| 4562 | /local/pgplot \ |
---|
| 4563 | /local/cfitsio \ |
---|
[110] | 4564 | /opt/SUNWspro/lib \ |
---|
| 4565 | /opt/local/lib" |
---|
[107] | 4566 | |
---|
[788] | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: LIBDIRS" >&5 |
---|
| 4568 | $as_echo "$as_me: LIBDIRS" >&6;} |
---|
[107] | 4569 | |
---|
| 4570 | for LIBDIR in $LIBDIRS ; do |
---|
[788] | 4571 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 4573 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 4574 | if eval \${$as_ac_File+:} false; then : |
---|
| 4575 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4576 | else |
---|
| 4577 | test "$cross_compiling" = yes && |
---|
[788] | 4578 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[107] | 4579 | if test -r "$LIBDIR"; then |
---|
| 4580 | eval "$as_ac_File=yes" |
---|
| 4581 | else |
---|
| 4582 | eval "$as_ac_File=no" |
---|
| 4583 | fi |
---|
| 4584 | fi |
---|
[788] | 4585 | eval ac_res=\$$as_ac_File |
---|
| 4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4587 | $as_echo "$ac_res" >&6; } |
---|
| 4588 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[107] | 4589 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 4590 | else |
---|
| 4591 | continue |
---|
| 4592 | fi |
---|
| 4593 | |
---|
| 4594 | done |
---|
| 4595 | |
---|
| 4596 | ########################################################################## |
---|
| 4597 | # Search for PGPLOT |
---|
[763] | 4598 | # use --with-pgplot=directory to specify a particular PGPLOT directory. |
---|
[342] | 4599 | # or --without-pgplot or --with-pgplot=no to do without it |
---|
| 4600 | # else do the normal searching for libraries. |
---|
[107] | 4601 | |
---|
[788] | 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- PGPLOT -- " >&5 |
---|
| 4603 | $as_echo "$as_me: -- PGPLOT -- " >&6;} |
---|
[342] | 4604 | |
---|
[763] | 4605 | # Check whether --with-pgplot was given. |
---|
[788] | 4606 | if test "${with_pgplot+set}" = set; then : |
---|
[763] | 4607 | withval=$with_pgplot; |
---|
[342] | 4608 | if test "x$withval" != xno; then |
---|
[788] | 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 4610 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 4611 | PGPLOTINCDIRS=$withval |
---|
| 4612 | PGPLOTLIBDIRS=$withval |
---|
| 4613 | LDFLAGS="$LDFLAGS -L$withval" |
---|
| 4614 | fi |
---|
| 4615 | |
---|
| 4616 | else |
---|
| 4617 | |
---|
| 4618 | PGPLOTINCDIRS=$INCDIRS |
---|
| 4619 | PGPLOTLIBDIRS=$LIBDIRS |
---|
| 4620 | |
---|
[763] | 4621 | fi |
---|
[342] | 4622 | |
---|
[763] | 4623 | |
---|
[342] | 4624 | if test "x$PGPLOTLIBDIRS" = x; then |
---|
| 4625 | #the argument to --with-pgplot was no, so we don't look for it. |
---|
[788] | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: Not enabling PGPLOT use." >&5 |
---|
| 4627 | $as_echo "$as_me: Not enabling PGPLOT use." >&6;} |
---|
[402] | 4628 | #This is the command to do the linking stage of the compilation |
---|
| 4629 | #If no pgplot, we can just link with g++ (or equivalent) |
---|
[384] | 4630 | LINKER=$CXX |
---|
| 4631 | # AC_CHECK_LIB([stdc++], [main], [PGPLOTLIB="-lstdc++"]) |
---|
| 4632 | # if test "x$F77" = xgfortran; then |
---|
| 4633 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 4634 | # fi |
---|
[342] | 4635 | else |
---|
| 4636 | |
---|
[347] | 4637 | #Set up the PGPLOT-related libraries and includes. |
---|
| 4638 | |
---|
[342] | 4639 | for INCDIR in $PGPLOTINCDIRS ; do |
---|
[788] | 4640 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 4642 | $as_echo_n "checking for $INCDIR/cpgplot.h... " >&6; } |
---|
| 4643 | if eval \${$as_ac_File+:} false; then : |
---|
| 4644 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4645 | else |
---|
| 4646 | test "$cross_compiling" = yes && |
---|
[788] | 4647 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[107] | 4648 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4649 | eval "$as_ac_File=yes" |
---|
| 4650 | else |
---|
| 4651 | eval "$as_ac_File=no" |
---|
| 4652 | fi |
---|
| 4653 | fi |
---|
[788] | 4654 | eval ac_res=\$$as_ac_File |
---|
| 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4656 | $as_echo "$ac_res" >&6; } |
---|
| 4657 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[107] | 4658 | PGPLOTINC=-I$INCDIR; break |
---|
| 4659 | fi |
---|
| 4660 | |
---|
[806] | 4661 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/pgplot/cpgplot.h" | $as_tr_sh` |
---|
| 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/pgplot/cpgplot.h" >&5 |
---|
| 4663 | $as_echo_n "checking for $INCDIR/pgplot/cpgplot.h... " >&6; } |
---|
[788] | 4664 | if eval \${$as_ac_File+:} false; then : |
---|
| 4665 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4666 | else |
---|
| 4667 | test "$cross_compiling" = yes && |
---|
[788] | 4668 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[806] | 4669 | if test -r "$INCDIR/pgplot/cpgplot.h"; then |
---|
[107] | 4670 | eval "$as_ac_File=yes" |
---|
| 4671 | else |
---|
| 4672 | eval "$as_ac_File=no" |
---|
| 4673 | fi |
---|
| 4674 | fi |
---|
[788] | 4675 | eval ac_res=\$$as_ac_File |
---|
| 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4677 | $as_echo "$ac_res" >&6; } |
---|
| 4678 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[937] | 4679 | PGPLOTINC=-I$INCDIR/pgplot; break |
---|
[107] | 4680 | fi |
---|
| 4681 | |
---|
[806] | 4682 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/include/cpgplot.h" | $as_tr_sh` |
---|
| 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/include/cpgplot.h" >&5 |
---|
| 4684 | $as_echo_n "checking for $INCDIR/include/cpgplot.h... " >&6; } |
---|
| 4685 | if eval \${$as_ac_File+:} false; then : |
---|
| 4686 | $as_echo_n "(cached) " >&6 |
---|
| 4687 | else |
---|
| 4688 | test "$cross_compiling" = yes && |
---|
| 4689 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 4690 | if test -r "$INCDIR/include/cpgplot.h"; then |
---|
| 4691 | eval "$as_ac_File=yes" |
---|
| 4692 | else |
---|
| 4693 | eval "$as_ac_File=no" |
---|
| 4694 | fi |
---|
| 4695 | fi |
---|
| 4696 | eval ac_res=\$$as_ac_File |
---|
| 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4698 | $as_echo "$ac_res" >&6; } |
---|
| 4699 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 4700 | PGPLOTINC=-I$INCDIR/include; break |
---|
| 4701 | fi |
---|
| 4702 | |
---|
[342] | 4703 | done |
---|
[107] | 4704 | |
---|
[342] | 4705 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
[788] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosd in -lsunmath" >&5 |
---|
| 4707 | $as_echo_n "checking for cosd in -lsunmath... " >&6; } |
---|
| 4708 | if ${ac_cv_lib_sunmath_cosd+:} false; then : |
---|
| 4709 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4710 | else |
---|
| 4711 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4712 | LIBS="-lsunmath $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4714 | /* end confdefs.h. */ |
---|
| 4715 | |
---|
[763] | 4716 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4717 | Use char because int might match the return type of a GCC |
---|
| 4718 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4719 | #ifdef __cplusplus |
---|
| 4720 | extern "C" |
---|
| 4721 | #endif |
---|
| 4722 | char cosd (); |
---|
| 4723 | int |
---|
| 4724 | main () |
---|
| 4725 | { |
---|
[763] | 4726 | return cosd (); |
---|
[107] | 4727 | ; |
---|
| 4728 | return 0; |
---|
| 4729 | } |
---|
| 4730 | _ACEOF |
---|
[788] | 4731 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4732 | ac_cv_lib_sunmath_cosd=yes |
---|
| 4733 | else |
---|
[788] | 4734 | ac_cv_lib_sunmath_cosd=no |
---|
[107] | 4735 | fi |
---|
[788] | 4736 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4737 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4738 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4739 | fi |
---|
[788] | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
| 4741 | $as_echo "$ac_cv_lib_sunmath_cosd" >&6; } |
---|
| 4742 | if test "x$ac_cv_lib_sunmath_cosd" = xyes; then : |
---|
[351] | 4743 | EXTRAPGLIB="-lsunmath $EXTRAPGLIB" |
---|
[107] | 4744 | fi |
---|
| 4745 | |
---|
[788] | 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iand_ in -lM77" >&5 |
---|
| 4747 | $as_echo_n "checking for iand_ in -lM77... " >&6; } |
---|
| 4748 | if ${ac_cv_lib_M77_iand_+:} false; then : |
---|
| 4749 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4750 | else |
---|
| 4751 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4752 | LIBS="-lM77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4754 | /* end confdefs.h. */ |
---|
| 4755 | |
---|
[763] | 4756 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4757 | Use char because int might match the return type of a GCC |
---|
| 4758 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4759 | #ifdef __cplusplus |
---|
| 4760 | extern "C" |
---|
| 4761 | #endif |
---|
| 4762 | char iand_ (); |
---|
| 4763 | int |
---|
| 4764 | main () |
---|
| 4765 | { |
---|
[763] | 4766 | return iand_ (); |
---|
[107] | 4767 | ; |
---|
| 4768 | return 0; |
---|
| 4769 | } |
---|
| 4770 | _ACEOF |
---|
[788] | 4771 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4772 | ac_cv_lib_M77_iand_=yes |
---|
| 4773 | else |
---|
[788] | 4774 | ac_cv_lib_M77_iand_=no |
---|
[107] | 4775 | fi |
---|
[788] | 4776 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4777 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4778 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4779 | fi |
---|
[788] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_M77_iand_" >&5 |
---|
| 4781 | $as_echo "$ac_cv_lib_M77_iand_" >&6; } |
---|
| 4782 | if test "x$ac_cv_lib_M77_iand_" = xyes; then : |
---|
[351] | 4783 | EXTRAPGLIB="-lM77 $EXTRAPGLIB" |
---|
[107] | 4784 | fi |
---|
| 4785 | |
---|
[788] | 4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for f77_init in -lF77" >&5 |
---|
| 4787 | $as_echo_n "checking for f77_init in -lF77... " >&6; } |
---|
| 4788 | if ${ac_cv_lib_F77_f77_init+:} false; then : |
---|
| 4789 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4790 | else |
---|
| 4791 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4792 | LIBS="-lF77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4794 | /* end confdefs.h. */ |
---|
| 4795 | |
---|
[763] | 4796 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4797 | Use char because int might match the return type of a GCC |
---|
| 4798 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4799 | #ifdef __cplusplus |
---|
| 4800 | extern "C" |
---|
| 4801 | #endif |
---|
| 4802 | char f77_init (); |
---|
| 4803 | int |
---|
| 4804 | main () |
---|
| 4805 | { |
---|
[763] | 4806 | return f77_init (); |
---|
[107] | 4807 | ; |
---|
| 4808 | return 0; |
---|
| 4809 | } |
---|
| 4810 | _ACEOF |
---|
[788] | 4811 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4812 | ac_cv_lib_F77_f77_init=yes |
---|
| 4813 | else |
---|
[788] | 4814 | ac_cv_lib_F77_f77_init=no |
---|
[107] | 4815 | fi |
---|
[788] | 4816 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4817 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4818 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4819 | fi |
---|
[788] | 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
| 4821 | $as_echo "$ac_cv_lib_F77_f77_init" >&6; } |
---|
| 4822 | if test "x$ac_cv_lib_F77_f77_init" = xyes; then : |
---|
[351] | 4823 | EXTRAPGLIB="-lF77 $EXTRAPGLIB" |
---|
[107] | 4824 | fi |
---|
| 4825 | |
---|
| 4826 | |
---|
[342] | 4827 | # Search for X11 includes and libraries. |
---|
[788] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
| 4829 | $as_echo_n "checking for X... " >&6; } |
---|
[107] | 4830 | |
---|
| 4831 | |
---|
[763] | 4832 | # Check whether --with-x was given. |
---|
[788] | 4833 | if test "${with_x+set}" = set; then : |
---|
[763] | 4834 | withval=$with_x; |
---|
| 4835 | fi |
---|
[107] | 4836 | |
---|
| 4837 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
| 4838 | if test "x$with_x" = xno; then |
---|
| 4839 | # The user explicitly disabled X. |
---|
| 4840 | have_x=disabled |
---|
| 4841 | else |
---|
[763] | 4842 | case $x_includes,$x_libraries in #( |
---|
[788] | 4843 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
| 4844 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
| 4845 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4846 | else |
---|
| 4847 | # One or both of the vars are not set, and there is no cached value. |
---|
| 4848 | ac_x_includes=no ac_x_libraries=no |
---|
[763] | 4849 | rm -f -r conftest.dir |
---|
[107] | 4850 | if mkdir conftest.dir; then |
---|
| 4851 | cd conftest.dir |
---|
| 4852 | cat >Imakefile <<'_ACEOF' |
---|
[763] | 4853 | incroot: |
---|
| 4854 | @echo incroot='${INCROOT}' |
---|
| 4855 | usrlibdir: |
---|
| 4856 | @echo usrlibdir='${USRLIBDIR}' |
---|
| 4857 | libdir: |
---|
| 4858 | @echo libdir='${LIBDIR}' |
---|
[107] | 4859 | _ACEOF |
---|
[763] | 4860 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
[788] | 4861 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
[763] | 4862 | for ac_var in incroot usrlibdir libdir; do |
---|
| 4863 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
| 4864 | done |
---|
[107] | 4865 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
[763] | 4866 | for ac_extension in a so sl dylib la dll; do |
---|
| 4867 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
| 4868 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
[349] | 4869 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
[107] | 4870 | fi |
---|
| 4871 | done |
---|
| 4872 | # Screen out bogus values from the imake configuration. They are |
---|
| 4873 | # bogus both because they are the default anyway, and because |
---|
| 4874 | # using them would break gcc on systems where it needs fixed includes. |
---|
| 4875 | case $ac_im_incroot in |
---|
[763] | 4876 | /usr/include) ac_x_includes= ;; |
---|
[107] | 4877 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
| 4878 | esac |
---|
| 4879 | case $ac_im_usrlibdir in |
---|
[788] | 4880 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
[107] | 4881 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
| 4882 | esac |
---|
| 4883 | fi |
---|
| 4884 | cd .. |
---|
[763] | 4885 | rm -f -r conftest.dir |
---|
[107] | 4886 | fi |
---|
| 4887 | |
---|
| 4888 | # Standard set of common directories for X headers. |
---|
| 4889 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
| 4890 | ac_x_header_dirs=' |
---|
| 4891 | /usr/X11/include |
---|
[788] | 4892 | /usr/X11R7/include |
---|
[107] | 4893 | /usr/X11R6/include |
---|
| 4894 | /usr/X11R5/include |
---|
| 4895 | /usr/X11R4/include |
---|
| 4896 | |
---|
| 4897 | /usr/include/X11 |
---|
[788] | 4898 | /usr/include/X11R7 |
---|
[107] | 4899 | /usr/include/X11R6 |
---|
| 4900 | /usr/include/X11R5 |
---|
| 4901 | /usr/include/X11R4 |
---|
| 4902 | |
---|
| 4903 | /usr/local/X11/include |
---|
[788] | 4904 | /usr/local/X11R7/include |
---|
[107] | 4905 | /usr/local/X11R6/include |
---|
| 4906 | /usr/local/X11R5/include |
---|
| 4907 | /usr/local/X11R4/include |
---|
| 4908 | |
---|
| 4909 | /usr/local/include/X11 |
---|
[788] | 4910 | /usr/local/include/X11R7 |
---|
[107] | 4911 | /usr/local/include/X11R6 |
---|
| 4912 | /usr/local/include/X11R5 |
---|
| 4913 | /usr/local/include/X11R4 |
---|
| 4914 | |
---|
| 4915 | /usr/X386/include |
---|
| 4916 | /usr/x386/include |
---|
| 4917 | /usr/XFree86/include/X11 |
---|
| 4918 | |
---|
| 4919 | /usr/include |
---|
| 4920 | /usr/local/include |
---|
| 4921 | /usr/unsupported/include |
---|
| 4922 | /usr/athena/include |
---|
| 4923 | /usr/local/x11r5/include |
---|
| 4924 | /usr/lpp/Xamples/include |
---|
| 4925 | |
---|
| 4926 | /usr/openwin/include |
---|
| 4927 | /usr/openwin/share/include' |
---|
| 4928 | |
---|
| 4929 | if test "$ac_x_includes" = no; then |
---|
[763] | 4930 | # Guess where to find include files, by looking for Xlib.h. |
---|
[107] | 4931 | # First, try using that file with no special directory specified. |
---|
[788] | 4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4933 | /* end confdefs.h. */ |
---|
[763] | 4934 | #include <X11/Xlib.h> |
---|
[107] | 4935 | _ACEOF |
---|
[788] | 4936 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 4937 | # We can compile using X headers with no special include directory. |
---|
| 4938 | ac_x_includes= |
---|
| 4939 | else |
---|
| 4940 | for ac_dir in $ac_x_header_dirs; do |
---|
[763] | 4941 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
[107] | 4942 | ac_x_includes=$ac_dir |
---|
| 4943 | break |
---|
| 4944 | fi |
---|
| 4945 | done |
---|
| 4946 | fi |
---|
[788] | 4947 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[107] | 4948 | fi # $ac_x_includes = no |
---|
| 4949 | |
---|
| 4950 | if test "$ac_x_libraries" = no; then |
---|
| 4951 | # Check for the libraries. |
---|
| 4952 | # See if we find them without any special options. |
---|
| 4953 | # Don't add to $LIBS permanently. |
---|
| 4954 | ac_save_LIBS=$LIBS |
---|
[763] | 4955 | LIBS="-lX11 $LIBS" |
---|
[788] | 4956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4957 | /* end confdefs.h. */ |
---|
[763] | 4958 | #include <X11/Xlib.h> |
---|
[107] | 4959 | int |
---|
| 4960 | main () |
---|
| 4961 | { |
---|
[763] | 4962 | XrmInitialize () |
---|
[107] | 4963 | ; |
---|
| 4964 | return 0; |
---|
| 4965 | } |
---|
| 4966 | _ACEOF |
---|
[788] | 4967 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4968 | LIBS=$ac_save_LIBS |
---|
| 4969 | # We can link X programs with no special library path. |
---|
| 4970 | ac_x_libraries= |
---|
| 4971 | else |
---|
[788] | 4972 | LIBS=$ac_save_LIBS |
---|
| 4973 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
[107] | 4974 | do |
---|
| 4975 | # Don't even attempt the hair of trying to link an X program! |
---|
[763] | 4976 | for ac_extension in a so sl dylib la dll; do |
---|
| 4977 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
[107] | 4978 | ac_x_libraries=$ac_dir |
---|
| 4979 | break 2 |
---|
| 4980 | fi |
---|
| 4981 | done |
---|
| 4982 | done |
---|
| 4983 | fi |
---|
[788] | 4984 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4985 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4986 | fi # $ac_x_libraries = no |
---|
| 4987 | |
---|
[763] | 4988 | case $ac_x_includes,$ac_x_libraries in #( |
---|
| 4989 | no,* | *,no | *\'*) |
---|
| 4990 | # Didn't find X, or a directory has "'" in its name. |
---|
| 4991 | ac_cv_have_x="have_x=no";; #( |
---|
| 4992 | *) |
---|
| 4993 | # Record where we found X for the cache. |
---|
| 4994 | ac_cv_have_x="have_x=yes\ |
---|
| 4995 | ac_x_includes='$ac_x_includes'\ |
---|
| 4996 | ac_x_libraries='$ac_x_libraries'" |
---|
| 4997 | esac |
---|
[107] | 4998 | fi |
---|
[763] | 4999 | ;; #( |
---|
| 5000 | *) have_x=yes;; |
---|
| 5001 | esac |
---|
[107] | 5002 | eval "$ac_cv_have_x" |
---|
| 5003 | fi # $with_x != no |
---|
| 5004 | |
---|
| 5005 | if test "$have_x" != yes; then |
---|
[788] | 5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
| 5007 | $as_echo "$have_x" >&6; } |
---|
[107] | 5008 | no_x=yes |
---|
| 5009 | else |
---|
| 5010 | # If each of the values was on the command line, it overrides each guess. |
---|
| 5011 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
| 5012 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
| 5013 | # Update the cache value to reflect the command line values. |
---|
[763] | 5014 | ac_cv_have_x="have_x=yes\ |
---|
| 5015 | ac_x_includes='$x_includes'\ |
---|
| 5016 | ac_x_libraries='$x_libraries'" |
---|
[788] | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
| 5018 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
[107] | 5019 | fi |
---|
| 5020 | |
---|
[1058] | 5021 | if test "$no_x" = yes; then |
---|
| 5022 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
| 5023 | |
---|
| 5024 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
---|
| 5025 | |
---|
| 5026 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
| 5027 | else |
---|
| 5028 | if test -n "$x_includes"; then |
---|
| 5029 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
| 5030 | fi |
---|
| 5031 | |
---|
| 5032 | # It would also be nice to do this for all -L options, not just this one. |
---|
| 5033 | if test -n "$x_libraries"; then |
---|
| 5034 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
| 5035 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
| 5036 | # others require no space. Words are not sufficient . . . . |
---|
| 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
---|
| 5038 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
---|
| 5039 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
---|
| 5040 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
---|
| 5041 | ac_c_werror_flag=yes |
---|
| 5042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5043 | /* end confdefs.h. */ |
---|
| 5044 | |
---|
| 5045 | int |
---|
| 5046 | main () |
---|
| 5047 | { |
---|
| 5048 | |
---|
| 5049 | ; |
---|
| 5050 | return 0; |
---|
| 5051 | } |
---|
| 5052 | _ACEOF |
---|
| 5053 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5055 | $as_echo "no" >&6; } |
---|
| 5056 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
| 5057 | else |
---|
| 5058 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
| 5059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5060 | /* end confdefs.h. */ |
---|
| 5061 | |
---|
| 5062 | int |
---|
| 5063 | main () |
---|
| 5064 | { |
---|
| 5065 | |
---|
| 5066 | ; |
---|
| 5067 | return 0; |
---|
| 5068 | } |
---|
| 5069 | _ACEOF |
---|
| 5070 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 5072 | $as_echo "yes" >&6; } |
---|
| 5073 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
| 5074 | else |
---|
| 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
---|
| 5076 | $as_echo "neither works" >&6; } |
---|
| 5077 | fi |
---|
| 5078 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5079 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5080 | fi |
---|
| 5081 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5082 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5083 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
---|
| 5084 | LIBS=$ac_xsave_LIBS |
---|
| 5085 | fi |
---|
| 5086 | |
---|
| 5087 | # Check for system-dependent libraries X programs must link with. |
---|
| 5088 | # Do this before checking for the system-independent R6 libraries |
---|
| 5089 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
| 5090 | |
---|
| 5091 | if test "$ISC" = yes; then |
---|
| 5092 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
| 5093 | else |
---|
| 5094 | # Martyn Johnson says this is needed for Ultrix, if the X |
---|
| 5095 | # libraries were built with DECnet support. And Karl Berry says |
---|
| 5096 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
| 5097 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
---|
| 5098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5099 | /* end confdefs.h. */ |
---|
| 5100 | |
---|
| 5101 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5102 | Use char because int might match the return type of a GCC |
---|
| 5103 | builtin and then its argument prototype would still apply. */ |
---|
| 5104 | #ifdef __cplusplus |
---|
| 5105 | extern "C" |
---|
| 5106 | #endif |
---|
| 5107 | char XOpenDisplay (); |
---|
| 5108 | int |
---|
| 5109 | main () |
---|
| 5110 | { |
---|
| 5111 | return XOpenDisplay (); |
---|
| 5112 | ; |
---|
| 5113 | return 0; |
---|
| 5114 | } |
---|
| 5115 | _ACEOF |
---|
| 5116 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5117 | |
---|
| 5118 | else |
---|
| 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
---|
| 5120 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
---|
| 5121 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
---|
| 5122 | $as_echo_n "(cached) " >&6 |
---|
| 5123 | else |
---|
| 5124 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5125 | LIBS="-ldnet $LIBS" |
---|
| 5126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5127 | /* end confdefs.h. */ |
---|
| 5128 | |
---|
| 5129 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5130 | Use char because int might match the return type of a GCC |
---|
| 5131 | builtin and then its argument prototype would still apply. */ |
---|
| 5132 | #ifdef __cplusplus |
---|
| 5133 | extern "C" |
---|
| 5134 | #endif |
---|
| 5135 | char dnet_ntoa (); |
---|
| 5136 | int |
---|
| 5137 | main () |
---|
| 5138 | { |
---|
| 5139 | return dnet_ntoa (); |
---|
| 5140 | ; |
---|
| 5141 | return 0; |
---|
| 5142 | } |
---|
| 5143 | _ACEOF |
---|
| 5144 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5145 | ac_cv_lib_dnet_dnet_ntoa=yes |
---|
| 5146 | else |
---|
| 5147 | ac_cv_lib_dnet_dnet_ntoa=no |
---|
| 5148 | fi |
---|
| 5149 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5150 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5151 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5152 | fi |
---|
| 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
---|
| 5154 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
---|
| 5155 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
---|
| 5156 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
| 5157 | fi |
---|
| 5158 | |
---|
| 5159 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
| 5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
| 5161 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
---|
| 5162 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
---|
| 5163 | $as_echo_n "(cached) " >&6 |
---|
| 5164 | else |
---|
| 5165 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5166 | LIBS="-ldnet_stub $LIBS" |
---|
| 5167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5168 | /* end confdefs.h. */ |
---|
| 5169 | |
---|
| 5170 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5171 | Use char because int might match the return type of a GCC |
---|
| 5172 | builtin and then its argument prototype would still apply. */ |
---|
| 5173 | #ifdef __cplusplus |
---|
| 5174 | extern "C" |
---|
| 5175 | #endif |
---|
| 5176 | char dnet_ntoa (); |
---|
| 5177 | int |
---|
| 5178 | main () |
---|
| 5179 | { |
---|
| 5180 | return dnet_ntoa (); |
---|
| 5181 | ; |
---|
| 5182 | return 0; |
---|
| 5183 | } |
---|
| 5184 | _ACEOF |
---|
| 5185 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5186 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
---|
| 5187 | else |
---|
| 5188 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
---|
| 5189 | fi |
---|
| 5190 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5191 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5192 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5193 | fi |
---|
| 5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
---|
| 5195 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
---|
| 5196 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
---|
| 5197 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
| 5198 | fi |
---|
| 5199 | |
---|
| 5200 | fi |
---|
| 5201 | fi |
---|
| 5202 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5203 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5204 | LIBS="$ac_xsave_LIBS" |
---|
| 5205 | |
---|
| 5206 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
| 5207 | # to get the SysV transport functions. |
---|
| 5208 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
| 5209 | # needs -lnsl. |
---|
| 5210 | # The nsl library prevents programs from opening the X display |
---|
| 5211 | # on Irix 5.2, according to T.E. Dickey. |
---|
| 5212 | # The functions gethostbyname, getservbyname, and inet_addr are |
---|
| 5213 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
---|
| 5214 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
---|
| 5215 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
---|
| 5216 | |
---|
| 5217 | fi |
---|
| 5218 | |
---|
| 5219 | if test $ac_cv_func_gethostbyname = no; then |
---|
| 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
---|
| 5221 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
---|
| 5222 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
---|
| 5223 | $as_echo_n "(cached) " >&6 |
---|
| 5224 | else |
---|
| 5225 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5226 | LIBS="-lnsl $LIBS" |
---|
| 5227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5228 | /* end confdefs.h. */ |
---|
| 5229 | |
---|
| 5230 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5231 | Use char because int might match the return type of a GCC |
---|
| 5232 | builtin and then its argument prototype would still apply. */ |
---|
| 5233 | #ifdef __cplusplus |
---|
| 5234 | extern "C" |
---|
| 5235 | #endif |
---|
| 5236 | char gethostbyname (); |
---|
| 5237 | int |
---|
| 5238 | main () |
---|
| 5239 | { |
---|
| 5240 | return gethostbyname (); |
---|
| 5241 | ; |
---|
| 5242 | return 0; |
---|
| 5243 | } |
---|
| 5244 | _ACEOF |
---|
| 5245 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5246 | ac_cv_lib_nsl_gethostbyname=yes |
---|
| 5247 | else |
---|
| 5248 | ac_cv_lib_nsl_gethostbyname=no |
---|
| 5249 | fi |
---|
| 5250 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5251 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5252 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5253 | fi |
---|
| 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
---|
| 5255 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
---|
| 5256 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
---|
| 5257 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
| 5258 | fi |
---|
| 5259 | |
---|
| 5260 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
---|
| 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
---|
| 5262 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
---|
| 5263 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
---|
| 5264 | $as_echo_n "(cached) " >&6 |
---|
| 5265 | else |
---|
| 5266 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5267 | LIBS="-lbsd $LIBS" |
---|
| 5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5269 | /* end confdefs.h. */ |
---|
| 5270 | |
---|
| 5271 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5272 | Use char because int might match the return type of a GCC |
---|
| 5273 | builtin and then its argument prototype would still apply. */ |
---|
| 5274 | #ifdef __cplusplus |
---|
| 5275 | extern "C" |
---|
| 5276 | #endif |
---|
| 5277 | char gethostbyname (); |
---|
| 5278 | int |
---|
| 5279 | main () |
---|
| 5280 | { |
---|
| 5281 | return gethostbyname (); |
---|
| 5282 | ; |
---|
| 5283 | return 0; |
---|
| 5284 | } |
---|
| 5285 | _ACEOF |
---|
| 5286 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5287 | ac_cv_lib_bsd_gethostbyname=yes |
---|
| 5288 | else |
---|
| 5289 | ac_cv_lib_bsd_gethostbyname=no |
---|
| 5290 | fi |
---|
| 5291 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5292 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5293 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5294 | fi |
---|
| 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
---|
| 5296 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
---|
| 5297 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
---|
| 5298 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
---|
| 5299 | fi |
---|
| 5300 | |
---|
| 5301 | fi |
---|
| 5302 | fi |
---|
| 5303 | |
---|
| 5304 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
| 5305 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
| 5306 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
| 5307 | # on later versions), says Simon Leinen: it contains gethostby* |
---|
| 5308 | # variants that don't use the name server (or something). -lsocket |
---|
| 5309 | # must be given before -lnsl if both are needed. We assume that |
---|
| 5310 | # if connect needs -lnsl, so does gethostbyname. |
---|
| 5311 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
---|
| 5312 | if test "x$ac_cv_func_connect" = xyes; then : |
---|
| 5313 | |
---|
| 5314 | fi |
---|
| 5315 | |
---|
| 5316 | if test $ac_cv_func_connect = no; then |
---|
| 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
---|
| 5318 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
---|
| 5319 | if ${ac_cv_lib_socket_connect+:} false; then : |
---|
| 5320 | $as_echo_n "(cached) " >&6 |
---|
| 5321 | else |
---|
| 5322 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5323 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
| 5324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5325 | /* end confdefs.h. */ |
---|
| 5326 | |
---|
| 5327 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5328 | Use char because int might match the return type of a GCC |
---|
| 5329 | builtin and then its argument prototype would still apply. */ |
---|
| 5330 | #ifdef __cplusplus |
---|
| 5331 | extern "C" |
---|
| 5332 | #endif |
---|
| 5333 | char connect (); |
---|
| 5334 | int |
---|
| 5335 | main () |
---|
| 5336 | { |
---|
| 5337 | return connect (); |
---|
| 5338 | ; |
---|
| 5339 | return 0; |
---|
| 5340 | } |
---|
| 5341 | _ACEOF |
---|
| 5342 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5343 | ac_cv_lib_socket_connect=yes |
---|
| 5344 | else |
---|
| 5345 | ac_cv_lib_socket_connect=no |
---|
| 5346 | fi |
---|
| 5347 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5348 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5349 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5350 | fi |
---|
| 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
---|
| 5352 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
---|
| 5353 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
---|
| 5354 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
| 5355 | fi |
---|
| 5356 | |
---|
| 5357 | fi |
---|
| 5358 | |
---|
| 5359 | # Guillermo Gomez says -lposix is necessary on A/UX. |
---|
| 5360 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
---|
| 5361 | if test "x$ac_cv_func_remove" = xyes; then : |
---|
| 5362 | |
---|
| 5363 | fi |
---|
| 5364 | |
---|
| 5365 | if test $ac_cv_func_remove = no; then |
---|
| 5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
---|
| 5367 | $as_echo_n "checking for remove in -lposix... " >&6; } |
---|
| 5368 | if ${ac_cv_lib_posix_remove+:} false; then : |
---|
| 5369 | $as_echo_n "(cached) " >&6 |
---|
| 5370 | else |
---|
| 5371 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5372 | LIBS="-lposix $LIBS" |
---|
| 5373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5374 | /* end confdefs.h. */ |
---|
| 5375 | |
---|
| 5376 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5377 | Use char because int might match the return type of a GCC |
---|
| 5378 | builtin and then its argument prototype would still apply. */ |
---|
| 5379 | #ifdef __cplusplus |
---|
| 5380 | extern "C" |
---|
| 5381 | #endif |
---|
| 5382 | char remove (); |
---|
| 5383 | int |
---|
| 5384 | main () |
---|
| 5385 | { |
---|
| 5386 | return remove (); |
---|
| 5387 | ; |
---|
| 5388 | return 0; |
---|
| 5389 | } |
---|
| 5390 | _ACEOF |
---|
| 5391 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5392 | ac_cv_lib_posix_remove=yes |
---|
| 5393 | else |
---|
| 5394 | ac_cv_lib_posix_remove=no |
---|
| 5395 | fi |
---|
| 5396 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5397 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5398 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5399 | fi |
---|
| 5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
---|
| 5401 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
---|
| 5402 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
---|
| 5403 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
| 5404 | fi |
---|
| 5405 | |
---|
| 5406 | fi |
---|
| 5407 | |
---|
| 5408 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
| 5409 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
---|
| 5410 | if test "x$ac_cv_func_shmat" = xyes; then : |
---|
| 5411 | |
---|
| 5412 | fi |
---|
| 5413 | |
---|
| 5414 | if test $ac_cv_func_shmat = no; then |
---|
| 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
---|
| 5416 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
---|
| 5417 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
---|
| 5418 | $as_echo_n "(cached) " >&6 |
---|
| 5419 | else |
---|
| 5420 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5421 | LIBS="-lipc $LIBS" |
---|
| 5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5423 | /* end confdefs.h. */ |
---|
| 5424 | |
---|
| 5425 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5426 | Use char because int might match the return type of a GCC |
---|
| 5427 | builtin and then its argument prototype would still apply. */ |
---|
| 5428 | #ifdef __cplusplus |
---|
| 5429 | extern "C" |
---|
| 5430 | #endif |
---|
| 5431 | char shmat (); |
---|
| 5432 | int |
---|
| 5433 | main () |
---|
| 5434 | { |
---|
| 5435 | return shmat (); |
---|
| 5436 | ; |
---|
| 5437 | return 0; |
---|
| 5438 | } |
---|
| 5439 | _ACEOF |
---|
| 5440 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5441 | ac_cv_lib_ipc_shmat=yes |
---|
| 5442 | else |
---|
| 5443 | ac_cv_lib_ipc_shmat=no |
---|
| 5444 | fi |
---|
| 5445 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5446 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5447 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5448 | fi |
---|
| 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
---|
| 5450 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
---|
| 5451 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
---|
| 5452 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
| 5453 | fi |
---|
| 5454 | |
---|
| 5455 | fi |
---|
| 5456 | fi |
---|
| 5457 | |
---|
| 5458 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
| 5459 | ac_save_LDFLAGS=$LDFLAGS |
---|
| 5460 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
| 5461 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
| 5462 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
| 5463 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
| 5464 | # These have to be linked with before -lX11, unlike the other |
---|
| 5465 | # libraries we check for below, so use a different variable. |
---|
| 5466 | # John Interrante, Karl Berry |
---|
| 5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
---|
| 5468 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
---|
| 5469 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
---|
| 5470 | $as_echo_n "(cached) " >&6 |
---|
| 5471 | else |
---|
| 5472 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5473 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
| 5474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5475 | /* end confdefs.h. */ |
---|
| 5476 | |
---|
| 5477 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5478 | Use char because int might match the return type of a GCC |
---|
| 5479 | builtin and then its argument prototype would still apply. */ |
---|
| 5480 | #ifdef __cplusplus |
---|
| 5481 | extern "C" |
---|
| 5482 | #endif |
---|
| 5483 | char IceConnectionNumber (); |
---|
| 5484 | int |
---|
| 5485 | main () |
---|
| 5486 | { |
---|
| 5487 | return IceConnectionNumber (); |
---|
| 5488 | ; |
---|
| 5489 | return 0; |
---|
| 5490 | } |
---|
| 5491 | _ACEOF |
---|
| 5492 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5493 | ac_cv_lib_ICE_IceConnectionNumber=yes |
---|
| 5494 | else |
---|
| 5495 | ac_cv_lib_ICE_IceConnectionNumber=no |
---|
| 5496 | fi |
---|
| 5497 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5498 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5499 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5500 | fi |
---|
| 5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
---|
| 5502 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
---|
| 5503 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
---|
| 5504 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
| 5505 | fi |
---|
| 5506 | |
---|
| 5507 | LDFLAGS=$ac_save_LDFLAGS |
---|
| 5508 | |
---|
| 5509 | fi |
---|
| 5510 | |
---|
[1060] | 5511 | # X_LIBS_TMP=$X_LIBS |
---|
| 5512 | # X_LIBS="" |
---|
| 5513 | # for LIB in $X_LIBS_TMP; do |
---|
| 5514 | ## LIB2=substr($LIB,0,2) |
---|
| 5515 | ## if test "$LIB2" != "x-R"; then |
---|
| 5516 | # AC_MSG_NOTICE([lib = $LIB, m4_substr($LIB,0,2)]) |
---|
| 5517 | # if test "m4_substr([$LIB],0,2)" != "-R"; then |
---|
| 5518 | # X_LIBS="$X_LIBS $LIB" |
---|
| 5519 | # fi |
---|
| 5520 | # done |
---|
| 5521 | ## AC_PATH_X |
---|
[788] | 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&5 |
---|
| 5523 | $as_echo "$as_me: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&6;} |
---|
[529] | 5524 | # returns C compiler flags needed for X to X_CFLAGS and the X linker flags to X_LIBS |
---|
[501] | 5525 | if test "x$X_LIBS" != x; then |
---|
| 5526 | LDFLAGS="$LDFLAGS $X_LIBS" |
---|
[765] | 5527 | EXTRAPGLIB="$X_LIBS $X_PRE_LIBS -lX11 $EXTRAPGLIB" |
---|
[501] | 5528 | fi |
---|
| 5529 | |
---|
[351] | 5530 | # # Add pgplot libraries, if they exist to the lib path |
---|
| 5531 | # for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
| 5532 | # AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break]) |
---|
| 5533 | # done |
---|
| 5534 | |
---|
[342] | 5535 | # It is possible that other libraries may be required depending on what |
---|
| 5536 | # graphics drivers were installed with PGPLOT. |
---|
[788] | 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
---|
| 5538 | $as_echo_n "checking for deflate in -lz... " >&6; } |
---|
| 5539 | if ${ac_cv_lib_z_deflate+:} false; then : |
---|
| 5540 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5541 | else |
---|
| 5542 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5543 | LIBS="-lz $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5545 | /* end confdefs.h. */ |
---|
| 5546 | |
---|
[763] | 5547 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5548 | Use char because int might match the return type of a GCC |
---|
| 5549 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5550 | #ifdef __cplusplus |
---|
| 5551 | extern "C" |
---|
| 5552 | #endif |
---|
| 5553 | char deflate (); |
---|
| 5554 | int |
---|
| 5555 | main () |
---|
| 5556 | { |
---|
[763] | 5557 | return deflate (); |
---|
[107] | 5558 | ; |
---|
| 5559 | return 0; |
---|
| 5560 | } |
---|
| 5561 | _ACEOF |
---|
[788] | 5562 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5563 | ac_cv_lib_z_deflate=yes |
---|
| 5564 | else |
---|
[788] | 5565 | ac_cv_lib_z_deflate=no |
---|
[107] | 5566 | fi |
---|
[788] | 5567 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5568 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5569 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5570 | fi |
---|
[788] | 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
---|
| 5572 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
---|
| 5573 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
---|
[351] | 5574 | EXTRAPGLIB="$EXTRAPGLIB -lz" |
---|
[107] | 5575 | fi |
---|
| 5576 | |
---|
[788] | 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_error in -lpng" >&5 |
---|
| 5578 | $as_echo_n "checking for png_error in -lpng... " >&6; } |
---|
| 5579 | if ${ac_cv_lib_png_png_error+:} false; then : |
---|
| 5580 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5581 | else |
---|
| 5582 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5583 | LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 5584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5585 | /* end confdefs.h. */ |
---|
| 5586 | |
---|
[763] | 5587 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5588 | Use char because int might match the return type of a GCC |
---|
| 5589 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5590 | #ifdef __cplusplus |
---|
| 5591 | extern "C" |
---|
| 5592 | #endif |
---|
| 5593 | char png_error (); |
---|
| 5594 | int |
---|
| 5595 | main () |
---|
| 5596 | { |
---|
[763] | 5597 | return png_error (); |
---|
[107] | 5598 | ; |
---|
| 5599 | return 0; |
---|
| 5600 | } |
---|
| 5601 | _ACEOF |
---|
[788] | 5602 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5603 | ac_cv_lib_png_png_error=yes |
---|
| 5604 | else |
---|
[788] | 5605 | ac_cv_lib_png_png_error=no |
---|
[107] | 5606 | fi |
---|
[788] | 5607 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5608 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5609 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5610 | fi |
---|
[788] | 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_error" >&5 |
---|
| 5612 | $as_echo "$ac_cv_lib_png_png_error" >&6; } |
---|
| 5613 | if test "x$ac_cv_lib_png_png_error" = xyes; then : |
---|
[351] | 5614 | EXTRAPGLIB="$EXTRAPGLIB -lpng" |
---|
[107] | 5615 | fi |
---|
| 5616 | |
---|
[351] | 5617 | |
---|
| 5618 | ac_ext=f |
---|
| 5619 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 5620 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5621 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 5622 | |
---|
| 5623 | |
---|
[788] | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgopen in -lpgplot" >&5 |
---|
| 5625 | $as_echo_n "checking for pgopen in -lpgplot... " >&6; } |
---|
| 5626 | if ${ac_cv_lib_pgplot_pgopen+:} false; then : |
---|
| 5627 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5628 | else |
---|
| 5629 | ac_check_lib_save_LIBS=$LIBS |
---|
[352] | 5630 | LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[788] | 5631 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 5632 | program main |
---|
| 5633 | call pgopen |
---|
| 5634 | end |
---|
[107] | 5635 | _ACEOF |
---|
[788] | 5636 | if ac_fn_f77_try_link "$LINENO"; then : |
---|
[351] | 5637 | ac_cv_lib_pgplot_pgopen=yes |
---|
[107] | 5638 | else |
---|
[788] | 5639 | ac_cv_lib_pgplot_pgopen=no |
---|
[107] | 5640 | fi |
---|
[788] | 5641 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5642 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5643 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5644 | fi |
---|
[788] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgplot_pgopen" >&5 |
---|
| 5646 | $as_echo "$ac_cv_lib_pgplot_pgopen" >&6; } |
---|
| 5647 | if test "x$ac_cv_lib_pgplot_pgopen" = xyes; then : |
---|
[351] | 5648 | PGPLOTLIB="-lpgplot" |
---|
[107] | 5649 | fi |
---|
| 5650 | |
---|
[351] | 5651 | ac_ext=c |
---|
| 5652 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5656 | |
---|
[352] | 5657 | # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS |
---|
[788] | 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gerror_ in -lg2c" >&5 |
---|
| 5659 | $as_echo_n "checking for gerror_ in -lg2c... " >&6; } |
---|
| 5660 | if ${ac_cv_lib_g2c_gerror_+:} false; then : |
---|
| 5661 | $as_echo_n "(cached) " >&6 |
---|
[352] | 5662 | else |
---|
| 5663 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5664 | LIBS="-lg2c $LIBS" |
---|
[788] | 5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[352] | 5666 | /* end confdefs.h. */ |
---|
| 5667 | |
---|
[763] | 5668 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5669 | Use char because int might match the return type of a GCC |
---|
| 5670 | builtin and then its argument prototype would still apply. */ |
---|
[352] | 5671 | #ifdef __cplusplus |
---|
| 5672 | extern "C" |
---|
| 5673 | #endif |
---|
| 5674 | char gerror_ (); |
---|
| 5675 | int |
---|
| 5676 | main () |
---|
| 5677 | { |
---|
[763] | 5678 | return gerror_ (); |
---|
[352] | 5679 | ; |
---|
| 5680 | return 0; |
---|
| 5681 | } |
---|
| 5682 | _ACEOF |
---|
[788] | 5683 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[352] | 5684 | ac_cv_lib_g2c_gerror_=yes |
---|
| 5685 | else |
---|
[788] | 5686 | ac_cv_lib_g2c_gerror_=no |
---|
[352] | 5687 | fi |
---|
[788] | 5688 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5689 | conftest$ac_exeext conftest.$ac_ext |
---|
[352] | 5690 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5691 | fi |
---|
[788] | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
| 5693 | $as_echo "$ac_cv_lib_g2c_gerror_" >&6; } |
---|
| 5694 | if test "x$ac_cv_lib_g2c_gerror_" = xyes; then : |
---|
[352] | 5695 | cat >>confdefs.h <<_ACEOF |
---|
| 5696 | #define HAVE_LIBG2C 1 |
---|
| 5697 | _ACEOF |
---|
| 5698 | |
---|
| 5699 | LIBS="-lg2c $LIBS" |
---|
| 5700 | |
---|
| 5701 | fi |
---|
| 5702 | |
---|
[788] | 5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
| 5704 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
| 5705 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
| 5706 | $as_echo_n "(cached) " >&6 |
---|
[352] | 5707 | else |
---|
| 5708 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5709 | LIBS="-lstdc++ $LIBS" |
---|
[788] | 5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[352] | 5711 | /* end confdefs.h. */ |
---|
| 5712 | |
---|
| 5713 | |
---|
| 5714 | int |
---|
| 5715 | main () |
---|
| 5716 | { |
---|
[763] | 5717 | return main (); |
---|
[352] | 5718 | ; |
---|
| 5719 | return 0; |
---|
| 5720 | } |
---|
| 5721 | _ACEOF |
---|
[788] | 5722 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[352] | 5723 | ac_cv_lib_stdcpp_main=yes |
---|
| 5724 | else |
---|
[788] | 5725 | ac_cv_lib_stdcpp_main=no |
---|
[352] | 5726 | fi |
---|
[788] | 5727 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5728 | conftest$ac_exeext conftest.$ac_ext |
---|
[352] | 5729 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5730 | fi |
---|
[788] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
| 5732 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
| 5733 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
[352] | 5734 | cat >>confdefs.h <<_ACEOF |
---|
| 5735 | #define HAVE_LIBSTDC__ 1 |
---|
| 5736 | _ACEOF |
---|
| 5737 | |
---|
| 5738 | LIBS="-lstdc++ $LIBS" |
---|
| 5739 | |
---|
| 5740 | fi |
---|
| 5741 | |
---|
[351] | 5742 | if test "x$F77" = xgfortran; then |
---|
| 5743 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
[788] | 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5 |
---|
| 5745 | $as_echo "$as_me: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;} |
---|
[351] | 5746 | else |
---|
[788] | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgopen in -lcpgplot" >&5 |
---|
| 5748 | $as_echo_n "checking for cpgopen in -lcpgplot... " >&6; } |
---|
| 5749 | if ${ac_cv_lib_cpgplot_cpgopen+:} false; then : |
---|
| 5750 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5751 | else |
---|
| 5752 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5753 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS" |
---|
[788] | 5754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5755 | /* end confdefs.h. */ |
---|
| 5756 | |
---|
[763] | 5757 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5758 | Use char because int might match the return type of a GCC |
---|
| 5759 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5760 | #ifdef __cplusplus |
---|
| 5761 | extern "C" |
---|
| 5762 | #endif |
---|
| 5763 | char cpgopen (); |
---|
| 5764 | int |
---|
| 5765 | main () |
---|
| 5766 | { |
---|
[763] | 5767 | return cpgopen (); |
---|
[107] | 5768 | ; |
---|
| 5769 | return 0; |
---|
| 5770 | } |
---|
| 5771 | _ACEOF |
---|
[788] | 5772 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5773 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
| 5774 | else |
---|
[788] | 5775 | ac_cv_lib_cpgplot_cpgopen=no |
---|
[107] | 5776 | fi |
---|
[788] | 5777 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5778 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5779 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5780 | fi |
---|
[788] | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
| 5782 | $as_echo "$ac_cv_lib_cpgplot_cpgopen" >&6; } |
---|
| 5783 | if test "x$ac_cv_lib_cpgplot_cpgopen" = xyes; then : |
---|
[107] | 5784 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
| 5785 | fi |
---|
| 5786 | |
---|
[351] | 5787 | fi |
---|
[107] | 5788 | |
---|
[342] | 5789 | # If PGPLOT is not present, we give a warning message but still continue. |
---|
| 5790 | # The compilation is able to work without the PGPLOT-dependent files. |
---|
| 5791 | if test "x$PGPLOTLIB" = x; then |
---|
[788] | 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 5793 | ------------------------------------------------------- |
---|
| 5794 | WARNING! PGPLOT could not be found. |
---|
| 5795 | Compiling Duchamp without graphics capabilities. |
---|
| 5796 | -------------------------------------------------------" >&5 |
---|
[788] | 5797 | $as_echo "$as_me: |
---|
[342] | 5798 | ------------------------------------------------------- |
---|
| 5799 | WARNING! PGPLOT could not be found. |
---|
| 5800 | Compiling Duchamp without graphics capabilities. |
---|
| 5801 | -------------------------------------------------------" >&6;} |
---|
[402] | 5802 | #We have no pgplot, so we just link with g++ (or equivalent) |
---|
| 5803 | LINKER=$CXX |
---|
[342] | 5804 | else |
---|
[402] | 5805 | #We are using pgplot, so link with the fortran compiler. |
---|
| 5806 | LINKER=$F77 |
---|
[351] | 5807 | PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[788] | 5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: PGPLOT appears to be available." >&5 |
---|
| 5809 | $as_echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
[107] | 5810 | |
---|
[788] | 5811 | $as_echo "#define HAVE_PGPLOT 1" >>confdefs.h |
---|
[107] | 5812 | |
---|
[342] | 5813 | for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
[788] | 5814 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh` |
---|
| 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcpgplot.a" >&5 |
---|
| 5816 | $as_echo_n "checking for $LIBDIR/libcpgplot.a... " >&6; } |
---|
| 5817 | if eval \${$as_ac_File+:} false; then : |
---|
| 5818 | $as_echo_n "(cached) " >&6 |
---|
[342] | 5819 | else |
---|
| 5820 | test "$cross_compiling" = yes && |
---|
[788] | 5821 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[342] | 5822 | if test -r "$LIBDIR/libcpgplot.a"; then |
---|
| 5823 | eval "$as_ac_File=yes" |
---|
| 5824 | else |
---|
| 5825 | eval "$as_ac_File=no" |
---|
[107] | 5826 | fi |
---|
[342] | 5827 | fi |
---|
[788] | 5828 | eval ac_res=\$$as_ac_File |
---|
| 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5830 | $as_echo "$ac_res" >&6; } |
---|
| 5831 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[342] | 5832 | PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break |
---|
| 5833 | fi |
---|
[107] | 5834 | |
---|
[806] | 5835 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/lib/libcpgplot.a" | $as_tr_sh` |
---|
| 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/lib/libcpgplot.a" >&5 |
---|
| 5837 | $as_echo_n "checking for $LIBDIR/lib/libcpgplot.a... " >&6; } |
---|
| 5838 | if eval \${$as_ac_File+:} false; then : |
---|
| 5839 | $as_echo_n "(cached) " >&6 |
---|
| 5840 | else |
---|
| 5841 | test "$cross_compiling" = yes && |
---|
| 5842 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 5843 | if test -r "$LIBDIR/lib/libcpgplot.a"; then |
---|
| 5844 | eval "$as_ac_File=yes" |
---|
| 5845 | else |
---|
| 5846 | eval "$as_ac_File=no" |
---|
| 5847 | fi |
---|
| 5848 | fi |
---|
| 5849 | eval ac_res=\$$as_ac_File |
---|
| 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5851 | $as_echo "$ac_res" >&6; } |
---|
| 5852 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 5853 | PGPLOTLIB="-L$LIBDIR/lib $PGPLOTLIB"; break |
---|
| 5854 | fi |
---|
| 5855 | |
---|
| 5856 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/pgplot/libcpgplot.a" | $as_tr_sh` |
---|
| 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/pgplot/libcpgplot.a" >&5 |
---|
| 5858 | $as_echo_n "checking for $LIBDIR/pgplot/libcpgplot.a... " >&6; } |
---|
| 5859 | if eval \${$as_ac_File+:} false; then : |
---|
| 5860 | $as_echo_n "(cached) " >&6 |
---|
| 5861 | else |
---|
| 5862 | test "$cross_compiling" = yes && |
---|
| 5863 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 5864 | if test -r "$LIBDIR/pgplot/libcpgplot.a"; then |
---|
| 5865 | eval "$as_ac_File=yes" |
---|
| 5866 | else |
---|
| 5867 | eval "$as_ac_File=no" |
---|
| 5868 | fi |
---|
| 5869 | fi |
---|
| 5870 | eval ac_res=\$$as_ac_File |
---|
| 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5872 | $as_echo "$ac_res" >&6; } |
---|
| 5873 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 5874 | PGPLOTLIB="-L$LIBDIR/pgplot $PGPLOTLIB"; break |
---|
| 5875 | fi |
---|
| 5876 | |
---|
[342] | 5877 | done |
---|
[805] | 5878 | # if test "x$F77" = xgfortran; then |
---|
| 5879 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 5880 | # fi |
---|
[342] | 5881 | fi |
---|
[107] | 5882 | |
---|
[342] | 5883 | fi |
---|
[107] | 5884 | |
---|
[342] | 5885 | |
---|
| 5886 | |
---|
[384] | 5887 | |
---|
[107] | 5888 | ########################################################################## |
---|
| 5889 | |
---|
| 5890 | ########################################################################## |
---|
| 5891 | # Search for CFITSIO. |
---|
[342] | 5892 | # use --with-cfitsio=directory to specify a particular CFITSIO directory. |
---|
| 5893 | # else do the normal searching for libraries. |
---|
| 5894 | |
---|
[788] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- CFITSIO -- " >&5 |
---|
| 5896 | $as_echo "$as_me: -- CFITSIO -- " >&6;} |
---|
[342] | 5897 | |
---|
[763] | 5898 | # Check whether --with-cfitsio was given. |
---|
[788] | 5899 | if test "${with_cfitsio+set}" = set; then : |
---|
[763] | 5900 | withval=$with_cfitsio; #if we specify a directory... |
---|
[342] | 5901 | if test "x$withval" = xno; then |
---|
[788] | 5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 5903 | The CFITSIO library is required. |
---|
| 5904 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5 |
---|
[788] | 5905 | $as_echo "$as_me: |
---|
[342] | 5906 | The CFITSIO library is required. |
---|
| 5907 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;} |
---|
| 5908 | CFITSIOINCDIRS=$INCDIRS |
---|
| 5909 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 5910 | else |
---|
[788] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 5912 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 5913 | CFITSIOINCDIRS="$withval \ |
---|
| 5914 | $withval/include" |
---|
| 5915 | CFITSIOLIBDIRS="$withval \ |
---|
| 5916 | $withval/lib" |
---|
[351] | 5917 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
[788] | 5918 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 5920 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 5921 | if eval \${$as_ac_File+:} false; then : |
---|
| 5922 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5923 | else |
---|
| 5924 | test "$cross_compiling" = yes && |
---|
[788] | 5925 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 5926 | if test -r "$LIBDIR"; then |
---|
[107] | 5927 | eval "$as_ac_File=yes" |
---|
| 5928 | else |
---|
| 5929 | eval "$as_ac_File=no" |
---|
| 5930 | fi |
---|
| 5931 | fi |
---|
[788] | 5932 | eval ac_res=\$$as_ac_File |
---|
| 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5934 | $as_echo "$ac_res" >&6; } |
---|
| 5935 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 5936 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 5937 | else |
---|
| 5938 | continue |
---|
[107] | 5939 | fi |
---|
| 5940 | |
---|
[351] | 5941 | done |
---|
| 5942 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
[788] | 5943 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR" | $as_tr_sh` |
---|
| 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR" >&5 |
---|
| 5945 | $as_echo_n "checking for $INCDIR... " >&6; } |
---|
| 5946 | if eval \${$as_ac_File+:} false; then : |
---|
| 5947 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5948 | else |
---|
| 5949 | test "$cross_compiling" = yes && |
---|
[788] | 5950 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 5951 | if test -r "$INCDIR"; then |
---|
[107] | 5952 | eval "$as_ac_File=yes" |
---|
| 5953 | else |
---|
| 5954 | eval "$as_ac_File=no" |
---|
| 5955 | fi |
---|
| 5956 | fi |
---|
[788] | 5957 | eval ac_res=\$$as_ac_File |
---|
| 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5959 | $as_echo "$ac_res" >&6; } |
---|
| 5960 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 5961 | CPPFLAGS="$CPPFLAGS -I$INCDIR" |
---|
| 5962 | else |
---|
| 5963 | continue |
---|
[107] | 5964 | fi |
---|
| 5965 | |
---|
[351] | 5966 | done |
---|
| 5967 | fi |
---|
[107] | 5968 | |
---|
[351] | 5969 | else |
---|
| 5970 | # if directory not specified, go searching. |
---|
| 5971 | CFITSIOINCDIRS=$INCDIRS |
---|
| 5972 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 5973 | |
---|
[763] | 5974 | fi |
---|
[351] | 5975 | |
---|
[763] | 5976 | |
---|
[351] | 5977 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
[788] | 5978 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
| 5980 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
| 5981 | if eval \${$as_ac_File+:} false; then : |
---|
| 5982 | $as_echo_n "(cached) " >&6 |
---|
[349] | 5983 | else |
---|
| 5984 | test "$cross_compiling" = yes && |
---|
[788] | 5985 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 5986 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 5987 | eval "$as_ac_File=yes" |
---|
| 5988 | else |
---|
| 5989 | eval "$as_ac_File=no" |
---|
| 5990 | fi |
---|
| 5991 | fi |
---|
[788] | 5992 | eval ac_res=\$$as_ac_File |
---|
| 5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5994 | $as_echo "$ac_res" >&6; } |
---|
| 5995 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 5996 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 5997 | fi |
---|
| 5998 | |
---|
[351] | 5999 | INCDIR=$INCDIR/cfitsio |
---|
[788] | 6000 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
| 6002 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
| 6003 | if eval \${$as_ac_File+:} false; then : |
---|
| 6004 | $as_echo_n "(cached) " >&6 |
---|
[349] | 6005 | else |
---|
| 6006 | test "$cross_compiling" = yes && |
---|
[788] | 6007 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6008 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 6009 | eval "$as_ac_File=yes" |
---|
| 6010 | else |
---|
| 6011 | eval "$as_ac_File=no" |
---|
| 6012 | fi |
---|
| 6013 | fi |
---|
[788] | 6014 | eval ac_res=\$$as_ac_File |
---|
| 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6016 | $as_echo "$ac_res" >&6; } |
---|
| 6017 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6018 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 6019 | fi |
---|
| 6020 | |
---|
| 6021 | done |
---|
| 6022 | |
---|
[788] | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv in -lsocket" >&5 |
---|
| 6024 | $as_echo_n "checking for recv in -lsocket... " >&6; } |
---|
| 6025 | if ${ac_cv_lib_socket_recv+:} false; then : |
---|
| 6026 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6027 | else |
---|
| 6028 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6029 | LIBS="-lsocket $LIBS $LIBS" |
---|
[788] | 6030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6031 | /* end confdefs.h. */ |
---|
| 6032 | |
---|
[763] | 6033 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6034 | Use char because int might match the return type of a GCC |
---|
| 6035 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6036 | #ifdef __cplusplus |
---|
| 6037 | extern "C" |
---|
| 6038 | #endif |
---|
| 6039 | char recv (); |
---|
| 6040 | int |
---|
| 6041 | main () |
---|
| 6042 | { |
---|
[763] | 6043 | return recv (); |
---|
[107] | 6044 | ; |
---|
| 6045 | return 0; |
---|
| 6046 | } |
---|
| 6047 | _ACEOF |
---|
[788] | 6048 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 6049 | ac_cv_lib_socket_recv=yes |
---|
| 6050 | else |
---|
[788] | 6051 | ac_cv_lib_socket_recv=no |
---|
[107] | 6052 | fi |
---|
[788] | 6053 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6054 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6055 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6056 | fi |
---|
[788] | 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_recv" >&5 |
---|
| 6058 | $as_echo "$ac_cv_lib_socket_recv" >&6; } |
---|
| 6059 | if test "x$ac_cv_lib_socket_recv" = xyes; then : |
---|
[351] | 6060 | CFITSIOLIB="$CFITSIOLIB -lsocket" |
---|
[107] | 6061 | fi |
---|
| 6062 | |
---|
[788] | 6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5 |
---|
| 6064 | $as_echo_n "checking for ffopen in -lcfitsio... " >&6; } |
---|
| 6065 | if ${ac_cv_lib_cfitsio_ffopen+:} false; then : |
---|
| 6066 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6067 | else |
---|
| 6068 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6069 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
[788] | 6070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6071 | /* end confdefs.h. */ |
---|
| 6072 | |
---|
[763] | 6073 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6074 | Use char because int might match the return type of a GCC |
---|
| 6075 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6076 | #ifdef __cplusplus |
---|
| 6077 | extern "C" |
---|
| 6078 | #endif |
---|
| 6079 | char ffopen (); |
---|
| 6080 | int |
---|
| 6081 | main () |
---|
| 6082 | { |
---|
[763] | 6083 | return ffopen (); |
---|
[107] | 6084 | ; |
---|
| 6085 | return 0; |
---|
| 6086 | } |
---|
| 6087 | _ACEOF |
---|
[788] | 6088 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 6089 | ac_cv_lib_cfitsio_ffopen=yes |
---|
| 6090 | else |
---|
[788] | 6091 | ac_cv_lib_cfitsio_ffopen=no |
---|
[107] | 6092 | fi |
---|
[788] | 6093 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6094 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6095 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6096 | fi |
---|
[788] | 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
| 6098 | $as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; } |
---|
| 6099 | if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then : |
---|
[351] | 6100 | CFITSIOLIB="$CFITSIOLIB -lcfitsio" |
---|
[107] | 6101 | fi |
---|
| 6102 | |
---|
| 6103 | |
---|
[328] | 6104 | # CFITSIO is essential for Duchamp, so exit with error message if it |
---|
| 6105 | # is not present. |
---|
[107] | 6106 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
[788] | 6107 | as_fn_error 1 " |
---|
[107] | 6108 | ------------------------------------------------------- |
---|
| 6109 | Could not find the CFITSIO library. |
---|
| 6110 | |
---|
| 6111 | ERROR: Duchamp configuration failure. |
---|
[788] | 6112 | -------------------------------------------------------" "$LINENO" 5 |
---|
[107] | 6113 | else |
---|
[788] | 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: CFITSIO appears to be available." >&5 |
---|
| 6115 | $as_echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
[107] | 6116 | |
---|
[788] | 6117 | $as_echo "#define HAVE_CFITSIO 1" >>confdefs.h |
---|
[107] | 6118 | |
---|
[351] | 6119 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
[788] | 6120 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 6122 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
| 6123 | if eval \${$as_ac_File+:} false; then : |
---|
| 6124 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6125 | else |
---|
| 6126 | test "$cross_compiling" = yes && |
---|
[788] | 6127 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6128 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 6129 | eval "$as_ac_File=yes" |
---|
| 6130 | else |
---|
| 6131 | eval "$as_ac_File=no" |
---|
[107] | 6132 | fi |
---|
[351] | 6133 | fi |
---|
[788] | 6134 | eval ac_res=\$$as_ac_File |
---|
| 6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6136 | $as_echo "$ac_res" >&6; } |
---|
| 6137 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6138 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 6139 | fi |
---|
[107] | 6140 | |
---|
[351] | 6141 | LIBDIR=$LIBDIR/cfitsio |
---|
[788] | 6142 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 6144 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
| 6145 | if eval \${$as_ac_File+:} false; then : |
---|
| 6146 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6147 | else |
---|
| 6148 | test "$cross_compiling" = yes && |
---|
[788] | 6149 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6150 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 6151 | eval "$as_ac_File=yes" |
---|
| 6152 | else |
---|
| 6153 | eval "$as_ac_File=no" |
---|
| 6154 | fi |
---|
| 6155 | fi |
---|
[788] | 6156 | eval ac_res=\$$as_ac_File |
---|
| 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6158 | $as_echo "$ac_res" >&6; } |
---|
| 6159 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6160 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 6161 | fi |
---|
[107] | 6162 | |
---|
[351] | 6163 | done |
---|
[107] | 6164 | |
---|
[351] | 6165 | fi |
---|
| 6166 | |
---|
| 6167 | |
---|
| 6168 | |
---|
[107] | 6169 | ########################################################################## |
---|
| 6170 | |
---|
| 6171 | ########################################################################## |
---|
| 6172 | # Search for WCSLIB. |
---|
[351] | 6173 | # use --with-wcslib=directory to specify a particular WCSLIB directory. |
---|
[342] | 6174 | # else do the normal searching for libraries. |
---|
| 6175 | |
---|
[788] | 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- WCSLIB -- " >&5 |
---|
| 6177 | $as_echo "$as_me: -- WCSLIB -- " >&6;} |
---|
[402] | 6178 | WCSINCDIR="" |
---|
[342] | 6179 | |
---|
[763] | 6180 | # Check whether --with-wcslib was given. |
---|
[788] | 6181 | if test "${with_wcslib+set}" = set; then : |
---|
[763] | 6182 | withval=$with_wcslib; #if we specify a directory... |
---|
[342] | 6183 | if test "x$withval" = xno; then |
---|
[788] | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 6185 | The WCSLIB library is required. |
---|
| 6186 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&5 |
---|
[788] | 6187 | $as_echo "$as_me: |
---|
[342] | 6188 | The WCSLIB library is required. |
---|
| 6189 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;} |
---|
[351] | 6190 | WCSINCDIRS=$INCDIRS |
---|
| 6191 | WCSLIBDIRS=$LIBDIRS |
---|
[342] | 6192 | else |
---|
[788] | 6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 6194 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 6195 | WCSINCDIRS="$withval \ |
---|
| 6196 | $withval/include" |
---|
| 6197 | WCSLIBDIRS="$withval \ |
---|
| 6198 | $withval/lib" |
---|
[351] | 6199 | for LIBDIR in $WCSLIBDIRS ; do |
---|
[788] | 6200 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 6202 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 6203 | if eval \${$as_ac_File+:} false; then : |
---|
| 6204 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6205 | else |
---|
| 6206 | test "$cross_compiling" = yes && |
---|
[788] | 6207 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6208 | if test -r "$LIBDIR"; then |
---|
[107] | 6209 | eval "$as_ac_File=yes" |
---|
| 6210 | else |
---|
| 6211 | eval "$as_ac_File=no" |
---|
| 6212 | fi |
---|
| 6213 | fi |
---|
[788] | 6214 | eval ac_res=\$$as_ac_File |
---|
| 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6216 | $as_echo "$ac_res" >&6; } |
---|
| 6217 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6218 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 6219 | else |
---|
| 6220 | continue |
---|
[107] | 6221 | fi |
---|
| 6222 | |
---|
[351] | 6223 | done |
---|
| 6224 | for INCDIR in $WCSINCDIRS ; do |
---|
[788] | 6225 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh` |
---|
| 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/wcslib" >&5 |
---|
| 6227 | $as_echo_n "checking for $INCDIR/wcslib... " >&6; } |
---|
| 6228 | if eval \${$as_ac_File+:} false; then : |
---|
| 6229 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6230 | else |
---|
| 6231 | test "$cross_compiling" = yes && |
---|
[788] | 6232 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6233 | if test -r "$INCDIR/wcslib"; then |
---|
[107] | 6234 | eval "$as_ac_File=yes" |
---|
| 6235 | else |
---|
| 6236 | eval "$as_ac_File=no" |
---|
| 6237 | fi |
---|
| 6238 | fi |
---|
[788] | 6239 | eval ac_res=\$$as_ac_File |
---|
| 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6241 | $as_echo "$ac_res" >&6; } |
---|
| 6242 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[402] | 6243 | CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break |
---|
[351] | 6244 | else |
---|
| 6245 | continue |
---|
[107] | 6246 | fi |
---|
| 6247 | |
---|
[351] | 6248 | done |
---|
[107] | 6249 | fi |
---|
| 6250 | |
---|
[351] | 6251 | else |
---|
| 6252 | # if directory not specified, go searching. |
---|
| 6253 | WCSINCDIRS=$INCDIRS |
---|
| 6254 | WCSLIBDIRS=$LIBDIRS |
---|
| 6255 | |
---|
[763] | 6256 | fi |
---|
[351] | 6257 | |
---|
| 6258 | |
---|
[763] | 6259 | |
---|
[402] | 6260 | if test "x$WCSINCDIR" = x; then |
---|
| 6261 | for INCBASE in $WCSINCDIRS ; do |
---|
[788] | 6262 | as_ac_File=`$as_echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh` |
---|
| 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCBASE/wcslib/wcs.h" >&5 |
---|
| 6264 | $as_echo_n "checking for $INCBASE/wcslib/wcs.h... " >&6; } |
---|
| 6265 | if eval \${$as_ac_File+:} false; then : |
---|
| 6266 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6267 | else |
---|
| 6268 | test "$cross_compiling" = yes && |
---|
[788] | 6269 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6270 | if test -r "$INCBASE/wcslib/wcs.h"; then |
---|
[107] | 6271 | eval "$as_ac_File=yes" |
---|
| 6272 | else |
---|
| 6273 | eval "$as_ac_File=no" |
---|
| 6274 | fi |
---|
| 6275 | fi |
---|
[788] | 6276 | eval ac_res=\$$as_ac_File |
---|
| 6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6278 | $as_echo "$ac_res" >&6; } |
---|
| 6279 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[492] | 6280 | WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break |
---|
[349] | 6281 | fi |
---|
[402] | 6282 | |
---|
| 6283 | done |
---|
[351] | 6284 | else |
---|
[788] | 6285 | as_ac_File=`$as_echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh` |
---|
| 6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WCSINCDIR/wcslib/wcs.h" >&5 |
---|
| 6287 | $as_echo_n "checking for $WCSINCDIR/wcslib/wcs.h... " >&6; } |
---|
| 6288 | if eval \${$as_ac_File+:} false; then : |
---|
| 6289 | $as_echo_n "(cached) " >&6 |
---|
[349] | 6290 | else |
---|
| 6291 | test "$cross_compiling" = yes && |
---|
[788] | 6292 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6293 | if test -r "$WCSINCDIR/wcslib/wcs.h"; then |
---|
[349] | 6294 | eval "$as_ac_File=yes" |
---|
| 6295 | else |
---|
| 6296 | eval "$as_ac_File=no" |
---|
| 6297 | fi |
---|
| 6298 | fi |
---|
[788] | 6299 | eval ac_res=\$$as_ac_File |
---|
| 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6301 | $as_echo "$ac_res" >&6; } |
---|
| 6302 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[492] | 6303 | WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC" |
---|
[349] | 6304 | fi |
---|
| 6305 | |
---|
| 6306 | fi |
---|
| 6307 | |
---|
| 6308 | |
---|
[351] | 6309 | # Look for libwcs.a, and libpgsbox.a |
---|
[788] | 6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcss2p in -lwcs" >&5 |
---|
| 6311 | $as_echo_n "checking for wcss2p in -lwcs... " >&6; } |
---|
| 6312 | if ${ac_cv_lib_wcs_wcss2p+:} false; then : |
---|
| 6313 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6314 | else |
---|
| 6315 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6316 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[788] | 6317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6318 | /* end confdefs.h. */ |
---|
| 6319 | |
---|
[763] | 6320 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6321 | Use char because int might match the return type of a GCC |
---|
| 6322 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6323 | #ifdef __cplusplus |
---|
| 6324 | extern "C" |
---|
| 6325 | #endif |
---|
[351] | 6326 | char wcss2p (); |
---|
[107] | 6327 | int |
---|
| 6328 | main () |
---|
| 6329 | { |
---|
[763] | 6330 | return wcss2p (); |
---|
[107] | 6331 | ; |
---|
| 6332 | return 0; |
---|
| 6333 | } |
---|
| 6334 | _ACEOF |
---|
[788] | 6335 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[351] | 6336 | ac_cv_lib_wcs_wcss2p=yes |
---|
[107] | 6337 | else |
---|
[788] | 6338 | ac_cv_lib_wcs_wcss2p=no |
---|
[107] | 6339 | fi |
---|
[788] | 6340 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6341 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6342 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6343 | fi |
---|
[788] | 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
| 6345 | $as_echo "$ac_cv_lib_wcs_wcss2p" >&6; } |
---|
| 6346 | if test "x$ac_cv_lib_wcs_wcss2p" = xyes; then : |
---|
[351] | 6347 | WCSLIB="$WCSLIB -lwcs" |
---|
[107] | 6348 | fi |
---|
| 6349 | |
---|
[826] | 6350 | |
---|
| 6351 | # Only use libpgsbox if we have pgplot enabled - determine this by testing the PGPLOTINCDIRS variable |
---|
| 6352 | if test "x$PGPLOTINCDIRS" != x; then |
---|
| 6353 | if test "x$F77" = xgfortran; then |
---|
| 6354 | WCSLIB="$WCSLIB -lpgsbox" |
---|
| 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5 |
---|
[788] | 6356 | $as_echo "$as_me: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;} |
---|
[826] | 6357 | else |
---|
| 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgsbox in -lpgsbox" >&5 |
---|
[788] | 6359 | $as_echo_n "checking for cpgsbox in -lpgsbox... " >&6; } |
---|
| 6360 | if ${ac_cv_lib_pgsbox_cpgsbox+:} false; then : |
---|
| 6361 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6362 | else |
---|
| 6363 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6364 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[788] | 6365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6366 | /* end confdefs.h. */ |
---|
| 6367 | |
---|
[763] | 6368 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6369 | Use char because int might match the return type of a GCC |
---|
| 6370 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6371 | #ifdef __cplusplus |
---|
| 6372 | extern "C" |
---|
| 6373 | #endif |
---|
[351] | 6374 | char cpgsbox (); |
---|
[107] | 6375 | int |
---|
| 6376 | main () |
---|
| 6377 | { |
---|
[763] | 6378 | return cpgsbox (); |
---|
[107] | 6379 | ; |
---|
| 6380 | return 0; |
---|
| 6381 | } |
---|
| 6382 | _ACEOF |
---|
[788] | 6383 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[351] | 6384 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
[107] | 6385 | else |
---|
[788] | 6386 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
[107] | 6387 | fi |
---|
[788] | 6388 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6389 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6390 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6391 | fi |
---|
[788] | 6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
| 6393 | $as_echo "$ac_cv_lib_pgsbox_cpgsbox" >&6; } |
---|
| 6394 | if test "x$ac_cv_lib_pgsbox_cpgsbox" = xyes; then : |
---|
[351] | 6395 | WCSLIB="$WCSLIB -lpgsbox" |
---|
[107] | 6396 | fi |
---|
| 6397 | |
---|
[826] | 6398 | fi |
---|
[351] | 6399 | fi |
---|
[107] | 6400 | |
---|
[328] | 6401 | # WCSLIB is essential for Duchamp, so exit with error message if it |
---|
| 6402 | # is not present. Need at least libwcs to be available -- libpgsbox will |
---|
| 6403 | # depend on PGPLOT being available, but is not critical. |
---|
[107] | 6404 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
[788] | 6405 | as_fn_error 1 " |
---|
[107] | 6406 | ------------------------------------------------------- |
---|
| 6407 | Could not find the WCSLIB library. |
---|
| 6408 | |
---|
| 6409 | ERROR: Duchamp configuration failure. |
---|
[788] | 6410 | -------------------------------------------------------" "$LINENO" 5 |
---|
[107] | 6411 | else |
---|
[788] | 6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: WCSLIB appears to be available." >&5 |
---|
| 6413 | $as_echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
[107] | 6414 | |
---|
[788] | 6415 | $as_echo "#define HAVE_WCSLIB 1" >>confdefs.h |
---|
[107] | 6416 | |
---|
[351] | 6417 | # Now add the -L statements to start of WCSLIB. |
---|
| 6418 | # Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and |
---|
| 6419 | # then in other directories, keeping the appropriate order of -L calls. |
---|
| 6420 | |
---|
[402] | 6421 | DIRLIST=". \ |
---|
| 6422 | wcs \ |
---|
| 6423 | wcslib" |
---|
| 6424 | |
---|
[351] | 6425 | for LIBBASE in $WCSLIBDIRS ; do |
---|
| 6426 | for DIR in $DIRLIST; do |
---|
| 6427 | if test "x$DIR" = x.; then |
---|
| 6428 | LIBDIR=$LIBBASE |
---|
| 6429 | else |
---|
| 6430 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6431 | fi |
---|
[788] | 6432 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
| 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libwcs.a" >&5 |
---|
| 6434 | $as_echo_n "checking for $LIBDIR/libwcs.a... " >&6; } |
---|
| 6435 | if eval \${$as_ac_File+:} false; then : |
---|
| 6436 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6437 | else |
---|
| 6438 | test "$cross_compiling" = yes && |
---|
[788] | 6439 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6440 | if test -r "$LIBDIR/libwcs.a"; then |
---|
| 6441 | eval "$as_ac_File=yes" |
---|
| 6442 | else |
---|
| 6443 | eval "$as_ac_File=no" |
---|
[107] | 6444 | fi |
---|
[351] | 6445 | fi |
---|
[788] | 6446 | eval ac_res=\$$as_ac_File |
---|
| 6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6448 | $as_echo "$ac_res" >&6; } |
---|
| 6449 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6450 | WCSLIBFRONT="-L$LIBDIR"; |
---|
[788] | 6451 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
| 6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
| 6453 | $as_echo_n "checking for $LIBDIR/libpgsbox.a... " >&6; } |
---|
| 6454 | if eval \${$as_ac_File+:} false; then : |
---|
| 6455 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6456 | else |
---|
| 6457 | test "$cross_compiling" = yes && |
---|
[788] | 6458 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6459 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
| 6460 | eval "$as_ac_File=yes" |
---|
| 6461 | else |
---|
| 6462 | eval "$as_ac_File=no" |
---|
| 6463 | fi |
---|
| 6464 | fi |
---|
[788] | 6465 | eval ac_res=\$$as_ac_File |
---|
| 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6467 | $as_echo "$ac_res" >&6; } |
---|
| 6468 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 6469 | |
---|
[351] | 6470 | else |
---|
[107] | 6471 | |
---|
[351] | 6472 | for LIBBASE2 in $WCSLIBDIRS ; do |
---|
| 6473 | for DIR2 in $DIRLIST; do |
---|
| 6474 | if test "x$DIR" = x.; then |
---|
| 6475 | LIBDIR=$LIBBASE |
---|
| 6476 | else |
---|
| 6477 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6478 | fi |
---|
[788] | 6479 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh` |
---|
| 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR2/libpgsbox.a" >&5 |
---|
| 6481 | $as_echo_n "checking for $LIBDIR2/libpgsbox.a... " >&6; } |
---|
| 6482 | if eval \${$as_ac_File+:} false; then : |
---|
| 6483 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6484 | else |
---|
| 6485 | test "$cross_compiling" = yes && |
---|
[788] | 6486 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6487 | if test -r "$LIBDIR2/libpgsbox.a"; then |
---|
| 6488 | eval "$as_ac_File=yes" |
---|
| 6489 | else |
---|
| 6490 | eval "$as_ac_File=no" |
---|
| 6491 | fi |
---|
| 6492 | fi |
---|
[788] | 6493 | eval ac_res=\$$as_ac_File |
---|
| 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6495 | $as_echo "$ac_res" >&6; } |
---|
| 6496 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6497 | WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break |
---|
| 6498 | fi |
---|
[107] | 6499 | |
---|
[351] | 6500 | done |
---|
| 6501 | done |
---|
| 6502 | fi |
---|
[107] | 6503 | |
---|
[351] | 6504 | break |
---|
| 6505 | fi |
---|
| 6506 | |
---|
| 6507 | done |
---|
| 6508 | done |
---|
| 6509 | WCSLIB="$WCSLIBFRONT $WCSLIB" |
---|
| 6510 | fi |
---|
| 6511 | |
---|
| 6512 | |
---|
| 6513 | |
---|
[107] | 6514 | ########################################################################## |
---|
| 6515 | |
---|
| 6516 | |
---|
| 6517 | |
---|
[763] | 6518 | ac_config_files="$ac_config_files Makefile" |
---|
[107] | 6519 | |
---|
| 6520 | cat >confcache <<\_ACEOF |
---|
| 6521 | # This file is a shell script that caches the results of configure |
---|
| 6522 | # tests run on this system so they can be shared between configure |
---|
| 6523 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6524 | # It is not useful on other systems. If it contains results you don't |
---|
| 6525 | # want to keep, you may remove or edit it. |
---|
| 6526 | # |
---|
| 6527 | # config.status only pays attention to the cache file if you give it |
---|
| 6528 | # the --recheck option to rerun configure. |
---|
| 6529 | # |
---|
| 6530 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6531 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6532 | # following values. |
---|
| 6533 | |
---|
| 6534 | _ACEOF |
---|
| 6535 | |
---|
| 6536 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6537 | # but we know of no workaround that is simple, portable, and efficient. |
---|
[763] | 6538 | # So, we kill variables containing newlines. |
---|
[107] | 6539 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6540 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
[763] | 6541 | ( |
---|
| 6542 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 6543 | eval ac_val=\$$ac_var |
---|
| 6544 | case $ac_val in #( |
---|
| 6545 | *${as_nl}*) |
---|
| 6546 | case $ac_var in #( |
---|
[788] | 6547 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 6548 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
[763] | 6549 | esac |
---|
| 6550 | case $ac_var in #( |
---|
| 6551 | _ | IFS | as_nl) ;; #( |
---|
[788] | 6552 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 6553 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
[763] | 6554 | esac ;; |
---|
| 6555 | esac |
---|
| 6556 | done |
---|
| 6557 | |
---|
[107] | 6558 | (set) 2>&1 | |
---|
[763] | 6559 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 6560 | *${as_nl}ac_space=\ *) |
---|
[788] | 6561 | # `set' does not quote correctly, so add quotes: double-quote |
---|
| 6562 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
[107] | 6563 | sed -n \ |
---|
[349] | 6564 | "s/'/'\\\\''/g; |
---|
| 6565 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
[763] | 6566 | ;; #( |
---|
[107] | 6567 | *) |
---|
| 6568 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
[763] | 6569 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[107] | 6570 | ;; |
---|
[763] | 6571 | esac | |
---|
| 6572 | sort |
---|
| 6573 | ) | |
---|
[107] | 6574 | sed ' |
---|
[763] | 6575 | /^ac_cv_env_/b end |
---|
[107] | 6576 | t clear |
---|
[763] | 6577 | :clear |
---|
[107] | 6578 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6579 | t end |
---|
[763] | 6580 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6581 | :end' >>confcache |
---|
| 6582 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 6583 | if test -w "$cache_file"; then |
---|
[788] | 6584 | if test "x$cache_file" != "x/dev/null"; then |
---|
| 6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
| 6586 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 6587 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
| 6588 | cat confcache >"$cache_file" |
---|
| 6589 | else |
---|
| 6590 | case $cache_file in #( |
---|
| 6591 | */* | ?:*) |
---|
| 6592 | mv -f confcache "$cache_file"$$ && |
---|
| 6593 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
| 6594 | *) |
---|
| 6595 | mv -f confcache "$cache_file" ;; |
---|
| 6596 | esac |
---|
| 6597 | fi |
---|
| 6598 | fi |
---|
[107] | 6599 | else |
---|
[788] | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
| 6601 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
[107] | 6602 | fi |
---|
| 6603 | fi |
---|
| 6604 | rm -f confcache |
---|
| 6605 | |
---|
| 6606 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6607 | # Let make expand exec_prefix. |
---|
| 6608 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6609 | |
---|
| 6610 | DEFS=-DHAVE_CONFIG_H |
---|
| 6611 | |
---|
| 6612 | ac_libobjs= |
---|
| 6613 | ac_ltlibobjs= |
---|
[788] | 6614 | U= |
---|
[107] | 6615 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6616 | # 1. Remove the extension, and $U if already installed. |
---|
[763] | 6617 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
[788] | 6618 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
[763] | 6619 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 6620 | # will be set to the directory where LIBOBJS objects are built. |
---|
[788] | 6621 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 6622 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
[107] | 6623 | done |
---|
| 6624 | LIBOBJS=$ac_libobjs |
---|
| 6625 | |
---|
| 6626 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6627 | |
---|
| 6628 | |
---|
| 6629 | |
---|
[788] | 6630 | : "${CONFIG_STATUS=./config.status}" |
---|
| 6631 | ac_write_fail=0 |
---|
[107] | 6632 | ac_clean_files_save=$ac_clean_files |
---|
| 6633 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
[788] | 6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
| 6635 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6636 | as_write_fail=0 |
---|
| 6637 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
[107] | 6638 | #! $SHELL |
---|
| 6639 | # Generated by $as_me. |
---|
| 6640 | # Run this file to recreate the current configuration. |
---|
| 6641 | # Compiler output produced by configure, useful for debugging |
---|
| 6642 | # configure, is in config.log if it exists. |
---|
| 6643 | |
---|
| 6644 | debug=false |
---|
| 6645 | ac_cs_recheck=false |
---|
| 6646 | ac_cs_silent=false |
---|
[788] | 6647 | |
---|
[107] | 6648 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
[788] | 6649 | export SHELL |
---|
| 6650 | _ASEOF |
---|
| 6651 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
| 6652 | ## -------------------- ## |
---|
| 6653 | ## M4sh Initialization. ## |
---|
| 6654 | ## -------------------- ## |
---|
[107] | 6655 | |
---|
[763] | 6656 | # Be more Bourne compatible |
---|
| 6657 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[788] | 6658 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
[107] | 6659 | emulate sh |
---|
| 6660 | NULLCMD=: |
---|
[788] | 6661 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[107] | 6662 | # is contrary to our usage. Disable this feature. |
---|
| 6663 | alias -g '${1+"$@"}'='"$@"' |
---|
[763] | 6664 | setopt NO_GLOB_SUBST |
---|
| 6665 | else |
---|
[788] | 6666 | case `(set -o) 2>/dev/null` in #( |
---|
| 6667 | *posix*) : |
---|
| 6668 | set -o posix ;; #( |
---|
| 6669 | *) : |
---|
| 6670 | ;; |
---|
[763] | 6671 | esac |
---|
[107] | 6672 | fi |
---|
| 6673 | |
---|
[763] | 6674 | |
---|
[788] | 6675 | as_nl=' |
---|
| 6676 | ' |
---|
| 6677 | export as_nl |
---|
| 6678 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 6679 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 6680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6681 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6682 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
| 6683 | # but without wasting forks for bash or zsh. |
---|
| 6684 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
| 6685 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 6686 | as_echo='print -r --' |
---|
| 6687 | as_echo_n='print -rn --' |
---|
| 6688 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 6689 | as_echo='printf %s\n' |
---|
| 6690 | as_echo_n='printf %s' |
---|
| 6691 | else |
---|
| 6692 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 6693 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 6694 | as_echo_n='/usr/ucb/echo -n' |
---|
[763] | 6695 | else |
---|
[788] | 6696 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 6697 | as_echo_n_body='eval |
---|
| 6698 | arg=$1; |
---|
| 6699 | case $arg in #( |
---|
| 6700 | *"$as_nl"*) |
---|
| 6701 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 6702 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 6703 | esac; |
---|
| 6704 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 6705 | ' |
---|
| 6706 | export as_echo_n_body |
---|
| 6707 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
[763] | 6708 | fi |
---|
[788] | 6709 | export as_echo_body |
---|
| 6710 | as_echo='sh -c $as_echo_body as_echo' |
---|
[763] | 6711 | fi |
---|
| 6712 | |
---|
[788] | 6713 | # The user is always right. |
---|
| 6714 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6715 | PATH_SEPARATOR=: |
---|
| 6716 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 6717 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 6718 | PATH_SEPARATOR=';' |
---|
| 6719 | } |
---|
[107] | 6720 | fi |
---|
| 6721 | |
---|
| 6722 | |
---|
[763] | 6723 | # IFS |
---|
| 6724 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 6725 | # there to prevent editors from complaining about space-tab. |
---|
| 6726 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 6727 | # splitting by setting IFS to empty value.) |
---|
| 6728 | IFS=" "" $as_nl" |
---|
| 6729 | |
---|
| 6730 | # Find who we are. Look in the path if we contain no directory separator. |
---|
[788] | 6731 | as_myself= |
---|
| 6732 | case $0 in #(( |
---|
[763] | 6733 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6734 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6735 | for as_dir in $PATH |
---|
| 6736 | do |
---|
| 6737 | IFS=$as_save_IFS |
---|
| 6738 | test -z "$as_dir" && as_dir=. |
---|
[788] | 6739 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6740 | done |
---|
[763] | 6741 | IFS=$as_save_IFS |
---|
| 6742 | |
---|
| 6743 | ;; |
---|
| 6744 | esac |
---|
| 6745 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6746 | # in which case we are not to be found in the path. |
---|
| 6747 | if test "x$as_myself" = x; then |
---|
| 6748 | as_myself=$0 |
---|
| 6749 | fi |
---|
| 6750 | if test ! -f "$as_myself"; then |
---|
[788] | 6751 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 6752 | exit 1 |
---|
[763] | 6753 | fi |
---|
| 6754 | |
---|
[788] | 6755 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
| 6756 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
| 6757 | # suppresses any "Segmentation fault" message there. '((' could |
---|
| 6758 | # trigger a bug in pdksh 5.2.14. |
---|
| 6759 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
| 6760 | do eval test x\${$as_var+set} = xset \ |
---|
| 6761 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
[763] | 6762 | done |
---|
[107] | 6763 | PS1='$ ' |
---|
| 6764 | PS2='> ' |
---|
| 6765 | PS4='+ ' |
---|
| 6766 | |
---|
| 6767 | # NLS nuisances. |
---|
[788] | 6768 | LC_ALL=C |
---|
| 6769 | export LC_ALL |
---|
| 6770 | LANGUAGE=C |
---|
| 6771 | export LANGUAGE |
---|
| 6772 | |
---|
| 6773 | # CDPATH. |
---|
| 6774 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
| 6775 | |
---|
| 6776 | |
---|
| 6777 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 6778 | # ---------------------------------------- |
---|
| 6779 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 6780 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 6781 | # script with STATUS, using 1 if that was 0. |
---|
| 6782 | as_fn_error () |
---|
| 6783 | { |
---|
| 6784 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 6785 | if test "$4"; then |
---|
| 6786 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 6787 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
[107] | 6788 | fi |
---|
[788] | 6789 | $as_echo "$as_me: error: $2" >&2 |
---|
| 6790 | as_fn_exit $as_status |
---|
| 6791 | } # as_fn_error |
---|
[107] | 6792 | |
---|
[788] | 6793 | |
---|
| 6794 | # as_fn_set_status STATUS |
---|
| 6795 | # ----------------------- |
---|
| 6796 | # Set $? to STATUS, without forking. |
---|
| 6797 | as_fn_set_status () |
---|
| 6798 | { |
---|
| 6799 | return $1 |
---|
| 6800 | } # as_fn_set_status |
---|
| 6801 | |
---|
| 6802 | # as_fn_exit STATUS |
---|
| 6803 | # ----------------- |
---|
| 6804 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 6805 | as_fn_exit () |
---|
| 6806 | { |
---|
| 6807 | set +e |
---|
| 6808 | as_fn_set_status $1 |
---|
| 6809 | exit $1 |
---|
| 6810 | } # as_fn_exit |
---|
| 6811 | |
---|
| 6812 | # as_fn_unset VAR |
---|
| 6813 | # --------------- |
---|
| 6814 | # Portably unset VAR. |
---|
| 6815 | as_fn_unset () |
---|
| 6816 | { |
---|
| 6817 | { eval $1=; unset $1;} |
---|
| 6818 | } |
---|
| 6819 | as_unset=as_fn_unset |
---|
| 6820 | # as_fn_append VAR VALUE |
---|
| 6821 | # ---------------------- |
---|
| 6822 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 6823 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 6824 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 6825 | # implementations. |
---|
| 6826 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 6827 | eval 'as_fn_append () |
---|
| 6828 | { |
---|
| 6829 | eval $1+=\$2 |
---|
| 6830 | }' |
---|
| 6831 | else |
---|
| 6832 | as_fn_append () |
---|
| 6833 | { |
---|
| 6834 | eval $1=\$$1\$2 |
---|
| 6835 | } |
---|
| 6836 | fi # as_fn_append |
---|
| 6837 | |
---|
| 6838 | # as_fn_arith ARG... |
---|
| 6839 | # ------------------ |
---|
| 6840 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 6841 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 6842 | # must be portable across $(()) and expr. |
---|
| 6843 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 6844 | eval 'as_fn_arith () |
---|
| 6845 | { |
---|
| 6846 | as_val=$(( $* )) |
---|
| 6847 | }' |
---|
| 6848 | else |
---|
| 6849 | as_fn_arith () |
---|
| 6850 | { |
---|
| 6851 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 6852 | } |
---|
| 6853 | fi # as_fn_arith |
---|
| 6854 | |
---|
| 6855 | |
---|
[763] | 6856 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 6857 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[107] | 6858 | as_expr=expr |
---|
| 6859 | else |
---|
| 6860 | as_expr=false |
---|
| 6861 | fi |
---|
| 6862 | |
---|
[763] | 6863 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[107] | 6864 | as_basename=basename |
---|
| 6865 | else |
---|
| 6866 | as_basename=false |
---|
| 6867 | fi |
---|
| 6868 | |
---|
[788] | 6869 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 6870 | as_dirname=dirname |
---|
| 6871 | else |
---|
| 6872 | as_dirname=false |
---|
| 6873 | fi |
---|
[107] | 6874 | |
---|
[763] | 6875 | as_me=`$as_basename -- "$0" || |
---|
[107] | 6876 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6877 | X"$0" : 'X\(//\)$' \| \ |
---|
[763] | 6878 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
[788] | 6879 | $as_echo X/"$0" | |
---|
[763] | 6880 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 6881 | s//\1/ |
---|
| 6882 | q |
---|
| 6883 | } |
---|
| 6884 | /^X\/\(\/\/\)$/{ |
---|
| 6885 | s//\1/ |
---|
| 6886 | q |
---|
| 6887 | } |
---|
| 6888 | /^X\/\(\/\).*/{ |
---|
| 6889 | s//\1/ |
---|
| 6890 | q |
---|
| 6891 | } |
---|
| 6892 | s/.*/./; q'` |
---|
[107] | 6893 | |
---|
[788] | 6894 | # Avoid depending upon Character Ranges. |
---|
| 6895 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6896 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6897 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6898 | as_cr_digits='0123456789' |
---|
| 6899 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
[107] | 6900 | |
---|
[763] | 6901 | ECHO_C= ECHO_N= ECHO_T= |
---|
[788] | 6902 | case `echo -n x` in #((((( |
---|
[763] | 6903 | -n*) |
---|
[788] | 6904 | case `echo 'xy\c'` in |
---|
[763] | 6905 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
[788] | 6906 | xy) ECHO_C='\c';; |
---|
| 6907 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 6908 | ECHO_T=' ';; |
---|
[763] | 6909 | esac;; |
---|
| 6910 | *) |
---|
| 6911 | ECHO_N='-n';; |
---|
[107] | 6912 | esac |
---|
| 6913 | |
---|
| 6914 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[763] | 6915 | if test -d conf$$.dir; then |
---|
| 6916 | rm -f conf$$.dir/conf$$.file |
---|
| 6917 | else |
---|
| 6918 | rm -f conf$$.dir |
---|
[788] | 6919 | mkdir conf$$.dir 2>/dev/null |
---|
[763] | 6920 | fi |
---|
[788] | 6921 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 6922 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6923 | as_ln_s='ln -s' |
---|
| 6924 | # ... but there are two gotchas: |
---|
| 6925 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 6926 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
[1088] | 6927 | # In both cases, we have to default to `cp -pR'. |
---|
[788] | 6928 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[1088] | 6929 | as_ln_s='cp -pR' |
---|
[788] | 6930 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6931 | as_ln_s=ln |
---|
| 6932 | else |
---|
[1088] | 6933 | as_ln_s='cp -pR' |
---|
[788] | 6934 | fi |
---|
[107] | 6935 | else |
---|
[1088] | 6936 | as_ln_s='cp -pR' |
---|
[107] | 6937 | fi |
---|
[763] | 6938 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 6939 | rmdir conf$$.dir 2>/dev/null |
---|
[107] | 6940 | |
---|
[788] | 6941 | |
---|
| 6942 | # as_fn_mkdir_p |
---|
| 6943 | # ------------- |
---|
| 6944 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 6945 | as_fn_mkdir_p () |
---|
| 6946 | { |
---|
| 6947 | |
---|
| 6948 | case $as_dir in #( |
---|
| 6949 | -*) as_dir=./$as_dir;; |
---|
| 6950 | esac |
---|
| 6951 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 6952 | as_dirs= |
---|
| 6953 | while :; do |
---|
| 6954 | case $as_dir in #( |
---|
| 6955 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 6956 | *) as_qdir=$as_dir;; |
---|
| 6957 | esac |
---|
| 6958 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 6959 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 6960 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6961 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6962 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6963 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6964 | $as_echo X"$as_dir" | |
---|
| 6965 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6966 | s//\1/ |
---|
| 6967 | q |
---|
| 6968 | } |
---|
| 6969 | /^X\(\/\/\)[^/].*/{ |
---|
| 6970 | s//\1/ |
---|
| 6971 | q |
---|
| 6972 | } |
---|
| 6973 | /^X\(\/\/\)$/{ |
---|
| 6974 | s//\1/ |
---|
| 6975 | q |
---|
| 6976 | } |
---|
| 6977 | /^X\(\/\).*/{ |
---|
| 6978 | s//\1/ |
---|
| 6979 | q |
---|
| 6980 | } |
---|
| 6981 | s/.*/./; q'` |
---|
| 6982 | test -d "$as_dir" && break |
---|
| 6983 | done |
---|
| 6984 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 6985 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 6986 | |
---|
| 6987 | |
---|
| 6988 | } # as_fn_mkdir_p |
---|
[107] | 6989 | if mkdir -p . 2>/dev/null; then |
---|
[788] | 6990 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
[107] | 6991 | else |
---|
[349] | 6992 | test -d ./-p && rmdir ./-p |
---|
[107] | 6993 | as_mkdir_p=false |
---|
| 6994 | fi |
---|
| 6995 | |
---|
| 6996 | |
---|
[1088] | 6997 | # as_fn_executable_p FILE |
---|
| 6998 | # ----------------------- |
---|
| 6999 | # Test if FILE is an executable regular file. |
---|
| 7000 | as_fn_executable_p () |
---|
| 7001 | { |
---|
| 7002 | test -f "$1" && test -x "$1" |
---|
| 7003 | } # as_fn_executable_p |
---|
| 7004 | as_test_x='test -x' |
---|
| 7005 | as_executable_p=as_fn_executable_p |
---|
| 7006 | |
---|
[107] | 7007 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 7008 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 7009 | |
---|
| 7010 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 7011 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 7012 | |
---|
| 7013 | |
---|
| 7014 | exec 6>&1 |
---|
[788] | 7015 | ## ----------------------------------- ## |
---|
| 7016 | ## Main body of $CONFIG_STATUS script. ## |
---|
| 7017 | ## ----------------------------------- ## |
---|
| 7018 | _ASEOF |
---|
| 7019 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
[107] | 7020 | |
---|
[788] | 7021 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7022 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
[107] | 7023 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
[763] | 7024 | # values after options handling. |
---|
| 7025 | ac_log=" |
---|
[1088] | 7026 | This file was extended by Duchamp $as_me 1.2.1, which was |
---|
| 7027 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
[107] | 7028 | |
---|
| 7029 | CONFIG_FILES = $CONFIG_FILES |
---|
| 7030 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 7031 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 7032 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 7033 | $ $0 $@ |
---|
| 7034 | |
---|
[763] | 7035 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 7036 | " |
---|
| 7037 | |
---|
[107] | 7038 | _ACEOF |
---|
| 7039 | |
---|
[788] | 7040 | case $ac_config_files in *" |
---|
| 7041 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 7042 | esac |
---|
| 7043 | |
---|
| 7044 | case $ac_config_headers in *" |
---|
| 7045 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
| 7046 | esac |
---|
| 7047 | |
---|
| 7048 | |
---|
| 7049 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[107] | 7050 | # Files that config.status was made for. |
---|
[763] | 7051 | config_files="$ac_config_files" |
---|
| 7052 | config_headers="$ac_config_headers" |
---|
[107] | 7053 | |
---|
[763] | 7054 | _ACEOF |
---|
[107] | 7055 | |
---|
[788] | 7056 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7057 | ac_cs_usage="\ |
---|
[788] | 7058 | \`$as_me' instantiates files and other configuration actions |
---|
| 7059 | from templates according to the current configuration. Unless the files |
---|
| 7060 | and actions are specified as TAGs, all are instantiated by default. |
---|
[107] | 7061 | |
---|
[788] | 7062 | Usage: $0 [OPTION]... [TAG]... |
---|
[107] | 7063 | |
---|
| 7064 | -h, --help print this help, then exit |
---|
[763] | 7065 | -V, --version print version number and configuration settings, then exit |
---|
[788] | 7066 | --config print configuration, then exit |
---|
| 7067 | -q, --quiet, --silent |
---|
| 7068 | do not print progress messages |
---|
[107] | 7069 | -d, --debug don't remove temporary files |
---|
| 7070 | --recheck update $as_me by reconfiguring in the same conditions |
---|
[788] | 7071 | --file=FILE[:TEMPLATE] |
---|
| 7072 | instantiate the configuration file FILE |
---|
| 7073 | --header=FILE[:TEMPLATE] |
---|
| 7074 | instantiate the configuration header FILE |
---|
[107] | 7075 | |
---|
| 7076 | Configuration files: |
---|
| 7077 | $config_files |
---|
| 7078 | |
---|
| 7079 | Configuration headers: |
---|
| 7080 | $config_headers |
---|
| 7081 | |
---|
[788] | 7082 | Report bugs to <Matthew.Whiting@csiro.au>." |
---|
[763] | 7083 | |
---|
[107] | 7084 | _ACEOF |
---|
[788] | 7085 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7086 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
[107] | 7087 | ac_cs_version="\\ |
---|
[1088] | 7088 | Duchamp config.status 1.2.1 |
---|
| 7089 | configured by $0, generated by GNU Autoconf 2.69, |
---|
[788] | 7090 | with options \\"\$ac_cs_config\\" |
---|
[107] | 7091 | |
---|
[1088] | 7092 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
[107] | 7093 | This config.status script is free software; the Free Software Foundation |
---|
| 7094 | gives unlimited permission to copy, distribute and modify it." |
---|
[763] | 7095 | |
---|
| 7096 | ac_pwd='$ac_pwd' |
---|
| 7097 | srcdir='$srcdir' |
---|
[788] | 7098 | test -n "\$AWK" || AWK=awk |
---|
[107] | 7099 | _ACEOF |
---|
| 7100 | |
---|
[788] | 7101 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7102 | # The default lists apply if the user does not specify any file. |
---|
[107] | 7103 | ac_need_defaults=: |
---|
| 7104 | while test $# != 0 |
---|
| 7105 | do |
---|
| 7106 | case $1 in |
---|
[788] | 7107 | --*=?*) |
---|
[763] | 7108 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 7109 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
[107] | 7110 | ac_shift=: |
---|
| 7111 | ;; |
---|
[788] | 7112 | --*=) |
---|
| 7113 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 7114 | ac_optarg= |
---|
| 7115 | ac_shift=: |
---|
| 7116 | ;; |
---|
[763] | 7117 | *) |
---|
[107] | 7118 | ac_option=$1 |
---|
| 7119 | ac_optarg=$2 |
---|
| 7120 | ac_shift=shift |
---|
| 7121 | ;; |
---|
| 7122 | esac |
---|
| 7123 | |
---|
| 7124 | case $ac_option in |
---|
| 7125 | # Handling of the options. |
---|
| 7126 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 7127 | ac_cs_recheck=: ;; |
---|
[763] | 7128 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
[788] | 7129 | $as_echo "$ac_cs_version"; exit ;; |
---|
| 7130 | --config | --confi | --conf | --con | --co | --c ) |
---|
| 7131 | $as_echo "$ac_cs_config"; exit ;; |
---|
[763] | 7132 | --debug | --debu | --deb | --de | --d | -d ) |
---|
[107] | 7133 | debug=: ;; |
---|
| 7134 | --file | --fil | --fi | --f ) |
---|
| 7135 | $ac_shift |
---|
[788] | 7136 | case $ac_optarg in |
---|
| 7137 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7138 | '') as_fn_error $? "missing file argument" ;; |
---|
| 7139 | esac |
---|
| 7140 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
[107] | 7141 | ac_need_defaults=false;; |
---|
| 7142 | --header | --heade | --head | --hea ) |
---|
| 7143 | $ac_shift |
---|
[788] | 7144 | case $ac_optarg in |
---|
| 7145 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7146 | esac |
---|
| 7147 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
[107] | 7148 | ac_need_defaults=false;; |
---|
[763] | 7149 | --he | --h) |
---|
| 7150 | # Conflict between --help and --header |
---|
[788] | 7151 | as_fn_error $? "ambiguous option: \`$1' |
---|
| 7152 | Try \`$0 --help' for more information.";; |
---|
[763] | 7153 | --help | --hel | -h ) |
---|
[788] | 7154 | $as_echo "$ac_cs_usage"; exit ;; |
---|
[107] | 7155 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 7156 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 7157 | ac_cs_silent=: ;; |
---|
| 7158 | |
---|
| 7159 | # This is an error. |
---|
[788] | 7160 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
| 7161 | Try \`$0 --help' for more information." ;; |
---|
[107] | 7162 | |
---|
[788] | 7163 | *) as_fn_append ac_config_targets " $1" |
---|
[763] | 7164 | ac_need_defaults=false ;; |
---|
[107] | 7165 | |
---|
| 7166 | esac |
---|
| 7167 | shift |
---|
| 7168 | done |
---|
| 7169 | |
---|
| 7170 | ac_configure_extra_args= |
---|
| 7171 | |
---|
| 7172 | if $ac_cs_silent; then |
---|
| 7173 | exec 6>/dev/null |
---|
| 7174 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 7175 | fi |
---|
| 7176 | |
---|
| 7177 | _ACEOF |
---|
[788] | 7178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[107] | 7179 | if \$ac_cs_recheck; then |
---|
[1088] | 7180 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
[788] | 7181 | shift |
---|
| 7182 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 7183 | CONFIG_SHELL='$SHELL' |
---|
[763] | 7184 | export CONFIG_SHELL |
---|
[788] | 7185 | exec "\$@" |
---|
[107] | 7186 | fi |
---|
| 7187 | |
---|
| 7188 | _ACEOF |
---|
[788] | 7189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7190 | exec 5>>config.log |
---|
| 7191 | { |
---|
| 7192 | echo |
---|
| 7193 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7194 | ## Running $as_me. ## |
---|
| 7195 | _ASBOX |
---|
[788] | 7196 | $as_echo "$ac_log" |
---|
[763] | 7197 | } >&5 |
---|
[107] | 7198 | |
---|
[763] | 7199 | _ACEOF |
---|
[788] | 7200 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[763] | 7201 | _ACEOF |
---|
[107] | 7202 | |
---|
[788] | 7203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7204 | |
---|
[763] | 7205 | # Handling of arguments. |
---|
[107] | 7206 | for ac_config_target in $ac_config_targets |
---|
| 7207 | do |
---|
[763] | 7208 | case $ac_config_target in |
---|
| 7209 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
| 7210 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 7211 | |
---|
[788] | 7212 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
[107] | 7213 | esac |
---|
| 7214 | done |
---|
| 7215 | |
---|
[763] | 7216 | |
---|
[107] | 7217 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 7218 | # then the envvar interface is used. Set only those that are not. |
---|
| 7219 | # We use the long form for the default assignment because of an extremely |
---|
| 7220 | # bizarre bug on SunOS 4.1.3. |
---|
| 7221 | if $ac_need_defaults; then |
---|
| 7222 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 7223 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 7224 | fi |
---|
| 7225 | |
---|
| 7226 | # Have a temporary directory for convenience. Make it in the build tree |
---|
[763] | 7227 | # simply because there is no reason against having it here, and in addition, |
---|
[107] | 7228 | # creating and moving files from /tmp can sometimes cause problems. |
---|
[763] | 7229 | # Hook for its removal unless debugging. |
---|
| 7230 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 7231 | # after its creation but before its name has been assigned to `$tmp'. |
---|
[107] | 7232 | $debug || |
---|
| 7233 | { |
---|
[788] | 7234 | tmp= ac_tmp= |
---|
[763] | 7235 | trap 'exit_status=$? |
---|
[788] | 7236 | : "${ac_tmp:=$tmp}" |
---|
| 7237 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
[763] | 7238 | ' 0 |
---|
[788] | 7239 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
[107] | 7240 | } |
---|
| 7241 | # Create a (secure) tmp directory for tmp files. |
---|
| 7242 | |
---|
| 7243 | { |
---|
[763] | 7244 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
[788] | 7245 | test -d "$tmp" |
---|
[107] | 7246 | } || |
---|
| 7247 | { |
---|
[763] | 7248 | tmp=./conf$$-$RANDOM |
---|
| 7249 | (umask 077 && mkdir "$tmp") |
---|
[788] | 7250 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
| 7251 | ac_tmp=$tmp |
---|
[107] | 7252 | |
---|
[788] | 7253 | # Set up the scripts for CONFIG_FILES section. |
---|
| 7254 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 7255 | # This happens for instance with `./config.status config.h'. |
---|
[763] | 7256 | if test -n "$CONFIG_FILES"; then |
---|
[107] | 7257 | |
---|
[788] | 7258 | |
---|
| 7259 | ac_cr=`echo X | tr X '\015'` |
---|
| 7260 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
| 7261 | # But we know of no other shell where ac_cr would be empty at this |
---|
| 7262 | # point, so we can use a bashism as a fallback. |
---|
| 7263 | if test "x$ac_cr" = x; then |
---|
| 7264 | eval ac_cr=\$\'\\r\' |
---|
| 7265 | fi |
---|
| 7266 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 7267 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 7268 | ac_cs_awk_cr='\\r' |
---|
| 7269 | else |
---|
| 7270 | ac_cs_awk_cr=$ac_cr |
---|
| 7271 | fi |
---|
| 7272 | |
---|
| 7273 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
[107] | 7274 | _ACEOF |
---|
| 7275 | |
---|
[763] | 7276 | |
---|
[788] | 7277 | { |
---|
| 7278 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 7279 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 7280 | echo "_ACEOF" |
---|
| 7281 | } >conf$$subs.sh || |
---|
| 7282 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 7283 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
[763] | 7284 | ac_delim='%!_!# ' |
---|
| 7285 | for ac_last_try in false false false false false :; do |
---|
[788] | 7286 | . ./conf$$subs.sh || |
---|
| 7287 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
[763] | 7288 | |
---|
[788] | 7289 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 7290 | if test $ac_delim_n = $ac_delim_num; then |
---|
[763] | 7291 | break |
---|
| 7292 | elif $ac_last_try; then |
---|
[788] | 7293 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
[763] | 7294 | else |
---|
| 7295 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
[107] | 7296 | fi |
---|
[763] | 7297 | done |
---|
[788] | 7298 | rm -f conf$$subs.sh |
---|
[107] | 7299 | |
---|
[788] | 7300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7301 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
| 7302 | _ACEOF |
---|
| 7303 | sed -n ' |
---|
| 7304 | h |
---|
| 7305 | s/^/S["/; s/!.*/"]=/ |
---|
| 7306 | p |
---|
| 7307 | g |
---|
| 7308 | s/^[^!]*!// |
---|
| 7309 | :repl |
---|
| 7310 | t repl |
---|
| 7311 | s/'"$ac_delim"'$// |
---|
| 7312 | t delim |
---|
| 7313 | :nl |
---|
| 7314 | h |
---|
| 7315 | s/\(.\{148\}\)..*/\1/ |
---|
| 7316 | t more1 |
---|
| 7317 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 7318 | p |
---|
| 7319 | n |
---|
| 7320 | b repl |
---|
| 7321 | :more1 |
---|
| 7322 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7323 | p |
---|
| 7324 | g |
---|
| 7325 | s/.\{148\}// |
---|
| 7326 | t nl |
---|
| 7327 | :delim |
---|
| 7328 | h |
---|
| 7329 | s/\(.\{148\}\)..*/\1/ |
---|
| 7330 | t more2 |
---|
| 7331 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 7332 | p |
---|
| 7333 | b |
---|
| 7334 | :more2 |
---|
| 7335 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7336 | p |
---|
| 7337 | g |
---|
| 7338 | s/.\{148\}// |
---|
| 7339 | t delim |
---|
| 7340 | ' <conf$$subs.awk | sed ' |
---|
| 7341 | /^[^""]/{ |
---|
| 7342 | N |
---|
| 7343 | s/\n// |
---|
| 7344 | } |
---|
| 7345 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 7346 | rm -f conf$$subs.awk |
---|
| 7347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7348 | _ACAWK |
---|
| 7349 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
| 7350 | for (key in S) S_is_set[key] = 1 |
---|
| 7351 | FS = "" |
---|
[763] | 7352 | |
---|
[788] | 7353 | } |
---|
| 7354 | { |
---|
| 7355 | line = $ 0 |
---|
| 7356 | nfields = split(line, field, "@") |
---|
| 7357 | substed = 0 |
---|
| 7358 | len = length(field[1]) |
---|
| 7359 | for (i = 2; i < nfields; i++) { |
---|
| 7360 | key = field[i] |
---|
| 7361 | keylen = length(key) |
---|
| 7362 | if (S_is_set[key]) { |
---|
| 7363 | value = S[key] |
---|
| 7364 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 7365 | len += length(value) + length(field[++i]) |
---|
| 7366 | substed = 1 |
---|
| 7367 | } else |
---|
| 7368 | len += 1 + keylen |
---|
| 7369 | } |
---|
| 7370 | |
---|
| 7371 | print line |
---|
| 7372 | } |
---|
| 7373 | |
---|
| 7374 | _ACAWK |
---|
[107] | 7375 | _ACEOF |
---|
[788] | 7376 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7377 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 7378 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 7379 | else |
---|
| 7380 | cat |
---|
| 7381 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
| 7382 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
[763] | 7383 | _ACEOF |
---|
| 7384 | |
---|
[788] | 7385 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
| 7386 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
[763] | 7387 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 7388 | # (actually we leave an empty line to preserve line numbers). |
---|
| 7389 | if test "x$srcdir" = x.; then |
---|
[788] | 7390 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
| 7391 | h |
---|
| 7392 | s/// |
---|
| 7393 | s/^/:/ |
---|
| 7394 | s/[ ]*$/:/ |
---|
| 7395 | s/:\$(srcdir):/:/g |
---|
| 7396 | s/:\${srcdir}:/:/g |
---|
| 7397 | s/:@srcdir@:/:/g |
---|
| 7398 | s/^:*// |
---|
[763] | 7399 | s/:*$// |
---|
[788] | 7400 | x |
---|
| 7401 | s/\(=[ ]*\).*/\1/ |
---|
| 7402 | G |
---|
| 7403 | s/\n// |
---|
[763] | 7404 | s/^[^=]*=[ ]*$// |
---|
| 7405 | }' |
---|
| 7406 | fi |
---|
| 7407 | |
---|
[788] | 7408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7409 | fi # test -n "$CONFIG_FILES" |
---|
| 7410 | |
---|
[788] | 7411 | # Set up the scripts for CONFIG_HEADERS section. |
---|
| 7412 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
| 7413 | # This happens for instance with `./config.status Makefile'. |
---|
| 7414 | if test -n "$CONFIG_HEADERS"; then |
---|
| 7415 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
| 7416 | BEGIN { |
---|
| 7417 | _ACEOF |
---|
[763] | 7418 | |
---|
[788] | 7419 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
| 7420 | # here-document in config.status, that substitutes the proper values into |
---|
| 7421 | # config.h.in to produce config.h. |
---|
| 7422 | |
---|
| 7423 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
| 7424 | # handling of long lines. |
---|
| 7425 | ac_delim='%!_!# ' |
---|
| 7426 | for ac_last_try in false false :; do |
---|
| 7427 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
| 7428 | if test -z "$ac_tt"; then |
---|
| 7429 | break |
---|
| 7430 | elif $ac_last_try; then |
---|
| 7431 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
| 7432 | else |
---|
| 7433 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 7434 | fi |
---|
| 7435 | done |
---|
| 7436 | |
---|
| 7437 | # For the awk script, D is an array of macro values keyed by name, |
---|
| 7438 | # likewise P contains macro parameters if any. Preserve backslash |
---|
| 7439 | # newline sequences. |
---|
| 7440 | |
---|
| 7441 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
| 7442 | sed -n ' |
---|
| 7443 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 7444 | t rset |
---|
| 7445 | :rset |
---|
| 7446 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
| 7447 | t def |
---|
| 7448 | d |
---|
| 7449 | :def |
---|
| 7450 | s/\\$// |
---|
| 7451 | t bsnl |
---|
| 7452 | s/["\\]/\\&/g |
---|
| 7453 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 7454 | D["\1"]=" \3"/p |
---|
| 7455 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
| 7456 | d |
---|
| 7457 | :bsnl |
---|
| 7458 | s/["\\]/\\&/g |
---|
| 7459 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 7460 | D["\1"]=" \3\\\\\\n"\\/p |
---|
| 7461 | t cont |
---|
| 7462 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
| 7463 | t cont |
---|
| 7464 | d |
---|
| 7465 | :cont |
---|
| 7466 | n |
---|
| 7467 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 7468 | t clear |
---|
| 7469 | :clear |
---|
| 7470 | s/\\$// |
---|
| 7471 | t bsnlc |
---|
| 7472 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
| 7473 | d |
---|
| 7474 | :bsnlc |
---|
| 7475 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
| 7476 | b cont |
---|
| 7477 | ' <confdefs.h | sed ' |
---|
| 7478 | s/'"$ac_delim"'/"\\\ |
---|
| 7479 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 7480 | |
---|
| 7481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7482 | for (key in D) D_is_set[key] = 1 |
---|
| 7483 | FS = "" |
---|
| 7484 | } |
---|
| 7485 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
| 7486 | line = \$ 0 |
---|
| 7487 | split(line, arg, " ") |
---|
| 7488 | if (arg[1] == "#") { |
---|
| 7489 | defundef = arg[2] |
---|
| 7490 | mac1 = arg[3] |
---|
| 7491 | } else { |
---|
| 7492 | defundef = substr(arg[1], 2) |
---|
| 7493 | mac1 = arg[2] |
---|
| 7494 | } |
---|
| 7495 | split(mac1, mac2, "(") #) |
---|
| 7496 | macro = mac2[1] |
---|
| 7497 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
| 7498 | if (D_is_set[macro]) { |
---|
| 7499 | # Preserve the white space surrounding the "#". |
---|
| 7500 | print prefix "define", macro P[macro] D[macro] |
---|
| 7501 | next |
---|
| 7502 | } else { |
---|
| 7503 | # Replace #undef with comments. This is necessary, for example, |
---|
| 7504 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7505 | # on some systems where configure will not decide to define it. |
---|
| 7506 | if (defundef == "undef") { |
---|
| 7507 | print "/*", prefix defundef, macro, "*/" |
---|
| 7508 | next |
---|
| 7509 | } |
---|
| 7510 | } |
---|
| 7511 | } |
---|
| 7512 | { print } |
---|
| 7513 | _ACAWK |
---|
| 7514 | _ACEOF |
---|
| 7515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7516 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
| 7517 | fi # test -n "$CONFIG_HEADERS" |
---|
| 7518 | |
---|
| 7519 | |
---|
| 7520 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
| 7521 | shift |
---|
| 7522 | for ac_tag |
---|
[763] | 7523 | do |
---|
| 7524 | case $ac_tag in |
---|
| 7525 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
[107] | 7526 | esac |
---|
[763] | 7527 | case $ac_mode$ac_tag in |
---|
| 7528 | :[FHL]*:*);; |
---|
[788] | 7529 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
[763] | 7530 | :[FH]-) ac_tag=-:-;; |
---|
| 7531 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 7532 | esac |
---|
| 7533 | ac_save_IFS=$IFS |
---|
| 7534 | IFS=: |
---|
| 7535 | set x $ac_tag |
---|
| 7536 | IFS=$ac_save_IFS |
---|
| 7537 | shift |
---|
| 7538 | ac_file=$1 |
---|
| 7539 | shift |
---|
[107] | 7540 | |
---|
[763] | 7541 | case $ac_mode in |
---|
| 7542 | :L) ac_source=$1;; |
---|
| 7543 | :[FH]) |
---|
| 7544 | ac_file_inputs= |
---|
| 7545 | for ac_f |
---|
| 7546 | do |
---|
| 7547 | case $ac_f in |
---|
[788] | 7548 | -) ac_f="$ac_tmp/stdin";; |
---|
[763] | 7549 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 7550 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 7551 | # because $ac_f cannot contain `:'. |
---|
| 7552 | test -f "$ac_f" || |
---|
| 7553 | case $ac_f in |
---|
| 7554 | [\\/$]*) false;; |
---|
| 7555 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 7556 | esac || |
---|
[788] | 7557 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
[763] | 7558 | esac |
---|
[788] | 7559 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 7560 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
[763] | 7561 | done |
---|
| 7562 | |
---|
| 7563 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7564 | # use $as_me), people would be surprised to read: |
---|
| 7565 | # /* config.h. Generated by config.status. */ |
---|
[788] | 7566 | configure_input='Generated from '` |
---|
| 7567 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 7568 | `' by configure.' |
---|
[763] | 7569 | if test x"$ac_file" != x-; then |
---|
| 7570 | configure_input="$ac_file. $configure_input" |
---|
[788] | 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
| 7572 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
[763] | 7573 | fi |
---|
[788] | 7574 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 7575 | case $configure_input in #( |
---|
| 7576 | *\&* | *\|* | *\\* ) |
---|
| 7577 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
| 7578 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 7579 | *) ac_sed_conf_input=$configure_input;; |
---|
| 7580 | esac |
---|
[763] | 7581 | |
---|
| 7582 | case $ac_tag in |
---|
[788] | 7583 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
| 7584 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
[763] | 7585 | esac |
---|
| 7586 | ;; |
---|
| 7587 | esac |
---|
| 7588 | |
---|
| 7589 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
[107] | 7590 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 7591 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7592 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
[763] | 7593 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
[788] | 7594 | $as_echo X"$ac_file" | |
---|
[763] | 7595 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 7596 | s//\1/ |
---|
| 7597 | q |
---|
| 7598 | } |
---|
| 7599 | /^X\(\/\/\)[^/].*/{ |
---|
| 7600 | s//\1/ |
---|
| 7601 | q |
---|
| 7602 | } |
---|
| 7603 | /^X\(\/\/\)$/{ |
---|
| 7604 | s//\1/ |
---|
| 7605 | q |
---|
| 7606 | } |
---|
| 7607 | /^X\(\/\).*/{ |
---|
| 7608 | s//\1/ |
---|
| 7609 | q |
---|
| 7610 | } |
---|
| 7611 | s/.*/./; q'` |
---|
[788] | 7612 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
[107] | 7613 | ac_builddir=. |
---|
| 7614 | |
---|
[763] | 7615 | case "$ac_dir" in |
---|
| 7616 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7617 | *) |
---|
[788] | 7618 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
[763] | 7619 | # A ".." for each directory in $ac_dir_suffix. |
---|
[788] | 7620 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
[763] | 7621 | case $ac_top_builddir_sub in |
---|
| 7622 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7623 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 7624 | esac ;; |
---|
| 7625 | esac |
---|
| 7626 | ac_abs_top_builddir=$ac_pwd |
---|
| 7627 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 7628 | # for backward compatibility: |
---|
| 7629 | ac_top_builddir=$ac_top_build_prefix |
---|
[107] | 7630 | |
---|
| 7631 | case $srcdir in |
---|
[763] | 7632 | .) # We are building in place. |
---|
[107] | 7633 | ac_srcdir=. |
---|
[763] | 7634 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 7635 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 7636 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[107] | 7637 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[763] | 7638 | ac_top_srcdir=$srcdir |
---|
| 7639 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 7640 | *) # Relative name. |
---|
| 7641 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 7642 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 7643 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[107] | 7644 | esac |
---|
[763] | 7645 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[107] | 7646 | |
---|
| 7647 | |
---|
[763] | 7648 | case $ac_mode in |
---|
| 7649 | :F) |
---|
| 7650 | # |
---|
| 7651 | # CONFIG_FILE |
---|
| 7652 | # |
---|
[107] | 7653 | |
---|
[763] | 7654 | _ACEOF |
---|
[349] | 7655 | |
---|
[788] | 7656 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7657 | # If the template does not know about datarootdir, expand it. |
---|
| 7658 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 7659 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
[788] | 7660 | ac_sed_dataroot=' |
---|
| 7661 | /datarootdir/ { |
---|
[763] | 7662 | p |
---|
| 7663 | q |
---|
| 7664 | } |
---|
| 7665 | /@datadir@/p |
---|
| 7666 | /@docdir@/p |
---|
| 7667 | /@infodir@/p |
---|
| 7668 | /@localedir@/p |
---|
[788] | 7669 | /@mandir@/p' |
---|
| 7670 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
[763] | 7671 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 7672 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
[788] | 7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 7674 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
[107] | 7675 | _ACEOF |
---|
[788] | 7676 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[763] | 7677 | ac_datarootdir_hack=' |
---|
| 7678 | s&@datadir@&$datadir&g |
---|
| 7679 | s&@docdir@&$docdir&g |
---|
| 7680 | s&@infodir@&$infodir&g |
---|
| 7681 | s&@localedir@&$localedir&g |
---|
| 7682 | s&@mandir@&$mandir&g |
---|
[788] | 7683 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
[763] | 7684 | esac |
---|
| 7685 | _ACEOF |
---|
| 7686 | |
---|
| 7687 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 7688 | # Shell code in configure.ac might set extrasub. |
---|
| 7689 | # FIXME: do we really want to maintain this feature? |
---|
[788] | 7690 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7691 | ac_sed_extra="$ac_vpsub |
---|
[107] | 7692 | $extrasub |
---|
| 7693 | _ACEOF |
---|
[788] | 7694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7695 | :t |
---|
| 7696 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
[788] | 7697 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
[763] | 7698 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
[788] | 7699 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
[763] | 7700 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 7701 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 7702 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 7703 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 7704 | s&@builddir@&$ac_builddir&;t t |
---|
| 7705 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 7706 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 7707 | $ac_datarootdir_hack |
---|
[788] | 7708 | " |
---|
| 7709 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
| 7710 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[107] | 7711 | |
---|
[763] | 7712 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
[788] | 7713 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
| 7714 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
| 7715 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
| 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7717 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
| 7718 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7719 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
[107] | 7720 | |
---|
[788] | 7721 | rm -f "$ac_tmp/stdin" |
---|
[107] | 7722 | case $ac_file in |
---|
[788] | 7723 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
| 7724 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
| 7725 | esac \ |
---|
| 7726 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[763] | 7727 | ;; |
---|
| 7728 | :H) |
---|
| 7729 | # |
---|
| 7730 | # CONFIG_HEADER |
---|
| 7731 | # |
---|
[107] | 7732 | if test x"$ac_file" != x-; then |
---|
[788] | 7733 | { |
---|
| 7734 | $as_echo "/* $configure_input */" \ |
---|
| 7735 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
| 7736 | } >"$ac_tmp/config.h" \ |
---|
| 7737 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 7738 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
| 7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
| 7740 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
[107] | 7741 | else |
---|
[788] | 7742 | rm -f "$ac_file" |
---|
| 7743 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
| 7744 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[107] | 7745 | fi |
---|
| 7746 | else |
---|
[788] | 7747 | $as_echo "/* $configure_input */" \ |
---|
| 7748 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
| 7749 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
[107] | 7750 | fi |
---|
[763] | 7751 | ;; |
---|
[107] | 7752 | |
---|
| 7753 | |
---|
[763] | 7754 | esac |
---|
| 7755 | |
---|
| 7756 | done # for ac_tag |
---|
| 7757 | |
---|
| 7758 | |
---|
[788] | 7759 | as_fn_exit 0 |
---|
[107] | 7760 | _ACEOF |
---|
| 7761 | ac_clean_files=$ac_clean_files_save |
---|
| 7762 | |
---|
[788] | 7763 | test $ac_write_fail = 0 || |
---|
| 7764 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
[107] | 7765 | |
---|
[788] | 7766 | |
---|
[107] | 7767 | # configure is writing to config.log, and then calls config.status. |
---|
| 7768 | # config.status does its own redirection, appending to config.log. |
---|
| 7769 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7770 | # by configure, so config.status won't be able to write to it; its |
---|
| 7771 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7772 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7773 | # appended to by config.status. When coming back to configure, we |
---|
| 7774 | # need to make the FD available again. |
---|
| 7775 | if test "$no_create" != yes; then |
---|
| 7776 | ac_cs_success=: |
---|
| 7777 | ac_config_status_args= |
---|
| 7778 | test "$silent" = yes && |
---|
| 7779 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7780 | exec 5>/dev/null |
---|
| 7781 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7782 | exec 5>>config.log |
---|
| 7783 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7784 | # would make configure fail if this is the last instruction. |
---|
[788] | 7785 | $ac_cs_success || as_fn_exit 1 |
---|
[107] | 7786 | fi |
---|
[788] | 7787 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 7789 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 7790 | fi |
---|
[107] | 7791 | |
---|