| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.71 for Infernal 1.1.5. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 9 | # Inc. |
| 10 | # |
| 11 | # |
| 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
| 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
| 17 | |
| 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20 | as_nop=: |
| 21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 22 | then : |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
| 28 | setopt NO_GLOB_SUBST |
| 29 | else $as_nop |
| 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
| 35 | esac |
| 36 | fi |
| 37 | |
| 38 | |
| 39 | |
| 40 | # Reset variables that may have inherited troublesome values from |
| 41 | # the environment. |
| 42 | |
| 43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 45 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 46 | # Quoting is to prevent editors from complaining about space-tab. |
| 47 | as_nl=' |
| 48 | ' |
| 49 | export as_nl |
| 50 | IFS=" "" $as_nl" |
| 51 | |
| 52 | PS1='$ ' |
| 53 | PS2='> ' |
| 54 | PS4='+ ' |
| 55 | |
| 56 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 57 | LC_ALL=C |
| 58 | export LC_ALL |
| 59 | LANGUAGE=C |
| 60 | export LANGUAGE |
| 61 | |
| 62 | # We cannot yet rely on "unset" to work, but we need these variables |
| 63 | # to be unset--not just set to an empty or harmless value--now, to |
| 64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 65 | # also avoids known problems related to "unset" and subshell syntax |
| 66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 68 | do eval test \${$as_var+y} \ |
| 69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 70 | done |
| 71 | |
| 72 | # Ensure that fds 0, 1, and 2 are open. |
| 73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 76 | |
| 77 | # The user is always right. |
| 78 | if ${PATH_SEPARATOR+false} :; then |
| 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
| 84 | fi |
| 85 | |
| 86 | |
| 87 | # Find who we are. Look in the path if we contain no directory separator. |
| 88 | as_myself= |
| 89 | case $0 in #(( |
| 90 | *[\\/]* ) as_myself=$0 ;; |
| 91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 92 | for as_dir in $PATH |
| 93 | do |
| 94 | IFS=$as_save_IFS |
| 95 | case $as_dir in #((( |
| 96 | '') as_dir=./ ;; |
| 97 | */) ;; |
| 98 | *) as_dir=$as_dir/ ;; |
| 99 | esac |
| 100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | |
| 117 | # Use a proper internal environment variable to ensure we don't fall |
| 118 | # into an infinite loop, continuously re-executing ourselves. |
| 119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 120 | _as_can_reexec=no; export _as_can_reexec; |
| 121 | # We cannot yet assume a decent shell, so we have to provide a |
| 122 | # neutralization value for shells without unset; and this also |
| 123 | # works around shells that cannot unset nonexistent variables. |
| 124 | # Preserve -v and -x to the replacement shell. |
| 125 | BASH_ENV=/dev/null |
| 126 | ENV=/dev/null |
| 127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 128 | case $- in # (((( |
| 129 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 130 | *v* ) as_opts=-v ;; |
| 131 | *x* ) as_opts=-x ;; |
| 132 | * ) as_opts= ;; |
| 133 | esac |
| 134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 135 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 136 | # out after a failed `exec'. |
| 137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 138 | exit 255 |
| 139 | fi |
| 140 | # We don't want this to propagate to other subprocesses. |
| 141 | { _as_can_reexec=; unset _as_can_reexec;} |
| 142 | if test "x$CONFIG_SHELL" = x; then |
| 143 | as_bourne_compatible="as_nop=: |
| 144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 145 | then : |
| 146 | emulate sh |
| 147 | NULLCMD=: |
| 148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 149 | # is contrary to our usage. Disable this feature. |
| 150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 151 | setopt NO_GLOB_SUBST |
| 152 | else \$as_nop |
| 153 | case \`(set -o) 2>/dev/null\` in #( |
| 154 | *posix*) : |
| 155 | set -o posix ;; #( |
| 156 | *) : |
| 157 | ;; |
| 158 | esac |
| 159 | fi |
| 160 | " |
| 161 | as_required="as_fn_return () { (exit \$1); } |
| 162 | as_fn_success () { as_fn_return 0; } |
| 163 | as_fn_failure () { as_fn_return 1; } |
| 164 | as_fn_ret_success () { return 0; } |
| 165 | as_fn_ret_failure () { return 1; } |
| 166 | |
| 167 | exitcode=0 |
| 168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 173 | then : |
| 174 | |
| 175 | else \$as_nop |
| 176 | exitcode=1; echo positional parameters were not saved. |
| 177 | fi |
| 178 | test x\$exitcode = x0 || exit 1 |
| 179 | blah=\$(echo \$(echo blah)) |
| 180 | test x\"\$blah\" = xblah || exit 1 |
| 181 | test -x / || exit 1" |
| 182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 186 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 187 | if (eval "$as_required") 2>/dev/null |
| 188 | then : |
| 189 | as_have_required=yes |
| 190 | else $as_nop |
| 191 | as_have_required=no |
| 192 | fi |
| 193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 | then : |
| 195 | |
| 196 | else $as_nop |
| 197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 | as_found=false |
| 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 | do |
| 201 | IFS=$as_save_IFS |
| 202 | case $as_dir in #((( |
| 203 | '') as_dir=./ ;; |
| 204 | */) ;; |
| 205 | *) as_dir=$as_dir/ ;; |
| 206 | esac |
| 207 | as_found=: |
| 208 | case $as_dir in #( |
| 209 | /*) |
| 210 | for as_base in sh bash ksh sh5; do |
| 211 | # Try only shells that exist, to save several forks. |
| 212 | as_shell=$as_dir$as_base |
| 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 | then : |
| 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 | then : |
| 219 | break 2 |
| 220 | fi |
| 221 | fi |
| 222 | done;; |
| 223 | esac |
| 224 | as_found=false |
| 225 | done |
| 226 | IFS=$as_save_IFS |
| 227 | if $as_found |
| 228 | then : |
| 229 | |
| 230 | else $as_nop |
| 231 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 | then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi |
| 236 | fi |
| 237 | |
| 238 | |
| 239 | if test "x$CONFIG_SHELL" != x |
| 240 | then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno |
| 263 | then : |
| 264 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 265 | printf "%s\n" "$0: the shells that I found on your system." |
| 266 | if test ${ZSH_VERSION+y} ; then |
| 267 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | printf "%s\n" "$0: Please tell [email protected] and |
| 271 | $0: [email protected] about your system, including any |
| 272 | $0: error possibly output before this message. Then install |
| 273 | $0: a modern shell, or manually run the script under such a |
| 274 | $0: shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | |
| 299 | # as_fn_set_status STATUS |
| 300 | # ----------------------- |
| 301 | # Set $? to STATUS, without forking. |
| 302 | as_fn_set_status () |
| 303 | { |
| 304 | return $1 |
| 305 | } # as_fn_set_status |
| 306 | |
| 307 | # as_fn_exit STATUS |
| 308 | # ----------------- |
| 309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 310 | as_fn_exit () |
| 311 | { |
| 312 | set +e |
| 313 | as_fn_set_status $1 |
| 314 | exit $1 |
| 315 | } # as_fn_exit |
| 316 | # as_fn_nop |
| 317 | # --------- |
| 318 | # Do nothing but, unlike ":", preserve the value of $?. |
| 319 | as_fn_nop () |
| 320 | { |
| 321 | return $? |
| 322 | } |
| 323 | as_nop=as_fn_nop |
| 324 | |
| 325 | # as_fn_mkdir_p |
| 326 | # ------------- |
| 327 | # Create "$as_dir" as a directory, including parents if necessary. |
| 328 | as_fn_mkdir_p () |
| 329 | { |
| 330 | |
| 331 | case $as_dir in #( |
| 332 | -*) as_dir=./$as_dir;; |
| 333 | esac |
| 334 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 335 | as_dirs= |
| 336 | while :; do |
| 337 | case $as_dir in #( |
| 338 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 339 | *) as_qdir=$as_dir;; |
| 340 | esac |
| 341 | as_dirs="'$as_qdir' $as_dirs" |
| 342 | as_dir=`$as_dirname -- "$as_dir" || |
| 343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 344 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 345 | X"$as_dir" : 'X\(//\)$' \| \ |
| 346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 347 | printf "%s\n" X"$as_dir" | |
| 348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 349 | s//\1/ |
| 350 | q |
| 351 | } |
| 352 | /^X\(\/\/\)[^/].*/{ |
| 353 | s//\1/ |
| 354 | q |
| 355 | } |
| 356 | /^X\(\/\/\)$/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\).*/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | s/.*/./; q'` |
| 365 | test -d "$as_dir" && break |
| 366 | done |
| 367 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 369 | |
| 370 | |
| 371 | } # as_fn_mkdir_p |
| 372 | |
| 373 | # as_fn_executable_p FILE |
| 374 | # ----------------------- |
| 375 | # Test if FILE is an executable regular file. |
| 376 | as_fn_executable_p () |
| 377 | { |
| 378 | test -f "$1" && test -x "$1" |
| 379 | } # as_fn_executable_p |
| 380 | # as_fn_append VAR VALUE |
| 381 | # ---------------------- |
| 382 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 383 | # advantage of any shell optimizations that allow amortized linear growth over |
| 384 | # repeated appends, instead of the typical quadratic growth present in naive |
| 385 | # implementations. |
| 386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 387 | then : |
| 388 | eval 'as_fn_append () |
| 389 | { |
| 390 | eval $1+=\$2 |
| 391 | }' |
| 392 | else $as_nop |
| 393 | as_fn_append () |
| 394 | { |
| 395 | eval $1=\$$1\$2 |
| 396 | } |
| 397 | fi # as_fn_append |
| 398 | |
| 399 | # as_fn_arith ARG... |
| 400 | # ------------------ |
| 401 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 403 | # must be portable across $(()) and expr. |
| 404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 405 | then : |
| 406 | eval 'as_fn_arith () |
| 407 | { |
| 408 | as_val=$(( $* )) |
| 409 | }' |
| 410 | else $as_nop |
| 411 | as_fn_arith () |
| 412 | { |
| 413 | as_val=`expr "$@" || test $? -eq 1` |
| 414 | } |
| 415 | fi # as_fn_arith |
| 416 | |
| 417 | # as_fn_nop |
| 418 | # --------- |
| 419 | # Do nothing but, unlike ":", preserve the value of $?. |
| 420 | as_fn_nop () |
| 421 | { |
| 422 | return $? |
| 423 | } |
| 424 | as_nop=as_fn_nop |
| 425 | |
| 426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 427 | # ---------------------------------------- |
| 428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 429 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 430 | # script with STATUS, using 1 if that was 0. |
| 431 | as_fn_error () |
| 432 | { |
| 433 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 434 | if test "$4"; then |
| 435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 437 | fi |
| 438 | printf "%s\n" "$as_me: error: $2" >&2 |
| 439 | as_fn_exit $as_status |
| 440 | } # as_fn_error |
| 441 | |
| 442 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 443 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 444 | as_expr=expr |
| 445 | else |
| 446 | as_expr=false |
| 447 | fi |
| 448 | |
| 449 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 450 | as_basename=basename |
| 451 | else |
| 452 | as_basename=false |
| 453 | fi |
| 454 | |
| 455 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 456 | as_dirname=dirname |
| 457 | else |
| 458 | as_dirname=false |
| 459 | fi |
| 460 | |
| 461 | as_me=`$as_basename -- "$0" || |
| 462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 463 | X"$0" : 'X\(//\)$' \| \ |
| 464 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 465 | printf "%s\n" X/"$0" | |
| 466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 467 | s//\1/ |
| 468 | q |
| 469 | } |
| 470 | /^X\/\(\/\/\)$/{ |
| 471 | s//\1/ |
| 472 | q |
| 473 | } |
| 474 | /^X\/\(\/\).*/{ |
| 475 | s//\1/ |
| 476 | q |
| 477 | } |
| 478 | s/.*/./; q'` |
| 479 | |
| 480 | # Avoid depending upon Character Ranges. |
| 481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 484 | as_cr_digits='0123456789' |
| 485 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 486 | |
| 487 | |
| 488 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 489 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 490 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 491 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 492 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 493 | sed -n ' |
| 494 | p |
| 495 | /[$]LINENO/= |
| 496 | ' <$as_myself | |
| 497 | sed ' |
| 498 | s/[$]LINENO.*/&-/ |
| 499 | t lineno |
| 500 | b |
| 501 | :lineno |
| 502 | N |
| 503 | :loop |
| 504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 505 | t loop |
| 506 | s/-\n.*// |
| 507 | ' >$as_me.lineno && |
| 508 | chmod +x "$as_me.lineno" || |
| 509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 510 | |
| 511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 512 | # already done that, so ensure we don't try to do so again and fall |
| 513 | # in an infinite loop. This has already happened in practice. |
| 514 | _as_can_reexec=no; export _as_can_reexec |
| 515 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 516 | # (the dirname of $[0] is not the place where we might find the |
| 517 | # original and so on. Autoconf is especially sensitive to this). |
| 518 | . "./$as_me.lineno" |
| 519 | # Exit status is that of the last command. |
| 520 | exit |
| 521 | } |
| 522 | |
| 523 | |
| 524 | # Determine whether it's possible to make 'echo' print without a newline. |
| 525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 526 | # for compatibility with existing Makefiles. |
| 527 | ECHO_C= ECHO_N= ECHO_T= |
| 528 | case `echo -n x` in #((((( |
| 529 | -n*) |
| 530 | case `echo 'xy\c'` in |
| 531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 532 | xy) ECHO_C='\c';; |
| 533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 534 | ECHO_T=' ';; |
| 535 | esac;; |
| 536 | *) |
| 537 | ECHO_N='-n';; |
| 538 | esac |
| 539 | |
| 540 | # For backward compatibility with old third-party macros, we provide |
| 541 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 543 | as_echo='printf %s\n' |
| 544 | as_echo_n='printf %s' |
| 545 | |
| 546 | |
| 547 | rm -f conf$$ conf$$.exe conf$$.file |
| 548 | if test -d conf$$.dir; then |
| 549 | rm -f conf$$.dir/conf$$.file |
| 550 | else |
| 551 | rm -f conf$$.dir |
| 552 | mkdir conf$$.dir 2>/dev/null |
| 553 | fi |
| 554 | if (echo >conf$$.file) 2>/dev/null; then |
| 555 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 556 | as_ln_s='ln -s' |
| 557 | # ... but there are two gotchas: |
| 558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 560 | # In both cases, we have to default to `cp -pR'. |
| 561 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 562 | as_ln_s='cp -pR' |
| 563 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 564 | as_ln_s=ln |
| 565 | else |
| 566 | as_ln_s='cp -pR' |
| 567 | fi |
| 568 | else |
| 569 | as_ln_s='cp -pR' |
| 570 | fi |
| 571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 572 | rmdir conf$$.dir 2>/dev/null |
| 573 | |
| 574 | if mkdir -p . 2>/dev/null; then |
| 575 | as_mkdir_p='mkdir -p "$as_dir"' |
| 576 | else |
| 577 | test -d ./-p && rmdir ./-p |
| 578 | as_mkdir_p=false |
| 579 | fi |
| 580 | |
| 581 | as_test_x='test -x' |
| 582 | as_executable_p=as_fn_executable_p |
| 583 | |
| 584 | # Sed expression to map a string onto a valid CPP name. |
| 585 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 586 | |
| 587 | # Sed expression to map a string onto a valid variable name. |
| 588 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 589 | |
| 590 | |
| 591 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 592 | exec 6>&1 |
| 593 | |
| 594 | # Name of the host. |
| 595 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 596 | # so uname gets run too. |
| 597 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 598 | |
| 599 | # |
| 600 | # Initializations. |
| 601 | # |
| 602 | ac_default_prefix=/usr/local |
| 603 | ac_clean_files= |
| 604 | ac_config_libobj_dir=. |
| 605 | LIBOBJS= |
| 606 | cross_compiling=no |
| 607 | subdirs= |
| 608 | MFLAGS= |
| 609 | MAKEFLAGS= |
| 610 | |
| 611 | # Identity of this package. |
| 612 | PACKAGE_NAME='Infernal' |
| 613 | PACKAGE_TARNAME='infernal' |
| 614 | PACKAGE_VERSION='1.1.5' |
| 615 | PACKAGE_STRING='Infernal 1.1.5' |
| 616 | PACKAGE_BUGREPORT='[email protected]' |
| 617 | PACKAGE_URL='' |
| 618 | |
| 619 | # Factoring default headers for most tests. |
| 620 | ac_includes_default="\ |
| 621 | #include <stddef.h> |
| 622 | #ifdef HAVE_STDIO_H |
| 623 | # include <stdio.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_STDLIB_H |
| 626 | # include <stdlib.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STRING_H |
| 629 | # include <string.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_INTTYPES_H |
| 632 | # include <inttypes.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_STDINT_H |
| 635 | # include <stdint.h> |
| 636 | #endif |
| 637 | #ifdef HAVE_STRINGS_H |
| 638 | # include <strings.h> |
| 639 | #endif |
| 640 | #ifdef HAVE_SYS_TYPES_H |
| 641 | # include <sys/types.h> |
| 642 | #endif |
| 643 | #ifdef HAVE_SYS_STAT_H |
| 644 | # include <sys/stat.h> |
| 645 | #endif |
| 646 | #ifdef HAVE_UNISTD_H |
| 647 | # include <unistd.h> |
| 648 | #endif" |
| 649 | |
| 650 | ac_header_c_list= |
| 651 | ac_subst_vars='LTLIBOBJS |
| 652 | LIBOBJS |
| 653 | LIBGSL |
| 654 | HAVE_PYTHON3 |
| 655 | HAVE_GZIP |
| 656 | GROUPHMMERLIBS |
| 657 | AVX512_CFLAGS |
| 658 | AVX_CFLAGS |
| 659 | SSE4_CFLAGS |
| 660 | INFERNAL_IMPLDIR |
| 661 | IMPL_CHOICE |
| 662 | SSE_CFLAGS |
| 663 | VMX_CFLAGS |
| 664 | NEON_CFLAGS |
| 665 | HMMERIMPLLIB |
| 666 | PTHREAD_CFLAGS |
| 667 | PTHREAD_LIBS |
| 668 | PTHREAD_CXX |
| 669 | PTHREAD_CC |
| 670 | ax_pthread_config |
| 671 | EGREP |
| 672 | GREP |
| 673 | SED |
| 674 | PIC_CFLAGS |
| 675 | LN_S |
| 676 | AR |
| 677 | RANLIB |
| 678 | STRIP |
| 679 | INSTALL_DATA |
| 680 | INSTALL_SCRIPT |
| 681 | INSTALL_PROGRAM |
| 682 | CPP |
| 683 | MPI_BENCHMARKS |
| 684 | MPI_UTESTS |
| 685 | OBJEXT |
| 686 | EXEEXT |
| 687 | CPPFLAGS |
| 688 | LDFLAGS |
| 689 | CFLAGS |
| 690 | ac_ct_CC |
| 691 | CC |
| 692 | MPICC |
| 693 | host_os |
| 694 | host_vendor |
| 695 | host_cpu |
| 696 | host |
| 697 | build_os |
| 698 | build_vendor |
| 699 | build_cpu |
| 700 | build |
| 701 | EASEL_URL |
| 702 | EASEL_VERSION |
| 703 | EASEL_LICENSE |
| 704 | EASEL_COPYRIGHT |
| 705 | EASEL_DATE |
| 706 | HMMER_SADIR |
| 707 | HMMER_ESLDIR |
| 708 | HMMER_URL |
| 709 | HMMER_VERSION |
| 710 | HMMER_LICENSE |
| 711 | HMMER_COPYRIGHT |
| 712 | HMMER_DATE |
| 713 | INFERNAL_SADIR |
| 714 | INFERNAL_HMMERDIR |
| 715 | INFERNAL_ESLDIR |
| 716 | INFERNAL_URL |
| 717 | INFERNAL_VERSION |
| 718 | INFERNAL_LICENSE |
| 719 | INFERNAL_COPYRIGHT |
| 720 | INFERNAL_DATE |
| 721 | target_alias |
| 722 | host_alias |
| 723 | build_alias |
| 724 | LIBS |
| 725 | ECHO_T |
| 726 | ECHO_N |
| 727 | ECHO_C |
| 728 | DEFS |
| 729 | mandir |
| 730 | localedir |
| 731 | libdir |
| 732 | psdir |
| 733 | pdfdir |
| 734 | dvidir |
| 735 | htmldir |
| 736 | infodir |
| 737 | docdir |
| 738 | oldincludedir |
| 739 | includedir |
| 740 | runstatedir |
| 741 | localstatedir |
| 742 | sharedstatedir |
| 743 | sysconfdir |
| 744 | datadir |
| 745 | datarootdir |
| 746 | libexecdir |
| 747 | sbindir |
| 748 | bindir |
| 749 | program_transform_name |
| 750 | prefix |
| 751 | exec_prefix |
| 752 | PACKAGE_URL |
| 753 | PACKAGE_BUGREPORT |
| 754 | PACKAGE_STRING |
| 755 | PACKAGE_VERSION |
| 756 | PACKAGE_TARNAME |
| 757 | PACKAGE_NAME |
| 758 | PATH_SEPARATOR |
| 759 | SHELL' |
| 760 | ac_subst_files='' |
| 761 | ac_user_opts=' |
| 762 | enable_option_checking |
| 763 | enable_debugging |
| 764 | enable_gcov |
| 765 | enable_gprof |
| 766 | enable_asan |
| 767 | enable_tsan |
| 768 | enable_fortify |
| 769 | enable_neon |
| 770 | enable_sse |
| 771 | enable_vmx |
| 772 | enable_threads |
| 773 | enable_mpi |
| 774 | enable_pic |
| 775 | with_gsl |
| 776 | enable_largefile |
| 777 | ' |
| 778 | ac_precious_vars='build_alias |
| 779 | host_alias |
| 780 | target_alias |
| 781 | MPICC |
| 782 | CC |
| 783 | CFLAGS |
| 784 | LDFLAGS |
| 785 | LIBS |
| 786 | CPPFLAGS |
| 787 | CPP |
| 788 | PIC_CFLAGS' |
| 789 | |
| 790 | |
| 791 | # Initialize some variables set by options. |
| 792 | ac_init_help= |
| 793 | ac_init_version=false |
| 794 | ac_unrecognized_opts= |
| 795 | ac_unrecognized_sep= |
| 796 | # The variables have the same names as the options, with |
| 797 | # dashes changed to underlines. |
| 798 | cache_file=/dev/null |
| 799 | exec_prefix=NONE |
| 800 | no_create= |
| 801 | no_recursion= |
| 802 | prefix=NONE |
| 803 | program_prefix=NONE |
| 804 | program_suffix=NONE |
| 805 | program_transform_name=s,x,x, |
| 806 | silent= |
| 807 | site= |
| 808 | srcdir= |
| 809 | verbose= |
| 810 | x_includes=NONE |
| 811 | x_libraries=NONE |
| 812 | |
| 813 | # Installation directory options. |
| 814 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 815 | # and all the variables that are supposed to be based on exec_prefix |
| 816 | # by default will actually change. |
| 817 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 818 | # (The list follows the same order as the GNU Coding Standards.) |
| 819 | bindir='${exec_prefix}/bin' |
| 820 | sbindir='${exec_prefix}/sbin' |
| 821 | libexecdir='${exec_prefix}/libexec' |
| 822 | datarootdir='${prefix}/share' |
| 823 | datadir='${datarootdir}' |
| 824 | sysconfdir='${prefix}/etc' |
| 825 | sharedstatedir='${prefix}/com' |
| 826 | localstatedir='${prefix}/var' |
| 827 | runstatedir='${localstatedir}/run' |
| 828 | includedir='${prefix}/include' |
| 829 | oldincludedir='/usr/include' |
| 830 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 831 | infodir='${datarootdir}/info' |
| 832 | htmldir='${docdir}' |
| 833 | dvidir='${docdir}' |
| 834 | pdfdir='${docdir}' |
| 835 | psdir='${docdir}' |
| 836 | libdir='${exec_prefix}/lib' |
| 837 | localedir='${datarootdir}/locale' |
| 838 | mandir='${datarootdir}/man' |
| 839 | |
| 840 | ac_prev= |
| 841 | ac_dashdash= |
| 842 | for ac_option |
| 843 | do |
| 844 | # If the previous option needs an argument, assign it. |
| 845 | if test -n "$ac_prev"; then |
| 846 | eval $ac_prev=\$ac_option |
| 847 | ac_prev= |
| 848 | continue |
| 849 | fi |
| 850 | |
| 851 | case $ac_option in |
| 852 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 853 | *=) ac_optarg= ;; |
| 854 | *) ac_optarg=yes ;; |
| 855 | esac |
| 856 | |
| 857 | case $ac_dashdash$ac_option in |
| 858 | --) |
| 859 | ac_dashdash=yes ;; |
| 860 | |
| 861 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 862 | ac_prev=bindir ;; |
| 863 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 864 | bindir=$ac_optarg ;; |
| 865 | |
| 866 | -build | --build | --buil | --bui | --bu) |
| 867 | ac_prev=build_alias ;; |
| 868 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 869 | build_alias=$ac_optarg ;; |
| 870 | |
| 871 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 872 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 873 | ac_prev=cache_file ;; |
| 874 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 875 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 876 | cache_file=$ac_optarg ;; |
| 877 | |
| 878 | --config-cache | -C) |
| 879 | cache_file=config.cache ;; |
| 880 | |
| 881 | -datadir | --datadir | --datadi | --datad) |
| 882 | ac_prev=datadir ;; |
| 883 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 884 | datadir=$ac_optarg ;; |
| 885 | |
| 886 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 887 | | --dataroo | --dataro | --datar) |
| 888 | ac_prev=datarootdir ;; |
| 889 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 890 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 891 | datarootdir=$ac_optarg ;; |
| 892 | |
| 893 | -disable-* | --disable-*) |
| 894 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 895 | # Reject names that are not valid shell variable names. |
| 896 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 897 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 898 | ac_useropt_orig=$ac_useropt |
| 899 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 900 | case $ac_user_opts in |
| 901 | *" |
| 902 | "enable_$ac_useropt" |
| 903 | "*) ;; |
| 904 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 905 | ac_unrecognized_sep=', ';; |
| 906 | esac |
| 907 | eval enable_$ac_useropt=no ;; |
| 908 | |
| 909 | -docdir | --docdir | --docdi | --doc | --do) |
| 910 | ac_prev=docdir ;; |
| 911 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 912 | docdir=$ac_optarg ;; |
| 913 | |
| 914 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 915 | ac_prev=dvidir ;; |
| 916 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 917 | dvidir=$ac_optarg ;; |
| 918 | |
| 919 | -enable-* | --enable-*) |
| 920 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 921 | # Reject names that are not valid shell variable names. |
| 922 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 923 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 924 | ac_useropt_orig=$ac_useropt |
| 925 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 926 | case $ac_user_opts in |
| 927 | *" |
| 928 | "enable_$ac_useropt" |
| 929 | "*) ;; |
| 930 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 931 | ac_unrecognized_sep=', ';; |
| 932 | esac |
| 933 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 934 | |
| 935 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 936 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 937 | | --exec | --exe | --ex) |
| 938 | ac_prev=exec_prefix ;; |
| 939 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 940 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 941 | | --exec=* | --exe=* | --ex=*) |
| 942 | exec_prefix=$ac_optarg ;; |
| 943 | |
| 944 | -gas | --gas | --ga | --g) |
| 945 | # Obsolete; use --with-gas. |
| 946 | with_gas=yes ;; |
| 947 | |
| 948 | -help | --help | --hel | --he | -h) |
| 949 | ac_init_help=long ;; |
| 950 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 951 | ac_init_help=recursive ;; |
| 952 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 953 | ac_init_help=short ;; |
| 954 | |
| 955 | -host | --host | --hos | --ho) |
| 956 | ac_prev=host_alias ;; |
| 957 | -host=* | --host=* | --hos=* | --ho=*) |
| 958 | host_alias=$ac_optarg ;; |
| 959 | |
| 960 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 961 | ac_prev=htmldir ;; |
| 962 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 963 | | --ht=*) |
| 964 | htmldir=$ac_optarg ;; |
| 965 | |
| 966 | -includedir | --includedir | --includedi | --included | --include \ |
| 967 | | --includ | --inclu | --incl | --inc) |
| 968 | ac_prev=includedir ;; |
| 969 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 970 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 971 | includedir=$ac_optarg ;; |
| 972 | |
| 973 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 974 | ac_prev=infodir ;; |
| 975 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 976 | infodir=$ac_optarg ;; |
| 977 | |
| 978 | -libdir | --libdir | --libdi | --libd) |
| 979 | ac_prev=libdir ;; |
| 980 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 981 | libdir=$ac_optarg ;; |
| 982 | |
| 983 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 984 | | --libexe | --libex | --libe) |
| 985 | ac_prev=libexecdir ;; |
| 986 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 987 | | --libexe=* | --libex=* | --libe=*) |
| 988 | libexecdir=$ac_optarg ;; |
| 989 | |
| 990 | -localedir | --localedir | --localedi | --localed | --locale) |
| 991 | ac_prev=localedir ;; |
| 992 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 993 | localedir=$ac_optarg ;; |
| 994 | |
| 995 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 996 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 997 | ac_prev=localstatedir ;; |
| 998 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 999 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1000 | localstatedir=$ac_optarg ;; |
| 1001 | |
| 1002 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1003 | ac_prev=mandir ;; |
| 1004 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1005 | mandir=$ac_optarg ;; |
| 1006 | |
| 1007 | -nfp | --nfp | --nf) |
| 1008 | # Obsolete; use --without-fp. |
| 1009 | with_fp=no ;; |
| 1010 | |
| 1011 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1012 | | --no-cr | --no-c | -n) |
| 1013 | no_create=yes ;; |
| 1014 | |
| 1015 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1016 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1017 | no_recursion=yes ;; |
| 1018 | |
| 1019 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1020 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1021 | | --oldin | --oldi | --old | --ol | --o) |
| 1022 | ac_prev=oldincludedir ;; |
| 1023 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1024 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1025 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1026 | oldincludedir=$ac_optarg ;; |
| 1027 | |
| 1028 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1029 | ac_prev=prefix ;; |
| 1030 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1031 | prefix=$ac_optarg ;; |
| 1032 | |
| 1033 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1034 | | --program-pre | --program-pr | --program-p) |
| 1035 | ac_prev=program_prefix ;; |
| 1036 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1037 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1038 | program_prefix=$ac_optarg ;; |
| 1039 | |
| 1040 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1041 | | --program-suf | --program-su | --program-s) |
| 1042 | ac_prev=program_suffix ;; |
| 1043 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1044 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1045 | program_suffix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-transform-name | --program-transform-name \ |
| 1048 | | --program-transform-nam | --program-transform-na \ |
| 1049 | | --program-transform-n | --program-transform- \ |
| 1050 | | --program-transform | --program-transfor \ |
| 1051 | | --program-transfo | --program-transf \ |
| 1052 | | --program-trans | --program-tran \ |
| 1053 | | --progr-tra | --program-tr | --program-t) |
| 1054 | ac_prev=program_transform_name ;; |
| 1055 | -program-transform-name=* | --program-transform-name=* \ |
| 1056 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1057 | | --program-transform-n=* | --program-transform-=* \ |
| 1058 | | --program-transform=* | --program-transfor=* \ |
| 1059 | | --program-transfo=* | --program-transf=* \ |
| 1060 | | --program-trans=* | --program-tran=* \ |
| 1061 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1062 | program_transform_name=$ac_optarg ;; |
| 1063 | |
| 1064 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1065 | ac_prev=pdfdir ;; |
| 1066 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1067 | pdfdir=$ac_optarg ;; |
| 1068 | |
| 1069 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1070 | ac_prev=psdir ;; |
| 1071 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1072 | psdir=$ac_optarg ;; |
| 1073 | |
| 1074 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1075 | | -silent | --silent | --silen | --sile | --sil) |
| 1076 | silent=yes ;; |
| 1077 | |
| 1078 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1079 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1080 | | --run | --ru | --r) |
| 1081 | ac_prev=runstatedir ;; |
| 1082 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1083 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1084 | | --run=* | --ru=* | --r=*) |
| 1085 | runstatedir=$ac_optarg ;; |
| 1086 | |
| 1087 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1088 | ac_prev=sbindir ;; |
| 1089 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1090 | | --sbi=* | --sb=*) |
| 1091 | sbindir=$ac_optarg ;; |
| 1092 | |
| 1093 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1094 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1095 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1096 | | --sha | --sh) |
| 1097 | ac_prev=sharedstatedir ;; |
| 1098 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1099 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1100 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1101 | | --sha=* | --sh=*) |
| 1102 | sharedstatedir=$ac_optarg ;; |
| 1103 | |
| 1104 | -site | --site | --sit) |
| 1105 | ac_prev=site ;; |
| 1106 | -site=* | --site=* | --sit=*) |
| 1107 | site=$ac_optarg ;; |
| 1108 | |
| 1109 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1110 | ac_prev=srcdir ;; |
| 1111 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1112 | srcdir=$ac_optarg ;; |
| 1113 | |
| 1114 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1115 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1116 | ac_prev=sysconfdir ;; |
| 1117 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1118 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1119 | sysconfdir=$ac_optarg ;; |
| 1120 | |
| 1121 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1122 | ac_prev=target_alias ;; |
| 1123 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1124 | target_alias=$ac_optarg ;; |
| 1125 | |
| 1126 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1127 | verbose=yes ;; |
| 1128 | |
| 1129 | -version | --version | --versio | --versi | --vers | -V) |
| 1130 | ac_init_version=: ;; |
| 1131 | |
| 1132 | -with-* | --with-*) |
| 1133 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1134 | # Reject names that are not valid shell variable names. |
| 1135 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1136 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1137 | ac_useropt_orig=$ac_useropt |
| 1138 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1139 | case $ac_user_opts in |
| 1140 | *" |
| 1141 | "with_$ac_useropt" |
| 1142 | "*) ;; |
| 1143 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1144 | ac_unrecognized_sep=', ';; |
| 1145 | esac |
| 1146 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1147 | |
| 1148 | -without-* | --without-*) |
| 1149 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1150 | # Reject names that are not valid shell variable names. |
| 1151 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1152 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1153 | ac_useropt_orig=$ac_useropt |
| 1154 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1155 | case $ac_user_opts in |
| 1156 | *" |
| 1157 | "with_$ac_useropt" |
| 1158 | "*) ;; |
| 1159 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1160 | ac_unrecognized_sep=', ';; |
| 1161 | esac |
| 1162 | eval with_$ac_useropt=no ;; |
| 1163 | |
| 1164 | --x) |
| 1165 | # Obsolete; use --with-x. |
| 1166 | with_x=yes ;; |
| 1167 | |
| 1168 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1169 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1170 | ac_prev=x_includes ;; |
| 1171 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1172 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1173 | x_includes=$ac_optarg ;; |
| 1174 | |
| 1175 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1176 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1177 | ac_prev=x_libraries ;; |
| 1178 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1179 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1180 | x_libraries=$ac_optarg ;; |
| 1181 | |
| 1182 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1183 | Try \`$0 --help' for more information" |
| 1184 | ;; |
| 1185 | |
| 1186 | *=*) |
| 1187 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1188 | # Reject names that are not valid shell variable names. |
| 1189 | case $ac_envvar in #( |
| 1190 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1191 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1192 | esac |
| 1193 | eval $ac_envvar=\$ac_optarg |
| 1194 | export $ac_envvar ;; |
| 1195 | |
| 1196 | *) |
| 1197 | # FIXME: should be removed in autoconf 3.0. |
| 1198 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1199 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1200 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1201 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1202 | ;; |
| 1203 | |
| 1204 | esac |
| 1205 | done |
| 1206 | |
| 1207 | if test -n "$ac_prev"; then |
| 1208 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1209 | as_fn_error $? "missing argument to $ac_option" |
| 1210 | fi |
| 1211 | |
| 1212 | if test -n "$ac_unrecognized_opts"; then |
| 1213 | case $enable_option_checking in |
| 1214 | no) ;; |
| 1215 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1216 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1217 | esac |
| 1218 | fi |
| 1219 | |
| 1220 | # Check all directory arguments for consistency. |
| 1221 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1222 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1223 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1224 | libdir localedir mandir runstatedir |
| 1225 | do |
| 1226 | eval ac_val=\$$ac_var |
| 1227 | # Remove trailing slashes. |
| 1228 | case $ac_val in |
| 1229 | */ ) |
| 1230 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1231 | eval $ac_var=\$ac_val;; |
| 1232 | esac |
| 1233 | # Be sure to have absolute directory names. |
| 1234 | case $ac_val in |
| 1235 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1236 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1237 | esac |
| 1238 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1239 | done |
| 1240 | |
| 1241 | # There might be people who depend on the old broken behavior: `$host' |
| 1242 | # used to hold the argument of --host etc. |
| 1243 | # FIXME: To remove some day. |
| 1244 | build=$build_alias |
| 1245 | host=$host_alias |
| 1246 | target=$target_alias |
| 1247 | |
| 1248 | # FIXME: To remove some day. |
| 1249 | if test "x$host_alias" != x; then |
| 1250 | if test "x$build_alias" = x; then |
| 1251 | cross_compiling=maybe |
| 1252 | elif test "x$build_alias" != "x$host_alias"; then |
| 1253 | cross_compiling=yes |
| 1254 | fi |
| 1255 | fi |
| 1256 | |
| 1257 | ac_tool_prefix= |
| 1258 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1259 | |
| 1260 | test "$silent" = yes && exec 6>/dev/null |
| 1261 | |
| 1262 | |
| 1263 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1264 | ac_ls_di=`ls -di .` && |
| 1265 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1266 | as_fn_error $? "working directory cannot be determined" |
| 1267 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1268 | as_fn_error $? "pwd does not report name of working directory" |
| 1269 | |
| 1270 | |
| 1271 | # Find the source files, if location was not specified. |
| 1272 | if test -z "$srcdir"; then |
| 1273 | ac_srcdir_defaulted=yes |
| 1274 | # Try the directory containing this script, then the parent directory. |
| 1275 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1276 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1277 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1278 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1279 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1280 | printf "%s\n" X"$as_myself" | |
| 1281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1282 | s//\1/ |
| 1283 | q |
| 1284 | } |
| 1285 | /^X\(\/\/\)[^/].*/{ |
| 1286 | s//\1/ |
| 1287 | q |
| 1288 | } |
| 1289 | /^X\(\/\/\)$/{ |
| 1290 | s//\1/ |
| 1291 | q |
| 1292 | } |
| 1293 | /^X\(\/\).*/{ |
| 1294 | s//\1/ |
| 1295 | q |
| 1296 | } |
| 1297 | s/.*/./; q'` |
| 1298 | srcdir=$ac_confdir |
| 1299 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1300 | srcdir=.. |
| 1301 | fi |
| 1302 | else |
| 1303 | ac_srcdir_defaulted=no |
| 1304 | fi |
| 1305 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1306 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1307 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1308 | fi |
| 1309 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1310 | ac_abs_confdir=`( |
| 1311 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1312 | pwd)` |
| 1313 | # When building in place, set srcdir=. |
| 1314 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1315 | srcdir=. |
| 1316 | fi |
| 1317 | # Remove unnecessary trailing slashes from srcdir. |
| 1318 | # Double slashes in file names in object file debugging info |
| 1319 | # mess up M-x gdb in Emacs. |
| 1320 | case $srcdir in |
| 1321 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1322 | esac |
| 1323 | for ac_var in $ac_precious_vars; do |
| 1324 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1325 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1326 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1327 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1328 | done |
| 1329 | |
| 1330 | # |
| 1331 | # Report the --help message. |
| 1332 | # |
| 1333 | if test "$ac_init_help" = "long"; then |
| 1334 | # Omit some internal or obsolete options to make the list less imposing. |
| 1335 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1336 | cat <<_ACEOF |
| 1337 | \`configure' configures Infernal 1.1.5 to adapt to many kinds of systems. |
| 1338 | |
| 1339 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1340 | |
| 1341 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1342 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1343 | |
| 1344 | Defaults for the options are specified in brackets. |
| 1345 | |
| 1346 | Configuration: |
| 1347 | -h, --help display this help and exit |
| 1348 | --help=short display options specific to this package |
| 1349 | --help=recursive display the short help of all the included packages |
| 1350 | -V, --version display version information and exit |
| 1351 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1352 | --cache-file=FILE cache test results in FILE [disabled] |
| 1353 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1354 | -n, --no-create do not create output files |
| 1355 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1356 | |
| 1357 | Installation directories: |
| 1358 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1359 | [$ac_default_prefix] |
| 1360 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1361 | [PREFIX] |
| 1362 | |
| 1363 | By default, \`make install' will install all the files in |
| 1364 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1365 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1366 | for instance \`--prefix=\$HOME'. |
| 1367 | |
| 1368 | For better control, use the options below. |
| 1369 | |
| 1370 | Fine tuning of the installation directories: |
| 1371 | --bindir=DIR user executables [EPREFIX/bin] |
| 1372 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1373 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1374 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1375 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1376 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1377 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1378 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1379 | --includedir=DIR C header files [PREFIX/include] |
| 1380 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1381 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1382 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1383 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1384 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1385 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1386 | --docdir=DIR documentation root [DATAROOTDIR/doc/infernal] |
| 1387 | --htmldir=DIR html documentation [DOCDIR] |
| 1388 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1389 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1390 | --psdir=DIR ps documentation [DOCDIR] |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | cat <<\_ACEOF |
| 1394 | |
| 1395 | System types: |
| 1396 | --build=BUILD configure for building on BUILD [guessed] |
| 1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1398 | _ACEOF |
| 1399 | fi |
| 1400 | |
| 1401 | if test -n "$ac_init_help"; then |
| 1402 | case $ac_init_help in |
| 1403 | short | recursive ) echo "Configuration of Infernal 1.1.5:";; |
| 1404 | esac |
| 1405 | cat <<\_ACEOF |
| 1406 | |
| 1407 | Optional Features: |
| 1408 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1409 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1410 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1411 | |
| 1412 | --enable-debugging include debugging code |
| 1413 | --enable-debugging=x also set diagnostics verbosity level to <x> (1-3) |
| 1414 | |
| 1415 | --enable-gcov compile for code coverage testing |
| 1416 | --enable-gprof compile for gcc code profiling |
| 1417 | --enable-asan compile with address sanitizer |
| 1418 | --enable-tsan compile with thread sanitizer |
| 1419 | --enable-fortify=x compile with -D_FORTIFY_SOURCE=x |
| 1420 | --enable-neon enable our ARM Neon vector code |
| 1421 | --enable-sse enable our SSE vector code |
| 1422 | --enable-vmx enable our Altivec/VMX vector code |
| 1423 | --enable-threads enable POSIX threads parallelization |
| 1424 | --enable-mpi enable MPI parallelization |
| 1425 | --enable-pic enable position-independent code |
| 1426 | --disable-pic compile PIC objects [default=enabled for shared |
| 1427 | builds on supported platforms] |
| 1428 | --disable-largefile omit support for large files |
| 1429 | |
| 1430 | Optional Packages: |
| 1431 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1432 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1433 | --with-gsl use the GSL, GNU Scientific Library |
| 1434 | |
| 1435 | Some influential environment variables: |
| 1436 | MPICC MPI C compiler command |
| 1437 | CC C compiler command |
| 1438 | CFLAGS C compiler flags |
| 1439 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1440 | nonstandard directory <lib dir> |
| 1441 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1442 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1443 | you have headers in a nonstandard directory <include dir> |
| 1444 | CPP C preprocessor |
| 1445 | PIC_CFLAGS compiler flags for PIC code |
| 1446 | |
| 1447 | Use these variables to override the choices made by `configure' or to help |
| 1448 | it to find libraries and programs with nonstandard names/locations. |
| 1449 | |
| 1450 | Report bugs to <[email protected]>. |
| 1451 | _ACEOF |
| 1452 | ac_status=$? |
| 1453 | fi |
| 1454 | |
| 1455 | if test "$ac_init_help" = "recursive"; then |
| 1456 | # If there are subdirs, report their specific --help. |
| 1457 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1458 | test -d "$ac_dir" || |
| 1459 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1460 | continue |
| 1461 | ac_builddir=. |
| 1462 | |
| 1463 | case "$ac_dir" in |
| 1464 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1465 | *) |
| 1466 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1467 | # A ".." for each directory in $ac_dir_suffix. |
| 1468 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1469 | case $ac_top_builddir_sub in |
| 1470 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1471 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1472 | esac ;; |
| 1473 | esac |
| 1474 | ac_abs_top_builddir=$ac_pwd |
| 1475 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1476 | # for backward compatibility: |
| 1477 | ac_top_builddir=$ac_top_build_prefix |
| 1478 | |
| 1479 | case $srcdir in |
| 1480 | .) # We are building in place. |
| 1481 | ac_srcdir=. |
| 1482 | ac_top_srcdir=$ac_top_builddir_sub |
| 1483 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1484 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1485 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1486 | ac_top_srcdir=$srcdir |
| 1487 | ac_abs_top_srcdir=$srcdir ;; |
| 1488 | *) # Relative name. |
| 1489 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1490 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1491 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1492 | esac |
| 1493 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1494 | |
| 1495 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1496 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1497 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1498 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1499 | echo && |
| 1500 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1501 | elif test -f "$ac_srcdir/configure"; then |
| 1502 | echo && |
| 1503 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1504 | else |
| 1505 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1506 | fi || ac_status=$? |
| 1507 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1508 | done |
| 1509 | fi |
| 1510 | |
| 1511 | test -n "$ac_init_help" && exit $ac_status |
| 1512 | if $ac_init_version; then |
| 1513 | cat <<\_ACEOF |
| 1514 | Infernal configure 1.1.5 |
| 1515 | generated by GNU Autoconf 2.71 |
| 1516 | |
| 1517 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 1518 | This configure script is free software; the Free Software Foundation |
| 1519 | gives unlimited permission to copy, distribute and modify it. |
| 1520 | _ACEOF |
| 1521 | exit |
| 1522 | fi |
| 1523 | |
| 1524 | ## ------------------------ ## |
| 1525 | ## Autoconf initialization. ## |
| 1526 | ## ------------------------ ## |
| 1527 | |
| 1528 | # ac_fn_c_try_compile LINENO |
| 1529 | # -------------------------- |
| 1530 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1531 | ac_fn_c_try_compile () |
| 1532 | { |
| 1533 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1534 | rm -f conftest.$ac_objext conftest.beam |
| 1535 | if { { ac_try="$ac_compile" |
| 1536 | case "(($ac_try" in |
| 1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1538 | *) ac_try_echo=$ac_try;; |
| 1539 | esac |
| 1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1541 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1542 | (eval "$ac_compile") 2>conftest.err |
| 1543 | ac_status=$? |
| 1544 | if test -s conftest.err; then |
| 1545 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1546 | cat conftest.er1 >&5 |
| 1547 | mv -f conftest.er1 conftest.err |
| 1548 | fi |
| 1549 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1550 | test $ac_status = 0; } && { |
| 1551 | test -z "$ac_c_werror_flag" || |
| 1552 | test ! -s conftest.err |
| 1553 | } && test -s conftest.$ac_objext |
| 1554 | then : |
| 1555 | ac_retval=0 |
| 1556 | else $as_nop |
| 1557 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1559 | |
| 1560 | ac_retval=1 |
| 1561 | fi |
| 1562 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1563 | as_fn_set_status $ac_retval |
| 1564 | |
| 1565 | } # ac_fn_c_try_compile |
| 1566 | |
| 1567 | # ac_fn_c_try_link LINENO |
| 1568 | # ----------------------- |
| 1569 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1570 | ac_fn_c_try_link () |
| 1571 | { |
| 1572 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1573 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1574 | if { { ac_try="$ac_link" |
| 1575 | case "(($ac_try" in |
| 1576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1577 | *) ac_try_echo=$ac_try;; |
| 1578 | esac |
| 1579 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1580 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1581 | (eval "$ac_link") 2>conftest.err |
| 1582 | ac_status=$? |
| 1583 | if test -s conftest.err; then |
| 1584 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1585 | cat conftest.er1 >&5 |
| 1586 | mv -f conftest.er1 conftest.err |
| 1587 | fi |
| 1588 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1589 | test $ac_status = 0; } && { |
| 1590 | test -z "$ac_c_werror_flag" || |
| 1591 | test ! -s conftest.err |
| 1592 | } && test -s conftest$ac_exeext && { |
| 1593 | test "$cross_compiling" = yes || |
| 1594 | test -x conftest$ac_exeext |
| 1595 | } |
| 1596 | then : |
| 1597 | ac_retval=0 |
| 1598 | else $as_nop |
| 1599 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1601 | |
| 1602 | ac_retval=1 |
| 1603 | fi |
| 1604 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1605 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1606 | # interfere with the next link command; also delete a directory that is |
| 1607 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1608 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1610 | as_fn_set_status $ac_retval |
| 1611 | |
| 1612 | } # ac_fn_c_try_link |
| 1613 | |
| 1614 | # ac_fn_c_try_cpp LINENO |
| 1615 | # ---------------------- |
| 1616 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1617 | ac_fn_c_try_cpp () |
| 1618 | { |
| 1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1620 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1621 | case "(($ac_try" in |
| 1622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1623 | *) ac_try_echo=$ac_try;; |
| 1624 | esac |
| 1625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1626 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1628 | ac_status=$? |
| 1629 | if test -s conftest.err; then |
| 1630 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1631 | cat conftest.er1 >&5 |
| 1632 | mv -f conftest.er1 conftest.err |
| 1633 | fi |
| 1634 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1635 | test $ac_status = 0; } > conftest.i && { |
| 1636 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1637 | test ! -s conftest.err |
| 1638 | } |
| 1639 | then : |
| 1640 | ac_retval=0 |
| 1641 | else $as_nop |
| 1642 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1644 | |
| 1645 | ac_retval=1 |
| 1646 | fi |
| 1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1648 | as_fn_set_status $ac_retval |
| 1649 | |
| 1650 | } # ac_fn_c_try_cpp |
| 1651 | |
| 1652 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1653 | # ------------------------------------------------------- |
| 1654 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1655 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1656 | ac_fn_c_check_header_compile () |
| 1657 | { |
| 1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1660 | printf %s "checking for $2... " >&6; } |
| 1661 | if eval test \${$3+y} |
| 1662 | then : |
| 1663 | printf %s "(cached) " >&6 |
| 1664 | else $as_nop |
| 1665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1666 | /* end confdefs.h. */ |
| 1667 | $4 |
| 1668 | #include <$2> |
| 1669 | _ACEOF |
| 1670 | if ac_fn_c_try_compile "$LINENO" |
| 1671 | then : |
| 1672 | eval "$3=yes" |
| 1673 | else $as_nop |
| 1674 | eval "$3=no" |
| 1675 | fi |
| 1676 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1677 | fi |
| 1678 | eval ac_res=\$$3 |
| 1679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1680 | printf "%s\n" "$ac_res" >&6; } |
| 1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1682 | |
| 1683 | } # ac_fn_c_check_header_compile |
| 1684 | |
| 1685 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1686 | # ------------------------------------ |
| 1687 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1688 | # accordingly. |
| 1689 | ac_fn_c_find_uintX_t () |
| 1690 | { |
| 1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1693 | printf %s "checking for uint$2_t... " >&6; } |
| 1694 | if eval test \${$3+y} |
| 1695 | then : |
| 1696 | printf %s "(cached) " >&6 |
| 1697 | else $as_nop |
| 1698 | eval "$3=no" |
| 1699 | # Order is important - never check a type that is potentially smaller |
| 1700 | # than half of the expected target width. |
| 1701 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1702 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1704 | /* end confdefs.h. */ |
| 1705 | $ac_includes_default |
| 1706 | int |
| 1707 | main (void) |
| 1708 | { |
| 1709 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1710 | test_array [0] = 0; |
| 1711 | return test_array [0]; |
| 1712 | |
| 1713 | ; |
| 1714 | return 0; |
| 1715 | } |
| 1716 | _ACEOF |
| 1717 | if ac_fn_c_try_compile "$LINENO" |
| 1718 | then : |
| 1719 | case $ac_type in #( |
| 1720 | uint$2_t) : |
| 1721 | eval "$3=yes" ;; #( |
| 1722 | *) : |
| 1723 | eval "$3=\$ac_type" ;; |
| 1724 | esac |
| 1725 | fi |
| 1726 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1727 | if eval test \"x\$"$3"\" = x"no" |
| 1728 | then : |
| 1729 | |
| 1730 | else $as_nop |
| 1731 | break |
| 1732 | fi |
| 1733 | done |
| 1734 | fi |
| 1735 | eval ac_res=\$$3 |
| 1736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1737 | printf "%s\n" "$ac_res" >&6; } |
| 1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1739 | |
| 1740 | } # ac_fn_c_find_uintX_t |
| 1741 | |
| 1742 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1743 | # ------------------------------------------- |
| 1744 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1745 | # variable VAR accordingly. |
| 1746 | ac_fn_c_check_type () |
| 1747 | { |
| 1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1750 | printf %s "checking for $2... " >&6; } |
| 1751 | if eval test \${$3+y} |
| 1752 | then : |
| 1753 | printf %s "(cached) " >&6 |
| 1754 | else $as_nop |
| 1755 | eval "$3=no" |
| 1756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1757 | /* end confdefs.h. */ |
| 1758 | $4 |
| 1759 | int |
| 1760 | main (void) |
| 1761 | { |
| 1762 | if (sizeof ($2)) |
| 1763 | return 0; |
| 1764 | ; |
| 1765 | return 0; |
| 1766 | } |
| 1767 | _ACEOF |
| 1768 | if ac_fn_c_try_compile "$LINENO" |
| 1769 | then : |
| 1770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1771 | /* end confdefs.h. */ |
| 1772 | $4 |
| 1773 | int |
| 1774 | main (void) |
| 1775 | { |
| 1776 | if (sizeof (($2))) |
| 1777 | return 0; |
| 1778 | ; |
| 1779 | return 0; |
| 1780 | } |
| 1781 | _ACEOF |
| 1782 | if ac_fn_c_try_compile "$LINENO" |
| 1783 | then : |
| 1784 | |
| 1785 | else $as_nop |
| 1786 | eval "$3=yes" |
| 1787 | fi |
| 1788 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1789 | fi |
| 1790 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1791 | fi |
| 1792 | eval ac_res=\$$3 |
| 1793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1794 | printf "%s\n" "$ac_res" >&6; } |
| 1795 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1796 | |
| 1797 | } # ac_fn_c_check_type |
| 1798 | |
| 1799 | # ac_fn_c_try_run LINENO |
| 1800 | # ---------------------- |
| 1801 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1802 | # executables *can* be run. |
| 1803 | ac_fn_c_try_run () |
| 1804 | { |
| 1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1806 | if { { ac_try="$ac_link" |
| 1807 | case "(($ac_try" in |
| 1808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1809 | *) ac_try_echo=$ac_try;; |
| 1810 | esac |
| 1811 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1812 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1813 | (eval "$ac_link") 2>&5 |
| 1814 | ac_status=$? |
| 1815 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1816 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1817 | { { case "(($ac_try" in |
| 1818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1819 | *) ac_try_echo=$ac_try;; |
| 1820 | esac |
| 1821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1822 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1823 | (eval "$ac_try") 2>&5 |
| 1824 | ac_status=$? |
| 1825 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1826 | test $ac_status = 0; }; } |
| 1827 | then : |
| 1828 | ac_retval=0 |
| 1829 | else $as_nop |
| 1830 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1831 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1833 | |
| 1834 | ac_retval=$ac_status |
| 1835 | fi |
| 1836 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1837 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1838 | as_fn_set_status $ac_retval |
| 1839 | |
| 1840 | } # ac_fn_c_try_run |
| 1841 | |
| 1842 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1843 | # ---------------------------------- |
| 1844 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1845 | ac_fn_c_check_func () |
| 1846 | { |
| 1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1849 | printf %s "checking for $2... " >&6; } |
| 1850 | if eval test \${$3+y} |
| 1851 | then : |
| 1852 | printf %s "(cached) " >&6 |
| 1853 | else $as_nop |
| 1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1855 | /* end confdefs.h. */ |
| 1856 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1858 | #define $2 innocuous_$2 |
| 1859 | |
| 1860 | /* System header to define __stub macros and hopefully few prototypes, |
| 1861 | which can conflict with char $2 (); below. */ |
| 1862 | |
| 1863 | #include <limits.h> |
| 1864 | #undef $2 |
| 1865 | |
| 1866 | /* Override any GCC internal prototype to avoid an error. |
| 1867 | Use char because int might match the return type of a GCC |
| 1868 | builtin and then its argument prototype would still apply. */ |
| 1869 | #ifdef __cplusplus |
| 1870 | extern "C" |
| 1871 | #endif |
| 1872 | char $2 (); |
| 1873 | /* The GNU C library defines this for functions which it implements |
| 1874 | to always fail with ENOSYS. Some functions are actually named |
| 1875 | something starting with __ and the normal name is an alias. */ |
| 1876 | #if defined __stub_$2 || defined __stub___$2 |
| 1877 | choke me |
| 1878 | #endif |
| 1879 | |
| 1880 | int |
| 1881 | main (void) |
| 1882 | { |
| 1883 | return $2 (); |
| 1884 | ; |
| 1885 | return 0; |
| 1886 | } |
| 1887 | _ACEOF |
| 1888 | if ac_fn_c_try_link "$LINENO" |
| 1889 | then : |
| 1890 | eval "$3=yes" |
| 1891 | else $as_nop |
| 1892 | eval "$3=no" |
| 1893 | fi |
| 1894 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1895 | conftest$ac_exeext conftest.$ac_ext |
| 1896 | fi |
| 1897 | eval ac_res=\$$3 |
| 1898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1899 | printf "%s\n" "$ac_res" >&6; } |
| 1900 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1901 | |
| 1902 | } # ac_fn_c_check_func |
| 1903 | ac_configure_args_raw= |
| 1904 | for ac_arg |
| 1905 | do |
| 1906 | case $ac_arg in |
| 1907 | *\'*) |
| 1908 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1909 | esac |
| 1910 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1911 | done |
| 1912 | |
| 1913 | case $ac_configure_args_raw in |
| 1914 | *$as_nl*) |
| 1915 | ac_safe_unquote= ;; |
| 1916 | *) |
| 1917 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1918 | ac_unsafe_a="$ac_unsafe_z#~" |
| 1919 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1920 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1921 | esac |
| 1922 | |
| 1923 | cat >config.log <<_ACEOF |
| 1924 | This file contains any messages produced by compilers while |
| 1925 | running configure, to aid debugging if configure makes a mistake. |
| 1926 | |
| 1927 | It was created by Infernal $as_me 1.1.5, which was |
| 1928 | generated by GNU Autoconf 2.71. Invocation command line was |
| 1929 | |
| 1930 | $ $0$ac_configure_args_raw |
| 1931 | |
| 1932 | _ACEOF |
| 1933 | exec 5>>config.log |
| 1934 | { |
| 1935 | cat <<_ASUNAME |
| 1936 | ## --------- ## |
| 1937 | ## Platform. ## |
| 1938 | ## --------- ## |
| 1939 | |
| 1940 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1941 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1942 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1943 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1944 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1945 | |
| 1946 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1947 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1948 | |
| 1949 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1950 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1951 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1952 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1953 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1954 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1955 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1956 | |
| 1957 | _ASUNAME |
| 1958 | |
| 1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1960 | for as_dir in $PATH |
| 1961 | do |
| 1962 | IFS=$as_save_IFS |
| 1963 | case $as_dir in #((( |
| 1964 | '') as_dir=./ ;; |
| 1965 | */) ;; |
| 1966 | *) as_dir=$as_dir/ ;; |
| 1967 | esac |
| 1968 | printf "%s\n" "PATH: $as_dir" |
| 1969 | done |
| 1970 | IFS=$as_save_IFS |
| 1971 | |
| 1972 | } >&5 |
| 1973 | |
| 1974 | cat >&5 <<_ACEOF |
| 1975 | |
| 1976 | |
| 1977 | ## ----------- ## |
| 1978 | ## Core tests. ## |
| 1979 | ## ----------- ## |
| 1980 | |
| 1981 | _ACEOF |
| 1982 | |
| 1983 | |
| 1984 | # Keep a trace of the command line. |
| 1985 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1986 | # Strip out --silent because we don't want to record it for future runs. |
| 1987 | # Also quote any args containing shell meta-characters. |
| 1988 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1989 | ac_configure_args= |
| 1990 | ac_configure_args0= |
| 1991 | ac_configure_args1= |
| 1992 | ac_must_keep_next=false |
| 1993 | for ac_pass in 1 2 |
| 1994 | do |
| 1995 | for ac_arg |
| 1996 | do |
| 1997 | case $ac_arg in |
| 1998 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2000 | | -silent | --silent | --silen | --sile | --sil) |
| 2001 | continue ;; |
| 2002 | *\'*) |
| 2003 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2004 | esac |
| 2005 | case $ac_pass in |
| 2006 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2007 | 2) |
| 2008 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2009 | if test $ac_must_keep_next = true; then |
| 2010 | ac_must_keep_next=false # Got value, back to normal. |
| 2011 | else |
| 2012 | case $ac_arg in |
| 2013 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2014 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2015 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2016 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2017 | case "$ac_configure_args0 " in |
| 2018 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2019 | esac |
| 2020 | ;; |
| 2021 | -* ) ac_must_keep_next=true ;; |
| 2022 | esac |
| 2023 | fi |
| 2024 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2025 | ;; |
| 2026 | esac |
| 2027 | done |
| 2028 | done |
| 2029 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2030 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2031 | |
| 2032 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2033 | # config.log. We remove comments because anyway the quotes in there |
| 2034 | # would cause problems or look ugly. |
| 2035 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2036 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2037 | trap 'exit_status=$? |
| 2038 | # Sanitize IFS. |
| 2039 | IFS=" "" $as_nl" |
| 2040 | # Save into config.log some information that might help in debugging. |
| 2041 | { |
| 2042 | echo |
| 2043 | |
| 2044 | printf "%s\n" "## ---------------- ## |
| 2045 | ## Cache variables. ## |
| 2046 | ## ---------------- ##" |
| 2047 | echo |
| 2048 | # The following way of writing the cache mishandles newlines in values, |
| 2049 | ( |
| 2050 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2051 | eval ac_val=\$$ac_var |
| 2052 | case $ac_val in #( |
| 2053 | *${as_nl}*) |
| 2054 | case $ac_var in #( |
| 2055 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2056 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2057 | esac |
| 2058 | case $ac_var in #( |
| 2059 | _ | IFS | as_nl) ;; #( |
| 2060 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2061 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2062 | esac ;; |
| 2063 | esac |
| 2064 | done |
| 2065 | (set) 2>&1 | |
| 2066 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2067 | *${as_nl}ac_space=\ *) |
| 2068 | sed -n \ |
| 2069 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2070 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2071 | ;; #( |
| 2072 | *) |
| 2073 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2074 | ;; |
| 2075 | esac | |
| 2076 | sort |
| 2077 | ) |
| 2078 | echo |
| 2079 | |
| 2080 | printf "%s\n" "## ----------------- ## |
| 2081 | ## Output variables. ## |
| 2082 | ## ----------------- ##" |
| 2083 | echo |
| 2084 | for ac_var in $ac_subst_vars |
| 2085 | do |
| 2086 | eval ac_val=\$$ac_var |
| 2087 | case $ac_val in |
| 2088 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2089 | esac |
| 2090 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2091 | done | sort |
| 2092 | echo |
| 2093 | |
| 2094 | if test -n "$ac_subst_files"; then |
| 2095 | printf "%s\n" "## ------------------- ## |
| 2096 | ## File substitutions. ## |
| 2097 | ## ------------------- ##" |
| 2098 | echo |
| 2099 | for ac_var in $ac_subst_files |
| 2100 | do |
| 2101 | eval ac_val=\$$ac_var |
| 2102 | case $ac_val in |
| 2103 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2104 | esac |
| 2105 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2106 | done | sort |
| 2107 | echo |
| 2108 | fi |
| 2109 | |
| 2110 | if test -s confdefs.h; then |
| 2111 | printf "%s\n" "## ----------- ## |
| 2112 | ## confdefs.h. ## |
| 2113 | ## ----------- ##" |
| 2114 | echo |
| 2115 | cat confdefs.h |
| 2116 | echo |
| 2117 | fi |
| 2118 | test "$ac_signal" != 0 && |
| 2119 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2120 | printf "%s\n" "$as_me: exit $exit_status" |
| 2121 | } >&5 |
| 2122 | rm -f core *.core core.conftest.* && |
| 2123 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2124 | exit $exit_status |
| 2125 | ' 0 |
| 2126 | for ac_signal in 1 2 13 15; do |
| 2127 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2128 | done |
| 2129 | ac_signal=0 |
| 2130 | |
| 2131 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2132 | rm -f -r conftest* confdefs.h |
| 2133 | |
| 2134 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2135 | |
| 2136 | # Predefined preprocessor variables. |
| 2137 | |
| 2138 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2139 | |
| 2140 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2141 | |
| 2142 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2143 | |
| 2144 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2145 | |
| 2146 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2147 | |
| 2148 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2149 | |
| 2150 | |
| 2151 | # Let the site file select an alternate cache file if it wants to. |
| 2152 | # Prefer an explicitly selected file to automatically selected ones. |
| 2153 | if test -n "$CONFIG_SITE"; then |
| 2154 | ac_site_files="$CONFIG_SITE" |
| 2155 | elif test "x$prefix" != xNONE; then |
| 2156 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2157 | else |
| 2158 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2159 | fi |
| 2160 | |
| 2161 | for ac_site_file in $ac_site_files |
| 2162 | do |
| 2163 | case $ac_site_file in #( |
| 2164 | */*) : |
| 2165 | ;; #( |
| 2166 | *) : |
| 2167 | ac_site_file=./$ac_site_file ;; |
| 2168 | esac |
| 2169 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2171 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2172 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2173 | . "$ac_site_file" \ |
| 2174 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2175 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2176 | as_fn_error $? "failed to load site script $ac_site_file |
| 2177 | See \`config.log' for more details" "$LINENO" 5; } |
| 2178 | fi |
| 2179 | done |
| 2180 | |
| 2181 | if test -r "$cache_file"; then |
| 2182 | # Some versions of bash will fail to source /dev/null (special files |
| 2183 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2184 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2186 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2187 | case $cache_file in |
| 2188 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2189 | *) . "./$cache_file";; |
| 2190 | esac |
| 2191 | fi |
| 2192 | else |
| 2193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2194 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2195 | >$cache_file |
| 2196 | fi |
| 2197 | |
| 2198 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2199 | ac_c_conftest_c89_globals=' |
| 2200 | /* Does the compiler advertise C89 conformance? |
| 2201 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2202 | while being otherwise adequately conformant. */ |
| 2203 | #if !defined __STDC__ |
| 2204 | # error "Compiler does not advertise C89 conformance" |
| 2205 | #endif |
| 2206 | |
| 2207 | #include <stddef.h> |
| 2208 | #include <stdarg.h> |
| 2209 | struct stat; |
| 2210 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2211 | struct buf { int x; }; |
| 2212 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2213 | static char *e (p, i) |
| 2214 | char **p; |
| 2215 | int i; |
| 2216 | { |
| 2217 | return p[i]; |
| 2218 | } |
| 2219 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2220 | { |
| 2221 | char *s; |
| 2222 | va_list v; |
| 2223 | va_start (v,p); |
| 2224 | s = g (p, va_arg (v,int)); |
| 2225 | va_end (v); |
| 2226 | return s; |
| 2227 | } |
| 2228 | |
| 2229 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2230 | function prototypes and stuff, but not \xHH hex character constants. |
| 2231 | These do not provoke an error unfortunately, instead are silently treated |
| 2232 | as an "x". The following induces an error, until -std is added to get |
| 2233 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2234 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2235 | that is true only with -std. */ |
| 2236 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2237 | |
| 2238 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2239 | inside strings and character constants. */ |
| 2240 | #define FOO(x) '\''x'\'' |
| 2241 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2242 | |
| 2243 | int test (int i, double x); |
| 2244 | struct s1 {int (*f) (int a);}; |
| 2245 | struct s2 {int (*f) (double a);}; |
| 2246 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2247 | int, int);' |
| 2248 | |
| 2249 | # Test code for whether the C compiler supports C89 (body of main). |
| 2250 | ac_c_conftest_c89_main=' |
| 2251 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2252 | ' |
| 2253 | |
| 2254 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2255 | ac_c_conftest_c99_globals=' |
| 2256 | // Does the compiler advertise C99 conformance? |
| 2257 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2258 | # error "Compiler does not advertise C99 conformance" |
| 2259 | #endif |
| 2260 | |
| 2261 | #include <stdbool.h> |
| 2262 | extern int puts (const char *); |
| 2263 | extern int printf (const char *, ...); |
| 2264 | extern int dprintf (int, const char *, ...); |
| 2265 | extern void *malloc (size_t); |
| 2266 | |
| 2267 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2268 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2269 | // FILE and stderr. |
| 2270 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2271 | #define showlist(...) puts (#__VA_ARGS__) |
| 2272 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2273 | static void |
| 2274 | test_varargs_macros (void) |
| 2275 | { |
| 2276 | int x = 1234; |
| 2277 | int y = 5678; |
| 2278 | debug ("Flag"); |
| 2279 | debug ("X = %d\n", x); |
| 2280 | showlist (The first, second, and third items.); |
| 2281 | report (x>y, "x is %d but y is %d", x, y); |
| 2282 | } |
| 2283 | |
| 2284 | // Check long long types. |
| 2285 | #define BIG64 18446744073709551615ull |
| 2286 | #define BIG32 4294967295ul |
| 2287 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2288 | #if !BIG_OK |
| 2289 | #error "your preprocessor is broken" |
| 2290 | #endif |
| 2291 | #if BIG_OK |
| 2292 | #else |
| 2293 | #error "your preprocessor is broken" |
| 2294 | #endif |
| 2295 | static long long int bignum = -9223372036854775807LL; |
| 2296 | static unsigned long long int ubignum = BIG64; |
| 2297 | |
| 2298 | struct incomplete_array |
| 2299 | { |
| 2300 | int datasize; |
| 2301 | double data[]; |
| 2302 | }; |
| 2303 | |
| 2304 | struct named_init { |
| 2305 | int number; |
| 2306 | const wchar_t *name; |
| 2307 | double average; |
| 2308 | }; |
| 2309 | |
| 2310 | typedef const char *ccp; |
| 2311 | |
| 2312 | static inline int |
| 2313 | test_restrict (ccp restrict text) |
| 2314 | { |
| 2315 | // See if C++-style comments work. |
| 2316 | // Iterate through items via the restricted pointer. |
| 2317 | // Also check for declarations in for loops. |
| 2318 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2319 | continue; |
| 2320 | return 0; |
| 2321 | } |
| 2322 | |
| 2323 | // Check varargs and va_copy. |
| 2324 | static bool |
| 2325 | test_varargs (const char *format, ...) |
| 2326 | { |
| 2327 | va_list args; |
| 2328 | va_start (args, format); |
| 2329 | va_list args_copy; |
| 2330 | va_copy (args_copy, args); |
| 2331 | |
| 2332 | const char *str = ""; |
| 2333 | int number = 0; |
| 2334 | float fnumber = 0; |
| 2335 | |
| 2336 | while (*format) |
| 2337 | { |
| 2338 | switch (*format++) |
| 2339 | { |
| 2340 | case '\''s'\'': // string |
| 2341 | str = va_arg (args_copy, const char *); |
| 2342 | break; |
| 2343 | case '\''d'\'': // int |
| 2344 | number = va_arg (args_copy, int); |
| 2345 | break; |
| 2346 | case '\''f'\'': // float |
| 2347 | fnumber = va_arg (args_copy, double); |
| 2348 | break; |
| 2349 | default: |
| 2350 | break; |
| 2351 | } |
| 2352 | } |
| 2353 | va_end (args_copy); |
| 2354 | va_end (args); |
| 2355 | |
| 2356 | return *str && number && fnumber; |
| 2357 | } |
| 2358 | ' |
| 2359 | |
| 2360 | # Test code for whether the C compiler supports C99 (body of main). |
| 2361 | ac_c_conftest_c99_main=' |
| 2362 | // Check bool. |
| 2363 | _Bool success = false; |
| 2364 | success |= (argc != 0); |
| 2365 | |
| 2366 | // Check restrict. |
| 2367 | if (test_restrict ("String literal") == 0) |
| 2368 | success = true; |
| 2369 | char *restrict newvar = "Another string"; |
| 2370 | |
| 2371 | // Check varargs. |
| 2372 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2373 | test_varargs_macros (); |
| 2374 | |
| 2375 | // Check flexible array members. |
| 2376 | struct incomplete_array *ia = |
| 2377 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2378 | ia->datasize = 10; |
| 2379 | for (int i = 0; i < ia->datasize; ++i) |
| 2380 | ia->data[i] = i * 1.234; |
| 2381 | |
| 2382 | // Check named initializers. |
| 2383 | struct named_init ni = { |
| 2384 | .number = 34, |
| 2385 | .name = L"Test wide string", |
| 2386 | .average = 543.34343, |
| 2387 | }; |
| 2388 | |
| 2389 | ni.number = 58; |
| 2390 | |
| 2391 | int dynamic_array[ni.number]; |
| 2392 | dynamic_array[0] = argv[0][0]; |
| 2393 | dynamic_array[ni.number - 1] = 543; |
| 2394 | |
| 2395 | // work around unused variable warnings |
| 2396 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2397 | || dynamic_array[ni.number - 1] != 543); |
| 2398 | ' |
| 2399 | |
| 2400 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2401 | ac_c_conftest_c11_globals=' |
| 2402 | // Does the compiler advertise C11 conformance? |
| 2403 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2404 | # error "Compiler does not advertise C11 conformance" |
| 2405 | #endif |
| 2406 | |
| 2407 | // Check _Alignas. |
| 2408 | char _Alignas (double) aligned_as_double; |
| 2409 | char _Alignas (0) no_special_alignment; |
| 2410 | extern char aligned_as_int; |
| 2411 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2412 | |
| 2413 | // Check _Alignof. |
| 2414 | enum |
| 2415 | { |
| 2416 | int_alignment = _Alignof (int), |
| 2417 | int_array_alignment = _Alignof (int[100]), |
| 2418 | char_alignment = _Alignof (char) |
| 2419 | }; |
| 2420 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2421 | |
| 2422 | // Check _Noreturn. |
| 2423 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2424 | |
| 2425 | // Check _Static_assert. |
| 2426 | struct test_static_assert |
| 2427 | { |
| 2428 | int x; |
| 2429 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2430 | "_Static_assert does not work in struct"); |
| 2431 | long int y; |
| 2432 | }; |
| 2433 | |
| 2434 | // Check UTF-8 literals. |
| 2435 | #define u8 syntax error! |
| 2436 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2437 | |
| 2438 | // Check duplicate typedefs. |
| 2439 | typedef long *long_ptr; |
| 2440 | typedef long int *long_ptr; |
| 2441 | typedef long_ptr long_ptr; |
| 2442 | |
| 2443 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2444 | struct anonymous |
| 2445 | { |
| 2446 | union { |
| 2447 | struct { int i; int j; }; |
| 2448 | struct { int k; long int l; } w; |
| 2449 | }; |
| 2450 | int m; |
| 2451 | } v1; |
| 2452 | ' |
| 2453 | |
| 2454 | # Test code for whether the C compiler supports C11 (body of main). |
| 2455 | ac_c_conftest_c11_main=' |
| 2456 | _Static_assert ((offsetof (struct anonymous, i) |
| 2457 | == offsetof (struct anonymous, w.k)), |
| 2458 | "Anonymous union alignment botch"); |
| 2459 | v1.i = 2; |
| 2460 | v1.w.k = 5; |
| 2461 | ok |= v1.i != 5; |
| 2462 | ' |
| 2463 | |
| 2464 | # Test code for whether the C compiler supports C11 (complete). |
| 2465 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2466 | ${ac_c_conftest_c99_globals} |
| 2467 | ${ac_c_conftest_c11_globals} |
| 2468 | |
| 2469 | int |
| 2470 | main (int argc, char **argv) |
| 2471 | { |
| 2472 | int ok = 0; |
| 2473 | ${ac_c_conftest_c89_main} |
| 2474 | ${ac_c_conftest_c99_main} |
| 2475 | ${ac_c_conftest_c11_main} |
| 2476 | return ok; |
| 2477 | } |
| 2478 | " |
| 2479 | |
| 2480 | # Test code for whether the C compiler supports C99 (complete). |
| 2481 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2482 | ${ac_c_conftest_c99_globals} |
| 2483 | |
| 2484 | int |
| 2485 | main (int argc, char **argv) |
| 2486 | { |
| 2487 | int ok = 0; |
| 2488 | ${ac_c_conftest_c89_main} |
| 2489 | ${ac_c_conftest_c99_main} |
| 2490 | return ok; |
| 2491 | } |
| 2492 | " |
| 2493 | |
| 2494 | # Test code for whether the C compiler supports C89 (complete). |
| 2495 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2496 | |
| 2497 | int |
| 2498 | main (int argc, char **argv) |
| 2499 | { |
| 2500 | int ok = 0; |
| 2501 | ${ac_c_conftest_c89_main} |
| 2502 | return ok; |
| 2503 | } |
| 2504 | " |
| 2505 | |
| 2506 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2507 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2508 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2509 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2510 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2511 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2512 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2513 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2514 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2515 | |
| 2516 | # Auxiliary files required by this configure script. |
| 2517 | ac_aux_files="install-sh config.guess config.sub" |
| 2518 | |
| 2519 | # Locations in which to look for auxiliary files. |
| 2520 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2521 | |
| 2522 | # Search for a directory containing all of the required auxiliary files, |
| 2523 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2524 | # If we don't find one directory that contains all the files we need, |
| 2525 | # we report the set of missing files from the *first* directory in |
| 2526 | # $ac_aux_dir_candidates and give up. |
| 2527 | ac_missing_aux_files="" |
| 2528 | ac_first_candidate=: |
| 2529 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2531 | as_found=false |
| 2532 | for as_dir in $ac_aux_dir_candidates |
| 2533 | do |
| 2534 | IFS=$as_save_IFS |
| 2535 | case $as_dir in #((( |
| 2536 | '') as_dir=./ ;; |
| 2537 | */) ;; |
| 2538 | *) as_dir=$as_dir/ ;; |
| 2539 | esac |
| 2540 | as_found=: |
| 2541 | |
| 2542 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2543 | ac_aux_dir_found=yes |
| 2544 | ac_install_sh= |
| 2545 | for ac_aux in $ac_aux_files |
| 2546 | do |
| 2547 | # As a special case, if "install-sh" is required, that requirement |
| 2548 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2549 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 2550 | if test x"$ac_aux" = x"install-sh" |
| 2551 | then |
| 2552 | if test -f "${as_dir}install-sh"; then |
| 2553 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2554 | ac_install_sh="${as_dir}install-sh -c" |
| 2555 | elif test -f "${as_dir}install.sh"; then |
| 2556 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2557 | ac_install_sh="${as_dir}install.sh -c" |
| 2558 | elif test -f "${as_dir}shtool"; then |
| 2559 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2560 | ac_install_sh="${as_dir}shtool install -c" |
| 2561 | else |
| 2562 | ac_aux_dir_found=no |
| 2563 | if $ac_first_candidate; then |
| 2564 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2565 | else |
| 2566 | break |
| 2567 | fi |
| 2568 | fi |
| 2569 | else |
| 2570 | if test -f "${as_dir}${ac_aux}"; then |
| 2571 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2572 | else |
| 2573 | ac_aux_dir_found=no |
| 2574 | if $ac_first_candidate; then |
| 2575 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2576 | else |
| 2577 | break |
| 2578 | fi |
| 2579 | fi |
| 2580 | fi |
| 2581 | done |
| 2582 | if test "$ac_aux_dir_found" = yes; then |
| 2583 | ac_aux_dir="$as_dir" |
| 2584 | break |
| 2585 | fi |
| 2586 | ac_first_candidate=false |
| 2587 | |
| 2588 | as_found=false |
| 2589 | done |
| 2590 | IFS=$as_save_IFS |
| 2591 | if $as_found |
| 2592 | then : |
| 2593 | |
| 2594 | else $as_nop |
| 2595 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 2596 | fi |
| 2597 | |
| 2598 | |
| 2599 | # These three variables are undocumented and unsupported, |
| 2600 | # and are intended to be withdrawn in a future Autoconf release. |
| 2601 | # They can cause serious problems if a builder's source tree is in a directory |
| 2602 | # whose full name contains unusual characters. |
| 2603 | if test -f "${ac_aux_dir}config.guess"; then |
| 2604 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2605 | fi |
| 2606 | if test -f "${ac_aux_dir}config.sub"; then |
| 2607 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2608 | fi |
| 2609 | if test -f "$ac_aux_dir/configure"; then |
| 2610 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2611 | fi |
| 2612 | |
| 2613 | # Check that the precious variables saved in the cache have kept the same |
| 2614 | # value. |
| 2615 | ac_cache_corrupted=false |
| 2616 | for ac_var in $ac_precious_vars; do |
| 2617 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2618 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2619 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2620 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2621 | case $ac_old_set,$ac_new_set in |
| 2622 | set,) |
| 2623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2624 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2625 | ac_cache_corrupted=: ;; |
| 2626 | ,set) |
| 2627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2628 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2629 | ac_cache_corrupted=: ;; |
| 2630 | ,);; |
| 2631 | *) |
| 2632 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2633 | # differences in whitespace do not lead to failure. |
| 2634 | ac_old_val_w=`echo x $ac_old_val` |
| 2635 | ac_new_val_w=`echo x $ac_new_val` |
| 2636 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2638 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2639 | ac_cache_corrupted=: |
| 2640 | else |
| 2641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2642 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2643 | eval $ac_var=\$ac_old_val |
| 2644 | fi |
| 2645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2646 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2648 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2649 | fi;; |
| 2650 | esac |
| 2651 | # Pass precious variables to config.status. |
| 2652 | if test "$ac_new_set" = set; then |
| 2653 | case $ac_new_val in |
| 2654 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2655 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2656 | esac |
| 2657 | case " $ac_configure_args " in |
| 2658 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2659 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2660 | esac |
| 2661 | fi |
| 2662 | done |
| 2663 | if $ac_cache_corrupted; then |
| 2664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2665 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2667 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2668 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 2669 | and start over" "$LINENO" 5 |
| 2670 | fi |
| 2671 | ## -------------------- ## |
| 2672 | ## Main body of script. ## |
| 2673 | ## -------------------- ## |
| 2674 | |
| 2675 | ac_ext=c |
| 2676 | ac_cpp='$CPP $CPPFLAGS' |
| 2677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2680 | |
| 2681 | |
| 2682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring Infernal for your system." >&5 |
| 2683 | printf "%s\n" "$as_me: Configuring Infernal for your system." >&6;} |
| 2684 | |
| 2685 | esl_cflags_env_set=no |
| 2686 | # remember if the user is overriding CFLAGS |
| 2687 | if test x"$CFLAGS" != x; then |
| 2688 | esl_cflags_env_set=yes |
| 2689 | fi |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | ################################################################ |
| 2694 | # 3. Info on the package |
| 2695 | # |
| 2696 | # AC_INIT args set these output variables and preprocessor symbols: |
| 2697 | # PACKAGE_NAME <package> e.g. "Infernal" |
| 2698 | # PACKAGE_VERSION <version> e.g. "1.0" |
| 2699 | # PACKAGE_BUGREPORT <bug-report> e.g. "[email protected]" |
| 2700 | # PACKAGE_TARNAME <tarname> e.g. "infernal" |
| 2701 | # From them, AC_INIT derives one more: |
| 2702 | # PACKAGE_STRING <package> <version>, e.g. "Infernal 1.0" |
| 2703 | # and we also define additional variables: |
| 2704 | # INFERNAL_DATE release date: e.g. "October 2007" |
| 2705 | # INFERNAL_COPYRIGHT one-line copyright string |
| 2706 | # INFERNAL_LICENSE one-line license string |
| 2707 | # INFERNAL_VERSION copy of version code, e.g. "1.0" |
| 2708 | # INFERNAL_URL URL home for INFERNAL. |
| 2709 | # And we have to define the relevant package variables for Easel as well. |
| 2710 | # |
| 2711 | ################################################################ |
| 2712 | |
| 2713 | INFERNAL_DATE="Sep 2023" |
| 2714 | INFERNAL_COPYRIGHT="Copyright (C) 2023 Howard Hughes Medical Institute." |
| 2715 | INFERNAL_LICENSE="Freely distributed under the BSD open source license." |
| 2716 | INFERNAL_VERSION=$PACKAGE_VERSION |
| 2717 | INFERNAL_URL="http://eddylab.org/infernal/" |
| 2718 | INFERNAL_ESLDIR="easel" |
| 2719 | INFERNAL_HMMERDIR="hmmer" |
| 2720 | INFERNAL_SADIR="hmmer/libdivsufsort" |
| 2721 | |
| 2722 | HMMER_DATE="Aug 2023" |
| 2723 | HMMER_COPYRIGHT="Copyright (C) 2023 Howard Hughes Medical Institute." |
| 2724 | HMMER_LICENSE="Freely distributed under the BSD open source license." |
| 2725 | HMMER_VERSION="3.4" |
| 2726 | HMMER_URL="http://hmmer.org/" |
| 2727 | |
| 2728 | HMMER_ESLDIR="../easel" |
| 2729 | HMMER_SADIR="libdivsufsort" |
| 2730 | |
| 2731 | EASEL_DATE="Aug 2023" |
| 2732 | EASEL_COPYRIGHT="Copyright (C) 2023 Howard Hughes Medical Institute." |
| 2733 | EASEL_LICENSE="Freely distributed under the BSD open source license." |
| 2734 | EASEL_VERSION="0.49" |
| 2735 | EASEL_URL="http://bioeasel.org/" |
| 2736 | |
| 2737 | |
| 2738 | |
| 2739 | |
| 2740 | |
| 2741 | |
| 2742 | |
| 2743 | |
| 2744 | |
| 2745 | |
| 2746 | |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | |
| 2756 | |
| 2757 | |
| 2758 | |
| 2759 | |
| 2760 | |
| 2761 | |
| 2762 | printf "%s\n" "#define INFERNAL_DATE \"$INFERNAL_DATE\"" >>confdefs.h |
| 2763 | |
| 2764 | |
| 2765 | printf "%s\n" "#define INFERNAL_COPYRIGHT \"$INFERNAL_COPYRIGHT\"" >>confdefs.h |
| 2766 | |
| 2767 | |
| 2768 | printf "%s\n" "#define INFERNAL_LICENSE \"$INFERNAL_LICENSE\"" >>confdefs.h |
| 2769 | |
| 2770 | |
| 2771 | printf "%s\n" "#define INFERNAL_VERSION \"$INFERNAL_VERSION\"" >>confdefs.h |
| 2772 | |
| 2773 | |
| 2774 | printf "%s\n" "#define INFERNAL_URL \"$INFERNAL_URL\"" >>confdefs.h |
| 2775 | |
| 2776 | |
| 2777 | |
| 2778 | printf "%s\n" "#define HMMER_DATE \"$HMMER_DATE\"" >>confdefs.h |
| 2779 | |
| 2780 | |
| 2781 | printf "%s\n" "#define HMMER_COPYRIGHT \"$HMMER_COPYRIGHT\"" >>confdefs.h |
| 2782 | |
| 2783 | |
| 2784 | printf "%s\n" "#define HMMER_LICENSE \"$HMMER_LICENSE\"" >>confdefs.h |
| 2785 | |
| 2786 | |
| 2787 | printf "%s\n" "#define HMMER_VERSION \"$HMMER_VERSION\"" >>confdefs.h |
| 2788 | |
| 2789 | |
| 2790 | printf "%s\n" "#define HMMER_URL \"$HMMER_URL\"" >>confdefs.h |
| 2791 | |
| 2792 | |
| 2793 | |
| 2794 | printf "%s\n" "#define EASEL_DATE \"$EASEL_DATE\"" >>confdefs.h |
| 2795 | |
| 2796 | |
| 2797 | printf "%s\n" "#define EASEL_COPYRIGHT \"$EASEL_COPYRIGHT\"" >>confdefs.h |
| 2798 | |
| 2799 | |
| 2800 | printf "%s\n" "#define EASEL_LICENSE \"$EASEL_LICENSE\"" >>confdefs.h |
| 2801 | |
| 2802 | |
| 2803 | printf "%s\n" "#define EASEL_VERSION \"$EASEL_VERSION\"" >>confdefs.h |
| 2804 | |
| 2805 | |
| 2806 | printf "%s\n" "#define EASEL_URL \"$EASEL_URL\"" >>confdefs.h |
| 2807 | |
| 2808 | |
| 2809 | |
| 2810 | # Figure out what host we're compiling on. |
| 2811 | # Three GNU scripts must be included in the distro: |
| 2812 | # install.sh, config.guess, config.sub |
| 2813 | # This sets four shell variables: |
| 2814 | # host example: i686-pc-linux-gnu |
| 2815 | # host_cpu example: i686 |
| 2816 | # host_vendor example: pc |
| 2817 | # host_os example: linux-gnu |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | # Make sure we can run config.sub. |
| 2822 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 2823 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 2824 | |
| 2825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2826 | printf %s "checking build system type... " >&6; } |
| 2827 | if test ${ac_cv_build+y} |
| 2828 | then : |
| 2829 | printf %s "(cached) " >&6 |
| 2830 | else $as_nop |
| 2831 | ac_build_alias=$build_alias |
| 2832 | test "x$ac_build_alias" = x && |
| 2833 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 2834 | test "x$ac_build_alias" = x && |
| 2835 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2836 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 2837 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2838 | |
| 2839 | fi |
| 2840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2841 | printf "%s\n" "$ac_cv_build" >&6; } |
| 2842 | case $ac_cv_build in |
| 2843 | *-*-*) ;; |
| 2844 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2845 | esac |
| 2846 | build=$ac_cv_build |
| 2847 | ac_save_IFS=$IFS; IFS='-' |
| 2848 | set x $ac_cv_build |
| 2849 | shift |
| 2850 | build_cpu=$1 |
| 2851 | build_vendor=$2 |
| 2852 | shift; shift |
| 2853 | # Remember, the first character of IFS is used to create $*, |
| 2854 | # except with old shells: |
| 2855 | build_os=$* |
| 2856 | IFS=$ac_save_IFS |
| 2857 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2858 | |
| 2859 | |
| 2860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2861 | printf %s "checking host system type... " >&6; } |
| 2862 | if test ${ac_cv_host+y} |
| 2863 | then : |
| 2864 | printf %s "(cached) " >&6 |
| 2865 | else $as_nop |
| 2866 | if test "x$host_alias" = x; then |
| 2867 | ac_cv_host=$ac_cv_build |
| 2868 | else |
| 2869 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 2870 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 2871 | fi |
| 2872 | |
| 2873 | fi |
| 2874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2875 | printf "%s\n" "$ac_cv_host" >&6; } |
| 2876 | case $ac_cv_host in |
| 2877 | *-*-*) ;; |
| 2878 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2879 | esac |
| 2880 | host=$ac_cv_host |
| 2881 | ac_save_IFS=$IFS; IFS='-' |
| 2882 | set x $ac_cv_host |
| 2883 | shift |
| 2884 | host_cpu=$1 |
| 2885 | host_vendor=$2 |
| 2886 | shift; shift |
| 2887 | # Remember, the first character of IFS is used to create $*, |
| 2888 | # except with old shells: |
| 2889 | host_os=$* |
| 2890 | IFS=$ac_save_IFS |
| 2891 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2892 | |
| 2893 | |
| 2894 | |
| 2895 | |
| 2896 | |
| 2897 | |
| 2898 | ################################################################ |
| 2899 | # 4. Process the ./configure command line |
| 2900 | ################################################################ |
| 2901 | |
| 2902 | # --enable-debugging - set basic debugging (level 0) |
| 2903 | # --enable-debugging=x - set debugging level to <x> (1-3) |
| 2904 | # |
| 2905 | # At all levels, including 0, replaces CFLAGS w/ "-g -Wall" (so it assumes gcc). |
| 2906 | # Sets eslDEBUGLEVEL preprocessor symbol, which compiles in debugging support, to 0..3. |
| 2907 | # |
| 2908 | # Check whether --enable-debugging was given. |
| 2909 | if test ${enable_debugging+y} |
| 2910 | then : |
| 2911 | enableval=$enable_debugging; enable_debugging=$enableval |
| 2912 | else $as_nop |
| 2913 | enable_debugging=no |
| 2914 | fi |
| 2915 | |
| 2916 | |
| 2917 | case $enable_debugging in |
| 2918 | yes) |
| 2919 | printf "%s\n" "#define eslDEBUGLEVEL 1" >>confdefs.h |
| 2920 | ;; |
| 2921 | 1) |
| 2922 | printf "%s\n" "#define eslDEBUGLEVEL 1" >>confdefs.h |
| 2923 | ;; |
| 2924 | 2) |
| 2925 | printf "%s\n" "#define eslDEBUGLEVEL 2" >>confdefs.h |
| 2926 | ;; |
| 2927 | 3) |
| 2928 | printf "%s\n" "#define eslDEBUGLEVEL 3" >>confdefs.h |
| 2929 | ;; |
| 2930 | no) |
| 2931 | printf "%s\n" "#define eslDEBUGLEVEL 0" >>confdefs.h |
| 2932 | ;; |
| 2933 | *) as_fn_error $? "Unknown argument to --enable-debugging: $enable_debugging" "$LINENO" 5;; |
| 2934 | esac |
| 2935 | |
| 2936 | |
| 2937 | |
| 2938 | # Check whether --enable-gcov was given. |
| 2939 | if test ${enable_gcov+y} |
| 2940 | then : |
| 2941 | enableval=$enable_gcov; enable_gcov=$enableval |
| 2942 | else $as_nop |
| 2943 | enable_gcov=no |
| 2944 | fi |
| 2945 | |
| 2946 | # Check whether --enable-gprof was given. |
| 2947 | if test ${enable_gprof+y} |
| 2948 | then : |
| 2949 | enableval=$enable_gprof; enable_gprof=$enableval |
| 2950 | else $as_nop |
| 2951 | enable_gprof=no |
| 2952 | fi |
| 2953 | |
| 2954 | # Check whether --enable-asan was given. |
| 2955 | if test ${enable_asan+y} |
| 2956 | then : |
| 2957 | enableval=$enable_asan; enable_asan=$enableval |
| 2958 | else $as_nop |
| 2959 | enable_asan=no |
| 2960 | fi |
| 2961 | |
| 2962 | # Check whether --enable-tsan was given. |
| 2963 | if test ${enable_tsan+y} |
| 2964 | then : |
| 2965 | enableval=$enable_tsan; enable_tsan=$enableval |
| 2966 | else $as_nop |
| 2967 | enable_tsan=no |
| 2968 | fi |
| 2969 | |
| 2970 | # Check whether --enable-fortify was given. |
| 2971 | if test ${enable_fortify+y} |
| 2972 | then : |
| 2973 | enableval=$enable_fortify; enable_fortify=$enableval |
| 2974 | else $as_nop |
| 2975 | enable_fortify=no |
| 2976 | fi |
| 2977 | |
| 2978 | |
| 2979 | # Check whether --enable-neon was given. |
| 2980 | if test ${enable_neon+y} |
| 2981 | then : |
| 2982 | enableval=$enable_neon; enable_neon=$enableval |
| 2983 | else $as_nop |
| 2984 | enable_neon=check |
| 2985 | fi |
| 2986 | |
| 2987 | # Check whether --enable-sse was given. |
| 2988 | if test ${enable_sse+y} |
| 2989 | then : |
| 2990 | enableval=$enable_sse; enable_sse=$enableval |
| 2991 | else $as_nop |
| 2992 | enable_sse=check |
| 2993 | fi |
| 2994 | |
| 2995 | # Check whether --enable-vmx was given. |
| 2996 | if test ${enable_vmx+y} |
| 2997 | then : |
| 2998 | enableval=$enable_vmx; enable_vmx=$enableval |
| 2999 | else $as_nop |
| 3000 | enable_vmx=check |
| 3001 | fi |
| 3002 | |
| 3003 | |
| 3004 | # Check whether --enable-threads was given. |
| 3005 | if test ${enable_threads+y} |
| 3006 | then : |
| 3007 | enableval=$enable_threads; enable_threads=$enableval |
| 3008 | else $as_nop |
| 3009 | enable_threads=check |
| 3010 | fi |
| 3011 | |
| 3012 | # Check whether --enable-mpi was given. |
| 3013 | if test ${enable_mpi+y} |
| 3014 | then : |
| 3015 | enableval=$enable_mpi; enable_mpi=$enableval |
| 3016 | else $as_nop |
| 3017 | enable_mpi=no |
| 3018 | fi |
| 3019 | |
| 3020 | |
| 3021 | # Check whether --enable-pic was given. |
| 3022 | if test ${enable_pic+y} |
| 3023 | then : |
| 3024 | enableval=$enable_pic; enable_pic=$enableval |
| 3025 | else $as_nop |
| 3026 | enable_pic=no |
| 3027 | fi |
| 3028 | |
| 3029 | |
| 3030 | |
| 3031 | # Check whether --with-gsl was given. |
| 3032 | if test ${with_gsl+y} |
| 3033 | then : |
| 3034 | withval=$with_gsl; with_gsl=$withval |
| 3035 | else $as_nop |
| 3036 | with_gsl=no |
| 3037 | fi |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | # If a vector implementation is force-selected, make sure only one is, |
| 3042 | # and turn off checking for the others. |
| 3043 | vecsel=0 |
| 3044 | if test "$enable_neon" = "yes"; then vecsel=$((vecsel+1)); fi |
| 3045 | if test "$enable_sse" = "yes"; then vecsel=$((vecsel+1)); fi |
| 3046 | if test "$enable_vmx" = "yes"; then vecsel=$((vecsel+1)); fi |
| 3047 | if [ $vecsel -gt 1 ]; then |
| 3048 | as_fn_error $? "Select only one implementation: sse, neon or vmx" "$LINENO" 5 |
| 3049 | elif [ $vecsel -eq 1 ]; then |
| 3050 | if test "$enable_neon" = "check"; then enable_neon="no"; fi |
| 3051 | if test "$enable_sse" = "check"; then enable_sse="no"; fi |
| 3052 | if test "$enable_vmx" = "check"; then enable_vmx="no"; fi |
| 3053 | fi |
| 3054 | |
| 3055 | |
| 3056 | |
| 3057 | ################################################################ |
| 3058 | # 5. Checks for programs, including ${CC} and ${CFLAGS}. |
| 3059 | ################################################################ |
| 3060 | |
| 3061 | # Choose our compiler - which might be mpicc, if enable_mpi is "yes". |
| 3062 | # AX_PROG_CC_MPI will call AC_PROG_CC if enable_mpi is "no". |
| 3063 | # |
| 3064 | # If CFLAGS hasn't been set by the user, set it to an empty string |
| 3065 | # in the environment. This prevents AC_PROG_CC from setting it to |
| 3066 | # "-g -O2" or "-g". Some of our --enable-* options will add to CFLAGS. |
| 3067 | # |
| 3068 | # The `: ${CFLAGS=""}` shell syntax uses the null operator `:` to |
| 3069 | # discard the output of `${CFLAGS=""}`, which returns the value of |
| 3070 | # CFLAGS if already set. |
| 3071 | # |
| 3072 | : ${CFLAGS=""} |
| 3073 | |
| 3074 | |
| 3075 | |
| 3076 | |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | |
| 3083 | |
| 3084 | |
| 3085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile using MPI" >&5 |
| 3086 | printf %s "checking whether to compile using MPI... " >&6; } |
| 3087 | if test x"$enable_mpi" = xyes; then |
| 3088 | _ax_prog_cc_mpi_mpi_wanted=yes |
| 3089 | else |
| 3090 | _ax_prog_cc_mpi_mpi_wanted=no |
| 3091 | fi |
| 3092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_wanted" >&5 |
| 3093 | printf "%s\n" "$_ax_prog_cc_mpi_mpi_wanted" >&6; } |
| 3094 | |
| 3095 | if test x"$_ax_prog_cc_mpi_mpi_wanted" = xyes; then |
| 3096 | if test -z "$CC" && test -n "$MPICC"; then |
| 3097 | CC="$MPICC" |
| 3098 | else |
| 3099 | if test -n "$ac_tool_prefix"; then |
| 3100 | for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc |
| 3101 | do |
| 3102 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3103 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3105 | printf %s "checking for $ac_word... " >&6; } |
| 3106 | if test ${ac_cv_prog_CC+y} |
| 3107 | then : |
| 3108 | printf %s "(cached) " >&6 |
| 3109 | else $as_nop |
| 3110 | if test -n "$CC"; then |
| 3111 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3112 | else |
| 3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3114 | for as_dir in $PATH |
| 3115 | do |
| 3116 | IFS=$as_save_IFS |
| 3117 | case $as_dir in #((( |
| 3118 | '') as_dir=./ ;; |
| 3119 | */) ;; |
| 3120 | *) as_dir=$as_dir/ ;; |
| 3121 | esac |
| 3122 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3123 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3124 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3125 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3126 | break 2 |
| 3127 | fi |
| 3128 | done |
| 3129 | done |
| 3130 | IFS=$as_save_IFS |
| 3131 | |
| 3132 | fi |
| 3133 | fi |
| 3134 | CC=$ac_cv_prog_CC |
| 3135 | if test -n "$CC"; then |
| 3136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3137 | printf "%s\n" "$CC" >&6; } |
| 3138 | else |
| 3139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3140 | printf "%s\n" "no" >&6; } |
| 3141 | fi |
| 3142 | |
| 3143 | |
| 3144 | test -n "$CC" && break |
| 3145 | done |
| 3146 | fi |
| 3147 | if test -z "$CC"; then |
| 3148 | ac_ct_CC=$CC |
| 3149 | for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc |
| 3150 | do |
| 3151 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3152 | set dummy $ac_prog; ac_word=$2 |
| 3153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3154 | printf %s "checking for $ac_word... " >&6; } |
| 3155 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3156 | then : |
| 3157 | printf %s "(cached) " >&6 |
| 3158 | else $as_nop |
| 3159 | if test -n "$ac_ct_CC"; then |
| 3160 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3161 | else |
| 3162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3163 | for as_dir in $PATH |
| 3164 | do |
| 3165 | IFS=$as_save_IFS |
| 3166 | case $as_dir in #((( |
| 3167 | '') as_dir=./ ;; |
| 3168 | */) ;; |
| 3169 | *) as_dir=$as_dir/ ;; |
| 3170 | esac |
| 3171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3172 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3173 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3174 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3175 | break 2 |
| 3176 | fi |
| 3177 | done |
| 3178 | done |
| 3179 | IFS=$as_save_IFS |
| 3180 | |
| 3181 | fi |
| 3182 | fi |
| 3183 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3184 | if test -n "$ac_ct_CC"; then |
| 3185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3186 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3187 | else |
| 3188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3189 | printf "%s\n" "no" >&6; } |
| 3190 | fi |
| 3191 | |
| 3192 | |
| 3193 | test -n "$ac_ct_CC" && break |
| 3194 | done |
| 3195 | |
| 3196 | if test "x$ac_ct_CC" = x; then |
| 3197 | CC="" |
| 3198 | else |
| 3199 | case $cross_compiling:$ac_tool_warned in |
| 3200 | yes:) |
| 3201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3202 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3203 | ac_tool_warned=yes ;; |
| 3204 | esac |
| 3205 | CC=$ac_ct_CC |
| 3206 | fi |
| 3207 | fi |
| 3208 | |
| 3209 | fi |
| 3210 | fi |
| 3211 | ac_ext=c |
| 3212 | ac_cpp='$CPP $CPPFLAGS' |
| 3213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3216 | if test -n "$ac_tool_prefix"; then |
| 3217 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3218 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3220 | printf %s "checking for $ac_word... " >&6; } |
| 3221 | if test ${ac_cv_prog_CC+y} |
| 3222 | then : |
| 3223 | printf %s "(cached) " >&6 |
| 3224 | else $as_nop |
| 3225 | if test -n "$CC"; then |
| 3226 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3227 | else |
| 3228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3229 | for as_dir in $PATH |
| 3230 | do |
| 3231 | IFS=$as_save_IFS |
| 3232 | case $as_dir in #((( |
| 3233 | '') as_dir=./ ;; |
| 3234 | */) ;; |
| 3235 | *) as_dir=$as_dir/ ;; |
| 3236 | esac |
| 3237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3238 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3239 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3241 | break 2 |
| 3242 | fi |
| 3243 | done |
| 3244 | done |
| 3245 | IFS=$as_save_IFS |
| 3246 | |
| 3247 | fi |
| 3248 | fi |
| 3249 | CC=$ac_cv_prog_CC |
| 3250 | if test -n "$CC"; then |
| 3251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3252 | printf "%s\n" "$CC" >&6; } |
| 3253 | else |
| 3254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3255 | printf "%s\n" "no" >&6; } |
| 3256 | fi |
| 3257 | |
| 3258 | |
| 3259 | fi |
| 3260 | if test -z "$ac_cv_prog_CC"; then |
| 3261 | ac_ct_CC=$CC |
| 3262 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3263 | set dummy gcc; ac_word=$2 |
| 3264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3265 | printf %s "checking for $ac_word... " >&6; } |
| 3266 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3267 | then : |
| 3268 | printf %s "(cached) " >&6 |
| 3269 | else $as_nop |
| 3270 | if test -n "$ac_ct_CC"; then |
| 3271 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3272 | else |
| 3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3274 | for as_dir in $PATH |
| 3275 | do |
| 3276 | IFS=$as_save_IFS |
| 3277 | case $as_dir in #((( |
| 3278 | '') as_dir=./ ;; |
| 3279 | */) ;; |
| 3280 | *) as_dir=$as_dir/ ;; |
| 3281 | esac |
| 3282 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3283 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3284 | ac_cv_prog_ac_ct_CC="gcc" |
| 3285 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3286 | break 2 |
| 3287 | fi |
| 3288 | done |
| 3289 | done |
| 3290 | IFS=$as_save_IFS |
| 3291 | |
| 3292 | fi |
| 3293 | fi |
| 3294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3295 | if test -n "$ac_ct_CC"; then |
| 3296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3297 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3298 | else |
| 3299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3300 | printf "%s\n" "no" >&6; } |
| 3301 | fi |
| 3302 | |
| 3303 | if test "x$ac_ct_CC" = x; then |
| 3304 | CC="" |
| 3305 | else |
| 3306 | case $cross_compiling:$ac_tool_warned in |
| 3307 | yes:) |
| 3308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3309 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3310 | ac_tool_warned=yes ;; |
| 3311 | esac |
| 3312 | CC=$ac_ct_CC |
| 3313 | fi |
| 3314 | else |
| 3315 | CC="$ac_cv_prog_CC" |
| 3316 | fi |
| 3317 | |
| 3318 | if test -z "$CC"; then |
| 3319 | if test -n "$ac_tool_prefix"; then |
| 3320 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3321 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3323 | printf %s "checking for $ac_word... " >&6; } |
| 3324 | if test ${ac_cv_prog_CC+y} |
| 3325 | then : |
| 3326 | printf %s "(cached) " >&6 |
| 3327 | else $as_nop |
| 3328 | if test -n "$CC"; then |
| 3329 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3330 | else |
| 3331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3332 | for as_dir in $PATH |
| 3333 | do |
| 3334 | IFS=$as_save_IFS |
| 3335 | case $as_dir in #((( |
| 3336 | '') as_dir=./ ;; |
| 3337 | */) ;; |
| 3338 | *) as_dir=$as_dir/ ;; |
| 3339 | esac |
| 3340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3341 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3342 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3343 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3344 | break 2 |
| 3345 | fi |
| 3346 | done |
| 3347 | done |
| 3348 | IFS=$as_save_IFS |
| 3349 | |
| 3350 | fi |
| 3351 | fi |
| 3352 | CC=$ac_cv_prog_CC |
| 3353 | if test -n "$CC"; then |
| 3354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3355 | printf "%s\n" "$CC" >&6; } |
| 3356 | else |
| 3357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3358 | printf "%s\n" "no" >&6; } |
| 3359 | fi |
| 3360 | |
| 3361 | |
| 3362 | fi |
| 3363 | fi |
| 3364 | if test -z "$CC"; then |
| 3365 | # Extract the first word of "cc", so it can be a program name with args. |
| 3366 | set dummy cc; ac_word=$2 |
| 3367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3368 | printf %s "checking for $ac_word... " >&6; } |
| 3369 | if test ${ac_cv_prog_CC+y} |
| 3370 | then : |
| 3371 | printf %s "(cached) " >&6 |
| 3372 | else $as_nop |
| 3373 | if test -n "$CC"; then |
| 3374 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3375 | else |
| 3376 | ac_prog_rejected=no |
| 3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3378 | for as_dir in $PATH |
| 3379 | do |
| 3380 | IFS=$as_save_IFS |
| 3381 | case $as_dir in #((( |
| 3382 | '') as_dir=./ ;; |
| 3383 | */) ;; |
| 3384 | *) as_dir=$as_dir/ ;; |
| 3385 | esac |
| 3386 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3387 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3388 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3389 | ac_prog_rejected=yes |
| 3390 | continue |
| 3391 | fi |
| 3392 | ac_cv_prog_CC="cc" |
| 3393 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3394 | break 2 |
| 3395 | fi |
| 3396 | done |
| 3397 | done |
| 3398 | IFS=$as_save_IFS |
| 3399 | |
| 3400 | if test $ac_prog_rejected = yes; then |
| 3401 | # We found a bogon in the path, so make sure we never use it. |
| 3402 | set dummy $ac_cv_prog_CC |
| 3403 | shift |
| 3404 | if test $# != 0; then |
| 3405 | # We chose a different compiler from the bogus one. |
| 3406 | # However, it has the same basename, so the bogon will be chosen |
| 3407 | # first if we set CC to just the basename; use the full file name. |
| 3408 | shift |
| 3409 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3410 | fi |
| 3411 | fi |
| 3412 | fi |
| 3413 | fi |
| 3414 | CC=$ac_cv_prog_CC |
| 3415 | if test -n "$CC"; then |
| 3416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3417 | printf "%s\n" "$CC" >&6; } |
| 3418 | else |
| 3419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3420 | printf "%s\n" "no" >&6; } |
| 3421 | fi |
| 3422 | |
| 3423 | |
| 3424 | fi |
| 3425 | if test -z "$CC"; then |
| 3426 | if test -n "$ac_tool_prefix"; then |
| 3427 | for ac_prog in cl.exe |
| 3428 | do |
| 3429 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3430 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3432 | printf %s "checking for $ac_word... " >&6; } |
| 3433 | if test ${ac_cv_prog_CC+y} |
| 3434 | then : |
| 3435 | printf %s "(cached) " >&6 |
| 3436 | else $as_nop |
| 3437 | if test -n "$CC"; then |
| 3438 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3439 | else |
| 3440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3441 | for as_dir in $PATH |
| 3442 | do |
| 3443 | IFS=$as_save_IFS |
| 3444 | case $as_dir in #((( |
| 3445 | '') as_dir=./ ;; |
| 3446 | */) ;; |
| 3447 | *) as_dir=$as_dir/ ;; |
| 3448 | esac |
| 3449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3450 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3451 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3452 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3453 | break 2 |
| 3454 | fi |
| 3455 | done |
| 3456 | done |
| 3457 | IFS=$as_save_IFS |
| 3458 | |
| 3459 | fi |
| 3460 | fi |
| 3461 | CC=$ac_cv_prog_CC |
| 3462 | if test -n "$CC"; then |
| 3463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3464 | printf "%s\n" "$CC" >&6; } |
| 3465 | else |
| 3466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3467 | printf "%s\n" "no" >&6; } |
| 3468 | fi |
| 3469 | |
| 3470 | |
| 3471 | test -n "$CC" && break |
| 3472 | done |
| 3473 | fi |
| 3474 | if test -z "$CC"; then |
| 3475 | ac_ct_CC=$CC |
| 3476 | for ac_prog in cl.exe |
| 3477 | do |
| 3478 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3479 | set dummy $ac_prog; ac_word=$2 |
| 3480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3481 | printf %s "checking for $ac_word... " >&6; } |
| 3482 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3483 | then : |
| 3484 | printf %s "(cached) " >&6 |
| 3485 | else $as_nop |
| 3486 | if test -n "$ac_ct_CC"; then |
| 3487 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3488 | else |
| 3489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3490 | for as_dir in $PATH |
| 3491 | do |
| 3492 | IFS=$as_save_IFS |
| 3493 | case $as_dir in #((( |
| 3494 | '') as_dir=./ ;; |
| 3495 | */) ;; |
| 3496 | *) as_dir=$as_dir/ ;; |
| 3497 | esac |
| 3498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3499 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3500 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3501 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3502 | break 2 |
| 3503 | fi |
| 3504 | done |
| 3505 | done |
| 3506 | IFS=$as_save_IFS |
| 3507 | |
| 3508 | fi |
| 3509 | fi |
| 3510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3511 | if test -n "$ac_ct_CC"; then |
| 3512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3513 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3514 | else |
| 3515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3516 | printf "%s\n" "no" >&6; } |
| 3517 | fi |
| 3518 | |
| 3519 | |
| 3520 | test -n "$ac_ct_CC" && break |
| 3521 | done |
| 3522 | |
| 3523 | if test "x$ac_ct_CC" = x; then |
| 3524 | CC="" |
| 3525 | else |
| 3526 | case $cross_compiling:$ac_tool_warned in |
| 3527 | yes:) |
| 3528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3529 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3530 | ac_tool_warned=yes ;; |
| 3531 | esac |
| 3532 | CC=$ac_ct_CC |
| 3533 | fi |
| 3534 | fi |
| 3535 | |
| 3536 | fi |
| 3537 | if test -z "$CC"; then |
| 3538 | if test -n "$ac_tool_prefix"; then |
| 3539 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3540 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3542 | printf %s "checking for $ac_word... " >&6; } |
| 3543 | if test ${ac_cv_prog_CC+y} |
| 3544 | then : |
| 3545 | printf %s "(cached) " >&6 |
| 3546 | else $as_nop |
| 3547 | if test -n "$CC"; then |
| 3548 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3549 | else |
| 3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3551 | for as_dir in $PATH |
| 3552 | do |
| 3553 | IFS=$as_save_IFS |
| 3554 | case $as_dir in #((( |
| 3555 | '') as_dir=./ ;; |
| 3556 | */) ;; |
| 3557 | *) as_dir=$as_dir/ ;; |
| 3558 | esac |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3561 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3562 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3563 | break 2 |
| 3564 | fi |
| 3565 | done |
| 3566 | done |
| 3567 | IFS=$as_save_IFS |
| 3568 | |
| 3569 | fi |
| 3570 | fi |
| 3571 | CC=$ac_cv_prog_CC |
| 3572 | if test -n "$CC"; then |
| 3573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3574 | printf "%s\n" "$CC" >&6; } |
| 3575 | else |
| 3576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3577 | printf "%s\n" "no" >&6; } |
| 3578 | fi |
| 3579 | |
| 3580 | |
| 3581 | fi |
| 3582 | if test -z "$ac_cv_prog_CC"; then |
| 3583 | ac_ct_CC=$CC |
| 3584 | # Extract the first word of "clang", so it can be a program name with args. |
| 3585 | set dummy clang; ac_word=$2 |
| 3586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3587 | printf %s "checking for $ac_word... " >&6; } |
| 3588 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3589 | then : |
| 3590 | printf %s "(cached) " >&6 |
| 3591 | else $as_nop |
| 3592 | if test -n "$ac_ct_CC"; then |
| 3593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3594 | else |
| 3595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3596 | for as_dir in $PATH |
| 3597 | do |
| 3598 | IFS=$as_save_IFS |
| 3599 | case $as_dir in #((( |
| 3600 | '') as_dir=./ ;; |
| 3601 | */) ;; |
| 3602 | *) as_dir=$as_dir/ ;; |
| 3603 | esac |
| 3604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3605 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3606 | ac_cv_prog_ac_ct_CC="clang" |
| 3607 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3608 | break 2 |
| 3609 | fi |
| 3610 | done |
| 3611 | done |
| 3612 | IFS=$as_save_IFS |
| 3613 | |
| 3614 | fi |
| 3615 | fi |
| 3616 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3617 | if test -n "$ac_ct_CC"; then |
| 3618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3619 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3620 | else |
| 3621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3622 | printf "%s\n" "no" >&6; } |
| 3623 | fi |
| 3624 | |
| 3625 | if test "x$ac_ct_CC" = x; then |
| 3626 | CC="" |
| 3627 | else |
| 3628 | case $cross_compiling:$ac_tool_warned in |
| 3629 | yes:) |
| 3630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3631 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3632 | ac_tool_warned=yes ;; |
| 3633 | esac |
| 3634 | CC=$ac_ct_CC |
| 3635 | fi |
| 3636 | else |
| 3637 | CC="$ac_cv_prog_CC" |
| 3638 | fi |
| 3639 | |
| 3640 | fi |
| 3641 | |
| 3642 | |
| 3643 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3644 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3645 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3646 | See \`config.log' for more details" "$LINENO" 5; } |
| 3647 | |
| 3648 | # Provide some information about the compiler. |
| 3649 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3650 | set X $ac_compile |
| 3651 | ac_compiler=$2 |
| 3652 | for ac_option in --version -v -V -qversion -version; do |
| 3653 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3654 | case "(($ac_try" in |
| 3655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 | *) ac_try_echo=$ac_try;; |
| 3657 | esac |
| 3658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3659 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3660 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3661 | ac_status=$? |
| 3662 | if test -s conftest.err; then |
| 3663 | sed '10a\ |
| 3664 | ... rest of stderr output deleted ... |
| 3665 | 10q' conftest.err >conftest.er1 |
| 3666 | cat conftest.er1 >&5 |
| 3667 | fi |
| 3668 | rm -f conftest.er1 conftest.err |
| 3669 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3670 | test $ac_status = 0; } |
| 3671 | done |
| 3672 | |
| 3673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3674 | /* end confdefs.h. */ |
| 3675 | |
| 3676 | int |
| 3677 | main (void) |
| 3678 | { |
| 3679 | |
| 3680 | ; |
| 3681 | return 0; |
| 3682 | } |
| 3683 | _ACEOF |
| 3684 | ac_clean_files_save=$ac_clean_files |
| 3685 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3686 | # Try to create an executable without -o first, disregard a.out. |
| 3687 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3688 | # of exeext. |
| 3689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3690 | printf %s "checking whether the C compiler works... " >&6; } |
| 3691 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3692 | |
| 3693 | # The possible output files: |
| 3694 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3695 | |
| 3696 | ac_rmfiles= |
| 3697 | for ac_file in $ac_files |
| 3698 | do |
| 3699 | case $ac_file in |
| 3700 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3701 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3702 | esac |
| 3703 | done |
| 3704 | rm -f $ac_rmfiles |
| 3705 | |
| 3706 | if { { ac_try="$ac_link_default" |
| 3707 | case "(($ac_try" in |
| 3708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3709 | *) ac_try_echo=$ac_try;; |
| 3710 | esac |
| 3711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3712 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3713 | (eval "$ac_link_default") 2>&5 |
| 3714 | ac_status=$? |
| 3715 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3716 | test $ac_status = 0; } |
| 3717 | then : |
| 3718 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3719 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3720 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3721 | # so that the user can short-circuit this test for compilers unknown to |
| 3722 | # Autoconf. |
| 3723 | for ac_file in $ac_files '' |
| 3724 | do |
| 3725 | test -f "$ac_file" || continue |
| 3726 | case $ac_file in |
| 3727 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3728 | ;; |
| 3729 | [ab].out ) |
| 3730 | # We found the default executable, but exeext='' is most |
| 3731 | # certainly right. |
| 3732 | break;; |
| 3733 | *.* ) |
| 3734 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3735 | then :; else |
| 3736 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3737 | fi |
| 3738 | # We set ac_cv_exeext here because the later test for it is not |
| 3739 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3740 | # argument, so we may need to know it at that point already. |
| 3741 | # Even if this section looks crufty: it has the advantage of |
| 3742 | # actually working. |
| 3743 | break;; |
| 3744 | * ) |
| 3745 | break;; |
| 3746 | esac |
| 3747 | done |
| 3748 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3749 | |
| 3750 | else $as_nop |
| 3751 | ac_file='' |
| 3752 | fi |
| 3753 | if test -z "$ac_file" |
| 3754 | then : |
| 3755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3756 | printf "%s\n" "no" >&6; } |
| 3757 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3759 | |
| 3760 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3761 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3762 | as_fn_error 77 "C compiler cannot create executables |
| 3763 | See \`config.log' for more details" "$LINENO" 5; } |
| 3764 | else $as_nop |
| 3765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3766 | printf "%s\n" "yes" >&6; } |
| 3767 | fi |
| 3768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3769 | printf %s "checking for C compiler default output file name... " >&6; } |
| 3770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3771 | printf "%s\n" "$ac_file" >&6; } |
| 3772 | ac_exeext=$ac_cv_exeext |
| 3773 | |
| 3774 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3775 | ac_clean_files=$ac_clean_files_save |
| 3776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3777 | printf %s "checking for suffix of executables... " >&6; } |
| 3778 | if { { ac_try="$ac_link" |
| 3779 | case "(($ac_try" in |
| 3780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3781 | *) ac_try_echo=$ac_try;; |
| 3782 | esac |
| 3783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3784 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3785 | (eval "$ac_link") 2>&5 |
| 3786 | ac_status=$? |
| 3787 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3788 | test $ac_status = 0; } |
| 3789 | then : |
| 3790 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3791 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3792 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3793 | # `rm'. |
| 3794 | for ac_file in conftest.exe conftest conftest.*; do |
| 3795 | test -f "$ac_file" || continue |
| 3796 | case $ac_file in |
| 3797 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3798 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3799 | break;; |
| 3800 | * ) break;; |
| 3801 | esac |
| 3802 | done |
| 3803 | else $as_nop |
| 3804 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3805 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3806 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3807 | See \`config.log' for more details" "$LINENO" 5; } |
| 3808 | fi |
| 3809 | rm -f conftest conftest$ac_cv_exeext |
| 3810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3811 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3812 | |
| 3813 | rm -f conftest.$ac_ext |
| 3814 | EXEEXT=$ac_cv_exeext |
| 3815 | ac_exeext=$EXEEXT |
| 3816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3817 | /* end confdefs.h. */ |
| 3818 | #include <stdio.h> |
| 3819 | int |
| 3820 | main (void) |
| 3821 | { |
| 3822 | FILE *f = fopen ("conftest.out", "w"); |
| 3823 | return ferror (f) || fclose (f) != 0; |
| 3824 | |
| 3825 | ; |
| 3826 | return 0; |
| 3827 | } |
| 3828 | _ACEOF |
| 3829 | ac_clean_files="$ac_clean_files conftest.out" |
| 3830 | # Check that the compiler produces executables we can run. If not, either |
| 3831 | # the compiler is broken, or we cross compile. |
| 3832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3833 | printf %s "checking whether we are cross compiling... " >&6; } |
| 3834 | if test "$cross_compiling" != yes; then |
| 3835 | { { ac_try="$ac_link" |
| 3836 | case "(($ac_try" in |
| 3837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3838 | *) ac_try_echo=$ac_try;; |
| 3839 | esac |
| 3840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3841 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3842 | (eval "$ac_link") 2>&5 |
| 3843 | ac_status=$? |
| 3844 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3845 | test $ac_status = 0; } |
| 3846 | if { ac_try='./conftest$ac_cv_exeext' |
| 3847 | { { case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3852 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3853 | (eval "$ac_try") 2>&5 |
| 3854 | ac_status=$? |
| 3855 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3856 | test $ac_status = 0; }; }; then |
| 3857 | cross_compiling=no |
| 3858 | else |
| 3859 | if test "$cross_compiling" = maybe; then |
| 3860 | cross_compiling=yes |
| 3861 | else |
| 3862 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3863 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3864 | as_fn_error 77 "cannot run C compiled programs. |
| 3865 | If you meant to cross compile, use \`--host'. |
| 3866 | See \`config.log' for more details" "$LINENO" 5; } |
| 3867 | fi |
| 3868 | fi |
| 3869 | fi |
| 3870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3871 | printf "%s\n" "$cross_compiling" >&6; } |
| 3872 | |
| 3873 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3874 | ac_clean_files=$ac_clean_files_save |
| 3875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3876 | printf %s "checking for suffix of object files... " >&6; } |
| 3877 | if test ${ac_cv_objext+y} |
| 3878 | then : |
| 3879 | printf %s "(cached) " >&6 |
| 3880 | else $as_nop |
| 3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3882 | /* end confdefs.h. */ |
| 3883 | |
| 3884 | int |
| 3885 | main (void) |
| 3886 | { |
| 3887 | |
| 3888 | ; |
| 3889 | return 0; |
| 3890 | } |
| 3891 | _ACEOF |
| 3892 | rm -f conftest.o conftest.obj |
| 3893 | if { { ac_try="$ac_compile" |
| 3894 | case "(($ac_try" in |
| 3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3896 | *) ac_try_echo=$ac_try;; |
| 3897 | esac |
| 3898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3899 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3900 | (eval "$ac_compile") 2>&5 |
| 3901 | ac_status=$? |
| 3902 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3903 | test $ac_status = 0; } |
| 3904 | then : |
| 3905 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3906 | test -f "$ac_file" || continue; |
| 3907 | case $ac_file in |
| 3908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3909 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3910 | break;; |
| 3911 | esac |
| 3912 | done |
| 3913 | else $as_nop |
| 3914 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3916 | |
| 3917 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3918 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3919 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3920 | See \`config.log' for more details" "$LINENO" 5; } |
| 3921 | fi |
| 3922 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3923 | fi |
| 3924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3925 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 3926 | OBJEXT=$ac_cv_objext |
| 3927 | ac_objext=$OBJEXT |
| 3928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3929 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3930 | if test ${ac_cv_c_compiler_gnu+y} |
| 3931 | then : |
| 3932 | printf %s "(cached) " >&6 |
| 3933 | else $as_nop |
| 3934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3935 | /* end confdefs.h. */ |
| 3936 | |
| 3937 | int |
| 3938 | main (void) |
| 3939 | { |
| 3940 | #ifndef __GNUC__ |
| 3941 | choke me |
| 3942 | #endif |
| 3943 | |
| 3944 | ; |
| 3945 | return 0; |
| 3946 | } |
| 3947 | _ACEOF |
| 3948 | if ac_fn_c_try_compile "$LINENO" |
| 3949 | then : |
| 3950 | ac_compiler_gnu=yes |
| 3951 | else $as_nop |
| 3952 | ac_compiler_gnu=no |
| 3953 | fi |
| 3954 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3955 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3956 | |
| 3957 | fi |
| 3958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3959 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3961 | |
| 3962 | if test $ac_compiler_gnu = yes; then |
| 3963 | GCC=yes |
| 3964 | else |
| 3965 | GCC= |
| 3966 | fi |
| 3967 | ac_test_CFLAGS=${CFLAGS+y} |
| 3968 | ac_save_CFLAGS=$CFLAGS |
| 3969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3970 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 3971 | if test ${ac_cv_prog_cc_g+y} |
| 3972 | then : |
| 3973 | printf %s "(cached) " >&6 |
| 3974 | else $as_nop |
| 3975 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3976 | ac_c_werror_flag=yes |
| 3977 | ac_cv_prog_cc_g=no |
| 3978 | CFLAGS="-g" |
| 3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3980 | /* end confdefs.h. */ |
| 3981 | |
| 3982 | int |
| 3983 | main (void) |
| 3984 | { |
| 3985 | |
| 3986 | ; |
| 3987 | return 0; |
| 3988 | } |
| 3989 | _ACEOF |
| 3990 | if ac_fn_c_try_compile "$LINENO" |
| 3991 | then : |
| 3992 | ac_cv_prog_cc_g=yes |
| 3993 | else $as_nop |
| 3994 | CFLAGS="" |
| 3995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3996 | /* end confdefs.h. */ |
| 3997 | |
| 3998 | int |
| 3999 | main (void) |
| 4000 | { |
| 4001 | |
| 4002 | ; |
| 4003 | return 0; |
| 4004 | } |
| 4005 | _ACEOF |
| 4006 | if ac_fn_c_try_compile "$LINENO" |
| 4007 | then : |
| 4008 | |
| 4009 | else $as_nop |
| 4010 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4011 | CFLAGS="-g" |
| 4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4013 | /* end confdefs.h. */ |
| 4014 | |
| 4015 | int |
| 4016 | main (void) |
| 4017 | { |
| 4018 | |
| 4019 | ; |
| 4020 | return 0; |
| 4021 | } |
| 4022 | _ACEOF |
| 4023 | if ac_fn_c_try_compile "$LINENO" |
| 4024 | then : |
| 4025 | ac_cv_prog_cc_g=yes |
| 4026 | fi |
| 4027 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4028 | fi |
| 4029 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4030 | fi |
| 4031 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4032 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4033 | fi |
| 4034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4035 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4036 | if test $ac_test_CFLAGS; then |
| 4037 | CFLAGS=$ac_save_CFLAGS |
| 4038 | elif test $ac_cv_prog_cc_g = yes; then |
| 4039 | if test "$GCC" = yes; then |
| 4040 | CFLAGS="-g -O2" |
| 4041 | else |
| 4042 | CFLAGS="-g" |
| 4043 | fi |
| 4044 | else |
| 4045 | if test "$GCC" = yes; then |
| 4046 | CFLAGS="-O2" |
| 4047 | else |
| 4048 | CFLAGS= |
| 4049 | fi |
| 4050 | fi |
| 4051 | ac_prog_cc_stdc=no |
| 4052 | if test x$ac_prog_cc_stdc = xno |
| 4053 | then : |
| 4054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4055 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4056 | if test ${ac_cv_prog_cc_c11+y} |
| 4057 | then : |
| 4058 | printf %s "(cached) " >&6 |
| 4059 | else $as_nop |
| 4060 | ac_cv_prog_cc_c11=no |
| 4061 | ac_save_CC=$CC |
| 4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4063 | /* end confdefs.h. */ |
| 4064 | $ac_c_conftest_c11_program |
| 4065 | _ACEOF |
| 4066 | for ac_arg in '' -std=gnu11 |
| 4067 | do |
| 4068 | CC="$ac_save_CC $ac_arg" |
| 4069 | if ac_fn_c_try_compile "$LINENO" |
| 4070 | then : |
| 4071 | ac_cv_prog_cc_c11=$ac_arg |
| 4072 | fi |
| 4073 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4074 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4075 | done |
| 4076 | rm -f conftest.$ac_ext |
| 4077 | CC=$ac_save_CC |
| 4078 | fi |
| 4079 | |
| 4080 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4081 | then : |
| 4082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4083 | printf "%s\n" "unsupported" >&6; } |
| 4084 | else $as_nop |
| 4085 | if test "x$ac_cv_prog_cc_c11" = x |
| 4086 | then : |
| 4087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4088 | printf "%s\n" "none needed" >&6; } |
| 4089 | else $as_nop |
| 4090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4091 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4092 | CC="$CC $ac_cv_prog_cc_c11" |
| 4093 | fi |
| 4094 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4095 | ac_prog_cc_stdc=c11 |
| 4096 | fi |
| 4097 | fi |
| 4098 | if test x$ac_prog_cc_stdc = xno |
| 4099 | then : |
| 4100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4101 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4102 | if test ${ac_cv_prog_cc_c99+y} |
| 4103 | then : |
| 4104 | printf %s "(cached) " >&6 |
| 4105 | else $as_nop |
| 4106 | ac_cv_prog_cc_c99=no |
| 4107 | ac_save_CC=$CC |
| 4108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4109 | /* end confdefs.h. */ |
| 4110 | $ac_c_conftest_c99_program |
| 4111 | _ACEOF |
| 4112 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4113 | do |
| 4114 | CC="$ac_save_CC $ac_arg" |
| 4115 | if ac_fn_c_try_compile "$LINENO" |
| 4116 | then : |
| 4117 | ac_cv_prog_cc_c99=$ac_arg |
| 4118 | fi |
| 4119 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4120 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4121 | done |
| 4122 | rm -f conftest.$ac_ext |
| 4123 | CC=$ac_save_CC |
| 4124 | fi |
| 4125 | |
| 4126 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4127 | then : |
| 4128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4129 | printf "%s\n" "unsupported" >&6; } |
| 4130 | else $as_nop |
| 4131 | if test "x$ac_cv_prog_cc_c99" = x |
| 4132 | then : |
| 4133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4134 | printf "%s\n" "none needed" >&6; } |
| 4135 | else $as_nop |
| 4136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4137 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4138 | CC="$CC $ac_cv_prog_cc_c99" |
| 4139 | fi |
| 4140 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4141 | ac_prog_cc_stdc=c99 |
| 4142 | fi |
| 4143 | fi |
| 4144 | if test x$ac_prog_cc_stdc = xno |
| 4145 | then : |
| 4146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4147 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4148 | if test ${ac_cv_prog_cc_c89+y} |
| 4149 | then : |
| 4150 | printf %s "(cached) " >&6 |
| 4151 | else $as_nop |
| 4152 | ac_cv_prog_cc_c89=no |
| 4153 | ac_save_CC=$CC |
| 4154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4155 | /* end confdefs.h. */ |
| 4156 | $ac_c_conftest_c89_program |
| 4157 | _ACEOF |
| 4158 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4159 | do |
| 4160 | CC="$ac_save_CC $ac_arg" |
| 4161 | if ac_fn_c_try_compile "$LINENO" |
| 4162 | then : |
| 4163 | ac_cv_prog_cc_c89=$ac_arg |
| 4164 | fi |
| 4165 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4166 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4167 | done |
| 4168 | rm -f conftest.$ac_ext |
| 4169 | CC=$ac_save_CC |
| 4170 | fi |
| 4171 | |
| 4172 | if test "x$ac_cv_prog_cc_c89" = xno |
| 4173 | then : |
| 4174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4175 | printf "%s\n" "unsupported" >&6; } |
| 4176 | else $as_nop |
| 4177 | if test "x$ac_cv_prog_cc_c89" = x |
| 4178 | then : |
| 4179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4180 | printf "%s\n" "none needed" >&6; } |
| 4181 | else $as_nop |
| 4182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4183 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4184 | CC="$CC $ac_cv_prog_cc_c89" |
| 4185 | fi |
| 4186 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4187 | ac_prog_cc_stdc=c89 |
| 4188 | fi |
| 4189 | fi |
| 4190 | |
| 4191 | ac_ext=c |
| 4192 | ac_cpp='$CPP $CPPFLAGS' |
| 4193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4196 | |
| 4197 | |
| 4198 | |
| 4199 | |
| 4200 | |
| 4201 | |
| 4202 | # Check for compiler |
| 4203 | # Needs to be split off into an extra macro to ensure right expansion |
| 4204 | # order. |
| 4205 | |
| 4206 | |
| 4207 | if test x"$_ax_prog_cc_mpi_mpi_wanted" = xno |
| 4208 | then : |
| 4209 | _ax_prog_cc_mpi_mpi_found=no |
| 4210 | else $as_nop |
| 4211 | |
| 4212 | ac_ext=c |
| 4213 | ac_cpp='$CPP $CPPFLAGS' |
| 4214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4217 | |
| 4218 | # test whether MPI_Init is available |
| 4219 | # We do not use AC_SEARCH_LIBS here, as it caches its outcome and |
| 4220 | # thus disallows corresponding calls in the other AX_PROG_*_MPI |
| 4221 | # macros. |
| 4222 | for lib in NONE mpi mpich; do |
| 4223 | save_LIBS=$LIBS |
| 4224 | if test x"$lib" = xNONE; then |
| 4225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init" >&5 |
| 4226 | printf %s "checking for function MPI_Init... " >&6; } |
| 4227 | else |
| 4228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init in -l$lib" >&5 |
| 4229 | printf %s "checking for function MPI_Init in -l$lib... " >&6; } |
| 4230 | LIBS="-l$lib $LIBS" |
| 4231 | fi |
| 4232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4233 | /* end confdefs.h. */ |
| 4234 | |
| 4235 | /* Override any GCC internal prototype to avoid an error. |
| 4236 | Use char because int might match the return type of a GCC |
| 4237 | builtin and then its argument prototype would still apply. */ |
| 4238 | char MPI_Init (); |
| 4239 | int |
| 4240 | main (void) |
| 4241 | { |
| 4242 | return MPI_Init (); |
| 4243 | ; |
| 4244 | return 0; |
| 4245 | } |
| 4246 | _ACEOF |
| 4247 | if ac_fn_c_try_link "$LINENO" |
| 4248 | then : |
| 4249 | _ax_prog_cc_mpi_mpi_found=yes |
| 4250 | else $as_nop |
| 4251 | _ax_prog_cc_mpi_mpi_found=no |
| 4252 | fi |
| 4253 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4254 | conftest$ac_exeext conftest.$ac_ext |
| 4255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_found" >&5 |
| 4256 | printf "%s\n" "$_ax_prog_cc_mpi_mpi_found" >&6; } |
| 4257 | if test "x$_ax_prog_cc_mpi_mpi_found" = "xyes"; then |
| 4258 | break; |
| 4259 | fi |
| 4260 | LIBS=$save_LIBS |
| 4261 | done |
| 4262 | |
| 4263 | # Check for header |
| 4264 | if test x"$_ax_prog_cc_mpi_mpi_found" = xyes |
| 4265 | then : |
| 4266 | |
| 4267 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4268 | printf %s "checking for mpi.h... " >&6; } |
| 4269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4270 | /* end confdefs.h. */ |
| 4271 | #include <mpi.h> |
| 4272 | int |
| 4273 | main (void) |
| 4274 | { |
| 4275 | |
| 4276 | ; |
| 4277 | return 0; |
| 4278 | } |
| 4279 | _ACEOF |
| 4280 | if ac_fn_c_try_compile "$LINENO" |
| 4281 | then : |
| 4282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4283 | printf "%s\n" "yes" >&6; } |
| 4284 | else $as_nop |
| 4285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4286 | printf "%s\n" "no" >&6; } |
| 4287 | _ax_prog_cc_mpi_mpi_found=no |
| 4288 | |
| 4289 | fi |
| 4290 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4291 | |
| 4292 | fi |
| 4293 | ac_ext=c |
| 4294 | ac_cpp='$CPP $CPPFLAGS' |
| 4295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4298 | |
| 4299 | |
| 4300 | fi |
| 4301 | |
| 4302 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4303 | if test x"$_ax_prog_cc_mpi_mpi_found" = xyes |
| 4304 | then : |
| 4305 | |
| 4306 | |
| 4307 | printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h |
| 4308 | |
| 4309 | |
| 4310 | printf "%s\n" "#define HMMER_MPI 1" >>confdefs.h |
| 4311 | |
| 4312 | MPI_UTESTS="mpi_utest" |
| 4313 | |
| 4314 | MPI_BENCHMARKS="mpi_benchmark" |
| 4315 | |
| 4316 | : |
| 4317 | |
| 4318 | else $as_nop |
| 4319 | |
| 4320 | if test x"$enable_mpi" = xyes; then |
| 4321 | as_fn_error $? "MPI library not found for --enable-mpi" "$LINENO" 5; |
| 4322 | fi |
| 4323 | : |
| 4324 | |
| 4325 | fi |
| 4326 | |
| 4327 | |
| 4328 | ac_ext=c |
| 4329 | ac_cpp='$CPP $CPPFLAGS' |
| 4330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4333 | if test -n "$ac_tool_prefix"; then |
| 4334 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4335 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4337 | printf %s "checking for $ac_word... " >&6; } |
| 4338 | if test ${ac_cv_prog_CC+y} |
| 4339 | then : |
| 4340 | printf %s "(cached) " >&6 |
| 4341 | else $as_nop |
| 4342 | if test -n "$CC"; then |
| 4343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4344 | else |
| 4345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4346 | for as_dir in $PATH |
| 4347 | do |
| 4348 | IFS=$as_save_IFS |
| 4349 | case $as_dir in #((( |
| 4350 | '') as_dir=./ ;; |
| 4351 | */) ;; |
| 4352 | *) as_dir=$as_dir/ ;; |
| 4353 | esac |
| 4354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4355 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4356 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4357 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4358 | break 2 |
| 4359 | fi |
| 4360 | done |
| 4361 | done |
| 4362 | IFS=$as_save_IFS |
| 4363 | |
| 4364 | fi |
| 4365 | fi |
| 4366 | CC=$ac_cv_prog_CC |
| 4367 | if test -n "$CC"; then |
| 4368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4369 | printf "%s\n" "$CC" >&6; } |
| 4370 | else |
| 4371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4372 | printf "%s\n" "no" >&6; } |
| 4373 | fi |
| 4374 | |
| 4375 | |
| 4376 | fi |
| 4377 | if test -z "$ac_cv_prog_CC"; then |
| 4378 | ac_ct_CC=$CC |
| 4379 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4380 | set dummy gcc; ac_word=$2 |
| 4381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4382 | printf %s "checking for $ac_word... " >&6; } |
| 4383 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4384 | then : |
| 4385 | printf %s "(cached) " >&6 |
| 4386 | else $as_nop |
| 4387 | if test -n "$ac_ct_CC"; then |
| 4388 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4389 | else |
| 4390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4391 | for as_dir in $PATH |
| 4392 | do |
| 4393 | IFS=$as_save_IFS |
| 4394 | case $as_dir in #((( |
| 4395 | '') as_dir=./ ;; |
| 4396 | */) ;; |
| 4397 | *) as_dir=$as_dir/ ;; |
| 4398 | esac |
| 4399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4400 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4401 | ac_cv_prog_ac_ct_CC="gcc" |
| 4402 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4403 | break 2 |
| 4404 | fi |
| 4405 | done |
| 4406 | done |
| 4407 | IFS=$as_save_IFS |
| 4408 | |
| 4409 | fi |
| 4410 | fi |
| 4411 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4412 | if test -n "$ac_ct_CC"; then |
| 4413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4414 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4415 | else |
| 4416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4417 | printf "%s\n" "no" >&6; } |
| 4418 | fi |
| 4419 | |
| 4420 | if test "x$ac_ct_CC" = x; then |
| 4421 | CC="" |
| 4422 | else |
| 4423 | case $cross_compiling:$ac_tool_warned in |
| 4424 | yes:) |
| 4425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4426 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4427 | ac_tool_warned=yes ;; |
| 4428 | esac |
| 4429 | CC=$ac_ct_CC |
| 4430 | fi |
| 4431 | else |
| 4432 | CC="$ac_cv_prog_CC" |
| 4433 | fi |
| 4434 | |
| 4435 | if test -z "$CC"; then |
| 4436 | if test -n "$ac_tool_prefix"; then |
| 4437 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4438 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4440 | printf %s "checking for $ac_word... " >&6; } |
| 4441 | if test ${ac_cv_prog_CC+y} |
| 4442 | then : |
| 4443 | printf %s "(cached) " >&6 |
| 4444 | else $as_nop |
| 4445 | if test -n "$CC"; then |
| 4446 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4447 | else |
| 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | case $as_dir in #((( |
| 4453 | '') as_dir=./ ;; |
| 4454 | */) ;; |
| 4455 | *) as_dir=$as_dir/ ;; |
| 4456 | esac |
| 4457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4458 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4459 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4460 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4461 | break 2 |
| 4462 | fi |
| 4463 | done |
| 4464 | done |
| 4465 | IFS=$as_save_IFS |
| 4466 | |
| 4467 | fi |
| 4468 | fi |
| 4469 | CC=$ac_cv_prog_CC |
| 4470 | if test -n "$CC"; then |
| 4471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4472 | printf "%s\n" "$CC" >&6; } |
| 4473 | else |
| 4474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4475 | printf "%s\n" "no" >&6; } |
| 4476 | fi |
| 4477 | |
| 4478 | |
| 4479 | fi |
| 4480 | fi |
| 4481 | if test -z "$CC"; then |
| 4482 | # Extract the first word of "cc", so it can be a program name with args. |
| 4483 | set dummy cc; ac_word=$2 |
| 4484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4485 | printf %s "checking for $ac_word... " >&6; } |
| 4486 | if test ${ac_cv_prog_CC+y} |
| 4487 | then : |
| 4488 | printf %s "(cached) " >&6 |
| 4489 | else $as_nop |
| 4490 | if test -n "$CC"; then |
| 4491 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4492 | else |
| 4493 | ac_prog_rejected=no |
| 4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4495 | for as_dir in $PATH |
| 4496 | do |
| 4497 | IFS=$as_save_IFS |
| 4498 | case $as_dir in #((( |
| 4499 | '') as_dir=./ ;; |
| 4500 | */) ;; |
| 4501 | *) as_dir=$as_dir/ ;; |
| 4502 | esac |
| 4503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4504 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4505 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4506 | ac_prog_rejected=yes |
| 4507 | continue |
| 4508 | fi |
| 4509 | ac_cv_prog_CC="cc" |
| 4510 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4511 | break 2 |
| 4512 | fi |
| 4513 | done |
| 4514 | done |
| 4515 | IFS=$as_save_IFS |
| 4516 | |
| 4517 | if test $ac_prog_rejected = yes; then |
| 4518 | # We found a bogon in the path, so make sure we never use it. |
| 4519 | set dummy $ac_cv_prog_CC |
| 4520 | shift |
| 4521 | if test $# != 0; then |
| 4522 | # We chose a different compiler from the bogus one. |
| 4523 | # However, it has the same basename, so the bogon will be chosen |
| 4524 | # first if we set CC to just the basename; use the full file name. |
| 4525 | shift |
| 4526 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4527 | fi |
| 4528 | fi |
| 4529 | fi |
| 4530 | fi |
| 4531 | CC=$ac_cv_prog_CC |
| 4532 | if test -n "$CC"; then |
| 4533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4534 | printf "%s\n" "$CC" >&6; } |
| 4535 | else |
| 4536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4537 | printf "%s\n" "no" >&6; } |
| 4538 | fi |
| 4539 | |
| 4540 | |
| 4541 | fi |
| 4542 | if test -z "$CC"; then |
| 4543 | if test -n "$ac_tool_prefix"; then |
| 4544 | for ac_prog in cl.exe |
| 4545 | do |
| 4546 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4547 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4549 | printf %s "checking for $ac_word... " >&6; } |
| 4550 | if test ${ac_cv_prog_CC+y} |
| 4551 | then : |
| 4552 | printf %s "(cached) " >&6 |
| 4553 | else $as_nop |
| 4554 | if test -n "$CC"; then |
| 4555 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4556 | else |
| 4557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4558 | for as_dir in $PATH |
| 4559 | do |
| 4560 | IFS=$as_save_IFS |
| 4561 | case $as_dir in #((( |
| 4562 | '') as_dir=./ ;; |
| 4563 | */) ;; |
| 4564 | *) as_dir=$as_dir/ ;; |
| 4565 | esac |
| 4566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4567 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4569 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4570 | break 2 |
| 4571 | fi |
| 4572 | done |
| 4573 | done |
| 4574 | IFS=$as_save_IFS |
| 4575 | |
| 4576 | fi |
| 4577 | fi |
| 4578 | CC=$ac_cv_prog_CC |
| 4579 | if test -n "$CC"; then |
| 4580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4581 | printf "%s\n" "$CC" >&6; } |
| 4582 | else |
| 4583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4584 | printf "%s\n" "no" >&6; } |
| 4585 | fi |
| 4586 | |
| 4587 | |
| 4588 | test -n "$CC" && break |
| 4589 | done |
| 4590 | fi |
| 4591 | if test -z "$CC"; then |
| 4592 | ac_ct_CC=$CC |
| 4593 | for ac_prog in cl.exe |
| 4594 | do |
| 4595 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4596 | set dummy $ac_prog; ac_word=$2 |
| 4597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4598 | printf %s "checking for $ac_word... " >&6; } |
| 4599 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4600 | then : |
| 4601 | printf %s "(cached) " >&6 |
| 4602 | else $as_nop |
| 4603 | if test -n "$ac_ct_CC"; then |
| 4604 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4605 | else |
| 4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4607 | for as_dir in $PATH |
| 4608 | do |
| 4609 | IFS=$as_save_IFS |
| 4610 | case $as_dir in #((( |
| 4611 | '') as_dir=./ ;; |
| 4612 | */) ;; |
| 4613 | *) as_dir=$as_dir/ ;; |
| 4614 | esac |
| 4615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4616 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4617 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4618 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4619 | break 2 |
| 4620 | fi |
| 4621 | done |
| 4622 | done |
| 4623 | IFS=$as_save_IFS |
| 4624 | |
| 4625 | fi |
| 4626 | fi |
| 4627 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4628 | if test -n "$ac_ct_CC"; then |
| 4629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4630 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4631 | else |
| 4632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4633 | printf "%s\n" "no" >&6; } |
| 4634 | fi |
| 4635 | |
| 4636 | |
| 4637 | test -n "$ac_ct_CC" && break |
| 4638 | done |
| 4639 | |
| 4640 | if test "x$ac_ct_CC" = x; then |
| 4641 | CC="" |
| 4642 | else |
| 4643 | case $cross_compiling:$ac_tool_warned in |
| 4644 | yes:) |
| 4645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4646 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4647 | ac_tool_warned=yes ;; |
| 4648 | esac |
| 4649 | CC=$ac_ct_CC |
| 4650 | fi |
| 4651 | fi |
| 4652 | |
| 4653 | fi |
| 4654 | if test -z "$CC"; then |
| 4655 | if test -n "$ac_tool_prefix"; then |
| 4656 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4657 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4659 | printf %s "checking for $ac_word... " >&6; } |
| 4660 | if test ${ac_cv_prog_CC+y} |
| 4661 | then : |
| 4662 | printf %s "(cached) " >&6 |
| 4663 | else $as_nop |
| 4664 | if test -n "$CC"; then |
| 4665 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4666 | else |
| 4667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4668 | for as_dir in $PATH |
| 4669 | do |
| 4670 | IFS=$as_save_IFS |
| 4671 | case $as_dir in #((( |
| 4672 | '') as_dir=./ ;; |
| 4673 | */) ;; |
| 4674 | *) as_dir=$as_dir/ ;; |
| 4675 | esac |
| 4676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4677 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4678 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4679 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4680 | break 2 |
| 4681 | fi |
| 4682 | done |
| 4683 | done |
| 4684 | IFS=$as_save_IFS |
| 4685 | |
| 4686 | fi |
| 4687 | fi |
| 4688 | CC=$ac_cv_prog_CC |
| 4689 | if test -n "$CC"; then |
| 4690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4691 | printf "%s\n" "$CC" >&6; } |
| 4692 | else |
| 4693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4694 | printf "%s\n" "no" >&6; } |
| 4695 | fi |
| 4696 | |
| 4697 | |
| 4698 | fi |
| 4699 | if test -z "$ac_cv_prog_CC"; then |
| 4700 | ac_ct_CC=$CC |
| 4701 | # Extract the first word of "clang", so it can be a program name with args. |
| 4702 | set dummy clang; ac_word=$2 |
| 4703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4704 | printf %s "checking for $ac_word... " >&6; } |
| 4705 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4706 | then : |
| 4707 | printf %s "(cached) " >&6 |
| 4708 | else $as_nop |
| 4709 | if test -n "$ac_ct_CC"; then |
| 4710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4711 | else |
| 4712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4713 | for as_dir in $PATH |
| 4714 | do |
| 4715 | IFS=$as_save_IFS |
| 4716 | case $as_dir in #((( |
| 4717 | '') as_dir=./ ;; |
| 4718 | */) ;; |
| 4719 | *) as_dir=$as_dir/ ;; |
| 4720 | esac |
| 4721 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4722 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4723 | ac_cv_prog_ac_ct_CC="clang" |
| 4724 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4725 | break 2 |
| 4726 | fi |
| 4727 | done |
| 4728 | done |
| 4729 | IFS=$as_save_IFS |
| 4730 | |
| 4731 | fi |
| 4732 | fi |
| 4733 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4734 | if test -n "$ac_ct_CC"; then |
| 4735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4736 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4737 | else |
| 4738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4739 | printf "%s\n" "no" >&6; } |
| 4740 | fi |
| 4741 | |
| 4742 | if test "x$ac_ct_CC" = x; then |
| 4743 | CC="" |
| 4744 | else |
| 4745 | case $cross_compiling:$ac_tool_warned in |
| 4746 | yes:) |
| 4747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4748 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4749 | ac_tool_warned=yes ;; |
| 4750 | esac |
| 4751 | CC=$ac_ct_CC |
| 4752 | fi |
| 4753 | else |
| 4754 | CC="$ac_cv_prog_CC" |
| 4755 | fi |
| 4756 | |
| 4757 | fi |
| 4758 | |
| 4759 | |
| 4760 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4761 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4762 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4763 | See \`config.log' for more details" "$LINENO" 5; } |
| 4764 | |
| 4765 | # Provide some information about the compiler. |
| 4766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4767 | set X $ac_compile |
| 4768 | ac_compiler=$2 |
| 4769 | for ac_option in --version -v -V -qversion -version; do |
| 4770 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4771 | case "(($ac_try" in |
| 4772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4773 | *) ac_try_echo=$ac_try;; |
| 4774 | esac |
| 4775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4776 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4777 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4778 | ac_status=$? |
| 4779 | if test -s conftest.err; then |
| 4780 | sed '10a\ |
| 4781 | ... rest of stderr output deleted ... |
| 4782 | 10q' conftest.err >conftest.er1 |
| 4783 | cat conftest.er1 >&5 |
| 4784 | fi |
| 4785 | rm -f conftest.er1 conftest.err |
| 4786 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4787 | test $ac_status = 0; } |
| 4788 | done |
| 4789 | |
| 4790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4791 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4792 | if test ${ac_cv_c_compiler_gnu+y} |
| 4793 | then : |
| 4794 | printf %s "(cached) " >&6 |
| 4795 | else $as_nop |
| 4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4797 | /* end confdefs.h. */ |
| 4798 | |
| 4799 | int |
| 4800 | main (void) |
| 4801 | { |
| 4802 | #ifndef __GNUC__ |
| 4803 | choke me |
| 4804 | #endif |
| 4805 | |
| 4806 | ; |
| 4807 | return 0; |
| 4808 | } |
| 4809 | _ACEOF |
| 4810 | if ac_fn_c_try_compile "$LINENO" |
| 4811 | then : |
| 4812 | ac_compiler_gnu=yes |
| 4813 | else $as_nop |
| 4814 | ac_compiler_gnu=no |
| 4815 | fi |
| 4816 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4817 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4818 | |
| 4819 | fi |
| 4820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4821 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4823 | |
| 4824 | if test $ac_compiler_gnu = yes; then |
| 4825 | GCC=yes |
| 4826 | else |
| 4827 | GCC= |
| 4828 | fi |
| 4829 | ac_test_CFLAGS=${CFLAGS+y} |
| 4830 | ac_save_CFLAGS=$CFLAGS |
| 4831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4832 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4833 | if test ${ac_cv_prog_cc_g+y} |
| 4834 | then : |
| 4835 | printf %s "(cached) " >&6 |
| 4836 | else $as_nop |
| 4837 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4838 | ac_c_werror_flag=yes |
| 4839 | ac_cv_prog_cc_g=no |
| 4840 | CFLAGS="-g" |
| 4841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4842 | /* end confdefs.h. */ |
| 4843 | |
| 4844 | int |
| 4845 | main (void) |
| 4846 | { |
| 4847 | |
| 4848 | ; |
| 4849 | return 0; |
| 4850 | } |
| 4851 | _ACEOF |
| 4852 | if ac_fn_c_try_compile "$LINENO" |
| 4853 | then : |
| 4854 | ac_cv_prog_cc_g=yes |
| 4855 | else $as_nop |
| 4856 | CFLAGS="" |
| 4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4858 | /* end confdefs.h. */ |
| 4859 | |
| 4860 | int |
| 4861 | main (void) |
| 4862 | { |
| 4863 | |
| 4864 | ; |
| 4865 | return 0; |
| 4866 | } |
| 4867 | _ACEOF |
| 4868 | if ac_fn_c_try_compile "$LINENO" |
| 4869 | then : |
| 4870 | |
| 4871 | else $as_nop |
| 4872 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4873 | CFLAGS="-g" |
| 4874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4875 | /* end confdefs.h. */ |
| 4876 | |
| 4877 | int |
| 4878 | main (void) |
| 4879 | { |
| 4880 | |
| 4881 | ; |
| 4882 | return 0; |
| 4883 | } |
| 4884 | _ACEOF |
| 4885 | if ac_fn_c_try_compile "$LINENO" |
| 4886 | then : |
| 4887 | ac_cv_prog_cc_g=yes |
| 4888 | fi |
| 4889 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4890 | fi |
| 4891 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4892 | fi |
| 4893 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4894 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4895 | fi |
| 4896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4897 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4898 | if test $ac_test_CFLAGS; then |
| 4899 | CFLAGS=$ac_save_CFLAGS |
| 4900 | elif test $ac_cv_prog_cc_g = yes; then |
| 4901 | if test "$GCC" = yes; then |
| 4902 | CFLAGS="-g -O2" |
| 4903 | else |
| 4904 | CFLAGS="-g" |
| 4905 | fi |
| 4906 | else |
| 4907 | if test "$GCC" = yes; then |
| 4908 | CFLAGS="-O2" |
| 4909 | else |
| 4910 | CFLAGS= |
| 4911 | fi |
| 4912 | fi |
| 4913 | ac_prog_cc_stdc=no |
| 4914 | if test x$ac_prog_cc_stdc = xno |
| 4915 | then : |
| 4916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4917 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4918 | if test ${ac_cv_prog_cc_c11+y} |
| 4919 | then : |
| 4920 | printf %s "(cached) " >&6 |
| 4921 | else $as_nop |
| 4922 | ac_cv_prog_cc_c11=no |
| 4923 | ac_save_CC=$CC |
| 4924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4925 | /* end confdefs.h. */ |
| 4926 | $ac_c_conftest_c11_program |
| 4927 | _ACEOF |
| 4928 | for ac_arg in '' -std=gnu11 |
| 4929 | do |
| 4930 | CC="$ac_save_CC $ac_arg" |
| 4931 | if ac_fn_c_try_compile "$LINENO" |
| 4932 | then : |
| 4933 | ac_cv_prog_cc_c11=$ac_arg |
| 4934 | fi |
| 4935 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4936 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4937 | done |
| 4938 | rm -f conftest.$ac_ext |
| 4939 | CC=$ac_save_CC |
| 4940 | fi |
| 4941 | |
| 4942 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4943 | then : |
| 4944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4945 | printf "%s\n" "unsupported" >&6; } |
| 4946 | else $as_nop |
| 4947 | if test "x$ac_cv_prog_cc_c11" = x |
| 4948 | then : |
| 4949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4950 | printf "%s\n" "none needed" >&6; } |
| 4951 | else $as_nop |
| 4952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4953 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4954 | CC="$CC $ac_cv_prog_cc_c11" |
| 4955 | fi |
| 4956 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4957 | ac_prog_cc_stdc=c11 |
| 4958 | fi |
| 4959 | fi |
| 4960 | if test x$ac_prog_cc_stdc = xno |
| 4961 | then : |
| 4962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4963 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4964 | if test ${ac_cv_prog_cc_c99+y} |
| 4965 | then : |
| 4966 | printf %s "(cached) " >&6 |
| 4967 | else $as_nop |
| 4968 | ac_cv_prog_cc_c99=no |
| 4969 | ac_save_CC=$CC |
| 4970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4971 | /* end confdefs.h. */ |
| 4972 | $ac_c_conftest_c99_program |
| 4973 | _ACEOF |
| 4974 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4975 | do |
| 4976 | CC="$ac_save_CC $ac_arg" |
| 4977 | if ac_fn_c_try_compile "$LINENO" |
| 4978 | then : |
| 4979 | ac_cv_prog_cc_c99=$ac_arg |
| 4980 | fi |
| 4981 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4982 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4983 | done |
| 4984 | rm -f conftest.$ac_ext |
| 4985 | CC=$ac_save_CC |
| 4986 | fi |
| 4987 | |
| 4988 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4989 | then : |
| 4990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4991 | printf "%s\n" "unsupported" >&6; } |
| 4992 | else $as_nop |
| 4993 | if test "x$ac_cv_prog_cc_c99" = x |
| 4994 | then : |
| 4995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4996 | printf "%s\n" "none needed" >&6; } |
| 4997 | else $as_nop |
| 4998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4999 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5000 | CC="$CC $ac_cv_prog_cc_c99" |
| 5001 | fi |
| 5002 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5003 | ac_prog_cc_stdc=c99 |
| 5004 | fi |
| 5005 | fi |
| 5006 | if test x$ac_prog_cc_stdc = xno |
| 5007 | then : |
| 5008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5009 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5010 | if test ${ac_cv_prog_cc_c89+y} |
| 5011 | then : |
| 5012 | printf %s "(cached) " >&6 |
| 5013 | else $as_nop |
| 5014 | ac_cv_prog_cc_c89=no |
| 5015 | ac_save_CC=$CC |
| 5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5017 | /* end confdefs.h. */ |
| 5018 | $ac_c_conftest_c89_program |
| 5019 | _ACEOF |
| 5020 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5021 | do |
| 5022 | CC="$ac_save_CC $ac_arg" |
| 5023 | if ac_fn_c_try_compile "$LINENO" |
| 5024 | then : |
| 5025 | ac_cv_prog_cc_c89=$ac_arg |
| 5026 | fi |
| 5027 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5028 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5029 | done |
| 5030 | rm -f conftest.$ac_ext |
| 5031 | CC=$ac_save_CC |
| 5032 | fi |
| 5033 | |
| 5034 | if test "x$ac_cv_prog_cc_c89" = xno |
| 5035 | then : |
| 5036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5037 | printf "%s\n" "unsupported" >&6; } |
| 5038 | else $as_nop |
| 5039 | if test "x$ac_cv_prog_cc_c89" = x |
| 5040 | then : |
| 5041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5042 | printf "%s\n" "none needed" >&6; } |
| 5043 | else $as_nop |
| 5044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5045 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5046 | CC="$CC $ac_cv_prog_cc_c89" |
| 5047 | fi |
| 5048 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5049 | ac_prog_cc_stdc=c89 |
| 5050 | fi |
| 5051 | fi |
| 5052 | |
| 5053 | ac_ext=c |
| 5054 | ac_cpp='$CPP $CPPFLAGS' |
| 5055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5058 | |
| 5059 | ac_ext=c |
| 5060 | ac_cpp='$CPP $CPPFLAGS' |
| 5061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5065 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 5066 | # On Suns, sometimes $CPP names a directory. |
| 5067 | if test -n "$CPP" && test -d "$CPP"; then |
| 5068 | CPP= |
| 5069 | fi |
| 5070 | if test -z "$CPP"; then |
| 5071 | if test ${ac_cv_prog_CPP+y} |
| 5072 | then : |
| 5073 | printf %s "(cached) " >&6 |
| 5074 | else $as_nop |
| 5075 | # Double quotes because $CC needs to be expanded |
| 5076 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5077 | do |
| 5078 | ac_preproc_ok=false |
| 5079 | for ac_c_preproc_warn_flag in '' yes |
| 5080 | do |
| 5081 | # Use a header file that comes with gcc, so configuring glibc |
| 5082 | # with a fresh cross-compiler works. |
| 5083 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5084 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5086 | /* end confdefs.h. */ |
| 5087 | #include <limits.h> |
| 5088 | Syntax error |
| 5089 | _ACEOF |
| 5090 | if ac_fn_c_try_cpp "$LINENO" |
| 5091 | then : |
| 5092 | |
| 5093 | else $as_nop |
| 5094 | # Broken: fails on valid input. |
| 5095 | continue |
| 5096 | fi |
| 5097 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5098 | |
| 5099 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5100 | # can be detected and how. |
| 5101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5102 | /* end confdefs.h. */ |
| 5103 | #include <ac_nonexistent.h> |
| 5104 | _ACEOF |
| 5105 | if ac_fn_c_try_cpp "$LINENO" |
| 5106 | then : |
| 5107 | # Broken: success on invalid input. |
| 5108 | continue |
| 5109 | else $as_nop |
| 5110 | # Passes both tests. |
| 5111 | ac_preproc_ok=: |
| 5112 | break |
| 5113 | fi |
| 5114 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5115 | |
| 5116 | done |
| 5117 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5118 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5119 | if $ac_preproc_ok |
| 5120 | then : |
| 5121 | break |
| 5122 | fi |
| 5123 | |
| 5124 | done |
| 5125 | ac_cv_prog_CPP=$CPP |
| 5126 | |
| 5127 | fi |
| 5128 | CPP=$ac_cv_prog_CPP |
| 5129 | else |
| 5130 | ac_cv_prog_CPP=$CPP |
| 5131 | fi |
| 5132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5133 | printf "%s\n" "$CPP" >&6; } |
| 5134 | ac_preproc_ok=false |
| 5135 | for ac_c_preproc_warn_flag in '' yes |
| 5136 | do |
| 5137 | # Use a header file that comes with gcc, so configuring glibc |
| 5138 | # with a fresh cross-compiler works. |
| 5139 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5140 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5142 | /* end confdefs.h. */ |
| 5143 | #include <limits.h> |
| 5144 | Syntax error |
| 5145 | _ACEOF |
| 5146 | if ac_fn_c_try_cpp "$LINENO" |
| 5147 | then : |
| 5148 | |
| 5149 | else $as_nop |
| 5150 | # Broken: fails on valid input. |
| 5151 | continue |
| 5152 | fi |
| 5153 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5154 | |
| 5155 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5156 | # can be detected and how. |
| 5157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5158 | /* end confdefs.h. */ |
| 5159 | #include <ac_nonexistent.h> |
| 5160 | _ACEOF |
| 5161 | if ac_fn_c_try_cpp "$LINENO" |
| 5162 | then : |
| 5163 | # Broken: success on invalid input. |
| 5164 | continue |
| 5165 | else $as_nop |
| 5166 | # Passes both tests. |
| 5167 | ac_preproc_ok=: |
| 5168 | break |
| 5169 | fi |
| 5170 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5171 | |
| 5172 | done |
| 5173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5174 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5175 | if $ac_preproc_ok |
| 5176 | then : |
| 5177 | |
| 5178 | else $as_nop |
| 5179 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5180 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5181 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5182 | See \`config.log' for more details" "$LINENO" 5; } |
| 5183 | fi |
| 5184 | |
| 5185 | ac_ext=c |
| 5186 | ac_cpp='$CPP $CPPFLAGS' |
| 5187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5190 | |
| 5191 | |
| 5192 | # Find a good install program. We prefer a C program (faster), |
| 5193 | # so one script is as good as another. But avoid the broken or |
| 5194 | # incompatible versions: |
| 5195 | # SysV /etc/install, /usr/sbin/install |
| 5196 | # SunOS /usr/etc/install |
| 5197 | # IRIX /sbin/install |
| 5198 | # AIX /bin/install |
| 5199 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5200 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5201 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5202 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5203 | # OS/2's system install, which has a completely different semantic |
| 5204 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5205 | # Reject install programs that cannot install multiple files. |
| 5206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5207 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 5208 | if test -z "$INSTALL"; then |
| 5209 | if test ${ac_cv_path_install+y} |
| 5210 | then : |
| 5211 | printf %s "(cached) " >&6 |
| 5212 | else $as_nop |
| 5213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5214 | for as_dir in $PATH |
| 5215 | do |
| 5216 | IFS=$as_save_IFS |
| 5217 | case $as_dir in #((( |
| 5218 | '') as_dir=./ ;; |
| 5219 | */) ;; |
| 5220 | *) as_dir=$as_dir/ ;; |
| 5221 | esac |
| 5222 | # Account for fact that we put trailing slashes in our PATH walk. |
| 5223 | case $as_dir in #(( |
| 5224 | ./ | /[cC]/* | \ |
| 5225 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5226 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 5227 | /usr/ucb/* ) ;; |
| 5228 | *) |
| 5229 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5230 | # Don't use installbsd from OSF since it installs stuff as root |
| 5231 | # by default. |
| 5232 | for ac_prog in ginstall scoinst install; do |
| 5233 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5234 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 5235 | if test $ac_prog = install && |
| 5236 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5237 | # AIX install. It has an incompatible calling convention. |
| 5238 | : |
| 5239 | elif test $ac_prog = install && |
| 5240 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5241 | # program-specific install script used by HP pwplus--don't use. |
| 5242 | : |
| 5243 | else |
| 5244 | rm -rf conftest.one conftest.two conftest.dir |
| 5245 | echo one > conftest.one |
| 5246 | echo two > conftest.two |
| 5247 | mkdir conftest.dir |
| 5248 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 5249 | test -s conftest.one && test -s conftest.two && |
| 5250 | test -s conftest.dir/conftest.one && |
| 5251 | test -s conftest.dir/conftest.two |
| 5252 | then |
| 5253 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 5254 | break 3 |
| 5255 | fi |
| 5256 | fi |
| 5257 | fi |
| 5258 | done |
| 5259 | done |
| 5260 | ;; |
| 5261 | esac |
| 5262 | |
| 5263 | done |
| 5264 | IFS=$as_save_IFS |
| 5265 | |
| 5266 | rm -rf conftest.one conftest.two conftest.dir |
| 5267 | |
| 5268 | fi |
| 5269 | if test ${ac_cv_path_install+y}; then |
| 5270 | INSTALL=$ac_cv_path_install |
| 5271 | else |
| 5272 | # As a last resort, use the slow shell script. Don't cache a |
| 5273 | # value for INSTALL within a source directory, because that will |
| 5274 | # break other packages using the cache if that directory is |
| 5275 | # removed, or if the value is a relative name. |
| 5276 | INSTALL=$ac_install_sh |
| 5277 | fi |
| 5278 | fi |
| 5279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5280 | printf "%s\n" "$INSTALL" >&6; } |
| 5281 | |
| 5282 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5283 | # It thinks the first close brace ends the variable substitution. |
| 5284 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5285 | |
| 5286 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5287 | |
| 5288 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5289 | |
| 5290 | if test -n "$ac_tool_prefix"; then |
| 5291 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5292 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5294 | printf %s "checking for $ac_word... " >&6; } |
| 5295 | if test ${ac_cv_prog_STRIP+y} |
| 5296 | then : |
| 5297 | printf %s "(cached) " >&6 |
| 5298 | else $as_nop |
| 5299 | if test -n "$STRIP"; then |
| 5300 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5301 | else |
| 5302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5303 | for as_dir in $PATH |
| 5304 | do |
| 5305 | IFS=$as_save_IFS |
| 5306 | case $as_dir in #((( |
| 5307 | '') as_dir=./ ;; |
| 5308 | */) ;; |
| 5309 | *) as_dir=$as_dir/ ;; |
| 5310 | esac |
| 5311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5312 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5313 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5314 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5315 | break 2 |
| 5316 | fi |
| 5317 | done |
| 5318 | done |
| 5319 | IFS=$as_save_IFS |
| 5320 | |
| 5321 | fi |
| 5322 | fi |
| 5323 | STRIP=$ac_cv_prog_STRIP |
| 5324 | if test -n "$STRIP"; then |
| 5325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5326 | printf "%s\n" "$STRIP" >&6; } |
| 5327 | else |
| 5328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5329 | printf "%s\n" "no" >&6; } |
| 5330 | fi |
| 5331 | |
| 5332 | |
| 5333 | fi |
| 5334 | if test -z "$ac_cv_prog_STRIP"; then |
| 5335 | ac_ct_STRIP=$STRIP |
| 5336 | # Extract the first word of "strip", so it can be a program name with args. |
| 5337 | set dummy strip; ac_word=$2 |
| 5338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5339 | printf %s "checking for $ac_word... " >&6; } |
| 5340 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 5341 | then : |
| 5342 | printf %s "(cached) " >&6 |
| 5343 | else $as_nop |
| 5344 | if test -n "$ac_ct_STRIP"; then |
| 5345 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5346 | else |
| 5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5348 | for as_dir in $PATH |
| 5349 | do |
| 5350 | IFS=$as_save_IFS |
| 5351 | case $as_dir in #((( |
| 5352 | '') as_dir=./ ;; |
| 5353 | */) ;; |
| 5354 | *) as_dir=$as_dir/ ;; |
| 5355 | esac |
| 5356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5357 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5358 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5359 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5360 | break 2 |
| 5361 | fi |
| 5362 | done |
| 5363 | done |
| 5364 | IFS=$as_save_IFS |
| 5365 | |
| 5366 | fi |
| 5367 | fi |
| 5368 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5369 | if test -n "$ac_ct_STRIP"; then |
| 5370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5371 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 5372 | else |
| 5373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5374 | printf "%s\n" "no" >&6; } |
| 5375 | fi |
| 5376 | |
| 5377 | if test "x$ac_ct_STRIP" = x; then |
| 5378 | STRIP="" |
| 5379 | else |
| 5380 | case $cross_compiling:$ac_tool_warned in |
| 5381 | yes:) |
| 5382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5383 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5384 | ac_tool_warned=yes ;; |
| 5385 | esac |
| 5386 | STRIP=$ac_ct_STRIP |
| 5387 | fi |
| 5388 | else |
| 5389 | STRIP="$ac_cv_prog_STRIP" |
| 5390 | fi |
| 5391 | |
| 5392 | if test -n "$ac_tool_prefix"; then |
| 5393 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5394 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5396 | printf %s "checking for $ac_word... " >&6; } |
| 5397 | if test ${ac_cv_prog_RANLIB+y} |
| 5398 | then : |
| 5399 | printf %s "(cached) " >&6 |
| 5400 | else $as_nop |
| 5401 | if test -n "$RANLIB"; then |
| 5402 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5403 | else |
| 5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5405 | for as_dir in $PATH |
| 5406 | do |
| 5407 | IFS=$as_save_IFS |
| 5408 | case $as_dir in #((( |
| 5409 | '') as_dir=./ ;; |
| 5410 | */) ;; |
| 5411 | *) as_dir=$as_dir/ ;; |
| 5412 | esac |
| 5413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5414 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5415 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5416 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5417 | break 2 |
| 5418 | fi |
| 5419 | done |
| 5420 | done |
| 5421 | IFS=$as_save_IFS |
| 5422 | |
| 5423 | fi |
| 5424 | fi |
| 5425 | RANLIB=$ac_cv_prog_RANLIB |
| 5426 | if test -n "$RANLIB"; then |
| 5427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5428 | printf "%s\n" "$RANLIB" >&6; } |
| 5429 | else |
| 5430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5431 | printf "%s\n" "no" >&6; } |
| 5432 | fi |
| 5433 | |
| 5434 | |
| 5435 | fi |
| 5436 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5437 | ac_ct_RANLIB=$RANLIB |
| 5438 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5439 | set dummy ranlib; ac_word=$2 |
| 5440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5441 | printf %s "checking for $ac_word... " >&6; } |
| 5442 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 5443 | then : |
| 5444 | printf %s "(cached) " >&6 |
| 5445 | else $as_nop |
| 5446 | if test -n "$ac_ct_RANLIB"; then |
| 5447 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5448 | else |
| 5449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5450 | for as_dir in $PATH |
| 5451 | do |
| 5452 | IFS=$as_save_IFS |
| 5453 | case $as_dir in #((( |
| 5454 | '') as_dir=./ ;; |
| 5455 | */) ;; |
| 5456 | *) as_dir=$as_dir/ ;; |
| 5457 | esac |
| 5458 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5459 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5460 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5461 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5462 | break 2 |
| 5463 | fi |
| 5464 | done |
| 5465 | done |
| 5466 | IFS=$as_save_IFS |
| 5467 | |
| 5468 | fi |
| 5469 | fi |
| 5470 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5471 | if test -n "$ac_ct_RANLIB"; then |
| 5472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5473 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 5474 | else |
| 5475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5476 | printf "%s\n" "no" >&6; } |
| 5477 | fi |
| 5478 | |
| 5479 | if test "x$ac_ct_RANLIB" = x; then |
| 5480 | RANLIB=":" |
| 5481 | else |
| 5482 | case $cross_compiling:$ac_tool_warned in |
| 5483 | yes:) |
| 5484 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5485 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5486 | ac_tool_warned=yes ;; |
| 5487 | esac |
| 5488 | RANLIB=$ac_ct_RANLIB |
| 5489 | fi |
| 5490 | else |
| 5491 | RANLIB="$ac_cv_prog_RANLIB" |
| 5492 | fi |
| 5493 | |
| 5494 | # Extract the first word of "ar", so it can be a program name with args. |
| 5495 | set dummy ar; ac_word=$2 |
| 5496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5497 | printf %s "checking for $ac_word... " >&6; } |
| 5498 | if test ${ac_cv_path_AR+y} |
| 5499 | then : |
| 5500 | printf %s "(cached) " >&6 |
| 5501 | else $as_nop |
| 5502 | case $AR in |
| 5503 | [\\/]* | ?:[\\/]*) |
| 5504 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 5505 | ;; |
| 5506 | *) |
| 5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5508 | as_dummy="$PATH:/usr/ccs/bin:/usr/xpg4/bin" |
| 5509 | for as_dir in $as_dummy |
| 5510 | do |
| 5511 | IFS=$as_save_IFS |
| 5512 | case $as_dir in #((( |
| 5513 | '') as_dir=./ ;; |
| 5514 | */) ;; |
| 5515 | *) as_dir=$as_dir/ ;; |
| 5516 | esac |
| 5517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5518 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5519 | ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" |
| 5520 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5521 | break 2 |
| 5522 | fi |
| 5523 | done |
| 5524 | done |
| 5525 | IFS=$as_save_IFS |
| 5526 | |
| 5527 | test -z "$ac_cv_path_AR" && ac_cv_path_AR=":" |
| 5528 | ;; |
| 5529 | esac |
| 5530 | fi |
| 5531 | AR=$ac_cv_path_AR |
| 5532 | if test -n "$AR"; then |
| 5533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5534 | printf "%s\n" "$AR" >&6; } |
| 5535 | else |
| 5536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5537 | printf "%s\n" "no" >&6; } |
| 5538 | fi |
| 5539 | |
| 5540 | |
| 5541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5542 | printf %s "checking whether ln -s works... " >&6; } |
| 5543 | LN_S=$as_ln_s |
| 5544 | if test "$LN_S" = "ln -s"; then |
| 5545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5546 | printf "%s\n" "yes" >&6; } |
| 5547 | else |
| 5548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5549 | printf "%s\n" "no, using $LN_S" >&6; } |
| 5550 | fi |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | # Select our default optimization flags in CFLAGS. |
| 5555 | # --enable-gcov, --enable-gprof, and --enable-debugging are mutually exclusive. |
| 5556 | # |
| 5557 | if test "$enable_gcov" = "yes"; then |
| 5558 | if test "$esl_cflags_env_set" = "yes"; then |
| 5559 | as_fn_error $? "--enable-gcov overrides CFLAGS, so don't set CFLAGS" "$LINENO" 5 |
| 5560 | fi |
| 5561 | CFLAGS="-g -Wall -fprofile-arcs -ftest-coverage" |
| 5562 | elif test "$enable_gprof" = "yes"; then |
| 5563 | if test "$esl_cflags_env_set" = "yes"; then |
| 5564 | as_fn_error $? "--enable-gprof overrides CFLAGS, so don't set CFLAGS" "$LINENO" 5 |
| 5565 | fi |
| 5566 | CFLAGS="-O -g -pg" |
| 5567 | elif test "$enable_debugging" != "no"; then |
| 5568 | if test "$GCC" = "yes"; then |
| 5569 | CFLAGS="${CFLAGS} -g -Wall" |
| 5570 | else |
| 5571 | as_fn_error $? "--enable-debugging only works for a gcc-like compiler" "$LINENO" 5 |
| 5572 | fi |
| 5573 | elif test x"${CFLAGS}" = x; then |
| 5574 | CFLAGS="-O3" |
| 5575 | fi |
| 5576 | |
| 5577 | # See if we should be passing -D_ENABLE_FORTIFY |
| 5578 | if test "$enable_fortify" != "no"; then |
| 5579 | CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=$enable_fortify" |
| 5580 | fi |
| 5581 | |
| 5582 | |
| 5583 | # Turn on a sanitizer, if asked. |
| 5584 | # |
| 5585 | if test "$enable_asan" = "yes"; then |
| 5586 | CFLAGS="$CFLAGS -fsanitize=address" |
| 5587 | LDFLAGS="$LDFLAGS -fsanitize=address" |
| 5588 | |
| 5589 | printf "%s\n" "#define eslENABLE_ASAN 1" >>confdefs.h |
| 5590 | |
| 5591 | fi |
| 5592 | if test "$enable_tsan" = "yes"; then |
| 5593 | if test "$enable_asan" = "yes"; then |
| 5594 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5595 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5596 | as_fn_error $? "The address and thread sanitizers are incompatible. Use only one of --enable-asan and --enable-tsan |
| 5597 | See \`config.log' for more details" "$LINENO" 5; } |
| 5598 | fi |
| 5599 | CFLAGS="$CFLAGS -fsanitize=thread" |
| 5600 | LDFLAGS="$LDFLAGS -fsanitize=thread" |
| 5601 | |
| 5602 | printf "%s\n" "#define eslENABLE_TSAN 1" >>confdefs.h |
| 5603 | |
| 5604 | fi |
| 5605 | |
| 5606 | |
| 5607 | # PIC (position-independent code) for shared library support |
| 5608 | # |
| 5609 | if test "$enable_pic" = "yes"; then |
| 5610 | |
| 5611 | # Check whether --enable-pic was given. |
| 5612 | if test ${enable_pic+y} |
| 5613 | then : |
| 5614 | enableval=$enable_pic; enable_pic="$enableval" |
| 5615 | test "x$enable_pic" = x && enable_pic=auto |
| 5616 | else $as_nop |
| 5617 | enable_pic=auto |
| 5618 | fi |
| 5619 | |
| 5620 | # disable PIC by default for static builds |
| 5621 | if test "$enable_pic" = auto && test "$enable_static" = yes; then |
| 5622 | enable_pic=no |
| 5623 | fi |
| 5624 | # if PIC hasn't been explicitly disabled, try to figure out the flags |
| 5625 | if test "$enable_pic" != no; then |
| 5626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to produce PIC" >&5 |
| 5627 | printf %s "checking for $CC option to produce PIC... " >&6; } |
| 5628 | # allow the user's flags to override |
| 5629 | if test "x$PIC_CFLAGS" = x; then |
| 5630 | # see if we're using GCC |
| 5631 | if test "x$GCC" = xyes; then |
| 5632 | case "$host_os" in |
| 5633 | aix*|beos*|cygwin*|irix5*|irix6*|osf3*|osf4*|osf5*) |
| 5634 | # PIC is the default for these OSes. |
| 5635 | ;; |
| 5636 | mingw*|os2*|pw32*) |
| 5637 | # This hack is so that the source file can tell whether |
| 5638 | # it is being built for inclusion in a dll (and should |
| 5639 | # export symbols for example). |
| 5640 | PIC_CFLAGS="-DDLL_EXPORT" |
| 5641 | ;; |
| 5642 | darwin*|rhapsody*) |
| 5643 | # PIC is the default on this platform |
| 5644 | # Common symbols not allowed in MH_DYLIB files |
| 5645 | PIC_CFLAGS="-fno-common" |
| 5646 | ;; |
| 5647 | hpux*) |
| 5648 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, |
| 5649 | # but not for PA HP-UX. |
| 5650 | case $host_cpu in |
| 5651 | hppa*64*|ia64*) |
| 5652 | ;; |
| 5653 | *) |
| 5654 | PIC_CFLAGS="-fPIC" |
| 5655 | ;; |
| 5656 | esac |
| 5657 | ;; |
| 5658 | *) |
| 5659 | # Everyone else on GCC uses -fPIC |
| 5660 | PIC_CFLAGS="-fPIC" |
| 5661 | ;; |
| 5662 | esac |
| 5663 | else # !GCC |
| 5664 | case "$host_os" in |
| 5665 | hpux9*|hpux10*|hpux11*) |
| 5666 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, |
| 5667 | # but not for PA HP-UX. |
| 5668 | case "$host_cpu" in |
| 5669 | hppa*64*|ia64*) |
| 5670 | # +Z the default |
| 5671 | ;; |
| 5672 | *) |
| 5673 | PIC_CFLAGS="+Z" |
| 5674 | ;; |
| 5675 | esac |
| 5676 | ;; |
| 5677 | linux*|k*bsd*-gnu) |
| 5678 | case `basename "$CC"` in |
| 5679 | icc*|ecc*|ifort*) |
| 5680 | PIC_CFLAGS="-KPIC" |
| 5681 | ;; |
| 5682 | pgcc*|pgf77*|pgf90*|pgf95*) |
| 5683 | # Portland Group compilers (*not* the Pentium gcc |
| 5684 | # compiler, which looks to be a dead project) |
| 5685 | PIC_CFLAGS="-fpic" |
| 5686 | ;; |
| 5687 | ccc*) |
| 5688 | # All Alpha code is PIC. |
| 5689 | ;; |
| 5690 | xl*) |
| 5691 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 5692 | PIC_CFLAGS="-qpic" |
| 5693 | ;; |
| 5694 | *) |
| 5695 | case `$CC -V 2>&1 | sed 5q` in |
| 5696 | *Sun\ C*|*Sun\ F*) |
| 5697 | # Sun C 5.9 or Sun Fortran |
| 5698 | PIC_CFLAGS="-KPIC" |
| 5699 | ;; |
| 5700 | esac |
| 5701 | esac |
| 5702 | ;; |
| 5703 | solaris*) |
| 5704 | PIC_CFLAGS="-KPIC" |
| 5705 | ;; |
| 5706 | sunos4*) |
| 5707 | PIC_CFLAGS="-PIC" |
| 5708 | ;; |
| 5709 | esac |
| 5710 | fi # GCC |
| 5711 | fi # PIC_CFLAGS |
| 5712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PIC_CFLAGS" >&5 |
| 5713 | printf "%s\n" "$PIC_CFLAGS" >&6; } |
| 5714 | fi |
| 5715 | |
| 5716 | |
| 5717 | fi |
| 5718 | |
| 5719 | |
| 5720 | # Support for POSIX multithreading (we should generally have this) |
| 5721 | # |
| 5722 | if test "$enable_threads" != "no"; then |
| 5723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5724 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 5725 | if test ${ac_cv_path_SED+y} |
| 5726 | then : |
| 5727 | printf %s "(cached) " >&6 |
| 5728 | else $as_nop |
| 5729 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5730 | for ac_i in 1 2 3 4 5 6 7; do |
| 5731 | ac_script="$ac_script$as_nl$ac_script" |
| 5732 | done |
| 5733 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5734 | { ac_script=; unset ac_script;} |
| 5735 | if test -z "$SED"; then |
| 5736 | ac_path_SED_found=false |
| 5737 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5739 | for as_dir in $PATH |
| 5740 | do |
| 5741 | IFS=$as_save_IFS |
| 5742 | case $as_dir in #((( |
| 5743 | '') as_dir=./ ;; |
| 5744 | */) ;; |
| 5745 | *) as_dir=$as_dir/ ;; |
| 5746 | esac |
| 5747 | for ac_prog in sed gsed |
| 5748 | do |
| 5749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5750 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 5751 | as_fn_executable_p "$ac_path_SED" || continue |
| 5752 | # Check for GNU ac_path_SED and select it if it is found. |
| 5753 | # Check for GNU $ac_path_SED |
| 5754 | case `"$ac_path_SED" --version 2>&1` in |
| 5755 | *GNU*) |
| 5756 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5757 | *) |
| 5758 | ac_count=0 |
| 5759 | printf %s 0123456789 >"conftest.in" |
| 5760 | while : |
| 5761 | do |
| 5762 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5763 | mv "conftest.tmp" "conftest.in" |
| 5764 | cp "conftest.in" "conftest.nl" |
| 5765 | printf "%s\n" '' >> "conftest.nl" |
| 5766 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5767 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5768 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5769 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5770 | # Best one so far, save it but keep looking for a better one |
| 5771 | ac_cv_path_SED="$ac_path_SED" |
| 5772 | ac_path_SED_max=$ac_count |
| 5773 | fi |
| 5774 | # 10*(2^10) chars as input seems more than enough |
| 5775 | test $ac_count -gt 10 && break |
| 5776 | done |
| 5777 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5778 | esac |
| 5779 | |
| 5780 | $ac_path_SED_found && break 3 |
| 5781 | done |
| 5782 | done |
| 5783 | done |
| 5784 | IFS=$as_save_IFS |
| 5785 | if test -z "$ac_cv_path_SED"; then |
| 5786 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5787 | fi |
| 5788 | else |
| 5789 | ac_cv_path_SED=$SED |
| 5790 | fi |
| 5791 | |
| 5792 | fi |
| 5793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5794 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 5795 | SED="$ac_cv_path_SED" |
| 5796 | rm -f conftest.sed |
| 5797 | |
| 5798 | |
| 5799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5800 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5801 | if test ${ac_cv_path_GREP+y} |
| 5802 | then : |
| 5803 | printf %s "(cached) " >&6 |
| 5804 | else $as_nop |
| 5805 | if test -z "$GREP"; then |
| 5806 | ac_path_GREP_found=false |
| 5807 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5809 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5810 | do |
| 5811 | IFS=$as_save_IFS |
| 5812 | case $as_dir in #((( |
| 5813 | '') as_dir=./ ;; |
| 5814 | */) ;; |
| 5815 | *) as_dir=$as_dir/ ;; |
| 5816 | esac |
| 5817 | for ac_prog in grep ggrep |
| 5818 | do |
| 5819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5820 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 5821 | as_fn_executable_p "$ac_path_GREP" || continue |
| 5822 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5823 | # Check for GNU $ac_path_GREP |
| 5824 | case `"$ac_path_GREP" --version 2>&1` in |
| 5825 | *GNU*) |
| 5826 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5827 | *) |
| 5828 | ac_count=0 |
| 5829 | printf %s 0123456789 >"conftest.in" |
| 5830 | while : |
| 5831 | do |
| 5832 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5833 | mv "conftest.tmp" "conftest.in" |
| 5834 | cp "conftest.in" "conftest.nl" |
| 5835 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 5836 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5837 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5838 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5839 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5840 | # Best one so far, save it but keep looking for a better one |
| 5841 | ac_cv_path_GREP="$ac_path_GREP" |
| 5842 | ac_path_GREP_max=$ac_count |
| 5843 | fi |
| 5844 | # 10*(2^10) chars as input seems more than enough |
| 5845 | test $ac_count -gt 10 && break |
| 5846 | done |
| 5847 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5848 | esac |
| 5849 | |
| 5850 | $ac_path_GREP_found && break 3 |
| 5851 | done |
| 5852 | done |
| 5853 | done |
| 5854 | IFS=$as_save_IFS |
| 5855 | if test -z "$ac_cv_path_GREP"; then |
| 5856 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5857 | fi |
| 5858 | else |
| 5859 | ac_cv_path_GREP=$GREP |
| 5860 | fi |
| 5861 | |
| 5862 | fi |
| 5863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5864 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 5865 | GREP="$ac_cv_path_GREP" |
| 5866 | |
| 5867 | |
| 5868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5869 | printf %s "checking for egrep... " >&6; } |
| 5870 | if test ${ac_cv_path_EGREP+y} |
| 5871 | then : |
| 5872 | printf %s "(cached) " >&6 |
| 5873 | else $as_nop |
| 5874 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5875 | then ac_cv_path_EGREP="$GREP -E" |
| 5876 | else |
| 5877 | if test -z "$EGREP"; then |
| 5878 | ac_path_EGREP_found=false |
| 5879 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5881 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5882 | do |
| 5883 | IFS=$as_save_IFS |
| 5884 | case $as_dir in #((( |
| 5885 | '') as_dir=./ ;; |
| 5886 | */) ;; |
| 5887 | *) as_dir=$as_dir/ ;; |
| 5888 | esac |
| 5889 | for ac_prog in egrep |
| 5890 | do |
| 5891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5892 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5893 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 5894 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5895 | # Check for GNU $ac_path_EGREP |
| 5896 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5897 | *GNU*) |
| 5898 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5899 | *) |
| 5900 | ac_count=0 |
| 5901 | printf %s 0123456789 >"conftest.in" |
| 5902 | while : |
| 5903 | do |
| 5904 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5905 | mv "conftest.tmp" "conftest.in" |
| 5906 | cp "conftest.in" "conftest.nl" |
| 5907 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 5908 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5909 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5910 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5911 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5912 | # Best one so far, save it but keep looking for a better one |
| 5913 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5914 | ac_path_EGREP_max=$ac_count |
| 5915 | fi |
| 5916 | # 10*(2^10) chars as input seems more than enough |
| 5917 | test $ac_count -gt 10 && break |
| 5918 | done |
| 5919 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5920 | esac |
| 5921 | |
| 5922 | $ac_path_EGREP_found && break 3 |
| 5923 | done |
| 5924 | done |
| 5925 | done |
| 5926 | IFS=$as_save_IFS |
| 5927 | if test -z "$ac_cv_path_EGREP"; then |
| 5928 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5929 | fi |
| 5930 | else |
| 5931 | ac_cv_path_EGREP=$EGREP |
| 5932 | fi |
| 5933 | |
| 5934 | fi |
| 5935 | fi |
| 5936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5937 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 5938 | EGREP="$ac_cv_path_EGREP" |
| 5939 | |
| 5940 | |
| 5941 | |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | ac_ext=c |
| 5946 | ac_cpp='$CPP $CPPFLAGS' |
| 5947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5950 | |
| 5951 | ax_pthread_ok=no |
| 5952 | |
| 5953 | # We used to check for pthread.h first, but this fails if pthread.h |
| 5954 | # requires special compiler flags (e.g. on Tru64 or Sequent). |
| 5955 | # It gets checked for in the link test anyway. |
| 5956 | |
| 5957 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 5958 | # etcetera environment variables, and if threads linking works using |
| 5959 | # them: |
| 5960 | if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then |
| 5961 | ax_pthread_save_CC="$CC" |
| 5962 | ax_pthread_save_CFLAGS="$CFLAGS" |
| 5963 | ax_pthread_save_LIBS="$LIBS" |
| 5964 | if test "x$PTHREAD_CC" != "x" |
| 5965 | then : |
| 5966 | CC="$PTHREAD_CC" |
| 5967 | fi |
| 5968 | if test "x$PTHREAD_CXX" != "x" |
| 5969 | then : |
| 5970 | CXX="$PTHREAD_CXX" |
| 5971 | fi |
| 5972 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5973 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
| 5975 | printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } |
| 5976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5977 | /* end confdefs.h. */ |
| 5978 | |
| 5979 | /* Override any GCC internal prototype to avoid an error. |
| 5980 | Use char because int might match the return type of a GCC |
| 5981 | builtin and then its argument prototype would still apply. */ |
| 5982 | char pthread_join (); |
| 5983 | int |
| 5984 | main (void) |
| 5985 | { |
| 5986 | return pthread_join (); |
| 5987 | ; |
| 5988 | return 0; |
| 5989 | } |
| 5990 | _ACEOF |
| 5991 | if ac_fn_c_try_link "$LINENO" |
| 5992 | then : |
| 5993 | ax_pthread_ok=yes |
| 5994 | fi |
| 5995 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5996 | conftest$ac_exeext conftest.$ac_ext |
| 5997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 5998 | printf "%s\n" "$ax_pthread_ok" >&6; } |
| 5999 | if test "x$ax_pthread_ok" = "xno"; then |
| 6000 | PTHREAD_LIBS="" |
| 6001 | PTHREAD_CFLAGS="" |
| 6002 | fi |
| 6003 | CC="$ax_pthread_save_CC" |
| 6004 | CFLAGS="$ax_pthread_save_CFLAGS" |
| 6005 | LIBS="$ax_pthread_save_LIBS" |
| 6006 | fi |
| 6007 | |
| 6008 | # We must check for the threads library under a number of different |
| 6009 | # names; the ordering is very important because some systems |
| 6010 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 6011 | # libraries is broken (non-POSIX). |
| 6012 | |
| 6013 | # Create a list of thread flags to try. Items with a "," contain both |
| 6014 | # C compiler flags (before ",") and linker flags (after ","). Other items |
| 6015 | # starting with a "-" are C compiler flags, and remaining items are |
| 6016 | # library names, except for "none" which indicates that we try without |
| 6017 | # any flags at all, and "pthread-config" which is a program returning |
| 6018 | # the flags for the Pth emulation library. |
| 6019 | |
| 6020 | ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 6021 | |
| 6022 | # The ordering *is* (sometimes) important. Some notes on the |
| 6023 | # individual items follow: |
| 6024 | |
| 6025 | # pthreads: AIX (must check this before -lpthread) |
| 6026 | # none: in case threads are in libc; should be tried before -Kthread and |
| 6027 | # other compiler flags to prevent continual compiler warnings |
| 6028 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 6029 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
| 6030 | # (Note: HP C rejects this with "bad form for `-t' option") |
| 6031 | # -pthreads: Solaris/gcc (Note: HP C also rejects) |
| 6032 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 6033 | # doesn't hurt to check since this sometimes defines pthreads and |
| 6034 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which |
| 6035 | # is present but should not be used directly; and before -mthreads, |
| 6036 | # because the compiler interprets this as "-mt" + "-hreads") |
| 6037 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 6038 | # pthread: Linux, etcetera |
| 6039 | # --thread-safe: KAI C++ |
| 6040 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 6041 | |
| 6042 | case $host_os in |
| 6043 | |
| 6044 | freebsd*) |
| 6045 | |
| 6046 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 6047 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 6048 | |
| 6049 | ax_pthread_flags="-kthread lthread $ax_pthread_flags" |
| 6050 | ;; |
| 6051 | |
| 6052 | hpux*) |
| 6053 | |
| 6054 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable |
| 6055 | # multi-threading and also sets -lpthread." |
| 6056 | |
| 6057 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" |
| 6058 | ;; |
| 6059 | |
| 6060 | openedition*) |
| 6061 | |
| 6062 | # IBM z/OS requires a feature-test macro to be defined in order to |
| 6063 | # enable POSIX threads at all, so give the user a hint if this is |
| 6064 | # not set. (We don't define these ourselves, as they can affect |
| 6065 | # other portions of the system API in unpredictable ways.) |
| 6066 | |
| 6067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6068 | /* end confdefs.h. */ |
| 6069 | |
| 6070 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) |
| 6071 | AX_PTHREAD_ZOS_MISSING |
| 6072 | # endif |
| 6073 | |
| 6074 | _ACEOF |
| 6075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6076 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 |
| 6077 | then : |
| 6078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 |
| 6079 | printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} |
| 6080 | fi |
| 6081 | rm -rf conftest* |
| 6082 | |
| 6083 | ;; |
| 6084 | |
| 6085 | solaris*) |
| 6086 | |
| 6087 | # On Solaris (at least, for some versions), libc contains stubbed |
| 6088 | # (non-functional) versions of the pthreads routines, so link-based |
| 6089 | # tests will erroneously succeed. (N.B.: The stubs are missing |
| 6090 | # pthread_cleanup_push, or rather a function called by this macro, |
| 6091 | # so we could check for that, but who knows whether they'll stub |
| 6092 | # that too in a future libc.) So we'll check first for the |
| 6093 | # standard Solaris way of linking pthreads (-mt -lpthread). |
| 6094 | |
| 6095 | ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" |
| 6096 | ;; |
| 6097 | esac |
| 6098 | |
| 6099 | # Are we compiling with Clang? |
| 6100 | |
| 6101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 |
| 6102 | printf %s "checking whether $CC is Clang... " >&6; } |
| 6103 | if test ${ax_cv_PTHREAD_CLANG+y} |
| 6104 | then : |
| 6105 | printf %s "(cached) " >&6 |
| 6106 | else $as_nop |
| 6107 | ax_cv_PTHREAD_CLANG=no |
| 6108 | # Note that Autoconf sets GCC=yes for Clang as well as GCC |
| 6109 | if test "x$GCC" = "xyes"; then |
| 6110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6111 | /* end confdefs.h. */ |
| 6112 | /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ |
| 6113 | # if defined(__clang__) && defined(__llvm__) |
| 6114 | AX_PTHREAD_CC_IS_CLANG |
| 6115 | # endif |
| 6116 | |
| 6117 | _ACEOF |
| 6118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6119 | $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 |
| 6120 | then : |
| 6121 | ax_cv_PTHREAD_CLANG=yes |
| 6122 | fi |
| 6123 | rm -rf conftest* |
| 6124 | |
| 6125 | fi |
| 6126 | |
| 6127 | fi |
| 6128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 |
| 6129 | printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } |
| 6130 | ax_pthread_clang="$ax_cv_PTHREAD_CLANG" |
| 6131 | |
| 6132 | |
| 6133 | # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) |
| 6134 | |
| 6135 | # Note that for GCC and Clang -pthread generally implies -lpthread, |
| 6136 | # except when -nostdlib is passed. |
| 6137 | # This is problematic using libtool to build C++ shared libraries with pthread: |
| 6138 | # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 |
| 6139 | # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 |
| 6140 | # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 |
| 6141 | # To solve this, first try -pthread together with -lpthread for GCC |
| 6142 | |
| 6143 | if test "x$GCC" = "xyes" |
| 6144 | then : |
| 6145 | ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" |
| 6146 | fi |
| 6147 | |
| 6148 | # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first |
| 6149 | |
| 6150 | if test "x$ax_pthread_clang" = "xyes" |
| 6151 | then : |
| 6152 | ax_pthread_flags="-pthread,-lpthread -pthread" |
| 6153 | fi |
| 6154 | |
| 6155 | |
| 6156 | # The presence of a feature test macro requesting re-entrant function |
| 6157 | # definitions is, on some systems, a strong hint that pthreads support is |
| 6158 | # correctly enabled |
| 6159 | |
| 6160 | case $host_os in |
| 6161 | darwin* | hpux* | linux* | osf* | solaris*) |
| 6162 | ax_pthread_check_macro="_REENTRANT" |
| 6163 | ;; |
| 6164 | |
| 6165 | aix*) |
| 6166 | ax_pthread_check_macro="_THREAD_SAFE" |
| 6167 | ;; |
| 6168 | |
| 6169 | *) |
| 6170 | ax_pthread_check_macro="--" |
| 6171 | ;; |
| 6172 | esac |
| 6173 | if test "x$ax_pthread_check_macro" = "x--" |
| 6174 | then : |
| 6175 | ax_pthread_check_cond=0 |
| 6176 | else $as_nop |
| 6177 | ax_pthread_check_cond="!defined($ax_pthread_check_macro)" |
| 6178 | fi |
| 6179 | |
| 6180 | |
| 6181 | if test "x$ax_pthread_ok" = "xno"; then |
| 6182 | for ax_pthread_try_flag in $ax_pthread_flags; do |
| 6183 | |
| 6184 | case $ax_pthread_try_flag in |
| 6185 | none) |
| 6186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 6187 | printf %s "checking whether pthreads work without any flags... " >&6; } |
| 6188 | ;; |
| 6189 | |
| 6190 | *,*) |
| 6191 | PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` |
| 6192 | PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` |
| 6193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 |
| 6194 | printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } |
| 6195 | ;; |
| 6196 | |
| 6197 | -*) |
| 6198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 |
| 6199 | printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } |
| 6200 | PTHREAD_CFLAGS="$ax_pthread_try_flag" |
| 6201 | ;; |
| 6202 | |
| 6203 | pthread-config) |
| 6204 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 6205 | set dummy pthread-config; ac_word=$2 |
| 6206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6207 | printf %s "checking for $ac_word... " >&6; } |
| 6208 | if test ${ac_cv_prog_ax_pthread_config+y} |
| 6209 | then : |
| 6210 | printf %s "(cached) " >&6 |
| 6211 | else $as_nop |
| 6212 | if test -n "$ax_pthread_config"; then |
| 6213 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 6214 | else |
| 6215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6216 | for as_dir in $PATH |
| 6217 | do |
| 6218 | IFS=$as_save_IFS |
| 6219 | case $as_dir in #((( |
| 6220 | '') as_dir=./ ;; |
| 6221 | */) ;; |
| 6222 | *) as_dir=$as_dir/ ;; |
| 6223 | esac |
| 6224 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6225 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6226 | ac_cv_prog_ax_pthread_config="yes" |
| 6227 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6228 | break 2 |
| 6229 | fi |
| 6230 | done |
| 6231 | done |
| 6232 | IFS=$as_save_IFS |
| 6233 | |
| 6234 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 6235 | fi |
| 6236 | fi |
| 6237 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 6238 | if test -n "$ax_pthread_config"; then |
| 6239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 6240 | printf "%s\n" "$ax_pthread_config" >&6; } |
| 6241 | else |
| 6242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6243 | printf "%s\n" "no" >&6; } |
| 6244 | fi |
| 6245 | |
| 6246 | |
| 6247 | if test "x$ax_pthread_config" = "xno" |
| 6248 | then : |
| 6249 | continue |
| 6250 | fi |
| 6251 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 6252 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 6253 | ;; |
| 6254 | |
| 6255 | *) |
| 6256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 |
| 6257 | printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } |
| 6258 | PTHREAD_LIBS="-l$ax_pthread_try_flag" |
| 6259 | ;; |
| 6260 | esac |
| 6261 | |
| 6262 | ax_pthread_save_CFLAGS="$CFLAGS" |
| 6263 | ax_pthread_save_LIBS="$LIBS" |
| 6264 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6265 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6266 | |
| 6267 | # Check for various functions. We must include pthread.h, |
| 6268 | # since some functions may be macros. (On the Sequent, we |
| 6269 | # need a special flag -Kthread to make this header compile.) |
| 6270 | # We check for pthread_join because it is in -lpthread on IRIX |
| 6271 | # while pthread_create is in libc. We check for pthread_attr_init |
| 6272 | # due to DEC craziness with -lpthreads. We check for |
| 6273 | # pthread_cleanup_push because it is one of the few pthread |
| 6274 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 6275 | # We try pthread_create on general principles. |
| 6276 | |
| 6277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6278 | /* end confdefs.h. */ |
| 6279 | #include <pthread.h> |
| 6280 | # if $ax_pthread_check_cond |
| 6281 | # error "$ax_pthread_check_macro must be defined" |
| 6282 | # endif |
| 6283 | static void *some_global = NULL; |
| 6284 | static void routine(void *a) |
| 6285 | { |
| 6286 | /* To avoid any unused-parameter or |
| 6287 | unused-but-set-parameter warning. */ |
| 6288 | some_global = a; |
| 6289 | } |
| 6290 | static void *start_routine(void *a) { return a; } |
| 6291 | int |
| 6292 | main (void) |
| 6293 | { |
| 6294 | pthread_t th; pthread_attr_t attr; |
| 6295 | pthread_create(&th, 0, start_routine, 0); |
| 6296 | pthread_join(th, 0); |
| 6297 | pthread_attr_init(&attr); |
| 6298 | pthread_cleanup_push(routine, 0); |
| 6299 | pthread_cleanup_pop(0) /* ; */ |
| 6300 | ; |
| 6301 | return 0; |
| 6302 | } |
| 6303 | _ACEOF |
| 6304 | if ac_fn_c_try_link "$LINENO" |
| 6305 | then : |
| 6306 | ax_pthread_ok=yes |
| 6307 | fi |
| 6308 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6309 | conftest$ac_exeext conftest.$ac_ext |
| 6310 | |
| 6311 | CFLAGS="$ax_pthread_save_CFLAGS" |
| 6312 | LIBS="$ax_pthread_save_LIBS" |
| 6313 | |
| 6314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 6315 | printf "%s\n" "$ax_pthread_ok" >&6; } |
| 6316 | if test "x$ax_pthread_ok" = "xyes" |
| 6317 | then : |
| 6318 | break |
| 6319 | fi |
| 6320 | |
| 6321 | PTHREAD_LIBS="" |
| 6322 | PTHREAD_CFLAGS="" |
| 6323 | done |
| 6324 | fi |
| 6325 | |
| 6326 | |
| 6327 | # Clang needs special handling, because older versions handle the -pthread |
| 6328 | # option in a rather... idiosyncratic way |
| 6329 | |
| 6330 | if test "x$ax_pthread_clang" = "xyes"; then |
| 6331 | |
| 6332 | # Clang takes -pthread; it has never supported any other flag |
| 6333 | |
| 6334 | # (Note 1: This will need to be revisited if a system that Clang |
| 6335 | # supports has POSIX threads in a separate library. This tends not |
| 6336 | # to be the way of modern systems, but it's conceivable.) |
| 6337 | |
| 6338 | # (Note 2: On some systems, notably Darwin, -pthread is not needed |
| 6339 | # to get POSIX threads support; the API is always present and |
| 6340 | # active. We could reasonably leave PTHREAD_CFLAGS empty. But |
| 6341 | # -pthread does define _REENTRANT, and while the Darwin headers |
| 6342 | # ignore this macro, third-party headers might not.) |
| 6343 | |
| 6344 | # However, older versions of Clang make a point of warning the user |
| 6345 | # that, in an invocation where only linking and no compilation is |
| 6346 | # taking place, the -pthread option has no effect ("argument unused |
| 6347 | # during compilation"). They expect -pthread to be passed in only |
| 6348 | # when source code is being compiled. |
| 6349 | # |
| 6350 | # Problem is, this is at odds with the way Automake and most other |
| 6351 | # C build frameworks function, which is that the same flags used in |
| 6352 | # compilation (CFLAGS) are also used in linking. Many systems |
| 6353 | # supported by AX_PTHREAD require exactly this for POSIX threads |
| 6354 | # support, and in fact it is often not straightforward to specify a |
| 6355 | # flag that is used only in the compilation phase and not in |
| 6356 | # linking. Such a scenario is extremely rare in practice. |
| 6357 | # |
| 6358 | # Even though use of the -pthread flag in linking would only print |
| 6359 | # a warning, this can be a nuisance for well-run software projects |
| 6360 | # that build with -Werror. So if the active version of Clang has |
| 6361 | # this misfeature, we search for an option to squash it. |
| 6362 | |
| 6363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 |
| 6364 | printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } |
| 6365 | if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} |
| 6366 | then : |
| 6367 | printf %s "(cached) " >&6 |
| 6368 | else $as_nop |
| 6369 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown |
| 6370 | # Create an alternate version of $ac_link that compiles and |
| 6371 | # links in two steps (.c -> .o, .o -> exe) instead of one |
| 6372 | # (.c -> exe), because the warning occurs only in the second |
| 6373 | # step |
| 6374 | ax_pthread_save_ac_link="$ac_link" |
| 6375 | ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' |
| 6376 | ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` |
| 6377 | ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" |
| 6378 | ax_pthread_save_CFLAGS="$CFLAGS" |
| 6379 | for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do |
| 6380 | if test "x$ax_pthread_try" = "xunknown" |
| 6381 | then : |
| 6382 | break |
| 6383 | fi |
| 6384 | CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" |
| 6385 | ac_link="$ax_pthread_save_ac_link" |
| 6386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6387 | /* end confdefs.h. */ |
| 6388 | int main(void){return 0;} |
| 6389 | _ACEOF |
| 6390 | if ac_fn_c_try_link "$LINENO" |
| 6391 | then : |
| 6392 | ac_link="$ax_pthread_2step_ac_link" |
| 6393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6394 | /* end confdefs.h. */ |
| 6395 | int main(void){return 0;} |
| 6396 | _ACEOF |
| 6397 | if ac_fn_c_try_link "$LINENO" |
| 6398 | then : |
| 6399 | break |
| 6400 | fi |
| 6401 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6402 | conftest$ac_exeext conftest.$ac_ext |
| 6403 | |
| 6404 | fi |
| 6405 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6406 | conftest$ac_exeext conftest.$ac_ext |
| 6407 | done |
| 6408 | ac_link="$ax_pthread_save_ac_link" |
| 6409 | CFLAGS="$ax_pthread_save_CFLAGS" |
| 6410 | if test "x$ax_pthread_try" = "x" |
| 6411 | then : |
| 6412 | ax_pthread_try=no |
| 6413 | fi |
| 6414 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" |
| 6415 | |
| 6416 | fi |
| 6417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 |
| 6418 | printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } |
| 6419 | |
| 6420 | case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in |
| 6421 | no | unknown) ;; |
| 6422 | *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; |
| 6423 | esac |
| 6424 | |
| 6425 | fi # $ax_pthread_clang = yes |
| 6426 | |
| 6427 | |
| 6428 | |
| 6429 | # Various other checks: |
| 6430 | if test "x$ax_pthread_ok" = "xyes"; then |
| 6431 | ax_pthread_save_CFLAGS="$CFLAGS" |
| 6432 | ax_pthread_save_LIBS="$LIBS" |
| 6433 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6434 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6435 | |
| 6436 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 6437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 6438 | printf %s "checking for joinable pthread attribute... " >&6; } |
| 6439 | if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} |
| 6440 | then : |
| 6441 | printf %s "(cached) " >&6 |
| 6442 | else $as_nop |
| 6443 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown |
| 6444 | for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 6445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6446 | /* end confdefs.h. */ |
| 6447 | #include <pthread.h> |
| 6448 | int |
| 6449 | main (void) |
| 6450 | { |
| 6451 | int attr = $ax_pthread_attr; return attr /* ; */ |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
| 6456 | if ac_fn_c_try_link "$LINENO" |
| 6457 | then : |
| 6458 | ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break |
| 6459 | fi |
| 6460 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6461 | conftest$ac_exeext conftest.$ac_ext |
| 6462 | done |
| 6463 | |
| 6464 | fi |
| 6465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 |
| 6466 | printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } |
| 6467 | if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ |
| 6468 | test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ |
| 6469 | test "x$ax_pthread_joinable_attr_defined" != "xyes" |
| 6470 | then : |
| 6471 | |
| 6472 | printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h |
| 6473 | |
| 6474 | ax_pthread_joinable_attr_defined=yes |
| 6475 | |
| 6476 | fi |
| 6477 | |
| 6478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 |
| 6479 | printf %s "checking whether more special flags are required for pthreads... " >&6; } |
| 6480 | if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} |
| 6481 | then : |
| 6482 | printf %s "(cached) " >&6 |
| 6483 | else $as_nop |
| 6484 | ax_cv_PTHREAD_SPECIAL_FLAGS=no |
| 6485 | case $host_os in |
| 6486 | solaris*) |
| 6487 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" |
| 6488 | ;; |
| 6489 | esac |
| 6490 | |
| 6491 | fi |
| 6492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 |
| 6493 | printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } |
| 6494 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ |
| 6495 | test "x$ax_pthread_special_flags_added" != "xyes" |
| 6496 | then : |
| 6497 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" |
| 6498 | ax_pthread_special_flags_added=yes |
| 6499 | fi |
| 6500 | |
| 6501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 6502 | printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 6503 | if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} |
| 6504 | then : |
| 6505 | printf %s "(cached) " >&6 |
| 6506 | else $as_nop |
| 6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6508 | /* end confdefs.h. */ |
| 6509 | #include <pthread.h> |
| 6510 | int |
| 6511 | main (void) |
| 6512 | { |
| 6513 | int i = PTHREAD_PRIO_INHERIT; |
| 6514 | return i; |
| 6515 | ; |
| 6516 | return 0; |
| 6517 | } |
| 6518 | _ACEOF |
| 6519 | if ac_fn_c_try_link "$LINENO" |
| 6520 | then : |
| 6521 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 6522 | else $as_nop |
| 6523 | ax_cv_PTHREAD_PRIO_INHERIT=no |
| 6524 | fi |
| 6525 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6526 | conftest$ac_exeext conftest.$ac_ext |
| 6527 | |
| 6528 | fi |
| 6529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 6530 | printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 6531 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ |
| 6532 | test "x$ax_pthread_prio_inherit_defined" != "xyes" |
| 6533 | then : |
| 6534 | |
| 6535 | printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 6536 | |
| 6537 | ax_pthread_prio_inherit_defined=yes |
| 6538 | |
| 6539 | fi |
| 6540 | |
| 6541 | CFLAGS="$ax_pthread_save_CFLAGS" |
| 6542 | LIBS="$ax_pthread_save_LIBS" |
| 6543 | |
| 6544 | # More AIX lossage: compile with *_r variant |
| 6545 | if test "x$GCC" != "xyes"; then |
| 6546 | case $host_os in |
| 6547 | aix*) |
| 6548 | case "x/$CC" in #( |
| 6549 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 6550 | #handle absolute path differently from PATH based program lookup |
| 6551 | case "x$CC" in #( |
| 6552 | x/*) : |
| 6553 | |
| 6554 | if as_fn_executable_p ${CC}_r |
| 6555 | then : |
| 6556 | PTHREAD_CC="${CC}_r" |
| 6557 | fi |
| 6558 | if test "x${CXX}" != "x" |
| 6559 | then : |
| 6560 | if as_fn_executable_p ${CXX}_r |
| 6561 | then : |
| 6562 | PTHREAD_CXX="${CXX}_r" |
| 6563 | fi |
| 6564 | fi |
| 6565 | ;; #( |
| 6566 | *) : |
| 6567 | |
| 6568 | for ac_prog in ${CC}_r |
| 6569 | do |
| 6570 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6571 | set dummy $ac_prog; ac_word=$2 |
| 6572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6573 | printf %s "checking for $ac_word... " >&6; } |
| 6574 | if test ${ac_cv_prog_PTHREAD_CC+y} |
| 6575 | then : |
| 6576 | printf %s "(cached) " >&6 |
| 6577 | else $as_nop |
| 6578 | if test -n "$PTHREAD_CC"; then |
| 6579 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 6580 | else |
| 6581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6582 | for as_dir in $PATH |
| 6583 | do |
| 6584 | IFS=$as_save_IFS |
| 6585 | case $as_dir in #((( |
| 6586 | '') as_dir=./ ;; |
| 6587 | */) ;; |
| 6588 | *) as_dir=$as_dir/ ;; |
| 6589 | esac |
| 6590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6591 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6592 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 6593 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6594 | break 2 |
| 6595 | fi |
| 6596 | done |
| 6597 | done |
| 6598 | IFS=$as_save_IFS |
| 6599 | |
| 6600 | fi |
| 6601 | fi |
| 6602 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 6603 | if test -n "$PTHREAD_CC"; then |
| 6604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 6605 | printf "%s\n" "$PTHREAD_CC" >&6; } |
| 6606 | else |
| 6607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6608 | printf "%s\n" "no" >&6; } |
| 6609 | fi |
| 6610 | |
| 6611 | |
| 6612 | test -n "$PTHREAD_CC" && break |
| 6613 | done |
| 6614 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 6615 | |
| 6616 | if test "x${CXX}" != "x" |
| 6617 | then : |
| 6618 | for ac_prog in ${CXX}_r |
| 6619 | do |
| 6620 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6621 | set dummy $ac_prog; ac_word=$2 |
| 6622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6623 | printf %s "checking for $ac_word... " >&6; } |
| 6624 | if test ${ac_cv_prog_PTHREAD_CXX+y} |
| 6625 | then : |
| 6626 | printf %s "(cached) " >&6 |
| 6627 | else $as_nop |
| 6628 | if test -n "$PTHREAD_CXX"; then |
| 6629 | ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. |
| 6630 | else |
| 6631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6632 | for as_dir in $PATH |
| 6633 | do |
| 6634 | IFS=$as_save_IFS |
| 6635 | case $as_dir in #((( |
| 6636 | '') as_dir=./ ;; |
| 6637 | */) ;; |
| 6638 | *) as_dir=$as_dir/ ;; |
| 6639 | esac |
| 6640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6641 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6642 | ac_cv_prog_PTHREAD_CXX="$ac_prog" |
| 6643 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6644 | break 2 |
| 6645 | fi |
| 6646 | done |
| 6647 | done |
| 6648 | IFS=$as_save_IFS |
| 6649 | |
| 6650 | fi |
| 6651 | fi |
| 6652 | PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX |
| 6653 | if test -n "$PTHREAD_CXX"; then |
| 6654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 |
| 6655 | printf "%s\n" "$PTHREAD_CXX" >&6; } |
| 6656 | else |
| 6657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6658 | printf "%s\n" "no" >&6; } |
| 6659 | fi |
| 6660 | |
| 6661 | |
| 6662 | test -n "$PTHREAD_CXX" && break |
| 6663 | done |
| 6664 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
| 6665 | |
| 6666 | fi |
| 6667 | |
| 6668 | ;; |
| 6669 | esac |
| 6670 | ;; #( |
| 6671 | *) : |
| 6672 | ;; |
| 6673 | esac |
| 6674 | ;; |
| 6675 | esac |
| 6676 | fi |
| 6677 | fi |
| 6678 | |
| 6679 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 6680 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
| 6681 | |
| 6682 | |
| 6683 | |
| 6684 | |
| 6685 | |
| 6686 | |
| 6687 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 6688 | if test "x$ax_pthread_ok" = "xyes"; then |
| 6689 | |
| 6690 | |
| 6691 | printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h |
| 6692 | |
| 6693 | |
| 6694 | printf "%s\n" "#define HMMER_THREADS 1" >>confdefs.h |
| 6695 | |
| 6696 | |
| 6697 | |
| 6698 | |
| 6699 | : |
| 6700 | else |
| 6701 | ax_pthread_ok=no |
| 6702 | |
| 6703 | if test "$enable_threads" = "yes"; then |
| 6704 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6705 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6706 | as_fn_error $? "Unable to compile with POSIX multithreading. |
| 6707 | See \`config.log' for more details" "$LINENO" 5; } |
| 6708 | fi |
| 6709 | enable_threads=no |
| 6710 | |
| 6711 | fi |
| 6712 | ac_ext=c |
| 6713 | ac_cpp='$CPP $CPPFLAGS' |
| 6714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6717 | |
| 6718 | |
| 6719 | fi |
| 6720 | |
| 6721 | |
| 6722 | # Support for vector implementations |
| 6723 | # |
| 6724 | # If we were explicitly told to enable one ($enable_foo="yes") and we |
| 6725 | # can't, fail with an error. |
| 6726 | # |
| 6727 | # If we're autodetecting ($enable_foo="check"), set $enable_foo to the |
| 6728 | # result ("yes" or "no"). |
| 6729 | # |
| 6730 | # If vector support "foo" is enabled: |
| 6731 | # - define preprocessor symbol eslENABLE_FOO (*config.h.in) |
| 6732 | # - set output variable FOO_CFLAGS, if needed (Makefile.in) |
| 6733 | # - set shell variable $enable_foo to "yes" |
| 6734 | # - set shell variable $impl_choice to "foo" |
| 6735 | # and if vector support is available (regardless of whether we |
| 6736 | # decide to enable it), the autoconf macros: |
| 6737 | # - set shell variable $esl_have_foo to "yes" |
| 6738 | # - set shell var $esl_foo_cflags to any necessary compiler flags |
| 6739 | # |
| 6740 | if test "$enable_neon" = "yes" || test "$enable_neon" = "check"; then |
| 6741 | |
| 6742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can compile our NEON code" >&5 |
| 6743 | printf %s "checking whether $CC can compile our NEON code... " >&6; } |
| 6744 | esl_have_neon=no |
| 6745 | esl_have_neon_aarch64=no |
| 6746 | |
| 6747 | if test "x$NEON_CFLAGS" != x; then |
| 6748 | esl_neon_try_flags=$NEON_CFLAGS |
| 6749 | else |
| 6750 | esl_neon_try_flags="none -mfpu=neon" |
| 6751 | fi |
| 6752 | |
| 6753 | save_CFLAGS=$CFLAGS |
| 6754 | for esl_neon_cflags in $esl_neon_try_flags; do |
| 6755 | case $esl_neon_cflags in |
| 6756 | none) CFLAGS=$save_CFLAGS;; |
| 6757 | *) CFLAGS="$save_CFLAGS $esl_neon_cflags";; |
| 6758 | esac |
| 6759 | |
| 6760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6761 | /* end confdefs.h. */ |
| 6762 | |
| 6763 | #include <stdint.h> |
| 6764 | #include <arm_neon.h> |
| 6765 | int stub_neon(void) { |
| 6766 | int32x4_t v1 = vdupq_n_s32(42); |
| 6767 | int32x4_t v2 = vdupq_n_s32(86); |
| 6768 | union { int32x4_t v; int32_t x[4]; } v3; |
| 6769 | v3.v = vaddq_s32(v1, v2); |
| 6770 | return (int) v3.x[0]; |
| 6771 | } |
| 6772 | int main(void) { if (stub_neon() != 128) return 1; else return 0; } |
| 6773 | |
| 6774 | _ACEOF |
| 6775 | if ac_fn_c_try_link "$LINENO" |
| 6776 | then : |
| 6777 | esl_have_neon=yes; break; |
| 6778 | fi |
| 6779 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6780 | conftest$ac_exeext conftest.$ac_ext |
| 6781 | done |
| 6782 | |
| 6783 | |
| 6784 | # Test for the AARCH64 (ARMv8) flavor of the NEON intrinsics, |
| 6785 | # or at least the instructions we need from it, using the |
| 6786 | # same CFLAGS we just figured out. |
| 6787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6788 | /* end confdefs.h. */ |
| 6789 | |
| 6790 | #include <stdint.h> |
| 6791 | #include <arm_neon.h> |
| 6792 | int main(void) { |
| 6793 | int16x8_t a1 = { 1, 2, 8, 3, 4, 5, 6, 7 }; |
| 6794 | int16_t r1 = vmaxvq_s16(a1); // = 8 : horizontal max |
| 6795 | uint8x16_t a2 = { 1, 2, 16, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; |
| 6796 | uint8_t r2 = vmaxvq_u8(a2); // = 16 : horizontal max |
| 6797 | float32x4_t a3 = { 1.0, 2.0, 3.0, 4.0 }; |
| 6798 | float r3 = vaddvq_f32(a3); // = 10.0 : horizontal sum |
| 6799 | return 0; |
| 6800 | } |
| 6801 | |
| 6802 | _ACEOF |
| 6803 | if ac_fn_c_try_link "$LINENO" |
| 6804 | then : |
| 6805 | esl_have_neon_aarch64=yes |
| 6806 | fi |
| 6807 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6808 | conftest$ac_exeext conftest.$ac_ext |
| 6809 | |
| 6810 | CFLAGS=$save_CFLAGS |
| 6811 | if test "$esl_have_neon" = "no"; then |
| 6812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6813 | printf "%s\n" "no" >&6; } |
| 6814 | esl_neon_cflags= |
| 6815 | else |
| 6816 | if test "$esl_have_neon_aarch64" = "no"; then |
| 6817 | if test "$esl_neon_cflags" = "none"; then |
| 6818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, armv7 flavor" >&5 |
| 6819 | printf "%s\n" "yes, armv7 flavor" >&6; } |
| 6820 | esl_neon_cflags= |
| 6821 | else |
| 6822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, armv7 flavor, with $esl_neon_cflags" >&5 |
| 6823 | printf "%s\n" "yes, armv7 flavor, with $esl_neon_cflags" >&6; } |
| 6824 | fi |
| 6825 | else |
| 6826 | if test "$esl_neon_cflags" = "none"; then |
| 6827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, aarch64 flavor" >&5 |
| 6828 | printf "%s\n" "yes, aarch64 flavor" >&6; } |
| 6829 | esl_neon_cflags= |
| 6830 | else |
| 6831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, aarch64 flavor, with $esl_neon_cflags" >&5 |
| 6832 | printf "%s\n" "yes, aarch64 flavor, with $esl_neon_cflags" >&6; } |
| 6833 | fi |
| 6834 | fi |
| 6835 | fi |
| 6836 | |
| 6837 | if test "x$esl_have_neon" = xyes |
| 6838 | then : |
| 6839 | |
| 6840 | |
| 6841 | printf "%s\n" "#define eslENABLE_NEON 1" >>confdefs.h |
| 6842 | |
| 6843 | if test "x$esl_have_neon_aarch64" = xyes |
| 6844 | then : |
| 6845 | |
| 6846 | printf "%s\n" "#define eslHAVE_NEON_AARCH64 1" >>confdefs.h |
| 6847 | |
| 6848 | fi |
| 6849 | HMMERIMPLLIB="impl_neon/libhmmerimpl.a" |
| 6850 | |
| 6851 | NEON_CFLAGS="$esl_neon_cflags" |
| 6852 | INFERNAL_IMPLDIR="" |
| 6853 | |
| 6854 | enable_neon=yes |
| 6855 | impl_choice=neon |
| 6856 | |
| 6857 | else $as_nop |
| 6858 | |
| 6859 | if test "$enable_neon" = "yes"; then |
| 6860 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6861 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6862 | as_fn_error $? "Unable to compile our ARM Neon implementations. Try another compiler? |
| 6863 | See \`config.log' for more details" "$LINENO" 5; } |
| 6864 | fi |
| 6865 | enable_neon=no |
| 6866 | |
| 6867 | fi |
| 6868 | |
| 6869 | fi |
| 6870 | |
| 6871 | if test "$enable_vmx" = "yes" || test "$enable_vmx" = "check"; then |
| 6872 | |
| 6873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can compile our Altivec/VMX code" >&5 |
| 6874 | printf %s "checking whether $CC can compile our Altivec/VMX code... " >&6; } |
| 6875 | esl_have_vmx=no |
| 6876 | |
| 6877 | if test "x$VMX_CFLAGS" != x; then |
| 6878 | esl_vmx_try_flags=$VMX_CFLAGS |
| 6879 | else |
| 6880 | esl_vmx_try_flags="none -maltivec -faltivec" |
| 6881 | fi |
| 6882 | |
| 6883 | save_CFLAGS=$CFLAGS |
| 6884 | for esl_vmx_cflags in $esl_vmx_try_flags; do |
| 6885 | case $esl_vmx_cflags in |
| 6886 | none) CFLAGS=$save_CFLAGS;; |
| 6887 | *) CFLAGS="$save_CFLAGS $esl_vmx_cflags";; |
| 6888 | esac |
| 6889 | |
| 6890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6891 | /* end confdefs.h. */ |
| 6892 | |
| 6893 | #include <altivec.h> |
| 6894 | #include <stdint.h> |
| 6895 | int stub_vmx(void) { |
| 6896 | vector signed int v1,v2; |
| 6897 | union { vector signed int v; int32_t x[4]; } v3; |
| 6898 | v1 = vec_splat_s32(6); |
| 6899 | v2 = vec_splat_s32(12); |
| 6900 | v3.v = vec_add(v1,v2); |
| 6901 | return (int) v3.x[0];} |
| 6902 | int main(void) { if (stub_vmx() != 18) return 1; else return 0; } |
| 6903 | |
| 6904 | _ACEOF |
| 6905 | if ac_fn_c_try_link "$LINENO" |
| 6906 | then : |
| 6907 | esl_have_vmx=yes; break; |
| 6908 | fi |
| 6909 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6910 | conftest$ac_exeext conftest.$ac_ext |
| 6911 | done |
| 6912 | CFLAGS=$save_CFLAGS |
| 6913 | |
| 6914 | if test "$esl_have_vmx" = "no"; then |
| 6915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6916 | printf "%s\n" "no" >&6; } |
| 6917 | esl_vmx_cflags= |
| 6918 | else |
| 6919 | if test "$esl_vmx_cflags" = "none"; then |
| 6920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6921 | printf "%s\n" "yes" >&6; } |
| 6922 | esl_vmx_cflags= |
| 6923 | else |
| 6924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $esl_vmx_cflags" >&5 |
| 6925 | printf "%s\n" "yes, with $esl_vmx_cflags" >&6; } |
| 6926 | fi |
| 6927 | fi |
| 6928 | |
| 6929 | if test "x$esl_have_vmx" = xyes |
| 6930 | then : |
| 6931 | |
| 6932 | |
| 6933 | printf "%s\n" "#define eslENABLE_VMX 1" >>confdefs.h |
| 6934 | |
| 6935 | HMMERIMPLLIB="impl_vmx/libhmmerimpl.a" |
| 6936 | |
| 6937 | VMX_CFLAGS=$esl_vmx_cflags |
| 6938 | INFERNAL_IMPLDIR="" |
| 6939 | |
| 6940 | enable_vmx=yes |
| 6941 | impl_choice=vmx |
| 6942 | |
| 6943 | else $as_nop |
| 6944 | |
| 6945 | if test "$enable_vmx" = "yes"; then |
| 6946 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6947 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6948 | as_fn_error $? "Unable to compile our Altivec/VMX implementations. Try another compiler? |
| 6949 | See \`config.log' for more details" "$LINENO" 5; } |
| 6950 | fi |
| 6951 | enable_vmx=no |
| 6952 | |
| 6953 | fi |
| 6954 | |
| 6955 | fi |
| 6956 | |
| 6957 | if test "$enable_sse" = "yes" || test "$enable_sse" = "check"; then |
| 6958 | |
| 6959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can compile our SSE code" >&5 |
| 6960 | printf %s "checking whether $CC can compile our SSE code... " >&6; } |
| 6961 | esl_have_sse=no |
| 6962 | |
| 6963 | if test "x$SSE_CFLAGS" != x; then |
| 6964 | esl_sse_try_flags=$SSE_CFLAGS |
| 6965 | else |
| 6966 | esl_sse_try_flags="none -msse2" |
| 6967 | fi |
| 6968 | |
| 6969 | save_CFLAGS=$CFLAGS |
| 6970 | for esl_sse_cflags in $esl_sse_try_flags; do |
| 6971 | case $esl_sse_cflags in |
| 6972 | none) CFLAGS=$save_CFLAGS;; |
| 6973 | *) CFLAGS="$save_CFLAGS $esl_sse_cflags";; |
| 6974 | esac |
| 6975 | |
| 6976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6977 | /* end confdefs.h. */ |
| 6978 | |
| 6979 | #include <x86intrin.h> |
| 6980 | #include <stdint.h> |
| 6981 | int stub_sse(void) { |
| 6982 | __m128i v1 = _mm_set1_epi32(42); |
| 6983 | __m128i v2 = _mm_set1_epi32(86); |
| 6984 | union { __m128i v; int32_t x[4]; } v3; |
| 6985 | v3.v = _mm_add_epi32(v1, v2); |
| 6986 | return (int) v3.x[0]; |
| 6987 | } |
| 6988 | int main(void) { if (stub_sse() != 128) return 1; else return 0; } |
| 6989 | |
| 6990 | _ACEOF |
| 6991 | if ac_fn_c_try_link "$LINENO" |
| 6992 | then : |
| 6993 | esl_have_sse=yes; break; |
| 6994 | fi |
| 6995 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6996 | conftest$ac_exeext conftest.$ac_ext |
| 6997 | done |
| 6998 | |
| 6999 | CFLAGS=$save_CFLAGS |
| 7000 | if test "$esl_have_sse" = "no"; then |
| 7001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7002 | printf "%s\n" "no" >&6; } |
| 7003 | esl_sse_cflags= |
| 7004 | else |
| 7005 | if test "$esl_sse_cflags" = "none"; then |
| 7006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7007 | printf "%s\n" "yes" >&6; } |
| 7008 | esl_sse_cflags= |
| 7009 | else |
| 7010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $esl_sse_cflags" >&5 |
| 7011 | printf "%s\n" "yes, with $esl_sse_cflags" >&6; } |
| 7012 | fi |
| 7013 | fi |
| 7014 | |
| 7015 | if test "x$esl_have_sse" = xyes |
| 7016 | then : |
| 7017 | |
| 7018 | |
| 7019 | printf "%s\n" "#define eslENABLE_SSE 1" >>confdefs.h |
| 7020 | |
| 7021 | HMMERIMPLLIB="impl_sse/libhmmerimpl.a" |
| 7022 | |
| 7023 | INFERNAL_IMPLDIR="impl_sse" |
| 7024 | SSE_CFLAGS=$esl_sse_cflags |
| 7025 | |
| 7026 | enable_sse=yes |
| 7027 | impl_choice=sse |
| 7028 | |
| 7029 | else $as_nop |
| 7030 | |
| 7031 | if test "$enable_sse" = "yes"; then |
| 7032 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7033 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7034 | as_fn_error $? "Unable to compile our SSE implementations. Try another compiler? |
| 7035 | See \`config.log' for more details" "$LINENO" 5; } |
| 7036 | fi |
| 7037 | enable_sse=no |
| 7038 | |
| 7039 | fi |
| 7040 | |
| 7041 | fi |
| 7042 | |
| 7043 | # Infernal has to have either SSE, Neon or VMX. |
| 7044 | case "$impl_choice" in |
| 7045 | neon) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Activating ARM Neon vector DP implementation" >&5 |
| 7046 | printf "%s\n" "$as_me: Activating ARM Neon vector DP implementation" >&6;} |
| 7047 | ;; |
| 7048 | sse) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Activating Intel/AMD SSE vector DP implementation" >&5 |
| 7049 | printf "%s\n" "$as_me: Activating Intel/AMD SSE vector DP implementation" >&6;} |
| 7050 | ;; |
| 7051 | vmx) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Activating Altivec/VMX vector DP implementation" >&5 |
| 7052 | printf "%s\n" "$as_me: Activating Altivec/VMX vector DP implementation" >&6;} |
| 7053 | ;; |
| 7054 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ::::::::::--- no vector instruction set ---::::::::::" >&5 |
| 7055 | printf "%s\n" "$as_me: ::::::::::--- no vector instruction set ---::::::::::" >&6;} |
| 7056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Infernal requires SSE, NEON or VMX vector instructions." >&5 |
| 7057 | printf "%s\n" "$as_me: Infernal requires SSE, NEON or VMX vector instructions." >&6;} |
| 7058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Supported platforms are x86 (Intel/AMD), ARM (v7 or later) and PowerPC." >&5 |
| 7059 | printf "%s\n" "$as_me: Supported platforms are x86 (Intel/AMD), ARM (v7 or later) and PowerPC." >&6;} |
| 7060 | as_fn_error $? "No supported vectorization found for your machine." "$LINENO" 5 |
| 7061 | ;; |
| 7062 | esac |
| 7063 | IMPL_CHOICE=$impl_choice |
| 7064 | |
| 7065 | |
| 7066 | |
| 7067 | # Easel has additional vector implementations that Infernal and HMMER3 do not |
| 7068 | # support. Provide blank config for those CFLAGS. |
| 7069 | |
| 7070 | |
| 7071 | |
| 7072 | |
| 7073 | |
| 7074 | |
| 7075 | |
| 7076 | |
| 7077 | |
| 7078 | # For x86 processors check if the flush to zero macro is available |
| 7079 | # in order to avoid the performance penalty dealing with sub-normal |
| 7080 | # values in the floating point calculations. |
| 7081 | if test "$impl_choice" = "sse"; then |
| 7082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _MM_SET_FLUSH_ZERO_MODE is supported" >&5 |
| 7083 | printf %s "checking whether _MM_SET_FLUSH_ZERO_MODE is supported... " >&6; } |
| 7084 | esl_save_cflags="$CFLAGS" |
| 7085 | CFLAGS="$CFLAGS $SSE_CFLAGS" |
| 7086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7087 | /* end confdefs.h. */ |
| 7088 | #include <xmmintrin.h> |
| 7089 | int |
| 7090 | main (void) |
| 7091 | { |
| 7092 | _MM_SET_FLUSH_ZERO_MODE (_MM_FLUSH_ZERO_ON); |
| 7093 | |
| 7094 | ; |
| 7095 | return 0; |
| 7096 | } |
| 7097 | _ACEOF |
| 7098 | if ac_fn_c_try_compile "$LINENO" |
| 7099 | then : |
| 7100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7101 | printf "%s\n" "yes" >&6; } |
| 7102 | |
| 7103 | printf "%s\n" "#define HAVE_FLUSH_ZERO_MODE 1" >>confdefs.h |
| 7104 | |
| 7105 | else $as_nop |
| 7106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7107 | printf "%s\n" "no" >&6; } |
| 7108 | |
| 7109 | fi |
| 7110 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7111 | CFLAGS="$esl_save_cflags" |
| 7112 | fi |
| 7113 | |
| 7114 | |
| 7115 | |
| 7116 | # Check if the linker supports library groups for recursive libraries |
| 7117 | if test "x$impl_choice" != xno |
| 7118 | then : |
| 7119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support --start-group" >&5 |
| 7120 | printf %s "checking compiler support --start-group... " >&6; } |
| 7121 | LDFLAGS_save=$LDFLAGS |
| 7122 | LDFLAGS="-Wl,--start-group -Wl,--end-group $LDFLAGS" |
| 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7124 | /* end confdefs.h. */ |
| 7125 | |
| 7126 | int |
| 7127 | main (void) |
| 7128 | { |
| 7129 | |
| 7130 | ; |
| 7131 | return 0; |
| 7132 | } |
| 7133 | _ACEOF |
| 7134 | if ac_fn_c_try_link "$LINENO" |
| 7135 | then : |
| 7136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7137 | printf "%s\n" "yes" >&6; } |
| 7138 | GROUPHMMERLIBS="-Wl,--start-group -lhmmer -lhmmerimpl -Wl,--end-group" |
| 7139 | |
| 7140 | else $as_nop |
| 7141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7142 | printf "%s\n" "no" >&6; } |
| 7143 | GROUPHMMERLIBS="-lhmmer -lhmmerimpl" |
| 7144 | |
| 7145 | fi |
| 7146 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7147 | conftest$ac_exeext conftest.$ac_ext |
| 7148 | LDFLAGS=$LDFLAGS_save |
| 7149 | else $as_nop |
| 7150 | GROUPHMMERLIBS="-lhmmer" |
| 7151 | |
| 7152 | fi |
| 7153 | |
| 7154 | |
| 7155 | # Define HAVE_GZIP if gzip is in $PATH (or if HAVE_GZIP is already set) |
| 7156 | # Extract the first word of ""gzip"", so it can be a program name with args. |
| 7157 | set dummy "gzip"; ac_word=$2 |
| 7158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7159 | printf %s "checking for $ac_word... " >&6; } |
| 7160 | if test ${ac_cv_path_HAVE_GZIP+y} |
| 7161 | then : |
| 7162 | printf %s "(cached) " >&6 |
| 7163 | else $as_nop |
| 7164 | case $HAVE_GZIP in |
| 7165 | [\\/]* | ?:[\\/]*) |
| 7166 | ac_cv_path_HAVE_GZIP="$HAVE_GZIP" # Let the user override the test with a path. |
| 7167 | ;; |
| 7168 | *) |
| 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7170 | for as_dir in $PATH |
| 7171 | do |
| 7172 | IFS=$as_save_IFS |
| 7173 | case $as_dir in #((( |
| 7174 | '') as_dir=./ ;; |
| 7175 | */) ;; |
| 7176 | *) as_dir=$as_dir/ ;; |
| 7177 | esac |
| 7178 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7179 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7180 | ac_cv_path_HAVE_GZIP="$as_dir$ac_word$ac_exec_ext" |
| 7181 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7182 | break 2 |
| 7183 | fi |
| 7184 | done |
| 7185 | done |
| 7186 | IFS=$as_save_IFS |
| 7187 | |
| 7188 | test -z "$ac_cv_path_HAVE_GZIP" && ac_cv_path_HAVE_GZIP=""no"" |
| 7189 | ;; |
| 7190 | esac |
| 7191 | fi |
| 7192 | HAVE_GZIP=$ac_cv_path_HAVE_GZIP |
| 7193 | if test -n "$HAVE_GZIP"; then |
| 7194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_GZIP" >&5 |
| 7195 | printf "%s\n" "$HAVE_GZIP" >&6; } |
| 7196 | else |
| 7197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7198 | printf "%s\n" "no" >&6; } |
| 7199 | fi |
| 7200 | |
| 7201 | |
| 7202 | if test "${HAVE_GZIP}" = "no"; then |
| 7203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gzip not found" >&5 |
| 7204 | printf "%s\n" "$as_me: WARNING: gzip not found" >&2;} |
| 7205 | else |
| 7206 | |
| 7207 | printf "%s\n" "#define HAVE_GZIP 1" >>confdefs.h |
| 7208 | |
| 7209 | fi |
| 7210 | |
| 7211 | |
| 7212 | # We need python 3 for 'make check' and some dev tools. sqc checks |
| 7213 | # too, as does the Makefile, but we also check in ./configure, so we |
| 7214 | # don't recommend 'make check' to the user if they can't use it. |
| 7215 | # |
| 7216 | # Extract the first word of "python3", so it can be a program name with args. |
| 7217 | set dummy python3; ac_word=$2 |
| 7218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7219 | printf %s "checking for $ac_word... " >&6; } |
| 7220 | if test ${ac_cv_prog_HAVE_PYTHON3+y} |
| 7221 | then : |
| 7222 | printf %s "(cached) " >&6 |
| 7223 | else $as_nop |
| 7224 | if test -n "$HAVE_PYTHON3"; then |
| 7225 | ac_cv_prog_HAVE_PYTHON3="$HAVE_PYTHON3" # Let the user override the test. |
| 7226 | else |
| 7227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7228 | for as_dir in $PATH |
| 7229 | do |
| 7230 | IFS=$as_save_IFS |
| 7231 | case $as_dir in #((( |
| 7232 | '') as_dir=./ ;; |
| 7233 | */) ;; |
| 7234 | *) as_dir=$as_dir/ ;; |
| 7235 | esac |
| 7236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7237 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7238 | ac_cv_prog_HAVE_PYTHON3="yes" |
| 7239 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7240 | break 2 |
| 7241 | fi |
| 7242 | done |
| 7243 | done |
| 7244 | IFS=$as_save_IFS |
| 7245 | |
| 7246 | fi |
| 7247 | fi |
| 7248 | HAVE_PYTHON3=$ac_cv_prog_HAVE_PYTHON3 |
| 7249 | if test -n "$HAVE_PYTHON3"; then |
| 7250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_PYTHON3" >&5 |
| 7251 | printf "%s\n" "$HAVE_PYTHON3" >&6; } |
| 7252 | else |
| 7253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7254 | printf "%s\n" "no" >&6; } |
| 7255 | fi |
| 7256 | |
| 7257 | |
| 7258 | |
| 7259 | |
| 7260 | ################################################################ |
| 7261 | # 6. Checks for libraries |
| 7262 | ################################################################ |
| 7263 | |
| 7264 | # We could check for LIBGSL here, but that check caused problems in the Infernal |
| 7265 | # 1.1rc1 release so we took --enable-gsl out. It was really only useful for Easel |
| 7266 | # anyway according to Sean. We still need to define LIBGSL though, because Easel |
| 7267 | # has files with @LIBGSL@ in them. |
| 7268 | LIBGSL= |
| 7269 | if test "x$with_gsl" != xno |
| 7270 | then : |
| 7271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsl_expm1 in -lgsl" >&5 |
| 7272 | printf %s "checking for gsl_expm1 in -lgsl... " >&6; } |
| 7273 | if test ${ac_cv_lib_gsl_gsl_expm1+y} |
| 7274 | then : |
| 7275 | printf %s "(cached) " >&6 |
| 7276 | else $as_nop |
| 7277 | ac_check_lib_save_LIBS=$LIBS |
| 7278 | LIBS="-lgsl -lgslcblas |
| 7279 | $LIBS" |
| 7280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7281 | /* end confdefs.h. */ |
| 7282 | |
| 7283 | /* Override any GCC internal prototype to avoid an error. |
| 7284 | Use char because int might match the return type of a GCC |
| 7285 | builtin and then its argument prototype would still apply. */ |
| 7286 | char gsl_expm1 (); |
| 7287 | int |
| 7288 | main (void) |
| 7289 | { |
| 7290 | return gsl_expm1 (); |
| 7291 | ; |
| 7292 | return 0; |
| 7293 | } |
| 7294 | _ACEOF |
| 7295 | if ac_fn_c_try_link "$LINENO" |
| 7296 | then : |
| 7297 | ac_cv_lib_gsl_gsl_expm1=yes |
| 7298 | else $as_nop |
| 7299 | ac_cv_lib_gsl_gsl_expm1=no |
| 7300 | fi |
| 7301 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7302 | conftest$ac_exeext conftest.$ac_ext |
| 7303 | LIBS=$ac_check_lib_save_LIBS |
| 7304 | fi |
| 7305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_expm1" >&5 |
| 7306 | printf "%s\n" "$ac_cv_lib_gsl_gsl_expm1" >&6; } |
| 7307 | if test "x$ac_cv_lib_gsl_gsl_expm1" = xyes |
| 7308 | then : |
| 7309 | LIBGSL="-lgsl -lgslcblas" |
| 7310 | |
| 7311 | |
| 7312 | printf "%s\n" "#define HAVE_LIBGSL 1" >>confdefs.h |
| 7313 | |
| 7314 | |
| 7315 | else $as_nop |
| 7316 | if test "x$with_gsl" != xcheck; then |
| 7317 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7318 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7319 | as_fn_error $? "--with-gsl was given, but GSL library was not found |
| 7320 | See \`config.log' for more details" "$LINENO" 5; } |
| 7321 | fi |
| 7322 | |
| 7323 | fi |
| 7324 | |
| 7325 | fi |
| 7326 | |
| 7327 | # Easel stopwatch high-res timer may try to use clock_gettime, |
| 7328 | # which may be in librt |
| 7329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 7330 | printf %s "checking for library containing clock_gettime... " >&6; } |
| 7331 | if test ${ac_cv_search_clock_gettime+y} |
| 7332 | then : |
| 7333 | printf %s "(cached) " >&6 |
| 7334 | else $as_nop |
| 7335 | ac_func_search_save_LIBS=$LIBS |
| 7336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7337 | /* end confdefs.h. */ |
| 7338 | |
| 7339 | /* Override any GCC internal prototype to avoid an error. |
| 7340 | Use char because int might match the return type of a GCC |
| 7341 | builtin and then its argument prototype would still apply. */ |
| 7342 | char clock_gettime (); |
| 7343 | int |
| 7344 | main (void) |
| 7345 | { |
| 7346 | return clock_gettime (); |
| 7347 | ; |
| 7348 | return 0; |
| 7349 | } |
| 7350 | _ACEOF |
| 7351 | for ac_lib in '' rt posix4 |
| 7352 | do |
| 7353 | if test -z "$ac_lib"; then |
| 7354 | ac_res="none required" |
| 7355 | else |
| 7356 | ac_res=-l$ac_lib |
| 7357 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7358 | fi |
| 7359 | if ac_fn_c_try_link "$LINENO" |
| 7360 | then : |
| 7361 | ac_cv_search_clock_gettime=$ac_res |
| 7362 | fi |
| 7363 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7364 | conftest$ac_exeext |
| 7365 | if test ${ac_cv_search_clock_gettime+y} |
| 7366 | then : |
| 7367 | break |
| 7368 | fi |
| 7369 | done |
| 7370 | if test ${ac_cv_search_clock_gettime+y} |
| 7371 | then : |
| 7372 | |
| 7373 | else $as_nop |
| 7374 | ac_cv_search_clock_gettime=no |
| 7375 | fi |
| 7376 | rm conftest.$ac_ext |
| 7377 | LIBS=$ac_func_search_save_LIBS |
| 7378 | fi |
| 7379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 7380 | printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } |
| 7381 | ac_res=$ac_cv_search_clock_gettime |
| 7382 | if test "$ac_res" != no |
| 7383 | then : |
| 7384 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7385 | |
| 7386 | fi |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | ################################################################ |
| 7391 | # 7. Checks for header files |
| 7392 | ################################################################ |
| 7393 | |
| 7394 | # Defines HAVE_SYS_TYPES_H, HAVE_STDINT_H, etc. |
| 7395 | ac_header= ac_cache= |
| 7396 | for ac_item in $ac_header_c_list |
| 7397 | do |
| 7398 | if test $ac_cache; then |
| 7399 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 7400 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 7401 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 7402 | fi |
| 7403 | ac_header= ac_cache= |
| 7404 | elif test $ac_header; then |
| 7405 | ac_cache=$ac_item |
| 7406 | else |
| 7407 | ac_header=$ac_item |
| 7408 | fi |
| 7409 | done |
| 7410 | |
| 7411 | |
| 7412 | |
| 7413 | |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 7419 | then : |
| 7420 | |
| 7421 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 7422 | |
| 7423 | fi |
| 7424 | ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| 7425 | if test "x$ac_cv_header_endian_h" = xyes |
| 7426 | then : |
| 7427 | printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 7428 | |
| 7429 | fi |
| 7430 | ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7431 | if test "x$ac_cv_header_inttypes_h" = xyes |
| 7432 | then : |
| 7433 | printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
| 7434 | |
| 7435 | fi |
| 7436 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7437 | if test "x$ac_cv_header_stdint_h" = xyes |
| 7438 | then : |
| 7439 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 7440 | |
| 7441 | fi |
| 7442 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 7443 | if test "x$ac_cv_header_unistd_h" = xyes |
| 7444 | then : |
| 7445 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 7446 | |
| 7447 | fi |
| 7448 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 7449 | if test "x$ac_cv_header_sys_types_h" = xyes |
| 7450 | then : |
| 7451 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 7452 | |
| 7453 | fi |
| 7454 | ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 7455 | if test "x$ac_cv_header_netinet_in_h" = xyes |
| 7456 | then : |
| 7457 | printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h |
| 7458 | |
| 7459 | fi |
| 7460 | |
| 7461 | |
| 7462 | # Check for sysctl.h separately. On OpenBSD, it requires |
| 7463 | # <sys/param.h> and autoconf needs special logic to deal w. this as |
| 7464 | # follows. |
| 7465 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 7466 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 7467 | then : |
| 7468 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 7469 | |
| 7470 | fi |
| 7471 | |
| 7472 | ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H |
| 7473 | #include <sys/param.h> |
| 7474 | #endif |
| 7475 | |
| 7476 | " |
| 7477 | if test "x$ac_cv_header_sys_sysctl_h" = xyes |
| 7478 | then : |
| 7479 | printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h |
| 7480 | |
| 7481 | fi |
| 7482 | |
| 7483 | |
| 7484 | # arm_neon.h requires the simd cflags and little endian mode |
| 7485 | if test "$impl_choice" = "neon"; then |
| 7486 | esl_save_CFLAGS="$CFLAGS" |
| 7487 | esl_save_CPPFLAGS="$CPPFLAGS" |
| 7488 | CFLAGS="$CFLAGS $NEON_CFLAGS" |
| 7489 | CPPFLAGS="$CPPFLAGS $NEON_CFLAGS" |
| 7490 | ac_fn_c_check_header_compile "$LINENO" "arm_neon.h" "ac_cv_header_arm_neon_h" "$ac_includes_default" |
| 7491 | if test "x$ac_cv_header_arm_neon_h" = xyes |
| 7492 | then : |
| 7493 | printf "%s\n" "#define HAVE_ARM_NEON_H 1" >>confdefs.h |
| 7494 | |
| 7495 | fi |
| 7496 | |
| 7497 | CFLAGS="$esl_save_CFLAGS" |
| 7498 | CPPFLAGS="$esl_save_CPPFLAGS" |
| 7499 | fi |
| 7500 | |
| 7501 | # altivec.h requires the simd cflags |
| 7502 | # For reasons I don't understand, this needs to come after any other CHECK_HEADERS(). |
| 7503 | if test "$impl_choice" = "vmx"; then |
| 7504 | esl_save_CFLAGS="$CFLAGS" |
| 7505 | esl_save_CPPFLAGS="$CPPFLAGS" |
| 7506 | CFLAGS="$CFLAGS $VMX_CFLAGS" |
| 7507 | CPPFLAGS="$CPPFLAGS $VMX_CFLAGS" |
| 7508 | ac_fn_c_check_header_compile "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" |
| 7509 | if test "x$ac_cv_header_altivec_h" = xyes |
| 7510 | then : |
| 7511 | printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h |
| 7512 | |
| 7513 | fi |
| 7514 | |
| 7515 | CFLAGS="$esl_save_CFLAGS" |
| 7516 | CPPFLAGS="$esl_save_CPPFLAGS" |
| 7517 | fi |
| 7518 | |
| 7519 | ################################################################ |
| 7520 | # 8. Checks for types |
| 7521 | ################################################################ |
| 7522 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 7523 | case $ac_cv_c_uint8_t in #( |
| 7524 | no|yes) ;; #( |
| 7525 | *) |
| 7526 | |
| 7527 | printf "%s\n" "#define _UINT8_T 1" >>confdefs.h |
| 7528 | |
| 7529 | |
| 7530 | printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h |
| 7531 | ;; |
| 7532 | esac |
| 7533 | |
| 7534 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 7535 | case $ac_cv_c_uint16_t in #( |
| 7536 | no|yes) ;; #( |
| 7537 | *) |
| 7538 | |
| 7539 | |
| 7540 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
| 7541 | ;; |
| 7542 | esac |
| 7543 | |
| 7544 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 7545 | case $ac_cv_c_uint32_t in #( |
| 7546 | no|yes) ;; #( |
| 7547 | *) |
| 7548 | |
| 7549 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
| 7550 | |
| 7551 | |
| 7552 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
| 7553 | ;; |
| 7554 | esac |
| 7555 | |
| 7556 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 7557 | case $ac_cv_c_uint64_t in #( |
| 7558 | no|yes) ;; #( |
| 7559 | *) |
| 7560 | |
| 7561 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
| 7562 | |
| 7563 | |
| 7564 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
| 7565 | ;; |
| 7566 | esac |
| 7567 | |
| 7568 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 7569 | if test "x$ac_cv_type_off_t" = xyes |
| 7570 | then : |
| 7571 | |
| 7572 | else $as_nop |
| 7573 | |
| 7574 | printf "%s\n" "#define off_t long int" >>confdefs.h |
| 7575 | |
| 7576 | fi |
| 7577 | |
| 7578 | |
| 7579 | |
| 7580 | |
| 7581 | ############################################################### |
| 7582 | # 9. Checks for structures - currently none |
| 7583 | ################################################################ |
| 7584 | |
| 7585 | |
| 7586 | |
| 7587 | |
| 7588 | ################################################################ |
| 7589 | # 10. Checks for compiler characteristics |
| 7590 | ################################################################ |
| 7591 | |
| 7592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 7593 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 7594 | if test ${ac_cv_c_bigendian+y} |
| 7595 | then : |
| 7596 | printf %s "(cached) " >&6 |
| 7597 | else $as_nop |
| 7598 | ac_cv_c_bigendian=unknown |
| 7599 | # See if we're dealing with a universal compiler. |
| 7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7601 | /* end confdefs.h. */ |
| 7602 | #ifndef __APPLE_CC__ |
| 7603 | not a universal capable compiler |
| 7604 | #endif |
| 7605 | typedef int dummy; |
| 7606 | |
| 7607 | _ACEOF |
| 7608 | if ac_fn_c_try_compile "$LINENO" |
| 7609 | then : |
| 7610 | |
| 7611 | # Check for potential -arch flags. It is not universal unless |
| 7612 | # there are at least two -arch flags with different values. |
| 7613 | ac_arch= |
| 7614 | ac_prev= |
| 7615 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 7616 | if test -n "$ac_prev"; then |
| 7617 | case $ac_word in |
| 7618 | i?86 | x86_64 | ppc | ppc64) |
| 7619 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 7620 | ac_arch=$ac_word |
| 7621 | else |
| 7622 | ac_cv_c_bigendian=universal |
| 7623 | break |
| 7624 | fi |
| 7625 | ;; |
| 7626 | esac |
| 7627 | ac_prev= |
| 7628 | elif test "x$ac_word" = "x-arch"; then |
| 7629 | ac_prev=arch |
| 7630 | fi |
| 7631 | done |
| 7632 | fi |
| 7633 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7634 | if test $ac_cv_c_bigendian = unknown; then |
| 7635 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 7636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7637 | /* end confdefs.h. */ |
| 7638 | #include <sys/types.h> |
| 7639 | #include <sys/param.h> |
| 7640 | |
| 7641 | int |
| 7642 | main (void) |
| 7643 | { |
| 7644 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 7645 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 7646 | && LITTLE_ENDIAN) |
| 7647 | bogus endian macros |
| 7648 | #endif |
| 7649 | |
| 7650 | ; |
| 7651 | return 0; |
| 7652 | } |
| 7653 | _ACEOF |
| 7654 | if ac_fn_c_try_compile "$LINENO" |
| 7655 | then : |
| 7656 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7658 | /* end confdefs.h. */ |
| 7659 | #include <sys/types.h> |
| 7660 | #include <sys/param.h> |
| 7661 | |
| 7662 | int |
| 7663 | main (void) |
| 7664 | { |
| 7665 | #if BYTE_ORDER != BIG_ENDIAN |
| 7666 | not big endian |
| 7667 | #endif |
| 7668 | |
| 7669 | ; |
| 7670 | return 0; |
| 7671 | } |
| 7672 | _ACEOF |
| 7673 | if ac_fn_c_try_compile "$LINENO" |
| 7674 | then : |
| 7675 | ac_cv_c_bigendian=yes |
| 7676 | else $as_nop |
| 7677 | ac_cv_c_bigendian=no |
| 7678 | fi |
| 7679 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7680 | fi |
| 7681 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7682 | fi |
| 7683 | if test $ac_cv_c_bigendian = unknown; then |
| 7684 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 7685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7686 | /* end confdefs.h. */ |
| 7687 | #include <limits.h> |
| 7688 | |
| 7689 | int |
| 7690 | main (void) |
| 7691 | { |
| 7692 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 7693 | bogus endian macros |
| 7694 | #endif |
| 7695 | |
| 7696 | ; |
| 7697 | return 0; |
| 7698 | } |
| 7699 | _ACEOF |
| 7700 | if ac_fn_c_try_compile "$LINENO" |
| 7701 | then : |
| 7702 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 7703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7704 | /* end confdefs.h. */ |
| 7705 | #include <limits.h> |
| 7706 | |
| 7707 | int |
| 7708 | main (void) |
| 7709 | { |
| 7710 | #ifndef _BIG_ENDIAN |
| 7711 | not big endian |
| 7712 | #endif |
| 7713 | |
| 7714 | ; |
| 7715 | return 0; |
| 7716 | } |
| 7717 | _ACEOF |
| 7718 | if ac_fn_c_try_compile "$LINENO" |
| 7719 | then : |
| 7720 | ac_cv_c_bigendian=yes |
| 7721 | else $as_nop |
| 7722 | ac_cv_c_bigendian=no |
| 7723 | fi |
| 7724 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7725 | fi |
| 7726 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7727 | fi |
| 7728 | if test $ac_cv_c_bigendian = unknown; then |
| 7729 | # Compile a test program. |
| 7730 | if test "$cross_compiling" = yes |
| 7731 | then : |
| 7732 | # Try to guess by grepping values from an object file. |
| 7733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7734 | /* end confdefs.h. */ |
| 7735 | unsigned short int ascii_mm[] = |
| 7736 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 7737 | unsigned short int ascii_ii[] = |
| 7738 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 7739 | int use_ascii (int i) { |
| 7740 | return ascii_mm[i] + ascii_ii[i]; |
| 7741 | } |
| 7742 | unsigned short int ebcdic_ii[] = |
| 7743 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 7744 | unsigned short int ebcdic_mm[] = |
| 7745 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 7746 | int use_ebcdic (int i) { |
| 7747 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 7748 | } |
| 7749 | extern int foo; |
| 7750 | |
| 7751 | int |
| 7752 | main (void) |
| 7753 | { |
| 7754 | return use_ascii (foo) == use_ebcdic (foo); |
| 7755 | ; |
| 7756 | return 0; |
| 7757 | } |
| 7758 | _ACEOF |
| 7759 | if ac_fn_c_try_compile "$LINENO" |
| 7760 | then : |
| 7761 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 7762 | ac_cv_c_bigendian=yes |
| 7763 | fi |
| 7764 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 7765 | if test "$ac_cv_c_bigendian" = unknown; then |
| 7766 | ac_cv_c_bigendian=no |
| 7767 | else |
| 7768 | # finding both strings is unlikely to happen, but who knows? |
| 7769 | ac_cv_c_bigendian=unknown |
| 7770 | fi |
| 7771 | fi |
| 7772 | fi |
| 7773 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7774 | else $as_nop |
| 7775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7776 | /* end confdefs.h. */ |
| 7777 | $ac_includes_default |
| 7778 | int |
| 7779 | main (void) |
| 7780 | { |
| 7781 | |
| 7782 | /* Are we little or big endian? From Harbison&Steele. */ |
| 7783 | union |
| 7784 | { |
| 7785 | long int l; |
| 7786 | char c[sizeof (long int)]; |
| 7787 | } u; |
| 7788 | u.l = 1; |
| 7789 | return u.c[sizeof (long int) - 1] == 1; |
| 7790 | |
| 7791 | ; |
| 7792 | return 0; |
| 7793 | } |
| 7794 | _ACEOF |
| 7795 | if ac_fn_c_try_run "$LINENO" |
| 7796 | then : |
| 7797 | ac_cv_c_bigendian=no |
| 7798 | else $as_nop |
| 7799 | ac_cv_c_bigendian=yes |
| 7800 | fi |
| 7801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7802 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7803 | fi |
| 7804 | |
| 7805 | fi |
| 7806 | fi |
| 7807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 7808 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 7809 | case $ac_cv_c_bigendian in #( |
| 7810 | yes) |
| 7811 | |
| 7812 | |
| 7813 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 7814 | |
| 7815 | ;; #( |
| 7816 | no) |
| 7817 | |
| 7818 | if test "$enable_vmx" = "yes"; then |
| 7819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ::::::::::--- no vector instruction set ---::::::::::" >&5 |
| 7820 | printf "%s\n" "$as_me: ::::::::::--- no vector instruction set ---::::::::::" >&6;} |
| 7821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Infernal Altivec/VMX only supports big-endian platforms: e.g. ppc64 not ppc64le" >&5 |
| 7822 | printf "%s\n" "$as_me: Infernal Altivec/VMX only supports big-endian platforms: e.g. ppc64 not ppc64le" >&6;} |
| 7823 | as_fn_error $? "No supported vectorization found for your machine." "$LINENO" 5 |
| 7824 | elif test "$enable_neon" = "yes"; then |
| 7825 | as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$NEON_CFLAGS_-mlittle-endian" | $as_tr_sh` |
| 7826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mlittle-endian" >&5 |
| 7827 | printf %s "checking whether C compiler accepts -mlittle-endian... " >&6; } |
| 7828 | if eval test \${$as_CACHEVAR+y} |
| 7829 | then : |
| 7830 | printf %s "(cached) " >&6 |
| 7831 | else $as_nop |
| 7832 | |
| 7833 | ax_check_save_flags=$CFLAGS |
| 7834 | CFLAGS="$CFLAGS $NEON_CFLAGS -mlittle-endian" |
| 7835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7836 | /* end confdefs.h. */ |
| 7837 | |
| 7838 | int |
| 7839 | main (void) |
| 7840 | { |
| 7841 | |
| 7842 | ; |
| 7843 | return 0; |
| 7844 | } |
| 7845 | _ACEOF |
| 7846 | if ac_fn_c_try_compile "$LINENO" |
| 7847 | then : |
| 7848 | eval "$as_CACHEVAR=yes" |
| 7849 | else $as_nop |
| 7850 | eval "$as_CACHEVAR=no" |
| 7851 | fi |
| 7852 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7853 | CFLAGS=$ax_check_save_flags |
| 7854 | fi |
| 7855 | eval ac_res=\$$as_CACHEVAR |
| 7856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7857 | printf "%s\n" "$ac_res" >&6; } |
| 7858 | if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 7859 | then : |
| 7860 | NEON_CFLAGS="$NEON_CFLAGS -mlittle-endian" |
| 7861 | else $as_nop |
| 7862 | : |
| 7863 | fi |
| 7864 | |
| 7865 | fi |
| 7866 | ;; #( |
| 7867 | universal) |
| 7868 | |
| 7869 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 7870 | |
| 7871 | ;; #( |
| 7872 | *) |
| 7873 | |
| 7874 | if test "$enable_neon" = "yes"; then |
| 7875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ::::::::::--- no vector instruction set ---::::::::::" >&5 |
| 7876 | printf "%s\n" "$as_me: ::::::::::--- no vector instruction set ---::::::::::" >&6;} |
| 7877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Infernal NEON only supports little-endian platforms: e.g. aarch64 not aarch64be" >&5 |
| 7878 | printf "%s\n" "$as_me: Infernal NEON only supports little-endian platforms: e.g. aarch64 not aarch64be" >&6;} |
| 7879 | as_fn_error $? "No supported vectorization found for your machine." "$LINENO" 5 |
| 7880 | else |
| 7881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ::::::::::--- no vector instruction set ---::::::::::" >&5 |
| 7882 | printf "%s\n" "$as_me: ::::::::::--- no vector instruction set ---::::::::::" >&6;} |
| 7883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Couldn't determine byte order for your platform." >&5 |
| 7884 | printf "%s\n" "$as_me: Couldn't determine byte order for your platform." >&6;} |
| 7885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Infernal vector code is sensitive to byte order." >&5 |
| 7886 | printf "%s\n" "$as_me: Infernal vector code is sensitive to byte order." >&6;} |
| 7887 | as_fn_error $? "No supported vectorization found for your machine." "$LINENO" 5 |
| 7888 | fi |
| 7889 | ;; |
| 7890 | esac |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | # __attribute__() tags on function declarations |
| 7895 | # HAVE_FUNC_ATTRIBUTE_NORETURN |
| 7896 | # |
| 7897 | # The clang static analyzer can't figure out that some of our |
| 7898 | # varargs-dependent fatal error handlers (esl_fatal(), for example) |
| 7899 | # cannot return. To tell it so, we take advantage of __attribute__ |
| 7900 | # tags on function declarations, a non-ISO gcc extension, when |
| 7901 | # available. gcc, clang, and other gcc-like compilers support this. |
| 7902 | # |
| 7903 | # This gets set in the Easel esl_config.h. |
| 7904 | # |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5 |
| 7909 | printf %s "checking for __attribute__((noreturn))... " >&6; } |
| 7910 | if test ${ax_cv_have_func_attribute_noreturn+y} |
| 7911 | then : |
| 7912 | printf %s "(cached) " >&6 |
| 7913 | else $as_nop |
| 7914 | |
| 7915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7916 | /* end confdefs.h. */ |
| 7917 | |
| 7918 | |
| 7919 | void foo( void ) __attribute__((noreturn)); |
| 7920 | |
| 7921 | int |
| 7922 | main (void) |
| 7923 | { |
| 7924 | |
| 7925 | ; |
| 7926 | return 0; |
| 7927 | } |
| 7928 | |
| 7929 | _ACEOF |
| 7930 | if ac_fn_c_try_link "$LINENO" |
| 7931 | then : |
| 7932 | if test -s conftest.err |
| 7933 | then : |
| 7934 | ax_cv_have_func_attribute_noreturn=no |
| 7935 | else $as_nop |
| 7936 | ax_cv_have_func_attribute_noreturn=yes |
| 7937 | fi |
| 7938 | else $as_nop |
| 7939 | ax_cv_have_func_attribute_noreturn=no |
| 7940 | fi |
| 7941 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7942 | conftest$ac_exeext conftest.$ac_ext |
| 7943 | |
| 7944 | fi |
| 7945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5 |
| 7946 | printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; } |
| 7947 | |
| 7948 | if test yes = $ax_cv_have_func_attribute_noreturn |
| 7949 | then : |
| 7950 | |
| 7951 | printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h |
| 7952 | |
| 7953 | fi |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | # HAVE_FUNC_ATTRIBUTE_FORMAT |
| 7959 | # |
| 7960 | # We have some printf()-style functions that use varargs. |
| 7961 | # Apparently when you do something like |
| 7962 | # int64_t bigint; |
| 7963 | # my_printf("%d", bigint); |
| 7964 | # a compiler can't normally detect the size mismatch between the |
| 7965 | # specifier (%d) and the argument (bigint). Usually this isn't a |
| 7966 | # problem (apparently most platforms cast appropriately) but we had |
| 7967 | # problems on ARM. gcc-like compilers allow declaring an attribute |
| 7968 | # of format(printf, <string_index>, <first-to-check>), enabling the |
| 7969 | # compiler to typecheck printf()-like arguments, and warn appropriately. |
| 7970 | # We only need or use this in development. |
| 7971 | # |
| 7972 | # This gets set in the Easel esl_config.h. |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5 |
| 7977 | printf %s "checking for __attribute__((format))... " >&6; } |
| 7978 | if test ${ax_cv_have_func_attribute_format+y} |
| 7979 | then : |
| 7980 | printf %s "(cached) " >&6 |
| 7981 | else $as_nop |
| 7982 | |
| 7983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7984 | /* end confdefs.h. */ |
| 7985 | |
| 7986 | |
| 7987 | int foo(const char *p, ...) __attribute__((format(printf, 1, 2))); |
| 7988 | |
| 7989 | int |
| 7990 | main (void) |
| 7991 | { |
| 7992 | |
| 7993 | ; |
| 7994 | return 0; |
| 7995 | } |
| 7996 | |
| 7997 | _ACEOF |
| 7998 | if ac_fn_c_try_link "$LINENO" |
| 7999 | then : |
| 8000 | if test -s conftest.err |
| 8001 | then : |
| 8002 | ax_cv_have_func_attribute_format=no |
| 8003 | else $as_nop |
| 8004 | ax_cv_have_func_attribute_format=yes |
| 8005 | fi |
| 8006 | else $as_nop |
| 8007 | ax_cv_have_func_attribute_format=no |
| 8008 | fi |
| 8009 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8010 | conftest$ac_exeext conftest.$ac_ext |
| 8011 | |
| 8012 | fi |
| 8013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5 |
| 8014 | printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; } |
| 8015 | |
| 8016 | if test yes = $ax_cv_have_func_attribute_format |
| 8017 | then : |
| 8018 | |
| 8019 | printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h |
| 8020 | |
| 8021 | fi |
| 8022 | |
| 8023 | |
| 8024 | |
| 8025 | |
| 8026 | |
| 8027 | ################################################################ |
| 8028 | # 11. Checks for functions, defining HAVE_FOO when foo is found |
| 8029 | ################################################################ |
| 8030 | |
| 8031 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
| 8032 | if test "x$ac_cv_func_mkstemp" = xyes |
| 8033 | then : |
| 8034 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
| 8035 | |
| 8036 | fi |
| 8037 | |
| 8038 | ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
| 8039 | if test "x$ac_cv_func_popen" = xyes |
| 8040 | then : |
| 8041 | printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h |
| 8042 | |
| 8043 | fi |
| 8044 | |
| 8045 | ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 8046 | if test "x$ac_cv_func_putenv" = xyes |
| 8047 | then : |
| 8048 | printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 8049 | |
| 8050 | fi |
| 8051 | |
| 8052 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 8053 | if test "x$ac_cv_func_strcasecmp" = xyes |
| 8054 | then : |
| 8055 | printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h |
| 8056 | |
| 8057 | fi |
| 8058 | |
| 8059 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
| 8060 | if test "x$ac_cv_func_strsep" = xyes |
| 8061 | then : |
| 8062 | printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h |
| 8063 | |
| 8064 | fi |
| 8065 | |
| 8066 | ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" |
| 8067 | if test "x$ac_cv_func_times" = xyes |
| 8068 | then : |
| 8069 | printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h |
| 8070 | |
| 8071 | fi |
| 8072 | |
| 8073 | ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" |
| 8074 | if test "x$ac_cv_func_getpid" = xyes |
| 8075 | then : |
| 8076 | printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h |
| 8077 | |
| 8078 | fi |
| 8079 | |
| 8080 | ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" |
| 8081 | if test "x$ac_cv_func_sysctl" = xyes |
| 8082 | then : |
| 8083 | printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h |
| 8084 | |
| 8085 | fi |
| 8086 | |
| 8087 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
| 8088 | if test "x$ac_cv_func_sysconf" = xyes |
| 8089 | then : |
| 8090 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 8091 | |
| 8092 | fi |
| 8093 | |
| 8094 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 8095 | if test "x$ac_cv_func_getcwd" = xyes |
| 8096 | then : |
| 8097 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 8098 | |
| 8099 | fi |
| 8100 | |
| 8101 | ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" |
| 8102 | if test "x$ac_cv_func_chmod" = xyes |
| 8103 | then : |
| 8104 | printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h |
| 8105 | |
| 8106 | fi |
| 8107 | |
| 8108 | ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" |
| 8109 | if test "x$ac_cv_func_stat" = xyes |
| 8110 | then : |
| 8111 | printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h |
| 8112 | |
| 8113 | fi |
| 8114 | |
| 8115 | ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat" |
| 8116 | if test "x$ac_cv_func_fstat" = xyes |
| 8117 | then : |
| 8118 | printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h |
| 8119 | |
| 8120 | fi |
| 8121 | |
| 8122 | ac_fn_c_check_func "$LINENO" "erfc" "ac_cv_func_erfc" |
| 8123 | if test "x$ac_cv_func_erfc" = xyes |
| 8124 | then : |
| 8125 | printf "%s\n" "#define HAVE_ERFC 1" >>confdefs.h |
| 8126 | |
| 8127 | fi |
| 8128 | |
| 8129 | |
| 8130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ntohs" >&5 |
| 8131 | printf %s "checking for library containing ntohs... " >&6; } |
| 8132 | if test ${ac_cv_search_ntohs+y} |
| 8133 | then : |
| 8134 | printf %s "(cached) " >&6 |
| 8135 | else $as_nop |
| 8136 | ac_func_search_save_LIBS=$LIBS |
| 8137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8138 | /* end confdefs.h. */ |
| 8139 | |
| 8140 | /* Override any GCC internal prototype to avoid an error. |
| 8141 | Use char because int might match the return type of a GCC |
| 8142 | builtin and then its argument prototype would still apply. */ |
| 8143 | char ntohs (); |
| 8144 | int |
| 8145 | main (void) |
| 8146 | { |
| 8147 | return ntohs (); |
| 8148 | ; |
| 8149 | return 0; |
| 8150 | } |
| 8151 | _ACEOF |
| 8152 | for ac_lib in '' socket |
| 8153 | do |
| 8154 | if test -z "$ac_lib"; then |
| 8155 | ac_res="none required" |
| 8156 | else |
| 8157 | ac_res=-l$ac_lib |
| 8158 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8159 | fi |
| 8160 | if ac_fn_c_try_link "$LINENO" |
| 8161 | then : |
| 8162 | ac_cv_search_ntohs=$ac_res |
| 8163 | fi |
| 8164 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8165 | conftest$ac_exeext |
| 8166 | if test ${ac_cv_search_ntohs+y} |
| 8167 | then : |
| 8168 | break |
| 8169 | fi |
| 8170 | done |
| 8171 | if test ${ac_cv_search_ntohs+y} |
| 8172 | then : |
| 8173 | |
| 8174 | else $as_nop |
| 8175 | ac_cv_search_ntohs=no |
| 8176 | fi |
| 8177 | rm conftest.$ac_ext |
| 8178 | LIBS=$ac_func_search_save_LIBS |
| 8179 | fi |
| 8180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ntohs" >&5 |
| 8181 | printf "%s\n" "$ac_cv_search_ntohs" >&6; } |
| 8182 | ac_res=$ac_cv_search_ntohs |
| 8183 | if test "$ac_res" != no |
| 8184 | then : |
| 8185 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8186 | |
| 8187 | fi |
| 8188 | |
| 8189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ntohl" >&5 |
| 8190 | printf %s "checking for library containing ntohl... " >&6; } |
| 8191 | if test ${ac_cv_search_ntohl+y} |
| 8192 | then : |
| 8193 | printf %s "(cached) " >&6 |
| 8194 | else $as_nop |
| 8195 | ac_func_search_save_LIBS=$LIBS |
| 8196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8197 | /* end confdefs.h. */ |
| 8198 | |
| 8199 | /* Override any GCC internal prototype to avoid an error. |
| 8200 | Use char because int might match the return type of a GCC |
| 8201 | builtin and then its argument prototype would still apply. */ |
| 8202 | char ntohl (); |
| 8203 | int |
| 8204 | main (void) |
| 8205 | { |
| 8206 | return ntohl (); |
| 8207 | ; |
| 8208 | return 0; |
| 8209 | } |
| 8210 | _ACEOF |
| 8211 | for ac_lib in '' socket |
| 8212 | do |
| 8213 | if test -z "$ac_lib"; then |
| 8214 | ac_res="none required" |
| 8215 | else |
| 8216 | ac_res=-l$ac_lib |
| 8217 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8218 | fi |
| 8219 | if ac_fn_c_try_link "$LINENO" |
| 8220 | then : |
| 8221 | ac_cv_search_ntohl=$ac_res |
| 8222 | fi |
| 8223 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8224 | conftest$ac_exeext |
| 8225 | if test ${ac_cv_search_ntohl+y} |
| 8226 | then : |
| 8227 | break |
| 8228 | fi |
| 8229 | done |
| 8230 | if test ${ac_cv_search_ntohl+y} |
| 8231 | then : |
| 8232 | |
| 8233 | else $as_nop |
| 8234 | ac_cv_search_ntohl=no |
| 8235 | fi |
| 8236 | rm conftest.$ac_ext |
| 8237 | LIBS=$ac_func_search_save_LIBS |
| 8238 | fi |
| 8239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ntohl" >&5 |
| 8240 | printf "%s\n" "$ac_cv_search_ntohl" >&6; } |
| 8241 | ac_res=$ac_cv_search_ntohl |
| 8242 | if test "$ac_res" != no |
| 8243 | then : |
| 8244 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8245 | |
| 8246 | fi |
| 8247 | |
| 8248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing htons" >&5 |
| 8249 | printf %s "checking for library containing htons... " >&6; } |
| 8250 | if test ${ac_cv_search_htons+y} |
| 8251 | then : |
| 8252 | printf %s "(cached) " >&6 |
| 8253 | else $as_nop |
| 8254 | ac_func_search_save_LIBS=$LIBS |
| 8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8256 | /* end confdefs.h. */ |
| 8257 | |
| 8258 | /* Override any GCC internal prototype to avoid an error. |
| 8259 | Use char because int might match the return type of a GCC |
| 8260 | builtin and then its argument prototype would still apply. */ |
| 8261 | char htons (); |
| 8262 | int |
| 8263 | main (void) |
| 8264 | { |
| 8265 | return htons (); |
| 8266 | ; |
| 8267 | return 0; |
| 8268 | } |
| 8269 | _ACEOF |
| 8270 | for ac_lib in '' socket |
| 8271 | do |
| 8272 | if test -z "$ac_lib"; then |
| 8273 | ac_res="none required" |
| 8274 | else |
| 8275 | ac_res=-l$ac_lib |
| 8276 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8277 | fi |
| 8278 | if ac_fn_c_try_link "$LINENO" |
| 8279 | then : |
| 8280 | ac_cv_search_htons=$ac_res |
| 8281 | fi |
| 8282 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8283 | conftest$ac_exeext |
| 8284 | if test ${ac_cv_search_htons+y} |
| 8285 | then : |
| 8286 | break |
| 8287 | fi |
| 8288 | done |
| 8289 | if test ${ac_cv_search_htons+y} |
| 8290 | then : |
| 8291 | |
| 8292 | else $as_nop |
| 8293 | ac_cv_search_htons=no |
| 8294 | fi |
| 8295 | rm conftest.$ac_ext |
| 8296 | LIBS=$ac_func_search_save_LIBS |
| 8297 | fi |
| 8298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_htons" >&5 |
| 8299 | printf "%s\n" "$ac_cv_search_htons" >&6; } |
| 8300 | ac_res=$ac_cv_search_htons |
| 8301 | if test "$ac_res" != no |
| 8302 | then : |
| 8303 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8304 | |
| 8305 | fi |
| 8306 | |
| 8307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing htonl" >&5 |
| 8308 | printf %s "checking for library containing htonl... " >&6; } |
| 8309 | if test ${ac_cv_search_htonl+y} |
| 8310 | then : |
| 8311 | printf %s "(cached) " >&6 |
| 8312 | else $as_nop |
| 8313 | ac_func_search_save_LIBS=$LIBS |
| 8314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8315 | /* end confdefs.h. */ |
| 8316 | |
| 8317 | /* Override any GCC internal prototype to avoid an error. |
| 8318 | Use char because int might match the return type of a GCC |
| 8319 | builtin and then its argument prototype would still apply. */ |
| 8320 | char htonl (); |
| 8321 | int |
| 8322 | main (void) |
| 8323 | { |
| 8324 | return htonl (); |
| 8325 | ; |
| 8326 | return 0; |
| 8327 | } |
| 8328 | _ACEOF |
| 8329 | for ac_lib in '' socket |
| 8330 | do |
| 8331 | if test -z "$ac_lib"; then |
| 8332 | ac_res="none required" |
| 8333 | else |
| 8334 | ac_res=-l$ac_lib |
| 8335 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8336 | fi |
| 8337 | if ac_fn_c_try_link "$LINENO" |
| 8338 | then : |
| 8339 | ac_cv_search_htonl=$ac_res |
| 8340 | fi |
| 8341 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8342 | conftest$ac_exeext |
| 8343 | if test ${ac_cv_search_htonl+y} |
| 8344 | then : |
| 8345 | break |
| 8346 | fi |
| 8347 | done |
| 8348 | if test ${ac_cv_search_htonl+y} |
| 8349 | then : |
| 8350 | |
| 8351 | else $as_nop |
| 8352 | ac_cv_search_htonl=no |
| 8353 | fi |
| 8354 | rm conftest.$ac_ext |
| 8355 | LIBS=$ac_func_search_save_LIBS |
| 8356 | fi |
| 8357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_htonl" >&5 |
| 8358 | printf "%s\n" "$ac_cv_search_htonl" >&6; } |
| 8359 | ac_res=$ac_cv_search_htonl |
| 8360 | if test "$ac_res" != no |
| 8361 | then : |
| 8362 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8363 | |
| 8364 | fi |
| 8365 | |
| 8366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 8367 | printf %s "checking for library containing socket... " >&6; } |
| 8368 | if test ${ac_cv_search_socket+y} |
| 8369 | then : |
| 8370 | printf %s "(cached) " >&6 |
| 8371 | else $as_nop |
| 8372 | ac_func_search_save_LIBS=$LIBS |
| 8373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8374 | /* end confdefs.h. */ |
| 8375 | |
| 8376 | /* Override any GCC internal prototype to avoid an error. |
| 8377 | Use char because int might match the return type of a GCC |
| 8378 | builtin and then its argument prototype would still apply. */ |
| 8379 | char socket (); |
| 8380 | int |
| 8381 | main (void) |
| 8382 | { |
| 8383 | return socket (); |
| 8384 | ; |
| 8385 | return 0; |
| 8386 | } |
| 8387 | _ACEOF |
| 8388 | for ac_lib in '' socket |
| 8389 | do |
| 8390 | if test -z "$ac_lib"; then |
| 8391 | ac_res="none required" |
| 8392 | else |
| 8393 | ac_res=-l$ac_lib |
| 8394 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8395 | fi |
| 8396 | if ac_fn_c_try_link "$LINENO" |
| 8397 | then : |
| 8398 | ac_cv_search_socket=$ac_res |
| 8399 | fi |
| 8400 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8401 | conftest$ac_exeext |
| 8402 | if test ${ac_cv_search_socket+y} |
| 8403 | then : |
| 8404 | break |
| 8405 | fi |
| 8406 | done |
| 8407 | if test ${ac_cv_search_socket+y} |
| 8408 | then : |
| 8409 | |
| 8410 | else $as_nop |
| 8411 | ac_cv_search_socket=no |
| 8412 | fi |
| 8413 | rm conftest.$ac_ext |
| 8414 | LIBS=$ac_func_search_save_LIBS |
| 8415 | fi |
| 8416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 8417 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
| 8418 | ac_res=$ac_cv_search_socket |
| 8419 | if test "$ac_res" != no |
| 8420 | then : |
| 8421 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8422 | |
| 8423 | fi |
| 8424 | |
| 8425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 |
| 8426 | printf %s "checking for library containing inet_pton... " >&6; } |
| 8427 | if test ${ac_cv_search_inet_pton+y} |
| 8428 | then : |
| 8429 | printf %s "(cached) " >&6 |
| 8430 | else $as_nop |
| 8431 | ac_func_search_save_LIBS=$LIBS |
| 8432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8433 | /* end confdefs.h. */ |
| 8434 | |
| 8435 | /* Override any GCC internal prototype to avoid an error. |
| 8436 | Use char because int might match the return type of a GCC |
| 8437 | builtin and then its argument prototype would still apply. */ |
| 8438 | char inet_pton (); |
| 8439 | int |
| 8440 | main (void) |
| 8441 | { |
| 8442 | return inet_pton (); |
| 8443 | ; |
| 8444 | return 0; |
| 8445 | } |
| 8446 | _ACEOF |
| 8447 | for ac_lib in '' nsl |
| 8448 | do |
| 8449 | if test -z "$ac_lib"; then |
| 8450 | ac_res="none required" |
| 8451 | else |
| 8452 | ac_res=-l$ac_lib |
| 8453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8454 | fi |
| 8455 | if ac_fn_c_try_link "$LINENO" |
| 8456 | then : |
| 8457 | ac_cv_search_inet_pton=$ac_res |
| 8458 | fi |
| 8459 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8460 | conftest$ac_exeext |
| 8461 | if test ${ac_cv_search_inet_pton+y} |
| 8462 | then : |
| 8463 | break |
| 8464 | fi |
| 8465 | done |
| 8466 | if test ${ac_cv_search_inet_pton+y} |
| 8467 | then : |
| 8468 | |
| 8469 | else $as_nop |
| 8470 | ac_cv_search_inet_pton=no |
| 8471 | fi |
| 8472 | rm conftest.$ac_ext |
| 8473 | LIBS=$ac_func_search_save_LIBS |
| 8474 | fi |
| 8475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 |
| 8476 | printf "%s\n" "$ac_cv_search_inet_pton" >&6; } |
| 8477 | ac_res=$ac_cv_search_inet_pton |
| 8478 | if test "$ac_res" != no |
| 8479 | then : |
| 8480 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8481 | |
| 8482 | fi |
| 8483 | |
| 8484 | |
| 8485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 8486 | printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 8487 | if test ${ac_cv_sys_largefile_source+y} |
| 8488 | then : |
| 8489 | printf %s "(cached) " >&6 |
| 8490 | else $as_nop |
| 8491 | while :; do |
| 8492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8493 | /* end confdefs.h. */ |
| 8494 | #include <sys/types.h> /* for off_t */ |
| 8495 | #include <stdio.h> |
| 8496 | int |
| 8497 | main (void) |
| 8498 | { |
| 8499 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 8500 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 8501 | ; |
| 8502 | return 0; |
| 8503 | } |
| 8504 | _ACEOF |
| 8505 | if ac_fn_c_try_link "$LINENO" |
| 8506 | then : |
| 8507 | ac_cv_sys_largefile_source=no; break |
| 8508 | fi |
| 8509 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8510 | conftest$ac_exeext conftest.$ac_ext |
| 8511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8512 | /* end confdefs.h. */ |
| 8513 | #define _LARGEFILE_SOURCE 1 |
| 8514 | #include <sys/types.h> /* for off_t */ |
| 8515 | #include <stdio.h> |
| 8516 | int |
| 8517 | main (void) |
| 8518 | { |
| 8519 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 8520 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 8521 | ; |
| 8522 | return 0; |
| 8523 | } |
| 8524 | _ACEOF |
| 8525 | if ac_fn_c_try_link "$LINENO" |
| 8526 | then : |
| 8527 | ac_cv_sys_largefile_source=1; break |
| 8528 | fi |
| 8529 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8530 | conftest$ac_exeext conftest.$ac_ext |
| 8531 | ac_cv_sys_largefile_source=unknown |
| 8532 | break |
| 8533 | done |
| 8534 | fi |
| 8535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| 8536 | printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } |
| 8537 | case $ac_cv_sys_largefile_source in #( |
| 8538 | no | unknown) ;; |
| 8539 | *) |
| 8540 | printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h |
| 8541 | ;; |
| 8542 | esac |
| 8543 | rm -rf conftest* |
| 8544 | |
| 8545 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 8546 | # in glibc 2.1.3, but that breaks too many other things. |
| 8547 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 8548 | if test $ac_cv_sys_largefile_source != unknown; then |
| 8549 | |
| 8550 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 8551 | |
| 8552 | fi |
| 8553 | |
| 8554 | |
| 8555 | ################################################################ |
| 8556 | # 12. System services |
| 8557 | ################################################################ |
| 8558 | # Check whether --enable-largefile was given. |
| 8559 | if test ${enable_largefile+y} |
| 8560 | then : |
| 8561 | enableval=$enable_largefile; |
| 8562 | fi |
| 8563 | |
| 8564 | if test "$enable_largefile" != no; then |
| 8565 | |
| 8566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 8567 | printf %s "checking for special C compiler options needed for large files... " >&6; } |
| 8568 | if test ${ac_cv_sys_largefile_CC+y} |
| 8569 | then : |
| 8570 | printf %s "(cached) " >&6 |
| 8571 | else $as_nop |
| 8572 | ac_cv_sys_largefile_CC=no |
| 8573 | if test "$GCC" != yes; then |
| 8574 | ac_save_CC=$CC |
| 8575 | while :; do |
| 8576 | # IRIX 6.2 and later do not support large files by default, |
| 8577 | # so use the C compiler's -n32 option if that helps. |
| 8578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8579 | /* end confdefs.h. */ |
| 8580 | #include <sys/types.h> |
| 8581 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8582 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8583 | since some C++ compilers masquerading as C compilers |
| 8584 | incorrectly reject 9223372036854775807. */ |
| 8585 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8586 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8587 | && LARGE_OFF_T % 2147483647 == 1) |
| 8588 | ? 1 : -1]; |
| 8589 | int |
| 8590 | main (void) |
| 8591 | { |
| 8592 | |
| 8593 | ; |
| 8594 | return 0; |
| 8595 | } |
| 8596 | _ACEOF |
| 8597 | if ac_fn_c_try_compile "$LINENO" |
| 8598 | then : |
| 8599 | break |
| 8600 | fi |
| 8601 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8602 | CC="$CC -n32" |
| 8603 | if ac_fn_c_try_compile "$LINENO" |
| 8604 | then : |
| 8605 | ac_cv_sys_largefile_CC=' -n32'; break |
| 8606 | fi |
| 8607 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 8608 | break |
| 8609 | done |
| 8610 | CC=$ac_save_CC |
| 8611 | rm -f conftest.$ac_ext |
| 8612 | fi |
| 8613 | fi |
| 8614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 8615 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } |
| 8616 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 8617 | CC=$CC$ac_cv_sys_largefile_CC |
| 8618 | fi |
| 8619 | |
| 8620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 8621 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 8622 | if test ${ac_cv_sys_file_offset_bits+y} |
| 8623 | then : |
| 8624 | printf %s "(cached) " >&6 |
| 8625 | else $as_nop |
| 8626 | while :; do |
| 8627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8628 | /* end confdefs.h. */ |
| 8629 | #include <sys/types.h> |
| 8630 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8631 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8632 | since some C++ compilers masquerading as C compilers |
| 8633 | incorrectly reject 9223372036854775807. */ |
| 8634 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8635 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8636 | && LARGE_OFF_T % 2147483647 == 1) |
| 8637 | ? 1 : -1]; |
| 8638 | int |
| 8639 | main (void) |
| 8640 | { |
| 8641 | |
| 8642 | ; |
| 8643 | return 0; |
| 8644 | } |
| 8645 | _ACEOF |
| 8646 | if ac_fn_c_try_compile "$LINENO" |
| 8647 | then : |
| 8648 | ac_cv_sys_file_offset_bits=no; break |
| 8649 | fi |
| 8650 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8652 | /* end confdefs.h. */ |
| 8653 | #define _FILE_OFFSET_BITS 64 |
| 8654 | #include <sys/types.h> |
| 8655 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8656 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8657 | since some C++ compilers masquerading as C compilers |
| 8658 | incorrectly reject 9223372036854775807. */ |
| 8659 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8660 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8661 | && LARGE_OFF_T % 2147483647 == 1) |
| 8662 | ? 1 : -1]; |
| 8663 | int |
| 8664 | main (void) |
| 8665 | { |
| 8666 | |
| 8667 | ; |
| 8668 | return 0; |
| 8669 | } |
| 8670 | _ACEOF |
| 8671 | if ac_fn_c_try_compile "$LINENO" |
| 8672 | then : |
| 8673 | ac_cv_sys_file_offset_bits=64; break |
| 8674 | fi |
| 8675 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8676 | ac_cv_sys_file_offset_bits=unknown |
| 8677 | break |
| 8678 | done |
| 8679 | fi |
| 8680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 8681 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } |
| 8682 | case $ac_cv_sys_file_offset_bits in #( |
| 8683 | no | unknown) ;; |
| 8684 | *) |
| 8685 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h |
| 8686 | ;; |
| 8687 | esac |
| 8688 | rm -rf conftest* |
| 8689 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 8690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 8691 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 8692 | if test ${ac_cv_sys_large_files+y} |
| 8693 | then : |
| 8694 | printf %s "(cached) " >&6 |
| 8695 | else $as_nop |
| 8696 | while :; do |
| 8697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8698 | /* end confdefs.h. */ |
| 8699 | #include <sys/types.h> |
| 8700 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8701 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8702 | since some C++ compilers masquerading as C compilers |
| 8703 | incorrectly reject 9223372036854775807. */ |
| 8704 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8705 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8706 | && LARGE_OFF_T % 2147483647 == 1) |
| 8707 | ? 1 : -1]; |
| 8708 | int |
| 8709 | main (void) |
| 8710 | { |
| 8711 | |
| 8712 | ; |
| 8713 | return 0; |
| 8714 | } |
| 8715 | _ACEOF |
| 8716 | if ac_fn_c_try_compile "$LINENO" |
| 8717 | then : |
| 8718 | ac_cv_sys_large_files=no; break |
| 8719 | fi |
| 8720 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8722 | /* end confdefs.h. */ |
| 8723 | #define _LARGE_FILES 1 |
| 8724 | #include <sys/types.h> |
| 8725 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8726 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8727 | since some C++ compilers masquerading as C compilers |
| 8728 | incorrectly reject 9223372036854775807. */ |
| 8729 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8730 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8731 | && LARGE_OFF_T % 2147483647 == 1) |
| 8732 | ? 1 : -1]; |
| 8733 | int |
| 8734 | main (void) |
| 8735 | { |
| 8736 | |
| 8737 | ; |
| 8738 | return 0; |
| 8739 | } |
| 8740 | _ACEOF |
| 8741 | if ac_fn_c_try_compile "$LINENO" |
| 8742 | then : |
| 8743 | ac_cv_sys_large_files=1; break |
| 8744 | fi |
| 8745 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8746 | ac_cv_sys_large_files=unknown |
| 8747 | break |
| 8748 | done |
| 8749 | fi |
| 8750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 8751 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } |
| 8752 | case $ac_cv_sys_large_files in #( |
| 8753 | no | unknown) ;; |
| 8754 | *) |
| 8755 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h |
| 8756 | ;; |
| 8757 | esac |
| 8758 | rm -rf conftest* |
| 8759 | fi |
| 8760 | fi |
| 8761 | |
| 8762 | |
| 8763 | |
| 8764 | ################################################################ |
| 8765 | # 13. Config subdirs and files |
| 8766 | ################################################################ |
| 8767 | |
| 8768 | # Infernal Makefiles. |
| 8769 | ac_config_files="$ac_config_files Makefile src/Makefile testsuite/Makefile rmark/Makefile documentation/Makefile documentation/man/Makefile documentation/userguide/Makefile" |
| 8770 | |
| 8771 | if test "$impl_choice" = "sse"; then |
| 8772 | ac_config_files="$ac_config_files src/impl_sse/Makefile" |
| 8773 | |
| 8774 | fi |
| 8775 | |
| 8776 | # Substitutions in Userguide .tex files |
| 8777 | # INFERNAL_VERSION, INFERNAL_DATE, INFERNAL_COPYRIGHT |
| 8778 | ac_config_files="$ac_config_files documentation/userguide/titlepage.tex documentation/userguide/copyright.tex" |
| 8779 | |
| 8780 | |
| 8781 | # Substitutions in Infernal man pages: |
| 8782 | # INFERNAL_VERSION, INFERNAL_DATE, INFERNAL_COPYRIGHT, INFERNAL_LICENSE, INFERNAL_URL |
| 8783 | ac_config_files="$ac_config_files documentation/man/cmalign.man documentation/man/cmbuild.man documentation/man/cmcalibrate.man documentation/man/cmconvert.man documentation/man/cmemit.man documentation/man/cmfetch.man documentation/man/cmpress.man documentation/man/cmscan.man documentation/man/cmsearch.man documentation/man/cmsearch_dual.man documentation/man/cmstat.man documentation/man/infernal.man documentation/man/sse_cmsearch.man" |
| 8784 | |
| 8785 | |
| 8786 | # HMMER3 Makefiles. |
| 8787 | ac_config_files="$ac_config_files hmmer/Makefile hmmer/src/Makefile hmmer/testsuite/Makefile hmmer/profmark/Makefile hmmer/src/impl_${impl_choice}/Makefile hmmer/documentation/Makefile hmmer/documentation/man/Makefile hmmer/documentation/userguide/Makefile hmmer/documentation/userguide/inclusions/Makefile hmmer/libdivsufsort/Makefile" |
| 8788 | |
| 8789 | |
| 8790 | # Easel Makefiles. |
| 8791 | ac_config_files="$ac_config_files easel/Makefile easel/miniapps/Makefile easel/testsuite/Makefile easel/documentation/Makefile" |
| 8792 | |
| 8793 | |
| 8794 | # Substitutions in HMMER Userguide .tex files |
| 8795 | # HMMER_VERSION, HMMER_DATE, HMMER_COPYRIGHT |
| 8796 | ac_config_files="$ac_config_files hmmer/documentation/userguide/titlepage.tex hmmer/documentation/userguide/titlepage_daemon.tex hmmer/documentation/userguide/copyright.tex" |
| 8797 | |
| 8798 | |
| 8799 | # Substitutions in HMMER man pages: |
| 8800 | # HMMER_VERSION, HMMER_DATE, HMMER_COPYRIGHT, HMMER_LICENSE, HMMER_URL |
| 8801 | ac_config_files="$ac_config_files hmmer/documentation/man/alimask.man hmmer/documentation/man/hmmalign.man hmmer/documentation/man/hmmbuild.man hmmer/documentation/man/hmmc2.man hmmer/documentation/man/hmmconvert.man hmmer/documentation/man/hmmemit.man hmmer/documentation/man/hmmer.man hmmer/documentation/man/hmmfetch.man hmmer/documentation/man/hmmlogo.man hmmer/documentation/man/hmmpgmd.man hmmer/documentation/man/hmmpgmd_shard.man hmmer/documentation/man/hmmpress.man hmmer/documentation/man/hmmscan.man hmmer/documentation/man/hmmsearch.man hmmer/documentation/man/hmmsim.man hmmer/documentation/man/hmmstat.man hmmer/documentation/man/jackhmmer.man hmmer/documentation/man/makehmmerdb.man hmmer/documentation/man/nhmmer.man hmmer/documentation/man/nhmmscan.man hmmer/documentation/man/phmmer.man" |
| 8802 | |
| 8803 | |
| 8804 | # Substitutions in Easel man pages: |
| 8805 | # EASEL_VERSION, EASEL_DATE, EASEL_COPYRIGHT, EASEL_LICENSE, EASEL_URL |
| 8806 | ac_config_files="$ac_config_files easel/miniapps/esl-afetch.man easel/miniapps/esl-alimanip.man easel/miniapps/esl-alimap.man easel/miniapps/esl-alimask.man easel/miniapps/esl-alimerge.man easel/miniapps/esl-alipid.man easel/miniapps/esl-alirev.man easel/miniapps/esl-alistat.man easel/miniapps/esl-compalign.man easel/miniapps/esl-compstruct.man easel/miniapps/esl-construct.man easel/miniapps/esl-histplot.man easel/miniapps/esl-mask.man easel/miniapps/esl-mixdchlet.man easel/miniapps/esl-reformat.man easel/miniapps/esl-selectn.man easel/miniapps/esl-seqrange.man easel/miniapps/esl-seqstat.man easel/miniapps/esl-sfetch.man easel/miniapps/esl-shuffle.man easel/miniapps/esl-ssdraw.man easel/miniapps/esl-translate.man easel/miniapps/esl-weight.man" |
| 8807 | |
| 8808 | |
| 8809 | ac_config_headers="$ac_config_headers easel/decoy_config.h" |
| 8810 | # Put this first to keep gnu 'autoheader' from overwriting a real config file. |
| 8811 | ac_config_headers="$ac_config_headers src/config.h" |
| 8812 | |
| 8813 | ac_config_headers="$ac_config_headers hmmer/src/p7_config.h" |
| 8814 | |
| 8815 | ac_config_headers="$ac_config_headers easel/esl_config.h" |
| 8816 | |
| 8817 | ac_config_headers="$ac_config_headers hmmer/libdivsufsort/divsufsort.h" |
| 8818 | |
| 8819 | |
| 8820 | |
| 8821 | |
| 8822 | ################################################################ |
| 8823 | # 14. AC_OUTPUT |
| 8824 | ################################################################ |
| 8825 | cat >confcache <<\_ACEOF |
| 8826 | # This file is a shell script that caches the results of configure |
| 8827 | # tests run on this system so they can be shared between configure |
| 8828 | # scripts and configure runs, see configure's option --config-cache. |
| 8829 | # It is not useful on other systems. If it contains results you don't |
| 8830 | # want to keep, you may remove or edit it. |
| 8831 | # |
| 8832 | # config.status only pays attention to the cache file if you give it |
| 8833 | # the --recheck option to rerun configure. |
| 8834 | # |
| 8835 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 8836 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 8837 | # following values. |
| 8838 | |
| 8839 | _ACEOF |
| 8840 | |
| 8841 | # The following way of writing the cache mishandles newlines in values, |
| 8842 | # but we know of no workaround that is simple, portable, and efficient. |
| 8843 | # So, we kill variables containing newlines. |
| 8844 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8845 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8846 | ( |
| 8847 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 8848 | eval ac_val=\$$ac_var |
| 8849 | case $ac_val in #( |
| 8850 | *${as_nl}*) |
| 8851 | case $ac_var in #( |
| 8852 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 8853 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 8854 | esac |
| 8855 | case $ac_var in #( |
| 8856 | _ | IFS | as_nl) ;; #( |
| 8857 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 8858 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 8859 | esac ;; |
| 8860 | esac |
| 8861 | done |
| 8862 | |
| 8863 | (set) 2>&1 | |
| 8864 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 8865 | *${as_nl}ac_space=\ *) |
| 8866 | # `set' does not quote correctly, so add quotes: double-quote |
| 8867 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 8868 | sed -n \ |
| 8869 | "s/'/'\\\\''/g; |
| 8870 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 8871 | ;; #( |
| 8872 | *) |
| 8873 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8874 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 8875 | ;; |
| 8876 | esac | |
| 8877 | sort |
| 8878 | ) | |
| 8879 | sed ' |
| 8880 | /^ac_cv_env_/b end |
| 8881 | t clear |
| 8882 | :clear |
| 8883 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 8884 | t end |
| 8885 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 8886 | :end' >>confcache |
| 8887 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 8888 | if test -w "$cache_file"; then |
| 8889 | if test "x$cache_file" != "x/dev/null"; then |
| 8890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 8891 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 8892 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 8893 | cat confcache >"$cache_file" |
| 8894 | else |
| 8895 | case $cache_file in #( |
| 8896 | */* | ?:*) |
| 8897 | mv -f confcache "$cache_file"$$ && |
| 8898 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 8899 | *) |
| 8900 | mv -f confcache "$cache_file" ;; |
| 8901 | esac |
| 8902 | fi |
| 8903 | fi |
| 8904 | else |
| 8905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 8906 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 8907 | fi |
| 8908 | fi |
| 8909 | rm -f confcache |
| 8910 | |
| 8911 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8912 | # Let make expand exec_prefix. |
| 8913 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8914 | |
| 8915 | DEFS=-DHAVE_CONFIG_H |
| 8916 | |
| 8917 | ac_libobjs= |
| 8918 | ac_ltlibobjs= |
| 8919 | U= |
| 8920 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8921 | # 1. Remove the extension, and $U if already installed. |
| 8922 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 8923 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 8924 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 8925 | # will be set to the directory where LIBOBJS objects are built. |
| 8926 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 8927 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 8928 | done |
| 8929 | LIBOBJS=$ac_libobjs |
| 8930 | |
| 8931 | LTLIBOBJS=$ac_ltlibobjs |
| 8932 | |
| 8933 | |
| 8934 | |
| 8935 | |
| 8936 | : "${CONFIG_STATUS=./config.status}" |
| 8937 | ac_write_fail=0 |
| 8938 | ac_clean_files_save=$ac_clean_files |
| 8939 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 8940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 8941 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8942 | as_write_fail=0 |
| 8943 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 8944 | #! $SHELL |
| 8945 | # Generated by $as_me. |
| 8946 | # Run this file to recreate the current configuration. |
| 8947 | # Compiler output produced by configure, useful for debugging |
| 8948 | # configure, is in config.log if it exists. |
| 8949 | |
| 8950 | debug=false |
| 8951 | ac_cs_recheck=false |
| 8952 | ac_cs_silent=false |
| 8953 | |
| 8954 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8955 | export SHELL |
| 8956 | _ASEOF |
| 8957 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 8958 | ## -------------------- ## |
| 8959 | ## M4sh Initialization. ## |
| 8960 | ## -------------------- ## |
| 8961 | |
| 8962 | # Be more Bourne compatible |
| 8963 | DUALCASE=1; export DUALCASE # for MKS sh |
| 8964 | as_nop=: |
| 8965 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 8966 | then : |
| 8967 | emulate sh |
| 8968 | NULLCMD=: |
| 8969 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 8970 | # is contrary to our usage. Disable this feature. |
| 8971 | alias -g '${1+"$@"}'='"$@"' |
| 8972 | setopt NO_GLOB_SUBST |
| 8973 | else $as_nop |
| 8974 | case `(set -o) 2>/dev/null` in #( |
| 8975 | *posix*) : |
| 8976 | set -o posix ;; #( |
| 8977 | *) : |
| 8978 | ;; |
| 8979 | esac |
| 8980 | fi |
| 8981 | |
| 8982 | |
| 8983 | |
| 8984 | # Reset variables that may have inherited troublesome values from |
| 8985 | # the environment. |
| 8986 | |
| 8987 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 8988 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 8989 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 8990 | # Quoting is to prevent editors from complaining about space-tab. |
| 8991 | as_nl=' |
| 8992 | ' |
| 8993 | export as_nl |
| 8994 | IFS=" "" $as_nl" |
| 8995 | |
| 8996 | PS1='$ ' |
| 8997 | PS2='> ' |
| 8998 | PS4='+ ' |
| 8999 | |
| 9000 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 9001 | LC_ALL=C |
| 9002 | export LC_ALL |
| 9003 | LANGUAGE=C |
| 9004 | export LANGUAGE |
| 9005 | |
| 9006 | # We cannot yet rely on "unset" to work, but we need these variables |
| 9007 | # to be unset--not just set to an empty or harmless value--now, to |
| 9008 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 9009 | # also avoids known problems related to "unset" and subshell syntax |
| 9010 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 9011 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 9012 | do eval test \${$as_var+y} \ |
| 9013 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 9014 | done |
| 9015 | |
| 9016 | # Ensure that fds 0, 1, and 2 are open. |
| 9017 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 9018 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 9019 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 9020 | |
| 9021 | # The user is always right. |
| 9022 | if ${PATH_SEPARATOR+false} :; then |
| 9023 | PATH_SEPARATOR=: |
| 9024 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 9025 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 9026 | PATH_SEPARATOR=';' |
| 9027 | } |
| 9028 | fi |
| 9029 | |
| 9030 | |
| 9031 | # Find who we are. Look in the path if we contain no directory separator. |
| 9032 | as_myself= |
| 9033 | case $0 in #(( |
| 9034 | *[\\/]* ) as_myself=$0 ;; |
| 9035 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9036 | for as_dir in $PATH |
| 9037 | do |
| 9038 | IFS=$as_save_IFS |
| 9039 | case $as_dir in #((( |
| 9040 | '') as_dir=./ ;; |
| 9041 | */) ;; |
| 9042 | *) as_dir=$as_dir/ ;; |
| 9043 | esac |
| 9044 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 9045 | done |
| 9046 | IFS=$as_save_IFS |
| 9047 | |
| 9048 | ;; |
| 9049 | esac |
| 9050 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9051 | # in which case we are not to be found in the path. |
| 9052 | if test "x$as_myself" = x; then |
| 9053 | as_myself=$0 |
| 9054 | fi |
| 9055 | if test ! -f "$as_myself"; then |
| 9056 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 9057 | exit 1 |
| 9058 | fi |
| 9059 | |
| 9060 | |
| 9061 | |
| 9062 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 9063 | # ---------------------------------------- |
| 9064 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 9065 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 9066 | # script with STATUS, using 1 if that was 0. |
| 9067 | as_fn_error () |
| 9068 | { |
| 9069 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 9070 | if test "$4"; then |
| 9071 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 9072 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 9073 | fi |
| 9074 | printf "%s\n" "$as_me: error: $2" >&2 |
| 9075 | as_fn_exit $as_status |
| 9076 | } # as_fn_error |
| 9077 | |
| 9078 | |
| 9079 | |
| 9080 | # as_fn_set_status STATUS |
| 9081 | # ----------------------- |
| 9082 | # Set $? to STATUS, without forking. |
| 9083 | as_fn_set_status () |
| 9084 | { |
| 9085 | return $1 |
| 9086 | } # as_fn_set_status |
| 9087 | |
| 9088 | # as_fn_exit STATUS |
| 9089 | # ----------------- |
| 9090 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 9091 | as_fn_exit () |
| 9092 | { |
| 9093 | set +e |
| 9094 | as_fn_set_status $1 |
| 9095 | exit $1 |
| 9096 | } # as_fn_exit |
| 9097 | |
| 9098 | # as_fn_unset VAR |
| 9099 | # --------------- |
| 9100 | # Portably unset VAR. |
| 9101 | as_fn_unset () |
| 9102 | { |
| 9103 | { eval $1=; unset $1;} |
| 9104 | } |
| 9105 | as_unset=as_fn_unset |
| 9106 | |
| 9107 | # as_fn_append VAR VALUE |
| 9108 | # ---------------------- |
| 9109 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 9110 | # advantage of any shell optimizations that allow amortized linear growth over |
| 9111 | # repeated appends, instead of the typical quadratic growth present in naive |
| 9112 | # implementations. |
| 9113 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 9114 | then : |
| 9115 | eval 'as_fn_append () |
| 9116 | { |
| 9117 | eval $1+=\$2 |
| 9118 | }' |
| 9119 | else $as_nop |
| 9120 | as_fn_append () |
| 9121 | { |
| 9122 | eval $1=\$$1\$2 |
| 9123 | } |
| 9124 | fi # as_fn_append |
| 9125 | |
| 9126 | # as_fn_arith ARG... |
| 9127 | # ------------------ |
| 9128 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 9129 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 9130 | # must be portable across $(()) and expr. |
| 9131 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 9132 | then : |
| 9133 | eval 'as_fn_arith () |
| 9134 | { |
| 9135 | as_val=$(( $* )) |
| 9136 | }' |
| 9137 | else $as_nop |
| 9138 | as_fn_arith () |
| 9139 | { |
| 9140 | as_val=`expr "$@" || test $? -eq 1` |
| 9141 | } |
| 9142 | fi # as_fn_arith |
| 9143 | |
| 9144 | |
| 9145 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 9146 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 9147 | as_expr=expr |
| 9148 | else |
| 9149 | as_expr=false |
| 9150 | fi |
| 9151 | |
| 9152 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 9153 | as_basename=basename |
| 9154 | else |
| 9155 | as_basename=false |
| 9156 | fi |
| 9157 | |
| 9158 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 9159 | as_dirname=dirname |
| 9160 | else |
| 9161 | as_dirname=false |
| 9162 | fi |
| 9163 | |
| 9164 | as_me=`$as_basename -- "$0" || |
| 9165 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9166 | X"$0" : 'X\(//\)$' \| \ |
| 9167 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 9168 | printf "%s\n" X/"$0" | |
| 9169 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 9170 | s//\1/ |
| 9171 | q |
| 9172 | } |
| 9173 | /^X\/\(\/\/\)$/{ |
| 9174 | s//\1/ |
| 9175 | q |
| 9176 | } |
| 9177 | /^X\/\(\/\).*/{ |
| 9178 | s//\1/ |
| 9179 | q |
| 9180 | } |
| 9181 | s/.*/./; q'` |
| 9182 | |
| 9183 | # Avoid depending upon Character Ranges. |
| 9184 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9185 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9186 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9187 | as_cr_digits='0123456789' |
| 9188 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9189 | |
| 9190 | |
| 9191 | # Determine whether it's possible to make 'echo' print without a newline. |
| 9192 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 9193 | # for compatibility with existing Makefiles. |
| 9194 | ECHO_C= ECHO_N= ECHO_T= |
| 9195 | case `echo -n x` in #((((( |
| 9196 | -n*) |
| 9197 | case `echo 'xy\c'` in |
| 9198 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 9199 | xy) ECHO_C='\c';; |
| 9200 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 9201 | ECHO_T=' ';; |
| 9202 | esac;; |
| 9203 | *) |
| 9204 | ECHO_N='-n';; |
| 9205 | esac |
| 9206 | |
| 9207 | # For backward compatibility with old third-party macros, we provide |
| 9208 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 9209 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 9210 | as_echo='printf %s\n' |
| 9211 | as_echo_n='printf %s' |
| 9212 | |
| 9213 | rm -f conf$$ conf$$.exe conf$$.file |
| 9214 | if test -d conf$$.dir; then |
| 9215 | rm -f conf$$.dir/conf$$.file |
| 9216 | else |
| 9217 | rm -f conf$$.dir |
| 9218 | mkdir conf$$.dir 2>/dev/null |
| 9219 | fi |
| 9220 | if (echo >conf$$.file) 2>/dev/null; then |
| 9221 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9222 | as_ln_s='ln -s' |
| 9223 | # ... but there are two gotchas: |
| 9224 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 9225 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 9226 | # In both cases, we have to default to `cp -pR'. |
| 9227 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 9228 | as_ln_s='cp -pR' |
| 9229 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9230 | as_ln_s=ln |
| 9231 | else |
| 9232 | as_ln_s='cp -pR' |
| 9233 | fi |
| 9234 | else |
| 9235 | as_ln_s='cp -pR' |
| 9236 | fi |
| 9237 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 9238 | rmdir conf$$.dir 2>/dev/null |
| 9239 | |
| 9240 | |
| 9241 | # as_fn_mkdir_p |
| 9242 | # ------------- |
| 9243 | # Create "$as_dir" as a directory, including parents if necessary. |
| 9244 | as_fn_mkdir_p () |
| 9245 | { |
| 9246 | |
| 9247 | case $as_dir in #( |
| 9248 | -*) as_dir=./$as_dir;; |
| 9249 | esac |
| 9250 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 9251 | as_dirs= |
| 9252 | while :; do |
| 9253 | case $as_dir in #( |
| 9254 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 9255 | *) as_qdir=$as_dir;; |
| 9256 | esac |
| 9257 | as_dirs="'$as_qdir' $as_dirs" |
| 9258 | as_dir=`$as_dirname -- "$as_dir" || |
| 9259 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9260 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9261 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9262 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 9263 | printf "%s\n" X"$as_dir" | |
| 9264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9265 | s//\1/ |
| 9266 | q |
| 9267 | } |
| 9268 | /^X\(\/\/\)[^/].*/{ |
| 9269 | s//\1/ |
| 9270 | q |
| 9271 | } |
| 9272 | /^X\(\/\/\)$/{ |
| 9273 | s//\1/ |
| 9274 | q |
| 9275 | } |
| 9276 | /^X\(\/\).*/{ |
| 9277 | s//\1/ |
| 9278 | q |
| 9279 | } |
| 9280 | s/.*/./; q'` |
| 9281 | test -d "$as_dir" && break |
| 9282 | done |
| 9283 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 9284 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 9285 | |
| 9286 | |
| 9287 | } # as_fn_mkdir_p |
| 9288 | if mkdir -p . 2>/dev/null; then |
| 9289 | as_mkdir_p='mkdir -p "$as_dir"' |
| 9290 | else |
| 9291 | test -d ./-p && rmdir ./-p |
| 9292 | as_mkdir_p=false |
| 9293 | fi |
| 9294 | |
| 9295 | |
| 9296 | # as_fn_executable_p FILE |
| 9297 | # ----------------------- |
| 9298 | # Test if FILE is an executable regular file. |
| 9299 | as_fn_executable_p () |
| 9300 | { |
| 9301 | test -f "$1" && test -x "$1" |
| 9302 | } # as_fn_executable_p |
| 9303 | as_test_x='test -x' |
| 9304 | as_executable_p=as_fn_executable_p |
| 9305 | |
| 9306 | # Sed expression to map a string onto a valid CPP name. |
| 9307 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 9308 | |
| 9309 | # Sed expression to map a string onto a valid variable name. |
| 9310 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 9311 | |
| 9312 | |
| 9313 | exec 6>&1 |
| 9314 | ## ----------------------------------- ## |
| 9315 | ## Main body of $CONFIG_STATUS script. ## |
| 9316 | ## ----------------------------------- ## |
| 9317 | _ASEOF |
| 9318 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 9319 | |
| 9320 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9321 | # Save the log message, to keep $0 and so on meaningful, and to |
| 9322 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9323 | # values after options handling. |
| 9324 | ac_log=" |
| 9325 | This file was extended by Infernal $as_me 1.1.5, which was |
| 9326 | generated by GNU Autoconf 2.71. Invocation command line was |
| 9327 | |
| 9328 | CONFIG_FILES = $CONFIG_FILES |
| 9329 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9330 | CONFIG_LINKS = $CONFIG_LINKS |
| 9331 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9332 | $ $0 $@ |
| 9333 | |
| 9334 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 9335 | " |
| 9336 | |
| 9337 | _ACEOF |
| 9338 | |
| 9339 | case $ac_config_files in *" |
| 9340 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 9341 | esac |
| 9342 | |
| 9343 | case $ac_config_headers in *" |
| 9344 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 9345 | esac |
| 9346 | |
| 9347 | |
| 9348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9349 | # Files that config.status was made for. |
| 9350 | config_files="$ac_config_files" |
| 9351 | config_headers="$ac_config_headers" |
| 9352 | |
| 9353 | _ACEOF |
| 9354 | |
| 9355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9356 | ac_cs_usage="\ |
| 9357 | \`$as_me' instantiates files and other configuration actions |
| 9358 | from templates according to the current configuration. Unless the files |
| 9359 | and actions are specified as TAGs, all are instantiated by default. |
| 9360 | |
| 9361 | Usage: $0 [OPTION]... [TAG]... |
| 9362 | |
| 9363 | -h, --help print this help, then exit |
| 9364 | -V, --version print version number and configuration settings, then exit |
| 9365 | --config print configuration, then exit |
| 9366 | -q, --quiet, --silent |
| 9367 | do not print progress messages |
| 9368 | -d, --debug don't remove temporary files |
| 9369 | --recheck update $as_me by reconfiguring in the same conditions |
| 9370 | --file=FILE[:TEMPLATE] |
| 9371 | instantiate the configuration file FILE |
| 9372 | --header=FILE[:TEMPLATE] |
| 9373 | instantiate the configuration header FILE |
| 9374 | |
| 9375 | Configuration files: |
| 9376 | $config_files |
| 9377 | |
| 9378 | Configuration headers: |
| 9379 | $config_headers |
| 9380 | |
| 9381 | Report bugs to <[email protected]>." |
| 9382 | |
| 9383 | _ACEOF |
| 9384 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 9385 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 9386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9387 | ac_cs_config='$ac_cs_config_escaped' |
| 9388 | ac_cs_version="\\ |
| 9389 | Infernal config.status 1.1.5 |
| 9390 | configured by $0, generated by GNU Autoconf 2.71, |
| 9391 | with options \\"\$ac_cs_config\\" |
| 9392 | |
| 9393 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 9394 | This config.status script is free software; the Free Software Foundation |
| 9395 | gives unlimited permission to copy, distribute and modify it." |
| 9396 | |
| 9397 | ac_pwd='$ac_pwd' |
| 9398 | srcdir='$srcdir' |
| 9399 | INSTALL='$INSTALL' |
| 9400 | test -n "\$AWK" || AWK=awk |
| 9401 | _ACEOF |
| 9402 | |
| 9403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9404 | # The default lists apply if the user does not specify any file. |
| 9405 | ac_need_defaults=: |
| 9406 | while test $# != 0 |
| 9407 | do |
| 9408 | case $1 in |
| 9409 | --*=?*) |
| 9410 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 9411 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 9412 | ac_shift=: |
| 9413 | ;; |
| 9414 | --*=) |
| 9415 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 9416 | ac_optarg= |
| 9417 | ac_shift=: |
| 9418 | ;; |
| 9419 | *) |
| 9420 | ac_option=$1 |
| 9421 | ac_optarg=$2 |
| 9422 | ac_shift=shift |
| 9423 | ;; |
| 9424 | esac |
| 9425 | |
| 9426 | case $ac_option in |
| 9427 | # Handling of the options. |
| 9428 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9429 | ac_cs_recheck=: ;; |
| 9430 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 9431 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 9432 | --config | --confi | --conf | --con | --co | --c ) |
| 9433 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 9434 | --debug | --debu | --deb | --de | --d | -d ) |
| 9435 | debug=: ;; |
| 9436 | --file | --fil | --fi | --f ) |
| 9437 | $ac_shift |
| 9438 | case $ac_optarg in |
| 9439 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 9440 | '') as_fn_error $? "missing file argument" ;; |
| 9441 | esac |
| 9442 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 9443 | ac_need_defaults=false;; |
| 9444 | --header | --heade | --head | --hea ) |
| 9445 | $ac_shift |
| 9446 | case $ac_optarg in |
| 9447 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 9448 | esac |
| 9449 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 9450 | ac_need_defaults=false;; |
| 9451 | --he | --h) |
| 9452 | # Conflict between --help and --header |
| 9453 | as_fn_error $? "ambiguous option: \`$1' |
| 9454 | Try \`$0 --help' for more information.";; |
| 9455 | --help | --hel | -h ) |
| 9456 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 9457 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9458 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9459 | ac_cs_silent=: ;; |
| 9460 | |
| 9461 | # This is an error. |
| 9462 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 9463 | Try \`$0 --help' for more information." ;; |
| 9464 | |
| 9465 | *) as_fn_append ac_config_targets " $1" |
| 9466 | ac_need_defaults=false ;; |
| 9467 | |
| 9468 | esac |
| 9469 | shift |
| 9470 | done |
| 9471 | |
| 9472 | ac_configure_extra_args= |
| 9473 | |
| 9474 | if $ac_cs_silent; then |
| 9475 | exec 6>/dev/null |
| 9476 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9477 | fi |
| 9478 | |
| 9479 | _ACEOF |
| 9480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9481 | if \$ac_cs_recheck; then |
| 9482 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9483 | shift |
| 9484 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 9485 | CONFIG_SHELL='$SHELL' |
| 9486 | export CONFIG_SHELL |
| 9487 | exec "\$@" |
| 9488 | fi |
| 9489 | |
| 9490 | _ACEOF |
| 9491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9492 | exec 5>>config.log |
| 9493 | { |
| 9494 | echo |
| 9495 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9496 | ## Running $as_me. ## |
| 9497 | _ASBOX |
| 9498 | printf "%s\n" "$ac_log" |
| 9499 | } >&5 |
| 9500 | |
| 9501 | _ACEOF |
| 9502 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9503 | _ACEOF |
| 9504 | |
| 9505 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9506 | |
| 9507 | # Handling of arguments. |
| 9508 | for ac_config_target in $ac_config_targets |
| 9509 | do |
| 9510 | case $ac_config_target in |
| 9511 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9512 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9513 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; |
| 9514 | "rmark/Makefile") CONFIG_FILES="$CONFIG_FILES rmark/Makefile" ;; |
| 9515 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
| 9516 | "documentation/man/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/man/Makefile" ;; |
| 9517 | "documentation/userguide/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/userguide/Makefile" ;; |
| 9518 | "src/impl_sse/Makefile") CONFIG_FILES="$CONFIG_FILES src/impl_sse/Makefile" ;; |
| 9519 | "documentation/userguide/titlepage.tex") CONFIG_FILES="$CONFIG_FILES documentation/userguide/titlepage.tex" ;; |
| 9520 | "documentation/userguide/copyright.tex") CONFIG_FILES="$CONFIG_FILES documentation/userguide/copyright.tex" ;; |
| 9521 | "documentation/man/cmalign.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmalign.man" ;; |
| 9522 | "documentation/man/cmbuild.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmbuild.man" ;; |
| 9523 | "documentation/man/cmcalibrate.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmcalibrate.man" ;; |
| 9524 | "documentation/man/cmconvert.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmconvert.man" ;; |
| 9525 | "documentation/man/cmemit.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmemit.man" ;; |
| 9526 | "documentation/man/cmfetch.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmfetch.man" ;; |
| 9527 | "documentation/man/cmpress.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmpress.man" ;; |
| 9528 | "documentation/man/cmscan.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmscan.man" ;; |
| 9529 | "documentation/man/cmsearch.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmsearch.man" ;; |
| 9530 | "documentation/man/cmsearch_dual.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmsearch_dual.man" ;; |
| 9531 | "documentation/man/cmstat.man") CONFIG_FILES="$CONFIG_FILES documentation/man/cmstat.man" ;; |
| 9532 | "documentation/man/infernal.man") CONFIG_FILES="$CONFIG_FILES documentation/man/infernal.man" ;; |
| 9533 | "documentation/man/sse_cmsearch.man") CONFIG_FILES="$CONFIG_FILES documentation/man/sse_cmsearch.man" ;; |
| 9534 | "hmmer/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/Makefile" ;; |
| 9535 | "hmmer/src/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/src/Makefile" ;; |
| 9536 | "hmmer/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/testsuite/Makefile" ;; |
| 9537 | "hmmer/profmark/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/profmark/Makefile" ;; |
| 9538 | "hmmer/src/impl_${impl_choice}/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/src/impl_${impl_choice}/Makefile" ;; |
| 9539 | "hmmer/documentation/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/Makefile" ;; |
| 9540 | "hmmer/documentation/man/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/Makefile" ;; |
| 9541 | "hmmer/documentation/userguide/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/userguide/Makefile" ;; |
| 9542 | "hmmer/documentation/userguide/inclusions/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/userguide/inclusions/Makefile" ;; |
| 9543 | "hmmer/libdivsufsort/Makefile") CONFIG_FILES="$CONFIG_FILES hmmer/libdivsufsort/Makefile" ;; |
| 9544 | "easel/Makefile") CONFIG_FILES="$CONFIG_FILES easel/Makefile" ;; |
| 9545 | "easel/miniapps/Makefile") CONFIG_FILES="$CONFIG_FILES easel/miniapps/Makefile" ;; |
| 9546 | "easel/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES easel/testsuite/Makefile" ;; |
| 9547 | "easel/documentation/Makefile") CONFIG_FILES="$CONFIG_FILES easel/documentation/Makefile" ;; |
| 9548 | "hmmer/documentation/userguide/titlepage.tex") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/userguide/titlepage.tex" ;; |
| 9549 | "hmmer/documentation/userguide/titlepage_daemon.tex") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/userguide/titlepage_daemon.tex" ;; |
| 9550 | "hmmer/documentation/userguide/copyright.tex") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/userguide/copyright.tex" ;; |
| 9551 | "hmmer/documentation/man/alimask.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/alimask.man" ;; |
| 9552 | "hmmer/documentation/man/hmmalign.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmalign.man" ;; |
| 9553 | "hmmer/documentation/man/hmmbuild.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmbuild.man" ;; |
| 9554 | "hmmer/documentation/man/hmmc2.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmc2.man" ;; |
| 9555 | "hmmer/documentation/man/hmmconvert.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmconvert.man" ;; |
| 9556 | "hmmer/documentation/man/hmmemit.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmemit.man" ;; |
| 9557 | "hmmer/documentation/man/hmmer.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmer.man" ;; |
| 9558 | "hmmer/documentation/man/hmmfetch.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmfetch.man" ;; |
| 9559 | "hmmer/documentation/man/hmmlogo.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmlogo.man" ;; |
| 9560 | "hmmer/documentation/man/hmmpgmd.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmpgmd.man" ;; |
| 9561 | "hmmer/documentation/man/hmmpgmd_shard.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmpgmd_shard.man" ;; |
| 9562 | "hmmer/documentation/man/hmmpress.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmpress.man" ;; |
| 9563 | "hmmer/documentation/man/hmmscan.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmscan.man" ;; |
| 9564 | "hmmer/documentation/man/hmmsearch.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmsearch.man" ;; |
| 9565 | "hmmer/documentation/man/hmmsim.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmsim.man" ;; |
| 9566 | "hmmer/documentation/man/hmmstat.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/hmmstat.man" ;; |
| 9567 | "hmmer/documentation/man/jackhmmer.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/jackhmmer.man" ;; |
| 9568 | "hmmer/documentation/man/makehmmerdb.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/makehmmerdb.man" ;; |
| 9569 | "hmmer/documentation/man/nhmmer.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/nhmmer.man" ;; |
| 9570 | "hmmer/documentation/man/nhmmscan.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/nhmmscan.man" ;; |
| 9571 | "hmmer/documentation/man/phmmer.man") CONFIG_FILES="$CONFIG_FILES hmmer/documentation/man/phmmer.man" ;; |
| 9572 | "easel/miniapps/esl-afetch.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-afetch.man" ;; |
| 9573 | "easel/miniapps/esl-alimanip.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alimanip.man" ;; |
| 9574 | "easel/miniapps/esl-alimap.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alimap.man" ;; |
| 9575 | "easel/miniapps/esl-alimask.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alimask.man" ;; |
| 9576 | "easel/miniapps/esl-alimerge.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alimerge.man" ;; |
| 9577 | "easel/miniapps/esl-alipid.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alipid.man" ;; |
| 9578 | "easel/miniapps/esl-alirev.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alirev.man" ;; |
| 9579 | "easel/miniapps/esl-alistat.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-alistat.man" ;; |
| 9580 | "easel/miniapps/esl-compalign.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-compalign.man" ;; |
| 9581 | "easel/miniapps/esl-compstruct.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-compstruct.man" ;; |
| 9582 | "easel/miniapps/esl-construct.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-construct.man" ;; |
| 9583 | "easel/miniapps/esl-histplot.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-histplot.man" ;; |
| 9584 | "easel/miniapps/esl-mask.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-mask.man" ;; |
| 9585 | "easel/miniapps/esl-mixdchlet.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-mixdchlet.man" ;; |
| 9586 | "easel/miniapps/esl-reformat.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-reformat.man" ;; |
| 9587 | "easel/miniapps/esl-selectn.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-selectn.man" ;; |
| 9588 | "easel/miniapps/esl-seqrange.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-seqrange.man" ;; |
| 9589 | "easel/miniapps/esl-seqstat.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-seqstat.man" ;; |
| 9590 | "easel/miniapps/esl-sfetch.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-sfetch.man" ;; |
| 9591 | "easel/miniapps/esl-shuffle.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-shuffle.man" ;; |
| 9592 | "easel/miniapps/esl-ssdraw.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-ssdraw.man" ;; |
| 9593 | "easel/miniapps/esl-translate.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-translate.man" ;; |
| 9594 | "easel/miniapps/esl-weight.man") CONFIG_FILES="$CONFIG_FILES easel/miniapps/esl-weight.man" ;; |
| 9595 | "easel/decoy_config.h") CONFIG_HEADERS="$CONFIG_HEADERS easel/decoy_config.h" ;; |
| 9596 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 9597 | "hmmer/src/p7_config.h") CONFIG_HEADERS="$CONFIG_HEADERS hmmer/src/p7_config.h" ;; |
| 9598 | "easel/esl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS easel/esl_config.h" ;; |
| 9599 | "hmmer/libdivsufsort/divsufsort.h") CONFIG_HEADERS="$CONFIG_HEADERS hmmer/libdivsufsort/divsufsort.h" ;; |
| 9600 | |
| 9601 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 9602 | esac |
| 9603 | done |
| 9604 | |
| 9605 | |
| 9606 | # If the user did not use the arguments to specify the items to instantiate, |
| 9607 | # then the envvar interface is used. Set only those that are not. |
| 9608 | # We use the long form for the default assignment because of an extremely |
| 9609 | # bizarre bug on SunOS 4.1.3. |
| 9610 | if $ac_need_defaults; then |
| 9611 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 9612 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 9613 | fi |
| 9614 | |
| 9615 | # Have a temporary directory for convenience. Make it in the build tree |
| 9616 | # simply because there is no reason against having it here, and in addition, |
| 9617 | # creating and moving files from /tmp can sometimes cause problems. |
| 9618 | # Hook for its removal unless debugging. |
| 9619 | # Note that there is a small window in which the directory will not be cleaned: |
| 9620 | # after its creation but before its name has been assigned to `$tmp'. |
| 9621 | $debug || |
| 9622 | { |
| 9623 | tmp= ac_tmp= |
| 9624 | trap 'exit_status=$? |
| 9625 | : "${ac_tmp:=$tmp}" |
| 9626 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 9627 | ' 0 |
| 9628 | trap 'as_fn_exit 1' 1 2 13 15 |
| 9629 | } |
| 9630 | # Create a (secure) tmp directory for tmp files. |
| 9631 | |
| 9632 | { |
| 9633 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 9634 | test -d "$tmp" |
| 9635 | } || |
| 9636 | { |
| 9637 | tmp=./conf$$-$RANDOM |
| 9638 | (umask 077 && mkdir "$tmp") |
| 9639 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 9640 | ac_tmp=$tmp |
| 9641 | |
| 9642 | # Set up the scripts for CONFIG_FILES section. |
| 9643 | # No need to generate them if there are no CONFIG_FILES. |
| 9644 | # This happens for instance with `./config.status config.h'. |
| 9645 | if test -n "$CONFIG_FILES"; then |
| 9646 | |
| 9647 | |
| 9648 | ac_cr=`echo X | tr X '\015'` |
| 9649 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 9650 | # But we know of no other shell where ac_cr would be empty at this |
| 9651 | # point, so we can use a bashism as a fallback. |
| 9652 | if test "x$ac_cr" = x; then |
| 9653 | eval ac_cr=\$\'\\r\' |
| 9654 | fi |
| 9655 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 9656 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 9657 | ac_cs_awk_cr='\\r' |
| 9658 | else |
| 9659 | ac_cs_awk_cr=$ac_cr |
| 9660 | fi |
| 9661 | |
| 9662 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 9663 | _ACEOF |
| 9664 | |
| 9665 | |
| 9666 | { |
| 9667 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 9668 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 9669 | echo "_ACEOF" |
| 9670 | } >conf$$subs.sh || |
| 9671 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 9672 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 9673 | ac_delim='%!_!# ' |
| 9674 | for ac_last_try in false false false false false :; do |
| 9675 | . ./conf$$subs.sh || |
| 9676 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 9677 | |
| 9678 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 9679 | if test $ac_delim_n = $ac_delim_num; then |
| 9680 | break |
| 9681 | elif $ac_last_try; then |
| 9682 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 9683 | else |
| 9684 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 9685 | fi |
| 9686 | done |
| 9687 | rm -f conf$$subs.sh |
| 9688 | |
| 9689 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9690 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 9691 | _ACEOF |
| 9692 | sed -n ' |
| 9693 | h |
| 9694 | s/^/S["/; s/!.*/"]=/ |
| 9695 | p |
| 9696 | g |
| 9697 | s/^[^!]*!// |
| 9698 | :repl |
| 9699 | t repl |
| 9700 | s/'"$ac_delim"'$// |
| 9701 | t delim |
| 9702 | :nl |
| 9703 | h |
| 9704 | s/\(.\{148\}\)..*/\1/ |
| 9705 | t more1 |
| 9706 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 9707 | p |
| 9708 | n |
| 9709 | b repl |
| 9710 | :more1 |
| 9711 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 9712 | p |
| 9713 | g |
| 9714 | s/.\{148\}// |
| 9715 | t nl |
| 9716 | :delim |
| 9717 | h |
| 9718 | s/\(.\{148\}\)..*/\1/ |
| 9719 | t more2 |
| 9720 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 9721 | p |
| 9722 | b |
| 9723 | :more2 |
| 9724 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 9725 | p |
| 9726 | g |
| 9727 | s/.\{148\}// |
| 9728 | t delim |
| 9729 | ' <conf$$subs.awk | sed ' |
| 9730 | /^[^""]/{ |
| 9731 | N |
| 9732 | s/\n// |
| 9733 | } |
| 9734 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 9735 | rm -f conf$$subs.awk |
| 9736 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9737 | _ACAWK |
| 9738 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 9739 | for (key in S) S_is_set[key] = 1 |
| 9740 | FS = "" |
| 9741 | |
| 9742 | } |
| 9743 | { |
| 9744 | line = $ 0 |
| 9745 | nfields = split(line, field, "@") |
| 9746 | substed = 0 |
| 9747 | len = length(field[1]) |
| 9748 | for (i = 2; i < nfields; i++) { |
| 9749 | key = field[i] |
| 9750 | keylen = length(key) |
| 9751 | if (S_is_set[key]) { |
| 9752 | value = S[key] |
| 9753 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 9754 | len += length(value) + length(field[++i]) |
| 9755 | substed = 1 |
| 9756 | } else |
| 9757 | len += 1 + keylen |
| 9758 | } |
| 9759 | |
| 9760 | print line |
| 9761 | } |
| 9762 | |
| 9763 | _ACAWK |
| 9764 | _ACEOF |
| 9765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9766 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 9767 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 9768 | else |
| 9769 | cat |
| 9770 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 9771 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 9772 | _ACEOF |
| 9773 | |
| 9774 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 9775 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 9776 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9777 | # (actually we leave an empty line to preserve line numbers). |
| 9778 | if test "x$srcdir" = x.; then |
| 9779 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 9780 | h |
| 9781 | s/// |
| 9782 | s/^/:/ |
| 9783 | s/[ ]*$/:/ |
| 9784 | s/:\$(srcdir):/:/g |
| 9785 | s/:\${srcdir}:/:/g |
| 9786 | s/:@srcdir@:/:/g |
| 9787 | s/^:*// |
| 9788 | s/:*$// |
| 9789 | x |
| 9790 | s/\(=[ ]*\).*/\1/ |
| 9791 | G |
| 9792 | s/\n// |
| 9793 | s/^[^=]*=[ ]*$// |
| 9794 | }' |
| 9795 | fi |
| 9796 | |
| 9797 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9798 | fi # test -n "$CONFIG_FILES" |
| 9799 | |
| 9800 | # Set up the scripts for CONFIG_HEADERS section. |
| 9801 | # No need to generate them if there are no CONFIG_HEADERS. |
| 9802 | # This happens for instance with `./config.status Makefile'. |
| 9803 | if test -n "$CONFIG_HEADERS"; then |
| 9804 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 9805 | BEGIN { |
| 9806 | _ACEOF |
| 9807 | |
| 9808 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 9809 | # here-document in config.status, that substitutes the proper values into |
| 9810 | # config.h.in to produce config.h. |
| 9811 | |
| 9812 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 9813 | # handling of long lines. |
| 9814 | ac_delim='%!_!# ' |
| 9815 | for ac_last_try in false false :; do |
| 9816 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 9817 | if test -z "$ac_tt"; then |
| 9818 | break |
| 9819 | elif $ac_last_try; then |
| 9820 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 9821 | else |
| 9822 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 9823 | fi |
| 9824 | done |
| 9825 | |
| 9826 | # For the awk script, D is an array of macro values keyed by name, |
| 9827 | # likewise P contains macro parameters if any. Preserve backslash |
| 9828 | # newline sequences. |
| 9829 | |
| 9830 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 9831 | sed -n ' |
| 9832 | s/.\{148\}/&'"$ac_delim"'/g |
| 9833 | t rset |
| 9834 | :rset |
| 9835 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 9836 | t def |
| 9837 | d |
| 9838 | :def |
| 9839 | s/\\$// |
| 9840 | t bsnl |
| 9841 | s/["\\]/\\&/g |
| 9842 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 9843 | D["\1"]=" \3"/p |
| 9844 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 9845 | d |
| 9846 | :bsnl |
| 9847 | s/["\\]/\\&/g |
| 9848 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 9849 | D["\1"]=" \3\\\\\\n"\\/p |
| 9850 | t cont |
| 9851 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 9852 | t cont |
| 9853 | d |
| 9854 | :cont |
| 9855 | n |
| 9856 | s/.\{148\}/&'"$ac_delim"'/g |
| 9857 | t clear |
| 9858 | :clear |
| 9859 | s/\\$// |
| 9860 | t bsnlc |
| 9861 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 9862 | d |
| 9863 | :bsnlc |
| 9864 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 9865 | b cont |
| 9866 | ' <confdefs.h | sed ' |
| 9867 | s/'"$ac_delim"'/"\\\ |
| 9868 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 9869 | |
| 9870 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9871 | for (key in D) D_is_set[key] = 1 |
| 9872 | FS = "" |
| 9873 | } |
| 9874 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 9875 | line = \$ 0 |
| 9876 | split(line, arg, " ") |
| 9877 | if (arg[1] == "#") { |
| 9878 | defundef = arg[2] |
| 9879 | mac1 = arg[3] |
| 9880 | } else { |
| 9881 | defundef = substr(arg[1], 2) |
| 9882 | mac1 = arg[2] |
| 9883 | } |
| 9884 | split(mac1, mac2, "(") #) |
| 9885 | macro = mac2[1] |
| 9886 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 9887 | if (D_is_set[macro]) { |
| 9888 | # Preserve the white space surrounding the "#". |
| 9889 | print prefix "define", macro P[macro] D[macro] |
| 9890 | next |
| 9891 | } else { |
| 9892 | # Replace #undef with comments. This is necessary, for example, |
| 9893 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 9894 | # on some systems where configure will not decide to define it. |
| 9895 | if (defundef == "undef") { |
| 9896 | print "/*", prefix defundef, macro, "*/" |
| 9897 | next |
| 9898 | } |
| 9899 | } |
| 9900 | } |
| 9901 | { print } |
| 9902 | _ACAWK |
| 9903 | _ACEOF |
| 9904 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9905 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 9906 | fi # test -n "$CONFIG_HEADERS" |
| 9907 | |
| 9908 | |
| 9909 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 9910 | shift |
| 9911 | for ac_tag |
| 9912 | do |
| 9913 | case $ac_tag in |
| 9914 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 9915 | esac |
| 9916 | case $ac_mode$ac_tag in |
| 9917 | :[FHL]*:*);; |
| 9918 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 9919 | :[FH]-) ac_tag=-:-;; |
| 9920 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 9921 | esac |
| 9922 | ac_save_IFS=$IFS |
| 9923 | IFS=: |
| 9924 | set x $ac_tag |
| 9925 | IFS=$ac_save_IFS |
| 9926 | shift |
| 9927 | ac_file=$1 |
| 9928 | shift |
| 9929 | |
| 9930 | case $ac_mode in |
| 9931 | :L) ac_source=$1;; |
| 9932 | :[FH]) |
| 9933 | ac_file_inputs= |
| 9934 | for ac_f |
| 9935 | do |
| 9936 | case $ac_f in |
| 9937 | -) ac_f="$ac_tmp/stdin";; |
| 9938 | *) # Look for the file first in the build tree, then in the source tree |
| 9939 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 9940 | # because $ac_f cannot contain `:'. |
| 9941 | test -f "$ac_f" || |
| 9942 | case $ac_f in |
| 9943 | [\\/$]*) false;; |
| 9944 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 9945 | esac || |
| 9946 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 9947 | esac |
| 9948 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 9949 | as_fn_append ac_file_inputs " '$ac_f'" |
| 9950 | done |
| 9951 | |
| 9952 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9953 | # use $as_me), people would be surprised to read: |
| 9954 | # /* config.h. Generated by config.status. */ |
| 9955 | configure_input='Generated from '` |
| 9956 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 9957 | `' by configure.' |
| 9958 | if test x"$ac_file" != x-; then |
| 9959 | configure_input="$ac_file. $configure_input" |
| 9960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 9961 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 9962 | fi |
| 9963 | # Neutralize special characters interpreted by sed in replacement strings. |
| 9964 | case $configure_input in #( |
| 9965 | *\&* | *\|* | *\\* ) |
| 9966 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 9967 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 9968 | *) ac_sed_conf_input=$configure_input;; |
| 9969 | esac |
| 9970 | |
| 9971 | case $ac_tag in |
| 9972 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 9973 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 9974 | esac |
| 9975 | ;; |
| 9976 | esac |
| 9977 | |
| 9978 | ac_dir=`$as_dirname -- "$ac_file" || |
| 9979 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9980 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9981 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9982 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 9983 | printf "%s\n" X"$ac_file" | |
| 9984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9985 | s//\1/ |
| 9986 | q |
| 9987 | } |
| 9988 | /^X\(\/\/\)[^/].*/{ |
| 9989 | s//\1/ |
| 9990 | q |
| 9991 | } |
| 9992 | /^X\(\/\/\)$/{ |
| 9993 | s//\1/ |
| 9994 | q |
| 9995 | } |
| 9996 | /^X\(\/\).*/{ |
| 9997 | s//\1/ |
| 9998 | q |
| 9999 | } |
| 10000 | s/.*/./; q'` |
| 10001 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 10002 | ac_builddir=. |
| 10003 | |
| 10004 | case "$ac_dir" in |
| 10005 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 10006 | *) |
| 10007 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 10008 | # A ".." for each directory in $ac_dir_suffix. |
| 10009 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 10010 | case $ac_top_builddir_sub in |
| 10011 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 10012 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 10013 | esac ;; |
| 10014 | esac |
| 10015 | ac_abs_top_builddir=$ac_pwd |
| 10016 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 10017 | # for backward compatibility: |
| 10018 | ac_top_builddir=$ac_top_build_prefix |
| 10019 | |
| 10020 | case $srcdir in |
| 10021 | .) # We are building in place. |
| 10022 | ac_srcdir=. |
| 10023 | ac_top_srcdir=$ac_top_builddir_sub |
| 10024 | ac_abs_top_srcdir=$ac_pwd ;; |
| 10025 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 10026 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10027 | ac_top_srcdir=$srcdir |
| 10028 | ac_abs_top_srcdir=$srcdir ;; |
| 10029 | *) # Relative name. |
| 10030 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 10031 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 10032 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 10033 | esac |
| 10034 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 10035 | |
| 10036 | |
| 10037 | case $ac_mode in |
| 10038 | :F) |
| 10039 | # |
| 10040 | # CONFIG_FILE |
| 10041 | # |
| 10042 | |
| 10043 | case $INSTALL in |
| 10044 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10045 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 10046 | esac |
| 10047 | _ACEOF |
| 10048 | |
| 10049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 10050 | # If the template does not know about datarootdir, expand it. |
| 10051 | # FIXME: This hack should be removed a few years after 2.60. |
| 10052 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 10053 | ac_sed_dataroot=' |
| 10054 | /datarootdir/ { |
| 10055 | p |
| 10056 | q |
| 10057 | } |
| 10058 | /@datadir@/p |
| 10059 | /@docdir@/p |
| 10060 | /@infodir@/p |
| 10061 | /@localedir@/p |
| 10062 | /@mandir@/p' |
| 10063 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 10064 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 10065 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 10066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 10067 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 10068 | _ACEOF |
| 10069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 10070 | ac_datarootdir_hack=' |
| 10071 | s&@datadir@&$datadir&g |
| 10072 | s&@docdir@&$docdir&g |
| 10073 | s&@infodir@&$infodir&g |
| 10074 | s&@localedir@&$localedir&g |
| 10075 | s&@mandir@&$mandir&g |
| 10076 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 10077 | esac |
| 10078 | _ACEOF |
| 10079 | |
| 10080 | # Neutralize VPATH when `$srcdir' = `.'. |
| 10081 | # Shell code in configure.ac might set extrasub. |
| 10082 | # FIXME: do we really want to maintain this feature? |
| 10083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 10084 | ac_sed_extra="$ac_vpsub |
| 10085 | $extrasub |
| 10086 | _ACEOF |
| 10087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 10088 | :t |
| 10089 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10090 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 10091 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 10092 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 10093 | s&@srcdir@&$ac_srcdir&;t t |
| 10094 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 10095 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 10096 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 10097 | s&@builddir@&$ac_builddir&;t t |
| 10098 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 10099 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 10100 | s&@INSTALL@&$ac_INSTALL&;t t |
| 10101 | $ac_datarootdir_hack |
| 10102 | " |
| 10103 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 10104 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10105 | |
| 10106 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 10107 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 10108 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 10109 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 10110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 10111 | which seems to be undefined. Please make sure it is defined" >&5 |
| 10112 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 10113 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 10114 | |
| 10115 | rm -f "$ac_tmp/stdin" |
| 10116 | case $ac_file in |
| 10117 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 10118 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 10119 | esac \ |
| 10120 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10121 | ;; |
| 10122 | :H) |
| 10123 | # |
| 10124 | # CONFIG_HEADER |
| 10125 | # |
| 10126 | if test x"$ac_file" != x-; then |
| 10127 | { |
| 10128 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 10129 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 10130 | } >"$ac_tmp/config.h" \ |
| 10131 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10132 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 10133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 10134 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 10135 | else |
| 10136 | rm -f "$ac_file" |
| 10137 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 10138 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10139 | fi |
| 10140 | else |
| 10141 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 10142 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 10143 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 10144 | fi |
| 10145 | ;; |
| 10146 | |
| 10147 | |
| 10148 | esac |
| 10149 | |
| 10150 | done # for ac_tag |
| 10151 | |
| 10152 | |
| 10153 | as_fn_exit 0 |
| 10154 | _ACEOF |
| 10155 | ac_clean_files=$ac_clean_files_save |
| 10156 | |
| 10157 | test $ac_write_fail = 0 || |
| 10158 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 10159 | |
| 10160 | |
| 10161 | # configure is writing to config.log, and then calls config.status. |
| 10162 | # config.status does its own redirection, appending to config.log. |
| 10163 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10164 | # by configure, so config.status won't be able to write to it; its |
| 10165 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10166 | # effectively closing config.log, so it can be properly (re)opened and |
| 10167 | # appended to by config.status. When coming back to configure, we |
| 10168 | # need to make the FD available again. |
| 10169 | if test "$no_create" != yes; then |
| 10170 | ac_cs_success=: |
| 10171 | ac_config_status_args= |
| 10172 | test "$silent" = yes && |
| 10173 | ac_config_status_args="$ac_config_status_args --quiet" |
| 10174 | exec 5>/dev/null |
| 10175 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 10176 | exec 5>>config.log |
| 10177 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10178 | # would make configure fail if this is the last instruction. |
| 10179 | $ac_cs_success || as_fn_exit 1 |
| 10180 | fi |
| 10181 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 10182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 10183 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 10184 | fi |
| 10185 | |
| 10186 | |
| 10187 | # The testsuite (and only the testsuite) needs some hacky links |
| 10188 | # created, in the *build* directory. |
| 10189 | # |
| 10190 | # H3 uses AC_CONFIG_LINKS for this, but for some reason, I couldn't |
| 10191 | # get that to work here. I used AC_CONFIG_COMMANDS instead, but that |
| 10192 | # created a weird problem that configure wouldn't trap and remove its |
| 10193 | # ${ac_tmp} confXXXXXX directory. |
| 10194 | |
| 10195 | (cd hmmer/src && ${LN_S} -f impl_${impl_choice} impl) |
| 10196 | (cd hmmer && ${LN_S} -f ../easel easel) |
| 10197 | |
| 10198 | echo " |
| 10199 | |
| 10200 | INFERNAL configuration: |
| 10201 | compiler: ${CC} ${CFLAGS} ${SSE_CFLAGS} ${VMX_CFLAGS} ${NEON_CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} |
| 10202 | host: $host |
| 10203 | linker: ${LDFLAGS} |
| 10204 | libraries: ${LIBS} ${PTHREAD_LIBS} |
| 10205 | DP implementation: ${impl_choice}" |
| 10206 | |
| 10207 | |
| 10208 | if test x"$HAVE_PYTHON3" = x"yes"; then echo " |
| 10209 | Now do 'make' to build INFERNAL, and optionally: |
| 10210 | 'make check' to run self tests, |
| 10211 | 'make install' to install programs and man pages. |
| 10212 | '(cd hmmer; make install)' to install HMMER tools. |
| 10213 | '(cd easel; make install)' to install Easel tools. |
| 10214 | "; |
| 10215 | else echo " |
| 10216 | (No python3 found, so 'make check' is disabled.) |
| 10217 | |
| 10218 | Now do 'make' to build INFERNAL, and optionally: |
| 10219 | 'make install' to install programs and man pages. |
| 10220 | '(cd hmmer; make install)' to install HMMER tools. |
| 10221 | '(cd easel; make install)' to install Easel tools. |
| 10222 | "; |
| 10223 | fi |
| 10224 | |
| 10225 | |
| 10226 | |
| 10227 | |
| 10228 |