| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.71 for libgpg-error 1.61. |
| 4 | # |
| 5 | # Report bugs to <https://bugs.gnupg.org>. |
| 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 | |
| 187 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 188 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 189 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 190 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 191 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 192 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 193 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 194 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 195 | if (eval "$as_required") 2>/dev/null |
| 196 | then : |
| 197 | as_have_required=yes |
| 198 | else $as_nop |
| 199 | as_have_required=no |
| 200 | fi |
| 201 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 202 | then : |
| 203 | |
| 204 | else $as_nop |
| 205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 206 | as_found=false |
| 207 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 208 | do |
| 209 | IFS=$as_save_IFS |
| 210 | case $as_dir in #((( |
| 211 | '') as_dir=./ ;; |
| 212 | */) ;; |
| 213 | *) as_dir=$as_dir/ ;; |
| 214 | esac |
| 215 | as_found=: |
| 216 | case $as_dir in #( |
| 217 | /*) |
| 218 | for as_base in sh bash ksh sh5; do |
| 219 | # Try only shells that exist, to save several forks. |
| 220 | as_shell=$as_dir$as_base |
| 221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 222 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 223 | then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 226 | then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | IFS=$as_save_IFS |
| 235 | if $as_found |
| 236 | then : |
| 237 | |
| 238 | else $as_nop |
| 239 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 240 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 241 | then : |
| 242 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 243 | fi |
| 244 | fi |
| 245 | |
| 246 | |
| 247 | if test "x$CONFIG_SHELL" != x |
| 248 | then : |
| 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno |
| 271 | then : |
| 272 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 273 | printf "%s\n" "$0: the shells that I found on your system." |
| 274 | if test ${ZSH_VERSION+y} ; then |
| 275 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 276 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 277 | else |
| 278 | printf "%s\n" "$0: Please tell [email protected] and |
| 279 | $0: https://bugs.gnupg.org about your system, including any |
| 280 | $0: error possibly output before this message. Then install |
| 281 | $0: a modern shell, or manually run the script under such a |
| 282 | $0: shell if you do have one." |
| 283 | fi |
| 284 | exit 1 |
| 285 | fi |
| 286 | fi |
| 287 | fi |
| 288 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 289 | export SHELL |
| 290 | # Unset more variables known to interfere with behavior of common tools. |
| 291 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 292 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 293 | |
| 294 | ## --------------------- ## |
| 295 | ## M4sh Shell Functions. ## |
| 296 | ## --------------------- ## |
| 297 | # as_fn_unset VAR |
| 298 | # --------------- |
| 299 | # Portably unset VAR. |
| 300 | as_fn_unset () |
| 301 | { |
| 302 | { eval $1=; unset $1;} |
| 303 | } |
| 304 | as_unset=as_fn_unset |
| 305 | |
| 306 | |
| 307 | # as_fn_set_status STATUS |
| 308 | # ----------------------- |
| 309 | # Set $? to STATUS, without forking. |
| 310 | as_fn_set_status () |
| 311 | { |
| 312 | return $1 |
| 313 | } # as_fn_set_status |
| 314 | |
| 315 | # as_fn_exit STATUS |
| 316 | # ----------------- |
| 317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 318 | as_fn_exit () |
| 319 | { |
| 320 | set +e |
| 321 | as_fn_set_status $1 |
| 322 | exit $1 |
| 323 | } # as_fn_exit |
| 324 | # as_fn_nop |
| 325 | # --------- |
| 326 | # Do nothing but, unlike ":", preserve the value of $?. |
| 327 | as_fn_nop () |
| 328 | { |
| 329 | return $? |
| 330 | } |
| 331 | as_nop=as_fn_nop |
| 332 | |
| 333 | # as_fn_mkdir_p |
| 334 | # ------------- |
| 335 | # Create "$as_dir" as a directory, including parents if necessary. |
| 336 | as_fn_mkdir_p () |
| 337 | { |
| 338 | |
| 339 | case $as_dir in #( |
| 340 | -*) as_dir=./$as_dir;; |
| 341 | esac |
| 342 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 343 | as_dirs= |
| 344 | while :; do |
| 345 | case $as_dir in #( |
| 346 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 347 | *) as_qdir=$as_dir;; |
| 348 | esac |
| 349 | as_dirs="'$as_qdir' $as_dirs" |
| 350 | as_dir=`$as_dirname -- "$as_dir" || |
| 351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 353 | X"$as_dir" : 'X\(//\)$' \| \ |
| 354 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 355 | printf "%s\n" X"$as_dir" | |
| 356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\/\)[^/].*/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | /^X\(\/\/\)$/{ |
| 365 | s//\1/ |
| 366 | q |
| 367 | } |
| 368 | /^X\(\/\).*/{ |
| 369 | s//\1/ |
| 370 | q |
| 371 | } |
| 372 | s/.*/./; q'` |
| 373 | test -d "$as_dir" && break |
| 374 | done |
| 375 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 376 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 377 | |
| 378 | |
| 379 | } # as_fn_mkdir_p |
| 380 | |
| 381 | # as_fn_executable_p FILE |
| 382 | # ----------------------- |
| 383 | # Test if FILE is an executable regular file. |
| 384 | as_fn_executable_p () |
| 385 | { |
| 386 | test -f "$1" && test -x "$1" |
| 387 | } # as_fn_executable_p |
| 388 | # as_fn_append VAR VALUE |
| 389 | # ---------------------- |
| 390 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 391 | # advantage of any shell optimizations that allow amortized linear growth over |
| 392 | # repeated appends, instead of the typical quadratic growth present in naive |
| 393 | # implementations. |
| 394 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 395 | then : |
| 396 | eval 'as_fn_append () |
| 397 | { |
| 398 | eval $1+=\$2 |
| 399 | }' |
| 400 | else $as_nop |
| 401 | as_fn_append () |
| 402 | { |
| 403 | eval $1=\$$1\$2 |
| 404 | } |
| 405 | fi # as_fn_append |
| 406 | |
| 407 | # as_fn_arith ARG... |
| 408 | # ------------------ |
| 409 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 410 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 411 | # must be portable across $(()) and expr. |
| 412 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 413 | then : |
| 414 | eval 'as_fn_arith () |
| 415 | { |
| 416 | as_val=$(( $* )) |
| 417 | }' |
| 418 | else $as_nop |
| 419 | as_fn_arith () |
| 420 | { |
| 421 | as_val=`expr "$@" || test $? -eq 1` |
| 422 | } |
| 423 | fi # as_fn_arith |
| 424 | |
| 425 | # as_fn_nop |
| 426 | # --------- |
| 427 | # Do nothing but, unlike ":", preserve the value of $?. |
| 428 | as_fn_nop () |
| 429 | { |
| 430 | return $? |
| 431 | } |
| 432 | as_nop=as_fn_nop |
| 433 | |
| 434 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 435 | # ---------------------------------------- |
| 436 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 437 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 438 | # script with STATUS, using 1 if that was 0. |
| 439 | as_fn_error () |
| 440 | { |
| 441 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 442 | if test "$4"; then |
| 443 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 444 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 445 | fi |
| 446 | printf "%s\n" "$as_me: error: $2" >&2 |
| 447 | as_fn_exit $as_status |
| 448 | } # as_fn_error |
| 449 | |
| 450 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 451 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 452 | as_expr=expr |
| 453 | else |
| 454 | as_expr=false |
| 455 | fi |
| 456 | |
| 457 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 458 | as_basename=basename |
| 459 | else |
| 460 | as_basename=false |
| 461 | fi |
| 462 | |
| 463 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 464 | as_dirname=dirname |
| 465 | else |
| 466 | as_dirname=false |
| 467 | fi |
| 468 | |
| 469 | as_me=`$as_basename -- "$0" || |
| 470 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 471 | X"$0" : 'X\(//\)$' \| \ |
| 472 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 473 | printf "%s\n" X/"$0" | |
| 474 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 475 | s//\1/ |
| 476 | q |
| 477 | } |
| 478 | /^X\/\(\/\/\)$/{ |
| 479 | s//\1/ |
| 480 | q |
| 481 | } |
| 482 | /^X\/\(\/\).*/{ |
| 483 | s//\1/ |
| 484 | q |
| 485 | } |
| 486 | s/.*/./; q'` |
| 487 | |
| 488 | # Avoid depending upon Character Ranges. |
| 489 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 490 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 491 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 492 | as_cr_digits='0123456789' |
| 493 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 494 | |
| 495 | |
| 496 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 497 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 498 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 499 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 500 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 501 | sed -n ' |
| 502 | p |
| 503 | /[$]LINENO/= |
| 504 | ' <$as_myself | |
| 505 | sed ' |
| 506 | s/[$]LINENO.*/&-/ |
| 507 | t lineno |
| 508 | b |
| 509 | :lineno |
| 510 | N |
| 511 | :loop |
| 512 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 513 | t loop |
| 514 | s/-\n.*// |
| 515 | ' >$as_me.lineno && |
| 516 | chmod +x "$as_me.lineno" || |
| 517 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 518 | |
| 519 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 520 | # already done that, so ensure we don't try to do so again and fall |
| 521 | # in an infinite loop. This has already happened in practice. |
| 522 | _as_can_reexec=no; export _as_can_reexec |
| 523 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 524 | # (the dirname of $[0] is not the place where we might find the |
| 525 | # original and so on. Autoconf is especially sensitive to this). |
| 526 | . "./$as_me.lineno" |
| 527 | # Exit status is that of the last command. |
| 528 | exit |
| 529 | } |
| 530 | |
| 531 | |
| 532 | # Determine whether it's possible to make 'echo' print without a newline. |
| 533 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 534 | # for compatibility with existing Makefiles. |
| 535 | ECHO_C= ECHO_N= ECHO_T= |
| 536 | case `echo -n x` in #((((( |
| 537 | -n*) |
| 538 | case `echo 'xy\c'` in |
| 539 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 540 | xy) ECHO_C='\c';; |
| 541 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 542 | ECHO_T=' ';; |
| 543 | esac;; |
| 544 | *) |
| 545 | ECHO_N='-n';; |
| 546 | esac |
| 547 | |
| 548 | # For backward compatibility with old third-party macros, we provide |
| 549 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 550 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 551 | as_echo='printf %s\n' |
| 552 | as_echo_n='printf %s' |
| 553 | |
| 554 | |
| 555 | rm -f conf$$ conf$$.exe conf$$.file |
| 556 | if test -d conf$$.dir; then |
| 557 | rm -f conf$$.dir/conf$$.file |
| 558 | else |
| 559 | rm -f conf$$.dir |
| 560 | mkdir conf$$.dir 2>/dev/null |
| 561 | fi |
| 562 | if (echo >conf$$.file) 2>/dev/null; then |
| 563 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 564 | as_ln_s='ln -s' |
| 565 | # ... but there are two gotchas: |
| 566 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 567 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 568 | # In both cases, we have to default to `cp -pR'. |
| 569 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 570 | as_ln_s='cp -pR' |
| 571 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 572 | as_ln_s=ln |
| 573 | else |
| 574 | as_ln_s='cp -pR' |
| 575 | fi |
| 576 | else |
| 577 | as_ln_s='cp -pR' |
| 578 | fi |
| 579 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 580 | rmdir conf$$.dir 2>/dev/null |
| 581 | |
| 582 | if mkdir -p . 2>/dev/null; then |
| 583 | as_mkdir_p='mkdir -p "$as_dir"' |
| 584 | else |
| 585 | test -d ./-p && rmdir ./-p |
| 586 | as_mkdir_p=false |
| 587 | fi |
| 588 | |
| 589 | as_test_x='test -x' |
| 590 | as_executable_p=as_fn_executable_p |
| 591 | |
| 592 | # Sed expression to map a string onto a valid CPP name. |
| 593 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 594 | |
| 595 | # Sed expression to map a string onto a valid variable name. |
| 596 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 597 | |
| 598 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 599 | |
| 600 | |
| 601 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 602 | exec 6>&1 |
| 603 | |
| 604 | # Name of the host. |
| 605 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 606 | # so uname gets run too. |
| 607 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 608 | |
| 609 | # |
| 610 | # Initializations. |
| 611 | # |
| 612 | ac_default_prefix=/usr/local |
| 613 | ac_clean_files= |
| 614 | ac_config_libobj_dir=. |
| 615 | LIBOBJS= |
| 616 | cross_compiling=no |
| 617 | subdirs= |
| 618 | MFLAGS= |
| 619 | MAKEFLAGS= |
| 620 | |
| 621 | # Identity of this package. |
| 622 | PACKAGE_NAME='libgpg-error' |
| 623 | PACKAGE_TARNAME='libgpg-error' |
| 624 | PACKAGE_VERSION='1.61' |
| 625 | PACKAGE_STRING='libgpg-error 1.61' |
| 626 | PACKAGE_BUGREPORT='https://bugs.gnupg.org' |
| 627 | PACKAGE_URL='' |
| 628 | |
| 629 | ac_unique_file="src/err-sources.h.in" |
| 630 | # Factoring default headers for most tests. |
| 631 | ac_includes_default="\ |
| 632 | #include <stddef.h> |
| 633 | #ifdef HAVE_STDIO_H |
| 634 | # include <stdio.h> |
| 635 | #endif |
| 636 | #ifdef HAVE_STDLIB_H |
| 637 | # include <stdlib.h> |
| 638 | #endif |
| 639 | #ifdef HAVE_STRING_H |
| 640 | # include <string.h> |
| 641 | #endif |
| 642 | #ifdef HAVE_INTTYPES_H |
| 643 | # include <inttypes.h> |
| 644 | #endif |
| 645 | #ifdef HAVE_STDINT_H |
| 646 | # include <stdint.h> |
| 647 | #endif |
| 648 | #ifdef HAVE_STRINGS_H |
| 649 | # include <strings.h> |
| 650 | #endif |
| 651 | #ifdef HAVE_SYS_TYPES_H |
| 652 | # include <sys/types.h> |
| 653 | #endif |
| 654 | #ifdef HAVE_SYS_STAT_H |
| 655 | # include <sys/stat.h> |
| 656 | #endif |
| 657 | #ifdef HAVE_UNISTD_H |
| 658 | # include <unistd.h> |
| 659 | #endif" |
| 660 | |
| 661 | ac_header_c_list= |
| 662 | gl_use_threads_default= |
| 663 | gl_use_winpthreads_default= |
| 664 | gt_needs= |
| 665 | ac_subst_vars='am__EXEEXT_FALSE |
| 666 | am__EXEEXT_TRUE |
| 667 | LTLIBOBJS |
| 668 | LIBOBJS |
| 669 | BUILD_TESTS_FALSE |
| 670 | BUILD_TESTS_TRUE |
| 671 | BUILD_DOC_FALSE |
| 672 | BUILD_DOC_TRUE |
| 673 | LANGUAGES_SOME_FALSE |
| 674 | LANGUAGES_SOME_TRUE |
| 675 | BUILD_TIMESTAMP |
| 676 | BUILD_FILEVERSION |
| 677 | BUILD_VERSION |
| 678 | BUILD_REVISION |
| 679 | BUILD_GPGSCM_FALSE |
| 680 | BUILD_GPGSCM_TRUE |
| 681 | HAVE_LOCK_OPTIMIZATION_FALSE |
| 682 | HAVE_LOCK_OPTIMIZATION_TRUE |
| 683 | HAVE_GENERATED_LOCK_OBJ_H_FALSE |
| 684 | HAVE_GENERATED_LOCK_OBJ_H_TRUE |
| 685 | FORCE_USE_SYSCFG_FALSE |
| 686 | FORCE_USE_SYSCFG_TRUE |
| 687 | CROSS_COMPILING_FALSE |
| 688 | CROSS_COMPILING_TRUE |
| 689 | HAVE_W64_SYSTEM_FALSE |
| 690 | HAVE_W64_SYSTEM_TRUE |
| 691 | HAVE_W32_SYSTEM_FALSE |
| 692 | HAVE_W32_SYSTEM_TRUE |
| 693 | GPG_ERROR_CONFIG_HOST |
| 694 | GPG_ERROR_CONFIG_LIBS_PRIVATE |
| 695 | GPG_ERROR_CONFIG_MT_CFLAGS |
| 696 | GPG_ERROR_CONFIG_MT_LIBS |
| 697 | GPG_ERROR_CONFIG_CFLAGS |
| 698 | GPG_ERROR_CONFIG_LIBS |
| 699 | LIBREADLINE |
| 700 | LIB_NETWORK |
| 701 | LIBSTDTHREAD |
| 702 | LIB_SCHED_YIELD |
| 703 | LIBPMULTITHREAD |
| 704 | LIBPTHREAD |
| 705 | LTLIBMULTITHREAD |
| 706 | LIBMULTITHREAD |
| 707 | LTLIBTHREAD |
| 708 | LIBTHREAD |
| 709 | HAVE_LD_VERSION_SCRIPT_FALSE |
| 710 | HAVE_LD_VERSION_SCRIPT_TRUE |
| 711 | INSTALLSHELLPATH |
| 712 | POSUB |
| 713 | LTLIBINTL |
| 714 | LIBINTL |
| 715 | INTLLIBS |
| 716 | LTLIBICONV |
| 717 | LIBICONV |
| 718 | INTL_MACOSX_LIBS |
| 719 | XGETTEXT_EXTRA_OPTIONS |
| 720 | MSGMERGE_FOR_MSGFMT_OPTION |
| 721 | MSGMERGE |
| 722 | XGETTEXT_015 |
| 723 | XGETTEXT |
| 724 | GMSGFMT_015 |
| 725 | GMSGFMT |
| 726 | MSGFMT |
| 727 | GETTEXT_MACRO_VERSION |
| 728 | USE_NLS |
| 729 | INSTALL_GPG_ERROR_CONFIG_FALSE |
| 730 | INSTALL_GPG_ERROR_CONFIG_TRUE |
| 731 | EXEEXT_FOR_BUILD |
| 732 | CC_FOR_BUILD |
| 733 | RC |
| 734 | LT_SYS_LIBRARY_PATH |
| 735 | OTOOL64 |
| 736 | OTOOL |
| 737 | LIPO |
| 738 | NMEDIT |
| 739 | DSYMUTIL |
| 740 | MANIFEST_TOOL |
| 741 | RANLIB |
| 742 | ac_ct_AR |
| 743 | FILECMD |
| 744 | LN_S |
| 745 | NM |
| 746 | ac_ct_DUMPBIN |
| 747 | DUMPBIN |
| 748 | LD |
| 749 | FGREP |
| 750 | EGREP |
| 751 | GREP |
| 752 | SED |
| 753 | LIBTOOL |
| 754 | OBJDUMP |
| 755 | DLLTOOL |
| 756 | AS |
| 757 | LDADD_FOR_TESTS_KLUDGE |
| 758 | AR |
| 759 | CPP |
| 760 | am__fastdepCC_FALSE |
| 761 | am__fastdepCC_TRUE |
| 762 | CCDEPMODE |
| 763 | am__nodep |
| 764 | AMDEPBACKSLASH |
| 765 | AMDEP_FALSE |
| 766 | AMDEP_TRUE |
| 767 | am__include |
| 768 | DEPDIR |
| 769 | OBJEXT |
| 770 | EXEEXT |
| 771 | ac_ct_CC |
| 772 | CPPFLAGS |
| 773 | LDFLAGS |
| 774 | CFLAGS |
| 775 | CC |
| 776 | host_os |
| 777 | host_vendor |
| 778 | host_cpu |
| 779 | host |
| 780 | build_os |
| 781 | build_vendor |
| 782 | build_cpu |
| 783 | build |
| 784 | MAINT |
| 785 | MAINTAINER_MODE_FALSE |
| 786 | MAINTAINER_MODE_TRUE |
| 787 | AM_BACKSLASH |
| 788 | AM_DEFAULT_VERBOSITY |
| 789 | AM_DEFAULT_V |
| 790 | AM_V |
| 791 | CSCOPE |
| 792 | ETAGS |
| 793 | CTAGS |
| 794 | am__untar |
| 795 | am__tar |
| 796 | AMTAR |
| 797 | am__leading_dot |
| 798 | SET_MAKE |
| 799 | AWK |
| 800 | mkdir_p |
| 801 | MKDIR_P |
| 802 | INSTALL_STRIP_PROGRAM |
| 803 | STRIP |
| 804 | install_sh |
| 805 | MAKEINFO |
| 806 | AUTOHEADER |
| 807 | AUTOMAKE |
| 808 | AUTOCONF |
| 809 | ACLOCAL |
| 810 | VERSION |
| 811 | PACKAGE |
| 812 | CYGPATH_W |
| 813 | am__isrc |
| 814 | INSTALL_DATA |
| 815 | INSTALL_SCRIPT |
| 816 | INSTALL_PROGRAM |
| 817 | VERSION_NUMBER |
| 818 | LIBGPG_ERROR_LT_REVISION |
| 819 | LIBGPG_ERROR_LT_AGE |
| 820 | LIBGPG_ERROR_LT_CURRENT |
| 821 | target_alias |
| 822 | host_alias |
| 823 | build_alias |
| 824 | LIBS |
| 825 | ECHO_T |
| 826 | ECHO_N |
| 827 | ECHO_C |
| 828 | DEFS |
| 829 | mandir |
| 830 | localedir |
| 831 | libdir |
| 832 | psdir |
| 833 | pdfdir |
| 834 | dvidir |
| 835 | htmldir |
| 836 | infodir |
| 837 | docdir |
| 838 | oldincludedir |
| 839 | includedir |
| 840 | runstatedir |
| 841 | localstatedir |
| 842 | sharedstatedir |
| 843 | sysconfdir |
| 844 | datadir |
| 845 | datarootdir |
| 846 | libexecdir |
| 847 | sbindir |
| 848 | bindir |
| 849 | program_transform_name |
| 850 | prefix |
| 851 | exec_prefix |
| 852 | PACKAGE_URL |
| 853 | PACKAGE_BUGREPORT |
| 854 | PACKAGE_STRING |
| 855 | PACKAGE_VERSION |
| 856 | PACKAGE_TARNAME |
| 857 | PACKAGE_NAME |
| 858 | PATH_SEPARATOR |
| 859 | SHELL |
| 860 | am__quote' |
| 861 | ac_subst_files='' |
| 862 | ac_user_opts=' |
| 863 | enable_option_checking |
| 864 | enable_silent_rules |
| 865 | enable_maintainer_mode |
| 866 | enable_dependency_tracking |
| 867 | enable_threads |
| 868 | enable_largefile |
| 869 | enable_static |
| 870 | enable_shared |
| 871 | with_pic |
| 872 | enable_fast_install |
| 873 | with_aix_soname |
| 874 | with_gnu_ld |
| 875 | with_sysroot |
| 876 | enable_libtool_lock |
| 877 | with_libtool_modification |
| 878 | enable_install_gpg_error_config |
| 879 | enable_nls |
| 880 | enable_rpath |
| 881 | with_libiconv_prefix |
| 882 | with_libintl_prefix |
| 883 | enable_ld_version_script |
| 884 | with_readline |
| 885 | enable_log_clock |
| 886 | enable_werror |
| 887 | enable_build_timestamp |
| 888 | enable_languages |
| 889 | enable_doc |
| 890 | enable_tests |
| 891 | ' |
| 892 | ac_precious_vars='build_alias |
| 893 | host_alias |
| 894 | target_alias |
| 895 | CC |
| 896 | CFLAGS |
| 897 | LDFLAGS |
| 898 | LIBS |
| 899 | CPPFLAGS |
| 900 | CPP |
| 901 | LT_SYS_LIBRARY_PATH' |
| 902 | |
| 903 | |
| 904 | # Initialize some variables set by options. |
| 905 | ac_init_help= |
| 906 | ac_init_version=false |
| 907 | ac_unrecognized_opts= |
| 908 | ac_unrecognized_sep= |
| 909 | # The variables have the same names as the options, with |
| 910 | # dashes changed to underlines. |
| 911 | cache_file=/dev/null |
| 912 | exec_prefix=NONE |
| 913 | no_create= |
| 914 | no_recursion= |
| 915 | prefix=NONE |
| 916 | program_prefix=NONE |
| 917 | program_suffix=NONE |
| 918 | program_transform_name=s,x,x, |
| 919 | silent= |
| 920 | site= |
| 921 | srcdir= |
| 922 | verbose= |
| 923 | x_includes=NONE |
| 924 | x_libraries=NONE |
| 925 | |
| 926 | # Installation directory options. |
| 927 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 928 | # and all the variables that are supposed to be based on exec_prefix |
| 929 | # by default will actually change. |
| 930 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 931 | # (The list follows the same order as the GNU Coding Standards.) |
| 932 | bindir='${exec_prefix}/bin' |
| 933 | sbindir='${exec_prefix}/sbin' |
| 934 | libexecdir='${exec_prefix}/libexec' |
| 935 | datarootdir='${prefix}/share' |
| 936 | datadir='${datarootdir}' |
| 937 | sysconfdir='${prefix}/etc' |
| 938 | sharedstatedir='${prefix}/com' |
| 939 | localstatedir='${prefix}/var' |
| 940 | runstatedir='${localstatedir}/run' |
| 941 | includedir='${prefix}/include' |
| 942 | oldincludedir='/usr/include' |
| 943 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 944 | infodir='${datarootdir}/info' |
| 945 | htmldir='${docdir}' |
| 946 | dvidir='${docdir}' |
| 947 | pdfdir='${docdir}' |
| 948 | psdir='${docdir}' |
| 949 | libdir='${exec_prefix}/lib' |
| 950 | localedir='${datarootdir}/locale' |
| 951 | mandir='${datarootdir}/man' |
| 952 | |
| 953 | ac_prev= |
| 954 | ac_dashdash= |
| 955 | for ac_option |
| 956 | do |
| 957 | # If the previous option needs an argument, assign it. |
| 958 | if test -n "$ac_prev"; then |
| 959 | eval $ac_prev=\$ac_option |
| 960 | ac_prev= |
| 961 | continue |
| 962 | fi |
| 963 | |
| 964 | case $ac_option in |
| 965 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 966 | *=) ac_optarg= ;; |
| 967 | *) ac_optarg=yes ;; |
| 968 | esac |
| 969 | |
| 970 | case $ac_dashdash$ac_option in |
| 971 | --) |
| 972 | ac_dashdash=yes ;; |
| 973 | |
| 974 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 975 | ac_prev=bindir ;; |
| 976 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 977 | bindir=$ac_optarg ;; |
| 978 | |
| 979 | -build | --build | --buil | --bui | --bu) |
| 980 | ac_prev=build_alias ;; |
| 981 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 982 | build_alias=$ac_optarg ;; |
| 983 | |
| 984 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 985 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 986 | ac_prev=cache_file ;; |
| 987 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 988 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 989 | cache_file=$ac_optarg ;; |
| 990 | |
| 991 | --config-cache | -C) |
| 992 | cache_file=config.cache ;; |
| 993 | |
| 994 | -datadir | --datadir | --datadi | --datad) |
| 995 | ac_prev=datadir ;; |
| 996 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 997 | datadir=$ac_optarg ;; |
| 998 | |
| 999 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1000 | | --dataroo | --dataro | --datar) |
| 1001 | ac_prev=datarootdir ;; |
| 1002 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1003 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1004 | datarootdir=$ac_optarg ;; |
| 1005 | |
| 1006 | -disable-* | --disable-*) |
| 1007 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1008 | # Reject names that are not valid shell variable names. |
| 1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1010 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1011 | ac_useropt_orig=$ac_useropt |
| 1012 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1013 | case $ac_user_opts in |
| 1014 | *" |
| 1015 | "enable_$ac_useropt" |
| 1016 | "*) ;; |
| 1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1018 | ac_unrecognized_sep=', ';; |
| 1019 | esac |
| 1020 | eval enable_$ac_useropt=no ;; |
| 1021 | |
| 1022 | -docdir | --docdir | --docdi | --doc | --do) |
| 1023 | ac_prev=docdir ;; |
| 1024 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1025 | docdir=$ac_optarg ;; |
| 1026 | |
| 1027 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1028 | ac_prev=dvidir ;; |
| 1029 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1030 | dvidir=$ac_optarg ;; |
| 1031 | |
| 1032 | -enable-* | --enable-*) |
| 1033 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1034 | # Reject names that are not valid shell variable names. |
| 1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1036 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1037 | ac_useropt_orig=$ac_useropt |
| 1038 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1039 | case $ac_user_opts in |
| 1040 | *" |
| 1041 | "enable_$ac_useropt" |
| 1042 | "*) ;; |
| 1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1044 | ac_unrecognized_sep=', ';; |
| 1045 | esac |
| 1046 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1047 | |
| 1048 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1049 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1050 | | --exec | --exe | --ex) |
| 1051 | ac_prev=exec_prefix ;; |
| 1052 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1053 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1054 | | --exec=* | --exe=* | --ex=*) |
| 1055 | exec_prefix=$ac_optarg ;; |
| 1056 | |
| 1057 | -gas | --gas | --ga | --g) |
| 1058 | # Obsolete; use --with-gas. |
| 1059 | with_gas=yes ;; |
| 1060 | |
| 1061 | -help | --help | --hel | --he | -h) |
| 1062 | ac_init_help=long ;; |
| 1063 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1064 | ac_init_help=recursive ;; |
| 1065 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1066 | ac_init_help=short ;; |
| 1067 | |
| 1068 | -host | --host | --hos | --ho) |
| 1069 | ac_prev=host_alias ;; |
| 1070 | -host=* | --host=* | --hos=* | --ho=*) |
| 1071 | host_alias=$ac_optarg ;; |
| 1072 | |
| 1073 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1074 | ac_prev=htmldir ;; |
| 1075 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1076 | | --ht=*) |
| 1077 | htmldir=$ac_optarg ;; |
| 1078 | |
| 1079 | -includedir | --includedir | --includedi | --included | --include \ |
| 1080 | | --includ | --inclu | --incl | --inc) |
| 1081 | ac_prev=includedir ;; |
| 1082 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1083 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1084 | includedir=$ac_optarg ;; |
| 1085 | |
| 1086 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1087 | ac_prev=infodir ;; |
| 1088 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1089 | infodir=$ac_optarg ;; |
| 1090 | |
| 1091 | -libdir | --libdir | --libdi | --libd) |
| 1092 | ac_prev=libdir ;; |
| 1093 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1094 | libdir=$ac_optarg ;; |
| 1095 | |
| 1096 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1097 | | --libexe | --libex | --libe) |
| 1098 | ac_prev=libexecdir ;; |
| 1099 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1100 | | --libexe=* | --libex=* | --libe=*) |
| 1101 | libexecdir=$ac_optarg ;; |
| 1102 | |
| 1103 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1104 | ac_prev=localedir ;; |
| 1105 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1106 | localedir=$ac_optarg ;; |
| 1107 | |
| 1108 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1109 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1110 | ac_prev=localstatedir ;; |
| 1111 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1112 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1113 | localstatedir=$ac_optarg ;; |
| 1114 | |
| 1115 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1116 | ac_prev=mandir ;; |
| 1117 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1118 | mandir=$ac_optarg ;; |
| 1119 | |
| 1120 | -nfp | --nfp | --nf) |
| 1121 | # Obsolete; use --without-fp. |
| 1122 | with_fp=no ;; |
| 1123 | |
| 1124 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1125 | | --no-cr | --no-c | -n) |
| 1126 | no_create=yes ;; |
| 1127 | |
| 1128 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1129 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1130 | no_recursion=yes ;; |
| 1131 | |
| 1132 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1133 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1134 | | --oldin | --oldi | --old | --ol | --o) |
| 1135 | ac_prev=oldincludedir ;; |
| 1136 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1137 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1138 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1139 | oldincludedir=$ac_optarg ;; |
| 1140 | |
| 1141 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1142 | ac_prev=prefix ;; |
| 1143 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1144 | prefix=$ac_optarg ;; |
| 1145 | |
| 1146 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1147 | | --program-pre | --program-pr | --program-p) |
| 1148 | ac_prev=program_prefix ;; |
| 1149 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1150 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1151 | program_prefix=$ac_optarg ;; |
| 1152 | |
| 1153 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1154 | | --program-suf | --program-su | --program-s) |
| 1155 | ac_prev=program_suffix ;; |
| 1156 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1157 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1158 | program_suffix=$ac_optarg ;; |
| 1159 | |
| 1160 | -program-transform-name | --program-transform-name \ |
| 1161 | | --program-transform-nam | --program-transform-na \ |
| 1162 | | --program-transform-n | --program-transform- \ |
| 1163 | | --program-transform | --program-transfor \ |
| 1164 | | --program-transfo | --program-transf \ |
| 1165 | | --program-trans | --program-tran \ |
| 1166 | | --progr-tra | --program-tr | --program-t) |
| 1167 | ac_prev=program_transform_name ;; |
| 1168 | -program-transform-name=* | --program-transform-name=* \ |
| 1169 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1170 | | --program-transform-n=* | --program-transform-=* \ |
| 1171 | | --program-transform=* | --program-transfor=* \ |
| 1172 | | --program-transfo=* | --program-transf=* \ |
| 1173 | | --program-trans=* | --program-tran=* \ |
| 1174 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1175 | program_transform_name=$ac_optarg ;; |
| 1176 | |
| 1177 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1178 | ac_prev=pdfdir ;; |
| 1179 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1180 | pdfdir=$ac_optarg ;; |
| 1181 | |
| 1182 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1183 | ac_prev=psdir ;; |
| 1184 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1185 | psdir=$ac_optarg ;; |
| 1186 | |
| 1187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1188 | | -silent | --silent | --silen | --sile | --sil) |
| 1189 | silent=yes ;; |
| 1190 | |
| 1191 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1192 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1193 | | --run | --ru | --r) |
| 1194 | ac_prev=runstatedir ;; |
| 1195 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1196 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1197 | | --run=* | --ru=* | --r=*) |
| 1198 | runstatedir=$ac_optarg ;; |
| 1199 | |
| 1200 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1201 | ac_prev=sbindir ;; |
| 1202 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1203 | | --sbi=* | --sb=*) |
| 1204 | sbindir=$ac_optarg ;; |
| 1205 | |
| 1206 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1207 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1208 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1209 | | --sha | --sh) |
| 1210 | ac_prev=sharedstatedir ;; |
| 1211 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1212 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1213 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1214 | | --sha=* | --sh=*) |
| 1215 | sharedstatedir=$ac_optarg ;; |
| 1216 | |
| 1217 | -site | --site | --sit) |
| 1218 | ac_prev=site ;; |
| 1219 | -site=* | --site=* | --sit=*) |
| 1220 | site=$ac_optarg ;; |
| 1221 | |
| 1222 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1223 | ac_prev=srcdir ;; |
| 1224 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1225 | srcdir=$ac_optarg ;; |
| 1226 | |
| 1227 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1228 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1229 | ac_prev=sysconfdir ;; |
| 1230 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1231 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1232 | sysconfdir=$ac_optarg ;; |
| 1233 | |
| 1234 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1235 | ac_prev=target_alias ;; |
| 1236 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1237 | target_alias=$ac_optarg ;; |
| 1238 | |
| 1239 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1240 | verbose=yes ;; |
| 1241 | |
| 1242 | -version | --version | --versio | --versi | --vers | -V) |
| 1243 | ac_init_version=: ;; |
| 1244 | |
| 1245 | -with-* | --with-*) |
| 1246 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1247 | # Reject names that are not valid shell variable names. |
| 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1249 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1250 | ac_useropt_orig=$ac_useropt |
| 1251 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1252 | case $ac_user_opts in |
| 1253 | *" |
| 1254 | "with_$ac_useropt" |
| 1255 | "*) ;; |
| 1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1257 | ac_unrecognized_sep=', ';; |
| 1258 | esac |
| 1259 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1260 | |
| 1261 | -without-* | --without-*) |
| 1262 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1263 | # Reject names that are not valid shell variable names. |
| 1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1265 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1266 | ac_useropt_orig=$ac_useropt |
| 1267 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1268 | case $ac_user_opts in |
| 1269 | *" |
| 1270 | "with_$ac_useropt" |
| 1271 | "*) ;; |
| 1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1273 | ac_unrecognized_sep=', ';; |
| 1274 | esac |
| 1275 | eval with_$ac_useropt=no ;; |
| 1276 | |
| 1277 | --x) |
| 1278 | # Obsolete; use --with-x. |
| 1279 | with_x=yes ;; |
| 1280 | |
| 1281 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1282 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1283 | ac_prev=x_includes ;; |
| 1284 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1285 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1286 | x_includes=$ac_optarg ;; |
| 1287 | |
| 1288 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1289 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1290 | ac_prev=x_libraries ;; |
| 1291 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1292 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1293 | x_libraries=$ac_optarg ;; |
| 1294 | |
| 1295 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1296 | Try \`$0 --help' for more information" |
| 1297 | ;; |
| 1298 | |
| 1299 | *=*) |
| 1300 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1301 | # Reject names that are not valid shell variable names. |
| 1302 | case $ac_envvar in #( |
| 1303 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1304 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1305 | esac |
| 1306 | eval $ac_envvar=\$ac_optarg |
| 1307 | export $ac_envvar ;; |
| 1308 | |
| 1309 | *) |
| 1310 | # FIXME: should be removed in autoconf 3.0. |
| 1311 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1312 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1313 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1314 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1315 | ;; |
| 1316 | |
| 1317 | esac |
| 1318 | done |
| 1319 | |
| 1320 | if test -n "$ac_prev"; then |
| 1321 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1322 | as_fn_error $? "missing argument to $ac_option" |
| 1323 | fi |
| 1324 | |
| 1325 | if test -n "$ac_unrecognized_opts"; then |
| 1326 | case $enable_option_checking in |
| 1327 | no) ;; |
| 1328 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1329 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1330 | esac |
| 1331 | fi |
| 1332 | |
| 1333 | # Check all directory arguments for consistency. |
| 1334 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1335 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1336 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1337 | libdir localedir mandir runstatedir |
| 1338 | do |
| 1339 | eval ac_val=\$$ac_var |
| 1340 | # Remove trailing slashes. |
| 1341 | case $ac_val in |
| 1342 | */ ) |
| 1343 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1344 | eval $ac_var=\$ac_val;; |
| 1345 | esac |
| 1346 | # Be sure to have absolute directory names. |
| 1347 | case $ac_val in |
| 1348 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1349 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1350 | esac |
| 1351 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1352 | done |
| 1353 | |
| 1354 | # There might be people who depend on the old broken behavior: `$host' |
| 1355 | # used to hold the argument of --host etc. |
| 1356 | # FIXME: To remove some day. |
| 1357 | build=$build_alias |
| 1358 | host=$host_alias |
| 1359 | target=$target_alias |
| 1360 | |
| 1361 | # FIXME: To remove some day. |
| 1362 | if test "x$host_alias" != x; then |
| 1363 | if test "x$build_alias" = x; then |
| 1364 | cross_compiling=maybe |
| 1365 | elif test "x$build_alias" != "x$host_alias"; then |
| 1366 | cross_compiling=yes |
| 1367 | fi |
| 1368 | fi |
| 1369 | |
| 1370 | ac_tool_prefix= |
| 1371 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1372 | |
| 1373 | test "$silent" = yes && exec 6>/dev/null |
| 1374 | |
| 1375 | |
| 1376 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1377 | ac_ls_di=`ls -di .` && |
| 1378 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1379 | as_fn_error $? "working directory cannot be determined" |
| 1380 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1381 | as_fn_error $? "pwd does not report name of working directory" |
| 1382 | |
| 1383 | |
| 1384 | # Find the source files, if location was not specified. |
| 1385 | if test -z "$srcdir"; then |
| 1386 | ac_srcdir_defaulted=yes |
| 1387 | # Try the directory containing this script, then the parent directory. |
| 1388 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1389 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1390 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1391 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1392 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1393 | printf "%s\n" X"$as_myself" | |
| 1394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1395 | s//\1/ |
| 1396 | q |
| 1397 | } |
| 1398 | /^X\(\/\/\)[^/].*/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)$/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\).*/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | s/.*/./; q'` |
| 1411 | srcdir=$ac_confdir |
| 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1413 | srcdir=.. |
| 1414 | fi |
| 1415 | else |
| 1416 | ac_srcdir_defaulted=no |
| 1417 | fi |
| 1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1419 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1420 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1421 | fi |
| 1422 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1423 | ac_abs_confdir=`( |
| 1424 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1425 | pwd)` |
| 1426 | # When building in place, set srcdir=. |
| 1427 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1428 | srcdir=. |
| 1429 | fi |
| 1430 | # Remove unnecessary trailing slashes from srcdir. |
| 1431 | # Double slashes in file names in object file debugging info |
| 1432 | # mess up M-x gdb in Emacs. |
| 1433 | case $srcdir in |
| 1434 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1435 | esac |
| 1436 | for ac_var in $ac_precious_vars; do |
| 1437 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1438 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1439 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1440 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1441 | done |
| 1442 | |
| 1443 | # |
| 1444 | # Report the --help message. |
| 1445 | # |
| 1446 | if test "$ac_init_help" = "long"; then |
| 1447 | # Omit some internal or obsolete options to make the list less imposing. |
| 1448 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1449 | cat <<_ACEOF |
| 1450 | \`configure' configures libgpg-error 1.61 to adapt to many kinds of systems. |
| 1451 | |
| 1452 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1453 | |
| 1454 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1455 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1456 | |
| 1457 | Defaults for the options are specified in brackets. |
| 1458 | |
| 1459 | Configuration: |
| 1460 | -h, --help display this help and exit |
| 1461 | --help=short display options specific to this package |
| 1462 | --help=recursive display the short help of all the included packages |
| 1463 | -V, --version display version information and exit |
| 1464 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1465 | --cache-file=FILE cache test results in FILE [disabled] |
| 1466 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1467 | -n, --no-create do not create output files |
| 1468 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1469 | |
| 1470 | Installation directories: |
| 1471 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1472 | [$ac_default_prefix] |
| 1473 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1474 | [PREFIX] |
| 1475 | |
| 1476 | By default, \`make install' will install all the files in |
| 1477 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1478 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1479 | for instance \`--prefix=\$HOME'. |
| 1480 | |
| 1481 | For better control, use the options below. |
| 1482 | |
| 1483 | Fine tuning of the installation directories: |
| 1484 | --bindir=DIR user executables [EPREFIX/bin] |
| 1485 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1486 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1487 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1488 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1489 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1490 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1491 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1492 | --includedir=DIR C header files [PREFIX/include] |
| 1493 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1494 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1495 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1496 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1497 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1498 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1499 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgpg-error] |
| 1500 | --htmldir=DIR html documentation [DOCDIR] |
| 1501 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1502 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1503 | --psdir=DIR ps documentation [DOCDIR] |
| 1504 | _ACEOF |
| 1505 | |
| 1506 | cat <<\_ACEOF |
| 1507 | |
| 1508 | Program names: |
| 1509 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1510 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1511 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1512 | |
| 1513 | System types: |
| 1514 | --build=BUILD configure for building on BUILD [guessed] |
| 1515 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1516 | _ACEOF |
| 1517 | fi |
| 1518 | |
| 1519 | if test -n "$ac_init_help"; then |
| 1520 | case $ac_init_help in |
| 1521 | short | recursive ) echo "Configuration of libgpg-error 1.61:";; |
| 1522 | esac |
| 1523 | cat <<\_ACEOF |
| 1524 | |
| 1525 | Optional Features: |
| 1526 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1529 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1530 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1531 | --enable-maintainer-mode |
| 1532 | enable make rules and dependencies not useful (and |
| 1533 | sometimes confusing) to the casual installer |
| 1534 | --enable-dependency-tracking |
| 1535 | do not reject slow dependency extractors |
| 1536 | --disable-dependency-tracking |
| 1537 | speeds up one-time build |
| 1538 | --enable-threads={isoc|posix|isoc+posix|windows} |
| 1539 | specify multithreading API |
| 1540 | --disable-threads build without multithread safety |
| 1541 | --disable-largefile omit support for large files |
| 1542 | --enable-static[=PKGS] build static libraries [default=no] |
| 1543 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1544 | --enable-fast-install[=PKGS] |
| 1545 | optimize for fast installation [default=yes] |
| 1546 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1547 | --enable-install-gpg-error-config |
| 1548 | install gpg-error-config command |
| 1549 | --disable-nls do not use Native Language Support |
| 1550 | --disable-rpath do not hardcode runtime library paths |
| 1551 | --enable-ld-version-script |
| 1552 | enable/disable use of linker version script. |
| 1553 | (default is system dependent) |
| 1554 | --enable-log-clock enable log_clock timestamps |
| 1555 | --enable-werror append -Werror to CFLAGS |
| 1556 | --enable-build-timestamp |
| 1557 | set an explicit build timestamp for reproducibility. |
| 1558 | (default is the current time in ISO-8601 format) |
| 1559 | --disable-languages do not build support for other languages than C |
| 1560 | --disable-doc do not build the documentation |
| 1561 | --disable-tests do not build the tests |
| 1562 | |
| 1563 | Optional Packages: |
| 1564 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1565 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1566 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1567 | both] |
| 1568 | --with-aix-soname=aix|svr4|both |
| 1569 | shared library versioning (aka "SONAME") variant to |
| 1570 | provide on AIX, [default=aix]. |
| 1571 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1572 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1573 | compiler's sysroot if not specified). |
| 1574 | --with-libtool-modification=apply|never|try |
| 1575 | how to handle libtool modification (default=never) |
| 1576 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1577 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1578 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1579 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1580 | --with-readline=DIR look for the readline library in DIR |
| 1581 | |
| 1582 | Some influential environment variables: |
| 1583 | CC C compiler command |
| 1584 | CFLAGS C compiler flags |
| 1585 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1586 | nonstandard directory <lib dir> |
| 1587 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1588 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1589 | you have headers in a nonstandard directory <include dir> |
| 1590 | CPP C preprocessor |
| 1591 | LT_SYS_LIBRARY_PATH |
| 1592 | User-defined run-time library search path. |
| 1593 | |
| 1594 | Use these variables to override the choices made by `configure' or to help |
| 1595 | it to find libraries and programs with nonstandard names/locations. |
| 1596 | |
| 1597 | Report bugs to <https://bugs.gnupg.org>. |
| 1598 | _ACEOF |
| 1599 | ac_status=$? |
| 1600 | fi |
| 1601 | |
| 1602 | if test "$ac_init_help" = "recursive"; then |
| 1603 | # If there are subdirs, report their specific --help. |
| 1604 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1605 | test -d "$ac_dir" || |
| 1606 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1607 | continue |
| 1608 | ac_builddir=. |
| 1609 | |
| 1610 | case "$ac_dir" in |
| 1611 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1612 | *) |
| 1613 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1614 | # A ".." for each directory in $ac_dir_suffix. |
| 1615 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1616 | case $ac_top_builddir_sub in |
| 1617 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1618 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1619 | esac ;; |
| 1620 | esac |
| 1621 | ac_abs_top_builddir=$ac_pwd |
| 1622 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1623 | # for backward compatibility: |
| 1624 | ac_top_builddir=$ac_top_build_prefix |
| 1625 | |
| 1626 | case $srcdir in |
| 1627 | .) # We are building in place. |
| 1628 | ac_srcdir=. |
| 1629 | ac_top_srcdir=$ac_top_builddir_sub |
| 1630 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1631 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1632 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1633 | ac_top_srcdir=$srcdir |
| 1634 | ac_abs_top_srcdir=$srcdir ;; |
| 1635 | *) # Relative name. |
| 1636 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1637 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1638 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1639 | esac |
| 1640 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1641 | |
| 1642 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1643 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1644 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1645 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1646 | echo && |
| 1647 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1648 | elif test -f "$ac_srcdir/configure"; then |
| 1649 | echo && |
| 1650 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1651 | else |
| 1652 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1653 | fi || ac_status=$? |
| 1654 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1655 | done |
| 1656 | fi |
| 1657 | |
| 1658 | test -n "$ac_init_help" && exit $ac_status |
| 1659 | if $ac_init_version; then |
| 1660 | cat <<\_ACEOF |
| 1661 | libgpg-error configure 1.61 |
| 1662 | generated by GNU Autoconf 2.71 |
| 1663 | |
| 1664 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 1665 | This configure script is free software; the Free Software Foundation |
| 1666 | gives unlimited permission to copy, distribute and modify it. |
| 1667 | _ACEOF |
| 1668 | exit |
| 1669 | fi |
| 1670 | |
| 1671 | ## ------------------------ ## |
| 1672 | ## Autoconf initialization. ## |
| 1673 | ## ------------------------ ## |
| 1674 | |
| 1675 | # ac_fn_c_try_compile LINENO |
| 1676 | # -------------------------- |
| 1677 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1678 | ac_fn_c_try_compile () |
| 1679 | { |
| 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1681 | rm -f conftest.$ac_objext conftest.beam |
| 1682 | if { { ac_try="$ac_compile" |
| 1683 | case "(($ac_try" in |
| 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1685 | *) ac_try_echo=$ac_try;; |
| 1686 | esac |
| 1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1688 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1689 | (eval "$ac_compile") 2>conftest.err |
| 1690 | ac_status=$? |
| 1691 | if test -s conftest.err; then |
| 1692 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1693 | cat conftest.er1 >&5 |
| 1694 | mv -f conftest.er1 conftest.err |
| 1695 | fi |
| 1696 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1697 | test $ac_status = 0; } && { |
| 1698 | test -z "$ac_c_werror_flag" || |
| 1699 | test ! -s conftest.err |
| 1700 | } && test -s conftest.$ac_objext |
| 1701 | then : |
| 1702 | ac_retval=0 |
| 1703 | else $as_nop |
| 1704 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1706 | |
| 1707 | ac_retval=1 |
| 1708 | fi |
| 1709 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1710 | as_fn_set_status $ac_retval |
| 1711 | |
| 1712 | } # ac_fn_c_try_compile |
| 1713 | |
| 1714 | # ac_fn_c_try_cpp LINENO |
| 1715 | # ---------------------- |
| 1716 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1717 | ac_fn_c_try_cpp () |
| 1718 | { |
| 1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1720 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1721 | case "(($ac_try" in |
| 1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1723 | *) ac_try_echo=$ac_try;; |
| 1724 | esac |
| 1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1726 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1728 | ac_status=$? |
| 1729 | if test -s conftest.err; then |
| 1730 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1731 | cat conftest.er1 >&5 |
| 1732 | mv -f conftest.er1 conftest.err |
| 1733 | fi |
| 1734 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1735 | test $ac_status = 0; } > conftest.i && { |
| 1736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1737 | test ! -s conftest.err |
| 1738 | } |
| 1739 | then : |
| 1740 | ac_retval=0 |
| 1741 | else $as_nop |
| 1742 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1744 | |
| 1745 | ac_retval=1 |
| 1746 | fi |
| 1747 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1748 | as_fn_set_status $ac_retval |
| 1749 | |
| 1750 | } # ac_fn_c_try_cpp |
| 1751 | |
| 1752 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1753 | # ------------------------------------------------------- |
| 1754 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1755 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1756 | ac_fn_c_check_header_compile () |
| 1757 | { |
| 1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1760 | printf %s "checking for $2... " >&6; } |
| 1761 | if eval test \${$3+y} |
| 1762 | then : |
| 1763 | printf %s "(cached) " >&6 |
| 1764 | else $as_nop |
| 1765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1766 | /* end confdefs.h. */ |
| 1767 | $4 |
| 1768 | #include <$2> |
| 1769 | _ACEOF |
| 1770 | if ac_fn_c_try_compile "$LINENO" |
| 1771 | then : |
| 1772 | eval "$3=yes" |
| 1773 | else $as_nop |
| 1774 | eval "$3=no" |
| 1775 | fi |
| 1776 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1777 | fi |
| 1778 | eval ac_res=\$$3 |
| 1779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1780 | printf "%s\n" "$ac_res" >&6; } |
| 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1782 | |
| 1783 | } # ac_fn_c_check_header_compile |
| 1784 | |
| 1785 | # ac_fn_c_try_link LINENO |
| 1786 | # ----------------------- |
| 1787 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1788 | ac_fn_c_try_link () |
| 1789 | { |
| 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1791 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1792 | if { { ac_try="$ac_link" |
| 1793 | case "(($ac_try" in |
| 1794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1795 | *) ac_try_echo=$ac_try;; |
| 1796 | esac |
| 1797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1798 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1799 | (eval "$ac_link") 2>conftest.err |
| 1800 | ac_status=$? |
| 1801 | if test -s conftest.err; then |
| 1802 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1803 | cat conftest.er1 >&5 |
| 1804 | mv -f conftest.er1 conftest.err |
| 1805 | fi |
| 1806 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1807 | test $ac_status = 0; } && { |
| 1808 | test -z "$ac_c_werror_flag" || |
| 1809 | test ! -s conftest.err |
| 1810 | } && test -s conftest$ac_exeext && { |
| 1811 | test "$cross_compiling" = yes || |
| 1812 | test -x conftest$ac_exeext |
| 1813 | } |
| 1814 | then : |
| 1815 | ac_retval=0 |
| 1816 | else $as_nop |
| 1817 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1819 | |
| 1820 | ac_retval=1 |
| 1821 | fi |
| 1822 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1823 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1824 | # interfere with the next link command; also delete a directory that is |
| 1825 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1826 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1827 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1828 | as_fn_set_status $ac_retval |
| 1829 | |
| 1830 | } # ac_fn_c_try_link |
| 1831 | |
| 1832 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1833 | # ---------------------------------- |
| 1834 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1835 | ac_fn_c_check_func () |
| 1836 | { |
| 1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1839 | printf %s "checking for $2... " >&6; } |
| 1840 | if eval test \${$3+y} |
| 1841 | then : |
| 1842 | printf %s "(cached) " >&6 |
| 1843 | else $as_nop |
| 1844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1845 | /* end confdefs.h. */ |
| 1846 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1848 | #define $2 innocuous_$2 |
| 1849 | |
| 1850 | /* System header to define __stub macros and hopefully few prototypes, |
| 1851 | which can conflict with char $2 (); below. */ |
| 1852 | |
| 1853 | #include <limits.h> |
| 1854 | #undef $2 |
| 1855 | |
| 1856 | /* Override any GCC internal prototype to avoid an error. |
| 1857 | Use char because int might match the return type of a GCC |
| 1858 | builtin and then its argument prototype would still apply. */ |
| 1859 | #ifdef __cplusplus |
| 1860 | extern "C" |
| 1861 | #endif |
| 1862 | char $2 (); |
| 1863 | /* The GNU C library defines this for functions which it implements |
| 1864 | to always fail with ENOSYS. Some functions are actually named |
| 1865 | something starting with __ and the normal name is an alias. */ |
| 1866 | #if defined __stub_$2 || defined __stub___$2 |
| 1867 | choke me |
| 1868 | #endif |
| 1869 | |
| 1870 | int |
| 1871 | main (void) |
| 1872 | { |
| 1873 | return $2 (); |
| 1874 | ; |
| 1875 | return 0; |
| 1876 | } |
| 1877 | _ACEOF |
| 1878 | if ac_fn_c_try_link "$LINENO" |
| 1879 | then : |
| 1880 | eval "$3=yes" |
| 1881 | else $as_nop |
| 1882 | eval "$3=no" |
| 1883 | fi |
| 1884 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1885 | conftest$ac_exeext conftest.$ac_ext |
| 1886 | fi |
| 1887 | eval ac_res=\$$3 |
| 1888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1889 | printf "%s\n" "$ac_res" >&6; } |
| 1890 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1891 | |
| 1892 | } # ac_fn_c_check_func |
| 1893 | |
| 1894 | # ac_fn_c_try_run LINENO |
| 1895 | # ---------------------- |
| 1896 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1897 | # executables *can* be run. |
| 1898 | ac_fn_c_try_run () |
| 1899 | { |
| 1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1901 | if { { ac_try="$ac_link" |
| 1902 | case "(($ac_try" in |
| 1903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1904 | *) ac_try_echo=$ac_try;; |
| 1905 | esac |
| 1906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1907 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1908 | (eval "$ac_link") 2>&5 |
| 1909 | ac_status=$? |
| 1910 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1911 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1912 | { { case "(($ac_try" in |
| 1913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1914 | *) ac_try_echo=$ac_try;; |
| 1915 | esac |
| 1916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1917 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1918 | (eval "$ac_try") 2>&5 |
| 1919 | ac_status=$? |
| 1920 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1921 | test $ac_status = 0; }; } |
| 1922 | then : |
| 1923 | ac_retval=0 |
| 1924 | else $as_nop |
| 1925 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1926 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1928 | |
| 1929 | ac_retval=$ac_status |
| 1930 | fi |
| 1931 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1932 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1933 | as_fn_set_status $ac_retval |
| 1934 | |
| 1935 | } # ac_fn_c_try_run |
| 1936 | |
| 1937 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 1938 | # ------------------------------------------------------------------ |
| 1939 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1940 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 1941 | ac_fn_check_decl () |
| 1942 | { |
| 1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1944 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1946 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 1947 | if eval test \${$3+y} |
| 1948 | then : |
| 1949 | printf %s "(cached) " >&6 |
| 1950 | else $as_nop |
| 1951 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1952 | eval ac_save_FLAGS=\$$6 |
| 1953 | as_fn_append $6 " $5" |
| 1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1955 | /* end confdefs.h. */ |
| 1956 | $4 |
| 1957 | int |
| 1958 | main (void) |
| 1959 | { |
| 1960 | #ifndef $as_decl_name |
| 1961 | #ifdef __cplusplus |
| 1962 | (void) $as_decl_use; |
| 1963 | #else |
| 1964 | (void) $as_decl_name; |
| 1965 | #endif |
| 1966 | #endif |
| 1967 | |
| 1968 | ; |
| 1969 | return 0; |
| 1970 | } |
| 1971 | _ACEOF |
| 1972 | if ac_fn_c_try_compile "$LINENO" |
| 1973 | then : |
| 1974 | eval "$3=yes" |
| 1975 | else $as_nop |
| 1976 | eval "$3=no" |
| 1977 | fi |
| 1978 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1979 | eval $6=\$ac_save_FLAGS |
| 1980 | |
| 1981 | fi |
| 1982 | eval ac_res=\$$3 |
| 1983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1984 | printf "%s\n" "$ac_res" >&6; } |
| 1985 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1986 | |
| 1987 | } # ac_fn_check_decl |
| 1988 | |
| 1989 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1990 | # -------------------------------------------- |
| 1991 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1992 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1993 | # computed |
| 1994 | ac_fn_c_compute_int () |
| 1995 | { |
| 1996 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1997 | if test "$cross_compiling" = yes; then |
| 1998 | # Depending upon the size, compute the lo and hi bounds. |
| 1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2000 | /* end confdefs.h. */ |
| 2001 | $4 |
| 2002 | int |
| 2003 | main (void) |
| 2004 | { |
| 2005 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2006 | test_array [0] = 0; |
| 2007 | return test_array [0]; |
| 2008 | |
| 2009 | ; |
| 2010 | return 0; |
| 2011 | } |
| 2012 | _ACEOF |
| 2013 | if ac_fn_c_try_compile "$LINENO" |
| 2014 | then : |
| 2015 | ac_lo=0 ac_mid=0 |
| 2016 | while :; do |
| 2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2018 | /* end confdefs.h. */ |
| 2019 | $4 |
| 2020 | int |
| 2021 | main (void) |
| 2022 | { |
| 2023 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2024 | test_array [0] = 0; |
| 2025 | return test_array [0]; |
| 2026 | |
| 2027 | ; |
| 2028 | return 0; |
| 2029 | } |
| 2030 | _ACEOF |
| 2031 | if ac_fn_c_try_compile "$LINENO" |
| 2032 | then : |
| 2033 | ac_hi=$ac_mid; break |
| 2034 | else $as_nop |
| 2035 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2036 | if test $ac_lo -le $ac_mid; then |
| 2037 | ac_lo= ac_hi= |
| 2038 | break |
| 2039 | fi |
| 2040 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2041 | fi |
| 2042 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2043 | done |
| 2044 | else $as_nop |
| 2045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2046 | /* end confdefs.h. */ |
| 2047 | $4 |
| 2048 | int |
| 2049 | main (void) |
| 2050 | { |
| 2051 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2052 | test_array [0] = 0; |
| 2053 | return test_array [0]; |
| 2054 | |
| 2055 | ; |
| 2056 | return 0; |
| 2057 | } |
| 2058 | _ACEOF |
| 2059 | if ac_fn_c_try_compile "$LINENO" |
| 2060 | then : |
| 2061 | ac_hi=-1 ac_mid=-1 |
| 2062 | while :; do |
| 2063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2064 | /* end confdefs.h. */ |
| 2065 | $4 |
| 2066 | int |
| 2067 | main (void) |
| 2068 | { |
| 2069 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2070 | test_array [0] = 0; |
| 2071 | return test_array [0]; |
| 2072 | |
| 2073 | ; |
| 2074 | return 0; |
| 2075 | } |
| 2076 | _ACEOF |
| 2077 | if ac_fn_c_try_compile "$LINENO" |
| 2078 | then : |
| 2079 | ac_lo=$ac_mid; break |
| 2080 | else $as_nop |
| 2081 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2082 | if test $ac_mid -le $ac_hi; then |
| 2083 | ac_lo= ac_hi= |
| 2084 | break |
| 2085 | fi |
| 2086 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2087 | fi |
| 2088 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2089 | done |
| 2090 | else $as_nop |
| 2091 | ac_lo= ac_hi= |
| 2092 | fi |
| 2093 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2094 | fi |
| 2095 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2096 | # Binary search between lo and hi bounds. |
| 2097 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2098 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2100 | /* end confdefs.h. */ |
| 2101 | $4 |
| 2102 | int |
| 2103 | main (void) |
| 2104 | { |
| 2105 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2106 | test_array [0] = 0; |
| 2107 | return test_array [0]; |
| 2108 | |
| 2109 | ; |
| 2110 | return 0; |
| 2111 | } |
| 2112 | _ACEOF |
| 2113 | if ac_fn_c_try_compile "$LINENO" |
| 2114 | then : |
| 2115 | ac_hi=$ac_mid |
| 2116 | else $as_nop |
| 2117 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2118 | fi |
| 2119 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2120 | done |
| 2121 | case $ac_lo in #(( |
| 2122 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2123 | '') ac_retval=1 ;; |
| 2124 | esac |
| 2125 | else |
| 2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2127 | /* end confdefs.h. */ |
| 2128 | $4 |
| 2129 | static long int longval (void) { return $2; } |
| 2130 | static unsigned long int ulongval (void) { return $2; } |
| 2131 | #include <stdio.h> |
| 2132 | #include <stdlib.h> |
| 2133 | int |
| 2134 | main (void) |
| 2135 | { |
| 2136 | |
| 2137 | FILE *f = fopen ("conftest.val", "w"); |
| 2138 | if (! f) |
| 2139 | return 1; |
| 2140 | if (($2) < 0) |
| 2141 | { |
| 2142 | long int i = longval (); |
| 2143 | if (i != ($2)) |
| 2144 | return 1; |
| 2145 | fprintf (f, "%ld", i); |
| 2146 | } |
| 2147 | else |
| 2148 | { |
| 2149 | unsigned long int i = ulongval (); |
| 2150 | if (i != ($2)) |
| 2151 | return 1; |
| 2152 | fprintf (f, "%lu", i); |
| 2153 | } |
| 2154 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2155 | on some platforms. */ |
| 2156 | return ferror (f) || fclose (f) != 0; |
| 2157 | |
| 2158 | ; |
| 2159 | return 0; |
| 2160 | } |
| 2161 | _ACEOF |
| 2162 | if ac_fn_c_try_run "$LINENO" |
| 2163 | then : |
| 2164 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2165 | else $as_nop |
| 2166 | ac_retval=1 |
| 2167 | fi |
| 2168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2169 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2170 | rm -f conftest.val |
| 2171 | |
| 2172 | fi |
| 2173 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2174 | as_fn_set_status $ac_retval |
| 2175 | |
| 2176 | } # ac_fn_c_compute_int |
| 2177 | |
| 2178 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2179 | # ------------------------------------------- |
| 2180 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2181 | # variable VAR accordingly. |
| 2182 | ac_fn_c_check_type () |
| 2183 | { |
| 2184 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2186 | printf %s "checking for $2... " >&6; } |
| 2187 | if eval test \${$3+y} |
| 2188 | then : |
| 2189 | printf %s "(cached) " >&6 |
| 2190 | else $as_nop |
| 2191 | eval "$3=no" |
| 2192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2193 | /* end confdefs.h. */ |
| 2194 | $4 |
| 2195 | int |
| 2196 | main (void) |
| 2197 | { |
| 2198 | if (sizeof ($2)) |
| 2199 | return 0; |
| 2200 | ; |
| 2201 | return 0; |
| 2202 | } |
| 2203 | _ACEOF |
| 2204 | if ac_fn_c_try_compile "$LINENO" |
| 2205 | then : |
| 2206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2207 | /* end confdefs.h. */ |
| 2208 | $4 |
| 2209 | int |
| 2210 | main (void) |
| 2211 | { |
| 2212 | if (sizeof (($2))) |
| 2213 | return 0; |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | if ac_fn_c_try_compile "$LINENO" |
| 2219 | then : |
| 2220 | |
| 2221 | else $as_nop |
| 2222 | eval "$3=yes" |
| 2223 | fi |
| 2224 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2225 | fi |
| 2226 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2227 | fi |
| 2228 | eval ac_res=\$$3 |
| 2229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2230 | printf "%s\n" "$ac_res" >&6; } |
| 2231 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2232 | |
| 2233 | } # ac_fn_c_check_type |
| 2234 | ac_configure_args_raw= |
| 2235 | for ac_arg |
| 2236 | do |
| 2237 | case $ac_arg in |
| 2238 | *\'*) |
| 2239 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2240 | esac |
| 2241 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2242 | done |
| 2243 | |
| 2244 | case $ac_configure_args_raw in |
| 2245 | *$as_nl*) |
| 2246 | ac_safe_unquote= ;; |
| 2247 | *) |
| 2248 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2249 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2250 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2251 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2252 | esac |
| 2253 | |
| 2254 | cat >config.log <<_ACEOF |
| 2255 | This file contains any messages produced by compilers while |
| 2256 | running configure, to aid debugging if configure makes a mistake. |
| 2257 | |
| 2258 | It was created by libgpg-error $as_me 1.61, which was |
| 2259 | generated by GNU Autoconf 2.71. Invocation command line was |
| 2260 | |
| 2261 | $ $0$ac_configure_args_raw |
| 2262 | |
| 2263 | _ACEOF |
| 2264 | exec 5>>config.log |
| 2265 | { |
| 2266 | cat <<_ASUNAME |
| 2267 | ## --------- ## |
| 2268 | ## Platform. ## |
| 2269 | ## --------- ## |
| 2270 | |
| 2271 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2272 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2273 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2274 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2275 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2276 | |
| 2277 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2278 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2279 | |
| 2280 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2281 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2282 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2283 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2284 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2285 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2286 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2287 | |
| 2288 | _ASUNAME |
| 2289 | |
| 2290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2291 | for as_dir in $PATH |
| 2292 | do |
| 2293 | IFS=$as_save_IFS |
| 2294 | case $as_dir in #((( |
| 2295 | '') as_dir=./ ;; |
| 2296 | */) ;; |
| 2297 | *) as_dir=$as_dir/ ;; |
| 2298 | esac |
| 2299 | printf "%s\n" "PATH: $as_dir" |
| 2300 | done |
| 2301 | IFS=$as_save_IFS |
| 2302 | |
| 2303 | } >&5 |
| 2304 | |
| 2305 | cat >&5 <<_ACEOF |
| 2306 | |
| 2307 | |
| 2308 | ## ----------- ## |
| 2309 | ## Core tests. ## |
| 2310 | ## ----------- ## |
| 2311 | |
| 2312 | _ACEOF |
| 2313 | |
| 2314 | |
| 2315 | # Keep a trace of the command line. |
| 2316 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2317 | # Strip out --silent because we don't want to record it for future runs. |
| 2318 | # Also quote any args containing shell meta-characters. |
| 2319 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2320 | ac_configure_args= |
| 2321 | ac_configure_args0= |
| 2322 | ac_configure_args1= |
| 2323 | ac_must_keep_next=false |
| 2324 | for ac_pass in 1 2 |
| 2325 | do |
| 2326 | for ac_arg |
| 2327 | do |
| 2328 | case $ac_arg in |
| 2329 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2330 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2331 | | -silent | --silent | --silen | --sile | --sil) |
| 2332 | continue ;; |
| 2333 | *\'*) |
| 2334 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2335 | esac |
| 2336 | case $ac_pass in |
| 2337 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2338 | 2) |
| 2339 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2340 | if test $ac_must_keep_next = true; then |
| 2341 | ac_must_keep_next=false # Got value, back to normal. |
| 2342 | else |
| 2343 | case $ac_arg in |
| 2344 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2345 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2346 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2347 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2348 | case "$ac_configure_args0 " in |
| 2349 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2350 | esac |
| 2351 | ;; |
| 2352 | -* ) ac_must_keep_next=true ;; |
| 2353 | esac |
| 2354 | fi |
| 2355 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2356 | ;; |
| 2357 | esac |
| 2358 | done |
| 2359 | done |
| 2360 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2361 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2362 | |
| 2363 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2364 | # config.log. We remove comments because anyway the quotes in there |
| 2365 | # would cause problems or look ugly. |
| 2366 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2367 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2368 | trap 'exit_status=$? |
| 2369 | # Sanitize IFS. |
| 2370 | IFS=" "" $as_nl" |
| 2371 | # Save into config.log some information that might help in debugging. |
| 2372 | { |
| 2373 | echo |
| 2374 | |
| 2375 | printf "%s\n" "## ---------------- ## |
| 2376 | ## Cache variables. ## |
| 2377 | ## ---------------- ##" |
| 2378 | echo |
| 2379 | # The following way of writing the cache mishandles newlines in values, |
| 2380 | ( |
| 2381 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2382 | eval ac_val=\$$ac_var |
| 2383 | case $ac_val in #( |
| 2384 | *${as_nl}*) |
| 2385 | case $ac_var in #( |
| 2386 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2387 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2388 | esac |
| 2389 | case $ac_var in #( |
| 2390 | _ | IFS | as_nl) ;; #( |
| 2391 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2392 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2393 | esac ;; |
| 2394 | esac |
| 2395 | done |
| 2396 | (set) 2>&1 | |
| 2397 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2398 | *${as_nl}ac_space=\ *) |
| 2399 | sed -n \ |
| 2400 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2402 | ;; #( |
| 2403 | *) |
| 2404 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2405 | ;; |
| 2406 | esac | |
| 2407 | sort |
| 2408 | ) |
| 2409 | echo |
| 2410 | |
| 2411 | printf "%s\n" "## ----------------- ## |
| 2412 | ## Output variables. ## |
| 2413 | ## ----------------- ##" |
| 2414 | echo |
| 2415 | for ac_var in $ac_subst_vars |
| 2416 | do |
| 2417 | eval ac_val=\$$ac_var |
| 2418 | case $ac_val in |
| 2419 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2420 | esac |
| 2421 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2422 | done | sort |
| 2423 | echo |
| 2424 | |
| 2425 | if test -n "$ac_subst_files"; then |
| 2426 | printf "%s\n" "## ------------------- ## |
| 2427 | ## File substitutions. ## |
| 2428 | ## ------------------- ##" |
| 2429 | echo |
| 2430 | for ac_var in $ac_subst_files |
| 2431 | do |
| 2432 | eval ac_val=\$$ac_var |
| 2433 | case $ac_val in |
| 2434 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2435 | esac |
| 2436 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2437 | done | sort |
| 2438 | echo |
| 2439 | fi |
| 2440 | |
| 2441 | if test -s confdefs.h; then |
| 2442 | printf "%s\n" "## ----------- ## |
| 2443 | ## confdefs.h. ## |
| 2444 | ## ----------- ##" |
| 2445 | echo |
| 2446 | cat confdefs.h |
| 2447 | echo |
| 2448 | fi |
| 2449 | test "$ac_signal" != 0 && |
| 2450 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2451 | printf "%s\n" "$as_me: exit $exit_status" |
| 2452 | } >&5 |
| 2453 | rm -f core *.core core.conftest.* && |
| 2454 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2455 | exit $exit_status |
| 2456 | ' 0 |
| 2457 | for ac_signal in 1 2 13 15; do |
| 2458 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2459 | done |
| 2460 | ac_signal=0 |
| 2461 | |
| 2462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2463 | rm -f -r conftest* confdefs.h |
| 2464 | |
| 2465 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2466 | |
| 2467 | # Predefined preprocessor variables. |
| 2468 | |
| 2469 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2470 | |
| 2471 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2472 | |
| 2473 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2474 | |
| 2475 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2476 | |
| 2477 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2478 | |
| 2479 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2480 | |
| 2481 | |
| 2482 | # Let the site file select an alternate cache file if it wants to. |
| 2483 | # Prefer an explicitly selected file to automatically selected ones. |
| 2484 | if test -n "$CONFIG_SITE"; then |
| 2485 | ac_site_files="$CONFIG_SITE" |
| 2486 | elif test "x$prefix" != xNONE; then |
| 2487 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2488 | else |
| 2489 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2490 | fi |
| 2491 | |
| 2492 | for ac_site_file in $ac_site_files |
| 2493 | do |
| 2494 | case $ac_site_file in #( |
| 2495 | */*) : |
| 2496 | ;; #( |
| 2497 | *) : |
| 2498 | ac_site_file=./$ac_site_file ;; |
| 2499 | esac |
| 2500 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2502 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2503 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2504 | . "$ac_site_file" \ |
| 2505 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2506 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2507 | as_fn_error $? "failed to load site script $ac_site_file |
| 2508 | See \`config.log' for more details" "$LINENO" 5; } |
| 2509 | fi |
| 2510 | done |
| 2511 | |
| 2512 | if test -r "$cache_file"; then |
| 2513 | # Some versions of bash will fail to source /dev/null (special files |
| 2514 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2515 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2516 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2517 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2518 | case $cache_file in |
| 2519 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2520 | *) . "./$cache_file";; |
| 2521 | esac |
| 2522 | fi |
| 2523 | else |
| 2524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2525 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2526 | >$cache_file |
| 2527 | fi |
| 2528 | |
| 2529 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2530 | ac_c_conftest_c89_globals=' |
| 2531 | /* Does the compiler advertise C89 conformance? |
| 2532 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2533 | while being otherwise adequately conformant. */ |
| 2534 | #if !defined __STDC__ |
| 2535 | # error "Compiler does not advertise C89 conformance" |
| 2536 | #endif |
| 2537 | |
| 2538 | #include <stddef.h> |
| 2539 | #include <stdarg.h> |
| 2540 | struct stat; |
| 2541 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2542 | struct buf { int x; }; |
| 2543 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2544 | static char *e (p, i) |
| 2545 | char **p; |
| 2546 | int i; |
| 2547 | { |
| 2548 | return p[i]; |
| 2549 | } |
| 2550 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2551 | { |
| 2552 | char *s; |
| 2553 | va_list v; |
| 2554 | va_start (v,p); |
| 2555 | s = g (p, va_arg (v,int)); |
| 2556 | va_end (v); |
| 2557 | return s; |
| 2558 | } |
| 2559 | |
| 2560 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2561 | function prototypes and stuff, but not \xHH hex character constants. |
| 2562 | These do not provoke an error unfortunately, instead are silently treated |
| 2563 | as an "x". The following induces an error, until -std is added to get |
| 2564 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2565 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2566 | that is true only with -std. */ |
| 2567 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2568 | |
| 2569 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2570 | inside strings and character constants. */ |
| 2571 | #define FOO(x) '\''x'\'' |
| 2572 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2573 | |
| 2574 | int test (int i, double x); |
| 2575 | struct s1 {int (*f) (int a);}; |
| 2576 | struct s2 {int (*f) (double a);}; |
| 2577 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2578 | int, int);' |
| 2579 | |
| 2580 | # Test code for whether the C compiler supports C89 (body of main). |
| 2581 | ac_c_conftest_c89_main=' |
| 2582 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2583 | ' |
| 2584 | |
| 2585 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2586 | ac_c_conftest_c99_globals=' |
| 2587 | // Does the compiler advertise C99 conformance? |
| 2588 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2589 | # error "Compiler does not advertise C99 conformance" |
| 2590 | #endif |
| 2591 | |
| 2592 | #include <stdbool.h> |
| 2593 | extern int puts (const char *); |
| 2594 | extern int printf (const char *, ...); |
| 2595 | extern int dprintf (int, const char *, ...); |
| 2596 | extern void *malloc (size_t); |
| 2597 | |
| 2598 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2599 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2600 | // FILE and stderr. |
| 2601 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2602 | #define showlist(...) puts (#__VA_ARGS__) |
| 2603 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2604 | static void |
| 2605 | test_varargs_macros (void) |
| 2606 | { |
| 2607 | int x = 1234; |
| 2608 | int y = 5678; |
| 2609 | debug ("Flag"); |
| 2610 | debug ("X = %d\n", x); |
| 2611 | showlist (The first, second, and third items.); |
| 2612 | report (x>y, "x is %d but y is %d", x, y); |
| 2613 | } |
| 2614 | |
| 2615 | // Check long long types. |
| 2616 | #define BIG64 18446744073709551615ull |
| 2617 | #define BIG32 4294967295ul |
| 2618 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2619 | #if !BIG_OK |
| 2620 | #error "your preprocessor is broken" |
| 2621 | #endif |
| 2622 | #if BIG_OK |
| 2623 | #else |
| 2624 | #error "your preprocessor is broken" |
| 2625 | #endif |
| 2626 | static long long int bignum = -9223372036854775807LL; |
| 2627 | static unsigned long long int ubignum = BIG64; |
| 2628 | |
| 2629 | struct incomplete_array |
| 2630 | { |
| 2631 | int datasize; |
| 2632 | double data[]; |
| 2633 | }; |
| 2634 | |
| 2635 | struct named_init { |
| 2636 | int number; |
| 2637 | const wchar_t *name; |
| 2638 | double average; |
| 2639 | }; |
| 2640 | |
| 2641 | typedef const char *ccp; |
| 2642 | |
| 2643 | static inline int |
| 2644 | test_restrict (ccp restrict text) |
| 2645 | { |
| 2646 | // See if C++-style comments work. |
| 2647 | // Iterate through items via the restricted pointer. |
| 2648 | // Also check for declarations in for loops. |
| 2649 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2650 | continue; |
| 2651 | return 0; |
| 2652 | } |
| 2653 | |
| 2654 | // Check varargs and va_copy. |
| 2655 | static bool |
| 2656 | test_varargs (const char *format, ...) |
| 2657 | { |
| 2658 | va_list args; |
| 2659 | va_start (args, format); |
| 2660 | va_list args_copy; |
| 2661 | va_copy (args_copy, args); |
| 2662 | |
| 2663 | const char *str = ""; |
| 2664 | int number = 0; |
| 2665 | float fnumber = 0; |
| 2666 | |
| 2667 | while (*format) |
| 2668 | { |
| 2669 | switch (*format++) |
| 2670 | { |
| 2671 | case '\''s'\'': // string |
| 2672 | str = va_arg (args_copy, const char *); |
| 2673 | break; |
| 2674 | case '\''d'\'': // int |
| 2675 | number = va_arg (args_copy, int); |
| 2676 | break; |
| 2677 | case '\''f'\'': // float |
| 2678 | fnumber = va_arg (args_copy, double); |
| 2679 | break; |
| 2680 | default: |
| 2681 | break; |
| 2682 | } |
| 2683 | } |
| 2684 | va_end (args_copy); |
| 2685 | va_end (args); |
| 2686 | |
| 2687 | return *str && number && fnumber; |
| 2688 | } |
| 2689 | ' |
| 2690 | |
| 2691 | # Test code for whether the C compiler supports C99 (body of main). |
| 2692 | ac_c_conftest_c99_main=' |
| 2693 | // Check bool. |
| 2694 | _Bool success = false; |
| 2695 | success |= (argc != 0); |
| 2696 | |
| 2697 | // Check restrict. |
| 2698 | if (test_restrict ("String literal") == 0) |
| 2699 | success = true; |
| 2700 | char *restrict newvar = "Another string"; |
| 2701 | |
| 2702 | // Check varargs. |
| 2703 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2704 | test_varargs_macros (); |
| 2705 | |
| 2706 | // Check flexible array members. |
| 2707 | struct incomplete_array *ia = |
| 2708 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2709 | ia->datasize = 10; |
| 2710 | for (int i = 0; i < ia->datasize; ++i) |
| 2711 | ia->data[i] = i * 1.234; |
| 2712 | |
| 2713 | // Check named initializers. |
| 2714 | struct named_init ni = { |
| 2715 | .number = 34, |
| 2716 | .name = L"Test wide string", |
| 2717 | .average = 543.34343, |
| 2718 | }; |
| 2719 | |
| 2720 | ni.number = 58; |
| 2721 | |
| 2722 | int dynamic_array[ni.number]; |
| 2723 | dynamic_array[0] = argv[0][0]; |
| 2724 | dynamic_array[ni.number - 1] = 543; |
| 2725 | |
| 2726 | // work around unused variable warnings |
| 2727 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2728 | || dynamic_array[ni.number - 1] != 543); |
| 2729 | ' |
| 2730 | |
| 2731 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2732 | ac_c_conftest_c11_globals=' |
| 2733 | // Does the compiler advertise C11 conformance? |
| 2734 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2735 | # error "Compiler does not advertise C11 conformance" |
| 2736 | #endif |
| 2737 | |
| 2738 | // Check _Alignas. |
| 2739 | char _Alignas (double) aligned_as_double; |
| 2740 | char _Alignas (0) no_special_alignment; |
| 2741 | extern char aligned_as_int; |
| 2742 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2743 | |
| 2744 | // Check _Alignof. |
| 2745 | enum |
| 2746 | { |
| 2747 | int_alignment = _Alignof (int), |
| 2748 | int_array_alignment = _Alignof (int[100]), |
| 2749 | char_alignment = _Alignof (char) |
| 2750 | }; |
| 2751 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2752 | |
| 2753 | // Check _Noreturn. |
| 2754 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2755 | |
| 2756 | // Check _Static_assert. |
| 2757 | struct test_static_assert |
| 2758 | { |
| 2759 | int x; |
| 2760 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2761 | "_Static_assert does not work in struct"); |
| 2762 | long int y; |
| 2763 | }; |
| 2764 | |
| 2765 | // Check UTF-8 literals. |
| 2766 | #define u8 syntax error! |
| 2767 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2768 | |
| 2769 | // Check duplicate typedefs. |
| 2770 | typedef long *long_ptr; |
| 2771 | typedef long int *long_ptr; |
| 2772 | typedef long_ptr long_ptr; |
| 2773 | |
| 2774 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2775 | struct anonymous |
| 2776 | { |
| 2777 | union { |
| 2778 | struct { int i; int j; }; |
| 2779 | struct { int k; long int l; } w; |
| 2780 | }; |
| 2781 | int m; |
| 2782 | } v1; |
| 2783 | ' |
| 2784 | |
| 2785 | # Test code for whether the C compiler supports C11 (body of main). |
| 2786 | ac_c_conftest_c11_main=' |
| 2787 | _Static_assert ((offsetof (struct anonymous, i) |
| 2788 | == offsetof (struct anonymous, w.k)), |
| 2789 | "Anonymous union alignment botch"); |
| 2790 | v1.i = 2; |
| 2791 | v1.w.k = 5; |
| 2792 | ok |= v1.i != 5; |
| 2793 | ' |
| 2794 | |
| 2795 | # Test code for whether the C compiler supports C11 (complete). |
| 2796 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2797 | ${ac_c_conftest_c99_globals} |
| 2798 | ${ac_c_conftest_c11_globals} |
| 2799 | |
| 2800 | int |
| 2801 | main (int argc, char **argv) |
| 2802 | { |
| 2803 | int ok = 0; |
| 2804 | ${ac_c_conftest_c89_main} |
| 2805 | ${ac_c_conftest_c99_main} |
| 2806 | ${ac_c_conftest_c11_main} |
| 2807 | return ok; |
| 2808 | } |
| 2809 | " |
| 2810 | |
| 2811 | # Test code for whether the C compiler supports C99 (complete). |
| 2812 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2813 | ${ac_c_conftest_c99_globals} |
| 2814 | |
| 2815 | int |
| 2816 | main (int argc, char **argv) |
| 2817 | { |
| 2818 | int ok = 0; |
| 2819 | ${ac_c_conftest_c89_main} |
| 2820 | ${ac_c_conftest_c99_main} |
| 2821 | return ok; |
| 2822 | } |
| 2823 | " |
| 2824 | |
| 2825 | # Test code for whether the C compiler supports C89 (complete). |
| 2826 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2827 | |
| 2828 | int |
| 2829 | main (int argc, char **argv) |
| 2830 | { |
| 2831 | int ok = 0; |
| 2832 | ${ac_c_conftest_c89_main} |
| 2833 | return ok; |
| 2834 | } |
| 2835 | " |
| 2836 | |
| 2837 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2838 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2839 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2840 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2841 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2842 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2843 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2844 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2845 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2846 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 2847 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 2848 | gt_needs="$gt_needs " |
| 2849 | as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H" |
| 2850 | |
| 2851 | # Auxiliary files required by this configure script. |
| 2852 | ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh" |
| 2853 | |
| 2854 | # Locations in which to look for auxiliary files. |
| 2855 | ac_aux_dir_candidates="${srcdir}/build-aux" |
| 2856 | |
| 2857 | # Search for a directory containing all of the required auxiliary files, |
| 2858 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2859 | # If we don't find one directory that contains all the files we need, |
| 2860 | # we report the set of missing files from the *first* directory in |
| 2861 | # $ac_aux_dir_candidates and give up. |
| 2862 | ac_missing_aux_files="" |
| 2863 | ac_first_candidate=: |
| 2864 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2866 | as_found=false |
| 2867 | for as_dir in $ac_aux_dir_candidates |
| 2868 | do |
| 2869 | IFS=$as_save_IFS |
| 2870 | case $as_dir in #((( |
| 2871 | '') as_dir=./ ;; |
| 2872 | */) ;; |
| 2873 | *) as_dir=$as_dir/ ;; |
| 2874 | esac |
| 2875 | as_found=: |
| 2876 | |
| 2877 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2878 | ac_aux_dir_found=yes |
| 2879 | ac_install_sh= |
| 2880 | for ac_aux in $ac_aux_files |
| 2881 | do |
| 2882 | # As a special case, if "install-sh" is required, that requirement |
| 2883 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2884 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 2885 | if test x"$ac_aux" = x"install-sh" |
| 2886 | then |
| 2887 | if test -f "${as_dir}install-sh"; then |
| 2888 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2889 | ac_install_sh="${as_dir}install-sh -c" |
| 2890 | elif test -f "${as_dir}install.sh"; then |
| 2891 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2892 | ac_install_sh="${as_dir}install.sh -c" |
| 2893 | elif test -f "${as_dir}shtool"; then |
| 2894 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2895 | ac_install_sh="${as_dir}shtool install -c" |
| 2896 | else |
| 2897 | ac_aux_dir_found=no |
| 2898 | if $ac_first_candidate; then |
| 2899 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2900 | else |
| 2901 | break |
| 2902 | fi |
| 2903 | fi |
| 2904 | else |
| 2905 | if test -f "${as_dir}${ac_aux}"; then |
| 2906 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2907 | else |
| 2908 | ac_aux_dir_found=no |
| 2909 | if $ac_first_candidate; then |
| 2910 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2911 | else |
| 2912 | break |
| 2913 | fi |
| 2914 | fi |
| 2915 | fi |
| 2916 | done |
| 2917 | if test "$ac_aux_dir_found" = yes; then |
| 2918 | ac_aux_dir="$as_dir" |
| 2919 | break |
| 2920 | fi |
| 2921 | ac_first_candidate=false |
| 2922 | |
| 2923 | as_found=false |
| 2924 | done |
| 2925 | IFS=$as_save_IFS |
| 2926 | if $as_found |
| 2927 | then : |
| 2928 | |
| 2929 | else $as_nop |
| 2930 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 2931 | fi |
| 2932 | |
| 2933 | |
| 2934 | # These three variables are undocumented and unsupported, |
| 2935 | # and are intended to be withdrawn in a future Autoconf release. |
| 2936 | # They can cause serious problems if a builder's source tree is in a directory |
| 2937 | # whose full name contains unusual characters. |
| 2938 | if test -f "${ac_aux_dir}config.guess"; then |
| 2939 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2940 | fi |
| 2941 | if test -f "${ac_aux_dir}config.sub"; then |
| 2942 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2943 | fi |
| 2944 | if test -f "$ac_aux_dir/configure"; then |
| 2945 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2946 | fi |
| 2947 | |
| 2948 | # Check that the precious variables saved in the cache have kept the same |
| 2949 | # value. |
| 2950 | ac_cache_corrupted=false |
| 2951 | for ac_var in $ac_precious_vars; do |
| 2952 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2953 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2954 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2955 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2956 | case $ac_old_set,$ac_new_set in |
| 2957 | set,) |
| 2958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2959 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2960 | ac_cache_corrupted=: ;; |
| 2961 | ,set) |
| 2962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2963 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2964 | ac_cache_corrupted=: ;; |
| 2965 | ,);; |
| 2966 | *) |
| 2967 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2968 | # differences in whitespace do not lead to failure. |
| 2969 | ac_old_val_w=`echo x $ac_old_val` |
| 2970 | ac_new_val_w=`echo x $ac_new_val` |
| 2971 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2973 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2974 | ac_cache_corrupted=: |
| 2975 | else |
| 2976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2977 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2978 | eval $ac_var=\$ac_old_val |
| 2979 | fi |
| 2980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2981 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2983 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2984 | fi;; |
| 2985 | esac |
| 2986 | # Pass precious variables to config.status. |
| 2987 | if test "$ac_new_set" = set; then |
| 2988 | case $ac_new_val in |
| 2989 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2990 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2991 | esac |
| 2992 | case " $ac_configure_args " in |
| 2993 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2994 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2995 | esac |
| 2996 | fi |
| 2997 | done |
| 2998 | if $ac_cache_corrupted; then |
| 2999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3000 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3002 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3003 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3004 | and start over" "$LINENO" 5 |
| 3005 | fi |
| 3006 | ## -------------------- ## |
| 3007 | ## Main body of script. ## |
| 3008 | ## -------------------- ## |
| 3009 | |
| 3010 | ac_ext=c |
| 3011 | ac_cpp='$CPP $CPPFLAGS' |
| 3012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3015 | |
| 3016 | |
| 3017 | # LT Version numbers, remember to change them just *before* a release. |
| 3018 | # (Code changed: REVISION++) |
| 3019 | # (Interfaces added/removed/changed: CURRENT++, REVISION=0) |
| 3020 | # (Interfaces added: AGE++) |
| 3021 | # (Interfaces removed: AGE=0) |
| 3022 | # Note that added error codes don't constitute an interface change. |
| 3023 | LIBGPG_ERROR_LT_CURRENT=42 |
| 3024 | LIBGPG_ERROR_LT_AGE=42 |
| 3025 | LIBGPG_ERROR_LT_REVISION=1 |
| 3026 | ################################################ |
| 3027 | |
| 3028 | |
| 3029 | |
| 3030 | |
| 3031 | |
| 3032 | VERSION_NUMBER=0x013d00 |
| 3033 | |
| 3034 | |
| 3035 | |
| 3036 | am__api_version='1.16' |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | # Find a good install program. We prefer a C program (faster), |
| 3041 | # so one script is as good as another. But avoid the broken or |
| 3042 | # incompatible versions: |
| 3043 | # SysV /etc/install, /usr/sbin/install |
| 3044 | # SunOS /usr/etc/install |
| 3045 | # IRIX /sbin/install |
| 3046 | # AIX /bin/install |
| 3047 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3048 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3049 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3050 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3051 | # OS/2's system install, which has a completely different semantic |
| 3052 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3053 | # Reject install programs that cannot install multiple files. |
| 3054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3055 | printf %s "checking for a BSD-compatible install... " >&6; } |
| 3056 | if test -z "$INSTALL"; then |
| 3057 | if test ${ac_cv_path_install+y} |
| 3058 | then : |
| 3059 | printf %s "(cached) " >&6 |
| 3060 | else $as_nop |
| 3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3062 | for as_dir in $PATH |
| 3063 | do |
| 3064 | IFS=$as_save_IFS |
| 3065 | case $as_dir in #((( |
| 3066 | '') as_dir=./ ;; |
| 3067 | */) ;; |
| 3068 | *) as_dir=$as_dir/ ;; |
| 3069 | esac |
| 3070 | # Account for fact that we put trailing slashes in our PATH walk. |
| 3071 | case $as_dir in #(( |
| 3072 | ./ | /[cC]/* | \ |
| 3073 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3074 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3075 | /usr/ucb/* ) ;; |
| 3076 | *) |
| 3077 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3078 | # Don't use installbsd from OSF since it installs stuff as root |
| 3079 | # by default. |
| 3080 | for ac_prog in ginstall scoinst install; do |
| 3081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3082 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 3083 | if test $ac_prog = install && |
| 3084 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3085 | # AIX install. It has an incompatible calling convention. |
| 3086 | : |
| 3087 | elif test $ac_prog = install && |
| 3088 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3089 | # program-specific install script used by HP pwplus--don't use. |
| 3090 | : |
| 3091 | else |
| 3092 | rm -rf conftest.one conftest.two conftest.dir |
| 3093 | echo one > conftest.one |
| 3094 | echo two > conftest.two |
| 3095 | mkdir conftest.dir |
| 3096 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 3097 | test -s conftest.one && test -s conftest.two && |
| 3098 | test -s conftest.dir/conftest.one && |
| 3099 | test -s conftest.dir/conftest.two |
| 3100 | then |
| 3101 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 3102 | break 3 |
| 3103 | fi |
| 3104 | fi |
| 3105 | fi |
| 3106 | done |
| 3107 | done |
| 3108 | ;; |
| 3109 | esac |
| 3110 | |
| 3111 | done |
| 3112 | IFS=$as_save_IFS |
| 3113 | |
| 3114 | rm -rf conftest.one conftest.two conftest.dir |
| 3115 | |
| 3116 | fi |
| 3117 | if test ${ac_cv_path_install+y}; then |
| 3118 | INSTALL=$ac_cv_path_install |
| 3119 | else |
| 3120 | # As a last resort, use the slow shell script. Don't cache a |
| 3121 | # value for INSTALL within a source directory, because that will |
| 3122 | # break other packages using the cache if that directory is |
| 3123 | # removed, or if the value is a relative name. |
| 3124 | INSTALL=$ac_install_sh |
| 3125 | fi |
| 3126 | fi |
| 3127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3128 | printf "%s\n" "$INSTALL" >&6; } |
| 3129 | |
| 3130 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3131 | # It thinks the first close brace ends the variable substitution. |
| 3132 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3133 | |
| 3134 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3135 | |
| 3136 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3137 | |
| 3138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3139 | printf %s "checking whether build environment is sane... " >&6; } |
| 3140 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3141 | # name. Accept space and tab only in the latter. |
| 3142 | am_lf=' |
| 3143 | ' |
| 3144 | case `pwd` in |
| 3145 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3146 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3147 | esac |
| 3148 | case $srcdir in |
| 3149 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3150 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3151 | esac |
| 3152 | |
| 3153 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 3154 | # arguments. Must try -L first in case configure is actually a |
| 3155 | # symlink; some systems play weird games with the mod time of symlinks |
| 3156 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3157 | # directory). |
| 3158 | if ( |
| 3159 | am_has_slept=no |
| 3160 | for am_try in 1 2; do |
| 3161 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3162 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3163 | if test "$*" = "X"; then |
| 3164 | # -L didn't work. |
| 3165 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3166 | fi |
| 3167 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3168 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3169 | |
| 3170 | # If neither matched, then we have a broken ls. This can happen |
| 3171 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3172 | # broken ls alias from the environment. This has actually |
| 3173 | # happened. Such a system could not be considered "sane". |
| 3174 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3175 | alias in your environment" "$LINENO" 5 |
| 3176 | fi |
| 3177 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 3178 | break |
| 3179 | fi |
| 3180 | # Just in case. |
| 3181 | sleep 1 |
| 3182 | am_has_slept=yes |
| 3183 | done |
| 3184 | test "$2" = conftest.file |
| 3185 | ) |
| 3186 | then |
| 3187 | # Ok. |
| 3188 | : |
| 3189 | else |
| 3190 | as_fn_error $? "newly created file is older than distributed files! |
| 3191 | Check your system clock" "$LINENO" 5 |
| 3192 | fi |
| 3193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3194 | printf "%s\n" "yes" >&6; } |
| 3195 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3196 | # generated files are strictly newer. |
| 3197 | am_sleep_pid= |
| 3198 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 3199 | ( sleep 1 ) & |
| 3200 | am_sleep_pid=$! |
| 3201 | fi |
| 3202 | |
| 3203 | rm -f conftest.file |
| 3204 | |
| 3205 | test "$program_prefix" != NONE && |
| 3206 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3207 | # Use a double $ so make ignores it. |
| 3208 | test "$program_suffix" != NONE && |
| 3209 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3210 | # Double any \ or $. |
| 3211 | # By default was `s,x,x', remove it if useless. |
| 3212 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3213 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 3214 | |
| 3215 | |
| 3216 | # Expand $ac_aux_dir to an absolute path. |
| 3217 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3218 | |
| 3219 | |
| 3220 | if test x"${MISSING+set}" != xset; then |
| 3221 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 3222 | fi |
| 3223 | # Use eval to expand $SHELL |
| 3224 | if eval "$MISSING --is-lightweight"; then |
| 3225 | am_missing_run="$MISSING " |
| 3226 | else |
| 3227 | am_missing_run= |
| 3228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3229 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3230 | fi |
| 3231 | |
| 3232 | if test x"${install_sh+set}" != xset; then |
| 3233 | case $am_aux_dir in |
| 3234 | *\ * | *\ *) |
| 3235 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3236 | *) |
| 3237 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3238 | esac |
| 3239 | fi |
| 3240 | |
| 3241 | # Installed binaries are usually stripped using 'strip' when the user |
| 3242 | # run "make install-strip". However 'strip' might not be the right |
| 3243 | # tool to use in cross-compilation environments, therefore Automake |
| 3244 | # will honor the 'STRIP' environment variable to overrule this program. |
| 3245 | if test "$cross_compiling" != no; then |
| 3246 | if test -n "$ac_tool_prefix"; then |
| 3247 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3248 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3250 | printf %s "checking for $ac_word... " >&6; } |
| 3251 | if test ${ac_cv_prog_STRIP+y} |
| 3252 | then : |
| 3253 | printf %s "(cached) " >&6 |
| 3254 | else $as_nop |
| 3255 | if test -n "$STRIP"; then |
| 3256 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3257 | else |
| 3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3259 | for as_dir in $PATH |
| 3260 | do |
| 3261 | IFS=$as_save_IFS |
| 3262 | case $as_dir in #((( |
| 3263 | '') as_dir=./ ;; |
| 3264 | */) ;; |
| 3265 | *) as_dir=$as_dir/ ;; |
| 3266 | esac |
| 3267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3268 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3269 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3270 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3271 | break 2 |
| 3272 | fi |
| 3273 | done |
| 3274 | done |
| 3275 | IFS=$as_save_IFS |
| 3276 | |
| 3277 | fi |
| 3278 | fi |
| 3279 | STRIP=$ac_cv_prog_STRIP |
| 3280 | if test -n "$STRIP"; then |
| 3281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3282 | printf "%s\n" "$STRIP" >&6; } |
| 3283 | else |
| 3284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3285 | printf "%s\n" "no" >&6; } |
| 3286 | fi |
| 3287 | |
| 3288 | |
| 3289 | fi |
| 3290 | if test -z "$ac_cv_prog_STRIP"; then |
| 3291 | ac_ct_STRIP=$STRIP |
| 3292 | # Extract the first word of "strip", so it can be a program name with args. |
| 3293 | set dummy strip; ac_word=$2 |
| 3294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3295 | printf %s "checking for $ac_word... " >&6; } |
| 3296 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 3297 | then : |
| 3298 | printf %s "(cached) " >&6 |
| 3299 | else $as_nop |
| 3300 | if test -n "$ac_ct_STRIP"; then |
| 3301 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3302 | else |
| 3303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3304 | for as_dir in $PATH |
| 3305 | do |
| 3306 | IFS=$as_save_IFS |
| 3307 | case $as_dir in #((( |
| 3308 | '') as_dir=./ ;; |
| 3309 | */) ;; |
| 3310 | *) as_dir=$as_dir/ ;; |
| 3311 | esac |
| 3312 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3313 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3314 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3315 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3316 | break 2 |
| 3317 | fi |
| 3318 | done |
| 3319 | done |
| 3320 | IFS=$as_save_IFS |
| 3321 | |
| 3322 | fi |
| 3323 | fi |
| 3324 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3325 | if test -n "$ac_ct_STRIP"; then |
| 3326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3327 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3328 | else |
| 3329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3330 | printf "%s\n" "no" >&6; } |
| 3331 | fi |
| 3332 | |
| 3333 | if test "x$ac_ct_STRIP" = x; then |
| 3334 | STRIP=":" |
| 3335 | else |
| 3336 | case $cross_compiling:$ac_tool_warned in |
| 3337 | yes:) |
| 3338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3339 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3340 | ac_tool_warned=yes ;; |
| 3341 | esac |
| 3342 | STRIP=$ac_ct_STRIP |
| 3343 | fi |
| 3344 | else |
| 3345 | STRIP="$ac_cv_prog_STRIP" |
| 3346 | fi |
| 3347 | |
| 3348 | fi |
| 3349 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3350 | |
| 3351 | |
| 3352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3353 | printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3354 | if test -z "$MKDIR_P"; then |
| 3355 | if test ${ac_cv_path_mkdir+y} |
| 3356 | then : |
| 3357 | printf %s "(cached) " >&6 |
| 3358 | else $as_nop |
| 3359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3360 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3361 | do |
| 3362 | IFS=$as_save_IFS |
| 3363 | case $as_dir in #((( |
| 3364 | '') as_dir=./ ;; |
| 3365 | */) ;; |
| 3366 | *) as_dir=$as_dir/ ;; |
| 3367 | esac |
| 3368 | for ac_prog in mkdir gmkdir; do |
| 3369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3370 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3371 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3372 | 'mkdir ('*'coreutils) '* | \ |
| 3373 | 'BusyBox '* | \ |
| 3374 | 'mkdir (fileutils) '4.1*) |
| 3375 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3376 | break 3;; |
| 3377 | esac |
| 3378 | done |
| 3379 | done |
| 3380 | done |
| 3381 | IFS=$as_save_IFS |
| 3382 | |
| 3383 | fi |
| 3384 | |
| 3385 | test -d ./--version && rmdir ./--version |
| 3386 | if test ${ac_cv_path_mkdir+y}; then |
| 3387 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3388 | else |
| 3389 | # As a last resort, use the slow shell script. Don't cache a |
| 3390 | # value for MKDIR_P within a source directory, because that will |
| 3391 | # break other packages using the cache if that directory is |
| 3392 | # removed, or if the value is a relative name. |
| 3393 | MKDIR_P="$ac_install_sh -d" |
| 3394 | fi |
| 3395 | fi |
| 3396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3397 | printf "%s\n" "$MKDIR_P" >&6; } |
| 3398 | |
| 3399 | for ac_prog in gawk mawk nawk awk |
| 3400 | do |
| 3401 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3402 | set dummy $ac_prog; ac_word=$2 |
| 3403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3404 | printf %s "checking for $ac_word... " >&6; } |
| 3405 | if test ${ac_cv_prog_AWK+y} |
| 3406 | then : |
| 3407 | printf %s "(cached) " >&6 |
| 3408 | else $as_nop |
| 3409 | if test -n "$AWK"; then |
| 3410 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3411 | else |
| 3412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3413 | for as_dir in $PATH |
| 3414 | do |
| 3415 | IFS=$as_save_IFS |
| 3416 | case $as_dir in #((( |
| 3417 | '') as_dir=./ ;; |
| 3418 | */) ;; |
| 3419 | *) as_dir=$as_dir/ ;; |
| 3420 | esac |
| 3421 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3422 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3423 | ac_cv_prog_AWK="$ac_prog" |
| 3424 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3425 | break 2 |
| 3426 | fi |
| 3427 | done |
| 3428 | done |
| 3429 | IFS=$as_save_IFS |
| 3430 | |
| 3431 | fi |
| 3432 | fi |
| 3433 | AWK=$ac_cv_prog_AWK |
| 3434 | if test -n "$AWK"; then |
| 3435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3436 | printf "%s\n" "$AWK" >&6; } |
| 3437 | else |
| 3438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3439 | printf "%s\n" "no" >&6; } |
| 3440 | fi |
| 3441 | |
| 3442 | |
| 3443 | test -n "$AWK" && break |
| 3444 | done |
| 3445 | |
| 3446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3447 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3448 | set x ${MAKE-make} |
| 3449 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3450 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 3451 | then : |
| 3452 | printf %s "(cached) " >&6 |
| 3453 | else $as_nop |
| 3454 | cat >conftest.make <<\_ACEOF |
| 3455 | SHELL = /bin/sh |
| 3456 | all: |
| 3457 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3458 | _ACEOF |
| 3459 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3460 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3461 | *@@@%%%=?*=@@@%%%*) |
| 3462 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3463 | *) |
| 3464 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3465 | esac |
| 3466 | rm -f conftest.make |
| 3467 | fi |
| 3468 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3470 | printf "%s\n" "yes" >&6; } |
| 3471 | SET_MAKE= |
| 3472 | else |
| 3473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3474 | printf "%s\n" "no" >&6; } |
| 3475 | SET_MAKE="MAKE=${MAKE-make}" |
| 3476 | fi |
| 3477 | |
| 3478 | rm -rf .tst 2>/dev/null |
| 3479 | mkdir .tst 2>/dev/null |
| 3480 | if test -d .tst; then |
| 3481 | am__leading_dot=. |
| 3482 | else |
| 3483 | am__leading_dot=_ |
| 3484 | fi |
| 3485 | rmdir .tst 2>/dev/null |
| 3486 | |
| 3487 | # Check whether --enable-silent-rules was given. |
| 3488 | if test ${enable_silent_rules+y} |
| 3489 | then : |
| 3490 | enableval=$enable_silent_rules; |
| 3491 | fi |
| 3492 | |
| 3493 | case $enable_silent_rules in # ((( |
| 3494 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3495 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3496 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3497 | esac |
| 3498 | am_make=${MAKE-make} |
| 3499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3500 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3501 | if test ${am_cv_make_support_nested_variables+y} |
| 3502 | then : |
| 3503 | printf %s "(cached) " >&6 |
| 3504 | else $as_nop |
| 3505 | if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3506 | BAR0=false |
| 3507 | BAR1=true |
| 3508 | V=1 |
| 3509 | am__doit: |
| 3510 | @$(TRUE) |
| 3511 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3512 | am_cv_make_support_nested_variables=yes |
| 3513 | else |
| 3514 | am_cv_make_support_nested_variables=no |
| 3515 | fi |
| 3516 | fi |
| 3517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3518 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3519 | if test $am_cv_make_support_nested_variables = yes; then |
| 3520 | AM_V='$(V)' |
| 3521 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3522 | else |
| 3523 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3524 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3525 | fi |
| 3526 | AM_BACKSLASH='\' |
| 3527 | |
| 3528 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3529 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3530 | # is not polluted with repeated "-I." |
| 3531 | am__isrc=' -I$(srcdir)' |
| 3532 | # test to see if srcdir already configured |
| 3533 | if test -f $srcdir/config.status; then |
| 3534 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3535 | fi |
| 3536 | fi |
| 3537 | |
| 3538 | # test whether we have cygpath |
| 3539 | if test -z "$CYGPATH_W"; then |
| 3540 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3541 | CYGPATH_W='cygpath -w' |
| 3542 | else |
| 3543 | CYGPATH_W=echo |
| 3544 | fi |
| 3545 | fi |
| 3546 | |
| 3547 | |
| 3548 | # Define the identity of the package. |
| 3549 | PACKAGE='libgpg-error' |
| 3550 | VERSION='1.61' |
| 3551 | |
| 3552 | |
| 3553 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 3554 | |
| 3555 | |
| 3556 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 3557 | |
| 3558 | # Some tools Automake needs. |
| 3559 | |
| 3560 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3561 | |
| 3562 | |
| 3563 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3564 | |
| 3565 | |
| 3566 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3567 | |
| 3568 | |
| 3569 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3570 | |
| 3571 | |
| 3572 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3573 | |
| 3574 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3575 | # dies out for good. For more background, see: |
| 3576 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3577 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3578 | mkdir_p='$(MKDIR_P)' |
| 3579 | |
| 3580 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 3581 | # system "awk" is bad on some platforms. |
| 3582 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3583 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3584 | AMTAR='$${TAR-tar}' |
| 3585 | |
| 3586 | |
| 3587 | # We'll loop over all known methods to create a tar archive until one works. |
| 3588 | _am_tools='gnutar pax cpio none' |
| 3589 | |
| 3590 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3591 | |
| 3592 | |
| 3593 | |
| 3594 | |
| 3595 | |
| 3596 | # Variables for tags utilities; see am/tags.am |
| 3597 | if test -z "$CTAGS"; then |
| 3598 | CTAGS=ctags |
| 3599 | fi |
| 3600 | |
| 3601 | if test -z "$ETAGS"; then |
| 3602 | ETAGS=etags |
| 3603 | fi |
| 3604 | |
| 3605 | if test -z "$CSCOPE"; then |
| 3606 | CSCOPE=cscope |
| 3607 | fi |
| 3608 | |
| 3609 | |
| 3610 | |
| 3611 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3612 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3613 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3614 | # actually supported "in the wild" to an acceptable degree. |
| 3615 | # See automake bug#10828. |
| 3616 | # To make any issue more visible, cause the running configure to be aborted |
| 3617 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3618 | # user can still override this though. |
| 3619 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3620 | cat >&2 <<'END' |
| 3621 | Oops! |
| 3622 | |
| 3623 | Your 'rm' program seems unable to run without file operands specified |
| 3624 | on the command line, even when the '-f' option is present. This is contrary |
| 3625 | to the behaviour of most rm programs out there, and not conforming with |
| 3626 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3627 | |
| 3628 | Please tell [email protected] about your system, including the value |
| 3629 | of your $PATH and any error possibly output before this message. This |
| 3630 | can help us improve future automake versions. |
| 3631 | |
| 3632 | END |
| 3633 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3634 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3635 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3636 | echo >&2 |
| 3637 | else |
| 3638 | cat >&2 <<'END' |
| 3639 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3640 | |
| 3641 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3642 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 3643 | |
| 3644 | If you want to complete the configuration process using your problematic |
| 3645 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3646 | to "yes", and re-run configure. |
| 3647 | |
| 3648 | END |
| 3649 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3650 | fi |
| 3651 | fi |
| 3652 | |
| 3653 | |
| 3654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3655 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3656 | # Check whether --enable-maintainer-mode was given. |
| 3657 | if test ${enable_maintainer_mode+y} |
| 3658 | then : |
| 3659 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3660 | else $as_nop |
| 3661 | USE_MAINTAINER_MODE=no |
| 3662 | fi |
| 3663 | |
| 3664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3665 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 3666 | if test $USE_MAINTAINER_MODE = yes; then |
| 3667 | MAINTAINER_MODE_TRUE= |
| 3668 | MAINTAINER_MODE_FALSE='#' |
| 3669 | else |
| 3670 | MAINTAINER_MODE_TRUE='#' |
| 3671 | MAINTAINER_MODE_FALSE= |
| 3672 | fi |
| 3673 | |
| 3674 | MAINT=$MAINTAINER_MODE_TRUE |
| 3675 | |
| 3676 | |
| 3677 | |
| 3678 | ac_config_headers="$ac_config_headers config.h" |
| 3679 | |
| 3680 | |
| 3681 | # Check whether --enable-silent-rules was given. |
| 3682 | if test ${enable_silent_rules+y} |
| 3683 | then : |
| 3684 | enableval=$enable_silent_rules; |
| 3685 | fi |
| 3686 | |
| 3687 | case $enable_silent_rules in # ((( |
| 3688 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3689 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3690 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3691 | esac |
| 3692 | am_make=${MAKE-make} |
| 3693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3694 | printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3695 | if test ${am_cv_make_support_nested_variables+y} |
| 3696 | then : |
| 3697 | printf %s "(cached) " >&6 |
| 3698 | else $as_nop |
| 3699 | if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3700 | BAR0=false |
| 3701 | BAR1=true |
| 3702 | V=1 |
| 3703 | am__doit: |
| 3704 | @$(TRUE) |
| 3705 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3706 | am_cv_make_support_nested_variables=yes |
| 3707 | else |
| 3708 | am_cv_make_support_nested_variables=no |
| 3709 | fi |
| 3710 | fi |
| 3711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3712 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3713 | if test $am_cv_make_support_nested_variables = yes; then |
| 3714 | AM_V='$(V)' |
| 3715 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3716 | else |
| 3717 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3718 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3719 | fi |
| 3720 | AM_BACKSLASH='\' |
| 3721 | |
| 3722 | |
| 3723 | # We need to know about the host architecture to avoid spurious |
| 3724 | # warnings. |
| 3725 | |
| 3726 | |
| 3727 | # Make sure we can run config.sub. |
| 3728 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3729 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3730 | |
| 3731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3732 | printf %s "checking build system type... " >&6; } |
| 3733 | if test ${ac_cv_build+y} |
| 3734 | then : |
| 3735 | printf %s "(cached) " >&6 |
| 3736 | else $as_nop |
| 3737 | ac_build_alias=$build_alias |
| 3738 | test "x$ac_build_alias" = x && |
| 3739 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 3740 | test "x$ac_build_alias" = x && |
| 3741 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3742 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3743 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3744 | |
| 3745 | fi |
| 3746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3747 | printf "%s\n" "$ac_cv_build" >&6; } |
| 3748 | case $ac_cv_build in |
| 3749 | *-*-*) ;; |
| 3750 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3751 | esac |
| 3752 | build=$ac_cv_build |
| 3753 | ac_save_IFS=$IFS; IFS='-' |
| 3754 | set x $ac_cv_build |
| 3755 | shift |
| 3756 | build_cpu=$1 |
| 3757 | build_vendor=$2 |
| 3758 | shift; shift |
| 3759 | # Remember, the first character of IFS is used to create $*, |
| 3760 | # except with old shells: |
| 3761 | build_os=$* |
| 3762 | IFS=$ac_save_IFS |
| 3763 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3764 | |
| 3765 | |
| 3766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3767 | printf %s "checking host system type... " >&6; } |
| 3768 | if test ${ac_cv_host+y} |
| 3769 | then : |
| 3770 | printf %s "(cached) " >&6 |
| 3771 | else $as_nop |
| 3772 | if test "x$host_alias" = x; then |
| 3773 | ac_cv_host=$ac_cv_build |
| 3774 | else |
| 3775 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3776 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 3777 | fi |
| 3778 | |
| 3779 | fi |
| 3780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3781 | printf "%s\n" "$ac_cv_host" >&6; } |
| 3782 | case $ac_cv_host in |
| 3783 | *-*-*) ;; |
| 3784 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3785 | esac |
| 3786 | host=$ac_cv_host |
| 3787 | ac_save_IFS=$IFS; IFS='-' |
| 3788 | set x $ac_cv_host |
| 3789 | shift |
| 3790 | host_cpu=$1 |
| 3791 | host_vendor=$2 |
| 3792 | shift; shift |
| 3793 | # Remember, the first character of IFS is used to create $*, |
| 3794 | # except with old shells: |
| 3795 | host_os=$* |
| 3796 | IFS=$ac_save_IFS |
| 3797 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3798 | |
| 3799 | |
| 3800 | |
| 3801 | |
| 3802 | |
| 3803 | |
| 3804 | if test -z "$AB_PACKAGE"; then |
| 3805 | AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} |
| 3806 | fi |
| 3807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5 |
| 3808 | printf "%s\n" "$as_me: autobuild project... $AB_PACKAGE" >&6;} |
| 3809 | |
| 3810 | if test -z "$AB_VERSION"; then |
| 3811 | AB_VERSION=${PACKAGE_VERSION:-$VERSION} |
| 3812 | fi |
| 3813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5 |
| 3814 | printf "%s\n" "$as_me: autobuild revision... $AB_VERSION" >&6;} |
| 3815 | |
| 3816 | hostname=`hostname` |
| 3817 | if test "$hostname"; then |
| 3818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 |
| 3819 | printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;} |
| 3820 | fi |
| 3821 | |
| 3822 | |
| 3823 | |
| 3824 | date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` |
| 3825 | if test "$?" != 0; then |
| 3826 | date=`date` |
| 3827 | fi |
| 3828 | if test "$date"; then |
| 3829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 |
| 3830 | printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;} |
| 3831 | fi |
| 3832 | |
| 3833 | |
| 3834 | # Checks for programs. |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | ac_ext=c |
| 3845 | ac_cpp='$CPP $CPPFLAGS' |
| 3846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3849 | if test -n "$ac_tool_prefix"; then |
| 3850 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3851 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3853 | printf %s "checking for $ac_word... " >&6; } |
| 3854 | if test ${ac_cv_prog_CC+y} |
| 3855 | then : |
| 3856 | printf %s "(cached) " >&6 |
| 3857 | else $as_nop |
| 3858 | if test -n "$CC"; then |
| 3859 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3860 | else |
| 3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3862 | for as_dir in $PATH |
| 3863 | do |
| 3864 | IFS=$as_save_IFS |
| 3865 | case $as_dir in #((( |
| 3866 | '') as_dir=./ ;; |
| 3867 | */) ;; |
| 3868 | *) as_dir=$as_dir/ ;; |
| 3869 | esac |
| 3870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3871 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3872 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3874 | break 2 |
| 3875 | fi |
| 3876 | done |
| 3877 | done |
| 3878 | IFS=$as_save_IFS |
| 3879 | |
| 3880 | fi |
| 3881 | fi |
| 3882 | CC=$ac_cv_prog_CC |
| 3883 | if test -n "$CC"; then |
| 3884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3885 | printf "%s\n" "$CC" >&6; } |
| 3886 | else |
| 3887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3888 | printf "%s\n" "no" >&6; } |
| 3889 | fi |
| 3890 | |
| 3891 | |
| 3892 | fi |
| 3893 | if test -z "$ac_cv_prog_CC"; then |
| 3894 | ac_ct_CC=$CC |
| 3895 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3896 | set dummy gcc; ac_word=$2 |
| 3897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3898 | printf %s "checking for $ac_word... " >&6; } |
| 3899 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3900 | then : |
| 3901 | printf %s "(cached) " >&6 |
| 3902 | else $as_nop |
| 3903 | if test -n "$ac_ct_CC"; then |
| 3904 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3905 | else |
| 3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3907 | for as_dir in $PATH |
| 3908 | do |
| 3909 | IFS=$as_save_IFS |
| 3910 | case $as_dir in #((( |
| 3911 | '') as_dir=./ ;; |
| 3912 | */) ;; |
| 3913 | *) as_dir=$as_dir/ ;; |
| 3914 | esac |
| 3915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3916 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3917 | ac_cv_prog_ac_ct_CC="gcc" |
| 3918 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3919 | break 2 |
| 3920 | fi |
| 3921 | done |
| 3922 | done |
| 3923 | IFS=$as_save_IFS |
| 3924 | |
| 3925 | fi |
| 3926 | fi |
| 3927 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3928 | if test -n "$ac_ct_CC"; then |
| 3929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3930 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3931 | else |
| 3932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3933 | printf "%s\n" "no" >&6; } |
| 3934 | fi |
| 3935 | |
| 3936 | if test "x$ac_ct_CC" = x; then |
| 3937 | CC="" |
| 3938 | else |
| 3939 | case $cross_compiling:$ac_tool_warned in |
| 3940 | yes:) |
| 3941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3942 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3943 | ac_tool_warned=yes ;; |
| 3944 | esac |
| 3945 | CC=$ac_ct_CC |
| 3946 | fi |
| 3947 | else |
| 3948 | CC="$ac_cv_prog_CC" |
| 3949 | fi |
| 3950 | |
| 3951 | if test -z "$CC"; then |
| 3952 | if test -n "$ac_tool_prefix"; then |
| 3953 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3954 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3956 | printf %s "checking for $ac_word... " >&6; } |
| 3957 | if test ${ac_cv_prog_CC+y} |
| 3958 | then : |
| 3959 | printf %s "(cached) " >&6 |
| 3960 | else $as_nop |
| 3961 | if test -n "$CC"; then |
| 3962 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3963 | else |
| 3964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3965 | for as_dir in $PATH |
| 3966 | do |
| 3967 | IFS=$as_save_IFS |
| 3968 | case $as_dir in #((( |
| 3969 | '') as_dir=./ ;; |
| 3970 | */) ;; |
| 3971 | *) as_dir=$as_dir/ ;; |
| 3972 | esac |
| 3973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3974 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3975 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3976 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3977 | break 2 |
| 3978 | fi |
| 3979 | done |
| 3980 | done |
| 3981 | IFS=$as_save_IFS |
| 3982 | |
| 3983 | fi |
| 3984 | fi |
| 3985 | CC=$ac_cv_prog_CC |
| 3986 | if test -n "$CC"; then |
| 3987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3988 | printf "%s\n" "$CC" >&6; } |
| 3989 | else |
| 3990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3991 | printf "%s\n" "no" >&6; } |
| 3992 | fi |
| 3993 | |
| 3994 | |
| 3995 | fi |
| 3996 | fi |
| 3997 | if test -z "$CC"; then |
| 3998 | # Extract the first word of "cc", so it can be a program name with args. |
| 3999 | set dummy cc; ac_word=$2 |
| 4000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4001 | printf %s "checking for $ac_word... " >&6; } |
| 4002 | if test ${ac_cv_prog_CC+y} |
| 4003 | then : |
| 4004 | printf %s "(cached) " >&6 |
| 4005 | else $as_nop |
| 4006 | if test -n "$CC"; then |
| 4007 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4008 | else |
| 4009 | ac_prog_rejected=no |
| 4010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4011 | for as_dir in $PATH |
| 4012 | do |
| 4013 | IFS=$as_save_IFS |
| 4014 | case $as_dir in #((( |
| 4015 | '') as_dir=./ ;; |
| 4016 | */) ;; |
| 4017 | *) as_dir=$as_dir/ ;; |
| 4018 | esac |
| 4019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4020 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4021 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4022 | ac_prog_rejected=yes |
| 4023 | continue |
| 4024 | fi |
| 4025 | ac_cv_prog_CC="cc" |
| 4026 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4027 | break 2 |
| 4028 | fi |
| 4029 | done |
| 4030 | done |
| 4031 | IFS=$as_save_IFS |
| 4032 | |
| 4033 | if test $ac_prog_rejected = yes; then |
| 4034 | # We found a bogon in the path, so make sure we never use it. |
| 4035 | set dummy $ac_cv_prog_CC |
| 4036 | shift |
| 4037 | if test $# != 0; then |
| 4038 | # We chose a different compiler from the bogus one. |
| 4039 | # However, it has the same basename, so the bogon will be chosen |
| 4040 | # first if we set CC to just the basename; use the full file name. |
| 4041 | shift |
| 4042 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4043 | fi |
| 4044 | fi |
| 4045 | fi |
| 4046 | fi |
| 4047 | CC=$ac_cv_prog_CC |
| 4048 | if test -n "$CC"; then |
| 4049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4050 | printf "%s\n" "$CC" >&6; } |
| 4051 | else |
| 4052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4053 | printf "%s\n" "no" >&6; } |
| 4054 | fi |
| 4055 | |
| 4056 | |
| 4057 | fi |
| 4058 | if test -z "$CC"; then |
| 4059 | if test -n "$ac_tool_prefix"; then |
| 4060 | for ac_prog in cl.exe |
| 4061 | do |
| 4062 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4063 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4065 | printf %s "checking for $ac_word... " >&6; } |
| 4066 | if test ${ac_cv_prog_CC+y} |
| 4067 | then : |
| 4068 | printf %s "(cached) " >&6 |
| 4069 | else $as_nop |
| 4070 | if test -n "$CC"; then |
| 4071 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4072 | else |
| 4073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4074 | for as_dir in $PATH |
| 4075 | do |
| 4076 | IFS=$as_save_IFS |
| 4077 | case $as_dir in #((( |
| 4078 | '') as_dir=./ ;; |
| 4079 | */) ;; |
| 4080 | *) as_dir=$as_dir/ ;; |
| 4081 | esac |
| 4082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4083 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4084 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4085 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4086 | break 2 |
| 4087 | fi |
| 4088 | done |
| 4089 | done |
| 4090 | IFS=$as_save_IFS |
| 4091 | |
| 4092 | fi |
| 4093 | fi |
| 4094 | CC=$ac_cv_prog_CC |
| 4095 | if test -n "$CC"; then |
| 4096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4097 | printf "%s\n" "$CC" >&6; } |
| 4098 | else |
| 4099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4100 | printf "%s\n" "no" >&6; } |
| 4101 | fi |
| 4102 | |
| 4103 | |
| 4104 | test -n "$CC" && break |
| 4105 | done |
| 4106 | fi |
| 4107 | if test -z "$CC"; then |
| 4108 | ac_ct_CC=$CC |
| 4109 | for ac_prog in cl.exe |
| 4110 | do |
| 4111 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4112 | set dummy $ac_prog; ac_word=$2 |
| 4113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4114 | printf %s "checking for $ac_word... " >&6; } |
| 4115 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4116 | then : |
| 4117 | printf %s "(cached) " >&6 |
| 4118 | else $as_nop |
| 4119 | if test -n "$ac_ct_CC"; then |
| 4120 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4121 | else |
| 4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4123 | for as_dir in $PATH |
| 4124 | do |
| 4125 | IFS=$as_save_IFS |
| 4126 | case $as_dir in #((( |
| 4127 | '') as_dir=./ ;; |
| 4128 | */) ;; |
| 4129 | *) as_dir=$as_dir/ ;; |
| 4130 | esac |
| 4131 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4132 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4133 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4134 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4135 | break 2 |
| 4136 | fi |
| 4137 | done |
| 4138 | done |
| 4139 | IFS=$as_save_IFS |
| 4140 | |
| 4141 | fi |
| 4142 | fi |
| 4143 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4144 | if test -n "$ac_ct_CC"; then |
| 4145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4146 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4147 | else |
| 4148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4149 | printf "%s\n" "no" >&6; } |
| 4150 | fi |
| 4151 | |
| 4152 | |
| 4153 | test -n "$ac_ct_CC" && break |
| 4154 | done |
| 4155 | |
| 4156 | if test "x$ac_ct_CC" = x; then |
| 4157 | CC="" |
| 4158 | else |
| 4159 | case $cross_compiling:$ac_tool_warned in |
| 4160 | yes:) |
| 4161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4162 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4163 | ac_tool_warned=yes ;; |
| 4164 | esac |
| 4165 | CC=$ac_ct_CC |
| 4166 | fi |
| 4167 | fi |
| 4168 | |
| 4169 | fi |
| 4170 | if test -z "$CC"; then |
| 4171 | if test -n "$ac_tool_prefix"; then |
| 4172 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4173 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4175 | printf %s "checking for $ac_word... " >&6; } |
| 4176 | if test ${ac_cv_prog_CC+y} |
| 4177 | then : |
| 4178 | printf %s "(cached) " >&6 |
| 4179 | else $as_nop |
| 4180 | if test -n "$CC"; then |
| 4181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4182 | else |
| 4183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4184 | for as_dir in $PATH |
| 4185 | do |
| 4186 | IFS=$as_save_IFS |
| 4187 | case $as_dir in #((( |
| 4188 | '') as_dir=./ ;; |
| 4189 | */) ;; |
| 4190 | *) as_dir=$as_dir/ ;; |
| 4191 | esac |
| 4192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4193 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4194 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4195 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4196 | break 2 |
| 4197 | fi |
| 4198 | done |
| 4199 | done |
| 4200 | IFS=$as_save_IFS |
| 4201 | |
| 4202 | fi |
| 4203 | fi |
| 4204 | CC=$ac_cv_prog_CC |
| 4205 | if test -n "$CC"; then |
| 4206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4207 | printf "%s\n" "$CC" >&6; } |
| 4208 | else |
| 4209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4210 | printf "%s\n" "no" >&6; } |
| 4211 | fi |
| 4212 | |
| 4213 | |
| 4214 | fi |
| 4215 | if test -z "$ac_cv_prog_CC"; then |
| 4216 | ac_ct_CC=$CC |
| 4217 | # Extract the first word of "clang", so it can be a program name with args. |
| 4218 | set dummy clang; ac_word=$2 |
| 4219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4220 | printf %s "checking for $ac_word... " >&6; } |
| 4221 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 4222 | then : |
| 4223 | printf %s "(cached) " >&6 |
| 4224 | else $as_nop |
| 4225 | if test -n "$ac_ct_CC"; then |
| 4226 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4227 | else |
| 4228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4229 | for as_dir in $PATH |
| 4230 | do |
| 4231 | IFS=$as_save_IFS |
| 4232 | case $as_dir in #((( |
| 4233 | '') as_dir=./ ;; |
| 4234 | */) ;; |
| 4235 | *) as_dir=$as_dir/ ;; |
| 4236 | esac |
| 4237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4238 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4239 | ac_cv_prog_ac_ct_CC="clang" |
| 4240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4241 | break 2 |
| 4242 | fi |
| 4243 | done |
| 4244 | done |
| 4245 | IFS=$as_save_IFS |
| 4246 | |
| 4247 | fi |
| 4248 | fi |
| 4249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4250 | if test -n "$ac_ct_CC"; then |
| 4251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4252 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 4253 | else |
| 4254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4255 | printf "%s\n" "no" >&6; } |
| 4256 | fi |
| 4257 | |
| 4258 | if test "x$ac_ct_CC" = x; then |
| 4259 | CC="" |
| 4260 | else |
| 4261 | case $cross_compiling:$ac_tool_warned in |
| 4262 | yes:) |
| 4263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4264 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4265 | ac_tool_warned=yes ;; |
| 4266 | esac |
| 4267 | CC=$ac_ct_CC |
| 4268 | fi |
| 4269 | else |
| 4270 | CC="$ac_cv_prog_CC" |
| 4271 | fi |
| 4272 | |
| 4273 | fi |
| 4274 | |
| 4275 | |
| 4276 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4277 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4278 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4279 | See \`config.log' for more details" "$LINENO" 5; } |
| 4280 | |
| 4281 | # Provide some information about the compiler. |
| 4282 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4283 | set X $ac_compile |
| 4284 | ac_compiler=$2 |
| 4285 | for ac_option in --version -v -V -qversion -version; do |
| 4286 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4287 | case "(($ac_try" in |
| 4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4289 | *) ac_try_echo=$ac_try;; |
| 4290 | esac |
| 4291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4292 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4293 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4294 | ac_status=$? |
| 4295 | if test -s conftest.err; then |
| 4296 | sed '10a\ |
| 4297 | ... rest of stderr output deleted ... |
| 4298 | 10q' conftest.err >conftest.er1 |
| 4299 | cat conftest.er1 >&5 |
| 4300 | fi |
| 4301 | rm -f conftest.er1 conftest.err |
| 4302 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4303 | test $ac_status = 0; } |
| 4304 | done |
| 4305 | |
| 4306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4307 | /* end confdefs.h. */ |
| 4308 | |
| 4309 | int |
| 4310 | main (void) |
| 4311 | { |
| 4312 | |
| 4313 | ; |
| 4314 | return 0; |
| 4315 | } |
| 4316 | _ACEOF |
| 4317 | ac_clean_files_save=$ac_clean_files |
| 4318 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4319 | # Try to create an executable without -o first, disregard a.out. |
| 4320 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4321 | # of exeext. |
| 4322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4323 | printf %s "checking whether the C compiler works... " >&6; } |
| 4324 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4325 | |
| 4326 | # The possible output files: |
| 4327 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4328 | |
| 4329 | ac_rmfiles= |
| 4330 | for ac_file in $ac_files |
| 4331 | do |
| 4332 | case $ac_file in |
| 4333 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4334 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4335 | esac |
| 4336 | done |
| 4337 | rm -f $ac_rmfiles |
| 4338 | |
| 4339 | if { { ac_try="$ac_link_default" |
| 4340 | case "(($ac_try" in |
| 4341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4342 | *) ac_try_echo=$ac_try;; |
| 4343 | esac |
| 4344 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4345 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4346 | (eval "$ac_link_default") 2>&5 |
| 4347 | ac_status=$? |
| 4348 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4349 | test $ac_status = 0; } |
| 4350 | then : |
| 4351 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4352 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4353 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4354 | # so that the user can short-circuit this test for compilers unknown to |
| 4355 | # Autoconf. |
| 4356 | for ac_file in $ac_files '' |
| 4357 | do |
| 4358 | test -f "$ac_file" || continue |
| 4359 | case $ac_file in |
| 4360 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4361 | ;; |
| 4362 | [ab].out ) |
| 4363 | # We found the default executable, but exeext='' is most |
| 4364 | # certainly right. |
| 4365 | break;; |
| 4366 | *.* ) |
| 4367 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4368 | then :; else |
| 4369 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4370 | fi |
| 4371 | # We set ac_cv_exeext here because the later test for it is not |
| 4372 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4373 | # argument, so we may need to know it at that point already. |
| 4374 | # Even if this section looks crufty: it has the advantage of |
| 4375 | # actually working. |
| 4376 | break;; |
| 4377 | * ) |
| 4378 | break;; |
| 4379 | esac |
| 4380 | done |
| 4381 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4382 | |
| 4383 | else $as_nop |
| 4384 | ac_file='' |
| 4385 | fi |
| 4386 | if test -z "$ac_file" |
| 4387 | then : |
| 4388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4389 | printf "%s\n" "no" >&6; } |
| 4390 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4392 | |
| 4393 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4394 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4395 | as_fn_error 77 "C compiler cannot create executables |
| 4396 | See \`config.log' for more details" "$LINENO" 5; } |
| 4397 | else $as_nop |
| 4398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4399 | printf "%s\n" "yes" >&6; } |
| 4400 | fi |
| 4401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4402 | printf %s "checking for C compiler default output file name... " >&6; } |
| 4403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4404 | printf "%s\n" "$ac_file" >&6; } |
| 4405 | ac_exeext=$ac_cv_exeext |
| 4406 | |
| 4407 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4408 | ac_clean_files=$ac_clean_files_save |
| 4409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4410 | printf %s "checking for suffix of executables... " >&6; } |
| 4411 | if { { ac_try="$ac_link" |
| 4412 | case "(($ac_try" in |
| 4413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4414 | *) ac_try_echo=$ac_try;; |
| 4415 | esac |
| 4416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4417 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4418 | (eval "$ac_link") 2>&5 |
| 4419 | ac_status=$? |
| 4420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4421 | test $ac_status = 0; } |
| 4422 | then : |
| 4423 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4424 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4425 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4426 | # `rm'. |
| 4427 | for ac_file in conftest.exe conftest conftest.*; do |
| 4428 | test -f "$ac_file" || continue |
| 4429 | case $ac_file in |
| 4430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4431 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4432 | break;; |
| 4433 | * ) break;; |
| 4434 | esac |
| 4435 | done |
| 4436 | else $as_nop |
| 4437 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4438 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4439 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4440 | See \`config.log' for more details" "$LINENO" 5; } |
| 4441 | fi |
| 4442 | rm -f conftest conftest$ac_cv_exeext |
| 4443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4444 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4445 | |
| 4446 | rm -f conftest.$ac_ext |
| 4447 | EXEEXT=$ac_cv_exeext |
| 4448 | ac_exeext=$EXEEXT |
| 4449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4450 | /* end confdefs.h. */ |
| 4451 | #include <stdio.h> |
| 4452 | int |
| 4453 | main (void) |
| 4454 | { |
| 4455 | FILE *f = fopen ("conftest.out", "w"); |
| 4456 | return ferror (f) || fclose (f) != 0; |
| 4457 | |
| 4458 | ; |
| 4459 | return 0; |
| 4460 | } |
| 4461 | _ACEOF |
| 4462 | ac_clean_files="$ac_clean_files conftest.out" |
| 4463 | # Check that the compiler produces executables we can run. If not, either |
| 4464 | # the compiler is broken, or we cross compile. |
| 4465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4466 | printf %s "checking whether we are cross compiling... " >&6; } |
| 4467 | if test "$cross_compiling" != yes; then |
| 4468 | { { ac_try="$ac_link" |
| 4469 | case "(($ac_try" in |
| 4470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4471 | *) ac_try_echo=$ac_try;; |
| 4472 | esac |
| 4473 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4474 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4475 | (eval "$ac_link") 2>&5 |
| 4476 | ac_status=$? |
| 4477 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4478 | test $ac_status = 0; } |
| 4479 | if { ac_try='./conftest$ac_cv_exeext' |
| 4480 | { { case "(($ac_try" in |
| 4481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4482 | *) ac_try_echo=$ac_try;; |
| 4483 | esac |
| 4484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4485 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4486 | (eval "$ac_try") 2>&5 |
| 4487 | ac_status=$? |
| 4488 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4489 | test $ac_status = 0; }; }; then |
| 4490 | cross_compiling=no |
| 4491 | else |
| 4492 | if test "$cross_compiling" = maybe; then |
| 4493 | cross_compiling=yes |
| 4494 | else |
| 4495 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4496 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4497 | as_fn_error 77 "cannot run C compiled programs. |
| 4498 | If you meant to cross compile, use \`--host'. |
| 4499 | See \`config.log' for more details" "$LINENO" 5; } |
| 4500 | fi |
| 4501 | fi |
| 4502 | fi |
| 4503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4504 | printf "%s\n" "$cross_compiling" >&6; } |
| 4505 | |
| 4506 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4507 | ac_clean_files=$ac_clean_files_save |
| 4508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4509 | printf %s "checking for suffix of object files... " >&6; } |
| 4510 | if test ${ac_cv_objext+y} |
| 4511 | then : |
| 4512 | printf %s "(cached) " >&6 |
| 4513 | else $as_nop |
| 4514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4515 | /* end confdefs.h. */ |
| 4516 | |
| 4517 | int |
| 4518 | main (void) |
| 4519 | { |
| 4520 | |
| 4521 | ; |
| 4522 | return 0; |
| 4523 | } |
| 4524 | _ACEOF |
| 4525 | rm -f conftest.o conftest.obj |
| 4526 | if { { ac_try="$ac_compile" |
| 4527 | case "(($ac_try" in |
| 4528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4529 | *) ac_try_echo=$ac_try;; |
| 4530 | esac |
| 4531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4532 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 4533 | (eval "$ac_compile") 2>&5 |
| 4534 | ac_status=$? |
| 4535 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4536 | test $ac_status = 0; } |
| 4537 | then : |
| 4538 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4539 | test -f "$ac_file" || continue; |
| 4540 | case $ac_file in |
| 4541 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4542 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4543 | break;; |
| 4544 | esac |
| 4545 | done |
| 4546 | else $as_nop |
| 4547 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 4548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4549 | |
| 4550 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4551 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4552 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4553 | See \`config.log' for more details" "$LINENO" 5; } |
| 4554 | fi |
| 4555 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4556 | fi |
| 4557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4558 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 4559 | OBJEXT=$ac_cv_objext |
| 4560 | ac_objext=$OBJEXT |
| 4561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4562 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4563 | if test ${ac_cv_c_compiler_gnu+y} |
| 4564 | then : |
| 4565 | printf %s "(cached) " >&6 |
| 4566 | else $as_nop |
| 4567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4568 | /* end confdefs.h. */ |
| 4569 | |
| 4570 | int |
| 4571 | main (void) |
| 4572 | { |
| 4573 | #ifndef __GNUC__ |
| 4574 | choke me |
| 4575 | #endif |
| 4576 | |
| 4577 | ; |
| 4578 | return 0; |
| 4579 | } |
| 4580 | _ACEOF |
| 4581 | if ac_fn_c_try_compile "$LINENO" |
| 4582 | then : |
| 4583 | ac_compiler_gnu=yes |
| 4584 | else $as_nop |
| 4585 | ac_compiler_gnu=no |
| 4586 | fi |
| 4587 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4588 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4589 | |
| 4590 | fi |
| 4591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4592 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4594 | |
| 4595 | if test $ac_compiler_gnu = yes; then |
| 4596 | GCC=yes |
| 4597 | else |
| 4598 | GCC= |
| 4599 | fi |
| 4600 | ac_test_CFLAGS=${CFLAGS+y} |
| 4601 | ac_save_CFLAGS=$CFLAGS |
| 4602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4603 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 4604 | if test ${ac_cv_prog_cc_g+y} |
| 4605 | then : |
| 4606 | printf %s "(cached) " >&6 |
| 4607 | else $as_nop |
| 4608 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4609 | ac_c_werror_flag=yes |
| 4610 | ac_cv_prog_cc_g=no |
| 4611 | CFLAGS="-g" |
| 4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4613 | /* end confdefs.h. */ |
| 4614 | |
| 4615 | int |
| 4616 | main (void) |
| 4617 | { |
| 4618 | |
| 4619 | ; |
| 4620 | return 0; |
| 4621 | } |
| 4622 | _ACEOF |
| 4623 | if ac_fn_c_try_compile "$LINENO" |
| 4624 | then : |
| 4625 | ac_cv_prog_cc_g=yes |
| 4626 | else $as_nop |
| 4627 | CFLAGS="" |
| 4628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4629 | /* end confdefs.h. */ |
| 4630 | |
| 4631 | int |
| 4632 | main (void) |
| 4633 | { |
| 4634 | |
| 4635 | ; |
| 4636 | return 0; |
| 4637 | } |
| 4638 | _ACEOF |
| 4639 | if ac_fn_c_try_compile "$LINENO" |
| 4640 | then : |
| 4641 | |
| 4642 | else $as_nop |
| 4643 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4644 | CFLAGS="-g" |
| 4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4646 | /* end confdefs.h. */ |
| 4647 | |
| 4648 | int |
| 4649 | main (void) |
| 4650 | { |
| 4651 | |
| 4652 | ; |
| 4653 | return 0; |
| 4654 | } |
| 4655 | _ACEOF |
| 4656 | if ac_fn_c_try_compile "$LINENO" |
| 4657 | then : |
| 4658 | ac_cv_prog_cc_g=yes |
| 4659 | fi |
| 4660 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4661 | fi |
| 4662 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4663 | fi |
| 4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4665 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4666 | fi |
| 4667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4668 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4669 | if test $ac_test_CFLAGS; then |
| 4670 | CFLAGS=$ac_save_CFLAGS |
| 4671 | elif test $ac_cv_prog_cc_g = yes; then |
| 4672 | if test "$GCC" = yes; then |
| 4673 | CFLAGS="-g -O2" |
| 4674 | else |
| 4675 | CFLAGS="-g" |
| 4676 | fi |
| 4677 | else |
| 4678 | if test "$GCC" = yes; then |
| 4679 | CFLAGS="-O2" |
| 4680 | else |
| 4681 | CFLAGS= |
| 4682 | fi |
| 4683 | fi |
| 4684 | ac_prog_cc_stdc=no |
| 4685 | if test x$ac_prog_cc_stdc = xno |
| 4686 | then : |
| 4687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4688 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4689 | if test ${ac_cv_prog_cc_c11+y} |
| 4690 | then : |
| 4691 | printf %s "(cached) " >&6 |
| 4692 | else $as_nop |
| 4693 | ac_cv_prog_cc_c11=no |
| 4694 | ac_save_CC=$CC |
| 4695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4696 | /* end confdefs.h. */ |
| 4697 | $ac_c_conftest_c11_program |
| 4698 | _ACEOF |
| 4699 | for ac_arg in '' -std=gnu11 |
| 4700 | do |
| 4701 | CC="$ac_save_CC $ac_arg" |
| 4702 | if ac_fn_c_try_compile "$LINENO" |
| 4703 | then : |
| 4704 | ac_cv_prog_cc_c11=$ac_arg |
| 4705 | fi |
| 4706 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4707 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4708 | done |
| 4709 | rm -f conftest.$ac_ext |
| 4710 | CC=$ac_save_CC |
| 4711 | fi |
| 4712 | |
| 4713 | if test "x$ac_cv_prog_cc_c11" = xno |
| 4714 | then : |
| 4715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4716 | printf "%s\n" "unsupported" >&6; } |
| 4717 | else $as_nop |
| 4718 | if test "x$ac_cv_prog_cc_c11" = x |
| 4719 | then : |
| 4720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4721 | printf "%s\n" "none needed" >&6; } |
| 4722 | else $as_nop |
| 4723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4724 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4725 | CC="$CC $ac_cv_prog_cc_c11" |
| 4726 | fi |
| 4727 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4728 | ac_prog_cc_stdc=c11 |
| 4729 | fi |
| 4730 | fi |
| 4731 | if test x$ac_prog_cc_stdc = xno |
| 4732 | then : |
| 4733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4734 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4735 | if test ${ac_cv_prog_cc_c99+y} |
| 4736 | then : |
| 4737 | printf %s "(cached) " >&6 |
| 4738 | else $as_nop |
| 4739 | ac_cv_prog_cc_c99=no |
| 4740 | ac_save_CC=$CC |
| 4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4742 | /* end confdefs.h. */ |
| 4743 | $ac_c_conftest_c99_program |
| 4744 | _ACEOF |
| 4745 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4746 | do |
| 4747 | CC="$ac_save_CC $ac_arg" |
| 4748 | if ac_fn_c_try_compile "$LINENO" |
| 4749 | then : |
| 4750 | ac_cv_prog_cc_c99=$ac_arg |
| 4751 | fi |
| 4752 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4753 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4754 | done |
| 4755 | rm -f conftest.$ac_ext |
| 4756 | CC=$ac_save_CC |
| 4757 | fi |
| 4758 | |
| 4759 | if test "x$ac_cv_prog_cc_c99" = xno |
| 4760 | then : |
| 4761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4762 | printf "%s\n" "unsupported" >&6; } |
| 4763 | else $as_nop |
| 4764 | if test "x$ac_cv_prog_cc_c99" = x |
| 4765 | then : |
| 4766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4767 | printf "%s\n" "none needed" >&6; } |
| 4768 | else $as_nop |
| 4769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4770 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4771 | CC="$CC $ac_cv_prog_cc_c99" |
| 4772 | fi |
| 4773 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4774 | ac_prog_cc_stdc=c99 |
| 4775 | fi |
| 4776 | fi |
| 4777 | if test x$ac_prog_cc_stdc = xno |
| 4778 | then : |
| 4779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4780 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4781 | if test ${ac_cv_prog_cc_c89+y} |
| 4782 | then : |
| 4783 | printf %s "(cached) " >&6 |
| 4784 | else $as_nop |
| 4785 | ac_cv_prog_cc_c89=no |
| 4786 | ac_save_CC=$CC |
| 4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4788 | /* end confdefs.h. */ |
| 4789 | $ac_c_conftest_c89_program |
| 4790 | _ACEOF |
| 4791 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4792 | do |
| 4793 | CC="$ac_save_CC $ac_arg" |
| 4794 | if ac_fn_c_try_compile "$LINENO" |
| 4795 | then : |
| 4796 | ac_cv_prog_cc_c89=$ac_arg |
| 4797 | fi |
| 4798 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4799 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4800 | done |
| 4801 | rm -f conftest.$ac_ext |
| 4802 | CC=$ac_save_CC |
| 4803 | fi |
| 4804 | |
| 4805 | if test "x$ac_cv_prog_cc_c89" = xno |
| 4806 | then : |
| 4807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4808 | printf "%s\n" "unsupported" >&6; } |
| 4809 | else $as_nop |
| 4810 | if test "x$ac_cv_prog_cc_c89" = x |
| 4811 | then : |
| 4812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4813 | printf "%s\n" "none needed" >&6; } |
| 4814 | else $as_nop |
| 4815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4816 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4817 | CC="$CC $ac_cv_prog_cc_c89" |
| 4818 | fi |
| 4819 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4820 | ac_prog_cc_stdc=c89 |
| 4821 | fi |
| 4822 | fi |
| 4823 | |
| 4824 | ac_ext=c |
| 4825 | ac_cpp='$CPP $CPPFLAGS' |
| 4826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4829 | |
| 4830 | |
| 4831 | ac_ext=c |
| 4832 | ac_cpp='$CPP $CPPFLAGS' |
| 4833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4837 | printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 4838 | if test ${am_cv_prog_cc_c_o+y} |
| 4839 | then : |
| 4840 | printf %s "(cached) " >&6 |
| 4841 | else $as_nop |
| 4842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4843 | /* end confdefs.h. */ |
| 4844 | |
| 4845 | int |
| 4846 | main (void) |
| 4847 | { |
| 4848 | |
| 4849 | ; |
| 4850 | return 0; |
| 4851 | } |
| 4852 | _ACEOF |
| 4853 | # Make sure it works both with $CC and with simple cc. |
| 4854 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4855 | # compilers refuse to overwrite an existing .o file with -o, |
| 4856 | # though they will create one. |
| 4857 | am_cv_prog_cc_c_o=yes |
| 4858 | for am_i in 1 2; do |
| 4859 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4860 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4861 | ac_status=$? |
| 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4863 | (exit $ac_status); } \ |
| 4864 | && test -f conftest2.$ac_objext; then |
| 4865 | : OK |
| 4866 | else |
| 4867 | am_cv_prog_cc_c_o=no |
| 4868 | break |
| 4869 | fi |
| 4870 | done |
| 4871 | rm -f core conftest* |
| 4872 | unset am_i |
| 4873 | fi |
| 4874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4875 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 4876 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4877 | # Losing compiler, so override with the script. |
| 4878 | # FIXME: It is wrong to rewrite CC. |
| 4879 | # But if we don't then we get into trouble of one sort or another. |
| 4880 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4881 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4882 | CC="$am_aux_dir/compile $CC" |
| 4883 | fi |
| 4884 | ac_ext=c |
| 4885 | ac_cpp='$CPP $CPPFLAGS' |
| 4886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4889 | |
| 4890 | DEPDIR="${am__leading_dot}deps" |
| 4891 | |
| 4892 | ac_config_commands="$ac_config_commands depfiles" |
| 4893 | |
| 4894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 4895 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 4896 | cat > confinc.mk << 'END' |
| 4897 | am__doit: |
| 4898 | @echo this is the am__doit target >confinc.out |
| 4899 | .PHONY: am__doit |
| 4900 | END |
| 4901 | am__include="#" |
| 4902 | am__quote= |
| 4903 | # BSD make does it like this. |
| 4904 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 4905 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 4906 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 4907 | _am_result=no |
| 4908 | for s in GNU BSD; do |
| 4909 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 4910 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 4911 | ac_status=$? |
| 4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4913 | (exit $ac_status); } |
| 4914 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 4915 | '0:this is the am__doit target') : |
| 4916 | case $s in #( |
| 4917 | BSD) : |
| 4918 | am__include='.include' am__quote='"' ;; #( |
| 4919 | *) : |
| 4920 | am__include='include' am__quote='' ;; |
| 4921 | esac ;; #( |
| 4922 | *) : |
| 4923 | ;; |
| 4924 | esac |
| 4925 | if test "$am__include" != "#"; then |
| 4926 | _am_result="yes ($s style)" |
| 4927 | break |
| 4928 | fi |
| 4929 | done |
| 4930 | rm -f confinc.* confmf.* |
| 4931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 4932 | printf "%s\n" "${_am_result}" >&6; } |
| 4933 | |
| 4934 | # Check whether --enable-dependency-tracking was given. |
| 4935 | if test ${enable_dependency_tracking+y} |
| 4936 | then : |
| 4937 | enableval=$enable_dependency_tracking; |
| 4938 | fi |
| 4939 | |
| 4940 | if test "x$enable_dependency_tracking" != xno; then |
| 4941 | am_depcomp="$ac_aux_dir/depcomp" |
| 4942 | AMDEPBACKSLASH='\' |
| 4943 | am__nodep='_no' |
| 4944 | fi |
| 4945 | if test "x$enable_dependency_tracking" != xno; then |
| 4946 | AMDEP_TRUE= |
| 4947 | AMDEP_FALSE='#' |
| 4948 | else |
| 4949 | AMDEP_TRUE='#' |
| 4950 | AMDEP_FALSE= |
| 4951 | fi |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | depcc="$CC" am_compiler_list= |
| 4956 | |
| 4957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4958 | printf %s "checking dependency style of $depcc... " >&6; } |
| 4959 | if test ${am_cv_CC_dependencies_compiler_type+y} |
| 4960 | then : |
| 4961 | printf %s "(cached) " >&6 |
| 4962 | else $as_nop |
| 4963 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4964 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4965 | # making bogus files that we don't know about and never remove. For |
| 4966 | # instance it was reported that on HP-UX the gcc test will end up |
| 4967 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4968 | # in D". |
| 4969 | rm -rf conftest.dir |
| 4970 | mkdir conftest.dir |
| 4971 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4972 | # using a relative directory. |
| 4973 | cp "$am_depcomp" conftest.dir |
| 4974 | cd conftest.dir |
| 4975 | # We will build objects and dependencies in a subdirectory because |
| 4976 | # it helps to detect inapplicable dependency modes. For instance |
| 4977 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4978 | # side effect of compilation, but ICC will put the dependencies in |
| 4979 | # the current directory while Tru64 will put them in the object |
| 4980 | # directory. |
| 4981 | mkdir sub |
| 4982 | |
| 4983 | am_cv_CC_dependencies_compiler_type=none |
| 4984 | if test "$am_compiler_list" = ""; then |
| 4985 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4986 | fi |
| 4987 | am__universal=false |
| 4988 | case " $depcc " in #( |
| 4989 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4990 | esac |
| 4991 | |
| 4992 | for depmode in $am_compiler_list; do |
| 4993 | # Setup a source with many dependencies, because some compilers |
| 4994 | # like to wrap large dependency lists on column 80 (with \), and |
| 4995 | # we should not choose a depcomp mode which is confused by this. |
| 4996 | # |
| 4997 | # We need to recreate these files for each test, as the compiler may |
| 4998 | # overwrite some of them when testing with obscure command lines. |
| 4999 | # This happens at least with the AIX C compiler. |
| 5000 | : > sub/conftest.c |
| 5001 | for i in 1 2 3 4 5 6; do |
| 5002 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5003 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5004 | # Solaris 10 /bin/sh. |
| 5005 | echo '/* dummy */' > sub/conftst$i.h |
| 5006 | done |
| 5007 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5008 | |
| 5009 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5010 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5011 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5012 | # versions had trouble with output in subdirs. |
| 5013 | am__obj=sub/conftest.${OBJEXT-o} |
| 5014 | am__minus_obj="-o $am__obj" |
| 5015 | case $depmode in |
| 5016 | gcc) |
| 5017 | # This depmode causes a compiler race in universal mode. |
| 5018 | test "$am__universal" = false || continue |
| 5019 | ;; |
| 5020 | nosideeffect) |
| 5021 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5022 | # only be used when explicitly requested. |
| 5023 | if test "x$enable_dependency_tracking" = xyes; then |
| 5024 | continue |
| 5025 | else |
| 5026 | break |
| 5027 | fi |
| 5028 | ;; |
| 5029 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5030 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 5031 | # not run yet. These depmodes are late enough in the game, and |
| 5032 | # so weak that their functioning should not be impacted. |
| 5033 | am__obj=conftest.${OBJEXT-o} |
| 5034 | am__minus_obj= |
| 5035 | ;; |
| 5036 | none) break ;; |
| 5037 | esac |
| 5038 | if depmode=$depmode \ |
| 5039 | source=sub/conftest.c object=$am__obj \ |
| 5040 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5041 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5042 | >/dev/null 2>conftest.err && |
| 5043 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5044 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5045 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5046 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5047 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5048 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5049 | # that says an option was ignored or not supported. |
| 5050 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5051 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5052 | # The diagnosis changed in icc 8.0: |
| 5053 | # icc: Command line remark: option '-MP' not supported |
| 5054 | if (grep 'ignoring option' conftest.err || |
| 5055 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5056 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5057 | break |
| 5058 | fi |
| 5059 | fi |
| 5060 | done |
| 5061 | |
| 5062 | cd .. |
| 5063 | rm -rf conftest.dir |
| 5064 | else |
| 5065 | am_cv_CC_dependencies_compiler_type=none |
| 5066 | fi |
| 5067 | |
| 5068 | fi |
| 5069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5070 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5071 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5072 | |
| 5073 | if |
| 5074 | test "x$enable_dependency_tracking" != xno \ |
| 5075 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5076 | am__fastdepCC_TRUE= |
| 5077 | am__fastdepCC_FALSE='#' |
| 5078 | else |
| 5079 | am__fastdepCC_TRUE='#' |
| 5080 | am__fastdepCC_FALSE= |
| 5081 | fi |
| 5082 | |
| 5083 | |
| 5084 | |
| 5085 | ac_ext=c |
| 5086 | ac_cpp='$CPP $CPPFLAGS' |
| 5087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5091 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 5092 | # On Suns, sometimes $CPP names a directory. |
| 5093 | if test -n "$CPP" && test -d "$CPP"; then |
| 5094 | CPP= |
| 5095 | fi |
| 5096 | if test -z "$CPP"; then |
| 5097 | if test ${ac_cv_prog_CPP+y} |
| 5098 | then : |
| 5099 | printf %s "(cached) " >&6 |
| 5100 | else $as_nop |
| 5101 | # Double quotes because $CC needs to be expanded |
| 5102 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5103 | do |
| 5104 | ac_preproc_ok=false |
| 5105 | for ac_c_preproc_warn_flag in '' yes |
| 5106 | do |
| 5107 | # Use a header file that comes with gcc, so configuring glibc |
| 5108 | # with a fresh cross-compiler works. |
| 5109 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5110 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5112 | /* end confdefs.h. */ |
| 5113 | #include <limits.h> |
| 5114 | Syntax error |
| 5115 | _ACEOF |
| 5116 | if ac_fn_c_try_cpp "$LINENO" |
| 5117 | then : |
| 5118 | |
| 5119 | else $as_nop |
| 5120 | # Broken: fails on valid input. |
| 5121 | continue |
| 5122 | fi |
| 5123 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5124 | |
| 5125 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5126 | # can be detected and how. |
| 5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5128 | /* end confdefs.h. */ |
| 5129 | #include <ac_nonexistent.h> |
| 5130 | _ACEOF |
| 5131 | if ac_fn_c_try_cpp "$LINENO" |
| 5132 | then : |
| 5133 | # Broken: success on invalid input. |
| 5134 | continue |
| 5135 | else $as_nop |
| 5136 | # Passes both tests. |
| 5137 | ac_preproc_ok=: |
| 5138 | break |
| 5139 | fi |
| 5140 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5141 | |
| 5142 | done |
| 5143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5144 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5145 | if $ac_preproc_ok |
| 5146 | then : |
| 5147 | break |
| 5148 | fi |
| 5149 | |
| 5150 | done |
| 5151 | ac_cv_prog_CPP=$CPP |
| 5152 | |
| 5153 | fi |
| 5154 | CPP=$ac_cv_prog_CPP |
| 5155 | else |
| 5156 | ac_cv_prog_CPP=$CPP |
| 5157 | fi |
| 5158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5159 | printf "%s\n" "$CPP" >&6; } |
| 5160 | ac_preproc_ok=false |
| 5161 | for ac_c_preproc_warn_flag in '' yes |
| 5162 | do |
| 5163 | # Use a header file that comes with gcc, so configuring glibc |
| 5164 | # with a fresh cross-compiler works. |
| 5165 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5166 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5168 | /* end confdefs.h. */ |
| 5169 | #include <limits.h> |
| 5170 | Syntax error |
| 5171 | _ACEOF |
| 5172 | if ac_fn_c_try_cpp "$LINENO" |
| 5173 | then : |
| 5174 | |
| 5175 | else $as_nop |
| 5176 | # Broken: fails on valid input. |
| 5177 | continue |
| 5178 | fi |
| 5179 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5180 | |
| 5181 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5182 | # can be detected and how. |
| 5183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5184 | /* end confdefs.h. */ |
| 5185 | #include <ac_nonexistent.h> |
| 5186 | _ACEOF |
| 5187 | if ac_fn_c_try_cpp "$LINENO" |
| 5188 | then : |
| 5189 | # Broken: success on invalid input. |
| 5190 | continue |
| 5191 | else $as_nop |
| 5192 | # Passes both tests. |
| 5193 | ac_preproc_ok=: |
| 5194 | break |
| 5195 | fi |
| 5196 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5197 | |
| 5198 | done |
| 5199 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5200 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5201 | if $ac_preproc_ok |
| 5202 | then : |
| 5203 | |
| 5204 | else $as_nop |
| 5205 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5206 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5207 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5208 | See \`config.log' for more details" "$LINENO" 5; } |
| 5209 | fi |
| 5210 | |
| 5211 | ac_ext=c |
| 5212 | ac_cpp='$CPP $CPPFLAGS' |
| 5213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5216 | |
| 5217 | for ac_prog in gawk mawk nawk awk |
| 5218 | do |
| 5219 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5220 | set dummy $ac_prog; ac_word=$2 |
| 5221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5222 | printf %s "checking for $ac_word... " >&6; } |
| 5223 | if test ${ac_cv_prog_AWK+y} |
| 5224 | then : |
| 5225 | printf %s "(cached) " >&6 |
| 5226 | else $as_nop |
| 5227 | if test -n "$AWK"; then |
| 5228 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 5229 | else |
| 5230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5231 | for as_dir in $PATH |
| 5232 | do |
| 5233 | IFS=$as_save_IFS |
| 5234 | case $as_dir in #((( |
| 5235 | '') as_dir=./ ;; |
| 5236 | */) ;; |
| 5237 | *) as_dir=$as_dir/ ;; |
| 5238 | esac |
| 5239 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5240 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5241 | ac_cv_prog_AWK="$ac_prog" |
| 5242 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5243 | break 2 |
| 5244 | fi |
| 5245 | done |
| 5246 | done |
| 5247 | IFS=$as_save_IFS |
| 5248 | |
| 5249 | fi |
| 5250 | fi |
| 5251 | AWK=$ac_cv_prog_AWK |
| 5252 | if test -n "$AWK"; then |
| 5253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 5254 | printf "%s\n" "$AWK" >&6; } |
| 5255 | else |
| 5256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5257 | printf "%s\n" "no" >&6; } |
| 5258 | fi |
| 5259 | |
| 5260 | |
| 5261 | test -n "$AWK" && break |
| 5262 | done |
| 5263 | |
| 5264 | if test -n "$ac_tool_prefix"; then |
| 5265 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5266 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5267 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5268 | printf %s "checking for $ac_word... " >&6; } |
| 5269 | if test ${ac_cv_prog_AR+y} |
| 5270 | then : |
| 5271 | printf %s "(cached) " >&6 |
| 5272 | else $as_nop |
| 5273 | if test -n "$AR"; then |
| 5274 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5275 | else |
| 5276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5277 | for as_dir in $PATH |
| 5278 | do |
| 5279 | IFS=$as_save_IFS |
| 5280 | case $as_dir in #((( |
| 5281 | '') as_dir=./ ;; |
| 5282 | */) ;; |
| 5283 | *) as_dir=$as_dir/ ;; |
| 5284 | esac |
| 5285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5286 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5287 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5288 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5289 | break 2 |
| 5290 | fi |
| 5291 | done |
| 5292 | done |
| 5293 | IFS=$as_save_IFS |
| 5294 | |
| 5295 | fi |
| 5296 | fi |
| 5297 | AR=$ac_cv_prog_AR |
| 5298 | if test -n "$AR"; then |
| 5299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5300 | printf "%s\n" "$AR" >&6; } |
| 5301 | else |
| 5302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5303 | printf "%s\n" "no" >&6; } |
| 5304 | fi |
| 5305 | |
| 5306 | |
| 5307 | fi |
| 5308 | if test -z "$ac_cv_prog_AR"; then |
| 5309 | ac_ct_AR=$AR |
| 5310 | # Extract the first word of "ar", so it can be a program name with args. |
| 5311 | set dummy ar; ac_word=$2 |
| 5312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5313 | printf %s "checking for $ac_word... " >&6; } |
| 5314 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 5315 | then : |
| 5316 | printf %s "(cached) " >&6 |
| 5317 | else $as_nop |
| 5318 | if test -n "$ac_ct_AR"; then |
| 5319 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5320 | else |
| 5321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5322 | for as_dir in $PATH |
| 5323 | do |
| 5324 | IFS=$as_save_IFS |
| 5325 | case $as_dir in #((( |
| 5326 | '') as_dir=./ ;; |
| 5327 | */) ;; |
| 5328 | *) as_dir=$as_dir/ ;; |
| 5329 | esac |
| 5330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5331 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5332 | ac_cv_prog_ac_ct_AR="ar" |
| 5333 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5334 | break 2 |
| 5335 | fi |
| 5336 | done |
| 5337 | done |
| 5338 | IFS=$as_save_IFS |
| 5339 | |
| 5340 | fi |
| 5341 | fi |
| 5342 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5343 | if test -n "$ac_ct_AR"; then |
| 5344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5345 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 5346 | else |
| 5347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5348 | printf "%s\n" "no" >&6; } |
| 5349 | fi |
| 5350 | |
| 5351 | if test "x$ac_ct_AR" = x; then |
| 5352 | AR=":" |
| 5353 | else |
| 5354 | case $cross_compiling:$ac_tool_warned in |
| 5355 | yes:) |
| 5356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5357 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5358 | ac_tool_warned=yes ;; |
| 5359 | esac |
| 5360 | AR=$ac_ct_AR |
| 5361 | fi |
| 5362 | else |
| 5363 | AR="$ac_cv_prog_AR" |
| 5364 | fi |
| 5365 | |
| 5366 | |
| 5367 | ac_header= ac_cache= |
| 5368 | for ac_item in $ac_header_c_list |
| 5369 | do |
| 5370 | if test $ac_cache; then |
| 5371 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5372 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5373 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5374 | fi |
| 5375 | ac_header= ac_cache= |
| 5376 | elif test $ac_header; then |
| 5377 | ac_cache=$ac_item |
| 5378 | else |
| 5379 | ac_header=$ac_item |
| 5380 | fi |
| 5381 | done |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5391 | then : |
| 5392 | |
| 5393 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5394 | |
| 5395 | fi |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5403 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5404 | if test ${ac_cv_safe_to_define___extensions__+y} |
| 5405 | then : |
| 5406 | printf %s "(cached) " >&6 |
| 5407 | else $as_nop |
| 5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5409 | /* end confdefs.h. */ |
| 5410 | |
| 5411 | # define __EXTENSIONS__ 1 |
| 5412 | $ac_includes_default |
| 5413 | int |
| 5414 | main (void) |
| 5415 | { |
| 5416 | |
| 5417 | ; |
| 5418 | return 0; |
| 5419 | } |
| 5420 | _ACEOF |
| 5421 | if ac_fn_c_try_compile "$LINENO" |
| 5422 | then : |
| 5423 | ac_cv_safe_to_define___extensions__=yes |
| 5424 | else $as_nop |
| 5425 | ac_cv_safe_to_define___extensions__=no |
| 5426 | fi |
| 5427 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5428 | fi |
| 5429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5430 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5431 | |
| 5432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 5433 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 5434 | if test ${ac_cv_should_define__xopen_source+y} |
| 5435 | then : |
| 5436 | printf %s "(cached) " >&6 |
| 5437 | else $as_nop |
| 5438 | ac_cv_should_define__xopen_source=no |
| 5439 | if test $ac_cv_header_wchar_h = yes |
| 5440 | then : |
| 5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5442 | /* end confdefs.h. */ |
| 5443 | |
| 5444 | #include <wchar.h> |
| 5445 | mbstate_t x; |
| 5446 | int |
| 5447 | main (void) |
| 5448 | { |
| 5449 | |
| 5450 | ; |
| 5451 | return 0; |
| 5452 | } |
| 5453 | _ACEOF |
| 5454 | if ac_fn_c_try_compile "$LINENO" |
| 5455 | then : |
| 5456 | |
| 5457 | else $as_nop |
| 5458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5459 | /* end confdefs.h. */ |
| 5460 | |
| 5461 | #define _XOPEN_SOURCE 500 |
| 5462 | #include <wchar.h> |
| 5463 | mbstate_t x; |
| 5464 | int |
| 5465 | main (void) |
| 5466 | { |
| 5467 | |
| 5468 | ; |
| 5469 | return 0; |
| 5470 | } |
| 5471 | _ACEOF |
| 5472 | if ac_fn_c_try_compile "$LINENO" |
| 5473 | then : |
| 5474 | ac_cv_should_define__xopen_source=yes |
| 5475 | fi |
| 5476 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5477 | fi |
| 5478 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5479 | fi |
| 5480 | fi |
| 5481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 5482 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 5483 | |
| 5484 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 5485 | |
| 5486 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5487 | |
| 5488 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 5489 | |
| 5490 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 5491 | |
| 5492 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 5493 | |
| 5494 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 5495 | |
| 5496 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5497 | |
| 5498 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 5499 | |
| 5500 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 5501 | |
| 5502 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 5503 | |
| 5504 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 5505 | |
| 5506 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 5507 | |
| 5508 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 5509 | |
| 5510 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 5511 | |
| 5512 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5513 | |
| 5514 | if test $ac_cv_header_minix_config_h = yes |
| 5515 | then : |
| 5516 | MINIX=yes |
| 5517 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 5518 | |
| 5519 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5520 | |
| 5521 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5522 | |
| 5523 | else $as_nop |
| 5524 | MINIX= |
| 5525 | fi |
| 5526 | if test $ac_cv_safe_to_define___extensions__ = yes |
| 5527 | then : |
| 5528 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5529 | |
| 5530 | fi |
| 5531 | if test $ac_cv_should_define__xopen_source = yes |
| 5532 | then : |
| 5533 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5534 | |
| 5535 | fi |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 5540 | printf %s "checking for nl_langinfo and CODESET... " >&6; } |
| 5541 | if test ${am_cv_langinfo_codeset+y} |
| 5542 | then : |
| 5543 | printf %s "(cached) " >&6 |
| 5544 | else $as_nop |
| 5545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5546 | /* end confdefs.h. */ |
| 5547 | #include <langinfo.h> |
| 5548 | int |
| 5549 | main (void) |
| 5550 | { |
| 5551 | char* cs = nl_langinfo(CODESET); return !cs; |
| 5552 | ; |
| 5553 | return 0; |
| 5554 | } |
| 5555 | _ACEOF |
| 5556 | if ac_fn_c_try_link "$LINENO" |
| 5557 | then : |
| 5558 | am_cv_langinfo_codeset=yes |
| 5559 | else $as_nop |
| 5560 | am_cv_langinfo_codeset=no |
| 5561 | fi |
| 5562 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5563 | conftest$ac_exeext conftest.$ac_ext |
| 5564 | |
| 5565 | fi |
| 5566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 5567 | printf "%s\n" "$am_cv_langinfo_codeset" >&6; } |
| 5568 | if test $am_cv_langinfo_codeset = yes; then |
| 5569 | |
| 5570 | printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 5571 | |
| 5572 | fi |
| 5573 | |
| 5574 | |
| 5575 | # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE |
| 5576 | case $host in |
| 5577 | *-*-linux*) |
| 5578 | if test -n "$LD_LIBRARY_PATH"; then |
| 5579 | saved_LDFLAGS="$LDFLAGS" |
| 5580 | LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags" |
| 5581 | LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE" |
| 5582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5 |
| 5583 | printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; } |
| 5584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5585 | /* end confdefs.h. */ |
| 5586 | |
| 5587 | int main (void) { return 0; } |
| 5588 | |
| 5589 | _ACEOF |
| 5590 | if ac_fn_c_try_link "$LINENO" |
| 5591 | then : |
| 5592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5 |
| 5593 | printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; } |
| 5594 | else $as_nop |
| 5595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5596 | printf "%s\n" "no" >&6; } |
| 5597 | LDADD_FOR_TESTS_KLUDGE="" |
| 5598 | |
| 5599 | fi |
| 5600 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5601 | conftest$ac_exeext conftest.$ac_ext |
| 5602 | LDFLAGS="$saved_LDFLAGS" |
| 5603 | fi |
| 5604 | ;; |
| 5605 | esac |
| 5606 | |
| 5607 | |
| 5608 | # Set some variables depending on the platform for later use. |
| 5609 | have_w32_system=no |
| 5610 | have_w64_system=no |
| 5611 | case "${host}" in |
| 5612 | x86_64-*mingw32*) |
| 5613 | have_w32_system=yes |
| 5614 | have_w64_system=yes |
| 5615 | ;; |
| 5616 | *-mingw32*) |
| 5617 | have_w32_system=yes |
| 5618 | ;; |
| 5619 | *-apple-darwin*) |
| 5620 | # This is the equivalent of the _GNU_SOURCE feature-test-macro |
| 5621 | # on GNU libc systems. |
| 5622 | |
| 5623 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5624 | |
| 5625 | ;; |
| 5626 | *) |
| 5627 | ;; |
| 5628 | esac |
| 5629 | |
| 5630 | if test "$have_w32_system" != yes; then |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | THREADLIB_CPPFLAGS="" |
| 5636 | |
| 5637 | |
| 5638 | # Check whether --enable-threads was given. |
| 5639 | if test ${enable_threads+y} |
| 5640 | then : |
| 5641 | enableval=$enable_threads; gl_use_threads=$enableval |
| 5642 | else $as_nop |
| 5643 | if test -n "$gl_use_threads_default"; then |
| 5644 | gl_use_threads="$gl_use_threads_default" |
| 5645 | else |
| 5646 | case "$host_os" in |
| 5647 | osf*) gl_use_threads=no ;; |
| 5648 | cygwin*) |
| 5649 | case `uname -r` in |
| 5650 | 1.[0-5].*) gl_use_threads=no ;; |
| 5651 | *) gl_use_threads=yes ;; |
| 5652 | esac |
| 5653 | ;; |
| 5654 | mingw*) |
| 5655 | case "$gl_use_winpthreads_default" in |
| 5656 | yes) gl_use_threads=posix ;; |
| 5657 | no) gl_use_threads=windows ;; |
| 5658 | *) gl_use_threads=yes ;; |
| 5659 | esac |
| 5660 | ;; |
| 5661 | *) gl_use_threads=yes ;; |
| 5662 | esac |
| 5663 | fi |
| 5664 | |
| 5665 | fi |
| 5666 | |
| 5667 | if test "$gl_use_threads" = yes \ |
| 5668 | || test "$gl_use_threads" = isoc \ |
| 5669 | || test "$gl_use_threads" = posix \ |
| 5670 | || test "$gl_use_threads" = isoc+posix; then |
| 5671 | # For using <threads.h> or <pthread.h>: |
| 5672 | |
| 5673 | |
| 5674 | if test -z "$gl_anythreadlib_early_done"; then |
| 5675 | case "$host_os" in |
| 5676 | osf*) |
| 5677 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 5678 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 5679 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 5680 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 5681 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 5682 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 5683 | THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT" |
| 5684 | ;; |
| 5685 | esac |
| 5686 | # Some systems optimize for single-threaded programs by default, and |
| 5687 | # need special flags to disable these optimizations. For example, the |
| 5688 | # definition of 'errno' in <errno.h>. |
| 5689 | case "$host_os" in |
| 5690 | aix* | freebsd*) THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_THREAD_SAFE" ;; |
| 5691 | solaris*) THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT" ;; |
| 5692 | esac |
| 5693 | gl_anythreadlib_early_done=done |
| 5694 | fi |
| 5695 | if test x"$THREADLIB_CPPFLAGS" != x ; then |
| 5696 | CPPFLAGS="$CPPFLAGS $THREADLIB_CPPFLAGS" |
| 5697 | fi |
| 5698 | |
| 5699 | fi |
| 5700 | |
| 5701 | |
| 5702 | |
| 5703 | |
| 5704 | fi |
| 5705 | |
| 5706 | # We build libgpg-error with large file support so that we have a 64 |
| 5707 | # bit off_t. Our external interface uses the gpgrt_off_t which is |
| 5708 | # anyway specified as 64 bit. Thus the same libgpg-error can be used |
| 5709 | # by software which is not build with large file support. |
| 5710 | # Check whether --enable-largefile was given. |
| 5711 | if test ${enable_largefile+y} |
| 5712 | then : |
| 5713 | enableval=$enable_largefile; |
| 5714 | fi |
| 5715 | |
| 5716 | if test "$enable_largefile" != no; then |
| 5717 | |
| 5718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5719 | printf %s "checking for special C compiler options needed for large files... " >&6; } |
| 5720 | if test ${ac_cv_sys_largefile_CC+y} |
| 5721 | then : |
| 5722 | printf %s "(cached) " >&6 |
| 5723 | else $as_nop |
| 5724 | ac_cv_sys_largefile_CC=no |
| 5725 | if test "$GCC" != yes; then |
| 5726 | ac_save_CC=$CC |
| 5727 | while :; do |
| 5728 | # IRIX 6.2 and later do not support large files by default, |
| 5729 | # so use the C compiler's -n32 option if that helps. |
| 5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5731 | /* end confdefs.h. */ |
| 5732 | #include <sys/types.h> |
| 5733 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5734 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5735 | since some C++ compilers masquerading as C compilers |
| 5736 | incorrectly reject 9223372036854775807. */ |
| 5737 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 5738 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5739 | && LARGE_OFF_T % 2147483647 == 1) |
| 5740 | ? 1 : -1]; |
| 5741 | int |
| 5742 | main (void) |
| 5743 | { |
| 5744 | |
| 5745 | ; |
| 5746 | return 0; |
| 5747 | } |
| 5748 | _ACEOF |
| 5749 | if ac_fn_c_try_compile "$LINENO" |
| 5750 | then : |
| 5751 | break |
| 5752 | fi |
| 5753 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5754 | CC="$CC -n32" |
| 5755 | if ac_fn_c_try_compile "$LINENO" |
| 5756 | then : |
| 5757 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5758 | fi |
| 5759 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5760 | break |
| 5761 | done |
| 5762 | CC=$ac_save_CC |
| 5763 | rm -f conftest.$ac_ext |
| 5764 | fi |
| 5765 | fi |
| 5766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5767 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } |
| 5768 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5769 | CC=$CC$ac_cv_sys_largefile_CC |
| 5770 | fi |
| 5771 | |
| 5772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5773 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5774 | if test ${ac_cv_sys_file_offset_bits+y} |
| 5775 | then : |
| 5776 | printf %s "(cached) " >&6 |
| 5777 | else $as_nop |
| 5778 | while :; do |
| 5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5780 | /* end confdefs.h. */ |
| 5781 | #include <sys/types.h> |
| 5782 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5783 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5784 | since some C++ compilers masquerading as C compilers |
| 5785 | incorrectly reject 9223372036854775807. */ |
| 5786 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 5787 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5788 | && LARGE_OFF_T % 2147483647 == 1) |
| 5789 | ? 1 : -1]; |
| 5790 | int |
| 5791 | main (void) |
| 5792 | { |
| 5793 | |
| 5794 | ; |
| 5795 | return 0; |
| 5796 | } |
| 5797 | _ACEOF |
| 5798 | if ac_fn_c_try_compile "$LINENO" |
| 5799 | then : |
| 5800 | ac_cv_sys_file_offset_bits=no; break |
| 5801 | fi |
| 5802 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5804 | /* end confdefs.h. */ |
| 5805 | #define _FILE_OFFSET_BITS 64 |
| 5806 | #include <sys/types.h> |
| 5807 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5808 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5809 | since some C++ compilers masquerading as C compilers |
| 5810 | incorrectly reject 9223372036854775807. */ |
| 5811 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 5812 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5813 | && LARGE_OFF_T % 2147483647 == 1) |
| 5814 | ? 1 : -1]; |
| 5815 | int |
| 5816 | main (void) |
| 5817 | { |
| 5818 | |
| 5819 | ; |
| 5820 | return 0; |
| 5821 | } |
| 5822 | _ACEOF |
| 5823 | if ac_fn_c_try_compile "$LINENO" |
| 5824 | then : |
| 5825 | ac_cv_sys_file_offset_bits=64; break |
| 5826 | fi |
| 5827 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5828 | ac_cv_sys_file_offset_bits=unknown |
| 5829 | break |
| 5830 | done |
| 5831 | fi |
| 5832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5833 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } |
| 5834 | case $ac_cv_sys_file_offset_bits in #( |
| 5835 | no | unknown) ;; |
| 5836 | *) |
| 5837 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h |
| 5838 | ;; |
| 5839 | esac |
| 5840 | rm -rf conftest* |
| 5841 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5843 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5844 | if test ${ac_cv_sys_large_files+y} |
| 5845 | then : |
| 5846 | printf %s "(cached) " >&6 |
| 5847 | else $as_nop |
| 5848 | while :; do |
| 5849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5850 | /* end confdefs.h. */ |
| 5851 | #include <sys/types.h> |
| 5852 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5853 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5854 | since some C++ compilers masquerading as C compilers |
| 5855 | incorrectly reject 9223372036854775807. */ |
| 5856 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 5857 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5858 | && LARGE_OFF_T % 2147483647 == 1) |
| 5859 | ? 1 : -1]; |
| 5860 | int |
| 5861 | main (void) |
| 5862 | { |
| 5863 | |
| 5864 | ; |
| 5865 | return 0; |
| 5866 | } |
| 5867 | _ACEOF |
| 5868 | if ac_fn_c_try_compile "$LINENO" |
| 5869 | then : |
| 5870 | ac_cv_sys_large_files=no; break |
| 5871 | fi |
| 5872 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5874 | /* end confdefs.h. */ |
| 5875 | #define _LARGE_FILES 1 |
| 5876 | #include <sys/types.h> |
| 5877 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5878 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5879 | since some C++ compilers masquerading as C compilers |
| 5880 | incorrectly reject 9223372036854775807. */ |
| 5881 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 5882 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5883 | && LARGE_OFF_T % 2147483647 == 1) |
| 5884 | ? 1 : -1]; |
| 5885 | int |
| 5886 | main (void) |
| 5887 | { |
| 5888 | |
| 5889 | ; |
| 5890 | return 0; |
| 5891 | } |
| 5892 | _ACEOF |
| 5893 | if ac_fn_c_try_compile "$LINENO" |
| 5894 | then : |
| 5895 | ac_cv_sys_large_files=1; break |
| 5896 | fi |
| 5897 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5898 | ac_cv_sys_large_files=unknown |
| 5899 | break |
| 5900 | done |
| 5901 | fi |
| 5902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5903 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } |
| 5904 | case $ac_cv_sys_large_files in #( |
| 5905 | no | unknown) ;; |
| 5906 | *) |
| 5907 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h |
| 5908 | ;; |
| 5909 | esac |
| 5910 | rm -rf conftest* |
| 5911 | fi |
| 5912 | fi |
| 5913 | |
| 5914 | |
| 5915 | |
| 5916 | |
| 5917 | case `pwd` in |
| 5918 | *\ * | *\ *) |
| 5919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 5920 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 5921 | esac |
| 5922 | |
| 5923 | |
| 5924 | |
| 5925 | macro_version='2.4.7' |
| 5926 | macro_revision='2.4.7' |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | |
| 5931 | |
| 5932 | |
| 5933 | |
| 5934 | |
| 5935 | |
| 5936 | |
| 5937 | |
| 5938 | |
| 5939 | |
| 5940 | |
| 5941 | ltmain=$ac_aux_dir/ltmain.sh |
| 5942 | |
| 5943 | # Backslashify metacharacters that are still active within |
| 5944 | # double-quoted strings. |
| 5945 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 5946 | |
| 5947 | # Same as above, but do not quote variable references. |
| 5948 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 5949 | |
| 5950 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5951 | # double_quote_subst'ed string. |
| 5952 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5953 | |
| 5954 | # Sed substitution to delay expansion of an escaped single quote. |
| 5955 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5956 | |
| 5957 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5958 | no_glob_subst='s/\*/\\\*/g' |
| 5959 | |
| 5960 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5961 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5962 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5963 | |
| 5964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 5965 | printf %s "checking how to print strings... " >&6; } |
| 5966 | # Test print first, because it will be a builtin if present. |
| 5967 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 5968 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5969 | ECHO='print -r --' |
| 5970 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5971 | ECHO='printf %s\n' |
| 5972 | else |
| 5973 | # Use this function as a fallback that always works. |
| 5974 | func_fallback_echo () |
| 5975 | { |
| 5976 | eval 'cat <<_LTECHO_EOF |
| 5977 | $1 |
| 5978 | _LTECHO_EOF' |
| 5979 | } |
| 5980 | ECHO='func_fallback_echo' |
| 5981 | fi |
| 5982 | |
| 5983 | # func_echo_all arg... |
| 5984 | # Invoke $ECHO with all args, space-separated. |
| 5985 | func_echo_all () |
| 5986 | { |
| 5987 | $ECHO "" |
| 5988 | } |
| 5989 | |
| 5990 | case $ECHO in |
| 5991 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 5992 | printf "%s\n" "printf" >&6; } ;; |
| 5993 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 5994 | printf "%s\n" "print -r" >&6; } ;; |
| 5995 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 5996 | printf "%s\n" "cat" >&6; } ;; |
| 5997 | esac |
| 5998 | |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | |
| 6003 | |
| 6004 | |
| 6005 | |
| 6006 | |
| 6007 | |
| 6008 | |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6013 | printf %s "checking for a sed that does not truncate output... " >&6; } |
| 6014 | if test ${ac_cv_path_SED+y} |
| 6015 | then : |
| 6016 | printf %s "(cached) " >&6 |
| 6017 | else $as_nop |
| 6018 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6019 | for ac_i in 1 2 3 4 5 6 7; do |
| 6020 | ac_script="$ac_script$as_nl$ac_script" |
| 6021 | done |
| 6022 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6023 | { ac_script=; unset ac_script;} |
| 6024 | if test -z "$SED"; then |
| 6025 | ac_path_SED_found=false |
| 6026 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6028 | for as_dir in $PATH |
| 6029 | do |
| 6030 | IFS=$as_save_IFS |
| 6031 | case $as_dir in #((( |
| 6032 | '') as_dir=./ ;; |
| 6033 | */) ;; |
| 6034 | *) as_dir=$as_dir/ ;; |
| 6035 | esac |
| 6036 | for ac_prog in sed gsed |
| 6037 | do |
| 6038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6039 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 6040 | as_fn_executable_p "$ac_path_SED" || continue |
| 6041 | # Check for GNU ac_path_SED and select it if it is found. |
| 6042 | # Check for GNU $ac_path_SED |
| 6043 | case `"$ac_path_SED" --version 2>&1` in |
| 6044 | *GNU*) |
| 6045 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6046 | *) |
| 6047 | ac_count=0 |
| 6048 | printf %s 0123456789 >"conftest.in" |
| 6049 | while : |
| 6050 | do |
| 6051 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6052 | mv "conftest.tmp" "conftest.in" |
| 6053 | cp "conftest.in" "conftest.nl" |
| 6054 | printf "%s\n" '' >> "conftest.nl" |
| 6055 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6056 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6057 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6058 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6059 | # Best one so far, save it but keep looking for a better one |
| 6060 | ac_cv_path_SED="$ac_path_SED" |
| 6061 | ac_path_SED_max=$ac_count |
| 6062 | fi |
| 6063 | # 10*(2^10) chars as input seems more than enough |
| 6064 | test $ac_count -gt 10 && break |
| 6065 | done |
| 6066 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6067 | esac |
| 6068 | |
| 6069 | $ac_path_SED_found && break 3 |
| 6070 | done |
| 6071 | done |
| 6072 | done |
| 6073 | IFS=$as_save_IFS |
| 6074 | if test -z "$ac_cv_path_SED"; then |
| 6075 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6076 | fi |
| 6077 | else |
| 6078 | ac_cv_path_SED=$SED |
| 6079 | fi |
| 6080 | |
| 6081 | fi |
| 6082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6083 | printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 6084 | SED="$ac_cv_path_SED" |
| 6085 | rm -f conftest.sed |
| 6086 | |
| 6087 | test -z "$SED" && SED=sed |
| 6088 | Xsed="$SED -e 1s/^X//" |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
| 6094 | |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6101 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 6102 | if test ${ac_cv_path_GREP+y} |
| 6103 | then : |
| 6104 | printf %s "(cached) " >&6 |
| 6105 | else $as_nop |
| 6106 | if test -z "$GREP"; then |
| 6107 | ac_path_GREP_found=false |
| 6108 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6110 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6111 | do |
| 6112 | IFS=$as_save_IFS |
| 6113 | case $as_dir in #((( |
| 6114 | '') as_dir=./ ;; |
| 6115 | */) ;; |
| 6116 | *) as_dir=$as_dir/ ;; |
| 6117 | esac |
| 6118 | for ac_prog in grep ggrep |
| 6119 | do |
| 6120 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6121 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 6122 | as_fn_executable_p "$ac_path_GREP" || continue |
| 6123 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6124 | # Check for GNU $ac_path_GREP |
| 6125 | case `"$ac_path_GREP" --version 2>&1` in |
| 6126 | *GNU*) |
| 6127 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6128 | *) |
| 6129 | ac_count=0 |
| 6130 | printf %s 0123456789 >"conftest.in" |
| 6131 | while : |
| 6132 | do |
| 6133 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6134 | mv "conftest.tmp" "conftest.in" |
| 6135 | cp "conftest.in" "conftest.nl" |
| 6136 | printf "%s\n" 'GREP' >> "conftest.nl" |
| 6137 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6138 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6139 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6140 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6141 | # Best one so far, save it but keep looking for a better one |
| 6142 | ac_cv_path_GREP="$ac_path_GREP" |
| 6143 | ac_path_GREP_max=$ac_count |
| 6144 | fi |
| 6145 | # 10*(2^10) chars as input seems more than enough |
| 6146 | test $ac_count -gt 10 && break |
| 6147 | done |
| 6148 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6149 | esac |
| 6150 | |
| 6151 | $ac_path_GREP_found && break 3 |
| 6152 | done |
| 6153 | done |
| 6154 | done |
| 6155 | IFS=$as_save_IFS |
| 6156 | if test -z "$ac_cv_path_GREP"; then |
| 6157 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6158 | fi |
| 6159 | else |
| 6160 | ac_cv_path_GREP=$GREP |
| 6161 | fi |
| 6162 | |
| 6163 | fi |
| 6164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6165 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 6166 | GREP="$ac_cv_path_GREP" |
| 6167 | |
| 6168 | |
| 6169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6170 | printf %s "checking for egrep... " >&6; } |
| 6171 | if test ${ac_cv_path_EGREP+y} |
| 6172 | then : |
| 6173 | printf %s "(cached) " >&6 |
| 6174 | else $as_nop |
| 6175 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6176 | then ac_cv_path_EGREP="$GREP -E" |
| 6177 | else |
| 6178 | if test -z "$EGREP"; then |
| 6179 | ac_path_EGREP_found=false |
| 6180 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6182 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6183 | do |
| 6184 | IFS=$as_save_IFS |
| 6185 | case $as_dir in #((( |
| 6186 | '') as_dir=./ ;; |
| 6187 | */) ;; |
| 6188 | *) as_dir=$as_dir/ ;; |
| 6189 | esac |
| 6190 | for ac_prog in egrep |
| 6191 | do |
| 6192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6193 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6194 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 6195 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6196 | # Check for GNU $ac_path_EGREP |
| 6197 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6198 | *GNU*) |
| 6199 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6200 | *) |
| 6201 | ac_count=0 |
| 6202 | printf %s 0123456789 >"conftest.in" |
| 6203 | while : |
| 6204 | do |
| 6205 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6206 | mv "conftest.tmp" "conftest.in" |
| 6207 | cp "conftest.in" "conftest.nl" |
| 6208 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| 6209 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6210 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6211 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6212 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6213 | # Best one so far, save it but keep looking for a better one |
| 6214 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6215 | ac_path_EGREP_max=$ac_count |
| 6216 | fi |
| 6217 | # 10*(2^10) chars as input seems more than enough |
| 6218 | test $ac_count -gt 10 && break |
| 6219 | done |
| 6220 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6221 | esac |
| 6222 | |
| 6223 | $ac_path_EGREP_found && break 3 |
| 6224 | done |
| 6225 | done |
| 6226 | done |
| 6227 | IFS=$as_save_IFS |
| 6228 | if test -z "$ac_cv_path_EGREP"; then |
| 6229 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6230 | fi |
| 6231 | else |
| 6232 | ac_cv_path_EGREP=$EGREP |
| 6233 | fi |
| 6234 | |
| 6235 | fi |
| 6236 | fi |
| 6237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6238 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 6239 | EGREP="$ac_cv_path_EGREP" |
| 6240 | |
| 6241 | |
| 6242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 6243 | printf %s "checking for fgrep... " >&6; } |
| 6244 | if test ${ac_cv_path_FGREP+y} |
| 6245 | then : |
| 6246 | printf %s "(cached) " >&6 |
| 6247 | else $as_nop |
| 6248 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6249 | then ac_cv_path_FGREP="$GREP -F" |
| 6250 | else |
| 6251 | if test -z "$FGREP"; then |
| 6252 | ac_path_FGREP_found=false |
| 6253 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6255 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6256 | do |
| 6257 | IFS=$as_save_IFS |
| 6258 | case $as_dir in #((( |
| 6259 | '') as_dir=./ ;; |
| 6260 | */) ;; |
| 6261 | *) as_dir=$as_dir/ ;; |
| 6262 | esac |
| 6263 | for ac_prog in fgrep |
| 6264 | do |
| 6265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6266 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 6267 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 6268 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 6269 | # Check for GNU $ac_path_FGREP |
| 6270 | case `"$ac_path_FGREP" --version 2>&1` in |
| 6271 | *GNU*) |
| 6272 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6273 | *) |
| 6274 | ac_count=0 |
| 6275 | printf %s 0123456789 >"conftest.in" |
| 6276 | while : |
| 6277 | do |
| 6278 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6279 | mv "conftest.tmp" "conftest.in" |
| 6280 | cp "conftest.in" "conftest.nl" |
| 6281 | printf "%s\n" 'FGREP' >> "conftest.nl" |
| 6282 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6283 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6284 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6285 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6286 | # Best one so far, save it but keep looking for a better one |
| 6287 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 6288 | ac_path_FGREP_max=$ac_count |
| 6289 | fi |
| 6290 | # 10*(2^10) chars as input seems more than enough |
| 6291 | test $ac_count -gt 10 && break |
| 6292 | done |
| 6293 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6294 | esac |
| 6295 | |
| 6296 | $ac_path_FGREP_found && break 3 |
| 6297 | done |
| 6298 | done |
| 6299 | done |
| 6300 | IFS=$as_save_IFS |
| 6301 | if test -z "$ac_cv_path_FGREP"; then |
| 6302 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6303 | fi |
| 6304 | else |
| 6305 | ac_cv_path_FGREP=$FGREP |
| 6306 | fi |
| 6307 | |
| 6308 | fi |
| 6309 | fi |
| 6310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 6311 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 6312 | FGREP="$ac_cv_path_FGREP" |
| 6313 | |
| 6314 | |
| 6315 | test -z "$GREP" && GREP=grep |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | |
| 6327 | |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | # Check whether --with-gnu-ld was given. |
| 6336 | if test ${with_gnu_ld+y} |
| 6337 | then : |
| 6338 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 6339 | else $as_nop |
| 6340 | with_gnu_ld=no |
| 6341 | fi |
| 6342 | |
| 6343 | ac_prog=ld |
| 6344 | if test yes = "$GCC"; then |
| 6345 | # Check if gcc -print-prog-name=ld gives a path. |
| 6346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 6347 | printf %s "checking for ld used by $CC... " >&6; } |
| 6348 | case $host in |
| 6349 | *-*-mingw*) |
| 6350 | # gcc leaves a trailing carriage return, which upsets mingw |
| 6351 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6352 | *) |
| 6353 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6354 | esac |
| 6355 | case $ac_prog in |
| 6356 | # Accept absolute paths. |
| 6357 | [\\/]* | ?:[\\/]*) |
| 6358 | re_direlt='/[^/][^/]*/\.\./' |
| 6359 | # Canonicalize the pathname of ld |
| 6360 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6361 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6362 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6363 | done |
| 6364 | test -z "$LD" && LD=$ac_prog |
| 6365 | ;; |
| 6366 | "") |
| 6367 | # If it fails, then pretend we aren't using GCC. |
| 6368 | ac_prog=ld |
| 6369 | ;; |
| 6370 | *) |
| 6371 | # If it is relative, then search for the first ld in PATH. |
| 6372 | with_gnu_ld=unknown |
| 6373 | ;; |
| 6374 | esac |
| 6375 | elif test yes = "$with_gnu_ld"; then |
| 6376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6377 | printf %s "checking for GNU ld... " >&6; } |
| 6378 | else |
| 6379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6380 | printf %s "checking for non-GNU ld... " >&6; } |
| 6381 | fi |
| 6382 | if test ${lt_cv_path_LD+y} |
| 6383 | then : |
| 6384 | printf %s "(cached) " >&6 |
| 6385 | else $as_nop |
| 6386 | if test -z "$LD"; then |
| 6387 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6388 | for ac_dir in $PATH; do |
| 6389 | IFS=$lt_save_ifs |
| 6390 | test -z "$ac_dir" && ac_dir=. |
| 6391 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6392 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 6393 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6394 | # but apparently some variants of GNU ld only accept -v. |
| 6395 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6396 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6397 | *GNU* | *'with BFD'*) |
| 6398 | test no != "$with_gnu_ld" && break |
| 6399 | ;; |
| 6400 | *) |
| 6401 | test yes != "$with_gnu_ld" && break |
| 6402 | ;; |
| 6403 | esac |
| 6404 | fi |
| 6405 | done |
| 6406 | IFS=$lt_save_ifs |
| 6407 | else |
| 6408 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 6409 | fi |
| 6410 | fi |
| 6411 | |
| 6412 | LD=$lt_cv_path_LD |
| 6413 | if test -n "$LD"; then |
| 6414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6415 | printf "%s\n" "$LD" >&6; } |
| 6416 | else |
| 6417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6418 | printf "%s\n" "no" >&6; } |
| 6419 | fi |
| 6420 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6422 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6423 | if test ${lt_cv_prog_gnu_ld+y} |
| 6424 | then : |
| 6425 | printf %s "(cached) " >&6 |
| 6426 | else $as_nop |
| 6427 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6428 | case `$LD -v 2>&1 </dev/null` in |
| 6429 | *GNU* | *'with BFD'*) |
| 6430 | lt_cv_prog_gnu_ld=yes |
| 6431 | ;; |
| 6432 | *) |
| 6433 | lt_cv_prog_gnu_ld=no |
| 6434 | ;; |
| 6435 | esac |
| 6436 | fi |
| 6437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6438 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 6439 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6440 | |
| 6441 | |
| 6442 | |
| 6443 | |
| 6444 | |
| 6445 | |
| 6446 | |
| 6447 | |
| 6448 | |
| 6449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6450 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6451 | if test ${lt_cv_path_NM+y} |
| 6452 | then : |
| 6453 | printf %s "(cached) " >&6 |
| 6454 | else $as_nop |
| 6455 | if test -n "$NM"; then |
| 6456 | # Let the user override the test. |
| 6457 | lt_cv_path_NM=$NM |
| 6458 | else |
| 6459 | lt_nm_to_check=${ac_tool_prefix}nm |
| 6460 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6461 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6462 | fi |
| 6463 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6464 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 6465 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6466 | IFS=$lt_save_ifs |
| 6467 | test -z "$ac_dir" && ac_dir=. |
| 6468 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 6469 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 6470 | # Check to see if the nm accepts a BSD-compat flag. |
| 6471 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 6472 | # nm: unknown option "B" ignored |
| 6473 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6474 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 6475 | case $build_os in |
| 6476 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 6477 | *) lt_bad_file=/dev/null ;; |
| 6478 | esac |
| 6479 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in |
| 6480 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 6481 | lt_cv_path_NM="$tmp_nm -B" |
| 6482 | break 2 |
| 6483 | ;; |
| 6484 | *) |
| 6485 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in |
| 6486 | */dev/null*) |
| 6487 | lt_cv_path_NM="$tmp_nm -p" |
| 6488 | break 2 |
| 6489 | ;; |
| 6490 | *) |
| 6491 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6492 | continue # so that we can try to find one that supports BSD flags |
| 6493 | ;; |
| 6494 | esac |
| 6495 | ;; |
| 6496 | esac |
| 6497 | fi |
| 6498 | done |
| 6499 | IFS=$lt_save_ifs |
| 6500 | done |
| 6501 | : ${lt_cv_path_NM=no} |
| 6502 | fi |
| 6503 | fi |
| 6504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6505 | printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 6506 | if test no != "$lt_cv_path_NM"; then |
| 6507 | NM=$lt_cv_path_NM |
| 6508 | else |
| 6509 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6510 | if test -n "$DUMPBIN"; then : |
| 6511 | # Let the user override the test. |
| 6512 | else |
| 6513 | if test -n "$ac_tool_prefix"; then |
| 6514 | for ac_prog in dumpbin "link -dump" |
| 6515 | do |
| 6516 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6517 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6519 | printf %s "checking for $ac_word... " >&6; } |
| 6520 | if test ${ac_cv_prog_DUMPBIN+y} |
| 6521 | then : |
| 6522 | printf %s "(cached) " >&6 |
| 6523 | else $as_nop |
| 6524 | if test -n "$DUMPBIN"; then |
| 6525 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6526 | else |
| 6527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6528 | for as_dir in $PATH |
| 6529 | do |
| 6530 | IFS=$as_save_IFS |
| 6531 | case $as_dir in #((( |
| 6532 | '') as_dir=./ ;; |
| 6533 | */) ;; |
| 6534 | *) as_dir=$as_dir/ ;; |
| 6535 | esac |
| 6536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6537 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6538 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6539 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6540 | break 2 |
| 6541 | fi |
| 6542 | done |
| 6543 | done |
| 6544 | IFS=$as_save_IFS |
| 6545 | |
| 6546 | fi |
| 6547 | fi |
| 6548 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6549 | if test -n "$DUMPBIN"; then |
| 6550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6551 | printf "%s\n" "$DUMPBIN" >&6; } |
| 6552 | else |
| 6553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6554 | printf "%s\n" "no" >&6; } |
| 6555 | fi |
| 6556 | |
| 6557 | |
| 6558 | test -n "$DUMPBIN" && break |
| 6559 | done |
| 6560 | fi |
| 6561 | if test -z "$DUMPBIN"; then |
| 6562 | ac_ct_DUMPBIN=$DUMPBIN |
| 6563 | for ac_prog in dumpbin "link -dump" |
| 6564 | do |
| 6565 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6566 | set dummy $ac_prog; ac_word=$2 |
| 6567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6568 | printf %s "checking for $ac_word... " >&6; } |
| 6569 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 6570 | then : |
| 6571 | printf %s "(cached) " >&6 |
| 6572 | else $as_nop |
| 6573 | if test -n "$ac_ct_DUMPBIN"; then |
| 6574 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6575 | else |
| 6576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6577 | for as_dir in $PATH |
| 6578 | do |
| 6579 | IFS=$as_save_IFS |
| 6580 | case $as_dir in #((( |
| 6581 | '') as_dir=./ ;; |
| 6582 | */) ;; |
| 6583 | *) as_dir=$as_dir/ ;; |
| 6584 | esac |
| 6585 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6586 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6587 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6588 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6589 | break 2 |
| 6590 | fi |
| 6591 | done |
| 6592 | done |
| 6593 | IFS=$as_save_IFS |
| 6594 | |
| 6595 | fi |
| 6596 | fi |
| 6597 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6598 | if test -n "$ac_ct_DUMPBIN"; then |
| 6599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6600 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 6601 | else |
| 6602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6603 | printf "%s\n" "no" >&6; } |
| 6604 | fi |
| 6605 | |
| 6606 | |
| 6607 | test -n "$ac_ct_DUMPBIN" && break |
| 6608 | done |
| 6609 | |
| 6610 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6611 | DUMPBIN=":" |
| 6612 | else |
| 6613 | case $cross_compiling:$ac_tool_warned in |
| 6614 | yes:) |
| 6615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6616 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6617 | ac_tool_warned=yes ;; |
| 6618 | esac |
| 6619 | DUMPBIN=$ac_ct_DUMPBIN |
| 6620 | fi |
| 6621 | fi |
| 6622 | |
| 6623 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in |
| 6624 | *COFF*) |
| 6625 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6626 | ;; |
| 6627 | *) |
| 6628 | DUMPBIN=: |
| 6629 | ;; |
| 6630 | esac |
| 6631 | fi |
| 6632 | |
| 6633 | if test : != "$DUMPBIN"; then |
| 6634 | NM=$DUMPBIN |
| 6635 | fi |
| 6636 | fi |
| 6637 | test -z "$NM" && NM=nm |
| 6638 | |
| 6639 | |
| 6640 | |
| 6641 | |
| 6642 | |
| 6643 | |
| 6644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6645 | printf %s "checking the name lister ($NM) interface... " >&6; } |
| 6646 | if test ${lt_cv_nm_interface+y} |
| 6647 | then : |
| 6648 | printf %s "(cached) " >&6 |
| 6649 | else $as_nop |
| 6650 | lt_cv_nm_interface="BSD nm" |
| 6651 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6652 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6653 | (eval "$ac_compile" 2>conftest.err) |
| 6654 | cat conftest.err >&5 |
| 6655 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6656 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6657 | cat conftest.err >&5 |
| 6658 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6659 | cat conftest.out >&5 |
| 6660 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6661 | lt_cv_nm_interface="MS dumpbin" |
| 6662 | fi |
| 6663 | rm -f conftest* |
| 6664 | fi |
| 6665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6666 | printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 6667 | |
| 6668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6669 | printf %s "checking whether ln -s works... " >&6; } |
| 6670 | LN_S=$as_ln_s |
| 6671 | if test "$LN_S" = "ln -s"; then |
| 6672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6673 | printf "%s\n" "yes" >&6; } |
| 6674 | else |
| 6675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6676 | printf "%s\n" "no, using $LN_S" >&6; } |
| 6677 | fi |
| 6678 | |
| 6679 | # find the maximum length of command line arguments |
| 6680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6681 | printf %s "checking the maximum length of command line arguments... " >&6; } |
| 6682 | if test ${lt_cv_sys_max_cmd_len+y} |
| 6683 | then : |
| 6684 | printf %s "(cached) " >&6 |
| 6685 | else $as_nop |
| 6686 | i=0 |
| 6687 | teststring=ABCD |
| 6688 | |
| 6689 | case $build_os in |
| 6690 | msdosdjgpp*) |
| 6691 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6692 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6693 | # during glob expansion). Even if it were fixed, the result of this |
| 6694 | # check would be larger than it should be. |
| 6695 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6696 | ;; |
| 6697 | |
| 6698 | gnu*) |
| 6699 | # Under GNU Hurd, this test is not required because there is |
| 6700 | # no limit to the length of command line arguments. |
| 6701 | # Libtool will interpret -1 as no limit whatsoever |
| 6702 | lt_cv_sys_max_cmd_len=-1; |
| 6703 | ;; |
| 6704 | |
| 6705 | cygwin* | mingw* | cegcc*) |
| 6706 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6707 | # about 5 minutes as the teststring grows exponentially. |
| 6708 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6709 | # you end up with a "frozen" computer, even though with patience |
| 6710 | # the test eventually succeeds (with a max line length of 256k). |
| 6711 | # Instead, let's just punt: use the minimum linelength reported by |
| 6712 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6713 | lt_cv_sys_max_cmd_len=8192; |
| 6714 | ;; |
| 6715 | |
| 6716 | mint*) |
| 6717 | # On MiNT this can take a long time and run out of memory. |
| 6718 | lt_cv_sys_max_cmd_len=8192; |
| 6719 | ;; |
| 6720 | |
| 6721 | amigaos*) |
| 6722 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6723 | # So we just punt and use a minimum line length of 8192. |
| 6724 | lt_cv_sys_max_cmd_len=8192; |
| 6725 | ;; |
| 6726 | |
| 6727 | bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) |
| 6728 | # This has been around since 386BSD, at least. Likely further. |
| 6729 | if test -x /sbin/sysctl; then |
| 6730 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6731 | elif test -x /usr/sbin/sysctl; then |
| 6732 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6733 | else |
| 6734 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6735 | fi |
| 6736 | # And add a safety zone |
| 6737 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6738 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6739 | ;; |
| 6740 | |
| 6741 | interix*) |
| 6742 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6743 | lt_cv_sys_max_cmd_len=196608 |
| 6744 | ;; |
| 6745 | |
| 6746 | os2*) |
| 6747 | # The test takes a long time on OS/2. |
| 6748 | lt_cv_sys_max_cmd_len=8192 |
| 6749 | ;; |
| 6750 | |
| 6751 | osf*) |
| 6752 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6753 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6754 | # nice to cause kernel panics so lets avoid the loop below. |
| 6755 | # First set a reasonable default. |
| 6756 | lt_cv_sys_max_cmd_len=16384 |
| 6757 | # |
| 6758 | if test -x /sbin/sysconfig; then |
| 6759 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6760 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6761 | esac |
| 6762 | fi |
| 6763 | ;; |
| 6764 | sco3.2v5*) |
| 6765 | lt_cv_sys_max_cmd_len=102400 |
| 6766 | ;; |
| 6767 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6768 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6769 | if test -n "$kargmax"; then |
| 6770 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` |
| 6771 | else |
| 6772 | lt_cv_sys_max_cmd_len=32768 |
| 6773 | fi |
| 6774 | ;; |
| 6775 | *) |
| 6776 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6777 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6778 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6779 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6780 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6781 | else |
| 6782 | # Make teststring a little bigger before we do anything with it. |
| 6783 | # a 1K string should be a reasonable start. |
| 6784 | for i in 1 2 3 4 5 6 7 8; do |
| 6785 | teststring=$teststring$teststring |
| 6786 | done |
| 6787 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6788 | # If test is not a shell built-in, we'll probably end up computing a |
| 6789 | # maximum length that is only half of the actual maximum length, but |
| 6790 | # we can't tell. |
| 6791 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6792 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6793 | test 17 != "$i" # 1/2 MB should be enough |
| 6794 | do |
| 6795 | i=`expr $i + 1` |
| 6796 | teststring=$teststring$teststring |
| 6797 | done |
| 6798 | # Only check the string length outside the loop. |
| 6799 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6800 | teststring= |
| 6801 | # Add a significant safety factor because C++ compilers can tack on |
| 6802 | # massive amounts of additional arguments before passing them to the |
| 6803 | # linker. It appears as though 1/2 is a usable value. |
| 6804 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6805 | fi |
| 6806 | ;; |
| 6807 | esac |
| 6808 | |
| 6809 | fi |
| 6810 | |
| 6811 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6813 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 6814 | else |
| 6815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6816 | printf "%s\n" "none" >&6; } |
| 6817 | fi |
| 6818 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | |
| 6823 | |
| 6824 | |
| 6825 | : ${CP="cp -f"} |
| 6826 | : ${MV="mv -f"} |
| 6827 | : ${RM="rm -f"} |
| 6828 | |
| 6829 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6830 | lt_unset=unset |
| 6831 | else |
| 6832 | lt_unset=false |
| 6833 | fi |
| 6834 | |
| 6835 | |
| 6836 | |
| 6837 | |
| 6838 | |
| 6839 | # test EBCDIC or ASCII |
| 6840 | case `echo X|tr X '\101'` in |
| 6841 | A) # ASCII based system |
| 6842 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6843 | lt_SP2NL='tr \040 \012' |
| 6844 | lt_NL2SP='tr \015\012 \040\040' |
| 6845 | ;; |
| 6846 | *) # EBCDIC based system |
| 6847 | lt_SP2NL='tr \100 \n' |
| 6848 | lt_NL2SP='tr \r\n \100\100' |
| 6849 | ;; |
| 6850 | esac |
| 6851 | |
| 6852 | |
| 6853 | |
| 6854 | |
| 6855 | |
| 6856 | |
| 6857 | |
| 6858 | |
| 6859 | |
| 6860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6861 | printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 6862 | if test ${lt_cv_to_host_file_cmd+y} |
| 6863 | then : |
| 6864 | printf %s "(cached) " >&6 |
| 6865 | else $as_nop |
| 6866 | case $host in |
| 6867 | *-*-mingw* ) |
| 6868 | case $build in |
| 6869 | *-*-mingw* ) # actually msys |
| 6870 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6871 | ;; |
| 6872 | *-*-cygwin* ) |
| 6873 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6874 | ;; |
| 6875 | * ) # otherwise, assume *nix |
| 6876 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6877 | ;; |
| 6878 | esac |
| 6879 | ;; |
| 6880 | *-*-cygwin* ) |
| 6881 | case $build in |
| 6882 | *-*-mingw* ) # actually msys |
| 6883 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6884 | ;; |
| 6885 | *-*-cygwin* ) |
| 6886 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6887 | ;; |
| 6888 | * ) # otherwise, assume *nix |
| 6889 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6890 | ;; |
| 6891 | esac |
| 6892 | ;; |
| 6893 | * ) # unhandled hosts (and "normal" native builds) |
| 6894 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6895 | ;; |
| 6896 | esac |
| 6897 | |
| 6898 | fi |
| 6899 | |
| 6900 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6902 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 6903 | |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6909 | printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 6910 | if test ${lt_cv_to_tool_file_cmd+y} |
| 6911 | then : |
| 6912 | printf %s "(cached) " >&6 |
| 6913 | else $as_nop |
| 6914 | #assume ordinary cross tools, or native build. |
| 6915 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 6916 | case $host in |
| 6917 | *-*-mingw* ) |
| 6918 | case $build in |
| 6919 | *-*-mingw* ) # actually msys |
| 6920 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 6921 | ;; |
| 6922 | esac |
| 6923 | ;; |
| 6924 | esac |
| 6925 | |
| 6926 | fi |
| 6927 | |
| 6928 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 6929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 6930 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 6931 | |
| 6932 | |
| 6933 | |
| 6934 | |
| 6935 | |
| 6936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6937 | printf %s "checking for $LD option to reload object files... " >&6; } |
| 6938 | if test ${lt_cv_ld_reload_flag+y} |
| 6939 | then : |
| 6940 | printf %s "(cached) " >&6 |
| 6941 | else $as_nop |
| 6942 | lt_cv_ld_reload_flag='-r' |
| 6943 | fi |
| 6944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6945 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 6946 | reload_flag=$lt_cv_ld_reload_flag |
| 6947 | case $reload_flag in |
| 6948 | "" | " "*) ;; |
| 6949 | *) reload_flag=" $reload_flag" ;; |
| 6950 | esac |
| 6951 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6952 | case $host_os in |
| 6953 | cygwin* | mingw* | pw32* | cegcc*) |
| 6954 | if test yes != "$GCC"; then |
| 6955 | reload_cmds=false |
| 6956 | fi |
| 6957 | ;; |
| 6958 | darwin*) |
| 6959 | if test yes = "$GCC"; then |
| 6960 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 6961 | else |
| 6962 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6963 | fi |
| 6964 | ;; |
| 6965 | esac |
| 6966 | |
| 6967 | |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | |
| 6972 | |
| 6973 | |
| 6974 | |
| 6975 | if test -n "$ac_tool_prefix"; then |
| 6976 | # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. |
| 6977 | set dummy ${ac_tool_prefix}file; ac_word=$2 |
| 6978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6979 | printf %s "checking for $ac_word... " >&6; } |
| 6980 | if test ${ac_cv_prog_FILECMD+y} |
| 6981 | then : |
| 6982 | printf %s "(cached) " >&6 |
| 6983 | else $as_nop |
| 6984 | if test -n "$FILECMD"; then |
| 6985 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. |
| 6986 | else |
| 6987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6988 | for as_dir in $PATH |
| 6989 | do |
| 6990 | IFS=$as_save_IFS |
| 6991 | case $as_dir in #((( |
| 6992 | '') as_dir=./ ;; |
| 6993 | */) ;; |
| 6994 | *) as_dir=$as_dir/ ;; |
| 6995 | esac |
| 6996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6997 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6998 | ac_cv_prog_FILECMD="${ac_tool_prefix}file" |
| 6999 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7000 | break 2 |
| 7001 | fi |
| 7002 | done |
| 7003 | done |
| 7004 | IFS=$as_save_IFS |
| 7005 | |
| 7006 | fi |
| 7007 | fi |
| 7008 | FILECMD=$ac_cv_prog_FILECMD |
| 7009 | if test -n "$FILECMD"; then |
| 7010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 |
| 7011 | printf "%s\n" "$FILECMD" >&6; } |
| 7012 | else |
| 7013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7014 | printf "%s\n" "no" >&6; } |
| 7015 | fi |
| 7016 | |
| 7017 | |
| 7018 | fi |
| 7019 | if test -z "$ac_cv_prog_FILECMD"; then |
| 7020 | ac_ct_FILECMD=$FILECMD |
| 7021 | # Extract the first word of "file", so it can be a program name with args. |
| 7022 | set dummy file; ac_word=$2 |
| 7023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7024 | printf %s "checking for $ac_word... " >&6; } |
| 7025 | if test ${ac_cv_prog_ac_ct_FILECMD+y} |
| 7026 | then : |
| 7027 | printf %s "(cached) " >&6 |
| 7028 | else $as_nop |
| 7029 | if test -n "$ac_ct_FILECMD"; then |
| 7030 | ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. |
| 7031 | else |
| 7032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7033 | for as_dir in $PATH |
| 7034 | do |
| 7035 | IFS=$as_save_IFS |
| 7036 | case $as_dir in #((( |
| 7037 | '') as_dir=./ ;; |
| 7038 | */) ;; |
| 7039 | *) as_dir=$as_dir/ ;; |
| 7040 | esac |
| 7041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7042 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7043 | ac_cv_prog_ac_ct_FILECMD="file" |
| 7044 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7045 | break 2 |
| 7046 | fi |
| 7047 | done |
| 7048 | done |
| 7049 | IFS=$as_save_IFS |
| 7050 | |
| 7051 | fi |
| 7052 | fi |
| 7053 | ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD |
| 7054 | if test -n "$ac_ct_FILECMD"; then |
| 7055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 |
| 7056 | printf "%s\n" "$ac_ct_FILECMD" >&6; } |
| 7057 | else |
| 7058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7059 | printf "%s\n" "no" >&6; } |
| 7060 | fi |
| 7061 | |
| 7062 | if test "x$ac_ct_FILECMD" = x; then |
| 7063 | FILECMD=":" |
| 7064 | else |
| 7065 | case $cross_compiling:$ac_tool_warned in |
| 7066 | yes:) |
| 7067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7068 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7069 | ac_tool_warned=yes ;; |
| 7070 | esac |
| 7071 | FILECMD=$ac_ct_FILECMD |
| 7072 | fi |
| 7073 | else |
| 7074 | FILECMD="$ac_cv_prog_FILECMD" |
| 7075 | fi |
| 7076 | |
| 7077 | |
| 7078 | |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | |
| 7083 | if test -n "$ac_tool_prefix"; then |
| 7084 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7085 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7087 | printf %s "checking for $ac_word... " >&6; } |
| 7088 | if test ${ac_cv_prog_OBJDUMP+y} |
| 7089 | then : |
| 7090 | printf %s "(cached) " >&6 |
| 7091 | else $as_nop |
| 7092 | if test -n "$OBJDUMP"; then |
| 7093 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7094 | else |
| 7095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7096 | for as_dir in $PATH |
| 7097 | do |
| 7098 | IFS=$as_save_IFS |
| 7099 | case $as_dir in #((( |
| 7100 | '') as_dir=./ ;; |
| 7101 | */) ;; |
| 7102 | *) as_dir=$as_dir/ ;; |
| 7103 | esac |
| 7104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7105 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7106 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7107 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7108 | break 2 |
| 7109 | fi |
| 7110 | done |
| 7111 | done |
| 7112 | IFS=$as_save_IFS |
| 7113 | |
| 7114 | fi |
| 7115 | fi |
| 7116 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7117 | if test -n "$OBJDUMP"; then |
| 7118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7119 | printf "%s\n" "$OBJDUMP" >&6; } |
| 7120 | else |
| 7121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7122 | printf "%s\n" "no" >&6; } |
| 7123 | fi |
| 7124 | |
| 7125 | |
| 7126 | fi |
| 7127 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7128 | ac_ct_OBJDUMP=$OBJDUMP |
| 7129 | # Extract the first word of "objdump", so it can be a program name with args. |
| 7130 | set dummy objdump; ac_word=$2 |
| 7131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7132 | printf %s "checking for $ac_word... " >&6; } |
| 7133 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 7134 | then : |
| 7135 | printf %s "(cached) " >&6 |
| 7136 | else $as_nop |
| 7137 | if test -n "$ac_ct_OBJDUMP"; then |
| 7138 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7139 | else |
| 7140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7141 | for as_dir in $PATH |
| 7142 | do |
| 7143 | IFS=$as_save_IFS |
| 7144 | case $as_dir in #((( |
| 7145 | '') as_dir=./ ;; |
| 7146 | */) ;; |
| 7147 | *) as_dir=$as_dir/ ;; |
| 7148 | esac |
| 7149 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7150 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7151 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7152 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7153 | break 2 |
| 7154 | fi |
| 7155 | done |
| 7156 | done |
| 7157 | IFS=$as_save_IFS |
| 7158 | |
| 7159 | fi |
| 7160 | fi |
| 7161 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7162 | if test -n "$ac_ct_OBJDUMP"; then |
| 7163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7164 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 7165 | else |
| 7166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7167 | printf "%s\n" "no" >&6; } |
| 7168 | fi |
| 7169 | |
| 7170 | if test "x$ac_ct_OBJDUMP" = x; then |
| 7171 | OBJDUMP="false" |
| 7172 | else |
| 7173 | case $cross_compiling:$ac_tool_warned in |
| 7174 | yes:) |
| 7175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7176 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7177 | ac_tool_warned=yes ;; |
| 7178 | esac |
| 7179 | OBJDUMP=$ac_ct_OBJDUMP |
| 7180 | fi |
| 7181 | else |
| 7182 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7183 | fi |
| 7184 | |
| 7185 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | |
| 7191 | |
| 7192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7193 | printf %s "checking how to recognize dependent libraries... " >&6; } |
| 7194 | if test ${lt_cv_deplibs_check_method+y} |
| 7195 | then : |
| 7196 | printf %s "(cached) " >&6 |
| 7197 | else $as_nop |
| 7198 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7199 | lt_cv_file_magic_test_file= |
| 7200 | lt_cv_deplibs_check_method='unknown' |
| 7201 | # Need to set the preceding variable on all platforms that support |
| 7202 | # interlibrary dependencies. |
| 7203 | # 'none' -- dependencies not supported. |
| 7204 | # 'unknown' -- same as none, but documents that we really don't know. |
| 7205 | # 'pass_all' -- all dependencies passed with no checks. |
| 7206 | # 'test_compile' -- check by making test program. |
| 7207 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 7208 | # that responds to the $file_magic_cmd with a given extended regex. |
| 7209 | # If you have 'file' or equivalent on your system and you're not sure |
| 7210 | # whether 'pass_all' will *always* work, you probably want this one. |
| 7211 | |
| 7212 | case $host_os in |
| 7213 | aix[4-9]*) |
| 7214 | lt_cv_deplibs_check_method=pass_all |
| 7215 | ;; |
| 7216 | |
| 7217 | beos*) |
| 7218 | lt_cv_deplibs_check_method=pass_all |
| 7219 | ;; |
| 7220 | |
| 7221 | bsdi[45]*) |
| 7222 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7223 | lt_cv_file_magic_cmd='$FILECMD -L' |
| 7224 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 7225 | ;; |
| 7226 | |
| 7227 | cygwin*) |
| 7228 | # func_win32_libid is a shell function defined in ltmain.sh |
| 7229 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7230 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7231 | ;; |
| 7232 | |
| 7233 | mingw* | pw32*) |
| 7234 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 7235 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7236 | # unless we find 'file', for example because we are cross-compiling. |
| 7237 | if ( file / ) >/dev/null 2>&1; then |
| 7238 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7239 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7240 | else |
| 7241 | # Keep this pattern in sync with the one in func_win32_libid. |
| 7242 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 7243 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7244 | fi |
| 7245 | ;; |
| 7246 | |
| 7247 | cegcc*) |
| 7248 | # use the weaker test based on 'objdump'. See mingw*. |
| 7249 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7250 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7251 | ;; |
| 7252 | |
| 7253 | darwin* | rhapsody*) |
| 7254 | lt_cv_deplibs_check_method=pass_all |
| 7255 | ;; |
| 7256 | |
| 7257 | freebsd* | dragonfly* | midnightbsd*) |
| 7258 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7259 | case $host_cpu in |
| 7260 | i*86 ) |
| 7261 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 7262 | # Let's accept both of them until this is cleared up. |
| 7263 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7264 | lt_cv_file_magic_cmd=$FILECMD |
| 7265 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7266 | ;; |
| 7267 | esac |
| 7268 | else |
| 7269 | lt_cv_deplibs_check_method=pass_all |
| 7270 | fi |
| 7271 | ;; |
| 7272 | |
| 7273 | haiku*) |
| 7274 | lt_cv_deplibs_check_method=pass_all |
| 7275 | ;; |
| 7276 | |
| 7277 | hpux10.20* | hpux11*) |
| 7278 | lt_cv_file_magic_cmd=$FILECMD |
| 7279 | case $host_cpu in |
| 7280 | ia64*) |
| 7281 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7282 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7283 | ;; |
| 7284 | hppa*64*) |
| 7285 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 7286 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7287 | ;; |
| 7288 | *) |
| 7289 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7290 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7291 | ;; |
| 7292 | esac |
| 7293 | ;; |
| 7294 | |
| 7295 | interix[3-9]*) |
| 7296 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 7297 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 7298 | ;; |
| 7299 | |
| 7300 | irix5* | irix6* | nonstopux*) |
| 7301 | case $LD in |
| 7302 | *-32|*"-32 ") libmagic=32-bit;; |
| 7303 | *-n32|*"-n32 ") libmagic=N32;; |
| 7304 | *-64|*"-64 ") libmagic=64-bit;; |
| 7305 | *) libmagic=never-match;; |
| 7306 | esac |
| 7307 | lt_cv_deplibs_check_method=pass_all |
| 7308 | ;; |
| 7309 | |
| 7310 | # This must be glibc/ELF. |
| 7311 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 7312 | lt_cv_deplibs_check_method=pass_all |
| 7313 | ;; |
| 7314 | |
| 7315 | netbsd* | netbsdelf*-gnu) |
| 7316 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7317 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7318 | else |
| 7319 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 7320 | fi |
| 7321 | ;; |
| 7322 | |
| 7323 | newos6*) |
| 7324 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 7325 | lt_cv_file_magic_cmd=$FILECMD |
| 7326 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 7327 | ;; |
| 7328 | |
| 7329 | *nto* | *qnx*) |
| 7330 | lt_cv_deplibs_check_method=pass_all |
| 7331 | ;; |
| 7332 | |
| 7333 | openbsd* | bitrig*) |
| 7334 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 7335 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 7336 | else |
| 7337 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7338 | fi |
| 7339 | ;; |
| 7340 | |
| 7341 | openedition*) |
| 7342 | lt_cv_deplibs_check_method=pass_all |
| 7343 | ;; |
| 7344 | |
| 7345 | osf3* | osf4* | osf5*) |
| 7346 | lt_cv_deplibs_check_method=pass_all |
| 7347 | ;; |
| 7348 | |
| 7349 | rdos*) |
| 7350 | lt_cv_deplibs_check_method=pass_all |
| 7351 | ;; |
| 7352 | |
| 7353 | solaris*) |
| 7354 | lt_cv_deplibs_check_method=pass_all |
| 7355 | ;; |
| 7356 | |
| 7357 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 7358 | lt_cv_deplibs_check_method=pass_all |
| 7359 | ;; |
| 7360 | |
| 7361 | sysv4 | sysv4.3*) |
| 7362 | case $host_vendor in |
| 7363 | motorola) |
| 7364 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 7365 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 7366 | ;; |
| 7367 | ncr) |
| 7368 | lt_cv_deplibs_check_method=pass_all |
| 7369 | ;; |
| 7370 | sequent) |
| 7371 | lt_cv_file_magic_cmd='/bin/file' |
| 7372 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7373 | ;; |
| 7374 | sni) |
| 7375 | lt_cv_file_magic_cmd='/bin/file' |
| 7376 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7377 | lt_cv_file_magic_test_file=/lib/libc.so |
| 7378 | ;; |
| 7379 | siemens) |
| 7380 | lt_cv_deplibs_check_method=pass_all |
| 7381 | ;; |
| 7382 | pc) |
| 7383 | lt_cv_deplibs_check_method=pass_all |
| 7384 | ;; |
| 7385 | esac |
| 7386 | ;; |
| 7387 | |
| 7388 | tpf*) |
| 7389 | lt_cv_deplibs_check_method=pass_all |
| 7390 | ;; |
| 7391 | os2*) |
| 7392 | lt_cv_deplibs_check_method=pass_all |
| 7393 | ;; |
| 7394 | esac |
| 7395 | |
| 7396 | fi |
| 7397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7398 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 7399 | |
| 7400 | file_magic_glob= |
| 7401 | want_nocaseglob=no |
| 7402 | if test "$build" = "$host"; then |
| 7403 | case $host_os in |
| 7404 | mingw* | pw32*) |
| 7405 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7406 | want_nocaseglob=yes |
| 7407 | else |
| 7408 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7409 | fi |
| 7410 | ;; |
| 7411 | esac |
| 7412 | fi |
| 7413 | |
| 7414 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7415 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7416 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | |
| 7422 | |
| 7423 | |
| 7424 | |
| 7425 | |
| 7426 | |
| 7427 | |
| 7428 | |
| 7429 | |
| 7430 | |
| 7431 | |
| 7432 | |
| 7433 | |
| 7434 | |
| 7435 | |
| 7436 | |
| 7437 | |
| 7438 | |
| 7439 | if test -n "$ac_tool_prefix"; then |
| 7440 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7441 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7443 | printf %s "checking for $ac_word... " >&6; } |
| 7444 | if test ${ac_cv_prog_DLLTOOL+y} |
| 7445 | then : |
| 7446 | printf %s "(cached) " >&6 |
| 7447 | else $as_nop |
| 7448 | if test -n "$DLLTOOL"; then |
| 7449 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7450 | else |
| 7451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7452 | for as_dir in $PATH |
| 7453 | do |
| 7454 | IFS=$as_save_IFS |
| 7455 | case $as_dir in #((( |
| 7456 | '') as_dir=./ ;; |
| 7457 | */) ;; |
| 7458 | *) as_dir=$as_dir/ ;; |
| 7459 | esac |
| 7460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7461 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7462 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7463 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7464 | break 2 |
| 7465 | fi |
| 7466 | done |
| 7467 | done |
| 7468 | IFS=$as_save_IFS |
| 7469 | |
| 7470 | fi |
| 7471 | fi |
| 7472 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7473 | if test -n "$DLLTOOL"; then |
| 7474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7475 | printf "%s\n" "$DLLTOOL" >&6; } |
| 7476 | else |
| 7477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7478 | printf "%s\n" "no" >&6; } |
| 7479 | fi |
| 7480 | |
| 7481 | |
| 7482 | fi |
| 7483 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7484 | ac_ct_DLLTOOL=$DLLTOOL |
| 7485 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7486 | set dummy dlltool; ac_word=$2 |
| 7487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7488 | printf %s "checking for $ac_word... " >&6; } |
| 7489 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 7490 | then : |
| 7491 | printf %s "(cached) " >&6 |
| 7492 | else $as_nop |
| 7493 | if test -n "$ac_ct_DLLTOOL"; then |
| 7494 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7495 | else |
| 7496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7497 | for as_dir in $PATH |
| 7498 | do |
| 7499 | IFS=$as_save_IFS |
| 7500 | case $as_dir in #((( |
| 7501 | '') as_dir=./ ;; |
| 7502 | */) ;; |
| 7503 | *) as_dir=$as_dir/ ;; |
| 7504 | esac |
| 7505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7506 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7507 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7508 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7509 | break 2 |
| 7510 | fi |
| 7511 | done |
| 7512 | done |
| 7513 | IFS=$as_save_IFS |
| 7514 | |
| 7515 | fi |
| 7516 | fi |
| 7517 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7518 | if test -n "$ac_ct_DLLTOOL"; then |
| 7519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7520 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 7521 | else |
| 7522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7523 | printf "%s\n" "no" >&6; } |
| 7524 | fi |
| 7525 | |
| 7526 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7527 | DLLTOOL="false" |
| 7528 | else |
| 7529 | case $cross_compiling:$ac_tool_warned in |
| 7530 | yes:) |
| 7531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7532 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7533 | ac_tool_warned=yes ;; |
| 7534 | esac |
| 7535 | DLLTOOL=$ac_ct_DLLTOOL |
| 7536 | fi |
| 7537 | else |
| 7538 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7539 | fi |
| 7540 | |
| 7541 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7542 | |
| 7543 | |
| 7544 | |
| 7545 | |
| 7546 | |
| 7547 | |
| 7548 | |
| 7549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7550 | printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 7551 | if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 7552 | then : |
| 7553 | printf %s "(cached) " >&6 |
| 7554 | else $as_nop |
| 7555 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7556 | |
| 7557 | case $host_os in |
| 7558 | cygwin* | mingw* | pw32* | cegcc*) |
| 7559 | # two different shell functions defined in ltmain.sh; |
| 7560 | # decide which one to use based on capabilities of $DLLTOOL |
| 7561 | case `$DLLTOOL --help 2>&1` in |
| 7562 | *--identify-strict*) |
| 7563 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7564 | ;; |
| 7565 | *) |
| 7566 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7567 | ;; |
| 7568 | esac |
| 7569 | ;; |
| 7570 | *) |
| 7571 | # fallback: assume linklib IS sharedlib |
| 7572 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 7573 | ;; |
| 7574 | esac |
| 7575 | |
| 7576 | fi |
| 7577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7578 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7579 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7580 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7581 | |
| 7582 | |
| 7583 | |
| 7584 | |
| 7585 | |
| 7586 | |
| 7587 | |
| 7588 | if test -n "$ac_tool_prefix"; then |
| 7589 | for ac_prog in ar |
| 7590 | do |
| 7591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7594 | printf %s "checking for $ac_word... " >&6; } |
| 7595 | if test ${ac_cv_prog_AR+y} |
| 7596 | then : |
| 7597 | printf %s "(cached) " >&6 |
| 7598 | else $as_nop |
| 7599 | if test -n "$AR"; then |
| 7600 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7601 | else |
| 7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7603 | for as_dir in $PATH |
| 7604 | do |
| 7605 | IFS=$as_save_IFS |
| 7606 | case $as_dir in #((( |
| 7607 | '') as_dir=./ ;; |
| 7608 | */) ;; |
| 7609 | *) as_dir=$as_dir/ ;; |
| 7610 | esac |
| 7611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7612 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7613 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7614 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7615 | break 2 |
| 7616 | fi |
| 7617 | done |
| 7618 | done |
| 7619 | IFS=$as_save_IFS |
| 7620 | |
| 7621 | fi |
| 7622 | fi |
| 7623 | AR=$ac_cv_prog_AR |
| 7624 | if test -n "$AR"; then |
| 7625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7626 | printf "%s\n" "$AR" >&6; } |
| 7627 | else |
| 7628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7629 | printf "%s\n" "no" >&6; } |
| 7630 | fi |
| 7631 | |
| 7632 | |
| 7633 | test -n "$AR" && break |
| 7634 | done |
| 7635 | fi |
| 7636 | if test -z "$AR"; then |
| 7637 | ac_ct_AR=$AR |
| 7638 | for ac_prog in ar |
| 7639 | do |
| 7640 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7641 | set dummy $ac_prog; ac_word=$2 |
| 7642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7643 | printf %s "checking for $ac_word... " >&6; } |
| 7644 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 7645 | then : |
| 7646 | printf %s "(cached) " >&6 |
| 7647 | else $as_nop |
| 7648 | if test -n "$ac_ct_AR"; then |
| 7649 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7650 | else |
| 7651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7652 | for as_dir in $PATH |
| 7653 | do |
| 7654 | IFS=$as_save_IFS |
| 7655 | case $as_dir in #((( |
| 7656 | '') as_dir=./ ;; |
| 7657 | */) ;; |
| 7658 | *) as_dir=$as_dir/ ;; |
| 7659 | esac |
| 7660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7661 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7662 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7663 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7664 | break 2 |
| 7665 | fi |
| 7666 | done |
| 7667 | done |
| 7668 | IFS=$as_save_IFS |
| 7669 | |
| 7670 | fi |
| 7671 | fi |
| 7672 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7673 | if test -n "$ac_ct_AR"; then |
| 7674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7675 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 7676 | else |
| 7677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7678 | printf "%s\n" "no" >&6; } |
| 7679 | fi |
| 7680 | |
| 7681 | |
| 7682 | test -n "$ac_ct_AR" && break |
| 7683 | done |
| 7684 | |
| 7685 | if test "x$ac_ct_AR" = x; then |
| 7686 | AR="false" |
| 7687 | else |
| 7688 | case $cross_compiling:$ac_tool_warned in |
| 7689 | yes:) |
| 7690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7691 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7692 | ac_tool_warned=yes ;; |
| 7693 | esac |
| 7694 | AR=$ac_ct_AR |
| 7695 | fi |
| 7696 | fi |
| 7697 | |
| 7698 | : ${AR=ar} |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | |
| 7703 | |
| 7704 | |
| 7705 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with |
| 7706 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have |
| 7707 | # higher priority because thats what people were doing historically (setting |
| 7708 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS |
| 7709 | # variable obsoleted/removed. |
| 7710 | |
| 7711 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} |
| 7712 | lt_ar_flags=$AR_FLAGS |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | |
| 7717 | |
| 7718 | |
| 7719 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override |
| 7720 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die. |
| 7721 | |
| 7722 | |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | |
| 7727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7728 | printf %s "checking for archiver @FILE support... " >&6; } |
| 7729 | if test ${lt_cv_ar_at_file+y} |
| 7730 | then : |
| 7731 | printf %s "(cached) " >&6 |
| 7732 | else $as_nop |
| 7733 | lt_cv_ar_at_file=no |
| 7734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7735 | /* end confdefs.h. */ |
| 7736 | |
| 7737 | int |
| 7738 | main (void) |
| 7739 | { |
| 7740 | |
| 7741 | ; |
| 7742 | return 0; |
| 7743 | } |
| 7744 | _ACEOF |
| 7745 | if ac_fn_c_try_compile "$LINENO" |
| 7746 | then : |
| 7747 | echo conftest.$ac_objext > conftest.lst |
| 7748 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7749 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7750 | (eval $lt_ar_try) 2>&5 |
| 7751 | ac_status=$? |
| 7752 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7753 | test $ac_status = 0; } |
| 7754 | if test 0 -eq "$ac_status"; then |
| 7755 | # Ensure the archiver fails upon bogus file names. |
| 7756 | rm -f conftest.$ac_objext libconftest.a |
| 7757 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7758 | (eval $lt_ar_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7761 | test $ac_status = 0; } |
| 7762 | if test 0 -ne "$ac_status"; then |
| 7763 | lt_cv_ar_at_file=@ |
| 7764 | fi |
| 7765 | fi |
| 7766 | rm -f conftest.* libconftest.a |
| 7767 | |
| 7768 | fi |
| 7769 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7770 | |
| 7771 | fi |
| 7772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7773 | printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 7774 | |
| 7775 | if test no = "$lt_cv_ar_at_file"; then |
| 7776 | archiver_list_spec= |
| 7777 | else |
| 7778 | archiver_list_spec=$lt_cv_ar_at_file |
| 7779 | fi |
| 7780 | |
| 7781 | |
| 7782 | |
| 7783 | |
| 7784 | |
| 7785 | |
| 7786 | |
| 7787 | if test -n "$ac_tool_prefix"; then |
| 7788 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7789 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7791 | printf %s "checking for $ac_word... " >&6; } |
| 7792 | if test ${ac_cv_prog_STRIP+y} |
| 7793 | then : |
| 7794 | printf %s "(cached) " >&6 |
| 7795 | else $as_nop |
| 7796 | if test -n "$STRIP"; then |
| 7797 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7798 | else |
| 7799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7800 | for as_dir in $PATH |
| 7801 | do |
| 7802 | IFS=$as_save_IFS |
| 7803 | case $as_dir in #((( |
| 7804 | '') as_dir=./ ;; |
| 7805 | */) ;; |
| 7806 | *) as_dir=$as_dir/ ;; |
| 7807 | esac |
| 7808 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7809 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7810 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7811 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7812 | break 2 |
| 7813 | fi |
| 7814 | done |
| 7815 | done |
| 7816 | IFS=$as_save_IFS |
| 7817 | |
| 7818 | fi |
| 7819 | fi |
| 7820 | STRIP=$ac_cv_prog_STRIP |
| 7821 | if test -n "$STRIP"; then |
| 7822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7823 | printf "%s\n" "$STRIP" >&6; } |
| 7824 | else |
| 7825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7826 | printf "%s\n" "no" >&6; } |
| 7827 | fi |
| 7828 | |
| 7829 | |
| 7830 | fi |
| 7831 | if test -z "$ac_cv_prog_STRIP"; then |
| 7832 | ac_ct_STRIP=$STRIP |
| 7833 | # Extract the first word of "strip", so it can be a program name with args. |
| 7834 | set dummy strip; ac_word=$2 |
| 7835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7836 | printf %s "checking for $ac_word... " >&6; } |
| 7837 | if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 7838 | then : |
| 7839 | printf %s "(cached) " >&6 |
| 7840 | else $as_nop |
| 7841 | if test -n "$ac_ct_STRIP"; then |
| 7842 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7843 | else |
| 7844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7845 | for as_dir in $PATH |
| 7846 | do |
| 7847 | IFS=$as_save_IFS |
| 7848 | case $as_dir in #((( |
| 7849 | '') as_dir=./ ;; |
| 7850 | */) ;; |
| 7851 | *) as_dir=$as_dir/ ;; |
| 7852 | esac |
| 7853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7854 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7855 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7857 | break 2 |
| 7858 | fi |
| 7859 | done |
| 7860 | done |
| 7861 | IFS=$as_save_IFS |
| 7862 | |
| 7863 | fi |
| 7864 | fi |
| 7865 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7866 | if test -n "$ac_ct_STRIP"; then |
| 7867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7868 | printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 7869 | else |
| 7870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7871 | printf "%s\n" "no" >&6; } |
| 7872 | fi |
| 7873 | |
| 7874 | if test "x$ac_ct_STRIP" = x; then |
| 7875 | STRIP=":" |
| 7876 | else |
| 7877 | case $cross_compiling:$ac_tool_warned in |
| 7878 | yes:) |
| 7879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7880 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7881 | ac_tool_warned=yes ;; |
| 7882 | esac |
| 7883 | STRIP=$ac_ct_STRIP |
| 7884 | fi |
| 7885 | else |
| 7886 | STRIP="$ac_cv_prog_STRIP" |
| 7887 | fi |
| 7888 | |
| 7889 | test -z "$STRIP" && STRIP=: |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | |
| 7896 | if test -n "$ac_tool_prefix"; then |
| 7897 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7898 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7900 | printf %s "checking for $ac_word... " >&6; } |
| 7901 | if test ${ac_cv_prog_RANLIB+y} |
| 7902 | then : |
| 7903 | printf %s "(cached) " >&6 |
| 7904 | else $as_nop |
| 7905 | if test -n "$RANLIB"; then |
| 7906 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7907 | else |
| 7908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7909 | for as_dir in $PATH |
| 7910 | do |
| 7911 | IFS=$as_save_IFS |
| 7912 | case $as_dir in #((( |
| 7913 | '') as_dir=./ ;; |
| 7914 | */) ;; |
| 7915 | *) as_dir=$as_dir/ ;; |
| 7916 | esac |
| 7917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7918 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7919 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7920 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7921 | break 2 |
| 7922 | fi |
| 7923 | done |
| 7924 | done |
| 7925 | IFS=$as_save_IFS |
| 7926 | |
| 7927 | fi |
| 7928 | fi |
| 7929 | RANLIB=$ac_cv_prog_RANLIB |
| 7930 | if test -n "$RANLIB"; then |
| 7931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7932 | printf "%s\n" "$RANLIB" >&6; } |
| 7933 | else |
| 7934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7935 | printf "%s\n" "no" >&6; } |
| 7936 | fi |
| 7937 | |
| 7938 | |
| 7939 | fi |
| 7940 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7941 | ac_ct_RANLIB=$RANLIB |
| 7942 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7943 | set dummy ranlib; ac_word=$2 |
| 7944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7945 | printf %s "checking for $ac_word... " >&6; } |
| 7946 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7947 | then : |
| 7948 | printf %s "(cached) " >&6 |
| 7949 | else $as_nop |
| 7950 | if test -n "$ac_ct_RANLIB"; then |
| 7951 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7952 | else |
| 7953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7954 | for as_dir in $PATH |
| 7955 | do |
| 7956 | IFS=$as_save_IFS |
| 7957 | case $as_dir in #((( |
| 7958 | '') as_dir=./ ;; |
| 7959 | */) ;; |
| 7960 | *) as_dir=$as_dir/ ;; |
| 7961 | esac |
| 7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7963 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7964 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7965 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7966 | break 2 |
| 7967 | fi |
| 7968 | done |
| 7969 | done |
| 7970 | IFS=$as_save_IFS |
| 7971 | |
| 7972 | fi |
| 7973 | fi |
| 7974 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7975 | if test -n "$ac_ct_RANLIB"; then |
| 7976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7977 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 7978 | else |
| 7979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7980 | printf "%s\n" "no" >&6; } |
| 7981 | fi |
| 7982 | |
| 7983 | if test "x$ac_ct_RANLIB" = x; then |
| 7984 | RANLIB=":" |
| 7985 | else |
| 7986 | case $cross_compiling:$ac_tool_warned in |
| 7987 | yes:) |
| 7988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7989 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7990 | ac_tool_warned=yes ;; |
| 7991 | esac |
| 7992 | RANLIB=$ac_ct_RANLIB |
| 7993 | fi |
| 7994 | else |
| 7995 | RANLIB="$ac_cv_prog_RANLIB" |
| 7996 | fi |
| 7997 | |
| 7998 | test -z "$RANLIB" && RANLIB=: |
| 7999 | |
| 8000 | |
| 8001 | |
| 8002 | |
| 8003 | |
| 8004 | |
| 8005 | # Determine commands to create old-style static archives. |
| 8006 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 8007 | old_postinstall_cmds='chmod 644 $oldlib' |
| 8008 | old_postuninstall_cmds= |
| 8009 | |
| 8010 | if test -n "$RANLIB"; then |
| 8011 | case $host_os in |
| 8012 | bitrig* | openbsd*) |
| 8013 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 8014 | ;; |
| 8015 | *) |
| 8016 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 8017 | ;; |
| 8018 | esac |
| 8019 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 8020 | fi |
| 8021 | |
| 8022 | case $host_os in |
| 8023 | darwin*) |
| 8024 | lock_old_archive_extraction=yes ;; |
| 8025 | *) |
| 8026 | lock_old_archive_extraction=no ;; |
| 8027 | esac |
| 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | |
| 8033 | |
| 8034 | |
| 8035 | |
| 8036 | |
| 8037 | |
| 8038 | |
| 8039 | |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | |
| 8044 | |
| 8045 | |
| 8046 | |
| 8047 | |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | |
| 8053 | |
| 8054 | |
| 8055 | |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
| 8063 | |
| 8064 | |
| 8065 | |
| 8066 | |
| 8067 | # If no C compiler was specified, use CC. |
| 8068 | LTCC=${LTCC-"$CC"} |
| 8069 | |
| 8070 | # If no C compiler flags were specified, use CFLAGS. |
| 8071 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8072 | |
| 8073 | # Allow CC to be a program name with arguments. |
| 8074 | compiler=$CC |
| 8075 | |
| 8076 | |
| 8077 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8079 | printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 8080 | if test ${lt_cv_sys_global_symbol_pipe+y} |
| 8081 | then : |
| 8082 | printf %s "(cached) " >&6 |
| 8083 | else $as_nop |
| 8084 | |
| 8085 | # These are sane defaults that work on at least a few old systems. |
| 8086 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8087 | |
| 8088 | # Character class describing NM global symbol codes. |
| 8089 | symcode='[BCDEGRST]' |
| 8090 | |
| 8091 | # Regexp to match symbols that can be accessed directly from C. |
| 8092 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8093 | |
| 8094 | # Define system-specific variables. |
| 8095 | case $host_os in |
| 8096 | aix*) |
| 8097 | symcode='[BCDT]' |
| 8098 | ;; |
| 8099 | cygwin* | mingw* | pw32* | cegcc*) |
| 8100 | symcode='[ABCDGISTW]' |
| 8101 | ;; |
| 8102 | hpux*) |
| 8103 | if test ia64 = "$host_cpu"; then |
| 8104 | symcode='[ABCDEGRST]' |
| 8105 | fi |
| 8106 | ;; |
| 8107 | irix* | nonstopux*) |
| 8108 | symcode='[BCDEGRST]' |
| 8109 | ;; |
| 8110 | osf*) |
| 8111 | symcode='[BCDEGQRST]' |
| 8112 | ;; |
| 8113 | solaris*) |
| 8114 | symcode='[BDRT]' |
| 8115 | ;; |
| 8116 | sco3.2v5*) |
| 8117 | symcode='[DT]' |
| 8118 | ;; |
| 8119 | sysv4.2uw2*) |
| 8120 | symcode='[DT]' |
| 8121 | ;; |
| 8122 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8123 | symcode='[ABDT]' |
| 8124 | ;; |
| 8125 | sysv4) |
| 8126 | symcode='[DFNSTU]' |
| 8127 | ;; |
| 8128 | esac |
| 8129 | |
| 8130 | # If we're using GNU nm, then use its standard symbol codes. |
| 8131 | case `$NM -V 2>&1` in |
| 8132 | *GNU* | *'with BFD'*) |
| 8133 | symcode='[ABCDGIRSTW]' ;; |
| 8134 | esac |
| 8135 | |
| 8136 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8137 | # Gets list of data symbols to import. |
| 8138 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" |
| 8139 | # Adjust the below global symbol transforms to fixup imported variables. |
| 8140 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 8141 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 8142 | lt_c_name_lib_hook="\ |
| 8143 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 8144 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 8145 | else |
| 8146 | # Disable hooks by default. |
| 8147 | lt_cv_sys_global_symbol_to_import= |
| 8148 | lt_cdecl_hook= |
| 8149 | lt_c_name_hook= |
| 8150 | lt_c_name_lib_hook= |
| 8151 | fi |
| 8152 | |
| 8153 | # Transform an extracted symbol line into a proper C declaration. |
| 8154 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 8155 | # so use this general approach. |
| 8156 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ |
| 8157 | $lt_cdecl_hook\ |
| 8158 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 8159 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8160 | |
| 8161 | # Transform an extracted symbol line into symbol name and symbol address |
| 8162 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ |
| 8163 | $lt_c_name_hook\ |
| 8164 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8165 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 8166 | |
| 8167 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 8168 | # symbol address. |
| 8169 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ |
| 8170 | $lt_c_name_lib_hook\ |
| 8171 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 8172 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 8173 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 8174 | |
| 8175 | # Handle CRLF in mingw tool chain |
| 8176 | opt_cr= |
| 8177 | case $build_os in |
| 8178 | mingw*) |
| 8179 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8180 | ;; |
| 8181 | esac |
| 8182 | |
| 8183 | # Try without a prefix underscore, then with it. |
| 8184 | for ac_symprfx in "" "_"; do |
| 8185 | |
| 8186 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8187 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8188 | |
| 8189 | # Write the raw and C identifiers. |
| 8190 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8191 | # Fake it for dumpbin and say T for any non-static function, |
| 8192 | # D for any global variable and I for any imported variable. |
| 8193 | # Also find C++ and __fastcall symbols from MSVC++ or ICC, |
| 8194 | # which start with @ or ?. |
| 8195 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8196 | " {last_section=section; section=\$ 3};"\ |
| 8197 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 8198 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8199 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 8200 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 8201 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 8202 | " \$ 0!~/External *\|/{next};"\ |
| 8203 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8204 | " {if(hide[section]) next};"\ |
| 8205 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 8206 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 8207 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 8208 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 8209 | " ' prfx=^$ac_symprfx" |
| 8210 | else |
| 8211 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8212 | fi |
| 8213 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" |
| 8214 | |
| 8215 | # Check to see that the pipe works correctly. |
| 8216 | pipe_works=no |
| 8217 | |
| 8218 | rm -f conftest* |
| 8219 | cat > conftest.$ac_ext <<_LT_EOF |
| 8220 | #ifdef __cplusplus |
| 8221 | extern "C" { |
| 8222 | #endif |
| 8223 | char nm_test_var; |
| 8224 | void nm_test_func(void); |
| 8225 | void nm_test_func(void){} |
| 8226 | #ifdef __cplusplus |
| 8227 | } |
| 8228 | #endif |
| 8229 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 8230 | _LT_EOF |
| 8231 | |
| 8232 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8233 | (eval $ac_compile) 2>&5 |
| 8234 | ac_status=$? |
| 8235 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8236 | test $ac_status = 0; }; then |
| 8237 | # Now try to grab the symbols. |
| 8238 | nlist=conftest.nm |
| 8239 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 8240 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 8241 | # Try sorting and uniquifying the output. |
| 8242 | if sort "$nlist" | uniq > "$nlist"T; then |
| 8243 | mv -f "$nlist"T "$nlist" |
| 8244 | else |
| 8245 | rm -f "$nlist"T |
| 8246 | fi |
| 8247 | |
| 8248 | # Make sure that we snagged all the symbols we need. |
| 8249 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8250 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8251 | cat <<_LT_EOF > conftest.$ac_ext |
| 8252 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8253 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 8254 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 8255 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8256 | # define LT_DLSYM_CONST |
| 8257 | #elif defined __osf__ |
| 8258 | /* This system does not cope well with relocations in const data. */ |
| 8259 | # define LT_DLSYM_CONST |
| 8260 | #else |
| 8261 | # define LT_DLSYM_CONST const |
| 8262 | #endif |
| 8263 | |
| 8264 | #ifdef __cplusplus |
| 8265 | extern "C" { |
| 8266 | #endif |
| 8267 | |
| 8268 | _LT_EOF |
| 8269 | # Now generate the symbol file. |
| 8270 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8271 | |
| 8272 | cat <<_LT_EOF >> conftest.$ac_ext |
| 8273 | |
| 8274 | /* The mapping between symbol names and symbols. */ |
| 8275 | LT_DLSYM_CONST struct { |
| 8276 | const char *name; |
| 8277 | void *address; |
| 8278 | } |
| 8279 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8280 | { |
| 8281 | { "@PROGRAM@", (void *) 0 }, |
| 8282 | _LT_EOF |
| 8283 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8284 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 8285 | {0, (void *) 0} |
| 8286 | }; |
| 8287 | |
| 8288 | /* This works around a problem in FreeBSD linker */ |
| 8289 | #ifdef FREEBSD_WORKAROUND |
| 8290 | static const void *lt_preloaded_setup() { |
| 8291 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 8292 | } |
| 8293 | #endif |
| 8294 | |
| 8295 | #ifdef __cplusplus |
| 8296 | } |
| 8297 | #endif |
| 8298 | _LT_EOF |
| 8299 | # Now try linking the two files. |
| 8300 | mv conftest.$ac_objext conftstm.$ac_objext |
| 8301 | lt_globsym_save_LIBS=$LIBS |
| 8302 | lt_globsym_save_CFLAGS=$CFLAGS |
| 8303 | LIBS=conftstm.$ac_objext |
| 8304 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8305 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8306 | (eval $ac_link) 2>&5 |
| 8307 | ac_status=$? |
| 8308 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8309 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 8310 | pipe_works=yes |
| 8311 | fi |
| 8312 | LIBS=$lt_globsym_save_LIBS |
| 8313 | CFLAGS=$lt_globsym_save_CFLAGS |
| 8314 | else |
| 8315 | echo "cannot find nm_test_func in $nlist" >&5 |
| 8316 | fi |
| 8317 | else |
| 8318 | echo "cannot find nm_test_var in $nlist" >&5 |
| 8319 | fi |
| 8320 | else |
| 8321 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8322 | fi |
| 8323 | else |
| 8324 | echo "$progname: failed program was:" >&5 |
| 8325 | cat conftest.$ac_ext >&5 |
| 8326 | fi |
| 8327 | rm -rf conftest* conftst* |
| 8328 | |
| 8329 | # Do not use the global_symbol_pipe unless it works. |
| 8330 | if test yes = "$pipe_works"; then |
| 8331 | break |
| 8332 | else |
| 8333 | lt_cv_sys_global_symbol_pipe= |
| 8334 | fi |
| 8335 | done |
| 8336 | |
| 8337 | fi |
| 8338 | |
| 8339 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8340 | lt_cv_sys_global_symbol_to_cdecl= |
| 8341 | fi |
| 8342 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8344 | printf "%s\n" "failed" >&6; } |
| 8345 | else |
| 8346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8347 | printf "%s\n" "ok" >&6; } |
| 8348 | fi |
| 8349 | |
| 8350 | # Response file support. |
| 8351 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8352 | nm_file_list_spec='@' |
| 8353 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8354 | nm_file_list_spec='@' |
| 8355 | fi |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8394 | printf %s "checking for sysroot... " >&6; } |
| 8395 | |
| 8396 | # Check whether --with-sysroot was given. |
| 8397 | if test ${with_sysroot+y} |
| 8398 | then : |
| 8399 | withval=$with_sysroot; |
| 8400 | else $as_nop |
| 8401 | with_sysroot=no |
| 8402 | fi |
| 8403 | |
| 8404 | |
| 8405 | lt_sysroot= |
| 8406 | case $with_sysroot in #( |
| 8407 | yes) |
| 8408 | if test yes = "$GCC"; then |
| 8409 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 8410 | fi |
| 8411 | ;; #( |
| 8412 | /*) |
| 8413 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
| 8414 | ;; #( |
| 8415 | no|'') |
| 8416 | ;; #( |
| 8417 | *) |
| 8418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 8419 | printf "%s\n" "$with_sysroot" >&6; } |
| 8420 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8421 | ;; |
| 8422 | esac |
| 8423 | |
| 8424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8425 | printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 8432 | printf %s "checking for a working dd... " >&6; } |
| 8433 | if test ${ac_cv_path_lt_DD+y} |
| 8434 | then : |
| 8435 | printf %s "(cached) " >&6 |
| 8436 | else $as_nop |
| 8437 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8438 | cat conftest.i conftest.i >conftest2.i |
| 8439 | : ${lt_DD:=$DD} |
| 8440 | if test -z "$lt_DD"; then |
| 8441 | ac_path_lt_DD_found=false |
| 8442 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8444 | for as_dir in $PATH |
| 8445 | do |
| 8446 | IFS=$as_save_IFS |
| 8447 | case $as_dir in #((( |
| 8448 | '') as_dir=./ ;; |
| 8449 | */) ;; |
| 8450 | *) as_dir=$as_dir/ ;; |
| 8451 | esac |
| 8452 | for ac_prog in dd |
| 8453 | do |
| 8454 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8455 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 8456 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 8457 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8458 | cmp -s conftest.i conftest.out \ |
| 8459 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 8460 | fi |
| 8461 | $ac_path_lt_DD_found && break 3 |
| 8462 | done |
| 8463 | done |
| 8464 | done |
| 8465 | IFS=$as_save_IFS |
| 8466 | if test -z "$ac_cv_path_lt_DD"; then |
| 8467 | : |
| 8468 | fi |
| 8469 | else |
| 8470 | ac_cv_path_lt_DD=$lt_DD |
| 8471 | fi |
| 8472 | |
| 8473 | rm -f conftest.i conftest2.i conftest.out |
| 8474 | fi |
| 8475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 8476 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 8477 | |
| 8478 | |
| 8479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 8480 | printf %s "checking how to truncate binary pipes... " >&6; } |
| 8481 | if test ${lt_cv_truncate_bin+y} |
| 8482 | then : |
| 8483 | printf %s "(cached) " >&6 |
| 8484 | else $as_nop |
| 8485 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 8486 | cat conftest.i conftest.i >conftest2.i |
| 8487 | lt_cv_truncate_bin= |
| 8488 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 8489 | cmp -s conftest.i conftest.out \ |
| 8490 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 8491 | fi |
| 8492 | rm -f conftest.i conftest2.i conftest.out |
| 8493 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 8494 | fi |
| 8495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 8496 | printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 8497 | |
| 8498 | |
| 8499 | |
| 8500 | |
| 8501 | |
| 8502 | |
| 8503 | |
| 8504 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 8505 | func_cc_basename () |
| 8506 | { |
| 8507 | for cc_temp in $*""; do |
| 8508 | case $cc_temp in |
| 8509 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8510 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8511 | \-*) ;; |
| 8512 | *) break;; |
| 8513 | esac |
| 8514 | done |
| 8515 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8516 | } |
| 8517 | |
| 8518 | # Check whether --enable-libtool-lock was given. |
| 8519 | if test ${enable_libtool_lock+y} |
| 8520 | then : |
| 8521 | enableval=$enable_libtool_lock; |
| 8522 | fi |
| 8523 | |
| 8524 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 8525 | |
| 8526 | # Some flags need to be propagated to the compiler or linker for good |
| 8527 | # libtool support. |
| 8528 | case $host in |
| 8529 | ia64-*-hpux*) |
| 8530 | # Find out what ABI is being produced by ac_compile, and set mode |
| 8531 | # options accordingly. |
| 8532 | echo 'int i;' > conftest.$ac_ext |
| 8533 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8534 | (eval $ac_compile) 2>&5 |
| 8535 | ac_status=$? |
| 8536 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8537 | test $ac_status = 0; }; then |
| 8538 | case `$FILECMD conftest.$ac_objext` in |
| 8539 | *ELF-32*) |
| 8540 | HPUX_IA64_MODE=32 |
| 8541 | ;; |
| 8542 | *ELF-64*) |
| 8543 | HPUX_IA64_MODE=64 |
| 8544 | ;; |
| 8545 | esac |
| 8546 | fi |
| 8547 | rm -rf conftest* |
| 8548 | ;; |
| 8549 | *-*-irix6*) |
| 8550 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8551 | # options accordingly. |
| 8552 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8553 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8554 | (eval $ac_compile) 2>&5 |
| 8555 | ac_status=$? |
| 8556 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8557 | test $ac_status = 0; }; then |
| 8558 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 8559 | case `$FILECMD conftest.$ac_objext` in |
| 8560 | *32-bit*) |
| 8561 | LD="${LD-ld} -melf32bsmip" |
| 8562 | ;; |
| 8563 | *N32*) |
| 8564 | LD="${LD-ld} -melf32bmipn32" |
| 8565 | ;; |
| 8566 | *64-bit*) |
| 8567 | LD="${LD-ld} -melf64bmip" |
| 8568 | ;; |
| 8569 | esac |
| 8570 | else |
| 8571 | case `$FILECMD conftest.$ac_objext` in |
| 8572 | *32-bit*) |
| 8573 | LD="${LD-ld} -32" |
| 8574 | ;; |
| 8575 | *N32*) |
| 8576 | LD="${LD-ld} -n32" |
| 8577 | ;; |
| 8578 | *64-bit*) |
| 8579 | LD="${LD-ld} -64" |
| 8580 | ;; |
| 8581 | esac |
| 8582 | fi |
| 8583 | fi |
| 8584 | rm -rf conftest* |
| 8585 | ;; |
| 8586 | |
| 8587 | mips64*-*linux*) |
| 8588 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8589 | # options accordingly. |
| 8590 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8592 | (eval $ac_compile) 2>&5 |
| 8593 | ac_status=$? |
| 8594 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8595 | test $ac_status = 0; }; then |
| 8596 | emul=elf |
| 8597 | case `$FILECMD conftest.$ac_objext` in |
| 8598 | *32-bit*) |
| 8599 | emul="${emul}32" |
| 8600 | ;; |
| 8601 | *64-bit*) |
| 8602 | emul="${emul}64" |
| 8603 | ;; |
| 8604 | esac |
| 8605 | case `$FILECMD conftest.$ac_objext` in |
| 8606 | *MSB*) |
| 8607 | emul="${emul}btsmip" |
| 8608 | ;; |
| 8609 | *LSB*) |
| 8610 | emul="${emul}ltsmip" |
| 8611 | ;; |
| 8612 | esac |
| 8613 | case `$FILECMD conftest.$ac_objext` in |
| 8614 | *N32*) |
| 8615 | emul="${emul}n32" |
| 8616 | ;; |
| 8617 | esac |
| 8618 | LD="${LD-ld} -m $emul" |
| 8619 | fi |
| 8620 | rm -rf conftest* |
| 8621 | ;; |
| 8622 | |
| 8623 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 8624 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 8625 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8626 | # options accordingly. Note that the listed cases only cover the |
| 8627 | # situations where additional linker options are needed (such as when |
| 8628 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 8629 | # vice versa); the common cases where no linker options are needed do |
| 8630 | # not appear in the list. |
| 8631 | echo 'int i;' > conftest.$ac_ext |
| 8632 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8633 | (eval $ac_compile) 2>&5 |
| 8634 | ac_status=$? |
| 8635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8636 | test $ac_status = 0; }; then |
| 8637 | case `$FILECMD conftest.o` in |
| 8638 | *32-bit*) |
| 8639 | case $host in |
| 8640 | x86_64-*kfreebsd*-gnu) |
| 8641 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8642 | ;; |
| 8643 | x86_64-*linux*) |
| 8644 | case `$FILECMD conftest.o` in |
| 8645 | *x86-64*) |
| 8646 | LD="${LD-ld} -m elf32_x86_64" |
| 8647 | ;; |
| 8648 | *) |
| 8649 | LD="${LD-ld} -m elf_i386" |
| 8650 | ;; |
| 8651 | esac |
| 8652 | ;; |
| 8653 | powerpc64le-*linux*) |
| 8654 | LD="${LD-ld} -m elf32lppclinux" |
| 8655 | ;; |
| 8656 | powerpc64-*linux*) |
| 8657 | LD="${LD-ld} -m elf32ppclinux" |
| 8658 | ;; |
| 8659 | s390x-*linux*) |
| 8660 | LD="${LD-ld} -m elf_s390" |
| 8661 | ;; |
| 8662 | sparc64-*linux*) |
| 8663 | LD="${LD-ld} -m elf32_sparc" |
| 8664 | ;; |
| 8665 | esac |
| 8666 | ;; |
| 8667 | *64-bit*) |
| 8668 | case $host in |
| 8669 | x86_64-*kfreebsd*-gnu) |
| 8670 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8671 | ;; |
| 8672 | x86_64-*linux*) |
| 8673 | LD="${LD-ld} -m elf_x86_64" |
| 8674 | ;; |
| 8675 | powerpcle-*linux*) |
| 8676 | LD="${LD-ld} -m elf64lppc" |
| 8677 | ;; |
| 8678 | powerpc-*linux*) |
| 8679 | LD="${LD-ld} -m elf64ppc" |
| 8680 | ;; |
| 8681 | s390*-*linux*|s390*-*tpf*) |
| 8682 | LD="${LD-ld} -m elf64_s390" |
| 8683 | ;; |
| 8684 | sparc*-*linux*) |
| 8685 | LD="${LD-ld} -m elf64_sparc" |
| 8686 | ;; |
| 8687 | esac |
| 8688 | ;; |
| 8689 | esac |
| 8690 | fi |
| 8691 | rm -rf conftest* |
| 8692 | ;; |
| 8693 | |
| 8694 | *-*-sco3.2v5*) |
| 8695 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8696 | SAVE_CFLAGS=$CFLAGS |
| 8697 | CFLAGS="$CFLAGS -belf" |
| 8698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8699 | printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 8700 | if test ${lt_cv_cc_needs_belf+y} |
| 8701 | then : |
| 8702 | printf %s "(cached) " >&6 |
| 8703 | else $as_nop |
| 8704 | ac_ext=c |
| 8705 | ac_cpp='$CPP $CPPFLAGS' |
| 8706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8709 | |
| 8710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8711 | /* end confdefs.h. */ |
| 8712 | |
| 8713 | int |
| 8714 | main (void) |
| 8715 | { |
| 8716 | |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | if ac_fn_c_try_link "$LINENO" |
| 8722 | then : |
| 8723 | lt_cv_cc_needs_belf=yes |
| 8724 | else $as_nop |
| 8725 | lt_cv_cc_needs_belf=no |
| 8726 | fi |
| 8727 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8728 | conftest$ac_exeext conftest.$ac_ext |
| 8729 | ac_ext=c |
| 8730 | ac_cpp='$CPP $CPPFLAGS' |
| 8731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8734 | |
| 8735 | fi |
| 8736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8737 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 8738 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 8739 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8740 | CFLAGS=$SAVE_CFLAGS |
| 8741 | fi |
| 8742 | ;; |
| 8743 | *-*solaris*) |
| 8744 | # Find out what ABI is being produced by ac_compile, and set linker |
| 8745 | # options accordingly. |
| 8746 | echo 'int i;' > conftest.$ac_ext |
| 8747 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8748 | (eval $ac_compile) 2>&5 |
| 8749 | ac_status=$? |
| 8750 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8751 | test $ac_status = 0; }; then |
| 8752 | case `$FILECMD conftest.o` in |
| 8753 | *64-bit*) |
| 8754 | case $lt_cv_prog_gnu_ld in |
| 8755 | yes*) |
| 8756 | case $host in |
| 8757 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8758 | LD="${LD-ld} -m elf_x86_64" |
| 8759 | ;; |
| 8760 | sparc*-*-solaris*) |
| 8761 | LD="${LD-ld} -m elf64_sparc" |
| 8762 | ;; |
| 8763 | esac |
| 8764 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8765 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8766 | LD=${LD-ld}_sol2 |
| 8767 | fi |
| 8768 | ;; |
| 8769 | *) |
| 8770 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8771 | LD="${LD-ld} -64" |
| 8772 | fi |
| 8773 | ;; |
| 8774 | esac |
| 8775 | ;; |
| 8776 | esac |
| 8777 | fi |
| 8778 | rm -rf conftest* |
| 8779 | ;; |
| 8780 | esac |
| 8781 | |
| 8782 | need_locks=$enable_libtool_lock |
| 8783 | |
| 8784 | if test -n "$ac_tool_prefix"; then |
| 8785 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8786 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8788 | printf %s "checking for $ac_word... " >&6; } |
| 8789 | if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 8790 | then : |
| 8791 | printf %s "(cached) " >&6 |
| 8792 | else $as_nop |
| 8793 | if test -n "$MANIFEST_TOOL"; then |
| 8794 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8795 | else |
| 8796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8797 | for as_dir in $PATH |
| 8798 | do |
| 8799 | IFS=$as_save_IFS |
| 8800 | case $as_dir in #((( |
| 8801 | '') as_dir=./ ;; |
| 8802 | */) ;; |
| 8803 | *) as_dir=$as_dir/ ;; |
| 8804 | esac |
| 8805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8806 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8807 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8808 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8809 | break 2 |
| 8810 | fi |
| 8811 | done |
| 8812 | done |
| 8813 | IFS=$as_save_IFS |
| 8814 | |
| 8815 | fi |
| 8816 | fi |
| 8817 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8818 | if test -n "$MANIFEST_TOOL"; then |
| 8819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8820 | printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 8821 | else |
| 8822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8823 | printf "%s\n" "no" >&6; } |
| 8824 | fi |
| 8825 | |
| 8826 | |
| 8827 | fi |
| 8828 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8829 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8830 | # Extract the first word of "mt", so it can be a program name with args. |
| 8831 | set dummy mt; ac_word=$2 |
| 8832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8833 | printf %s "checking for $ac_word... " >&6; } |
| 8834 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 8835 | then : |
| 8836 | printf %s "(cached) " >&6 |
| 8837 | else $as_nop |
| 8838 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8839 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8840 | else |
| 8841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8842 | for as_dir in $PATH |
| 8843 | do |
| 8844 | IFS=$as_save_IFS |
| 8845 | case $as_dir in #((( |
| 8846 | '') as_dir=./ ;; |
| 8847 | */) ;; |
| 8848 | *) as_dir=$as_dir/ ;; |
| 8849 | esac |
| 8850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8851 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8852 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8853 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8854 | break 2 |
| 8855 | fi |
| 8856 | done |
| 8857 | done |
| 8858 | IFS=$as_save_IFS |
| 8859 | |
| 8860 | fi |
| 8861 | fi |
| 8862 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8863 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8865 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8866 | else |
| 8867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8868 | printf "%s\n" "no" >&6; } |
| 8869 | fi |
| 8870 | |
| 8871 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8872 | MANIFEST_TOOL=":" |
| 8873 | else |
| 8874 | case $cross_compiling:$ac_tool_warned in |
| 8875 | yes:) |
| 8876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8877 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8878 | ac_tool_warned=yes ;; |
| 8879 | esac |
| 8880 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8881 | fi |
| 8882 | else |
| 8883 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8884 | fi |
| 8885 | |
| 8886 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8888 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8889 | if test ${lt_cv_path_mainfest_tool+y} |
| 8890 | then : |
| 8891 | printf %s "(cached) " >&6 |
| 8892 | else $as_nop |
| 8893 | lt_cv_path_mainfest_tool=no |
| 8894 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8895 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8896 | cat conftest.err >&5 |
| 8897 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8898 | lt_cv_path_mainfest_tool=yes |
| 8899 | fi |
| 8900 | rm -f conftest* |
| 8901 | fi |
| 8902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8903 | printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } |
| 8904 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 8905 | MANIFEST_TOOL=: |
| 8906 | fi |
| 8907 | |
| 8908 | |
| 8909 | |
| 8910 | |
| 8911 | |
| 8912 | |
| 8913 | case $host_os in |
| 8914 | rhapsody* | darwin*) |
| 8915 | if test -n "$ac_tool_prefix"; then |
| 8916 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8917 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8919 | printf %s "checking for $ac_word... " >&6; } |
| 8920 | if test ${ac_cv_prog_DSYMUTIL+y} |
| 8921 | then : |
| 8922 | printf %s "(cached) " >&6 |
| 8923 | else $as_nop |
| 8924 | if test -n "$DSYMUTIL"; then |
| 8925 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8926 | else |
| 8927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8928 | for as_dir in $PATH |
| 8929 | do |
| 8930 | IFS=$as_save_IFS |
| 8931 | case $as_dir in #((( |
| 8932 | '') as_dir=./ ;; |
| 8933 | */) ;; |
| 8934 | *) as_dir=$as_dir/ ;; |
| 8935 | esac |
| 8936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8937 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8938 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8939 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8940 | break 2 |
| 8941 | fi |
| 8942 | done |
| 8943 | done |
| 8944 | IFS=$as_save_IFS |
| 8945 | |
| 8946 | fi |
| 8947 | fi |
| 8948 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8949 | if test -n "$DSYMUTIL"; then |
| 8950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8951 | printf "%s\n" "$DSYMUTIL" >&6; } |
| 8952 | else |
| 8953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8954 | printf "%s\n" "no" >&6; } |
| 8955 | fi |
| 8956 | |
| 8957 | |
| 8958 | fi |
| 8959 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8960 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8961 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8962 | set dummy dsymutil; ac_word=$2 |
| 8963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8964 | printf %s "checking for $ac_word... " >&6; } |
| 8965 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 8966 | then : |
| 8967 | printf %s "(cached) " >&6 |
| 8968 | else $as_nop |
| 8969 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8970 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8971 | else |
| 8972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8973 | for as_dir in $PATH |
| 8974 | do |
| 8975 | IFS=$as_save_IFS |
| 8976 | case $as_dir in #((( |
| 8977 | '') as_dir=./ ;; |
| 8978 | */) ;; |
| 8979 | *) as_dir=$as_dir/ ;; |
| 8980 | esac |
| 8981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8982 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8983 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8984 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8985 | break 2 |
| 8986 | fi |
| 8987 | done |
| 8988 | done |
| 8989 | IFS=$as_save_IFS |
| 8990 | |
| 8991 | fi |
| 8992 | fi |
| 8993 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8994 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8996 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 8997 | else |
| 8998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8999 | printf "%s\n" "no" >&6; } |
| 9000 | fi |
| 9001 | |
| 9002 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 9003 | DSYMUTIL=":" |
| 9004 | else |
| 9005 | case $cross_compiling:$ac_tool_warned in |
| 9006 | yes:) |
| 9007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9008 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9009 | ac_tool_warned=yes ;; |
| 9010 | esac |
| 9011 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 9012 | fi |
| 9013 | else |
| 9014 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9015 | fi |
| 9016 | |
| 9017 | if test -n "$ac_tool_prefix"; then |
| 9018 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9019 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 9020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9021 | printf %s "checking for $ac_word... " >&6; } |
| 9022 | if test ${ac_cv_prog_NMEDIT+y} |
| 9023 | then : |
| 9024 | printf %s "(cached) " >&6 |
| 9025 | else $as_nop |
| 9026 | if test -n "$NMEDIT"; then |
| 9027 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9028 | else |
| 9029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9030 | for as_dir in $PATH |
| 9031 | do |
| 9032 | IFS=$as_save_IFS |
| 9033 | case $as_dir in #((( |
| 9034 | '') as_dir=./ ;; |
| 9035 | */) ;; |
| 9036 | *) as_dir=$as_dir/ ;; |
| 9037 | esac |
| 9038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9039 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9040 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 9041 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9042 | break 2 |
| 9043 | fi |
| 9044 | done |
| 9045 | done |
| 9046 | IFS=$as_save_IFS |
| 9047 | |
| 9048 | fi |
| 9049 | fi |
| 9050 | NMEDIT=$ac_cv_prog_NMEDIT |
| 9051 | if test -n "$NMEDIT"; then |
| 9052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 9053 | printf "%s\n" "$NMEDIT" >&6; } |
| 9054 | else |
| 9055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9056 | printf "%s\n" "no" >&6; } |
| 9057 | fi |
| 9058 | |
| 9059 | |
| 9060 | fi |
| 9061 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 9062 | ac_ct_NMEDIT=$NMEDIT |
| 9063 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 9064 | set dummy nmedit; ac_word=$2 |
| 9065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9066 | printf %s "checking for $ac_word... " >&6; } |
| 9067 | if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 9068 | then : |
| 9069 | printf %s "(cached) " >&6 |
| 9070 | else $as_nop |
| 9071 | if test -n "$ac_ct_NMEDIT"; then |
| 9072 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9073 | else |
| 9074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9075 | for as_dir in $PATH |
| 9076 | do |
| 9077 | IFS=$as_save_IFS |
| 9078 | case $as_dir in #((( |
| 9079 | '') as_dir=./ ;; |
| 9080 | */) ;; |
| 9081 | *) as_dir=$as_dir/ ;; |
| 9082 | esac |
| 9083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9084 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9085 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 9086 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9087 | break 2 |
| 9088 | fi |
| 9089 | done |
| 9090 | done |
| 9091 | IFS=$as_save_IFS |
| 9092 | |
| 9093 | fi |
| 9094 | fi |
| 9095 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9096 | if test -n "$ac_ct_NMEDIT"; then |
| 9097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 9098 | printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 9099 | else |
| 9100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9101 | printf "%s\n" "no" >&6; } |
| 9102 | fi |
| 9103 | |
| 9104 | if test "x$ac_ct_NMEDIT" = x; then |
| 9105 | NMEDIT=":" |
| 9106 | else |
| 9107 | case $cross_compiling:$ac_tool_warned in |
| 9108 | yes:) |
| 9109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9110 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9111 | ac_tool_warned=yes ;; |
| 9112 | esac |
| 9113 | NMEDIT=$ac_ct_NMEDIT |
| 9114 | fi |
| 9115 | else |
| 9116 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 9117 | fi |
| 9118 | |
| 9119 | if test -n "$ac_tool_prefix"; then |
| 9120 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9121 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 9122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9123 | printf %s "checking for $ac_word... " >&6; } |
| 9124 | if test ${ac_cv_prog_LIPO+y} |
| 9125 | then : |
| 9126 | printf %s "(cached) " >&6 |
| 9127 | else $as_nop |
| 9128 | if test -n "$LIPO"; then |
| 9129 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9130 | else |
| 9131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9132 | for as_dir in $PATH |
| 9133 | do |
| 9134 | IFS=$as_save_IFS |
| 9135 | case $as_dir in #((( |
| 9136 | '') as_dir=./ ;; |
| 9137 | */) ;; |
| 9138 | *) as_dir=$as_dir/ ;; |
| 9139 | esac |
| 9140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9141 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9142 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 9143 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9144 | break 2 |
| 9145 | fi |
| 9146 | done |
| 9147 | done |
| 9148 | IFS=$as_save_IFS |
| 9149 | |
| 9150 | fi |
| 9151 | fi |
| 9152 | LIPO=$ac_cv_prog_LIPO |
| 9153 | if test -n "$LIPO"; then |
| 9154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 9155 | printf "%s\n" "$LIPO" >&6; } |
| 9156 | else |
| 9157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9158 | printf "%s\n" "no" >&6; } |
| 9159 | fi |
| 9160 | |
| 9161 | |
| 9162 | fi |
| 9163 | if test -z "$ac_cv_prog_LIPO"; then |
| 9164 | ac_ct_LIPO=$LIPO |
| 9165 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9166 | set dummy lipo; ac_word=$2 |
| 9167 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9168 | printf %s "checking for $ac_word... " >&6; } |
| 9169 | if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 9170 | then : |
| 9171 | printf %s "(cached) " >&6 |
| 9172 | else $as_nop |
| 9173 | if test -n "$ac_ct_LIPO"; then |
| 9174 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9175 | else |
| 9176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9177 | for as_dir in $PATH |
| 9178 | do |
| 9179 | IFS=$as_save_IFS |
| 9180 | case $as_dir in #((( |
| 9181 | '') as_dir=./ ;; |
| 9182 | */) ;; |
| 9183 | *) as_dir=$as_dir/ ;; |
| 9184 | esac |
| 9185 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9186 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9187 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 9188 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9189 | break 2 |
| 9190 | fi |
| 9191 | done |
| 9192 | done |
| 9193 | IFS=$as_save_IFS |
| 9194 | |
| 9195 | fi |
| 9196 | fi |
| 9197 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9198 | if test -n "$ac_ct_LIPO"; then |
| 9199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9200 | printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 9201 | else |
| 9202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9203 | printf "%s\n" "no" >&6; } |
| 9204 | fi |
| 9205 | |
| 9206 | if test "x$ac_ct_LIPO" = x; then |
| 9207 | LIPO=":" |
| 9208 | else |
| 9209 | case $cross_compiling:$ac_tool_warned in |
| 9210 | yes:) |
| 9211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9212 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9213 | ac_tool_warned=yes ;; |
| 9214 | esac |
| 9215 | LIPO=$ac_ct_LIPO |
| 9216 | fi |
| 9217 | else |
| 9218 | LIPO="$ac_cv_prog_LIPO" |
| 9219 | fi |
| 9220 | |
| 9221 | if test -n "$ac_tool_prefix"; then |
| 9222 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9223 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9225 | printf %s "checking for $ac_word... " >&6; } |
| 9226 | if test ${ac_cv_prog_OTOOL+y} |
| 9227 | then : |
| 9228 | printf %s "(cached) " >&6 |
| 9229 | else $as_nop |
| 9230 | if test -n "$OTOOL"; then |
| 9231 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9232 | else |
| 9233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9234 | for as_dir in $PATH |
| 9235 | do |
| 9236 | IFS=$as_save_IFS |
| 9237 | case $as_dir in #((( |
| 9238 | '') as_dir=./ ;; |
| 9239 | */) ;; |
| 9240 | *) as_dir=$as_dir/ ;; |
| 9241 | esac |
| 9242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9243 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9244 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9245 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9246 | break 2 |
| 9247 | fi |
| 9248 | done |
| 9249 | done |
| 9250 | IFS=$as_save_IFS |
| 9251 | |
| 9252 | fi |
| 9253 | fi |
| 9254 | OTOOL=$ac_cv_prog_OTOOL |
| 9255 | if test -n "$OTOOL"; then |
| 9256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9257 | printf "%s\n" "$OTOOL" >&6; } |
| 9258 | else |
| 9259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9260 | printf "%s\n" "no" >&6; } |
| 9261 | fi |
| 9262 | |
| 9263 | |
| 9264 | fi |
| 9265 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9266 | ac_ct_OTOOL=$OTOOL |
| 9267 | # Extract the first word of "otool", so it can be a program name with args. |
| 9268 | set dummy otool; ac_word=$2 |
| 9269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9270 | printf %s "checking for $ac_word... " >&6; } |
| 9271 | if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 9272 | then : |
| 9273 | printf %s "(cached) " >&6 |
| 9274 | else $as_nop |
| 9275 | if test -n "$ac_ct_OTOOL"; then |
| 9276 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9277 | else |
| 9278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9279 | for as_dir in $PATH |
| 9280 | do |
| 9281 | IFS=$as_save_IFS |
| 9282 | case $as_dir in #((( |
| 9283 | '') as_dir=./ ;; |
| 9284 | */) ;; |
| 9285 | *) as_dir=$as_dir/ ;; |
| 9286 | esac |
| 9287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9288 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9289 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 9290 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9291 | break 2 |
| 9292 | fi |
| 9293 | done |
| 9294 | done |
| 9295 | IFS=$as_save_IFS |
| 9296 | |
| 9297 | fi |
| 9298 | fi |
| 9299 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9300 | if test -n "$ac_ct_OTOOL"; then |
| 9301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9302 | printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 9303 | else |
| 9304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9305 | printf "%s\n" "no" >&6; } |
| 9306 | fi |
| 9307 | |
| 9308 | if test "x$ac_ct_OTOOL" = x; then |
| 9309 | OTOOL=":" |
| 9310 | else |
| 9311 | case $cross_compiling:$ac_tool_warned in |
| 9312 | yes:) |
| 9313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9314 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9315 | ac_tool_warned=yes ;; |
| 9316 | esac |
| 9317 | OTOOL=$ac_ct_OTOOL |
| 9318 | fi |
| 9319 | else |
| 9320 | OTOOL="$ac_cv_prog_OTOOL" |
| 9321 | fi |
| 9322 | |
| 9323 | if test -n "$ac_tool_prefix"; then |
| 9324 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9325 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9327 | printf %s "checking for $ac_word... " >&6; } |
| 9328 | if test ${ac_cv_prog_OTOOL64+y} |
| 9329 | then : |
| 9330 | printf %s "(cached) " >&6 |
| 9331 | else $as_nop |
| 9332 | if test -n "$OTOOL64"; then |
| 9333 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9334 | else |
| 9335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9336 | for as_dir in $PATH |
| 9337 | do |
| 9338 | IFS=$as_save_IFS |
| 9339 | case $as_dir in #((( |
| 9340 | '') as_dir=./ ;; |
| 9341 | */) ;; |
| 9342 | *) as_dir=$as_dir/ ;; |
| 9343 | esac |
| 9344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9345 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9346 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9347 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9348 | break 2 |
| 9349 | fi |
| 9350 | done |
| 9351 | done |
| 9352 | IFS=$as_save_IFS |
| 9353 | |
| 9354 | fi |
| 9355 | fi |
| 9356 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 9357 | if test -n "$OTOOL64"; then |
| 9358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9359 | printf "%s\n" "$OTOOL64" >&6; } |
| 9360 | else |
| 9361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9362 | printf "%s\n" "no" >&6; } |
| 9363 | fi |
| 9364 | |
| 9365 | |
| 9366 | fi |
| 9367 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 9368 | ac_ct_OTOOL64=$OTOOL64 |
| 9369 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9370 | set dummy otool64; ac_word=$2 |
| 9371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9372 | printf %s "checking for $ac_word... " >&6; } |
| 9373 | if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 9374 | then : |
| 9375 | printf %s "(cached) " >&6 |
| 9376 | else $as_nop |
| 9377 | if test -n "$ac_ct_OTOOL64"; then |
| 9378 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9379 | else |
| 9380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9381 | for as_dir in $PATH |
| 9382 | do |
| 9383 | IFS=$as_save_IFS |
| 9384 | case $as_dir in #((( |
| 9385 | '') as_dir=./ ;; |
| 9386 | */) ;; |
| 9387 | *) as_dir=$as_dir/ ;; |
| 9388 | esac |
| 9389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9390 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9391 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9392 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9393 | break 2 |
| 9394 | fi |
| 9395 | done |
| 9396 | done |
| 9397 | IFS=$as_save_IFS |
| 9398 | |
| 9399 | fi |
| 9400 | fi |
| 9401 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9402 | if test -n "$ac_ct_OTOOL64"; then |
| 9403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9404 | printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 9405 | else |
| 9406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9407 | printf "%s\n" "no" >&6; } |
| 9408 | fi |
| 9409 | |
| 9410 | if test "x$ac_ct_OTOOL64" = x; then |
| 9411 | OTOOL64=":" |
| 9412 | else |
| 9413 | case $cross_compiling:$ac_tool_warned in |
| 9414 | yes:) |
| 9415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9416 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9417 | ac_tool_warned=yes ;; |
| 9418 | esac |
| 9419 | OTOOL64=$ac_ct_OTOOL64 |
| 9420 | fi |
| 9421 | else |
| 9422 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9423 | fi |
| 9424 | |
| 9425 | |
| 9426 | |
| 9427 | |
| 9428 | |
| 9429 | |
| 9430 | |
| 9431 | |
| 9432 | |
| 9433 | |
| 9434 | |
| 9435 | |
| 9436 | |
| 9437 | |
| 9438 | |
| 9439 | |
| 9440 | |
| 9441 | |
| 9442 | |
| 9443 | |
| 9444 | |
| 9445 | |
| 9446 | |
| 9447 | |
| 9448 | |
| 9449 | |
| 9450 | |
| 9451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9452 | printf %s "checking for -single_module linker flag... " >&6; } |
| 9453 | if test ${lt_cv_apple_cc_single_mod+y} |
| 9454 | then : |
| 9455 | printf %s "(cached) " >&6 |
| 9456 | else $as_nop |
| 9457 | lt_cv_apple_cc_single_mod=no |
| 9458 | if test -z "$LT_MULTI_MODULE"; then |
| 9459 | # By default we will add the -single_module flag. You can override |
| 9460 | # by either setting the environment variable LT_MULTI_MODULE |
| 9461 | # non-empty at configure time, or by adding -multi_module to the |
| 9462 | # link flags. |
| 9463 | rm -rf libconftest.dylib* |
| 9464 | echo "int foo(void){return 1;}" > conftest.c |
| 9465 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9466 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9467 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9468 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9469 | _lt_result=$? |
| 9470 | # If there is a non-empty error log, and "single_module" |
| 9471 | # appears in it, assume the flag caused a linker warning |
| 9472 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 9473 | cat conftest.err >&5 |
| 9474 | # Otherwise, if the output was created with a 0 exit code from |
| 9475 | # the compiler, it worked. |
| 9476 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 9477 | lt_cv_apple_cc_single_mod=yes |
| 9478 | else |
| 9479 | cat conftest.err >&5 |
| 9480 | fi |
| 9481 | rm -rf libconftest.dylib* |
| 9482 | rm -f conftest.* |
| 9483 | fi |
| 9484 | fi |
| 9485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9486 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 9487 | |
| 9488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9489 | printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 9490 | if test ${lt_cv_ld_exported_symbols_list+y} |
| 9491 | then : |
| 9492 | printf %s "(cached) " >&6 |
| 9493 | else $as_nop |
| 9494 | lt_cv_ld_exported_symbols_list=no |
| 9495 | save_LDFLAGS=$LDFLAGS |
| 9496 | echo "_main" > conftest.sym |
| 9497 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9499 | /* end confdefs.h. */ |
| 9500 | |
| 9501 | int |
| 9502 | main (void) |
| 9503 | { |
| 9504 | |
| 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
| 9509 | if ac_fn_c_try_link "$LINENO" |
| 9510 | then : |
| 9511 | lt_cv_ld_exported_symbols_list=yes |
| 9512 | else $as_nop |
| 9513 | lt_cv_ld_exported_symbols_list=no |
| 9514 | fi |
| 9515 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9516 | conftest$ac_exeext conftest.$ac_ext |
| 9517 | LDFLAGS=$save_LDFLAGS |
| 9518 | |
| 9519 | fi |
| 9520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9521 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9522 | |
| 9523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9524 | printf %s "checking for -force_load linker flag... " >&6; } |
| 9525 | if test ${lt_cv_ld_force_load+y} |
| 9526 | then : |
| 9527 | printf %s "(cached) " >&6 |
| 9528 | else $as_nop |
| 9529 | lt_cv_ld_force_load=no |
| 9530 | cat > conftest.c << _LT_EOF |
| 9531 | int forced_loaded() { return 2;} |
| 9532 | _LT_EOF |
| 9533 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9534 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9535 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 |
| 9536 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5 |
| 9537 | echo "$RANLIB libconftest.a" >&5 |
| 9538 | $RANLIB libconftest.a 2>&5 |
| 9539 | cat > conftest.c << _LT_EOF |
| 9540 | int main() { return 0;} |
| 9541 | _LT_EOF |
| 9542 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9543 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9544 | _lt_result=$? |
| 9545 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 9546 | cat conftest.err >&5 |
| 9547 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 9548 | lt_cv_ld_force_load=yes |
| 9549 | else |
| 9550 | cat conftest.err >&5 |
| 9551 | fi |
| 9552 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9553 | rm -rf conftest.dSYM |
| 9554 | |
| 9555 | fi |
| 9556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9557 | printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 9558 | case $host_os in |
| 9559 | rhapsody* | darwin1.[012]) |
| 9560 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 9561 | darwin1.*) |
| 9562 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9563 | darwin*) |
| 9564 | case $MACOSX_DEPLOYMENT_TARGET,$host in |
| 9565 | 10.[012],*|,*powerpc*-darwin[5-8]*) |
| 9566 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 9567 | *) |
| 9568 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 9569 | esac |
| 9570 | ;; |
| 9571 | esac |
| 9572 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 9573 | _lt_dar_single_mod='$single_module' |
| 9574 | fi |
| 9575 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 9576 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 9577 | else |
| 9578 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 9579 | fi |
| 9580 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 9581 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9582 | else |
| 9583 | _lt_dsymutil= |
| 9584 | fi |
| 9585 | ;; |
| 9586 | esac |
| 9587 | |
| 9588 | # func_munge_path_list VARIABLE PATH |
| 9589 | # ----------------------------------- |
| 9590 | # VARIABLE is name of variable containing _space_ separated list of |
| 9591 | # directories to be munged by the contents of PATH, which is string |
| 9592 | # having a format: |
| 9593 | # "DIR[:DIR]:" |
| 9594 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 9595 | # ":DIR[:DIR]" |
| 9596 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 9597 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 9598 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 9599 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 9600 | # "DIR[:DIR]" |
| 9601 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 9602 | func_munge_path_list () |
| 9603 | { |
| 9604 | case x$2 in |
| 9605 | x) |
| 9606 | ;; |
| 9607 | *:) |
| 9608 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 9609 | ;; |
| 9610 | x:*) |
| 9611 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 9612 | ;; |
| 9613 | *::*) |
| 9614 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 9615 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 9616 | ;; |
| 9617 | *) |
| 9618 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 9619 | ;; |
| 9620 | esac |
| 9621 | } |
| 9622 | |
| 9623 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9624 | " |
| 9625 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 9626 | then : |
| 9627 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 9628 | |
| 9629 | fi |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
| 9634 | |
| 9635 | # Set options |
| 9636 | enable_win32_dll=yes |
| 9637 | |
| 9638 | case $host in |
| 9639 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| 9640 | if test -n "$ac_tool_prefix"; then |
| 9641 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 9642 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 9643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9644 | printf %s "checking for $ac_word... " >&6; } |
| 9645 | if test ${ac_cv_prog_AS+y} |
| 9646 | then : |
| 9647 | printf %s "(cached) " >&6 |
| 9648 | else $as_nop |
| 9649 | if test -n "$AS"; then |
| 9650 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 9651 | else |
| 9652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9653 | for as_dir in $PATH |
| 9654 | do |
| 9655 | IFS=$as_save_IFS |
| 9656 | case $as_dir in #((( |
| 9657 | '') as_dir=./ ;; |
| 9658 | */) ;; |
| 9659 | *) as_dir=$as_dir/ ;; |
| 9660 | esac |
| 9661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9662 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9663 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 9664 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9665 | break 2 |
| 9666 | fi |
| 9667 | done |
| 9668 | done |
| 9669 | IFS=$as_save_IFS |
| 9670 | |
| 9671 | fi |
| 9672 | fi |
| 9673 | AS=$ac_cv_prog_AS |
| 9674 | if test -n "$AS"; then |
| 9675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 9676 | printf "%s\n" "$AS" >&6; } |
| 9677 | else |
| 9678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9679 | printf "%s\n" "no" >&6; } |
| 9680 | fi |
| 9681 | |
| 9682 | |
| 9683 | fi |
| 9684 | if test -z "$ac_cv_prog_AS"; then |
| 9685 | ac_ct_AS=$AS |
| 9686 | # Extract the first word of "as", so it can be a program name with args. |
| 9687 | set dummy as; ac_word=$2 |
| 9688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9689 | printf %s "checking for $ac_word... " >&6; } |
| 9690 | if test ${ac_cv_prog_ac_ct_AS+y} |
| 9691 | then : |
| 9692 | printf %s "(cached) " >&6 |
| 9693 | else $as_nop |
| 9694 | if test -n "$ac_ct_AS"; then |
| 9695 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 9696 | else |
| 9697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9698 | for as_dir in $PATH |
| 9699 | do |
| 9700 | IFS=$as_save_IFS |
| 9701 | case $as_dir in #((( |
| 9702 | '') as_dir=./ ;; |
| 9703 | */) ;; |
| 9704 | *) as_dir=$as_dir/ ;; |
| 9705 | esac |
| 9706 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9707 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9708 | ac_cv_prog_ac_ct_AS="as" |
| 9709 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9710 | break 2 |
| 9711 | fi |
| 9712 | done |
| 9713 | done |
| 9714 | IFS=$as_save_IFS |
| 9715 | |
| 9716 | fi |
| 9717 | fi |
| 9718 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 9719 | if test -n "$ac_ct_AS"; then |
| 9720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 9721 | printf "%s\n" "$ac_ct_AS" >&6; } |
| 9722 | else |
| 9723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9724 | printf "%s\n" "no" >&6; } |
| 9725 | fi |
| 9726 | |
| 9727 | if test "x$ac_ct_AS" = x; then |
| 9728 | AS="false" |
| 9729 | else |
| 9730 | case $cross_compiling:$ac_tool_warned in |
| 9731 | yes:) |
| 9732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9733 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9734 | ac_tool_warned=yes ;; |
| 9735 | esac |
| 9736 | AS=$ac_ct_AS |
| 9737 | fi |
| 9738 | else |
| 9739 | AS="$ac_cv_prog_AS" |
| 9740 | fi |
| 9741 | |
| 9742 | if test -n "$ac_tool_prefix"; then |
| 9743 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 9744 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 9745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9746 | printf %s "checking for $ac_word... " >&6; } |
| 9747 | if test ${ac_cv_prog_DLLTOOL+y} |
| 9748 | then : |
| 9749 | printf %s "(cached) " >&6 |
| 9750 | else $as_nop |
| 9751 | if test -n "$DLLTOOL"; then |
| 9752 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 9753 | else |
| 9754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9755 | for as_dir in $PATH |
| 9756 | do |
| 9757 | IFS=$as_save_IFS |
| 9758 | case $as_dir in #((( |
| 9759 | '') as_dir=./ ;; |
| 9760 | */) ;; |
| 9761 | *) as_dir=$as_dir/ ;; |
| 9762 | esac |
| 9763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9764 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9765 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 9766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9767 | break 2 |
| 9768 | fi |
| 9769 | done |
| 9770 | done |
| 9771 | IFS=$as_save_IFS |
| 9772 | |
| 9773 | fi |
| 9774 | fi |
| 9775 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 9776 | if test -n "$DLLTOOL"; then |
| 9777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 9778 | printf "%s\n" "$DLLTOOL" >&6; } |
| 9779 | else |
| 9780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9781 | printf "%s\n" "no" >&6; } |
| 9782 | fi |
| 9783 | |
| 9784 | |
| 9785 | fi |
| 9786 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 9787 | ac_ct_DLLTOOL=$DLLTOOL |
| 9788 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 9789 | set dummy dlltool; ac_word=$2 |
| 9790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9791 | printf %s "checking for $ac_word... " >&6; } |
| 9792 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 9793 | then : |
| 9794 | printf %s "(cached) " >&6 |
| 9795 | else $as_nop |
| 9796 | if test -n "$ac_ct_DLLTOOL"; then |
| 9797 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 9798 | else |
| 9799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9800 | for as_dir in $PATH |
| 9801 | do |
| 9802 | IFS=$as_save_IFS |
| 9803 | case $as_dir in #((( |
| 9804 | '') as_dir=./ ;; |
| 9805 | */) ;; |
| 9806 | *) as_dir=$as_dir/ ;; |
| 9807 | esac |
| 9808 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9809 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9810 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 9811 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9812 | break 2 |
| 9813 | fi |
| 9814 | done |
| 9815 | done |
| 9816 | IFS=$as_save_IFS |
| 9817 | |
| 9818 | fi |
| 9819 | fi |
| 9820 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 9821 | if test -n "$ac_ct_DLLTOOL"; then |
| 9822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 9823 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 9824 | else |
| 9825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9826 | printf "%s\n" "no" >&6; } |
| 9827 | fi |
| 9828 | |
| 9829 | if test "x$ac_ct_DLLTOOL" = x; then |
| 9830 | DLLTOOL="false" |
| 9831 | else |
| 9832 | case $cross_compiling:$ac_tool_warned in |
| 9833 | yes:) |
| 9834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9835 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9836 | ac_tool_warned=yes ;; |
| 9837 | esac |
| 9838 | DLLTOOL=$ac_ct_DLLTOOL |
| 9839 | fi |
| 9840 | else |
| 9841 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 9842 | fi |
| 9843 | |
| 9844 | if test -n "$ac_tool_prefix"; then |
| 9845 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 9846 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 9847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9848 | printf %s "checking for $ac_word... " >&6; } |
| 9849 | if test ${ac_cv_prog_OBJDUMP+y} |
| 9850 | then : |
| 9851 | printf %s "(cached) " >&6 |
| 9852 | else $as_nop |
| 9853 | if test -n "$OBJDUMP"; then |
| 9854 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 9855 | else |
| 9856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9857 | for as_dir in $PATH |
| 9858 | do |
| 9859 | IFS=$as_save_IFS |
| 9860 | case $as_dir in #((( |
| 9861 | '') as_dir=./ ;; |
| 9862 | */) ;; |
| 9863 | *) as_dir=$as_dir/ ;; |
| 9864 | esac |
| 9865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9866 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9867 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 9868 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9869 | break 2 |
| 9870 | fi |
| 9871 | done |
| 9872 | done |
| 9873 | IFS=$as_save_IFS |
| 9874 | |
| 9875 | fi |
| 9876 | fi |
| 9877 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 9878 | if test -n "$OBJDUMP"; then |
| 9879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 9880 | printf "%s\n" "$OBJDUMP" >&6; } |
| 9881 | else |
| 9882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9883 | printf "%s\n" "no" >&6; } |
| 9884 | fi |
| 9885 | |
| 9886 | |
| 9887 | fi |
| 9888 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 9889 | ac_ct_OBJDUMP=$OBJDUMP |
| 9890 | # Extract the first word of "objdump", so it can be a program name with args. |
| 9891 | set dummy objdump; ac_word=$2 |
| 9892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9893 | printf %s "checking for $ac_word... " >&6; } |
| 9894 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 9895 | then : |
| 9896 | printf %s "(cached) " >&6 |
| 9897 | else $as_nop |
| 9898 | if test -n "$ac_ct_OBJDUMP"; then |
| 9899 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 9900 | else |
| 9901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9902 | for as_dir in $PATH |
| 9903 | do |
| 9904 | IFS=$as_save_IFS |
| 9905 | case $as_dir in #((( |
| 9906 | '') as_dir=./ ;; |
| 9907 | */) ;; |
| 9908 | *) as_dir=$as_dir/ ;; |
| 9909 | esac |
| 9910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9911 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9912 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 9913 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9914 | break 2 |
| 9915 | fi |
| 9916 | done |
| 9917 | done |
| 9918 | IFS=$as_save_IFS |
| 9919 | |
| 9920 | fi |
| 9921 | fi |
| 9922 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 9923 | if test -n "$ac_ct_OBJDUMP"; then |
| 9924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 9925 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 9926 | else |
| 9927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9928 | printf "%s\n" "no" >&6; } |
| 9929 | fi |
| 9930 | |
| 9931 | if test "x$ac_ct_OBJDUMP" = x; then |
| 9932 | OBJDUMP="false" |
| 9933 | else |
| 9934 | case $cross_compiling:$ac_tool_warned in |
| 9935 | yes:) |
| 9936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9937 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9938 | ac_tool_warned=yes ;; |
| 9939 | esac |
| 9940 | OBJDUMP=$ac_ct_OBJDUMP |
| 9941 | fi |
| 9942 | else |
| 9943 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 9944 | fi |
| 9945 | |
| 9946 | ;; |
| 9947 | esac |
| 9948 | |
| 9949 | test -z "$AS" && AS=as |
| 9950 | |
| 9951 | |
| 9952 | |
| 9953 | |
| 9954 | |
| 9955 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | |
| 9961 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | |
| 9966 | # Check whether --enable-static was given. |
| 9967 | if test ${enable_static+y} |
| 9968 | then : |
| 9969 | enableval=$enable_static; p=${PACKAGE-default} |
| 9970 | case $enableval in |
| 9971 | yes) enable_static=yes ;; |
| 9972 | no) enable_static=no ;; |
| 9973 | *) |
| 9974 | enable_static=no |
| 9975 | # Look at the argument we got. We use all the common list separators. |
| 9976 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9977 | for pkg in $enableval; do |
| 9978 | IFS=$lt_save_ifs |
| 9979 | if test "X$pkg" = "X$p"; then |
| 9980 | enable_static=yes |
| 9981 | fi |
| 9982 | done |
| 9983 | IFS=$lt_save_ifs |
| 9984 | ;; |
| 9985 | esac |
| 9986 | else $as_nop |
| 9987 | enable_static=no |
| 9988 | fi |
| 9989 | |
| 9990 | |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | enable_dlopen=no |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | # Check whether --enable-shared was given. |
| 10004 | if test ${enable_shared+y} |
| 10005 | then : |
| 10006 | enableval=$enable_shared; p=${PACKAGE-default} |
| 10007 | case $enableval in |
| 10008 | yes) enable_shared=yes ;; |
| 10009 | no) enable_shared=no ;; |
| 10010 | *) |
| 10011 | enable_shared=no |
| 10012 | # Look at the argument we got. We use all the common list separators. |
| 10013 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10014 | for pkg in $enableval; do |
| 10015 | IFS=$lt_save_ifs |
| 10016 | if test "X$pkg" = "X$p"; then |
| 10017 | enable_shared=yes |
| 10018 | fi |
| 10019 | done |
| 10020 | IFS=$lt_save_ifs |
| 10021 | ;; |
| 10022 | esac |
| 10023 | else $as_nop |
| 10024 | enable_shared=yes |
| 10025 | fi |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | # Check whether --with-pic was given. |
| 10038 | if test ${with_pic+y} |
| 10039 | then : |
| 10040 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 10041 | case $withval in |
| 10042 | yes|no) pic_mode=$withval ;; |
| 10043 | *) |
| 10044 | pic_mode=default |
| 10045 | # Look at the argument we got. We use all the common list separators. |
| 10046 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10047 | for lt_pkg in $withval; do |
| 10048 | IFS=$lt_save_ifs |
| 10049 | if test "X$lt_pkg" = "X$lt_p"; then |
| 10050 | pic_mode=yes |
| 10051 | fi |
| 10052 | done |
| 10053 | IFS=$lt_save_ifs |
| 10054 | ;; |
| 10055 | esac |
| 10056 | else $as_nop |
| 10057 | pic_mode=default |
| 10058 | fi |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | # Check whether --enable-fast-install was given. |
| 10068 | if test ${enable_fast_install+y} |
| 10069 | then : |
| 10070 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 10071 | case $enableval in |
| 10072 | yes) enable_fast_install=yes ;; |
| 10073 | no) enable_fast_install=no ;; |
| 10074 | *) |
| 10075 | enable_fast_install=no |
| 10076 | # Look at the argument we got. We use all the common list separators. |
| 10077 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 10078 | for pkg in $enableval; do |
| 10079 | IFS=$lt_save_ifs |
| 10080 | if test "X$pkg" = "X$p"; then |
| 10081 | enable_fast_install=yes |
| 10082 | fi |
| 10083 | done |
| 10084 | IFS=$lt_save_ifs |
| 10085 | ;; |
| 10086 | esac |
| 10087 | else $as_nop |
| 10088 | enable_fast_install=yes |
| 10089 | fi |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | shared_archive_member_spec= |
| 10099 | case $host,$enable_shared in |
| 10100 | power*-*-aix[5-9]*,yes) |
| 10101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 10102 | printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 10103 | |
| 10104 | # Check whether --with-aix-soname was given. |
| 10105 | if test ${with_aix_soname+y} |
| 10106 | then : |
| 10107 | withval=$with_aix_soname; case $withval in |
| 10108 | aix|svr4|both) |
| 10109 | ;; |
| 10110 | *) |
| 10111 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 10112 | ;; |
| 10113 | esac |
| 10114 | lt_cv_with_aix_soname=$with_aix_soname |
| 10115 | else $as_nop |
| 10116 | if test ${lt_cv_with_aix_soname+y} |
| 10117 | then : |
| 10118 | printf %s "(cached) " >&6 |
| 10119 | else $as_nop |
| 10120 | lt_cv_with_aix_soname=aix |
| 10121 | fi |
| 10122 | |
| 10123 | with_aix_soname=$lt_cv_with_aix_soname |
| 10124 | fi |
| 10125 | |
| 10126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 10127 | printf "%s\n" "$with_aix_soname" >&6; } |
| 10128 | if test aix != "$with_aix_soname"; then |
| 10129 | # For the AIX way of multilib, we name the shared archive member |
| 10130 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 10131 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 10132 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 10133 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 10134 | if test 64 = "${OBJECT_MODE-32}"; then |
| 10135 | shared_archive_member_spec=shr_64 |
| 10136 | else |
| 10137 | shared_archive_member_spec=shr |
| 10138 | fi |
| 10139 | fi |
| 10140 | ;; |
| 10141 | *) |
| 10142 | with_aix_soname=aix |
| 10143 | ;; |
| 10144 | esac |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | # This can be used to rebuild libtool when needed |
| 10156 | LIBTOOL_DEPS=$ltmain |
| 10157 | |
| 10158 | # Always use our own libtool. |
| 10159 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | |
| 10190 | test -z "$LN_S" && LN_S="ln -s" |
| 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | if test -n "${ZSH_VERSION+set}"; then |
| 10206 | setopt NO_GLOB_SUBST |
| 10207 | fi |
| 10208 | |
| 10209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 10210 | printf %s "checking for objdir... " >&6; } |
| 10211 | if test ${lt_cv_objdir+y} |
| 10212 | then : |
| 10213 | printf %s "(cached) " >&6 |
| 10214 | else $as_nop |
| 10215 | rm -f .libs 2>/dev/null |
| 10216 | mkdir .libs 2>/dev/null |
| 10217 | if test -d .libs; then |
| 10218 | lt_cv_objdir=.libs |
| 10219 | else |
| 10220 | # MS-DOS does not allow filenames that begin with a dot. |
| 10221 | lt_cv_objdir=_libs |
| 10222 | fi |
| 10223 | rmdir .libs 2>/dev/null |
| 10224 | fi |
| 10225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 10226 | printf "%s\n" "$lt_cv_objdir" >&6; } |
| 10227 | objdir=$lt_cv_objdir |
| 10228 | |
| 10229 | |
| 10230 | |
| 10231 | |
| 10232 | |
| 10233 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 10234 | |
| 10235 | |
| 10236 | |
| 10237 | |
| 10238 | case $host_os in |
| 10239 | aix3*) |
| 10240 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10241 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10242 | # vanish in a puff of smoke. |
| 10243 | if test set != "${COLLECT_NAMES+set}"; then |
| 10244 | COLLECT_NAMES= |
| 10245 | export COLLECT_NAMES |
| 10246 | fi |
| 10247 | ;; |
| 10248 | esac |
| 10249 | |
| 10250 | # Global variables: |
| 10251 | ofile=libtool |
| 10252 | can_build_shared=yes |
| 10253 | |
| 10254 | # All known linkers require a '.a' archive for static linking (except MSVC and |
| 10255 | # ICC, which need '.lib'). |
| 10256 | libext=a |
| 10257 | |
| 10258 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10259 | |
| 10260 | old_CC=$CC |
| 10261 | old_CFLAGS=$CFLAGS |
| 10262 | |
| 10263 | # Set sane defaults for various variables |
| 10264 | test -z "$CC" && CC=cc |
| 10265 | test -z "$LTCC" && LTCC=$CC |
| 10266 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 10267 | test -z "$LD" && LD=ld |
| 10268 | test -z "$ac_objext" && ac_objext=o |
| 10269 | |
| 10270 | func_cc_basename $compiler |
| 10271 | cc_basename=$func_cc_basename_result |
| 10272 | |
| 10273 | |
| 10274 | # Only perform the check for file, if the check method requires it |
| 10275 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 10276 | case $deplibs_check_method in |
| 10277 | file_magic*) |
| 10278 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 10279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 10280 | printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 10281 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10282 | then : |
| 10283 | printf %s "(cached) " >&6 |
| 10284 | else $as_nop |
| 10285 | case $MAGIC_CMD in |
| 10286 | [\\/*] | ?:[\\/]*) |
| 10287 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10288 | ;; |
| 10289 | *) |
| 10290 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10291 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10292 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10293 | for ac_dir in $ac_dummy; do |
| 10294 | IFS=$lt_save_ifs |
| 10295 | test -z "$ac_dir" && ac_dir=. |
| 10296 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 10297 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 10298 | if test -n "$file_magic_test_file"; then |
| 10299 | case $deplibs_check_method in |
| 10300 | "file_magic "*) |
| 10301 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10302 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10303 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10304 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10305 | : |
| 10306 | else |
| 10307 | cat <<_LT_EOF 1>&2 |
| 10308 | |
| 10309 | *** Warning: the command libtool uses to detect shared libraries, |
| 10310 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10311 | *** The result is that libtool may fail to recognize shared libraries |
| 10312 | *** as such. This will affect the creation of libtool libraries that |
| 10313 | *** depend on shared libraries, but programs linked with such libtool |
| 10314 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10315 | *** may want to report the problem to your system manager and/or to |
| 10316 | *** [email protected] |
| 10317 | |
| 10318 | _LT_EOF |
| 10319 | fi ;; |
| 10320 | esac |
| 10321 | fi |
| 10322 | break |
| 10323 | fi |
| 10324 | done |
| 10325 | IFS=$lt_save_ifs |
| 10326 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10327 | ;; |
| 10328 | esac |
| 10329 | fi |
| 10330 | |
| 10331 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10332 | if test -n "$MAGIC_CMD"; then |
| 10333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10334 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10335 | else |
| 10336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10337 | printf "%s\n" "no" >&6; } |
| 10338 | fi |
| 10339 | |
| 10340 | |
| 10341 | |
| 10342 | |
| 10343 | |
| 10344 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 10345 | if test -n "$ac_tool_prefix"; then |
| 10346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 10347 | printf %s "checking for file... " >&6; } |
| 10348 | if test ${lt_cv_path_MAGIC_CMD+y} |
| 10349 | then : |
| 10350 | printf %s "(cached) " >&6 |
| 10351 | else $as_nop |
| 10352 | case $MAGIC_CMD in |
| 10353 | [\\/*] | ?:[\\/]*) |
| 10354 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 10355 | ;; |
| 10356 | *) |
| 10357 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 10358 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10359 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10360 | for ac_dir in $ac_dummy; do |
| 10361 | IFS=$lt_save_ifs |
| 10362 | test -z "$ac_dir" && ac_dir=. |
| 10363 | if test -f "$ac_dir/file"; then |
| 10364 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 10365 | if test -n "$file_magic_test_file"; then |
| 10366 | case $deplibs_check_method in |
| 10367 | "file_magic "*) |
| 10368 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10369 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10370 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10371 | $EGREP "$file_magic_regex" > /dev/null; then |
| 10372 | : |
| 10373 | else |
| 10374 | cat <<_LT_EOF 1>&2 |
| 10375 | |
| 10376 | *** Warning: the command libtool uses to detect shared libraries, |
| 10377 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10378 | *** The result is that libtool may fail to recognize shared libraries |
| 10379 | *** as such. This will affect the creation of libtool libraries that |
| 10380 | *** depend on shared libraries, but programs linked with such libtool |
| 10381 | *** libraries will work regardless of this problem. Nevertheless, you |
| 10382 | *** may want to report the problem to your system manager and/or to |
| 10383 | *** [email protected] |
| 10384 | |
| 10385 | _LT_EOF |
| 10386 | fi ;; |
| 10387 | esac |
| 10388 | fi |
| 10389 | break |
| 10390 | fi |
| 10391 | done |
| 10392 | IFS=$lt_save_ifs |
| 10393 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 10394 | ;; |
| 10395 | esac |
| 10396 | fi |
| 10397 | |
| 10398 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 10399 | if test -n "$MAGIC_CMD"; then |
| 10400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10401 | printf "%s\n" "$MAGIC_CMD" >&6; } |
| 10402 | else |
| 10403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10404 | printf "%s\n" "no" >&6; } |
| 10405 | fi |
| 10406 | |
| 10407 | |
| 10408 | else |
| 10409 | MAGIC_CMD=: |
| 10410 | fi |
| 10411 | fi |
| 10412 | |
| 10413 | fi |
| 10414 | ;; |
| 10415 | esac |
| 10416 | |
| 10417 | # Use C for the default configuration in the libtool script |
| 10418 | |
| 10419 | lt_save_CC=$CC |
| 10420 | ac_ext=c |
| 10421 | ac_cpp='$CPP $CPPFLAGS' |
| 10422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10425 | |
| 10426 | |
| 10427 | # Source file extension for C test sources. |
| 10428 | ac_ext=c |
| 10429 | |
| 10430 | # Object file extension for compiled C test sources. |
| 10431 | objext=o |
| 10432 | objext=$objext |
| 10433 | |
| 10434 | # Code to be used in simple compile tests |
| 10435 | lt_simple_compile_test_code="int some_variable = 0;" |
| 10436 | |
| 10437 | # Code to be used in simple link tests |
| 10438 | lt_simple_link_test_code='int main(){return(0);}' |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | # If no C compiler was specified, use CC. |
| 10447 | LTCC=${LTCC-"$CC"} |
| 10448 | |
| 10449 | # If no C compiler flags were specified, use CFLAGS. |
| 10450 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10451 | |
| 10452 | # Allow CC to be a program name with arguments. |
| 10453 | compiler=$CC |
| 10454 | |
| 10455 | # Save the default compiler, since it gets overwritten when the other |
| 10456 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 10457 | compiler_DEFAULT=$CC |
| 10458 | |
| 10459 | # save warnings/boilerplate of simple test code |
| 10460 | ac_outfile=conftest.$ac_objext |
| 10461 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10462 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10463 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10464 | $RM conftest* |
| 10465 | |
| 10466 | ac_outfile=conftest.$ac_objext |
| 10467 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10468 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10469 | _lt_linker_boilerplate=`cat conftest.err` |
| 10470 | $RM -r conftest* |
| 10471 | |
| 10472 | |
| 10473 | ## CAVEAT EMPTOR: |
| 10474 | ## There is no encapsulation within the following macros, do not change |
| 10475 | ## the running order or otherwise move them around unless you know exactly |
| 10476 | ## what you are doing... |
| 10477 | if test -n "$compiler"; then |
| 10478 | |
| 10479 | lt_prog_compiler_no_builtin_flag= |
| 10480 | |
| 10481 | if test yes = "$GCC"; then |
| 10482 | case $cc_basename in |
| 10483 | nvcc*) |
| 10484 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 10485 | *) |
| 10486 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 10487 | esac |
| 10488 | |
| 10489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 10490 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 10491 | if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 10492 | then : |
| 10493 | printf %s "(cached) " >&6 |
| 10494 | else $as_nop |
| 10495 | lt_cv_prog_compiler_rtti_exceptions=no |
| 10496 | ac_outfile=conftest.$ac_objext |
| 10497 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10498 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 10499 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10500 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10501 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10502 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10503 | # The option is referenced via a variable to avoid confusing sed. |
| 10504 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10505 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10506 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10507 | -e 's:$: $lt_compiler_flag:'` |
| 10508 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10509 | (eval "$lt_compile" 2>conftest.err) |
| 10510 | ac_status=$? |
| 10511 | cat conftest.err >&5 |
| 10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10513 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10514 | # The compiler can only warn and ignore the option if not recognized |
| 10515 | # So say no if there are warnings other than the usual output. |
| 10516 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10517 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10518 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10519 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 10520 | fi |
| 10521 | fi |
| 10522 | $RM conftest* |
| 10523 | |
| 10524 | fi |
| 10525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 10526 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 10527 | |
| 10528 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 10529 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 10530 | else |
| 10531 | : |
| 10532 | fi |
| 10533 | |
| 10534 | fi |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | lt_prog_compiler_wl= |
| 10542 | lt_prog_compiler_pic= |
| 10543 | lt_prog_compiler_static= |
| 10544 | |
| 10545 | |
| 10546 | if test yes = "$GCC"; then |
| 10547 | lt_prog_compiler_wl='-Wl,' |
| 10548 | lt_prog_compiler_static='-static' |
| 10549 | |
| 10550 | case $host_os in |
| 10551 | aix*) |
| 10552 | # All AIX code is PIC. |
| 10553 | if test ia64 = "$host_cpu"; then |
| 10554 | # AIX 5 now supports IA64 processor |
| 10555 | lt_prog_compiler_static='-Bstatic' |
| 10556 | fi |
| 10557 | lt_prog_compiler_pic='-fPIC' |
| 10558 | ;; |
| 10559 | |
| 10560 | amigaos*) |
| 10561 | case $host_cpu in |
| 10562 | powerpc) |
| 10563 | # see comment about AmigaOS4 .so support |
| 10564 | lt_prog_compiler_pic='-fPIC' |
| 10565 | ;; |
| 10566 | m68k) |
| 10567 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10568 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 10569 | # like '-m68040'. |
| 10570 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 10571 | ;; |
| 10572 | esac |
| 10573 | ;; |
| 10574 | |
| 10575 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10576 | # PIC is the default for these OSes. |
| 10577 | ;; |
| 10578 | |
| 10579 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10580 | # This hack is so that the source file can tell whether it is being |
| 10581 | # built for inclusion in a dll (and should export symbols for example). |
| 10582 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10583 | # (--disable-auto-import) libraries |
| 10584 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10585 | case $host_os in |
| 10586 | os2*) |
| 10587 | lt_prog_compiler_static='$wl-static' |
| 10588 | ;; |
| 10589 | esac |
| 10590 | ;; |
| 10591 | |
| 10592 | darwin* | rhapsody*) |
| 10593 | # PIC is the default on this platform |
| 10594 | # Common symbols not allowed in MH_DYLIB files |
| 10595 | lt_prog_compiler_pic='-fno-common' |
| 10596 | ;; |
| 10597 | |
| 10598 | haiku*) |
| 10599 | # PIC is the default for Haiku. |
| 10600 | # The "-static" flag exists, but is broken. |
| 10601 | lt_prog_compiler_static= |
| 10602 | ;; |
| 10603 | |
| 10604 | hpux*) |
| 10605 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 10606 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 10607 | # sets the default TLS model and affects inlining. |
| 10608 | case $host_cpu in |
| 10609 | hppa*64*) |
| 10610 | # +Z the default |
| 10611 | ;; |
| 10612 | *) |
| 10613 | lt_prog_compiler_pic='-fPIC' |
| 10614 | ;; |
| 10615 | esac |
| 10616 | ;; |
| 10617 | |
| 10618 | interix[3-9]*) |
| 10619 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10620 | # Instead, we relocate shared libraries at runtime. |
| 10621 | ;; |
| 10622 | |
| 10623 | msdosdjgpp*) |
| 10624 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10625 | # on systems that don't support them. |
| 10626 | lt_prog_compiler_can_build_shared=no |
| 10627 | enable_shared=no |
| 10628 | ;; |
| 10629 | |
| 10630 | *nto* | *qnx*) |
| 10631 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10632 | # it will coredump. |
| 10633 | lt_prog_compiler_pic='-fPIC -shared' |
| 10634 | ;; |
| 10635 | |
| 10636 | sysv4*MP*) |
| 10637 | if test -d /usr/nec; then |
| 10638 | lt_prog_compiler_pic=-Kconform_pic |
| 10639 | fi |
| 10640 | ;; |
| 10641 | |
| 10642 | *) |
| 10643 | lt_prog_compiler_pic='-fPIC' |
| 10644 | ;; |
| 10645 | esac |
| 10646 | |
| 10647 | case $cc_basename in |
| 10648 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10649 | lt_prog_compiler_wl='-Xlinker ' |
| 10650 | if test -n "$lt_prog_compiler_pic"; then |
| 10651 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 10652 | fi |
| 10653 | ;; |
| 10654 | esac |
| 10655 | else |
| 10656 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 10657 | case $host_os in |
| 10658 | aix*) |
| 10659 | lt_prog_compiler_wl='-Wl,' |
| 10660 | if test ia64 = "$host_cpu"; then |
| 10661 | # AIX 5 now supports IA64 processor |
| 10662 | lt_prog_compiler_static='-Bstatic' |
| 10663 | else |
| 10664 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 10665 | fi |
| 10666 | ;; |
| 10667 | |
| 10668 | darwin* | rhapsody*) |
| 10669 | # PIC is the default on this platform |
| 10670 | # Common symbols not allowed in MH_DYLIB files |
| 10671 | lt_prog_compiler_pic='-fno-common' |
| 10672 | case $cc_basename in |
| 10673 | nagfor*) |
| 10674 | # NAG Fortran compiler |
| 10675 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10676 | lt_prog_compiler_pic='-PIC' |
| 10677 | lt_prog_compiler_static='-Bstatic' |
| 10678 | ;; |
| 10679 | esac |
| 10680 | ;; |
| 10681 | |
| 10682 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10683 | # This hack is so that the source file can tell whether it is being |
| 10684 | # built for inclusion in a dll (and should export symbols for example). |
| 10685 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10686 | case $host_os in |
| 10687 | os2*) |
| 10688 | lt_prog_compiler_static='$wl-static' |
| 10689 | ;; |
| 10690 | esac |
| 10691 | ;; |
| 10692 | |
| 10693 | hpux9* | hpux10* | hpux11*) |
| 10694 | lt_prog_compiler_wl='-Wl,' |
| 10695 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10696 | # not for PA HP-UX. |
| 10697 | case $host_cpu in |
| 10698 | hppa*64*|ia64*) |
| 10699 | # +Z the default |
| 10700 | ;; |
| 10701 | *) |
| 10702 | lt_prog_compiler_pic='+Z' |
| 10703 | ;; |
| 10704 | esac |
| 10705 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10706 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 10707 | ;; |
| 10708 | |
| 10709 | irix5* | irix6* | nonstopux*) |
| 10710 | lt_prog_compiler_wl='-Wl,' |
| 10711 | # PIC (with -KPIC) is the default. |
| 10712 | lt_prog_compiler_static='-non_shared' |
| 10713 | ;; |
| 10714 | |
| 10715 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 10716 | case $cc_basename in |
| 10717 | # old Intel for x86_64, which still supported -KPIC. |
| 10718 | ecc*) |
| 10719 | lt_prog_compiler_wl='-Wl,' |
| 10720 | lt_prog_compiler_pic='-KPIC' |
| 10721 | lt_prog_compiler_static='-static' |
| 10722 | ;; |
| 10723 | # flang / f18. f95 an alias for gfortran or flang on Debian |
| 10724 | flang* | f18* | f95*) |
| 10725 | lt_prog_compiler_wl='-Wl,' |
| 10726 | lt_prog_compiler_pic='-fPIC' |
| 10727 | lt_prog_compiler_static='-static' |
| 10728 | ;; |
| 10729 | # icc used to be incompatible with GCC. |
| 10730 | # ICC 10 doesn't accept -KPIC any more. |
| 10731 | icc* | ifort*) |
| 10732 | lt_prog_compiler_wl='-Wl,' |
| 10733 | lt_prog_compiler_pic='-fPIC' |
| 10734 | lt_prog_compiler_static='-static' |
| 10735 | ;; |
| 10736 | # Lahey Fortran 8.1. |
| 10737 | lf95*) |
| 10738 | lt_prog_compiler_wl='-Wl,' |
| 10739 | lt_prog_compiler_pic='--shared' |
| 10740 | lt_prog_compiler_static='--static' |
| 10741 | ;; |
| 10742 | nagfor*) |
| 10743 | # NAG Fortran compiler |
| 10744 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10745 | lt_prog_compiler_pic='-PIC' |
| 10746 | lt_prog_compiler_static='-Bstatic' |
| 10747 | ;; |
| 10748 | tcc*) |
| 10749 | # Fabrice Bellard et al's Tiny C Compiler |
| 10750 | lt_prog_compiler_wl='-Wl,' |
| 10751 | lt_prog_compiler_pic='-fPIC' |
| 10752 | lt_prog_compiler_static='-static' |
| 10753 | ;; |
| 10754 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10755 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 10756 | # which looks to be a dead project) |
| 10757 | lt_prog_compiler_wl='-Wl,' |
| 10758 | lt_prog_compiler_pic='-fpic' |
| 10759 | lt_prog_compiler_static='-Bstatic' |
| 10760 | ;; |
| 10761 | ccc*) |
| 10762 | lt_prog_compiler_wl='-Wl,' |
| 10763 | # All Alpha code is PIC. |
| 10764 | lt_prog_compiler_static='-non_shared' |
| 10765 | ;; |
| 10766 | xl* | bgxl* | bgf* | mpixl*) |
| 10767 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10768 | lt_prog_compiler_wl='-Wl,' |
| 10769 | lt_prog_compiler_pic='-qpic' |
| 10770 | lt_prog_compiler_static='-qstaticlink' |
| 10771 | ;; |
| 10772 | *) |
| 10773 | case `$CC -V 2>&1 | $SED 5q` in |
| 10774 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 10775 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10776 | lt_prog_compiler_pic='-KPIC' |
| 10777 | lt_prog_compiler_static='-Bstatic' |
| 10778 | lt_prog_compiler_wl='' |
| 10779 | ;; |
| 10780 | *Sun\ F* | *Sun*Fortran*) |
| 10781 | lt_prog_compiler_pic='-KPIC' |
| 10782 | lt_prog_compiler_static='-Bstatic' |
| 10783 | lt_prog_compiler_wl='-Qoption ld ' |
| 10784 | ;; |
| 10785 | *Sun\ C*) |
| 10786 | # Sun C 5.9 |
| 10787 | lt_prog_compiler_pic='-KPIC' |
| 10788 | lt_prog_compiler_static='-Bstatic' |
| 10789 | lt_prog_compiler_wl='-Wl,' |
| 10790 | ;; |
| 10791 | *Intel*\ [CF]*Compiler*) |
| 10792 | lt_prog_compiler_wl='-Wl,' |
| 10793 | lt_prog_compiler_pic='-fPIC' |
| 10794 | lt_prog_compiler_static='-static' |
| 10795 | ;; |
| 10796 | *Portland\ Group*) |
| 10797 | lt_prog_compiler_wl='-Wl,' |
| 10798 | lt_prog_compiler_pic='-fpic' |
| 10799 | lt_prog_compiler_static='-Bstatic' |
| 10800 | ;; |
| 10801 | esac |
| 10802 | ;; |
| 10803 | esac |
| 10804 | ;; |
| 10805 | |
| 10806 | newsos6) |
| 10807 | lt_prog_compiler_pic='-KPIC' |
| 10808 | lt_prog_compiler_static='-Bstatic' |
| 10809 | ;; |
| 10810 | |
| 10811 | *nto* | *qnx*) |
| 10812 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10813 | # it will coredump. |
| 10814 | lt_prog_compiler_pic='-fPIC -shared' |
| 10815 | ;; |
| 10816 | |
| 10817 | osf3* | osf4* | osf5*) |
| 10818 | lt_prog_compiler_wl='-Wl,' |
| 10819 | # All OSF/1 code is PIC. |
| 10820 | lt_prog_compiler_static='-non_shared' |
| 10821 | ;; |
| 10822 | |
| 10823 | rdos*) |
| 10824 | lt_prog_compiler_static='-non_shared' |
| 10825 | ;; |
| 10826 | |
| 10827 | solaris*) |
| 10828 | lt_prog_compiler_pic='-KPIC' |
| 10829 | lt_prog_compiler_static='-Bstatic' |
| 10830 | case $cc_basename in |
| 10831 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10832 | lt_prog_compiler_wl='-Qoption ld ';; |
| 10833 | *) |
| 10834 | lt_prog_compiler_wl='-Wl,';; |
| 10835 | esac |
| 10836 | ;; |
| 10837 | |
| 10838 | sunos4*) |
| 10839 | lt_prog_compiler_wl='-Qoption ld ' |
| 10840 | lt_prog_compiler_pic='-PIC' |
| 10841 | lt_prog_compiler_static='-Bstatic' |
| 10842 | ;; |
| 10843 | |
| 10844 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10845 | lt_prog_compiler_wl='-Wl,' |
| 10846 | lt_prog_compiler_pic='-KPIC' |
| 10847 | lt_prog_compiler_static='-Bstatic' |
| 10848 | ;; |
| 10849 | |
| 10850 | sysv4*MP*) |
| 10851 | if test -d /usr/nec; then |
| 10852 | lt_prog_compiler_pic='-Kconform_pic' |
| 10853 | lt_prog_compiler_static='-Bstatic' |
| 10854 | fi |
| 10855 | ;; |
| 10856 | |
| 10857 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10858 | lt_prog_compiler_wl='-Wl,' |
| 10859 | lt_prog_compiler_pic='-KPIC' |
| 10860 | lt_prog_compiler_static='-Bstatic' |
| 10861 | ;; |
| 10862 | |
| 10863 | unicos*) |
| 10864 | lt_prog_compiler_wl='-Wl,' |
| 10865 | lt_prog_compiler_can_build_shared=no |
| 10866 | ;; |
| 10867 | |
| 10868 | uts4*) |
| 10869 | lt_prog_compiler_pic='-pic' |
| 10870 | lt_prog_compiler_static='-Bstatic' |
| 10871 | ;; |
| 10872 | |
| 10873 | *) |
| 10874 | lt_prog_compiler_can_build_shared=no |
| 10875 | ;; |
| 10876 | esac |
| 10877 | fi |
| 10878 | |
| 10879 | case $host_os in |
| 10880 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 10881 | *djgpp*) |
| 10882 | lt_prog_compiler_pic= |
| 10883 | ;; |
| 10884 | *) |
| 10885 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10886 | ;; |
| 10887 | esac |
| 10888 | |
| 10889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10890 | printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 10891 | if test ${lt_cv_prog_compiler_pic+y} |
| 10892 | then : |
| 10893 | printf %s "(cached) " >&6 |
| 10894 | else $as_nop |
| 10895 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10896 | fi |
| 10897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10898 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 10899 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10900 | |
| 10901 | # |
| 10902 | # Check to make sure the PIC flag actually works. |
| 10903 | # |
| 10904 | if test -n "$lt_prog_compiler_pic"; then |
| 10905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10906 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10907 | if test ${lt_cv_prog_compiler_pic_works+y} |
| 10908 | then : |
| 10909 | printf %s "(cached) " >&6 |
| 10910 | else $as_nop |
| 10911 | lt_cv_prog_compiler_pic_works=no |
| 10912 | ac_outfile=conftest.$ac_objext |
| 10913 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10914 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 10915 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10916 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10917 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10918 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10919 | # The option is referenced via a variable to avoid confusing sed. |
| 10920 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10921 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10922 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10923 | -e 's:$: $lt_compiler_flag:'` |
| 10924 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10925 | (eval "$lt_compile" 2>conftest.err) |
| 10926 | ac_status=$? |
| 10927 | cat conftest.err >&5 |
| 10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10929 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10930 | # The compiler can only warn and ignore the option if not recognized |
| 10931 | # So say no if there are warnings other than the usual output. |
| 10932 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10933 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10934 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10935 | lt_cv_prog_compiler_pic_works=yes |
| 10936 | fi |
| 10937 | fi |
| 10938 | $RM conftest* |
| 10939 | |
| 10940 | fi |
| 10941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10942 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10943 | |
| 10944 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 10945 | case $lt_prog_compiler_pic in |
| 10946 | "" | " "*) ;; |
| 10947 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10948 | esac |
| 10949 | else |
| 10950 | lt_prog_compiler_pic= |
| 10951 | lt_prog_compiler_can_build_shared=no |
| 10952 | fi |
| 10953 | |
| 10954 | fi |
| 10955 | |
| 10956 | |
| 10957 | |
| 10958 | |
| 10959 | |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | |
| 10965 | |
| 10966 | # |
| 10967 | # Check to make sure the static flag actually works. |
| 10968 | # |
| 10969 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10971 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10972 | if test ${lt_cv_prog_compiler_static_works+y} |
| 10973 | then : |
| 10974 | printf %s "(cached) " >&6 |
| 10975 | else $as_nop |
| 10976 | lt_cv_prog_compiler_static_works=no |
| 10977 | save_LDFLAGS=$LDFLAGS |
| 10978 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10979 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10980 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10981 | # The linker can only warn and ignore the option if not recognized |
| 10982 | # So say no if there are warnings |
| 10983 | if test -s conftest.err; then |
| 10984 | # Append any errors to the config.log. |
| 10985 | cat conftest.err 1>&5 |
| 10986 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10987 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10988 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10989 | lt_cv_prog_compiler_static_works=yes |
| 10990 | fi |
| 10991 | else |
| 10992 | lt_cv_prog_compiler_static_works=yes |
| 10993 | fi |
| 10994 | fi |
| 10995 | $RM -r conftest* |
| 10996 | LDFLAGS=$save_LDFLAGS |
| 10997 | |
| 10998 | fi |
| 10999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 11000 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 11001 | |
| 11002 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 11003 | : |
| 11004 | else |
| 11005 | lt_prog_compiler_static= |
| 11006 | fi |
| 11007 | |
| 11008 | |
| 11009 | |
| 11010 | |
| 11011 | |
| 11012 | |
| 11013 | |
| 11014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11015 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11016 | if test ${lt_cv_prog_compiler_c_o+y} |
| 11017 | then : |
| 11018 | printf %s "(cached) " >&6 |
| 11019 | else $as_nop |
| 11020 | lt_cv_prog_compiler_c_o=no |
| 11021 | $RM -r conftest 2>/dev/null |
| 11022 | mkdir conftest |
| 11023 | cd conftest |
| 11024 | mkdir out |
| 11025 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11026 | |
| 11027 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11028 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11029 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11030 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11031 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11032 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11033 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11034 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11035 | -e 's:$: $lt_compiler_flag:'` |
| 11036 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11037 | (eval "$lt_compile" 2>out/conftest.err) |
| 11038 | ac_status=$? |
| 11039 | cat out/conftest.err >&5 |
| 11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11041 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11042 | then |
| 11043 | # The compiler can only warn and ignore the option if not recognized |
| 11044 | # So say no if there are warnings |
| 11045 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11046 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11047 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11048 | lt_cv_prog_compiler_c_o=yes |
| 11049 | fi |
| 11050 | fi |
| 11051 | chmod u+w . 2>&5 |
| 11052 | $RM conftest* |
| 11053 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11054 | # template instantiation |
| 11055 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11056 | $RM out/* && rmdir out |
| 11057 | cd .. |
| 11058 | $RM -r conftest |
| 11059 | $RM conftest* |
| 11060 | |
| 11061 | fi |
| 11062 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11063 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11064 | |
| 11065 | |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11071 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11072 | if test ${lt_cv_prog_compiler_c_o+y} |
| 11073 | then : |
| 11074 | printf %s "(cached) " >&6 |
| 11075 | else $as_nop |
| 11076 | lt_cv_prog_compiler_c_o=no |
| 11077 | $RM -r conftest 2>/dev/null |
| 11078 | mkdir conftest |
| 11079 | cd conftest |
| 11080 | mkdir out |
| 11081 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11082 | |
| 11083 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11084 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11085 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11086 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11087 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11088 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11089 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11090 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11091 | -e 's:$: $lt_compiler_flag:'` |
| 11092 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11093 | (eval "$lt_compile" 2>out/conftest.err) |
| 11094 | ac_status=$? |
| 11095 | cat out/conftest.err >&5 |
| 11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11097 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11098 | then |
| 11099 | # The compiler can only warn and ignore the option if not recognized |
| 11100 | # So say no if there are warnings |
| 11101 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11102 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11103 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11104 | lt_cv_prog_compiler_c_o=yes |
| 11105 | fi |
| 11106 | fi |
| 11107 | chmod u+w . 2>&5 |
| 11108 | $RM conftest* |
| 11109 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11110 | # template instantiation |
| 11111 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11112 | $RM out/* && rmdir out |
| 11113 | cd .. |
| 11114 | $RM -r conftest |
| 11115 | $RM conftest* |
| 11116 | |
| 11117 | fi |
| 11118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11119 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 11120 | |
| 11121 | |
| 11122 | |
| 11123 | |
| 11124 | hard_links=nottested |
| 11125 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 11126 | # do not overwrite the value of need_locks provided by the user |
| 11127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 11128 | printf %s "checking if we can lock with hard links... " >&6; } |
| 11129 | hard_links=yes |
| 11130 | $RM conftest* |
| 11131 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11132 | touch conftest.a |
| 11133 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11134 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 11136 | printf "%s\n" "$hard_links" >&6; } |
| 11137 | if test no = "$hard_links"; then |
| 11138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 11139 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 11140 | need_locks=warn |
| 11141 | fi |
| 11142 | else |
| 11143 | need_locks=no |
| 11144 | fi |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | |
| 11149 | |
| 11150 | |
| 11151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11152 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11153 | |
| 11154 | runpath_var= |
| 11155 | allow_undefined_flag= |
| 11156 | always_export_symbols=no |
| 11157 | archive_cmds= |
| 11158 | archive_expsym_cmds= |
| 11159 | compiler_needs_object=no |
| 11160 | enable_shared_with_static_runtimes=no |
| 11161 | export_dynamic_flag_spec= |
| 11162 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11163 | hardcode_automatic=no |
| 11164 | hardcode_direct=no |
| 11165 | hardcode_direct_absolute=no |
| 11166 | hardcode_libdir_flag_spec= |
| 11167 | hardcode_libdir_separator= |
| 11168 | hardcode_minus_L=no |
| 11169 | hardcode_shlibpath_var=unsupported |
| 11170 | inherit_rpath=no |
| 11171 | link_all_deplibs=unknown |
| 11172 | module_cmds= |
| 11173 | module_expsym_cmds= |
| 11174 | old_archive_from_new_cmds= |
| 11175 | old_archive_from_expsyms_cmds= |
| 11176 | thread_safe_flag_spec= |
| 11177 | whole_archive_flag_spec= |
| 11178 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 11179 | # included in the symbol list |
| 11180 | include_expsyms= |
| 11181 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 11182 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 11183 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 11184 | # as well as any symbol that contains 'd'. |
| 11185 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 11186 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11187 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 11188 | # the symbol is explicitly referenced. Since portable code cannot |
| 11189 | # rely on this symbol name, it's probably fine to never include it in |
| 11190 | # preloaded symbol tables. |
| 11191 | # Exclude shared library initialization/finalization symbols. |
| 11192 | extract_expsyms_cmds= |
| 11193 | |
| 11194 | case $host_os in |
| 11195 | cygwin* | mingw* | pw32* | cegcc*) |
| 11196 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time |
| 11197 | # When not using gcc, we currently assume that we are using |
| 11198 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 11199 | if test yes != "$GCC"; then |
| 11200 | with_gnu_ld=no |
| 11201 | fi |
| 11202 | ;; |
| 11203 | interix*) |
| 11204 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) |
| 11205 | with_gnu_ld=yes |
| 11206 | ;; |
| 11207 | openbsd* | bitrig*) |
| 11208 | with_gnu_ld=no |
| 11209 | ;; |
| 11210 | linux* | k*bsd*-gnu | gnu*) |
| 11211 | link_all_deplibs=no |
| 11212 | ;; |
| 11213 | esac |
| 11214 | |
| 11215 | ld_shlibs=yes |
| 11216 | |
| 11217 | # On some targets, GNU ld is compatible enough with the native linker |
| 11218 | # that we're better off using the native interface for both. |
| 11219 | lt_use_gnu_ld_interface=no |
| 11220 | if test yes = "$with_gnu_ld"; then |
| 11221 | case $host_os in |
| 11222 | aix*) |
| 11223 | # The AIX port of GNU ld has always aspired to compatibility |
| 11224 | # with the native linker. However, as the warning in the GNU ld |
| 11225 | # block says, versions before 2.19.5* couldn't really create working |
| 11226 | # shared libraries, regardless of the interface used. |
| 11227 | case `$LD -v 2>&1` in |
| 11228 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 11229 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 11230 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 11231 | *) |
| 11232 | lt_use_gnu_ld_interface=yes |
| 11233 | ;; |
| 11234 | esac |
| 11235 | ;; |
| 11236 | *) |
| 11237 | lt_use_gnu_ld_interface=yes |
| 11238 | ;; |
| 11239 | esac |
| 11240 | fi |
| 11241 | |
| 11242 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 11243 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11244 | wlarc='$wl' |
| 11245 | |
| 11246 | # Set some defaults for GNU ld with shared library support. These |
| 11247 | # are reset later if shared libraries are not supported. Putting them |
| 11248 | # here allows them to be overridden if necessary. |
| 11249 | runpath_var=LD_RUN_PATH |
| 11250 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11251 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 11252 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11253 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 11254 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 11255 | else |
| 11256 | whole_archive_flag_spec= |
| 11257 | fi |
| 11258 | supports_anon_versioning=no |
| 11259 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 11260 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 11261 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11262 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11263 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11264 | *\ 2.11.*) ;; # other 2.11 versions |
| 11265 | *) supports_anon_versioning=yes ;; |
| 11266 | esac |
| 11267 | |
| 11268 | # See if GNU ld supports shared libraries. |
| 11269 | case $host_os in |
| 11270 | aix[3-9]*) |
| 11271 | # On AIX/PPC, the GNU linker is very broken |
| 11272 | if test ia64 != "$host_cpu"; then |
| 11273 | ld_shlibs=no |
| 11274 | cat <<_LT_EOF 1>&2 |
| 11275 | |
| 11276 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 11277 | *** to be unable to reliably create shared libraries on AIX. |
| 11278 | *** Therefore, libtool is disabling shared libraries support. If you |
| 11279 | *** really care for shared libraries, you may want to install binutils |
| 11280 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 11281 | *** You will then need to restart the configuration process. |
| 11282 | |
| 11283 | _LT_EOF |
| 11284 | fi |
| 11285 | ;; |
| 11286 | |
| 11287 | amigaos*) |
| 11288 | case $host_cpu in |
| 11289 | powerpc) |
| 11290 | # see comment about AmigaOS4 .so support |
| 11291 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11292 | archive_expsym_cmds='' |
| 11293 | ;; |
| 11294 | m68k) |
| 11295 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 11296 | hardcode_libdir_flag_spec='-L$libdir' |
| 11297 | hardcode_minus_L=yes |
| 11298 | ;; |
| 11299 | esac |
| 11300 | ;; |
| 11301 | |
| 11302 | beos*) |
| 11303 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11304 | allow_undefined_flag=unsupported |
| 11305 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 11306 | # support --undefined. This deserves some investigation. FIXME |
| 11307 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11308 | else |
| 11309 | ld_shlibs=no |
| 11310 | fi |
| 11311 | ;; |
| 11312 | |
| 11313 | cygwin* | mingw* | pw32* | cegcc*) |
| 11314 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 11315 | # as there is no search path for DLLs. |
| 11316 | hardcode_libdir_flag_spec='-L$libdir' |
| 11317 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 11318 | allow_undefined_flag=unsupported |
| 11319 | always_export_symbols=no |
| 11320 | enable_shared_with_static_runtimes=yes |
| 11321 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 11322 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 11323 | |
| 11324 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11325 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11326 | # If the export-symbols file already is a .def file, use it as |
| 11327 | # is; otherwise, prepend EXPORTS... |
| 11328 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11329 | cp $export_symbols $output_objdir/$soname.def; |
| 11330 | else |
| 11331 | echo EXPORTS > $output_objdir/$soname.def; |
| 11332 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11333 | fi~ |
| 11334 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11335 | else |
| 11336 | ld_shlibs=no |
| 11337 | fi |
| 11338 | ;; |
| 11339 | |
| 11340 | haiku*) |
| 11341 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11342 | link_all_deplibs=yes |
| 11343 | ;; |
| 11344 | |
| 11345 | os2*) |
| 11346 | hardcode_libdir_flag_spec='-L$libdir' |
| 11347 | hardcode_minus_L=yes |
| 11348 | allow_undefined_flag=unsupported |
| 11349 | shrext_cmds=.dll |
| 11350 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11351 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11352 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11353 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11354 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 11355 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11356 | emximp -o $lib $output_objdir/$libname.def' |
| 11357 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 11358 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 11359 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 11360 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 11361 | prefix_cmds="$SED"~ |
| 11362 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 11363 | prefix_cmds="$prefix_cmds -e 1d"; |
| 11364 | fi~ |
| 11365 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 11366 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 11367 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 11368 | emximp -o $lib $output_objdir/$libname.def' |
| 11369 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 11370 | enable_shared_with_static_runtimes=yes |
| 11371 | file_list_spec='@' |
| 11372 | ;; |
| 11373 | |
| 11374 | interix[3-9]*) |
| 11375 | hardcode_direct=no |
| 11376 | hardcode_shlibpath_var=no |
| 11377 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 11378 | export_dynamic_flag_spec='$wl-E' |
| 11379 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11380 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11381 | # default) and relocated if they conflict, which is a slow very memory |
| 11382 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11383 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11384 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11385 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11386 | archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11387 | ;; |
| 11388 | |
| 11389 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11390 | tmp_diet=no |
| 11391 | if test linux-dietlibc = "$host_os"; then |
| 11392 | case $cc_basename in |
| 11393 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 11394 | esac |
| 11395 | fi |
| 11396 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 11397 | && test no = "$tmp_diet" |
| 11398 | then |
| 11399 | tmp_addflag=' $pic_flag' |
| 11400 | tmp_sharedflag='-shared' |
| 11401 | case $cc_basename,$host_cpu in |
| 11402 | pgcc*) # Portland Group C compiler |
| 11403 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 11404 | tmp_addflag=' $pic_flag' |
| 11405 | ;; |
| 11406 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11407 | # Portland Group f77 and f90 compilers |
| 11408 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 11409 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11410 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11411 | tmp_addflag=' -i_dynamic' ;; |
| 11412 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11413 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11414 | ifc* | ifort*) # Intel Fortran compiler |
| 11415 | tmp_addflag=' -nofor_main' ;; |
| 11416 | lf95*) # Lahey Fortran 8.1 |
| 11417 | whole_archive_flag_spec= |
| 11418 | tmp_sharedflag='--shared' ;; |
| 11419 | nagfor*) # NAGFOR 5.3 |
| 11420 | tmp_sharedflag='-Wl,-shared' ;; |
| 11421 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 11422 | tmp_sharedflag='-qmkshrobj' |
| 11423 | tmp_addflag= ;; |
| 11424 | nvcc*) # Cuda Compiler Driver 2.2 |
| 11425 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 11426 | compiler_needs_object=yes |
| 11427 | ;; |
| 11428 | esac |
| 11429 | case `$CC -V 2>&1 | $SED 5q` in |
| 11430 | *Sun\ C*) # Sun C 5.9 |
| 11431 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 11432 | compiler_needs_object=yes |
| 11433 | tmp_sharedflag='-G' ;; |
| 11434 | *Sun\ F*) # Sun Fortran 8.3 |
| 11435 | tmp_sharedflag='-G' ;; |
| 11436 | esac |
| 11437 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11438 | |
| 11439 | if test yes = "$supports_anon_versioning"; then |
| 11440 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11441 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11442 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11443 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 11444 | fi |
| 11445 | |
| 11446 | case $cc_basename in |
| 11447 | tcc*) |
| 11448 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11449 | export_dynamic_flag_spec='-rdynamic' |
| 11450 | ;; |
| 11451 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 11452 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 11453 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 11454 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11455 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 11456 | if test yes = "$supports_anon_versioning"; then |
| 11457 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11458 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11459 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11460 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 11461 | fi |
| 11462 | ;; |
| 11463 | esac |
| 11464 | else |
| 11465 | ld_shlibs=no |
| 11466 | fi |
| 11467 | ;; |
| 11468 | |
| 11469 | netbsd* | netbsdelf*-gnu) |
| 11470 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11471 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11472 | wlarc= |
| 11473 | else |
| 11474 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11475 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11476 | fi |
| 11477 | ;; |
| 11478 | |
| 11479 | solaris*) |
| 11480 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 11481 | ld_shlibs=no |
| 11482 | cat <<_LT_EOF 1>&2 |
| 11483 | |
| 11484 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11485 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 11486 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11487 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 11488 | *** your PATH or compiler configuration so that the native linker is |
| 11489 | *** used, and then restart. |
| 11490 | |
| 11491 | _LT_EOF |
| 11492 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11493 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11494 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11495 | else |
| 11496 | ld_shlibs=no |
| 11497 | fi |
| 11498 | ;; |
| 11499 | |
| 11500 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11501 | case `$LD -v 2>&1` in |
| 11502 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 11503 | ld_shlibs=no |
| 11504 | cat <<_LT_EOF 1>&2 |
| 11505 | |
| 11506 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 11507 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11508 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 11509 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11510 | *** your PATH or compiler configuration so that the native linker is |
| 11511 | *** used, and then restart. |
| 11512 | |
| 11513 | _LT_EOF |
| 11514 | ;; |
| 11515 | *) |
| 11516 | # For security reasons, it is highly recommended that you always |
| 11517 | # use absolute paths for naming shared libraries, and exclude the |
| 11518 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11519 | # requires that you compile everything twice, which is a pain. |
| 11520 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11521 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 11522 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11523 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11524 | else |
| 11525 | ld_shlibs=no |
| 11526 | fi |
| 11527 | ;; |
| 11528 | esac |
| 11529 | ;; |
| 11530 | |
| 11531 | sunos4*) |
| 11532 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11533 | wlarc= |
| 11534 | hardcode_direct=yes |
| 11535 | hardcode_shlibpath_var=no |
| 11536 | ;; |
| 11537 | |
| 11538 | *) |
| 11539 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11540 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11541 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 11542 | else |
| 11543 | ld_shlibs=no |
| 11544 | fi |
| 11545 | ;; |
| 11546 | esac |
| 11547 | |
| 11548 | if test no = "$ld_shlibs"; then |
| 11549 | runpath_var= |
| 11550 | hardcode_libdir_flag_spec= |
| 11551 | export_dynamic_flag_spec= |
| 11552 | whole_archive_flag_spec= |
| 11553 | fi |
| 11554 | else |
| 11555 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 11556 | case $host_os in |
| 11557 | aix3*) |
| 11558 | allow_undefined_flag=unsupported |
| 11559 | always_export_symbols=yes |
| 11560 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 11561 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 11562 | # are no directories specified by -L. |
| 11563 | hardcode_minus_L=yes |
| 11564 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 11565 | # Neither direct hardcoding nor static linking is supported with a |
| 11566 | # broken collect2. |
| 11567 | hardcode_direct=unsupported |
| 11568 | fi |
| 11569 | ;; |
| 11570 | |
| 11571 | aix[4-9]*) |
| 11572 | if test ia64 = "$host_cpu"; then |
| 11573 | # On IA64, the linker does run time linking by default, so we don't |
| 11574 | # have to do anything special. |
| 11575 | aix_use_runtimelinking=no |
| 11576 | exp_sym_flag='-Bexport' |
| 11577 | no_entry_flag= |
| 11578 | else |
| 11579 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11580 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 11581 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 11582 | # weak defined symbols like other global defined symbols, whereas |
| 11583 | # GNU nm marks them as "W". |
| 11584 | # While the 'weak' keyword is ignored in the Export File, we need |
| 11585 | # it in the Import File for the 'aix-soname' feature, so we have |
| 11586 | # to replace the "-B" option with "-P" for AIX nm. |
| 11587 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 11588 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 11589 | else |
| 11590 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 11591 | fi |
| 11592 | aix_use_runtimelinking=no |
| 11593 | |
| 11594 | # Test if we are trying to use run time linking or normal |
| 11595 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11596 | # have runtime linking enabled, and use it for executables. |
| 11597 | # For shared libraries, we enable/disable runtime linking |
| 11598 | # depending on the kind of the shared library created - |
| 11599 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 11600 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 11601 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 11602 | # lib.a static archive |
| 11603 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 11604 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 11605 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11606 | # lib.a(lib.so.V) shared, rtl:no |
| 11607 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 11608 | # lib.a static archive |
| 11609 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11610 | for ld_flag in $LDFLAGS; do |
| 11611 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 11612 | aix_use_runtimelinking=yes |
| 11613 | break |
| 11614 | fi |
| 11615 | done |
| 11616 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11617 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 11618 | # so we don't have lib.a shared libs to link our executables. |
| 11619 | # We have to force runtime linking in this case. |
| 11620 | aix_use_runtimelinking=yes |
| 11621 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 11622 | fi |
| 11623 | ;; |
| 11624 | esac |
| 11625 | |
| 11626 | exp_sym_flag='-bexport' |
| 11627 | no_entry_flag='-bnoentry' |
| 11628 | fi |
| 11629 | |
| 11630 | # When large executables or shared objects are built, AIX ld can |
| 11631 | # have problems creating the table of contents. If linking a library |
| 11632 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11633 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11634 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11635 | |
| 11636 | archive_cmds='' |
| 11637 | hardcode_direct=yes |
| 11638 | hardcode_direct_absolute=yes |
| 11639 | hardcode_libdir_separator=':' |
| 11640 | link_all_deplibs=yes |
| 11641 | file_list_spec='$wl-f,' |
| 11642 | case $with_aix_soname,$aix_use_runtimelinking in |
| 11643 | aix,*) ;; # traditional, no import file |
| 11644 | svr4,* | *,yes) # use import file |
| 11645 | # The Import File defines what to hardcode. |
| 11646 | hardcode_direct=no |
| 11647 | hardcode_direct_absolute=no |
| 11648 | ;; |
| 11649 | esac |
| 11650 | |
| 11651 | if test yes = "$GCC"; then |
| 11652 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11653 | # We only want to do this on AIX 4.2 and lower, the check |
| 11654 | # below for broken collect2 doesn't work under 4.3+ |
| 11655 | collect2name=`$CC -print-prog-name=collect2` |
| 11656 | if test -f "$collect2name" && |
| 11657 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11658 | then |
| 11659 | # We have reworked collect2 |
| 11660 | : |
| 11661 | else |
| 11662 | # We have old collect2 |
| 11663 | hardcode_direct=unsupported |
| 11664 | # It fails to find uninstalled libraries when the uninstalled |
| 11665 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11666 | # to unsupported forces relinking |
| 11667 | hardcode_minus_L=yes |
| 11668 | hardcode_libdir_flag_spec='-L$libdir' |
| 11669 | hardcode_libdir_separator= |
| 11670 | fi |
| 11671 | ;; |
| 11672 | esac |
| 11673 | shared_flag='-shared' |
| 11674 | if test yes = "$aix_use_runtimelinking"; then |
| 11675 | shared_flag="$shared_flag "'$wl-G' |
| 11676 | fi |
| 11677 | # Need to ensure runtime linking is disabled for the traditional |
| 11678 | # shared library, or the linker may eventually find shared libraries |
| 11679 | # /with/ Import File - we do not want to mix them. |
| 11680 | shared_flag_aix='-shared' |
| 11681 | shared_flag_svr4='-shared $wl-G' |
| 11682 | else |
| 11683 | # not using gcc |
| 11684 | if test ia64 = "$host_cpu"; then |
| 11685 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11686 | # chokes on -Wl,-G. The following line is correct: |
| 11687 | shared_flag='-G' |
| 11688 | else |
| 11689 | if test yes = "$aix_use_runtimelinking"; then |
| 11690 | shared_flag='$wl-G' |
| 11691 | else |
| 11692 | shared_flag='$wl-bM:SRE' |
| 11693 | fi |
| 11694 | shared_flag_aix='$wl-bM:SRE' |
| 11695 | shared_flag_svr4='$wl-G' |
| 11696 | fi |
| 11697 | fi |
| 11698 | |
| 11699 | export_dynamic_flag_spec='$wl-bexpall' |
| 11700 | # It seems that -bexpall does not export symbols beginning with |
| 11701 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11702 | always_export_symbols=yes |
| 11703 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 11704 | # Warning - without using the other runtime loading flags (-brtl), |
| 11705 | # -berok will link without error, but may produce a broken library. |
| 11706 | allow_undefined_flag='-berok' |
| 11707 | # Determine the default libpath from the value encoded in an |
| 11708 | # empty executable. |
| 11709 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11710 | aix_libpath=$lt_cv_aix_libpath |
| 11711 | else |
| 11712 | if test ${lt_cv_aix_libpath_+y} |
| 11713 | then : |
| 11714 | printf %s "(cached) " >&6 |
| 11715 | else $as_nop |
| 11716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11717 | /* end confdefs.h. */ |
| 11718 | |
| 11719 | int |
| 11720 | main (void) |
| 11721 | { |
| 11722 | |
| 11723 | ; |
| 11724 | return 0; |
| 11725 | } |
| 11726 | _ACEOF |
| 11727 | if ac_fn_c_try_link "$LINENO" |
| 11728 | then : |
| 11729 | |
| 11730 | lt_aix_libpath_sed=' |
| 11731 | /Import File Strings/,/^$/ { |
| 11732 | /^0/ { |
| 11733 | s/^0 *\([^ ]*\) *$/\1/ |
| 11734 | p |
| 11735 | } |
| 11736 | }' |
| 11737 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11738 | # Check for a 64-bit object if we didn't find anything. |
| 11739 | if test -z "$lt_cv_aix_libpath_"; then |
| 11740 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11741 | fi |
| 11742 | fi |
| 11743 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11744 | conftest$ac_exeext conftest.$ac_ext |
| 11745 | if test -z "$lt_cv_aix_libpath_"; then |
| 11746 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11747 | fi |
| 11748 | |
| 11749 | fi |
| 11750 | |
| 11751 | aix_libpath=$lt_cv_aix_libpath_ |
| 11752 | fi |
| 11753 | |
| 11754 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11755 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 11756 | else |
| 11757 | if test ia64 = "$host_cpu"; then |
| 11758 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 11759 | allow_undefined_flag="-z nodefs" |
| 11760 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 11761 | else |
| 11762 | # Determine the default libpath from the value encoded in an |
| 11763 | # empty executable. |
| 11764 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 11765 | aix_libpath=$lt_cv_aix_libpath |
| 11766 | else |
| 11767 | if test ${lt_cv_aix_libpath_+y} |
| 11768 | then : |
| 11769 | printf %s "(cached) " >&6 |
| 11770 | else $as_nop |
| 11771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11772 | /* end confdefs.h. */ |
| 11773 | |
| 11774 | int |
| 11775 | main (void) |
| 11776 | { |
| 11777 | |
| 11778 | ; |
| 11779 | return 0; |
| 11780 | } |
| 11781 | _ACEOF |
| 11782 | if ac_fn_c_try_link "$LINENO" |
| 11783 | then : |
| 11784 | |
| 11785 | lt_aix_libpath_sed=' |
| 11786 | /Import File Strings/,/^$/ { |
| 11787 | /^0/ { |
| 11788 | s/^0 *\([^ ]*\) *$/\1/ |
| 11789 | p |
| 11790 | } |
| 11791 | }' |
| 11792 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11793 | # Check for a 64-bit object if we didn't find anything. |
| 11794 | if test -z "$lt_cv_aix_libpath_"; then |
| 11795 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11796 | fi |
| 11797 | fi |
| 11798 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11799 | conftest$ac_exeext conftest.$ac_ext |
| 11800 | if test -z "$lt_cv_aix_libpath_"; then |
| 11801 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 11802 | fi |
| 11803 | |
| 11804 | fi |
| 11805 | |
| 11806 | aix_libpath=$lt_cv_aix_libpath_ |
| 11807 | fi |
| 11808 | |
| 11809 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 11810 | # Warning - without using the other run time loading flags, |
| 11811 | # -berok will link without error, but may produce a broken library. |
| 11812 | no_undefined_flag=' $wl-bernotok' |
| 11813 | allow_undefined_flag=' $wl-berok' |
| 11814 | if test yes = "$with_gnu_ld"; then |
| 11815 | # We only use this code for GNU lds that support --whole-archive. |
| 11816 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 11817 | else |
| 11818 | # Exported symbols can be pulled into shared objects from archives |
| 11819 | whole_archive_flag_spec='$convenience' |
| 11820 | fi |
| 11821 | archive_cmds_need_lc=yes |
| 11822 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 11823 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 11824 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 11825 | if test svr4 != "$with_aix_soname"; then |
| 11826 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11827 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 11828 | fi |
| 11829 | if test aix != "$with_aix_soname"; then |
| 11830 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 11831 | else |
| 11832 | # used by -dlpreopen to get the symbols |
| 11833 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 11834 | fi |
| 11835 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 11836 | fi |
| 11837 | fi |
| 11838 | ;; |
| 11839 | |
| 11840 | amigaos*) |
| 11841 | case $host_cpu in |
| 11842 | powerpc) |
| 11843 | # see comment about AmigaOS4 .so support |
| 11844 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 11845 | archive_expsym_cmds='' |
| 11846 | ;; |
| 11847 | m68k) |
| 11848 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 11849 | hardcode_libdir_flag_spec='-L$libdir' |
| 11850 | hardcode_minus_L=yes |
| 11851 | ;; |
| 11852 | esac |
| 11853 | ;; |
| 11854 | |
| 11855 | bsdi[45]*) |
| 11856 | export_dynamic_flag_spec=-rdynamic |
| 11857 | ;; |
| 11858 | |
| 11859 | cygwin* | mingw* | pw32* | cegcc*) |
| 11860 | # When not using gcc, we currently assume that we are using |
| 11861 | # Microsoft Visual C++ or Intel C++ Compiler. |
| 11862 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11863 | # no search path for DLLs. |
| 11864 | case $cc_basename in |
| 11865 | cl* | icl*) |
| 11866 | # Native MSVC or ICC |
| 11867 | hardcode_libdir_flag_spec=' ' |
| 11868 | allow_undefined_flag=unsupported |
| 11869 | always_export_symbols=yes |
| 11870 | file_list_spec='@' |
| 11871 | # Tell ltmain to make .lib files, not .a files. |
| 11872 | libext=lib |
| 11873 | # Tell ltmain to make .dll files, not .so files. |
| 11874 | shrext_cmds=.dll |
| 11875 | # FIXME: Setting linknames here is a bad hack. |
| 11876 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 11877 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 11878 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 11879 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 11880 | else |
| 11881 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 11882 | fi~ |
| 11883 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11884 | linknames=' |
| 11885 | # The linker will not automatically build a static lib if we build a DLL. |
| 11886 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11887 | enable_shared_with_static_runtimes=yes |
| 11888 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11889 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11890 | # Don't use ranlib |
| 11891 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11892 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11893 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11894 | case $lt_outputfile in |
| 11895 | *.exe|*.EXE) ;; |
| 11896 | *) |
| 11897 | lt_outputfile=$lt_outputfile.exe |
| 11898 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 11899 | ;; |
| 11900 | esac~ |
| 11901 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 11902 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11903 | $RM "$lt_outputfile.manifest"; |
| 11904 | fi' |
| 11905 | ;; |
| 11906 | *) |
| 11907 | # Assume MSVC and ICC wrapper |
| 11908 | hardcode_libdir_flag_spec=' ' |
| 11909 | allow_undefined_flag=unsupported |
| 11910 | # Tell ltmain to make .lib files, not .a files. |
| 11911 | libext=lib |
| 11912 | # Tell ltmain to make .dll files, not .so files. |
| 11913 | shrext_cmds=.dll |
| 11914 | # FIXME: Setting linknames here is a bad hack. |
| 11915 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11916 | # The linker will automatically build a .lib file if we build a DLL. |
| 11917 | old_archive_from_new_cmds='true' |
| 11918 | # FIXME: Should let the user specify the lib program. |
| 11919 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11920 | enable_shared_with_static_runtimes=yes |
| 11921 | ;; |
| 11922 | esac |
| 11923 | ;; |
| 11924 | |
| 11925 | darwin* | rhapsody*) |
| 11926 | |
| 11927 | |
| 11928 | archive_cmds_need_lc=no |
| 11929 | hardcode_direct=no |
| 11930 | hardcode_automatic=yes |
| 11931 | hardcode_shlibpath_var=unsupported |
| 11932 | if test yes = "$lt_cv_ld_force_load"; then |
| 11933 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 11934 | |
| 11935 | else |
| 11936 | whole_archive_flag_spec='' |
| 11937 | fi |
| 11938 | link_all_deplibs=yes |
| 11939 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 11940 | case $cc_basename in |
| 11941 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 11942 | *) _lt_dar_can_shared=$GCC ;; |
| 11943 | esac |
| 11944 | if test yes = "$_lt_dar_can_shared"; then |
| 11945 | output_verbose_link_cmd=func_echo_all |
| 11946 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 11947 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 11948 | archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 11949 | module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 11950 | |
| 11951 | else |
| 11952 | ld_shlibs=no |
| 11953 | fi |
| 11954 | |
| 11955 | ;; |
| 11956 | |
| 11957 | dgux*) |
| 11958 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11959 | hardcode_libdir_flag_spec='-L$libdir' |
| 11960 | hardcode_shlibpath_var=no |
| 11961 | ;; |
| 11962 | |
| 11963 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11964 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 11965 | # does not break anything, and helps significantly (at the cost of a little |
| 11966 | # extra space). |
| 11967 | freebsd2.2*) |
| 11968 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11969 | hardcode_libdir_flag_spec='-R$libdir' |
| 11970 | hardcode_direct=yes |
| 11971 | hardcode_shlibpath_var=no |
| 11972 | ;; |
| 11973 | |
| 11974 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11975 | freebsd2.*) |
| 11976 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11977 | hardcode_direct=yes |
| 11978 | hardcode_minus_L=yes |
| 11979 | hardcode_shlibpath_var=no |
| 11980 | ;; |
| 11981 | |
| 11982 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11983 | freebsd* | dragonfly* | midnightbsd*) |
| 11984 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11985 | hardcode_libdir_flag_spec='-R$libdir' |
| 11986 | hardcode_direct=yes |
| 11987 | hardcode_shlibpath_var=no |
| 11988 | ;; |
| 11989 | |
| 11990 | hpux9*) |
| 11991 | if test yes = "$GCC"; then |
| 11992 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11993 | else |
| 11994 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11995 | fi |
| 11996 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11997 | hardcode_libdir_separator=: |
| 11998 | hardcode_direct=yes |
| 11999 | |
| 12000 | # hardcode_minus_L: Not really in the search PATH, |
| 12001 | # but as the default location of the library. |
| 12002 | hardcode_minus_L=yes |
| 12003 | export_dynamic_flag_spec='$wl-E' |
| 12004 | ;; |
| 12005 | |
| 12006 | hpux10*) |
| 12007 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 12008 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12009 | else |
| 12010 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12011 | fi |
| 12012 | if test no = "$with_gnu_ld"; then |
| 12013 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12014 | hardcode_libdir_separator=: |
| 12015 | hardcode_direct=yes |
| 12016 | hardcode_direct_absolute=yes |
| 12017 | export_dynamic_flag_spec='$wl-E' |
| 12018 | # hardcode_minus_L: Not really in the search PATH, |
| 12019 | # but as the default location of the library. |
| 12020 | hardcode_minus_L=yes |
| 12021 | fi |
| 12022 | ;; |
| 12023 | |
| 12024 | hpux11*) |
| 12025 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 12026 | case $host_cpu in |
| 12027 | hppa*64*) |
| 12028 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12029 | ;; |
| 12030 | ia64*) |
| 12031 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12032 | ;; |
| 12033 | *) |
| 12034 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12035 | ;; |
| 12036 | esac |
| 12037 | else |
| 12038 | case $host_cpu in |
| 12039 | hppa*64*) |
| 12040 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12041 | ;; |
| 12042 | ia64*) |
| 12043 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12044 | ;; |
| 12045 | *) |
| 12046 | |
| 12047 | # Older versions of the 11.00 compiler do not understand -b yet |
| 12048 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 12049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 12050 | printf %s "checking if $CC understands -b... " >&6; } |
| 12051 | if test ${lt_cv_prog_compiler__b+y} |
| 12052 | then : |
| 12053 | printf %s "(cached) " >&6 |
| 12054 | else $as_nop |
| 12055 | lt_cv_prog_compiler__b=no |
| 12056 | save_LDFLAGS=$LDFLAGS |
| 12057 | LDFLAGS="$LDFLAGS -b" |
| 12058 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12059 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12060 | # The linker can only warn and ignore the option if not recognized |
| 12061 | # So say no if there are warnings |
| 12062 | if test -s conftest.err; then |
| 12063 | # Append any errors to the config.log. |
| 12064 | cat conftest.err 1>&5 |
| 12065 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12066 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12067 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12068 | lt_cv_prog_compiler__b=yes |
| 12069 | fi |
| 12070 | else |
| 12071 | lt_cv_prog_compiler__b=yes |
| 12072 | fi |
| 12073 | fi |
| 12074 | $RM -r conftest* |
| 12075 | LDFLAGS=$save_LDFLAGS |
| 12076 | |
| 12077 | fi |
| 12078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 12079 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 12080 | |
| 12081 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 12082 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12083 | else |
| 12084 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12085 | fi |
| 12086 | |
| 12087 | ;; |
| 12088 | esac |
| 12089 | fi |
| 12090 | if test no = "$with_gnu_ld"; then |
| 12091 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 12092 | hardcode_libdir_separator=: |
| 12093 | |
| 12094 | case $host_cpu in |
| 12095 | hppa*64*|ia64*) |
| 12096 | hardcode_direct=no |
| 12097 | hardcode_shlibpath_var=no |
| 12098 | ;; |
| 12099 | *) |
| 12100 | hardcode_direct=yes |
| 12101 | hardcode_direct_absolute=yes |
| 12102 | export_dynamic_flag_spec='$wl-E' |
| 12103 | |
| 12104 | # hardcode_minus_L: Not really in the search PATH, |
| 12105 | # but as the default location of the library. |
| 12106 | hardcode_minus_L=yes |
| 12107 | ;; |
| 12108 | esac |
| 12109 | fi |
| 12110 | ;; |
| 12111 | |
| 12112 | irix5* | irix6* | nonstopux*) |
| 12113 | if test yes = "$GCC"; then |
| 12114 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 12115 | # Try to use the -exported_symbol ld option, if it does not |
| 12116 | # work, assume that -exports_file does not work either and |
| 12117 | # implicitly export all symbols. |
| 12118 | # This should be the same for all languages, so no per-tag cache variable. |
| 12119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 12120 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 12121 | if test ${lt_cv_irix_exported_symbol+y} |
| 12122 | then : |
| 12123 | printf %s "(cached) " >&6 |
| 12124 | else $as_nop |
| 12125 | save_LDFLAGS=$LDFLAGS |
| 12126 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 12127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12128 | /* end confdefs.h. */ |
| 12129 | int foo (void) { return 0; } |
| 12130 | _ACEOF |
| 12131 | if ac_fn_c_try_link "$LINENO" |
| 12132 | then : |
| 12133 | lt_cv_irix_exported_symbol=yes |
| 12134 | else $as_nop |
| 12135 | lt_cv_irix_exported_symbol=no |
| 12136 | fi |
| 12137 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12138 | conftest$ac_exeext conftest.$ac_ext |
| 12139 | LDFLAGS=$save_LDFLAGS |
| 12140 | fi |
| 12141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 12142 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 12143 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 12144 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
| 12145 | fi |
| 12146 | link_all_deplibs=no |
| 12147 | else |
| 12148 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 12149 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
| 12150 | fi |
| 12151 | archive_cmds_need_lc='no' |
| 12152 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12153 | hardcode_libdir_separator=: |
| 12154 | inherit_rpath=yes |
| 12155 | link_all_deplibs=yes |
| 12156 | ;; |
| 12157 | |
| 12158 | linux*) |
| 12159 | case $cc_basename in |
| 12160 | tcc*) |
| 12161 | # Fabrice Bellard et al's Tiny C Compiler |
| 12162 | ld_shlibs=yes |
| 12163 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12164 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12165 | ;; |
| 12166 | esac |
| 12167 | ;; |
| 12168 | |
| 12169 | netbsd* | netbsdelf*-gnu) |
| 12170 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12171 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12172 | else |
| 12173 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12174 | fi |
| 12175 | hardcode_libdir_flag_spec='-R$libdir' |
| 12176 | hardcode_direct=yes |
| 12177 | hardcode_shlibpath_var=no |
| 12178 | ;; |
| 12179 | |
| 12180 | newsos6) |
| 12181 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12182 | hardcode_direct=yes |
| 12183 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12184 | hardcode_libdir_separator=: |
| 12185 | hardcode_shlibpath_var=no |
| 12186 | ;; |
| 12187 | |
| 12188 | *nto* | *qnx*) |
| 12189 | ;; |
| 12190 | |
| 12191 | openbsd* | bitrig*) |
| 12192 | if test -f /usr/libexec/ld.so; then |
| 12193 | hardcode_direct=yes |
| 12194 | hardcode_shlibpath_var=no |
| 12195 | hardcode_direct_absolute=yes |
| 12196 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 12197 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12198 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 12199 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12200 | export_dynamic_flag_spec='$wl-E' |
| 12201 | else |
| 12202 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12203 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 12204 | fi |
| 12205 | else |
| 12206 | ld_shlibs=no |
| 12207 | fi |
| 12208 | ;; |
| 12209 | |
| 12210 | os2*) |
| 12211 | hardcode_libdir_flag_spec='-L$libdir' |
| 12212 | hardcode_minus_L=yes |
| 12213 | allow_undefined_flag=unsupported |
| 12214 | shrext_cmds=.dll |
| 12215 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12216 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12217 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12218 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12219 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 12220 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12221 | emximp -o $lib $output_objdir/$libname.def' |
| 12222 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 12223 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 12224 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 12225 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 12226 | prefix_cmds="$SED"~ |
| 12227 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 12228 | prefix_cmds="$prefix_cmds -e 1d"; |
| 12229 | fi~ |
| 12230 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 12231 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 12232 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 12233 | emximp -o $lib $output_objdir/$libname.def' |
| 12234 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 12235 | enable_shared_with_static_runtimes=yes |
| 12236 | file_list_spec='@' |
| 12237 | ;; |
| 12238 | |
| 12239 | osf3*) |
| 12240 | if test yes = "$GCC"; then |
| 12241 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12242 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 12243 | else |
| 12244 | allow_undefined_flag=' -expect_unresolved \*' |
| 12245 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 12246 | fi |
| 12247 | archive_cmds_need_lc='no' |
| 12248 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12249 | hardcode_libdir_separator=: |
| 12250 | ;; |
| 12251 | |
| 12252 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12253 | if test yes = "$GCC"; then |
| 12254 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 12255 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 12256 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 12257 | else |
| 12258 | allow_undefined_flag=' -expect_unresolved \*' |
| 12259 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 12260 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 12261 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
| 12262 | |
| 12263 | # Both c and cxx compiler support -rpath directly |
| 12264 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12265 | fi |
| 12266 | archive_cmds_need_lc='no' |
| 12267 | hardcode_libdir_separator=: |
| 12268 | ;; |
| 12269 | |
| 12270 | solaris*) |
| 12271 | no_undefined_flag=' -z defs' |
| 12272 | if test yes = "$GCC"; then |
| 12273 | wlarc='$wl' |
| 12274 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12275 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12276 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12277 | else |
| 12278 | case `$CC -V 2>&1` in |
| 12279 | *"Compilers 5.0"*) |
| 12280 | wlarc='' |
| 12281 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12282 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12283 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12284 | ;; |
| 12285 | *) |
| 12286 | wlarc='$wl' |
| 12287 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12288 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12289 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12290 | ;; |
| 12291 | esac |
| 12292 | fi |
| 12293 | hardcode_libdir_flag_spec='-R$libdir' |
| 12294 | hardcode_shlibpath_var=no |
| 12295 | case $host_os in |
| 12296 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12297 | *) |
| 12298 | # The compiler driver will combine and reorder linker options, |
| 12299 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 12300 | # but is careful enough not to reorder. |
| 12301 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12302 | if test yes = "$GCC"; then |
| 12303 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 12304 | else |
| 12305 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12306 | fi |
| 12307 | ;; |
| 12308 | esac |
| 12309 | link_all_deplibs=yes |
| 12310 | ;; |
| 12311 | |
| 12312 | sunos4*) |
| 12313 | if test sequent = "$host_vendor"; then |
| 12314 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12315 | # files that make .init and .fini sections work. |
| 12316 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12317 | else |
| 12318 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12319 | fi |
| 12320 | hardcode_libdir_flag_spec='-L$libdir' |
| 12321 | hardcode_direct=yes |
| 12322 | hardcode_minus_L=yes |
| 12323 | hardcode_shlibpath_var=no |
| 12324 | ;; |
| 12325 | |
| 12326 | sysv4) |
| 12327 | case $host_vendor in |
| 12328 | sni) |
| 12329 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12330 | hardcode_direct=yes # is this really true??? |
| 12331 | ;; |
| 12332 | siemens) |
| 12333 | ## LD is ld it makes a PLAMLIB |
| 12334 | ## CC just makes a GrossModule. |
| 12335 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12336 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12337 | hardcode_direct=no |
| 12338 | ;; |
| 12339 | motorola) |
| 12340 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12341 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12342 | ;; |
| 12343 | esac |
| 12344 | runpath_var='LD_RUN_PATH' |
| 12345 | hardcode_shlibpath_var=no |
| 12346 | ;; |
| 12347 | |
| 12348 | sysv4.3*) |
| 12349 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12350 | hardcode_shlibpath_var=no |
| 12351 | export_dynamic_flag_spec='-Bexport' |
| 12352 | ;; |
| 12353 | |
| 12354 | sysv4*MP*) |
| 12355 | if test -d /usr/nec; then |
| 12356 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12357 | hardcode_shlibpath_var=no |
| 12358 | runpath_var=LD_RUN_PATH |
| 12359 | hardcode_runpath_var=yes |
| 12360 | ld_shlibs=yes |
| 12361 | fi |
| 12362 | ;; |
| 12363 | |
| 12364 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12365 | no_undefined_flag='$wl-z,text' |
| 12366 | archive_cmds_need_lc=no |
| 12367 | hardcode_shlibpath_var=no |
| 12368 | runpath_var='LD_RUN_PATH' |
| 12369 | |
| 12370 | if test yes = "$GCC"; then |
| 12371 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12372 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12373 | else |
| 12374 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12375 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12376 | fi |
| 12377 | ;; |
| 12378 | |
| 12379 | sysv5* | sco3.2v5* | sco5v6*) |
| 12380 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 12381 | # link with -lc, and that would cause any symbols used from libc to |
| 12382 | # always be unresolved, which means just about no library would |
| 12383 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12384 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12385 | # as -z defs. |
| 12386 | no_undefined_flag='$wl-z,text' |
| 12387 | allow_undefined_flag='$wl-z,nodefs' |
| 12388 | archive_cmds_need_lc=no |
| 12389 | hardcode_shlibpath_var=no |
| 12390 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 12391 | hardcode_libdir_separator=':' |
| 12392 | link_all_deplibs=yes |
| 12393 | export_dynamic_flag_spec='$wl-Bexport' |
| 12394 | runpath_var='LD_RUN_PATH' |
| 12395 | |
| 12396 | if test yes = "$GCC"; then |
| 12397 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12398 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12399 | else |
| 12400 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12401 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12402 | fi |
| 12403 | ;; |
| 12404 | |
| 12405 | uts4*) |
| 12406 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12407 | hardcode_libdir_flag_spec='-L$libdir' |
| 12408 | hardcode_shlibpath_var=no |
| 12409 | ;; |
| 12410 | |
| 12411 | *) |
| 12412 | ld_shlibs=no |
| 12413 | ;; |
| 12414 | esac |
| 12415 | |
| 12416 | if test sni = "$host_vendor"; then |
| 12417 | case $host in |
| 12418 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12419 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 12420 | ;; |
| 12421 | esac |
| 12422 | fi |
| 12423 | fi |
| 12424 | |
| 12425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 12426 | printf "%s\n" "$ld_shlibs" >&6; } |
| 12427 | test no = "$ld_shlibs" && can_build_shared=no |
| 12428 | |
| 12429 | with_gnu_ld=$with_gnu_ld |
| 12430 | |
| 12431 | |
| 12432 | |
| 12433 | |
| 12434 | |
| 12435 | |
| 12436 | |
| 12437 | |
| 12438 | |
| 12439 | |
| 12440 | |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | # |
| 12446 | # Do we need to explicitly link libc? |
| 12447 | # |
| 12448 | case "x$archive_cmds_need_lc" in |
| 12449 | x|xyes) |
| 12450 | # Assume -lc should be added |
| 12451 | archive_cmds_need_lc=yes |
| 12452 | |
| 12453 | if test yes,yes = "$GCC,$enable_shared"; then |
| 12454 | case $archive_cmds in |
| 12455 | *'~'*) |
| 12456 | # FIXME: we may have to deal with multi-command sequences. |
| 12457 | ;; |
| 12458 | '$CC '*) |
| 12459 | # Test whether the compiler implicitly links with -lc since on some |
| 12460 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12461 | # to ld, don't add -lc before -lgcc. |
| 12462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 12463 | printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 12464 | if test ${lt_cv_archive_cmds_need_lc+y} |
| 12465 | then : |
| 12466 | printf %s "(cached) " >&6 |
| 12467 | else $as_nop |
| 12468 | $RM conftest* |
| 12469 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12470 | |
| 12471 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12472 | (eval $ac_compile) 2>&5 |
| 12473 | ac_status=$? |
| 12474 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12475 | test $ac_status = 0; } 2>conftest.err; then |
| 12476 | soname=conftest |
| 12477 | lib=conftest |
| 12478 | libobjs=conftest.$ac_objext |
| 12479 | deplibs= |
| 12480 | wl=$lt_prog_compiler_wl |
| 12481 | pic_flag=$lt_prog_compiler_pic |
| 12482 | compiler_flags=-v |
| 12483 | linker_flags=-v |
| 12484 | verstring= |
| 12485 | output_objdir=. |
| 12486 | libname=conftest |
| 12487 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 12488 | allow_undefined_flag= |
| 12489 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 12490 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12491 | ac_status=$? |
| 12492 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12493 | test $ac_status = 0; } |
| 12494 | then |
| 12495 | lt_cv_archive_cmds_need_lc=no |
| 12496 | else |
| 12497 | lt_cv_archive_cmds_need_lc=yes |
| 12498 | fi |
| 12499 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 12500 | else |
| 12501 | cat conftest.err 1>&5 |
| 12502 | fi |
| 12503 | $RM conftest* |
| 12504 | |
| 12505 | fi |
| 12506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 12507 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 12508 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 12509 | ;; |
| 12510 | esac |
| 12511 | fi |
| 12512 | ;; |
| 12513 | esac |
| 12514 | |
| 12515 | |
| 12516 | |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
| 12552 | |
| 12553 | |
| 12554 | |
| 12555 | |
| 12556 | |
| 12557 | |
| 12558 | |
| 12559 | |
| 12560 | |
| 12561 | |
| 12562 | |
| 12563 | |
| 12564 | |
| 12565 | |
| 12566 | |
| 12567 | |
| 12568 | |
| 12569 | |
| 12570 | |
| 12571 | |
| 12572 | |
| 12573 | |
| 12574 | |
| 12575 | |
| 12576 | |
| 12577 | |
| 12578 | |
| 12579 | |
| 12580 | |
| 12581 | |
| 12582 | |
| 12583 | |
| 12584 | |
| 12585 | |
| 12586 | |
| 12587 | |
| 12588 | |
| 12589 | |
| 12590 | |
| 12591 | |
| 12592 | |
| 12593 | |
| 12594 | |
| 12595 | |
| 12596 | |
| 12597 | |
| 12598 | |
| 12599 | |
| 12600 | |
| 12601 | |
| 12602 | |
| 12603 | |
| 12604 | |
| 12605 | |
| 12606 | |
| 12607 | |
| 12608 | |
| 12609 | |
| 12610 | |
| 12611 | |
| 12612 | |
| 12613 | |
| 12614 | |
| 12615 | |
| 12616 | |
| 12617 | |
| 12618 | |
| 12619 | |
| 12620 | |
| 12621 | |
| 12622 | |
| 12623 | |
| 12624 | |
| 12625 | |
| 12626 | |
| 12627 | |
| 12628 | |
| 12629 | |
| 12630 | |
| 12631 | |
| 12632 | |
| 12633 | |
| 12634 | |
| 12635 | |
| 12636 | |
| 12637 | |
| 12638 | |
| 12639 | |
| 12640 | |
| 12641 | |
| 12642 | |
| 12643 | |
| 12644 | |
| 12645 | |
| 12646 | |
| 12647 | |
| 12648 | |
| 12649 | |
| 12650 | |
| 12651 | |
| 12652 | |
| 12653 | |
| 12654 | |
| 12655 | |
| 12656 | |
| 12657 | |
| 12658 | |
| 12659 | |
| 12660 | |
| 12661 | |
| 12662 | |
| 12663 | |
| 12664 | |
| 12665 | |
| 12666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 12667 | printf %s "checking dynamic linker characteristics... " >&6; } |
| 12668 | |
| 12669 | if test yes = "$GCC"; then |
| 12670 | case $host_os in |
| 12671 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 12672 | *) lt_awk_arg='/^libraries:/' ;; |
| 12673 | esac |
| 12674 | case $host_os in |
| 12675 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 12676 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 12677 | esac |
| 12678 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 12679 | case $lt_search_path_spec in |
| 12680 | *\;*) |
| 12681 | # if the path contains ";" then we assume it to be the separator |
| 12682 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12683 | # assumed that no part of a normal pathname contains ";" but that should |
| 12684 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12685 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 12686 | ;; |
| 12687 | *) |
| 12688 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 12689 | ;; |
| 12690 | esac |
| 12691 | # Ok, now we have the path, separated by spaces, we can step through it |
| 12692 | # and add multilib dir if necessary... |
| 12693 | lt_tmp_lt_search_path_spec= |
| 12694 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 12695 | # ...but if some path component already ends with the multilib dir we assume |
| 12696 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 12697 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 12698 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 12699 | lt_multi_os_dir= |
| 12700 | ;; |
| 12701 | esac |
| 12702 | for lt_sys_path in $lt_search_path_spec; do |
| 12703 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 12704 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 12705 | elif test -n "$lt_multi_os_dir"; then |
| 12706 | test -d "$lt_sys_path" && \ |
| 12707 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 12708 | fi |
| 12709 | done |
| 12710 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 12711 | BEGIN {RS = " "; FS = "/|\n";} { |
| 12712 | lt_foo = ""; |
| 12713 | lt_count = 0; |
| 12714 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 12715 | if ($lt_i != "" && $lt_i != ".") { |
| 12716 | if ($lt_i == "..") { |
| 12717 | lt_count++; |
| 12718 | } else { |
| 12719 | if (lt_count == 0) { |
| 12720 | lt_foo = "/" $lt_i lt_foo; |
| 12721 | } else { |
| 12722 | lt_count--; |
| 12723 | } |
| 12724 | } |
| 12725 | } |
| 12726 | } |
| 12727 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 12728 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 12729 | }'` |
| 12730 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 12731 | # for these hosts. |
| 12732 | case $host_os in |
| 12733 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 12734 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 12735 | esac |
| 12736 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 12737 | else |
| 12738 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12739 | fi |
| 12740 | library_names_spec= |
| 12741 | libname_spec='lib$name' |
| 12742 | soname_spec= |
| 12743 | shrext_cmds=.so |
| 12744 | postinstall_cmds= |
| 12745 | postuninstall_cmds= |
| 12746 | finish_cmds= |
| 12747 | finish_eval= |
| 12748 | shlibpath_var= |
| 12749 | shlibpath_overrides_runpath=unknown |
| 12750 | version_type=none |
| 12751 | dynamic_linker="$host_os ld.so" |
| 12752 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12753 | need_lib_prefix=unknown |
| 12754 | hardcode_into_libs=no |
| 12755 | |
| 12756 | # when you set need_version to no, make sure it does not cause -set_version |
| 12757 | # flags to be left without arguments |
| 12758 | need_version=unknown |
| 12759 | |
| 12760 | |
| 12761 | |
| 12762 | case $host_os in |
| 12763 | aix3*) |
| 12764 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12765 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 12766 | shlibpath_var=LIBPATH |
| 12767 | |
| 12768 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12769 | soname_spec='$libname$release$shared_ext$major' |
| 12770 | ;; |
| 12771 | |
| 12772 | aix[4-9]*) |
| 12773 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12774 | need_lib_prefix=no |
| 12775 | need_version=no |
| 12776 | hardcode_into_libs=yes |
| 12777 | if test ia64 = "$host_cpu"; then |
| 12778 | # AIX 5 supports IA64 |
| 12779 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 12780 | shlibpath_var=LD_LIBRARY_PATH |
| 12781 | else |
| 12782 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12783 | # for dependence libraries. The import file would start with |
| 12784 | # the line '#! .'. This would cause the generated library to |
| 12785 | # depend on '.', always an invalid library. This was fixed in |
| 12786 | # development snapshots of GCC prior to 3.0. |
| 12787 | case $host_os in |
| 12788 | aix4 | aix4.[01] | aix4.[01].*) |
| 12789 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12790 | echo ' yes ' |
| 12791 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 12792 | : |
| 12793 | else |
| 12794 | can_build_shared=no |
| 12795 | fi |
| 12796 | ;; |
| 12797 | esac |
| 12798 | # Using Import Files as archive members, it is possible to support |
| 12799 | # filename-based versioning of shared library archives on AIX. While |
| 12800 | # this would work for both with and without runtime linking, it will |
| 12801 | # prevent static linking of such archives. So we do filename-based |
| 12802 | # shared library versioning with .so extension only, which is used |
| 12803 | # when both runtime linking and shared linking is enabled. |
| 12804 | # Unfortunately, runtime linking may impact performance, so we do |
| 12805 | # not want this to be the default eventually. Also, we use the |
| 12806 | # versioned .so libs for executables only if there is the -brtl |
| 12807 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 12808 | # To allow for filename-based versioning support, we need to create |
| 12809 | # libNAME.so.V as an archive file, containing: |
| 12810 | # *) an Import File, referring to the versioned filename of the |
| 12811 | # archive as well as the shared archive member, telling the |
| 12812 | # bitwidth (32 or 64) of that shared object, and providing the |
| 12813 | # list of exported symbols of that shared object, eventually |
| 12814 | # decorated with the 'weak' keyword |
| 12815 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 12816 | # it being seen by the linker. |
| 12817 | # At run time we better use the real file rather than another symlink, |
| 12818 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 12819 | |
| 12820 | case $with_aix_soname,$aix_use_runtimelinking in |
| 12821 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 12822 | # soname into executable. Probably we can add versioning support to |
| 12823 | # collect2, so additional links can be useful in future. |
| 12824 | aix,yes) # traditional libtool |
| 12825 | dynamic_linker='AIX unversionable lib.so' |
| 12826 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12827 | # instead of lib<name>.a to let people know that these are not |
| 12828 | # typical AIX shared libraries. |
| 12829 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12830 | ;; |
| 12831 | aix,no) # traditional AIX only |
| 12832 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 12833 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12834 | # and later when we are not doing run time linking. |
| 12835 | library_names_spec='$libname$release.a $libname.a' |
| 12836 | soname_spec='$libname$release$shared_ext$major' |
| 12837 | ;; |
| 12838 | svr4,*) # full svr4 only |
| 12839 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 12840 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12841 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12842 | shlibpath_overrides_runpath=yes |
| 12843 | ;; |
| 12844 | *,yes) # both, prefer svr4 |
| 12845 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 12846 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 12847 | # unpreferred sharedlib libNAME.a needs extra handling |
| 12848 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 12849 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 12850 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 12851 | shlibpath_overrides_runpath=yes |
| 12852 | ;; |
| 12853 | *,no) # both, prefer aix |
| 12854 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 12855 | library_names_spec='$libname$release.a $libname.a' |
| 12856 | soname_spec='$libname$release$shared_ext$major' |
| 12857 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 12858 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 12859 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 12860 | ;; |
| 12861 | esac |
| 12862 | shlibpath_var=LIBPATH |
| 12863 | fi |
| 12864 | ;; |
| 12865 | |
| 12866 | amigaos*) |
| 12867 | case $host_cpu in |
| 12868 | powerpc) |
| 12869 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12870 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12871 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12872 | ;; |
| 12873 | m68k) |
| 12874 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12875 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12876 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 12877 | ;; |
| 12878 | esac |
| 12879 | ;; |
| 12880 | |
| 12881 | beos*) |
| 12882 | library_names_spec='$libname$shared_ext' |
| 12883 | dynamic_linker="$host_os ld.so" |
| 12884 | shlibpath_var=LIBRARY_PATH |
| 12885 | ;; |
| 12886 | |
| 12887 | bsdi[45]*) |
| 12888 | version_type=linux # correct to gnu/linux during the next big refactor |
| 12889 | need_version=no |
| 12890 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 12891 | soname_spec='$libname$release$shared_ext$major' |
| 12892 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12893 | shlibpath_var=LD_LIBRARY_PATH |
| 12894 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12895 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12896 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12897 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12898 | # libtool to hard-code these into programs |
| 12899 | ;; |
| 12900 | |
| 12901 | cygwin* | mingw* | pw32* | cegcc*) |
| 12902 | version_type=windows |
| 12903 | shrext_cmds=.dll |
| 12904 | need_version=no |
| 12905 | need_lib_prefix=no |
| 12906 | |
| 12907 | case $GCC,$cc_basename in |
| 12908 | yes,*) |
| 12909 | # gcc |
| 12910 | library_names_spec='$libname.dll.a' |
| 12911 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12912 | postinstall_cmds='base_file=`basename \$file`~ |
| 12913 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12914 | dldir=$destdir/`dirname \$dlpath`~ |
| 12915 | test -d \$dldir || mkdir -p \$dldir~ |
| 12916 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12917 | chmod a+x \$dldir/$dlname~ |
| 12918 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12919 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12920 | fi' |
| 12921 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12922 | dlpath=$dir/\$dldll~ |
| 12923 | $RM \$dlpath' |
| 12924 | shlibpath_overrides_runpath=yes |
| 12925 | |
| 12926 | case $host_os in |
| 12927 | cygwin*) |
| 12928 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12929 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12930 | |
| 12931 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12932 | ;; |
| 12933 | mingw* | cegcc*) |
| 12934 | # MinGW DLLs use traditional 'lib' prefix |
| 12935 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12936 | ;; |
| 12937 | pw32*) |
| 12938 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12939 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12940 | ;; |
| 12941 | esac |
| 12942 | dynamic_linker='Win32 ld.exe' |
| 12943 | ;; |
| 12944 | |
| 12945 | *,cl* | *,icl*) |
| 12946 | # Native MSVC or ICC |
| 12947 | libname_spec='$name' |
| 12948 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 12949 | library_names_spec='$libname.dll.lib' |
| 12950 | |
| 12951 | case $build_os in |
| 12952 | mingw*) |
| 12953 | sys_lib_search_path_spec= |
| 12954 | lt_save_ifs=$IFS |
| 12955 | IFS=';' |
| 12956 | for lt_path in $LIB |
| 12957 | do |
| 12958 | IFS=$lt_save_ifs |
| 12959 | # Let DOS variable expansion print the short 8.3 style file name. |
| 12960 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12961 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12962 | done |
| 12963 | IFS=$lt_save_ifs |
| 12964 | # Convert to MSYS style. |
| 12965 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12966 | ;; |
| 12967 | cygwin*) |
| 12968 | # Convert to unix form, then to dos form, then back to unix form |
| 12969 | # but this time dos style (no spaces!) so that the unix form looks |
| 12970 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 12971 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12972 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12973 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12974 | ;; |
| 12975 | *) |
| 12976 | sys_lib_search_path_spec=$LIB |
| 12977 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12978 | # It is most probably a Windows format PATH. |
| 12979 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12980 | else |
| 12981 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12982 | fi |
| 12983 | # FIXME: find the short name or the path components, as spaces are |
| 12984 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 12985 | ;; |
| 12986 | esac |
| 12987 | |
| 12988 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12989 | postinstall_cmds='base_file=`basename \$file`~ |
| 12990 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 12991 | dldir=$destdir/`dirname \$dlpath`~ |
| 12992 | test -d \$dldir || mkdir -p \$dldir~ |
| 12993 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 12994 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12995 | dlpath=$dir/\$dldll~ |
| 12996 | $RM \$dlpath' |
| 12997 | shlibpath_overrides_runpath=yes |
| 12998 | dynamic_linker='Win32 link.exe' |
| 12999 | ;; |
| 13000 | |
| 13001 | *) |
| 13002 | # Assume MSVC and ICC wrapper |
| 13003 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 13004 | dynamic_linker='Win32 ld.exe' |
| 13005 | ;; |
| 13006 | esac |
| 13007 | # FIXME: first we should search . and the directory the executable is in |
| 13008 | shlibpath_var=PATH |
| 13009 | ;; |
| 13010 | |
| 13011 | darwin* | rhapsody*) |
| 13012 | dynamic_linker="$host_os dyld" |
| 13013 | version_type=darwin |
| 13014 | need_lib_prefix=no |
| 13015 | need_version=no |
| 13016 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 13017 | soname_spec='$libname$release$major$shared_ext' |
| 13018 | shlibpath_overrides_runpath=yes |
| 13019 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13020 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13021 | |
| 13022 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 13023 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13024 | ;; |
| 13025 | |
| 13026 | dgux*) |
| 13027 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13028 | need_lib_prefix=no |
| 13029 | need_version=no |
| 13030 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13031 | soname_spec='$libname$release$shared_ext$major' |
| 13032 | shlibpath_var=LD_LIBRARY_PATH |
| 13033 | ;; |
| 13034 | |
| 13035 | freebsd* | dragonfly* | midnightbsd*) |
| 13036 | # DragonFly does not have aout. When/if they implement a new |
| 13037 | # versioning mechanism, adjust this. |
| 13038 | if test -x /usr/bin/objformat; then |
| 13039 | objformat=`/usr/bin/objformat` |
| 13040 | else |
| 13041 | case $host_os in |
| 13042 | freebsd[23].*) objformat=aout ;; |
| 13043 | *) objformat=elf ;; |
| 13044 | esac |
| 13045 | fi |
| 13046 | version_type=freebsd-$objformat |
| 13047 | case $version_type in |
| 13048 | freebsd-elf*) |
| 13049 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13050 | soname_spec='$libname$release$shared_ext$major' |
| 13051 | need_version=no |
| 13052 | need_lib_prefix=no |
| 13053 | ;; |
| 13054 | freebsd-*) |
| 13055 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13056 | need_version=yes |
| 13057 | ;; |
| 13058 | esac |
| 13059 | shlibpath_var=LD_LIBRARY_PATH |
| 13060 | case $host_os in |
| 13061 | freebsd2.*) |
| 13062 | shlibpath_overrides_runpath=yes |
| 13063 | ;; |
| 13064 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13065 | shlibpath_overrides_runpath=yes |
| 13066 | hardcode_into_libs=yes |
| 13067 | ;; |
| 13068 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13069 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13070 | shlibpath_overrides_runpath=no |
| 13071 | hardcode_into_libs=yes |
| 13072 | ;; |
| 13073 | *) # from 4.6 on, and DragonFly |
| 13074 | shlibpath_overrides_runpath=yes |
| 13075 | hardcode_into_libs=yes |
| 13076 | ;; |
| 13077 | esac |
| 13078 | ;; |
| 13079 | |
| 13080 | haiku*) |
| 13081 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13082 | need_lib_prefix=no |
| 13083 | need_version=no |
| 13084 | dynamic_linker="$host_os runtime_loader" |
| 13085 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13086 | soname_spec='$libname$release$shared_ext$major' |
| 13087 | shlibpath_var=LIBRARY_PATH |
| 13088 | shlibpath_overrides_runpath=no |
| 13089 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 13090 | hardcode_into_libs=yes |
| 13091 | ;; |
| 13092 | |
| 13093 | hpux9* | hpux10* | hpux11*) |
| 13094 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13095 | # link against other versions. |
| 13096 | version_type=sunos |
| 13097 | need_lib_prefix=no |
| 13098 | need_version=no |
| 13099 | case $host_cpu in |
| 13100 | ia64*) |
| 13101 | shrext_cmds='.so' |
| 13102 | hardcode_into_libs=yes |
| 13103 | dynamic_linker="$host_os dld.so" |
| 13104 | shlibpath_var=LD_LIBRARY_PATH |
| 13105 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13106 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13107 | soname_spec='$libname$release$shared_ext$major' |
| 13108 | if test 32 = "$HPUX_IA64_MODE"; then |
| 13109 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13110 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 13111 | else |
| 13112 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13113 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 13114 | fi |
| 13115 | ;; |
| 13116 | hppa*64*) |
| 13117 | shrext_cmds='.sl' |
| 13118 | hardcode_into_libs=yes |
| 13119 | dynamic_linker="$host_os dld.sl" |
| 13120 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13121 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13122 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13123 | soname_spec='$libname$release$shared_ext$major' |
| 13124 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13125 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13126 | ;; |
| 13127 | *) |
| 13128 | shrext_cmds='.sl' |
| 13129 | dynamic_linker="$host_os dld.sl" |
| 13130 | shlibpath_var=SHLIB_PATH |
| 13131 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13132 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13133 | soname_spec='$libname$release$shared_ext$major' |
| 13134 | ;; |
| 13135 | esac |
| 13136 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 13137 | postinstall_cmds='chmod 555 $lib' |
| 13138 | # or fails outright, so override atomically: |
| 13139 | install_override_mode=555 |
| 13140 | ;; |
| 13141 | |
| 13142 | interix[3-9]*) |
| 13143 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13144 | need_lib_prefix=no |
| 13145 | need_version=no |
| 13146 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13147 | soname_spec='$libname$release$shared_ext$major' |
| 13148 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13149 | shlibpath_var=LD_LIBRARY_PATH |
| 13150 | shlibpath_overrides_runpath=no |
| 13151 | hardcode_into_libs=yes |
| 13152 | ;; |
| 13153 | |
| 13154 | irix5* | irix6* | nonstopux*) |
| 13155 | case $host_os in |
| 13156 | nonstopux*) version_type=nonstopux ;; |
| 13157 | *) |
| 13158 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 13159 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13160 | else |
| 13161 | version_type=irix |
| 13162 | fi ;; |
| 13163 | esac |
| 13164 | need_lib_prefix=no |
| 13165 | need_version=no |
| 13166 | soname_spec='$libname$release$shared_ext$major' |
| 13167 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 13168 | case $host_os in |
| 13169 | irix5* | nonstopux*) |
| 13170 | libsuff= shlibsuff= |
| 13171 | ;; |
| 13172 | *) |
| 13173 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13174 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13175 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13176 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13177 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13178 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13179 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13180 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13181 | esac |
| 13182 | ;; |
| 13183 | esac |
| 13184 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13185 | shlibpath_overrides_runpath=no |
| 13186 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 13187 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 13188 | hardcode_into_libs=yes |
| 13189 | ;; |
| 13190 | |
| 13191 | # No shared lib support for Linux oldld, aout, or coff. |
| 13192 | linux*oldld* | linux*aout* | linux*coff*) |
| 13193 | dynamic_linker=no |
| 13194 | ;; |
| 13195 | |
| 13196 | linux*android*) |
| 13197 | version_type=none # Android doesn't support versioned libraries. |
| 13198 | need_lib_prefix=no |
| 13199 | need_version=no |
| 13200 | library_names_spec='$libname$release$shared_ext' |
| 13201 | soname_spec='$libname$release$shared_ext' |
| 13202 | finish_cmds= |
| 13203 | shlibpath_var=LD_LIBRARY_PATH |
| 13204 | shlibpath_overrides_runpath=yes |
| 13205 | |
| 13206 | # This implies no fast_install, which is unacceptable. |
| 13207 | # Some rework will be needed to allow for fast_install |
| 13208 | # before this can be enabled. |
| 13209 | hardcode_into_libs=yes |
| 13210 | |
| 13211 | dynamic_linker='Android linker' |
| 13212 | # Don't embed -rpath directories since the linker doesn't support them. |
| 13213 | hardcode_libdir_flag_spec='-L$libdir' |
| 13214 | ;; |
| 13215 | |
| 13216 | # This must be glibc/ELF. |
| 13217 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 13218 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13219 | need_lib_prefix=no |
| 13220 | need_version=no |
| 13221 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13222 | soname_spec='$libname$release$shared_ext$major' |
| 13223 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13224 | shlibpath_var=LD_LIBRARY_PATH |
| 13225 | shlibpath_overrides_runpath=no |
| 13226 | |
| 13227 | # Some binutils ld are patched to set DT_RUNPATH |
| 13228 | if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 13229 | then : |
| 13230 | printf %s "(cached) " >&6 |
| 13231 | else $as_nop |
| 13232 | lt_cv_shlibpath_overrides_runpath=no |
| 13233 | save_LDFLAGS=$LDFLAGS |
| 13234 | save_libdir=$libdir |
| 13235 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13236 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 13237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13238 | /* end confdefs.h. */ |
| 13239 | |
| 13240 | int |
| 13241 | main (void) |
| 13242 | { |
| 13243 | |
| 13244 | ; |
| 13245 | return 0; |
| 13246 | } |
| 13247 | _ACEOF |
| 13248 | if ac_fn_c_try_link "$LINENO" |
| 13249 | then : |
| 13250 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 13251 | then : |
| 13252 | lt_cv_shlibpath_overrides_runpath=yes |
| 13253 | fi |
| 13254 | fi |
| 13255 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13256 | conftest$ac_exeext conftest.$ac_ext |
| 13257 | LDFLAGS=$save_LDFLAGS |
| 13258 | libdir=$save_libdir |
| 13259 | |
| 13260 | fi |
| 13261 | |
| 13262 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 13263 | |
| 13264 | # This implies no fast_install, which is unacceptable. |
| 13265 | # Some rework will be needed to allow for fast_install |
| 13266 | # before this can be enabled. |
| 13267 | hardcode_into_libs=yes |
| 13268 | |
| 13269 | # Ideally, we could use ldconfig to report *all* directores which are |
| 13270 | # searched for libraries, however this is still not possible. Aside from not |
| 13271 | # being certain /sbin/ldconfig is available, command |
| 13272 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 13273 | # even though it is searched at run-time. Try to do the best guess by |
| 13274 | # appending ld.so.conf contents (and includes) to the search path. |
| 13275 | if test -f /etc/ld.so.conf; then |
| 13276 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 13277 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13278 | fi |
| 13279 | |
| 13280 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13281 | # powerpc, because MkLinux only supported shared libraries with the |
| 13282 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13283 | # most powerpc-linux boxes support dynamic linking these days and |
| 13284 | # people can always --disable-shared, the test was removed, and we |
| 13285 | # assume the GNU/Linux dynamic linker is in use. |
| 13286 | dynamic_linker='GNU/Linux ld.so' |
| 13287 | ;; |
| 13288 | |
| 13289 | netbsdelf*-gnu) |
| 13290 | version_type=linux |
| 13291 | need_lib_prefix=no |
| 13292 | need_version=no |
| 13293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13295 | shlibpath_var=LD_LIBRARY_PATH |
| 13296 | shlibpath_overrides_runpath=no |
| 13297 | hardcode_into_libs=yes |
| 13298 | dynamic_linker='NetBSD ld.elf_so' |
| 13299 | ;; |
| 13300 | |
| 13301 | netbsd*) |
| 13302 | version_type=sunos |
| 13303 | need_lib_prefix=no |
| 13304 | need_version=no |
| 13305 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13306 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13307 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13308 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13309 | else |
| 13310 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13311 | soname_spec='$libname$release$shared_ext$major' |
| 13312 | dynamic_linker='NetBSD ld.elf_so' |
| 13313 | fi |
| 13314 | shlibpath_var=LD_LIBRARY_PATH |
| 13315 | shlibpath_overrides_runpath=yes |
| 13316 | hardcode_into_libs=yes |
| 13317 | ;; |
| 13318 | |
| 13319 | newsos6) |
| 13320 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13321 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13322 | shlibpath_var=LD_LIBRARY_PATH |
| 13323 | shlibpath_overrides_runpath=yes |
| 13324 | ;; |
| 13325 | |
| 13326 | *nto* | *qnx*) |
| 13327 | version_type=qnx |
| 13328 | need_lib_prefix=no |
| 13329 | need_version=no |
| 13330 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13331 | soname_spec='$libname$release$shared_ext$major' |
| 13332 | shlibpath_var=LD_LIBRARY_PATH |
| 13333 | shlibpath_overrides_runpath=no |
| 13334 | hardcode_into_libs=yes |
| 13335 | dynamic_linker='ldqnx.so' |
| 13336 | ;; |
| 13337 | |
| 13338 | openbsd* | bitrig*) |
| 13339 | version_type=sunos |
| 13340 | sys_lib_dlsearch_path_spec=/usr/lib |
| 13341 | need_lib_prefix=no |
| 13342 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 13343 | need_version=no |
| 13344 | else |
| 13345 | need_version=yes |
| 13346 | fi |
| 13347 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13348 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13349 | shlibpath_var=LD_LIBRARY_PATH |
| 13350 | shlibpath_overrides_runpath=yes |
| 13351 | ;; |
| 13352 | |
| 13353 | os2*) |
| 13354 | libname_spec='$name' |
| 13355 | version_type=windows |
| 13356 | shrext_cmds=.dll |
| 13357 | need_version=no |
| 13358 | need_lib_prefix=no |
| 13359 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 13360 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 13361 | v=$($ECHO $release$versuffix | tr -d .-); |
| 13362 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 13363 | $ECHO $n$v`$shared_ext' |
| 13364 | library_names_spec='${libname}_dll.$libext' |
| 13365 | dynamic_linker='OS/2 ld.exe' |
| 13366 | shlibpath_var=BEGINLIBPATH |
| 13367 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13368 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13369 | postinstall_cmds='base_file=`basename \$file`~ |
| 13370 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 13371 | dldir=$destdir/`dirname \$dlpath`~ |
| 13372 | test -d \$dldir || mkdir -p \$dldir~ |
| 13373 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13374 | chmod a+x \$dldir/$dlname~ |
| 13375 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13376 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13377 | fi' |
| 13378 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 13379 | dlpath=$dir/\$dldll~ |
| 13380 | $RM \$dlpath' |
| 13381 | ;; |
| 13382 | |
| 13383 | osf3* | osf4* | osf5*) |
| 13384 | version_type=osf |
| 13385 | need_lib_prefix=no |
| 13386 | need_version=no |
| 13387 | soname_spec='$libname$release$shared_ext$major' |
| 13388 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13389 | shlibpath_var=LD_LIBRARY_PATH |
| 13390 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13391 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13392 | ;; |
| 13393 | |
| 13394 | rdos*) |
| 13395 | dynamic_linker=no |
| 13396 | ;; |
| 13397 | |
| 13398 | solaris*) |
| 13399 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13400 | need_lib_prefix=no |
| 13401 | need_version=no |
| 13402 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13403 | soname_spec='$libname$release$shared_ext$major' |
| 13404 | shlibpath_var=LD_LIBRARY_PATH |
| 13405 | shlibpath_overrides_runpath=yes |
| 13406 | hardcode_into_libs=yes |
| 13407 | # ldd complains unless libraries are executable |
| 13408 | postinstall_cmds='chmod +x $lib' |
| 13409 | ;; |
| 13410 | |
| 13411 | sunos4*) |
| 13412 | version_type=sunos |
| 13413 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 13414 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13415 | shlibpath_var=LD_LIBRARY_PATH |
| 13416 | shlibpath_overrides_runpath=yes |
| 13417 | if test yes = "$with_gnu_ld"; then |
| 13418 | need_lib_prefix=no |
| 13419 | fi |
| 13420 | need_version=yes |
| 13421 | ;; |
| 13422 | |
| 13423 | sysv4 | sysv4.3*) |
| 13424 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13425 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13426 | soname_spec='$libname$release$shared_ext$major' |
| 13427 | shlibpath_var=LD_LIBRARY_PATH |
| 13428 | case $host_vendor in |
| 13429 | sni) |
| 13430 | shlibpath_overrides_runpath=no |
| 13431 | need_lib_prefix=no |
| 13432 | runpath_var=LD_RUN_PATH |
| 13433 | ;; |
| 13434 | siemens) |
| 13435 | need_lib_prefix=no |
| 13436 | ;; |
| 13437 | motorola) |
| 13438 | need_lib_prefix=no |
| 13439 | need_version=no |
| 13440 | shlibpath_overrides_runpath=no |
| 13441 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13442 | ;; |
| 13443 | esac |
| 13444 | ;; |
| 13445 | |
| 13446 | sysv4*MP*) |
| 13447 | if test -d /usr/nec; then |
| 13448 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13449 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 13450 | soname_spec='$libname$shared_ext.$major' |
| 13451 | shlibpath_var=LD_LIBRARY_PATH |
| 13452 | fi |
| 13453 | ;; |
| 13454 | |
| 13455 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13456 | version_type=sco |
| 13457 | need_lib_prefix=no |
| 13458 | need_version=no |
| 13459 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 13460 | soname_spec='$libname$release$shared_ext$major' |
| 13461 | shlibpath_var=LD_LIBRARY_PATH |
| 13462 | shlibpath_overrides_runpath=yes |
| 13463 | hardcode_into_libs=yes |
| 13464 | if test yes = "$with_gnu_ld"; then |
| 13465 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13466 | else |
| 13467 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13468 | case $host_os in |
| 13469 | sco3.2v5*) |
| 13470 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13471 | ;; |
| 13472 | esac |
| 13473 | fi |
| 13474 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13475 | ;; |
| 13476 | |
| 13477 | tpf*) |
| 13478 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13479 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13480 | need_lib_prefix=no |
| 13481 | need_version=no |
| 13482 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13483 | shlibpath_var=LD_LIBRARY_PATH |
| 13484 | shlibpath_overrides_runpath=no |
| 13485 | hardcode_into_libs=yes |
| 13486 | ;; |
| 13487 | |
| 13488 | uts4*) |
| 13489 | version_type=linux # correct to gnu/linux during the next big refactor |
| 13490 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 13491 | soname_spec='$libname$release$shared_ext$major' |
| 13492 | shlibpath_var=LD_LIBRARY_PATH |
| 13493 | ;; |
| 13494 | |
| 13495 | *) |
| 13496 | dynamic_linker=no |
| 13497 | ;; |
| 13498 | esac |
| 13499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 13500 | printf "%s\n" "$dynamic_linker" >&6; } |
| 13501 | test no = "$dynamic_linker" && can_build_shared=no |
| 13502 | |
| 13503 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13504 | if test yes = "$GCC"; then |
| 13505 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13506 | fi |
| 13507 | |
| 13508 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 13509 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 13510 | fi |
| 13511 | |
| 13512 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 13513 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 13514 | fi |
| 13515 | |
| 13516 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 13517 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 13518 | |
| 13519 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 13520 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 13521 | |
| 13522 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 13523 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | |
| 13548 | |
| 13549 | |
| 13550 | |
| 13551 | |
| 13552 | |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | |
| 13557 | |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | |
| 13620 | |
| 13621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 13622 | printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 13623 | hardcode_action= |
| 13624 | if test -n "$hardcode_libdir_flag_spec" || |
| 13625 | test -n "$runpath_var" || |
| 13626 | test yes = "$hardcode_automatic"; then |
| 13627 | |
| 13628 | # We can hardcode non-existent directories. |
| 13629 | if test no != "$hardcode_direct" && |
| 13630 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13631 | # have to relink, otherwise we might link with an installed library |
| 13632 | # when we should be linking with a yet-to-be-installed one |
| 13633 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 13634 | test no != "$hardcode_minus_L"; then |
| 13635 | # Linking always hardcodes the temporary library directory. |
| 13636 | hardcode_action=relink |
| 13637 | else |
| 13638 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13639 | hardcode_action=immediate |
| 13640 | fi |
| 13641 | else |
| 13642 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13643 | # directories. |
| 13644 | hardcode_action=unsupported |
| 13645 | fi |
| 13646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 13647 | printf "%s\n" "$hardcode_action" >&6; } |
| 13648 | |
| 13649 | if test relink = "$hardcode_action" || |
| 13650 | test yes = "$inherit_rpath"; then |
| 13651 | # Fast installation is not supported |
| 13652 | enable_fast_install=no |
| 13653 | elif test yes = "$shlibpath_overrides_runpath" || |
| 13654 | test no = "$enable_shared"; then |
| 13655 | # Fast installation is not necessary |
| 13656 | enable_fast_install=needless |
| 13657 | fi |
| 13658 | |
| 13659 | |
| 13660 | |
| 13661 | |
| 13662 | |
| 13663 | |
| 13664 | if test yes != "$enable_dlopen"; then |
| 13665 | enable_dlopen=unknown |
| 13666 | enable_dlopen_self=unknown |
| 13667 | enable_dlopen_self_static=unknown |
| 13668 | else |
| 13669 | lt_cv_dlopen=no |
| 13670 | lt_cv_dlopen_libs= |
| 13671 | |
| 13672 | case $host_os in |
| 13673 | beos*) |
| 13674 | lt_cv_dlopen=load_add_on |
| 13675 | lt_cv_dlopen_libs= |
| 13676 | lt_cv_dlopen_self=yes |
| 13677 | ;; |
| 13678 | |
| 13679 | mingw* | pw32* | cegcc*) |
| 13680 | lt_cv_dlopen=LoadLibrary |
| 13681 | lt_cv_dlopen_libs= |
| 13682 | ;; |
| 13683 | |
| 13684 | cygwin*) |
| 13685 | lt_cv_dlopen=dlopen |
| 13686 | lt_cv_dlopen_libs= |
| 13687 | ;; |
| 13688 | |
| 13689 | darwin*) |
| 13690 | # if libdl is installed we need to link against it |
| 13691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13692 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 13693 | if test ${ac_cv_lib_dl_dlopen+y} |
| 13694 | then : |
| 13695 | printf %s "(cached) " >&6 |
| 13696 | else $as_nop |
| 13697 | ac_check_lib_save_LIBS=$LIBS |
| 13698 | LIBS="-ldl $LIBS" |
| 13699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13700 | /* end confdefs.h. */ |
| 13701 | |
| 13702 | /* Override any GCC internal prototype to avoid an error. |
| 13703 | Use char because int might match the return type of a GCC |
| 13704 | builtin and then its argument prototype would still apply. */ |
| 13705 | char dlopen (); |
| 13706 | int |
| 13707 | main (void) |
| 13708 | { |
| 13709 | return dlopen (); |
| 13710 | ; |
| 13711 | return 0; |
| 13712 | } |
| 13713 | _ACEOF |
| 13714 | if ac_fn_c_try_link "$LINENO" |
| 13715 | then : |
| 13716 | ac_cv_lib_dl_dlopen=yes |
| 13717 | else $as_nop |
| 13718 | ac_cv_lib_dl_dlopen=no |
| 13719 | fi |
| 13720 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13721 | conftest$ac_exeext conftest.$ac_ext |
| 13722 | LIBS=$ac_check_lib_save_LIBS |
| 13723 | fi |
| 13724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13725 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13726 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13727 | then : |
| 13728 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13729 | else $as_nop |
| 13730 | |
| 13731 | lt_cv_dlopen=dyld |
| 13732 | lt_cv_dlopen_libs= |
| 13733 | lt_cv_dlopen_self=yes |
| 13734 | |
| 13735 | fi |
| 13736 | |
| 13737 | ;; |
| 13738 | |
| 13739 | tpf*) |
| 13740 | # Don't try to run any link tests for TPF. We know it's impossible |
| 13741 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 13742 | lt_cv_dlopen=dlopen |
| 13743 | lt_cv_dlopen_libs= |
| 13744 | lt_cv_dlopen_self=no |
| 13745 | ;; |
| 13746 | |
| 13747 | *) |
| 13748 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 13749 | if test "x$ac_cv_func_shl_load" = xyes |
| 13750 | then : |
| 13751 | lt_cv_dlopen=shl_load |
| 13752 | else $as_nop |
| 13753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 13754 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 13755 | if test ${ac_cv_lib_dld_shl_load+y} |
| 13756 | then : |
| 13757 | printf %s "(cached) " >&6 |
| 13758 | else $as_nop |
| 13759 | ac_check_lib_save_LIBS=$LIBS |
| 13760 | LIBS="-ldld $LIBS" |
| 13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13762 | /* end confdefs.h. */ |
| 13763 | |
| 13764 | /* Override any GCC internal prototype to avoid an error. |
| 13765 | Use char because int might match the return type of a GCC |
| 13766 | builtin and then its argument prototype would still apply. */ |
| 13767 | char shl_load (); |
| 13768 | int |
| 13769 | main (void) |
| 13770 | { |
| 13771 | return shl_load (); |
| 13772 | ; |
| 13773 | return 0; |
| 13774 | } |
| 13775 | _ACEOF |
| 13776 | if ac_fn_c_try_link "$LINENO" |
| 13777 | then : |
| 13778 | ac_cv_lib_dld_shl_load=yes |
| 13779 | else $as_nop |
| 13780 | ac_cv_lib_dld_shl_load=no |
| 13781 | fi |
| 13782 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13783 | conftest$ac_exeext conftest.$ac_ext |
| 13784 | LIBS=$ac_check_lib_save_LIBS |
| 13785 | fi |
| 13786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13787 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 13788 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 13789 | then : |
| 13790 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 13791 | else $as_nop |
| 13792 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 13793 | if test "x$ac_cv_func_dlopen" = xyes |
| 13794 | then : |
| 13795 | lt_cv_dlopen=dlopen |
| 13796 | else $as_nop |
| 13797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13798 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 13799 | if test ${ac_cv_lib_dl_dlopen+y} |
| 13800 | then : |
| 13801 | printf %s "(cached) " >&6 |
| 13802 | else $as_nop |
| 13803 | ac_check_lib_save_LIBS=$LIBS |
| 13804 | LIBS="-ldl $LIBS" |
| 13805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13806 | /* end confdefs.h. */ |
| 13807 | |
| 13808 | /* Override any GCC internal prototype to avoid an error. |
| 13809 | Use char because int might match the return type of a GCC |
| 13810 | builtin and then its argument prototype would still apply. */ |
| 13811 | char dlopen (); |
| 13812 | int |
| 13813 | main (void) |
| 13814 | { |
| 13815 | return dlopen (); |
| 13816 | ; |
| 13817 | return 0; |
| 13818 | } |
| 13819 | _ACEOF |
| 13820 | if ac_fn_c_try_link "$LINENO" |
| 13821 | then : |
| 13822 | ac_cv_lib_dl_dlopen=yes |
| 13823 | else $as_nop |
| 13824 | ac_cv_lib_dl_dlopen=no |
| 13825 | fi |
| 13826 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13827 | conftest$ac_exeext conftest.$ac_ext |
| 13828 | LIBS=$ac_check_lib_save_LIBS |
| 13829 | fi |
| 13830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13831 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 13832 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13833 | then : |
| 13834 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 13835 | else $as_nop |
| 13836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 13837 | printf %s "checking for dlopen in -lsvld... " >&6; } |
| 13838 | if test ${ac_cv_lib_svld_dlopen+y} |
| 13839 | then : |
| 13840 | printf %s "(cached) " >&6 |
| 13841 | else $as_nop |
| 13842 | ac_check_lib_save_LIBS=$LIBS |
| 13843 | LIBS="-lsvld $LIBS" |
| 13844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13845 | /* end confdefs.h. */ |
| 13846 | |
| 13847 | /* Override any GCC internal prototype to avoid an error. |
| 13848 | Use char because int might match the return type of a GCC |
| 13849 | builtin and then its argument prototype would still apply. */ |
| 13850 | char dlopen (); |
| 13851 | int |
| 13852 | main (void) |
| 13853 | { |
| 13854 | return dlopen (); |
| 13855 | ; |
| 13856 | return 0; |
| 13857 | } |
| 13858 | _ACEOF |
| 13859 | if ac_fn_c_try_link "$LINENO" |
| 13860 | then : |
| 13861 | ac_cv_lib_svld_dlopen=yes |
| 13862 | else $as_nop |
| 13863 | ac_cv_lib_svld_dlopen=no |
| 13864 | fi |
| 13865 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13866 | conftest$ac_exeext conftest.$ac_ext |
| 13867 | LIBS=$ac_check_lib_save_LIBS |
| 13868 | fi |
| 13869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13870 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 13871 | if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 13872 | then : |
| 13873 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 13874 | else $as_nop |
| 13875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 13876 | printf %s "checking for dld_link in -ldld... " >&6; } |
| 13877 | if test ${ac_cv_lib_dld_dld_link+y} |
| 13878 | then : |
| 13879 | printf %s "(cached) " >&6 |
| 13880 | else $as_nop |
| 13881 | ac_check_lib_save_LIBS=$LIBS |
| 13882 | LIBS="-ldld $LIBS" |
| 13883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13884 | /* end confdefs.h. */ |
| 13885 | |
| 13886 | /* Override any GCC internal prototype to avoid an error. |
| 13887 | Use char because int might match the return type of a GCC |
| 13888 | builtin and then its argument prototype would still apply. */ |
| 13889 | char dld_link (); |
| 13890 | int |
| 13891 | main (void) |
| 13892 | { |
| 13893 | return dld_link (); |
| 13894 | ; |
| 13895 | return 0; |
| 13896 | } |
| 13897 | _ACEOF |
| 13898 | if ac_fn_c_try_link "$LINENO" |
| 13899 | then : |
| 13900 | ac_cv_lib_dld_dld_link=yes |
| 13901 | else $as_nop |
| 13902 | ac_cv_lib_dld_dld_link=no |
| 13903 | fi |
| 13904 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13905 | conftest$ac_exeext conftest.$ac_ext |
| 13906 | LIBS=$ac_check_lib_save_LIBS |
| 13907 | fi |
| 13908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13909 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 13910 | if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 13911 | then : |
| 13912 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 13913 | fi |
| 13914 | |
| 13915 | |
| 13916 | fi |
| 13917 | |
| 13918 | |
| 13919 | fi |
| 13920 | |
| 13921 | |
| 13922 | fi |
| 13923 | |
| 13924 | |
| 13925 | fi |
| 13926 | |
| 13927 | |
| 13928 | fi |
| 13929 | |
| 13930 | ;; |
| 13931 | esac |
| 13932 | |
| 13933 | if test no = "$lt_cv_dlopen"; then |
| 13934 | enable_dlopen=no |
| 13935 | else |
| 13936 | enable_dlopen=yes |
| 13937 | fi |
| 13938 | |
| 13939 | case $lt_cv_dlopen in |
| 13940 | dlopen) |
| 13941 | save_CPPFLAGS=$CPPFLAGS |
| 13942 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13943 | |
| 13944 | save_LDFLAGS=$LDFLAGS |
| 13945 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13946 | |
| 13947 | save_LIBS=$LIBS |
| 13948 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13949 | |
| 13950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13951 | printf %s "checking whether a program can dlopen itself... " >&6; } |
| 13952 | if test ${lt_cv_dlopen_self+y} |
| 13953 | then : |
| 13954 | printf %s "(cached) " >&6 |
| 13955 | else $as_nop |
| 13956 | if test yes = "$cross_compiling"; then : |
| 13957 | lt_cv_dlopen_self=cross |
| 13958 | else |
| 13959 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13960 | lt_status=$lt_dlunknown |
| 13961 | cat > conftest.$ac_ext <<_LT_EOF |
| 13962 | #line $LINENO "configure" |
| 13963 | #include "confdefs.h" |
| 13964 | |
| 13965 | #if HAVE_DLFCN_H |
| 13966 | #include <dlfcn.h> |
| 13967 | #endif |
| 13968 | |
| 13969 | #include <stdio.h> |
| 13970 | |
| 13971 | #ifdef RTLD_GLOBAL |
| 13972 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13973 | #else |
| 13974 | # ifdef DL_GLOBAL |
| 13975 | # define LT_DLGLOBAL DL_GLOBAL |
| 13976 | # else |
| 13977 | # define LT_DLGLOBAL 0 |
| 13978 | # endif |
| 13979 | #endif |
| 13980 | |
| 13981 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13982 | find out it does not work in some platform. */ |
| 13983 | #ifndef LT_DLLAZY_OR_NOW |
| 13984 | # ifdef RTLD_LAZY |
| 13985 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13986 | # else |
| 13987 | # ifdef DL_LAZY |
| 13988 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13989 | # else |
| 13990 | # ifdef RTLD_NOW |
| 13991 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13992 | # else |
| 13993 | # ifdef DL_NOW |
| 13994 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13995 | # else |
| 13996 | # define LT_DLLAZY_OR_NOW 0 |
| 13997 | # endif |
| 13998 | # endif |
| 13999 | # endif |
| 14000 | # endif |
| 14001 | #endif |
| 14002 | |
| 14003 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 14004 | correspondingly for the symbols needed. */ |
| 14005 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 14006 | int fnord () __attribute__((visibility("default"))); |
| 14007 | #endif |
| 14008 | |
| 14009 | int fnord () { return 42; } |
| 14010 | int main () |
| 14011 | { |
| 14012 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14013 | int status = $lt_dlunknown; |
| 14014 | |
| 14015 | if (self) |
| 14016 | { |
| 14017 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14018 | else |
| 14019 | { |
| 14020 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14021 | else puts (dlerror ()); |
| 14022 | } |
| 14023 | /* dlclose (self); */ |
| 14024 | } |
| 14025 | else |
| 14026 | puts (dlerror ()); |
| 14027 | |
| 14028 | return status; |
| 14029 | } |
| 14030 | _LT_EOF |
| 14031 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14032 | (eval $ac_link) 2>&5 |
| 14033 | ac_status=$? |
| 14034 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14035 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14036 | (./conftest; exit; ) >&5 2>/dev/null |
| 14037 | lt_status=$? |
| 14038 | case x$lt_status in |
| 14039 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14040 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14041 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 14042 | esac |
| 14043 | else : |
| 14044 | # compilation failed |
| 14045 | lt_cv_dlopen_self=no |
| 14046 | fi |
| 14047 | fi |
| 14048 | rm -fr conftest* |
| 14049 | |
| 14050 | |
| 14051 | fi |
| 14052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 14053 | printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 14054 | |
| 14055 | if test yes = "$lt_cv_dlopen_self"; then |
| 14056 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 14057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 14058 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 14059 | if test ${lt_cv_dlopen_self_static+y} |
| 14060 | then : |
| 14061 | printf %s "(cached) " >&6 |
| 14062 | else $as_nop |
| 14063 | if test yes = "$cross_compiling"; then : |
| 14064 | lt_cv_dlopen_self_static=cross |
| 14065 | else |
| 14066 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14067 | lt_status=$lt_dlunknown |
| 14068 | cat > conftest.$ac_ext <<_LT_EOF |
| 14069 | #line $LINENO "configure" |
| 14070 | #include "confdefs.h" |
| 14071 | |
| 14072 | #if HAVE_DLFCN_H |
| 14073 | #include <dlfcn.h> |
| 14074 | #endif |
| 14075 | |
| 14076 | #include <stdio.h> |
| 14077 | |
| 14078 | #ifdef RTLD_GLOBAL |
| 14079 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14080 | #else |
| 14081 | # ifdef DL_GLOBAL |
| 14082 | # define LT_DLGLOBAL DL_GLOBAL |
| 14083 | # else |
| 14084 | # define LT_DLGLOBAL 0 |
| 14085 | # endif |
| 14086 | #endif |
| 14087 | |
| 14088 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14089 | find out it does not work in some platform. */ |
| 14090 | #ifndef LT_DLLAZY_OR_NOW |
| 14091 | # ifdef RTLD_LAZY |
| 14092 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14093 | # else |
| 14094 | # ifdef DL_LAZY |
| 14095 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14096 | # else |
| 14097 | # ifdef RTLD_NOW |
| 14098 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14099 | # else |
| 14100 | # ifdef DL_NOW |
| 14101 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14102 | # else |
| 14103 | # define LT_DLLAZY_OR_NOW 0 |
| 14104 | # endif |
| 14105 | # endif |
| 14106 | # endif |
| 14107 | # endif |
| 14108 | #endif |
| 14109 | |
| 14110 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 14111 | correspondingly for the symbols needed. */ |
| 14112 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 14113 | int fnord () __attribute__((visibility("default"))); |
| 14114 | #endif |
| 14115 | |
| 14116 | int fnord () { return 42; } |
| 14117 | int main () |
| 14118 | { |
| 14119 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14120 | int status = $lt_dlunknown; |
| 14121 | |
| 14122 | if (self) |
| 14123 | { |
| 14124 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14125 | else |
| 14126 | { |
| 14127 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14128 | else puts (dlerror ()); |
| 14129 | } |
| 14130 | /* dlclose (self); */ |
| 14131 | } |
| 14132 | else |
| 14133 | puts (dlerror ()); |
| 14134 | |
| 14135 | return status; |
| 14136 | } |
| 14137 | _LT_EOF |
| 14138 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 14139 | (eval $ac_link) 2>&5 |
| 14140 | ac_status=$? |
| 14141 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14142 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 14143 | (./conftest; exit; ) >&5 2>/dev/null |
| 14144 | lt_status=$? |
| 14145 | case x$lt_status in |
| 14146 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14147 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14148 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14149 | esac |
| 14150 | else : |
| 14151 | # compilation failed |
| 14152 | lt_cv_dlopen_self_static=no |
| 14153 | fi |
| 14154 | fi |
| 14155 | rm -fr conftest* |
| 14156 | |
| 14157 | |
| 14158 | fi |
| 14159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 14160 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 14161 | fi |
| 14162 | |
| 14163 | CPPFLAGS=$save_CPPFLAGS |
| 14164 | LDFLAGS=$save_LDFLAGS |
| 14165 | LIBS=$save_LIBS |
| 14166 | ;; |
| 14167 | esac |
| 14168 | |
| 14169 | case $lt_cv_dlopen_self in |
| 14170 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14171 | *) enable_dlopen_self=unknown ;; |
| 14172 | esac |
| 14173 | |
| 14174 | case $lt_cv_dlopen_self_static in |
| 14175 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14176 | *) enable_dlopen_self_static=unknown ;; |
| 14177 | esac |
| 14178 | fi |
| 14179 | |
| 14180 | |
| 14181 | |
| 14182 | |
| 14183 | |
| 14184 | |
| 14185 | |
| 14186 | |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | |
| 14193 | |
| 14194 | |
| 14195 | |
| 14196 | striplib= |
| 14197 | old_striplib= |
| 14198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 14199 | printf %s "checking whether stripping libraries is possible... " >&6; } |
| 14200 | if test -z "$STRIP"; then |
| 14201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14202 | printf "%s\n" "no" >&6; } |
| 14203 | else |
| 14204 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 14205 | old_striplib="$STRIP --strip-debug" |
| 14206 | striplib="$STRIP --strip-unneeded" |
| 14207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14208 | printf "%s\n" "yes" >&6; } |
| 14209 | else |
| 14210 | case $host_os in |
| 14211 | darwin*) |
| 14212 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14213 | striplib="$STRIP -x" |
| 14214 | old_striplib="$STRIP -S" |
| 14215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14216 | printf "%s\n" "yes" >&6; } |
| 14217 | ;; |
| 14218 | freebsd*) |
| 14219 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then |
| 14220 | old_striplib="$STRIP --strip-debug" |
| 14221 | striplib="$STRIP --strip-unneeded" |
| 14222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14223 | printf "%s\n" "yes" >&6; } |
| 14224 | else |
| 14225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14226 | printf "%s\n" "no" >&6; } |
| 14227 | fi |
| 14228 | ;; |
| 14229 | *) |
| 14230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14231 | printf "%s\n" "no" >&6; } |
| 14232 | ;; |
| 14233 | esac |
| 14234 | fi |
| 14235 | fi |
| 14236 | |
| 14237 | |
| 14238 | |
| 14239 | |
| 14240 | |
| 14241 | |
| 14242 | |
| 14243 | |
| 14244 | |
| 14245 | |
| 14246 | |
| 14247 | |
| 14248 | # Report what library types will actually be built |
| 14249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 14250 | printf %s "checking if libtool supports shared libraries... " >&6; } |
| 14251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 14252 | printf "%s\n" "$can_build_shared" >&6; } |
| 14253 | |
| 14254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 14255 | printf %s "checking whether to build shared libraries... " >&6; } |
| 14256 | test no = "$can_build_shared" && enable_shared=no |
| 14257 | |
| 14258 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14259 | # are all built from PIC. |
| 14260 | case $host_os in |
| 14261 | aix3*) |
| 14262 | test yes = "$enable_shared" && enable_static=no |
| 14263 | if test -n "$RANLIB"; then |
| 14264 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14265 | postinstall_cmds='$RANLIB $lib' |
| 14266 | fi |
| 14267 | ;; |
| 14268 | |
| 14269 | aix[4-9]*) |
| 14270 | if test ia64 != "$host_cpu"; then |
| 14271 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 14272 | yes,aix,yes) ;; # shared object as lib.so file only |
| 14273 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 14274 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 14275 | esac |
| 14276 | fi |
| 14277 | ;; |
| 14278 | esac |
| 14279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 14280 | printf "%s\n" "$enable_shared" >&6; } |
| 14281 | |
| 14282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 14283 | printf %s "checking whether to build static libraries... " >&6; } |
| 14284 | # Make sure either enable_shared or enable_static is yes. |
| 14285 | test yes = "$enable_shared" || enable_static=yes |
| 14286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 14287 | printf "%s\n" "$enable_static" >&6; } |
| 14288 | |
| 14289 | |
| 14290 | |
| 14291 | |
| 14292 | fi |
| 14293 | ac_ext=c |
| 14294 | ac_cpp='$CPP $CPPFLAGS' |
| 14295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14298 | |
| 14299 | CC=$lt_save_CC |
| 14300 | |
| 14301 | |
| 14302 | |
| 14303 | |
| 14304 | |
| 14305 | |
| 14306 | |
| 14307 | |
| 14308 | |
| 14309 | |
| 14310 | |
| 14311 | |
| 14312 | |
| 14313 | |
| 14314 | |
| 14315 | ac_config_commands="$ac_config_commands libtool" |
| 14316 | |
| 14317 | |
| 14318 | |
| 14319 | |
| 14320 | # Only expand once: |
| 14321 | |
| 14322 | |
| 14323 | if test -n "$ac_tool_prefix"; then |
| 14324 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 14325 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 14326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14327 | printf %s "checking for $ac_word... " >&6; } |
| 14328 | if test ${ac_cv_prog_RC+y} |
| 14329 | then : |
| 14330 | printf %s "(cached) " >&6 |
| 14331 | else $as_nop |
| 14332 | if test -n "$RC"; then |
| 14333 | ac_cv_prog_RC="$RC" # Let the user override the test. |
| 14334 | else |
| 14335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14336 | for as_dir in $PATH |
| 14337 | do |
| 14338 | IFS=$as_save_IFS |
| 14339 | case $as_dir in #((( |
| 14340 | '') as_dir=./ ;; |
| 14341 | */) ;; |
| 14342 | *) as_dir=$as_dir/ ;; |
| 14343 | esac |
| 14344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14345 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 14346 | ac_cv_prog_RC="${ac_tool_prefix}windres" |
| 14347 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 14348 | break 2 |
| 14349 | fi |
| 14350 | done |
| 14351 | done |
| 14352 | IFS=$as_save_IFS |
| 14353 | |
| 14354 | fi |
| 14355 | fi |
| 14356 | RC=$ac_cv_prog_RC |
| 14357 | if test -n "$RC"; then |
| 14358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 |
| 14359 | printf "%s\n" "$RC" >&6; } |
| 14360 | else |
| 14361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14362 | printf "%s\n" "no" >&6; } |
| 14363 | fi |
| 14364 | |
| 14365 | |
| 14366 | fi |
| 14367 | if test -z "$ac_cv_prog_RC"; then |
| 14368 | ac_ct_RC=$RC |
| 14369 | # Extract the first word of "windres", so it can be a program name with args. |
| 14370 | set dummy windres; ac_word=$2 |
| 14371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14372 | printf %s "checking for $ac_word... " >&6; } |
| 14373 | if test ${ac_cv_prog_ac_ct_RC+y} |
| 14374 | then : |
| 14375 | printf %s "(cached) " >&6 |
| 14376 | else $as_nop |
| 14377 | if test -n "$ac_ct_RC"; then |
| 14378 | ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. |
| 14379 | else |
| 14380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14381 | for as_dir in $PATH |
| 14382 | do |
| 14383 | IFS=$as_save_IFS |
| 14384 | case $as_dir in #((( |
| 14385 | '') as_dir=./ ;; |
| 14386 | */) ;; |
| 14387 | *) as_dir=$as_dir/ ;; |
| 14388 | esac |
| 14389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14390 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 14391 | ac_cv_prog_ac_ct_RC="windres" |
| 14392 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 14393 | break 2 |
| 14394 | fi |
| 14395 | done |
| 14396 | done |
| 14397 | IFS=$as_save_IFS |
| 14398 | |
| 14399 | fi |
| 14400 | fi |
| 14401 | ac_ct_RC=$ac_cv_prog_ac_ct_RC |
| 14402 | if test -n "$ac_ct_RC"; then |
| 14403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 |
| 14404 | printf "%s\n" "$ac_ct_RC" >&6; } |
| 14405 | else |
| 14406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14407 | printf "%s\n" "no" >&6; } |
| 14408 | fi |
| 14409 | |
| 14410 | if test "x$ac_ct_RC" = x; then |
| 14411 | RC="" |
| 14412 | else |
| 14413 | case $cross_compiling:$ac_tool_warned in |
| 14414 | yes:) |
| 14415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 14416 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 14417 | ac_tool_warned=yes ;; |
| 14418 | esac |
| 14419 | RC=$ac_ct_RC |
| 14420 | fi |
| 14421 | else |
| 14422 | RC="$ac_cv_prog_RC" |
| 14423 | fi |
| 14424 | |
| 14425 | |
| 14426 | |
| 14427 | |
| 14428 | # Source file extension for RC test sources. |
| 14429 | ac_ext=rc |
| 14430 | |
| 14431 | # Object file extension for compiled RC test sources. |
| 14432 | objext=o |
| 14433 | objext_RC=$objext |
| 14434 | |
| 14435 | # Code to be used in simple compile tests |
| 14436 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| 14437 | |
| 14438 | # Code to be used in simple link tests |
| 14439 | lt_simple_link_test_code=$lt_simple_compile_test_code |
| 14440 | |
| 14441 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14442 | |
| 14443 | |
| 14444 | |
| 14445 | |
| 14446 | |
| 14447 | |
| 14448 | # If no C compiler was specified, use CC. |
| 14449 | LTCC=${LTCC-"$CC"} |
| 14450 | |
| 14451 | # If no C compiler flags were specified, use CFLAGS. |
| 14452 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14453 | |
| 14454 | # Allow CC to be a program name with arguments. |
| 14455 | compiler=$CC |
| 14456 | |
| 14457 | |
| 14458 | # save warnings/boilerplate of simple test code |
| 14459 | ac_outfile=conftest.$ac_objext |
| 14460 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14461 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14462 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14463 | $RM conftest* |
| 14464 | |
| 14465 | ac_outfile=conftest.$ac_objext |
| 14466 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14467 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14468 | _lt_linker_boilerplate=`cat conftest.err` |
| 14469 | $RM -r conftest* |
| 14470 | |
| 14471 | |
| 14472 | # Allow CC to be a program name with arguments. |
| 14473 | lt_save_CC=$CC |
| 14474 | lt_save_CFLAGS=$CFLAGS |
| 14475 | lt_save_GCC=$GCC |
| 14476 | GCC= |
| 14477 | CC=${RC-"windres"} |
| 14478 | CFLAGS= |
| 14479 | compiler=$CC |
| 14480 | compiler_RC=$CC |
| 14481 | func_cc_basename $compiler |
| 14482 | cc_basename=$func_cc_basename_result |
| 14483 | |
| 14484 | lt_cv_prog_compiler_c_o_RC=yes |
| 14485 | |
| 14486 | if test -n "$compiler"; then |
| 14487 | : |
| 14488 | |
| 14489 | |
| 14490 | |
| 14491 | fi |
| 14492 | |
| 14493 | GCC=$lt_save_GCC |
| 14494 | ac_ext=c |
| 14495 | ac_cpp='$CPP $CPPFLAGS' |
| 14496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14499 | |
| 14500 | CC=$lt_save_CC |
| 14501 | CFLAGS=$lt_save_CFLAGS |
| 14502 | |
| 14503 | |
| 14504 | # |
| 14505 | # Specify how we support our local modification of libtool for Windows |
| 14506 | # 64-bit. Options are: |
| 14507 | # |
| 14508 | # (1) apply: when appying patch fails, it results failure of entire build |
| 14509 | # (2) never: never apply the patch (no try) |
| 14510 | # (3) try: use patched if it goes well, use original if fails |
| 14511 | # |
| 14512 | |
| 14513 | # Check whether --with-libtool-modification was given. |
| 14514 | if test ${with_libtool_modification+y} |
| 14515 | then : |
| 14516 | withval=$with_libtool_modification; build_libtool_modification=$withval |
| 14517 | else $as_nop |
| 14518 | build_libtool_modification=never |
| 14519 | fi |
| 14520 | |
| 14521 | |
| 14522 | # |
| 14523 | # Apply a patch (locally maintained one of ours) to libtool |
| 14524 | # |
| 14525 | case $host in |
| 14526 | x86_64-*mingw32*) |
| 14527 | ac_config_commands="$ac_config_commands libtool-patch" |
| 14528 | |
| 14529 | ;; |
| 14530 | *) |
| 14531 | ;; |
| 14532 | esac |
| 14533 | |
| 14534 | # We need to compile and run a program on the build machine. |
| 14535 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
| 14536 | if test -z "$CC_FOR_BUILD"; then |
| 14537 | if test "x$cross_compiling" = "xno"; then |
| 14538 | CC_FOR_BUILD='$(CC)' |
| 14539 | else |
| 14540 | CC_FOR_BUILD=gcc |
| 14541 | fi |
| 14542 | fi |
| 14543 | |
| 14544 | # Also set EXEEXT_FOR_BUILD. |
| 14545 | if test "x$cross_compiling" = "xno"; then |
| 14546 | EXEEXT_FOR_BUILD='$(EXEEXT)' |
| 14547 | else |
| 14548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 |
| 14549 | printf %s "checking for build system executable suffix... " >&6; } |
| 14550 | if test ${bfd_cv_build_exeext+y} |
| 14551 | then : |
| 14552 | printf %s "(cached) " >&6 |
| 14553 | else $as_nop |
| 14554 | rm -f conftest* |
| 14555 | echo 'int main (void) { return 0; }' > conftest.c |
| 14556 | bfd_cv_build_exeext= |
| 14557 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 |
| 14558 | for file in conftest.*; do |
| 14559 | case $file in |
| 14560 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
| 14561 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 14562 | esac |
| 14563 | done |
| 14564 | rm -f conftest* |
| 14565 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no |
| 14566 | fi |
| 14567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
| 14568 | printf "%s\n" "$bfd_cv_build_exeext" >&6; } |
| 14569 | EXEEXT_FOR_BUILD="" |
| 14570 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} |
| 14571 | fi |
| 14572 | |
| 14573 | |
| 14574 | |
| 14575 | |
| 14576 | # We used to provide gpg-error-config command always. Now, it's |
| 14577 | # gpgrt-config command with gpg-error.pc configuration file, which |
| 14578 | # does same thing. gpg-error-config command is deprecated. |
| 14579 | # Check whether --enable-install-gpg-error-config was given. |
| 14580 | if test ${enable_install_gpg_error_config+y} |
| 14581 | then : |
| 14582 | enableval=$enable_install_gpg_error_config; install_gpg_error_config=$enableval |
| 14583 | fi |
| 14584 | |
| 14585 | if test "$install_gpg_error_config" = "yes"; then |
| 14586 | INSTALL_GPG_ERROR_CONFIG_TRUE= |
| 14587 | INSTALL_GPG_ERROR_CONFIG_FALSE='#' |
| 14588 | else |
| 14589 | INSTALL_GPG_ERROR_CONFIG_TRUE='#' |
| 14590 | INSTALL_GPG_ERROR_CONFIG_FALSE= |
| 14591 | fi |
| 14592 | |
| 14593 | |
| 14594 | # Note, that autogen.sh greps for the next line. |
| 14595 | |
| 14596 | |
| 14597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 14598 | printf %s "checking whether NLS is requested... " >&6; } |
| 14599 | # Check whether --enable-nls was given. |
| 14600 | if test ${enable_nls+y} |
| 14601 | then : |
| 14602 | enableval=$enable_nls; USE_NLS=$enableval |
| 14603 | else $as_nop |
| 14604 | USE_NLS=yes |
| 14605 | fi |
| 14606 | |
| 14607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 14608 | printf "%s\n" "$USE_NLS" >&6; } |
| 14609 | |
| 14610 | |
| 14611 | |
| 14612 | |
| 14613 | GETTEXT_MACRO_VERSION=0.20 |
| 14614 | |
| 14615 | |
| 14616 | |
| 14617 | |
| 14618 | # Prepare PATH_SEPARATOR. |
| 14619 | # The user is always right. |
| 14620 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14621 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14622 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14623 | # so we have to set that as well for the test. |
| 14624 | PATH_SEPARATOR=: |
| 14625 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14626 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14627 | || PATH_SEPARATOR=';' |
| 14628 | } |
| 14629 | fi |
| 14630 | |
| 14631 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14632 | # as systems may use methods other than mode bits to determine executability. |
| 14633 | cat >conf$$.file <<_ASEOF |
| 14634 | #! /bin/sh |
| 14635 | exit 0 |
| 14636 | _ASEOF |
| 14637 | chmod +x conf$$.file |
| 14638 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14639 | ac_executable_p="test -x" |
| 14640 | else |
| 14641 | ac_executable_p="test -f" |
| 14642 | fi |
| 14643 | rm -f conf$$.file |
| 14644 | |
| 14645 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14646 | set dummy msgfmt; ac_word=$2 |
| 14647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14648 | printf %s "checking for $ac_word... " >&6; } |
| 14649 | if test ${ac_cv_path_MSGFMT+y} |
| 14650 | then : |
| 14651 | printf %s "(cached) " >&6 |
| 14652 | else $as_nop |
| 14653 | case "$MSGFMT" in |
| 14654 | [\\/]* | ?:[\\/]*) |
| 14655 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 14656 | ;; |
| 14657 | *) |
| 14658 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14659 | for ac_dir in $PATH; do |
| 14660 | IFS="$ac_save_IFS" |
| 14661 | test -z "$ac_dir" && ac_dir=. |
| 14662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14663 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14664 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14665 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 14666 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 14667 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 14668 | break 2 |
| 14669 | fi |
| 14670 | fi |
| 14671 | done |
| 14672 | done |
| 14673 | IFS="$ac_save_IFS" |
| 14674 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 14675 | ;; |
| 14676 | esac |
| 14677 | fi |
| 14678 | MSGFMT="$ac_cv_path_MSGFMT" |
| 14679 | if test "$MSGFMT" != ":"; then |
| 14680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 14681 | printf "%s\n" "$MSGFMT" >&6; } |
| 14682 | else |
| 14683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14684 | printf "%s\n" "no" >&6; } |
| 14685 | fi |
| 14686 | |
| 14687 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 14688 | set dummy gmsgfmt; ac_word=$2 |
| 14689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14690 | printf %s "checking for $ac_word... " >&6; } |
| 14691 | if test ${ac_cv_path_GMSGFMT+y} |
| 14692 | then : |
| 14693 | printf %s "(cached) " >&6 |
| 14694 | else $as_nop |
| 14695 | case $GMSGFMT in |
| 14696 | [\\/]* | ?:[\\/]*) |
| 14697 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 14698 | ;; |
| 14699 | *) |
| 14700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14701 | for as_dir in $PATH |
| 14702 | do |
| 14703 | IFS=$as_save_IFS |
| 14704 | case $as_dir in #((( |
| 14705 | '') as_dir=./ ;; |
| 14706 | */) ;; |
| 14707 | *) as_dir=$as_dir/ ;; |
| 14708 | esac |
| 14709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14710 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 14711 | ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" |
| 14712 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 14713 | break 2 |
| 14714 | fi |
| 14715 | done |
| 14716 | done |
| 14717 | IFS=$as_save_IFS |
| 14718 | |
| 14719 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 14720 | ;; |
| 14721 | esac |
| 14722 | fi |
| 14723 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 14724 | if test -n "$GMSGFMT"; then |
| 14725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 14726 | printf "%s\n" "$GMSGFMT" >&6; } |
| 14727 | else |
| 14728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14729 | printf "%s\n" "no" >&6; } |
| 14730 | fi |
| 14731 | |
| 14732 | |
| 14733 | |
| 14734 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14735 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 14736 | *) GMSGFMT_015=$GMSGFMT ;; |
| 14737 | esac |
| 14738 | |
| 14739 | |
| 14740 | |
| 14741 | # Prepare PATH_SEPARATOR. |
| 14742 | # The user is always right. |
| 14743 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14744 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14745 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14746 | # so we have to set that as well for the test. |
| 14747 | PATH_SEPARATOR=: |
| 14748 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14749 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14750 | || PATH_SEPARATOR=';' |
| 14751 | } |
| 14752 | fi |
| 14753 | |
| 14754 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14755 | # as systems may use methods other than mode bits to determine executability. |
| 14756 | cat >conf$$.file <<_ASEOF |
| 14757 | #! /bin/sh |
| 14758 | exit 0 |
| 14759 | _ASEOF |
| 14760 | chmod +x conf$$.file |
| 14761 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14762 | ac_executable_p="test -x" |
| 14763 | else |
| 14764 | ac_executable_p="test -f" |
| 14765 | fi |
| 14766 | rm -f conf$$.file |
| 14767 | |
| 14768 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 14769 | set dummy xgettext; ac_word=$2 |
| 14770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14771 | printf %s "checking for $ac_word... " >&6; } |
| 14772 | if test ${ac_cv_path_XGETTEXT+y} |
| 14773 | then : |
| 14774 | printf %s "(cached) " >&6 |
| 14775 | else $as_nop |
| 14776 | case "$XGETTEXT" in |
| 14777 | [\\/]* | ?:[\\/]*) |
| 14778 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 14779 | ;; |
| 14780 | *) |
| 14781 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14782 | for ac_dir in $PATH; do |
| 14783 | IFS="$ac_save_IFS" |
| 14784 | test -z "$ac_dir" && ac_dir=. |
| 14785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14786 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14787 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14788 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 14789 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 14790 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 14791 | break 2 |
| 14792 | fi |
| 14793 | fi |
| 14794 | done |
| 14795 | done |
| 14796 | IFS="$ac_save_IFS" |
| 14797 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 14798 | ;; |
| 14799 | esac |
| 14800 | fi |
| 14801 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 14802 | if test "$XGETTEXT" != ":"; then |
| 14803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 14804 | printf "%s\n" "$XGETTEXT" >&6; } |
| 14805 | else |
| 14806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14807 | printf "%s\n" "no" >&6; } |
| 14808 | fi |
| 14809 | |
| 14810 | rm -f messages.po |
| 14811 | |
| 14812 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14813 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 14814 | *) XGETTEXT_015=$XGETTEXT ;; |
| 14815 | esac |
| 14816 | |
| 14817 | |
| 14818 | |
| 14819 | # Prepare PATH_SEPARATOR. |
| 14820 | # The user is always right. |
| 14821 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14822 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14823 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14824 | # so we have to set that as well for the test. |
| 14825 | PATH_SEPARATOR=: |
| 14826 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14827 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14828 | || PATH_SEPARATOR=';' |
| 14829 | } |
| 14830 | fi |
| 14831 | |
| 14832 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 14833 | # as systems may use methods other than mode bits to determine executability. |
| 14834 | cat >conf$$.file <<_ASEOF |
| 14835 | #! /bin/sh |
| 14836 | exit 0 |
| 14837 | _ASEOF |
| 14838 | chmod +x conf$$.file |
| 14839 | if test -x conf$$.file >/dev/null 2>&1; then |
| 14840 | ac_executable_p="test -x" |
| 14841 | else |
| 14842 | ac_executable_p="test -f" |
| 14843 | fi |
| 14844 | rm -f conf$$.file |
| 14845 | |
| 14846 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 14847 | set dummy msgmerge; ac_word=$2 |
| 14848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14849 | printf %s "checking for $ac_word... " >&6; } |
| 14850 | if test ${ac_cv_path_MSGMERGE+y} |
| 14851 | then : |
| 14852 | printf %s "(cached) " >&6 |
| 14853 | else $as_nop |
| 14854 | case "$MSGMERGE" in |
| 14855 | [\\/]* | ?:[\\/]*) |
| 14856 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 14857 | ;; |
| 14858 | *) |
| 14859 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14860 | for ac_dir in $PATH; do |
| 14861 | IFS="$ac_save_IFS" |
| 14862 | test -z "$ac_dir" && ac_dir=. |
| 14863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14864 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14865 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14866 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 14867 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 14868 | break 2 |
| 14869 | fi |
| 14870 | fi |
| 14871 | done |
| 14872 | done |
| 14873 | IFS="$ac_save_IFS" |
| 14874 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 14875 | ;; |
| 14876 | esac |
| 14877 | fi |
| 14878 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 14879 | if test "$MSGMERGE" != ":"; then |
| 14880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 14881 | printf "%s\n" "$MSGMERGE" >&6; } |
| 14882 | else |
| 14883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14884 | printf "%s\n" "no" >&6; } |
| 14885 | fi |
| 14886 | |
| 14887 | |
| 14888 | if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then |
| 14889 | MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' |
| 14890 | else |
| 14891 | if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then |
| 14892 | MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' |
| 14893 | else |
| 14894 | MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' |
| 14895 | fi |
| 14896 | fi |
| 14897 | |
| 14898 | |
| 14899 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 14900 | |
| 14901 | |
| 14902 | ac_config_commands="$ac_config_commands po-directories" |
| 14903 | |
| 14904 | |
| 14905 | |
| 14906 | if test "X$prefix" = "XNONE"; then |
| 14907 | acl_final_prefix="$ac_default_prefix" |
| 14908 | else |
| 14909 | acl_final_prefix="$prefix" |
| 14910 | fi |
| 14911 | if test "X$exec_prefix" = "XNONE"; then |
| 14912 | acl_final_exec_prefix='${prefix}' |
| 14913 | else |
| 14914 | acl_final_exec_prefix="$exec_prefix" |
| 14915 | fi |
| 14916 | acl_save_prefix="$prefix" |
| 14917 | prefix="$acl_final_prefix" |
| 14918 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 14919 | prefix="$acl_save_prefix" |
| 14920 | |
| 14921 | |
| 14922 | |
| 14923 | # Check whether --with-gnu-ld was given. |
| 14924 | if test ${with_gnu_ld+y} |
| 14925 | then : |
| 14926 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 14927 | else $as_nop |
| 14928 | with_gnu_ld=no |
| 14929 | fi |
| 14930 | |
| 14931 | ac_prog=ld |
| 14932 | if test yes = "$GCC"; then |
| 14933 | # Check if gcc -print-prog-name=ld gives a path. |
| 14934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 14935 | printf %s "checking for ld used by $CC... " >&6; } |
| 14936 | case $host in |
| 14937 | *-*-mingw*) |
| 14938 | # gcc leaves a trailing carriage return, which upsets mingw |
| 14939 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14940 | *) |
| 14941 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14942 | esac |
| 14943 | case $ac_prog in |
| 14944 | # Accept absolute paths. |
| 14945 | [\\/]* | ?:[\\/]*) |
| 14946 | re_direlt='/[^/][^/]*/\.\./' |
| 14947 | # Canonicalize the pathname of ld |
| 14948 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 14949 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 14950 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 14951 | done |
| 14952 | test -z "$LD" && LD=$ac_prog |
| 14953 | ;; |
| 14954 | "") |
| 14955 | # If it fails, then pretend we aren't using GCC. |
| 14956 | ac_prog=ld |
| 14957 | ;; |
| 14958 | *) |
| 14959 | # If it is relative, then search for the first ld in PATH. |
| 14960 | with_gnu_ld=unknown |
| 14961 | ;; |
| 14962 | esac |
| 14963 | elif test yes = "$with_gnu_ld"; then |
| 14964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 14965 | printf %s "checking for GNU ld... " >&6; } |
| 14966 | else |
| 14967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 14968 | printf %s "checking for non-GNU ld... " >&6; } |
| 14969 | fi |
| 14970 | if test ${lt_cv_path_LD+y} |
| 14971 | then : |
| 14972 | printf %s "(cached) " >&6 |
| 14973 | else $as_nop |
| 14974 | if test -z "$LD"; then |
| 14975 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 14976 | for ac_dir in $PATH; do |
| 14977 | IFS=$lt_save_ifs |
| 14978 | test -z "$ac_dir" && ac_dir=. |
| 14979 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14980 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 14981 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 14982 | # but apparently some variants of GNU ld only accept -v. |
| 14983 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 14984 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 14985 | *GNU* | *'with BFD'*) |
| 14986 | test no != "$with_gnu_ld" && break |
| 14987 | ;; |
| 14988 | *) |
| 14989 | test yes != "$with_gnu_ld" && break |
| 14990 | ;; |
| 14991 | esac |
| 14992 | fi |
| 14993 | done |
| 14994 | IFS=$lt_save_ifs |
| 14995 | else |
| 14996 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 14997 | fi |
| 14998 | fi |
| 14999 | |
| 15000 | LD=$lt_cv_path_LD |
| 15001 | if test -n "$LD"; then |
| 15002 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 15003 | printf "%s\n" "$LD" >&6; } |
| 15004 | else |
| 15005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15006 | printf "%s\n" "no" >&6; } |
| 15007 | fi |
| 15008 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 15009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 15010 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 15011 | if test ${lt_cv_prog_gnu_ld+y} |
| 15012 | then : |
| 15013 | printf %s "(cached) " >&6 |
| 15014 | else $as_nop |
| 15015 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 15016 | case `$LD -v 2>&1 </dev/null` in |
| 15017 | *GNU* | *'with BFD'*) |
| 15018 | lt_cv_prog_gnu_ld=yes |
| 15019 | ;; |
| 15020 | *) |
| 15021 | lt_cv_prog_gnu_ld=no |
| 15022 | ;; |
| 15023 | esac |
| 15024 | fi |
| 15025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 15026 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 15027 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 15028 | |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | |
| 15037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 15038 | printf %s "checking for shared library run path origin... " >&6; } |
| 15039 | if test ${acl_cv_rpath+y} |
| 15040 | then : |
| 15041 | printf %s "(cached) " >&6 |
| 15042 | else $as_nop |
| 15043 | |
| 15044 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 15045 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 15046 | . ./conftest.sh |
| 15047 | rm -f ./conftest.sh |
| 15048 | acl_cv_rpath=done |
| 15049 | |
| 15050 | fi |
| 15051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 15052 | printf "%s\n" "$acl_cv_rpath" >&6; } |
| 15053 | wl="$acl_cv_wl" |
| 15054 | acl_libext="$acl_cv_libext" |
| 15055 | acl_shlibext="$acl_cv_shlibext" |
| 15056 | acl_libname_spec="$acl_cv_libname_spec" |
| 15057 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 15058 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 15059 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 15060 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 15061 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 15062 | # Check whether --enable-rpath was given. |
| 15063 | if test ${enable_rpath+y} |
| 15064 | then : |
| 15065 | enableval=$enable_rpath; : |
| 15066 | else $as_nop |
| 15067 | enable_rpath=yes |
| 15068 | fi |
| 15069 | |
| 15070 | |
| 15071 | |
| 15072 | |
| 15073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 |
| 15074 | printf %s "checking 32-bit host C ABI... " >&6; } |
| 15075 | if test ${gl_cv_host_cpu_c_abi_32bit+y} |
| 15076 | then : |
| 15077 | printf %s "(cached) " >&6 |
| 15078 | else $as_nop |
| 15079 | if test -n "$gl_cv_host_cpu_c_abi"; then |
| 15080 | case "$gl_cv_host_cpu_c_abi" in |
| 15081 | i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) |
| 15082 | gl_cv_host_cpu_c_abi_32bit=yes ;; |
| 15083 | x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) |
| 15084 | gl_cv_host_cpu_c_abi_32bit=no ;; |
| 15085 | *) |
| 15086 | gl_cv_host_cpu_c_abi_32bit=unknown ;; |
| 15087 | esac |
| 15088 | else |
| 15089 | case "$host_cpu" in |
| 15090 | |
| 15091 | # CPUs that only support a 32-bit ABI. |
| 15092 | arc \ |
| 15093 | | bfin \ |
| 15094 | | cris* \ |
| 15095 | | csky \ |
| 15096 | | epiphany \ |
| 15097 | | ft32 \ |
| 15098 | | h8300 \ |
| 15099 | | m68k \ |
| 15100 | | microblaze | microblazeel \ |
| 15101 | | nds32 | nds32le | nds32be \ |
| 15102 | | nios2 | nios2eb | nios2el \ |
| 15103 | | or1k* \ |
| 15104 | | or32 \ |
| 15105 | | sh | sh1234 | sh1234elb \ |
| 15106 | | tic6x \ |
| 15107 | | xtensa* ) |
| 15108 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15109 | ;; |
| 15110 | |
| 15111 | # CPUs that only support a 64-bit ABI. |
| 15112 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ |
| 15113 | | mmix ) |
| 15114 | gl_cv_host_cpu_c_abi_32bit=no |
| 15115 | ;; |
| 15116 | |
| 15117 | i[34567]86 ) |
| 15118 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15119 | ;; |
| 15120 | |
| 15121 | x86_64 ) |
| 15122 | # On x86_64 systems, the C compiler may be generating code in one of |
| 15123 | # these ABIs: |
| 15124 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. |
| 15125 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 |
| 15126 | # with native Windows (mingw, MSVC). |
| 15127 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. |
| 15128 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. |
| 15129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15130 | /* end confdefs.h. */ |
| 15131 | #if (defined __x86_64__ || defined __amd64__ \ |
| 15132 | || defined _M_X64 || defined _M_AMD64) \ |
| 15133 | && !(defined __ILP32__ || defined _ILP32) |
| 15134 | int ok; |
| 15135 | #else |
| 15136 | error fail |
| 15137 | #endif |
| 15138 | |
| 15139 | _ACEOF |
| 15140 | if ac_fn_c_try_compile "$LINENO" |
| 15141 | then : |
| 15142 | gl_cv_host_cpu_c_abi_32bit=no |
| 15143 | else $as_nop |
| 15144 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15145 | fi |
| 15146 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15147 | ;; |
| 15148 | |
| 15149 | arm* | aarch64 ) |
| 15150 | # Assume arm with EABI. |
| 15151 | # On arm64 systems, the C compiler may be generating code in one of |
| 15152 | # these ABIs: |
| 15153 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. |
| 15154 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. |
| 15155 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. |
| 15156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15157 | /* end confdefs.h. */ |
| 15158 | #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) |
| 15159 | int ok; |
| 15160 | #else |
| 15161 | error fail |
| 15162 | #endif |
| 15163 | |
| 15164 | _ACEOF |
| 15165 | if ac_fn_c_try_compile "$LINENO" |
| 15166 | then : |
| 15167 | gl_cv_host_cpu_c_abi_32bit=no |
| 15168 | else $as_nop |
| 15169 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15170 | fi |
| 15171 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15172 | ;; |
| 15173 | |
| 15174 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) |
| 15175 | # On hppa, the C compiler may be generating 32-bit code or 64-bit |
| 15176 | # code. In the latter case, it defines _LP64 and __LP64__. |
| 15177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15178 | /* end confdefs.h. */ |
| 15179 | #ifdef __LP64__ |
| 15180 | int ok; |
| 15181 | #else |
| 15182 | error fail |
| 15183 | #endif |
| 15184 | |
| 15185 | _ACEOF |
| 15186 | if ac_fn_c_try_compile "$LINENO" |
| 15187 | then : |
| 15188 | gl_cv_host_cpu_c_abi_32bit=no |
| 15189 | else $as_nop |
| 15190 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15191 | fi |
| 15192 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15193 | ;; |
| 15194 | |
| 15195 | ia64* ) |
| 15196 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or |
| 15197 | # 32-bit code. In the latter case, it defines _ILP32. |
| 15198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15199 | /* end confdefs.h. */ |
| 15200 | #ifdef _ILP32 |
| 15201 | int ok; |
| 15202 | #else |
| 15203 | error fail |
| 15204 | #endif |
| 15205 | |
| 15206 | _ACEOF |
| 15207 | if ac_fn_c_try_compile "$LINENO" |
| 15208 | then : |
| 15209 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15210 | else $as_nop |
| 15211 | gl_cv_host_cpu_c_abi_32bit=no |
| 15212 | fi |
| 15213 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15214 | ;; |
| 15215 | |
| 15216 | mips* ) |
| 15217 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this |
| 15218 | # at 32. |
| 15219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15220 | /* end confdefs.h. */ |
| 15221 | #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) |
| 15222 | int ok; |
| 15223 | #else |
| 15224 | error fail |
| 15225 | #endif |
| 15226 | |
| 15227 | _ACEOF |
| 15228 | if ac_fn_c_try_compile "$LINENO" |
| 15229 | then : |
| 15230 | gl_cv_host_cpu_c_abi_32bit=no |
| 15231 | else $as_nop |
| 15232 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15233 | fi |
| 15234 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15235 | ;; |
| 15236 | |
| 15237 | powerpc* ) |
| 15238 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. |
| 15239 | # No need to distinguish them here; the caller may distinguish |
| 15240 | # them based on the OS. |
| 15241 | # On powerpc64 systems, the C compiler may still be generating |
| 15242 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may |
| 15243 | # be generating 64-bit code. |
| 15244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15245 | /* end confdefs.h. */ |
| 15246 | #if defined __powerpc64__ || defined __LP64__ |
| 15247 | int ok; |
| 15248 | #else |
| 15249 | error fail |
| 15250 | #endif |
| 15251 | |
| 15252 | _ACEOF |
| 15253 | if ac_fn_c_try_compile "$LINENO" |
| 15254 | then : |
| 15255 | gl_cv_host_cpu_c_abi_32bit=no |
| 15256 | else $as_nop |
| 15257 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15258 | fi |
| 15259 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15260 | ;; |
| 15261 | |
| 15262 | rs6000 ) |
| 15263 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15264 | ;; |
| 15265 | |
| 15266 | riscv32 | riscv64 ) |
| 15267 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. |
| 15268 | # Size of 'long' and 'void *': |
| 15269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15270 | /* end confdefs.h. */ |
| 15271 | #if defined __LP64__ |
| 15272 | int ok; |
| 15273 | #else |
| 15274 | error fail |
| 15275 | #endif |
| 15276 | |
| 15277 | _ACEOF |
| 15278 | if ac_fn_c_try_compile "$LINENO" |
| 15279 | then : |
| 15280 | gl_cv_host_cpu_c_abi_32bit=no |
| 15281 | else $as_nop |
| 15282 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15283 | fi |
| 15284 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15285 | ;; |
| 15286 | |
| 15287 | s390* ) |
| 15288 | # On s390x, the C compiler may be generating 64-bit (= s390x) code |
| 15289 | # or 31-bit (= s390) code. |
| 15290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15291 | /* end confdefs.h. */ |
| 15292 | #if defined __LP64__ || defined __s390x__ |
| 15293 | int ok; |
| 15294 | #else |
| 15295 | error fail |
| 15296 | #endif |
| 15297 | |
| 15298 | _ACEOF |
| 15299 | if ac_fn_c_try_compile "$LINENO" |
| 15300 | then : |
| 15301 | gl_cv_host_cpu_c_abi_32bit=no |
| 15302 | else $as_nop |
| 15303 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15304 | fi |
| 15305 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15306 | ;; |
| 15307 | |
| 15308 | sparc | sparc64 ) |
| 15309 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the |
| 15310 | # C compiler still generates 32-bit code. |
| 15311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15312 | /* end confdefs.h. */ |
| 15313 | #if defined __sparcv9 || defined __arch64__ |
| 15314 | int ok; |
| 15315 | #else |
| 15316 | error fail |
| 15317 | #endif |
| 15318 | |
| 15319 | _ACEOF |
| 15320 | if ac_fn_c_try_compile "$LINENO" |
| 15321 | then : |
| 15322 | gl_cv_host_cpu_c_abi_32bit=no |
| 15323 | else $as_nop |
| 15324 | gl_cv_host_cpu_c_abi_32bit=yes |
| 15325 | fi |
| 15326 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15327 | ;; |
| 15328 | |
| 15329 | *) |
| 15330 | gl_cv_host_cpu_c_abi_32bit=unknown |
| 15331 | ;; |
| 15332 | esac |
| 15333 | fi |
| 15334 | |
| 15335 | fi |
| 15336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 |
| 15337 | printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } |
| 15338 | |
| 15339 | HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" |
| 15340 | |
| 15341 | |
| 15342 | |
| 15343 | |
| 15344 | |
| 15345 | |
| 15346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 |
| 15347 | printf %s "checking for ELF binary format... " >&6; } |
| 15348 | if test ${gl_cv_elf+y} |
| 15349 | then : |
| 15350 | printf %s "(cached) " >&6 |
| 15351 | else $as_nop |
| 15352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15353 | /* end confdefs.h. */ |
| 15354 | #ifdef __ELF__ |
| 15355 | Extensible Linking Format |
| 15356 | #endif |
| 15357 | |
| 15358 | _ACEOF |
| 15359 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15360 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 |
| 15361 | then : |
| 15362 | gl_cv_elf=yes |
| 15363 | else $as_nop |
| 15364 | gl_cv_elf=no |
| 15365 | fi |
| 15366 | rm -rf conftest* |
| 15367 | |
| 15368 | |
| 15369 | fi |
| 15370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 |
| 15371 | printf "%s\n" "$gl_cv_elf" >&6; } |
| 15372 | if test $gl_cv_elf = yes; then |
| 15373 | # Extract the ELF class of a file (5th byte) in decimal. |
| 15374 | # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header |
| 15375 | if od -A x < /dev/null >/dev/null 2>/dev/null; then |
| 15376 | # Use POSIX od. |
| 15377 | func_elfclass () |
| 15378 | { |
| 15379 | od -A n -t d1 -j 4 -N 1 |
| 15380 | } |
| 15381 | else |
| 15382 | # Use BSD hexdump. |
| 15383 | func_elfclass () |
| 15384 | { |
| 15385 | dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' |
| 15386 | echo |
| 15387 | } |
| 15388 | fi |
| 15389 | # Use 'expr', not 'test', to compare the values of func_elfclass, because on |
| 15390 | # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, |
| 15391 | # not 1 or 2. |
| 15392 | case $HOST_CPU_C_ABI_32BIT in |
| 15393 | yes) |
| 15394 | # 32-bit ABI. |
| 15395 | acl_is_expected_elfclass () |
| 15396 | { |
| 15397 | expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null |
| 15398 | } |
| 15399 | ;; |
| 15400 | no) |
| 15401 | # 64-bit ABI. |
| 15402 | acl_is_expected_elfclass () |
| 15403 | { |
| 15404 | expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null |
| 15405 | } |
| 15406 | ;; |
| 15407 | *) |
| 15408 | # Unknown. |
| 15409 | acl_is_expected_elfclass () |
| 15410 | { |
| 15411 | : |
| 15412 | } |
| 15413 | ;; |
| 15414 | esac |
| 15415 | else |
| 15416 | acl_is_expected_elfclass () |
| 15417 | { |
| 15418 | : |
| 15419 | } |
| 15420 | fi |
| 15421 | |
| 15422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 |
| 15423 | printf %s "checking for the common suffixes of directories in the library search path... " >&6; } |
| 15424 | if test ${acl_cv_libdirstems+y} |
| 15425 | then : |
| 15426 | printf %s "(cached) " >&6 |
| 15427 | else $as_nop |
| 15428 | acl_libdirstem=lib |
| 15429 | acl_libdirstem2= |
| 15430 | acl_libdirstem3= |
| 15431 | case "$host_os" in |
| 15432 | solaris*) |
| 15433 | if test $HOST_CPU_C_ABI_32BIT = no; then |
| 15434 | acl_libdirstem2=lib/64 |
| 15435 | case "$host_cpu" in |
| 15436 | sparc*) acl_libdirstem3=lib/sparcv9 ;; |
| 15437 | i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; |
| 15438 | esac |
| 15439 | fi |
| 15440 | ;; |
| 15441 | *) |
| 15442 | searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ |
| 15443 | | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 15444 | if test $HOST_CPU_C_ABI_32BIT != no; then |
| 15445 | # 32-bit or unknown ABI. |
| 15446 | if test -d /usr/lib32; then |
| 15447 | acl_libdirstem2=lib32 |
| 15448 | fi |
| 15449 | fi |
| 15450 | if test $HOST_CPU_C_ABI_32BIT != yes; then |
| 15451 | # 64-bit or unknown ABI. |
| 15452 | if test -d /usr/lib64; then |
| 15453 | acl_libdirstem3=lib64 |
| 15454 | fi |
| 15455 | fi |
| 15456 | if test -n "$searchpath"; then |
| 15457 | acl_save_IFS="${IFS= }"; IFS=":" |
| 15458 | for searchdir in $searchpath; do |
| 15459 | if test -d "$searchdir"; then |
| 15460 | case "$searchdir" in |
| 15461 | */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; |
| 15462 | */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; |
| 15463 | */../ | */.. ) |
| 15464 | # Better ignore directories of this form. They are misleading. |
| 15465 | ;; |
| 15466 | *) searchdir=`cd "$searchdir" && pwd` |
| 15467 | case "$searchdir" in |
| 15468 | */lib32 ) acl_libdirstem2=lib32 ;; |
| 15469 | */lib64 ) acl_libdirstem3=lib64 ;; |
| 15470 | esac ;; |
| 15471 | esac |
| 15472 | fi |
| 15473 | done |
| 15474 | IFS="$acl_save_IFS" |
| 15475 | if test $HOST_CPU_C_ABI_32BIT = yes; then |
| 15476 | # 32-bit ABI. |
| 15477 | acl_libdirstem3= |
| 15478 | fi |
| 15479 | if test $HOST_CPU_C_ABI_32BIT = no; then |
| 15480 | # 64-bit ABI. |
| 15481 | acl_libdirstem2= |
| 15482 | fi |
| 15483 | fi |
| 15484 | ;; |
| 15485 | esac |
| 15486 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 15487 | test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" |
| 15488 | acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" |
| 15489 | |
| 15490 | fi |
| 15491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 |
| 15492 | printf "%s\n" "$acl_cv_libdirstems" >&6; } |
| 15493 | acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` |
| 15494 | acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` |
| 15495 | acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` |
| 15496 | |
| 15497 | |
| 15498 | |
| 15499 | |
| 15500 | |
| 15501 | |
| 15502 | |
| 15503 | |
| 15504 | |
| 15505 | |
| 15506 | |
| 15507 | use_additional=yes |
| 15508 | |
| 15509 | acl_save_prefix="$prefix" |
| 15510 | prefix="$acl_final_prefix" |
| 15511 | acl_save_exec_prefix="$exec_prefix" |
| 15512 | exec_prefix="$acl_final_exec_prefix" |
| 15513 | |
| 15514 | eval additional_includedir=\"$includedir\" |
| 15515 | eval additional_libdir=\"$libdir\" |
| 15516 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 15517 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 15518 | |
| 15519 | exec_prefix="$acl_save_exec_prefix" |
| 15520 | prefix="$acl_save_prefix" |
| 15521 | |
| 15522 | |
| 15523 | # Check whether --with-libiconv-prefix was given. |
| 15524 | if test ${with_libiconv_prefix+y} |
| 15525 | then : |
| 15526 | withval=$with_libiconv_prefix; |
| 15527 | if test "X$withval" = "Xno"; then |
| 15528 | use_additional=no |
| 15529 | else |
| 15530 | if test "X$withval" = "X"; then |
| 15531 | |
| 15532 | acl_save_prefix="$prefix" |
| 15533 | prefix="$acl_final_prefix" |
| 15534 | acl_save_exec_prefix="$exec_prefix" |
| 15535 | exec_prefix="$acl_final_exec_prefix" |
| 15536 | |
| 15537 | eval additional_includedir=\"$includedir\" |
| 15538 | eval additional_libdir=\"$libdir\" |
| 15539 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 15540 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 15541 | |
| 15542 | exec_prefix="$acl_save_exec_prefix" |
| 15543 | prefix="$acl_save_prefix" |
| 15544 | |
| 15545 | else |
| 15546 | additional_includedir="$withval/include" |
| 15547 | additional_libdir="$withval/$acl_libdirstem" |
| 15548 | additional_libdir2="$withval/$acl_libdirstem2" |
| 15549 | additional_libdir3="$withval/$acl_libdirstem3" |
| 15550 | fi |
| 15551 | fi |
| 15552 | |
| 15553 | fi |
| 15554 | |
| 15555 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
| 15556 | additional_libdir2= |
| 15557 | fi |
| 15558 | if test "X$additional_libdir3" = "X$additional_libdir"; then |
| 15559 | additional_libdir3= |
| 15560 | fi |
| 15561 | LIBICONV= |
| 15562 | LTLIBICONV= |
| 15563 | INCICONV= |
| 15564 | LIBICONV_PREFIX= |
| 15565 | HAVE_LIBICONV= |
| 15566 | rpathdirs= |
| 15567 | ltrpathdirs= |
| 15568 | names_already_handled= |
| 15569 | names_next_round='iconv ' |
| 15570 | while test -n "$names_next_round"; do |
| 15571 | names_this_round="$names_next_round" |
| 15572 | names_next_round= |
| 15573 | for name in $names_this_round; do |
| 15574 | already_handled= |
| 15575 | for n in $names_already_handled; do |
| 15576 | if test "$n" = "$name"; then |
| 15577 | already_handled=yes |
| 15578 | break |
| 15579 | fi |
| 15580 | done |
| 15581 | if test -z "$already_handled"; then |
| 15582 | names_already_handled="$names_already_handled $name" |
| 15583 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 15584 | eval value=\"\$HAVE_LIB$uppername\" |
| 15585 | if test -n "$value"; then |
| 15586 | if test "$value" = yes; then |
| 15587 | eval value=\"\$LIB$uppername\" |
| 15588 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 15589 | eval value=\"\$LTLIB$uppername\" |
| 15590 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 15591 | else |
| 15592 | : |
| 15593 | fi |
| 15594 | else |
| 15595 | found_dir= |
| 15596 | found_la= |
| 15597 | found_so= |
| 15598 | found_a= |
| 15599 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 15600 | if test -n "$acl_shlibext"; then |
| 15601 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 15602 | else |
| 15603 | shrext= |
| 15604 | fi |
| 15605 | if test $use_additional = yes; then |
| 15606 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
| 15607 | if test "X$found_dir" = "X"; then |
| 15608 | eval dir=\$$additional_libdir_variable |
| 15609 | if test -n "$dir"; then |
| 15610 | if test -n "$acl_shlibext"; then |
| 15611 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 15612 | found_dir="$dir" |
| 15613 | found_so="$dir/$libname$shrext" |
| 15614 | else |
| 15615 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15616 | ver=`(cd "$dir" && \ |
| 15617 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15618 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 15619 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15620 | | sed 1q ) 2>/dev/null` |
| 15621 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 15622 | found_dir="$dir" |
| 15623 | found_so="$dir/$libname$shrext.$ver" |
| 15624 | fi |
| 15625 | else |
| 15626 | eval library_names=\"$acl_library_names_spec\" |
| 15627 | for f in $library_names; do |
| 15628 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 15629 | found_dir="$dir" |
| 15630 | found_so="$dir/$f" |
| 15631 | break |
| 15632 | fi |
| 15633 | done |
| 15634 | fi |
| 15635 | fi |
| 15636 | fi |
| 15637 | if test "X$found_dir" = "X"; then |
| 15638 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 15639 | found_dir="$dir" |
| 15640 | found_a="$dir/$libname.$acl_libext" |
| 15641 | fi |
| 15642 | fi |
| 15643 | if test "X$found_dir" != "X"; then |
| 15644 | if test -f "$dir/$libname.la"; then |
| 15645 | found_la="$dir/$libname.la" |
| 15646 | fi |
| 15647 | fi |
| 15648 | fi |
| 15649 | fi |
| 15650 | done |
| 15651 | fi |
| 15652 | if test "X$found_dir" = "X"; then |
| 15653 | for x in $LDFLAGS $LTLIBICONV; do |
| 15654 | |
| 15655 | acl_save_prefix="$prefix" |
| 15656 | prefix="$acl_final_prefix" |
| 15657 | acl_save_exec_prefix="$exec_prefix" |
| 15658 | exec_prefix="$acl_final_exec_prefix" |
| 15659 | eval x=\"$x\" |
| 15660 | exec_prefix="$acl_save_exec_prefix" |
| 15661 | prefix="$acl_save_prefix" |
| 15662 | |
| 15663 | case "$x" in |
| 15664 | -L*) |
| 15665 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 15666 | if test -n "$acl_shlibext"; then |
| 15667 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 15668 | found_dir="$dir" |
| 15669 | found_so="$dir/$libname$shrext" |
| 15670 | else |
| 15671 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15672 | ver=`(cd "$dir" && \ |
| 15673 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15674 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 15675 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15676 | | sed 1q ) 2>/dev/null` |
| 15677 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 15678 | found_dir="$dir" |
| 15679 | found_so="$dir/$libname$shrext.$ver" |
| 15680 | fi |
| 15681 | else |
| 15682 | eval library_names=\"$acl_library_names_spec\" |
| 15683 | for f in $library_names; do |
| 15684 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 15685 | found_dir="$dir" |
| 15686 | found_so="$dir/$f" |
| 15687 | break |
| 15688 | fi |
| 15689 | done |
| 15690 | fi |
| 15691 | fi |
| 15692 | fi |
| 15693 | if test "X$found_dir" = "X"; then |
| 15694 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 15695 | found_dir="$dir" |
| 15696 | found_a="$dir/$libname.$acl_libext" |
| 15697 | fi |
| 15698 | fi |
| 15699 | if test "X$found_dir" != "X"; then |
| 15700 | if test -f "$dir/$libname.la"; then |
| 15701 | found_la="$dir/$libname.la" |
| 15702 | fi |
| 15703 | fi |
| 15704 | ;; |
| 15705 | esac |
| 15706 | if test "X$found_dir" != "X"; then |
| 15707 | break |
| 15708 | fi |
| 15709 | done |
| 15710 | fi |
| 15711 | if test "X$found_dir" != "X"; then |
| 15712 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 15713 | if test "X$found_so" != "X"; then |
| 15714 | if test "$enable_rpath" = no \ |
| 15715 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 15716 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
| 15717 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then |
| 15718 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15719 | else |
| 15720 | haveit= |
| 15721 | for x in $ltrpathdirs; do |
| 15722 | if test "X$x" = "X$found_dir"; then |
| 15723 | haveit=yes |
| 15724 | break |
| 15725 | fi |
| 15726 | done |
| 15727 | if test -z "$haveit"; then |
| 15728 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 15729 | fi |
| 15730 | if test "$acl_hardcode_direct" = yes; then |
| 15731 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15732 | else |
| 15733 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 15734 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15735 | haveit= |
| 15736 | for x in $rpathdirs; do |
| 15737 | if test "X$x" = "X$found_dir"; then |
| 15738 | haveit=yes |
| 15739 | break |
| 15740 | fi |
| 15741 | done |
| 15742 | if test -z "$haveit"; then |
| 15743 | rpathdirs="$rpathdirs $found_dir" |
| 15744 | fi |
| 15745 | else |
| 15746 | haveit= |
| 15747 | for x in $LDFLAGS $LIBICONV; do |
| 15748 | |
| 15749 | acl_save_prefix="$prefix" |
| 15750 | prefix="$acl_final_prefix" |
| 15751 | acl_save_exec_prefix="$exec_prefix" |
| 15752 | exec_prefix="$acl_final_exec_prefix" |
| 15753 | eval x=\"$x\" |
| 15754 | exec_prefix="$acl_save_exec_prefix" |
| 15755 | prefix="$acl_save_prefix" |
| 15756 | |
| 15757 | if test "X$x" = "X-L$found_dir"; then |
| 15758 | haveit=yes |
| 15759 | break |
| 15760 | fi |
| 15761 | done |
| 15762 | if test -z "$haveit"; then |
| 15763 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 15764 | fi |
| 15765 | if test "$acl_hardcode_minus_L" != no; then |
| 15766 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 15767 | else |
| 15768 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 15769 | fi |
| 15770 | fi |
| 15771 | fi |
| 15772 | fi |
| 15773 | else |
| 15774 | if test "X$found_a" != "X"; then |
| 15775 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 15776 | else |
| 15777 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 15778 | fi |
| 15779 | fi |
| 15780 | additional_includedir= |
| 15781 | case "$found_dir" in |
| 15782 | */$acl_libdirstem | */$acl_libdirstem/) |
| 15783 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 15784 | if test "$name" = 'iconv'; then |
| 15785 | LIBICONV_PREFIX="$basedir" |
| 15786 | fi |
| 15787 | additional_includedir="$basedir/include" |
| 15788 | ;; |
| 15789 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 15790 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 15791 | if test "$name" = 'iconv'; then |
| 15792 | LIBICONV_PREFIX="$basedir" |
| 15793 | fi |
| 15794 | additional_includedir="$basedir/include" |
| 15795 | ;; |
| 15796 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
| 15797 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` |
| 15798 | if test "$name" = 'iconv'; then |
| 15799 | LIBICONV_PREFIX="$basedir" |
| 15800 | fi |
| 15801 | additional_includedir="$basedir/include" |
| 15802 | ;; |
| 15803 | esac |
| 15804 | if test "X$additional_includedir" != "X"; then |
| 15805 | if test "X$additional_includedir" != "X/usr/include"; then |
| 15806 | haveit= |
| 15807 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 15808 | if test -n "$GCC"; then |
| 15809 | case $host_os in |
| 15810 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15811 | esac |
| 15812 | fi |
| 15813 | fi |
| 15814 | if test -z "$haveit"; then |
| 15815 | for x in $CPPFLAGS $INCICONV; do |
| 15816 | |
| 15817 | acl_save_prefix="$prefix" |
| 15818 | prefix="$acl_final_prefix" |
| 15819 | acl_save_exec_prefix="$exec_prefix" |
| 15820 | exec_prefix="$acl_final_exec_prefix" |
| 15821 | eval x=\"$x\" |
| 15822 | exec_prefix="$acl_save_exec_prefix" |
| 15823 | prefix="$acl_save_prefix" |
| 15824 | |
| 15825 | if test "X$x" = "X-I$additional_includedir"; then |
| 15826 | haveit=yes |
| 15827 | break |
| 15828 | fi |
| 15829 | done |
| 15830 | if test -z "$haveit"; then |
| 15831 | if test -d "$additional_includedir"; then |
| 15832 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 15833 | fi |
| 15834 | fi |
| 15835 | fi |
| 15836 | fi |
| 15837 | fi |
| 15838 | if test -n "$found_la"; then |
| 15839 | save_libdir="$libdir" |
| 15840 | case "$found_la" in |
| 15841 | */* | *\\*) . "$found_la" ;; |
| 15842 | *) . "./$found_la" ;; |
| 15843 | esac |
| 15844 | libdir="$save_libdir" |
| 15845 | for dep in $dependency_libs; do |
| 15846 | case "$dep" in |
| 15847 | -L*) |
| 15848 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 15849 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ |
| 15850 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ |
| 15851 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then |
| 15852 | haveit= |
| 15853 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 15854 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ |
| 15855 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then |
| 15856 | if test -n "$GCC"; then |
| 15857 | case $host_os in |
| 15858 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15859 | esac |
| 15860 | fi |
| 15861 | fi |
| 15862 | if test -z "$haveit"; then |
| 15863 | haveit= |
| 15864 | for x in $LDFLAGS $LIBICONV; do |
| 15865 | |
| 15866 | acl_save_prefix="$prefix" |
| 15867 | prefix="$acl_final_prefix" |
| 15868 | acl_save_exec_prefix="$exec_prefix" |
| 15869 | exec_prefix="$acl_final_exec_prefix" |
| 15870 | eval x=\"$x\" |
| 15871 | exec_prefix="$acl_save_exec_prefix" |
| 15872 | prefix="$acl_save_prefix" |
| 15873 | |
| 15874 | if test "X$x" = "X-L$dependency_libdir"; then |
| 15875 | haveit=yes |
| 15876 | break |
| 15877 | fi |
| 15878 | done |
| 15879 | if test -z "$haveit"; then |
| 15880 | if test -d "$dependency_libdir"; then |
| 15881 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" |
| 15882 | fi |
| 15883 | fi |
| 15884 | haveit= |
| 15885 | for x in $LDFLAGS $LTLIBICONV; do |
| 15886 | |
| 15887 | acl_save_prefix="$prefix" |
| 15888 | prefix="$acl_final_prefix" |
| 15889 | acl_save_exec_prefix="$exec_prefix" |
| 15890 | exec_prefix="$acl_final_exec_prefix" |
| 15891 | eval x=\"$x\" |
| 15892 | exec_prefix="$acl_save_exec_prefix" |
| 15893 | prefix="$acl_save_prefix" |
| 15894 | |
| 15895 | if test "X$x" = "X-L$dependency_libdir"; then |
| 15896 | haveit=yes |
| 15897 | break |
| 15898 | fi |
| 15899 | done |
| 15900 | if test -z "$haveit"; then |
| 15901 | if test -d "$dependency_libdir"; then |
| 15902 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" |
| 15903 | fi |
| 15904 | fi |
| 15905 | fi |
| 15906 | fi |
| 15907 | ;; |
| 15908 | -R*) |
| 15909 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 15910 | if test "$enable_rpath" != no; then |
| 15911 | haveit= |
| 15912 | for x in $rpathdirs; do |
| 15913 | if test "X$x" = "X$dir"; then |
| 15914 | haveit=yes |
| 15915 | break |
| 15916 | fi |
| 15917 | done |
| 15918 | if test -z "$haveit"; then |
| 15919 | rpathdirs="$rpathdirs $dir" |
| 15920 | fi |
| 15921 | haveit= |
| 15922 | for x in $ltrpathdirs; do |
| 15923 | if test "X$x" = "X$dir"; then |
| 15924 | haveit=yes |
| 15925 | break |
| 15926 | fi |
| 15927 | done |
| 15928 | if test -z "$haveit"; then |
| 15929 | ltrpathdirs="$ltrpathdirs $dir" |
| 15930 | fi |
| 15931 | fi |
| 15932 | ;; |
| 15933 | -l*) |
| 15934 | dep=`echo "X$dep" | sed -e 's/^X-l//'` |
| 15935 | if test "X$dep" != Xc \ |
| 15936 | || case $host_os in |
| 15937 | linux* | gnu* | k*bsd*-gnu) false ;; |
| 15938 | *) true ;; |
| 15939 | esac; then |
| 15940 | names_next_round="$names_next_round $dep" |
| 15941 | fi |
| 15942 | ;; |
| 15943 | *.la) |
| 15944 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 15945 | ;; |
| 15946 | *) |
| 15947 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 15948 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 15949 | ;; |
| 15950 | esac |
| 15951 | done |
| 15952 | fi |
| 15953 | else |
| 15954 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 15955 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 15956 | fi |
| 15957 | fi |
| 15958 | fi |
| 15959 | done |
| 15960 | done |
| 15961 | if test "X$rpathdirs" != "X"; then |
| 15962 | if test -n "$acl_hardcode_libdir_separator"; then |
| 15963 | alldirs= |
| 15964 | for found_dir in $rpathdirs; do |
| 15965 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 15966 | done |
| 15967 | acl_save_libdir="$libdir" |
| 15968 | libdir="$alldirs" |
| 15969 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15970 | libdir="$acl_save_libdir" |
| 15971 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 15972 | else |
| 15973 | for found_dir in $rpathdirs; do |
| 15974 | acl_save_libdir="$libdir" |
| 15975 | libdir="$found_dir" |
| 15976 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15977 | libdir="$acl_save_libdir" |
| 15978 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 15979 | done |
| 15980 | fi |
| 15981 | fi |
| 15982 | if test "X$ltrpathdirs" != "X"; then |
| 15983 | for found_dir in $ltrpathdirs; do |
| 15984 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 15985 | done |
| 15986 | fi |
| 15987 | |
| 15988 | |
| 15989 | |
| 15990 | |
| 15991 | |
| 15992 | |
| 15993 | |
| 15994 | |
| 15995 | |
| 15996 | |
| 15997 | |
| 15998 | |
| 15999 | |
| 16000 | |
| 16001 | |
| 16002 | |
| 16003 | |
| 16004 | |
| 16005 | |
| 16006 | |
| 16007 | |
| 16008 | |
| 16009 | |
| 16010 | |
| 16011 | |
| 16012 | |
| 16013 | |
| 16014 | |
| 16015 | |
| 16016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 16017 | printf %s "checking for CFPreferencesCopyAppValue... " >&6; } |
| 16018 | if test ${gt_cv_func_CFPreferencesCopyAppValue+y} |
| 16019 | then : |
| 16020 | printf %s "(cached) " >&6 |
| 16021 | else $as_nop |
| 16022 | gt_saved_LIBS="$LIBS" |
| 16023 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 16024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16025 | /* end confdefs.h. */ |
| 16026 | #include <CoreFoundation/CFPreferences.h> |
| 16027 | int |
| 16028 | main (void) |
| 16029 | { |
| 16030 | CFPreferencesCopyAppValue(NULL, NULL) |
| 16031 | ; |
| 16032 | return 0; |
| 16033 | } |
| 16034 | _ACEOF |
| 16035 | if ac_fn_c_try_link "$LINENO" |
| 16036 | then : |
| 16037 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 16038 | else $as_nop |
| 16039 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 16040 | fi |
| 16041 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16042 | conftest$ac_exeext conftest.$ac_ext |
| 16043 | LIBS="$gt_saved_LIBS" |
| 16044 | fi |
| 16045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 16046 | printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 16047 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 16048 | |
| 16049 | printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 16050 | |
| 16051 | fi |
| 16052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 |
| 16053 | printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } |
| 16054 | if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} |
| 16055 | then : |
| 16056 | printf %s "(cached) " >&6 |
| 16057 | else $as_nop |
| 16058 | gt_saved_LIBS="$LIBS" |
| 16059 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 16060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16061 | /* end confdefs.h. */ |
| 16062 | #include <CoreFoundation/CFLocale.h> |
| 16063 | int |
| 16064 | main (void) |
| 16065 | { |
| 16066 | CFLocaleCopyPreferredLanguages(); |
| 16067 | ; |
| 16068 | return 0; |
| 16069 | } |
| 16070 | _ACEOF |
| 16071 | if ac_fn_c_try_link "$LINENO" |
| 16072 | then : |
| 16073 | gt_cv_func_CFLocaleCopyPreferredLanguages=yes |
| 16074 | else $as_nop |
| 16075 | gt_cv_func_CFLocaleCopyPreferredLanguages=no |
| 16076 | fi |
| 16077 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16078 | conftest$ac_exeext conftest.$ac_ext |
| 16079 | LIBS="$gt_saved_LIBS" |
| 16080 | fi |
| 16081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 |
| 16082 | printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } |
| 16083 | if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
| 16084 | |
| 16085 | printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h |
| 16086 | |
| 16087 | fi |
| 16088 | INTL_MACOSX_LIBS= |
| 16089 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ |
| 16090 | || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
| 16091 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" |
| 16092 | fi |
| 16093 | |
| 16094 | |
| 16095 | |
| 16096 | |
| 16097 | |
| 16098 | |
| 16099 | LIBINTL= |
| 16100 | LTLIBINTL= |
| 16101 | POSUB= |
| 16102 | |
| 16103 | case " $gt_needs " in |
| 16104 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 16105 | *" need-ngettext "*) gt_api_version=2 ;; |
| 16106 | *) gt_api_version=1 ;; |
| 16107 | esac |
| 16108 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 16109 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 16110 | |
| 16111 | if test "$USE_NLS" = "yes"; then |
| 16112 | gt_use_preinstalled_gnugettext=no |
| 16113 | |
| 16114 | |
| 16115 | if test $gt_api_version -ge 3; then |
| 16116 | gt_revision_test_code=' |
| 16117 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 16118 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 16119 | #endif |
| 16120 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 16121 | ' |
| 16122 | else |
| 16123 | gt_revision_test_code= |
| 16124 | fi |
| 16125 | if test $gt_api_version -ge 2; then |
| 16126 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 16127 | else |
| 16128 | gt_expression_test_code= |
| 16129 | fi |
| 16130 | |
| 16131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
| 16132 | printf %s "checking for GNU gettext in libc... " >&6; } |
| 16133 | if eval test \${$gt_func_gnugettext_libc+y} |
| 16134 | then : |
| 16135 | printf %s "(cached) " >&6 |
| 16136 | else $as_nop |
| 16137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16138 | /* end confdefs.h. */ |
| 16139 | |
| 16140 | #include <libintl.h> |
| 16141 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 16142 | extern int _nl_msg_cat_cntr; |
| 16143 | extern int *_nl_domain_bindings; |
| 16144 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) |
| 16145 | #else |
| 16146 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 16147 | #endif |
| 16148 | $gt_revision_test_code |
| 16149 | |
| 16150 | int |
| 16151 | main (void) |
| 16152 | { |
| 16153 | |
| 16154 | bindtextdomain ("", ""); |
| 16155 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 16156 | |
| 16157 | ; |
| 16158 | return 0; |
| 16159 | } |
| 16160 | _ACEOF |
| 16161 | if ac_fn_c_try_link "$LINENO" |
| 16162 | then : |
| 16163 | eval "$gt_func_gnugettext_libc=yes" |
| 16164 | else $as_nop |
| 16165 | eval "$gt_func_gnugettext_libc=no" |
| 16166 | fi |
| 16167 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16168 | conftest$ac_exeext conftest.$ac_ext |
| 16169 | fi |
| 16170 | eval ac_res=\$$gt_func_gnugettext_libc |
| 16171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16172 | printf "%s\n" "$ac_res" >&6; } |
| 16173 | |
| 16174 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 16175 | |
| 16176 | |
| 16177 | |
| 16178 | |
| 16179 | |
| 16180 | am_save_CPPFLAGS="$CPPFLAGS" |
| 16181 | |
| 16182 | for element in $INCICONV; do |
| 16183 | haveit= |
| 16184 | for x in $CPPFLAGS; do |
| 16185 | |
| 16186 | acl_save_prefix="$prefix" |
| 16187 | prefix="$acl_final_prefix" |
| 16188 | acl_save_exec_prefix="$exec_prefix" |
| 16189 | exec_prefix="$acl_final_exec_prefix" |
| 16190 | eval x=\"$x\" |
| 16191 | exec_prefix="$acl_save_exec_prefix" |
| 16192 | prefix="$acl_save_prefix" |
| 16193 | |
| 16194 | if test "X$x" = "X$element"; then |
| 16195 | haveit=yes |
| 16196 | break |
| 16197 | fi |
| 16198 | done |
| 16199 | if test -z "$haveit"; then |
| 16200 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 16201 | fi |
| 16202 | done |
| 16203 | |
| 16204 | |
| 16205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 16206 | printf %s "checking for iconv... " >&6; } |
| 16207 | if test ${am_cv_func_iconv+y} |
| 16208 | then : |
| 16209 | printf %s "(cached) " >&6 |
| 16210 | else $as_nop |
| 16211 | |
| 16212 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 16213 | am_cv_lib_iconv=no |
| 16214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16215 | /* end confdefs.h. */ |
| 16216 | |
| 16217 | #include <stdlib.h> |
| 16218 | #include <iconv.h> |
| 16219 | |
| 16220 | int |
| 16221 | main (void) |
| 16222 | { |
| 16223 | iconv_t cd = iconv_open("",""); |
| 16224 | iconv(cd,NULL,NULL,NULL,NULL); |
| 16225 | iconv_close(cd); |
| 16226 | ; |
| 16227 | return 0; |
| 16228 | } |
| 16229 | _ACEOF |
| 16230 | if ac_fn_c_try_link "$LINENO" |
| 16231 | then : |
| 16232 | am_cv_func_iconv=yes |
| 16233 | fi |
| 16234 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16235 | conftest$ac_exeext conftest.$ac_ext |
| 16236 | if test "$am_cv_func_iconv" != yes; then |
| 16237 | am_save_LIBS="$LIBS" |
| 16238 | LIBS="$LIBS $LIBICONV" |
| 16239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16240 | /* end confdefs.h. */ |
| 16241 | |
| 16242 | #include <stdlib.h> |
| 16243 | #include <iconv.h> |
| 16244 | |
| 16245 | int |
| 16246 | main (void) |
| 16247 | { |
| 16248 | iconv_t cd = iconv_open("",""); |
| 16249 | iconv(cd,NULL,NULL,NULL,NULL); |
| 16250 | iconv_close(cd); |
| 16251 | ; |
| 16252 | return 0; |
| 16253 | } |
| 16254 | _ACEOF |
| 16255 | if ac_fn_c_try_link "$LINENO" |
| 16256 | then : |
| 16257 | am_cv_lib_iconv=yes |
| 16258 | am_cv_func_iconv=yes |
| 16259 | fi |
| 16260 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16261 | conftest$ac_exeext conftest.$ac_ext |
| 16262 | LIBS="$am_save_LIBS" |
| 16263 | fi |
| 16264 | |
| 16265 | fi |
| 16266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 16267 | printf "%s\n" "$am_cv_func_iconv" >&6; } |
| 16268 | if test "$am_cv_func_iconv" = yes; then |
| 16269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 16270 | printf %s "checking for working iconv... " >&6; } |
| 16271 | if test ${am_cv_func_iconv_works+y} |
| 16272 | then : |
| 16273 | printf %s "(cached) " >&6 |
| 16274 | else $as_nop |
| 16275 | |
| 16276 | am_save_LIBS="$LIBS" |
| 16277 | if test $am_cv_lib_iconv = yes; then |
| 16278 | LIBS="$LIBS $LIBICONV" |
| 16279 | fi |
| 16280 | am_cv_func_iconv_works=no |
| 16281 | for ac_iconv_const in '' 'const'; do |
| 16282 | if test "$cross_compiling" = yes |
| 16283 | then : |
| 16284 | case "$host_os" in |
| 16285 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 16286 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 16287 | esac |
| 16288 | else $as_nop |
| 16289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16290 | /* end confdefs.h. */ |
| 16291 | |
| 16292 | #include <iconv.h> |
| 16293 | #include <string.h> |
| 16294 | |
| 16295 | #ifndef ICONV_CONST |
| 16296 | # define ICONV_CONST $ac_iconv_const |
| 16297 | #endif |
| 16298 | |
| 16299 | int |
| 16300 | main (void) |
| 16301 | { |
| 16302 | int result = 0; |
| 16303 | /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from |
| 16304 | successful returns. This is even documented in |
| 16305 | <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ |
| 16306 | { |
| 16307 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 16308 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 16309 | { |
| 16310 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ |
| 16311 | char buf[10]; |
| 16312 | ICONV_CONST char *inptr = input; |
| 16313 | size_t inbytesleft = strlen (input); |
| 16314 | char *outptr = buf; |
| 16315 | size_t outbytesleft = sizeof (buf); |
| 16316 | size_t res = iconv (cd_utf8_to_88591, |
| 16317 | &inptr, &inbytesleft, |
| 16318 | &outptr, &outbytesleft); |
| 16319 | if (res == 0) |
| 16320 | result |= 1; |
| 16321 | iconv_close (cd_utf8_to_88591); |
| 16322 | } |
| 16323 | } |
| 16324 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 16325 | successful returns. */ |
| 16326 | { |
| 16327 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 16328 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 16329 | { |
| 16330 | static ICONV_CONST char input[] = "\263"; |
| 16331 | char buf[10]; |
| 16332 | ICONV_CONST char *inptr = input; |
| 16333 | size_t inbytesleft = strlen (input); |
| 16334 | char *outptr = buf; |
| 16335 | size_t outbytesleft = sizeof (buf); |
| 16336 | size_t res = iconv (cd_ascii_to_88591, |
| 16337 | &inptr, &inbytesleft, |
| 16338 | &outptr, &outbytesleft); |
| 16339 | if (res == 0) |
| 16340 | result |= 2; |
| 16341 | iconv_close (cd_ascii_to_88591); |
| 16342 | } |
| 16343 | } |
| 16344 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 16345 | { |
| 16346 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 16347 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16348 | { |
| 16349 | static ICONV_CONST char input[] = "\304"; |
| 16350 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 16351 | ICONV_CONST char *inptr = input; |
| 16352 | size_t inbytesleft = 1; |
| 16353 | char *outptr = buf; |
| 16354 | size_t outbytesleft = 1; |
| 16355 | size_t res = iconv (cd_88591_to_utf8, |
| 16356 | &inptr, &inbytesleft, |
| 16357 | &outptr, &outbytesleft); |
| 16358 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 16359 | result |= 4; |
| 16360 | iconv_close (cd_88591_to_utf8); |
| 16361 | } |
| 16362 | } |
| 16363 | #if 0 /* This bug could be worked around by the caller. */ |
| 16364 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 16365 | { |
| 16366 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 16367 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16368 | { |
| 16369 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 16370 | char buf[50]; |
| 16371 | ICONV_CONST char *inptr = input; |
| 16372 | size_t inbytesleft = strlen (input); |
| 16373 | char *outptr = buf; |
| 16374 | size_t outbytesleft = sizeof (buf); |
| 16375 | size_t res = iconv (cd_88591_to_utf8, |
| 16376 | &inptr, &inbytesleft, |
| 16377 | &outptr, &outbytesleft); |
| 16378 | if ((int)res > 0) |
| 16379 | result |= 8; |
| 16380 | iconv_close (cd_88591_to_utf8); |
| 16381 | } |
| 16382 | } |
| 16383 | #endif |
| 16384 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 16385 | provided. */ |
| 16386 | { |
| 16387 | /* Try standardized names. */ |
| 16388 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); |
| 16389 | /* Try IRIX, OSF/1 names. */ |
| 16390 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); |
| 16391 | /* Try AIX names. */ |
| 16392 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); |
| 16393 | /* Try HP-UX names. */ |
| 16394 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); |
| 16395 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) |
| 16396 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) |
| 16397 | result |= 16; |
| 16398 | if (cd1 != (iconv_t)(-1)) |
| 16399 | iconv_close (cd1); |
| 16400 | if (cd2 != (iconv_t)(-1)) |
| 16401 | iconv_close (cd2); |
| 16402 | if (cd3 != (iconv_t)(-1)) |
| 16403 | iconv_close (cd3); |
| 16404 | if (cd4 != (iconv_t)(-1)) |
| 16405 | iconv_close (cd4); |
| 16406 | } |
| 16407 | return result; |
| 16408 | |
| 16409 | ; |
| 16410 | return 0; |
| 16411 | } |
| 16412 | _ACEOF |
| 16413 | if ac_fn_c_try_run "$LINENO" |
| 16414 | then : |
| 16415 | am_cv_func_iconv_works=yes |
| 16416 | fi |
| 16417 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16418 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16419 | fi |
| 16420 | |
| 16421 | test "$am_cv_func_iconv_works" = no || break |
| 16422 | done |
| 16423 | LIBS="$am_save_LIBS" |
| 16424 | |
| 16425 | fi |
| 16426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 16427 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } |
| 16428 | case "$am_cv_func_iconv_works" in |
| 16429 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 16430 | *) am_func_iconv=yes ;; |
| 16431 | esac |
| 16432 | else |
| 16433 | am_func_iconv=no am_cv_lib_iconv=no |
| 16434 | fi |
| 16435 | if test "$am_func_iconv" = yes; then |
| 16436 | |
| 16437 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 16438 | |
| 16439 | fi |
| 16440 | if test "$am_cv_lib_iconv" = yes; then |
| 16441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 16442 | printf %s "checking how to link with libiconv... " >&6; } |
| 16443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 16444 | printf "%s\n" "$LIBICONV" >&6; } |
| 16445 | else |
| 16446 | CPPFLAGS="$am_save_CPPFLAGS" |
| 16447 | LIBICONV= |
| 16448 | LTLIBICONV= |
| 16449 | fi |
| 16450 | |
| 16451 | |
| 16452 | |
| 16453 | |
| 16454 | |
| 16455 | |
| 16456 | |
| 16457 | |
| 16458 | |
| 16459 | |
| 16460 | use_additional=yes |
| 16461 | |
| 16462 | acl_save_prefix="$prefix" |
| 16463 | prefix="$acl_final_prefix" |
| 16464 | acl_save_exec_prefix="$exec_prefix" |
| 16465 | exec_prefix="$acl_final_exec_prefix" |
| 16466 | |
| 16467 | eval additional_includedir=\"$includedir\" |
| 16468 | eval additional_libdir=\"$libdir\" |
| 16469 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 16470 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 16471 | |
| 16472 | exec_prefix="$acl_save_exec_prefix" |
| 16473 | prefix="$acl_save_prefix" |
| 16474 | |
| 16475 | |
| 16476 | # Check whether --with-libintl-prefix was given. |
| 16477 | if test ${with_libintl_prefix+y} |
| 16478 | then : |
| 16479 | withval=$with_libintl_prefix; |
| 16480 | if test "X$withval" = "Xno"; then |
| 16481 | use_additional=no |
| 16482 | else |
| 16483 | if test "X$withval" = "X"; then |
| 16484 | |
| 16485 | acl_save_prefix="$prefix" |
| 16486 | prefix="$acl_final_prefix" |
| 16487 | acl_save_exec_prefix="$exec_prefix" |
| 16488 | exec_prefix="$acl_final_exec_prefix" |
| 16489 | |
| 16490 | eval additional_includedir=\"$includedir\" |
| 16491 | eval additional_libdir=\"$libdir\" |
| 16492 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 16493 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 16494 | |
| 16495 | exec_prefix="$acl_save_exec_prefix" |
| 16496 | prefix="$acl_save_prefix" |
| 16497 | |
| 16498 | else |
| 16499 | additional_includedir="$withval/include" |
| 16500 | additional_libdir="$withval/$acl_libdirstem" |
| 16501 | additional_libdir2="$withval/$acl_libdirstem2" |
| 16502 | additional_libdir3="$withval/$acl_libdirstem3" |
| 16503 | fi |
| 16504 | fi |
| 16505 | |
| 16506 | fi |
| 16507 | |
| 16508 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
| 16509 | additional_libdir2= |
| 16510 | fi |
| 16511 | if test "X$additional_libdir3" = "X$additional_libdir"; then |
| 16512 | additional_libdir3= |
| 16513 | fi |
| 16514 | LIBINTL= |
| 16515 | LTLIBINTL= |
| 16516 | INCINTL= |
| 16517 | LIBINTL_PREFIX= |
| 16518 | HAVE_LIBINTL= |
| 16519 | rpathdirs= |
| 16520 | ltrpathdirs= |
| 16521 | names_already_handled= |
| 16522 | names_next_round='intl ' |
| 16523 | while test -n "$names_next_round"; do |
| 16524 | names_this_round="$names_next_round" |
| 16525 | names_next_round= |
| 16526 | for name in $names_this_round; do |
| 16527 | already_handled= |
| 16528 | for n in $names_already_handled; do |
| 16529 | if test "$n" = "$name"; then |
| 16530 | already_handled=yes |
| 16531 | break |
| 16532 | fi |
| 16533 | done |
| 16534 | if test -z "$already_handled"; then |
| 16535 | names_already_handled="$names_already_handled $name" |
| 16536 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 16537 | eval value=\"\$HAVE_LIB$uppername\" |
| 16538 | if test -n "$value"; then |
| 16539 | if test "$value" = yes; then |
| 16540 | eval value=\"\$LIB$uppername\" |
| 16541 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 16542 | eval value=\"\$LTLIB$uppername\" |
| 16543 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 16544 | else |
| 16545 | : |
| 16546 | fi |
| 16547 | else |
| 16548 | found_dir= |
| 16549 | found_la= |
| 16550 | found_so= |
| 16551 | found_a= |
| 16552 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 16553 | if test -n "$acl_shlibext"; then |
| 16554 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 16555 | else |
| 16556 | shrext= |
| 16557 | fi |
| 16558 | if test $use_additional = yes; then |
| 16559 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
| 16560 | if test "X$found_dir" = "X"; then |
| 16561 | eval dir=\$$additional_libdir_variable |
| 16562 | if test -n "$dir"; then |
| 16563 | if test -n "$acl_shlibext"; then |
| 16564 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 16565 | found_dir="$dir" |
| 16566 | found_so="$dir/$libname$shrext" |
| 16567 | else |
| 16568 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 16569 | ver=`(cd "$dir" && \ |
| 16570 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 16571 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 16572 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 16573 | | sed 1q ) 2>/dev/null` |
| 16574 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 16575 | found_dir="$dir" |
| 16576 | found_so="$dir/$libname$shrext.$ver" |
| 16577 | fi |
| 16578 | else |
| 16579 | eval library_names=\"$acl_library_names_spec\" |
| 16580 | for f in $library_names; do |
| 16581 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 16582 | found_dir="$dir" |
| 16583 | found_so="$dir/$f" |
| 16584 | break |
| 16585 | fi |
| 16586 | done |
| 16587 | fi |
| 16588 | fi |
| 16589 | fi |
| 16590 | if test "X$found_dir" = "X"; then |
| 16591 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 16592 | found_dir="$dir" |
| 16593 | found_a="$dir/$libname.$acl_libext" |
| 16594 | fi |
| 16595 | fi |
| 16596 | if test "X$found_dir" != "X"; then |
| 16597 | if test -f "$dir/$libname.la"; then |
| 16598 | found_la="$dir/$libname.la" |
| 16599 | fi |
| 16600 | fi |
| 16601 | fi |
| 16602 | fi |
| 16603 | done |
| 16604 | fi |
| 16605 | if test "X$found_dir" = "X"; then |
| 16606 | for x in $LDFLAGS $LTLIBINTL; do |
| 16607 | |
| 16608 | acl_save_prefix="$prefix" |
| 16609 | prefix="$acl_final_prefix" |
| 16610 | acl_save_exec_prefix="$exec_prefix" |
| 16611 | exec_prefix="$acl_final_exec_prefix" |
| 16612 | eval x=\"$x\" |
| 16613 | exec_prefix="$acl_save_exec_prefix" |
| 16614 | prefix="$acl_save_prefix" |
| 16615 | |
| 16616 | case "$x" in |
| 16617 | -L*) |
| 16618 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 16619 | if test -n "$acl_shlibext"; then |
| 16620 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 16621 | found_dir="$dir" |
| 16622 | found_so="$dir/$libname$shrext" |
| 16623 | else |
| 16624 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 16625 | ver=`(cd "$dir" && \ |
| 16626 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 16627 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 16628 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 16629 | | sed 1q ) 2>/dev/null` |
| 16630 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 16631 | found_dir="$dir" |
| 16632 | found_so="$dir/$libname$shrext.$ver" |
| 16633 | fi |
| 16634 | else |
| 16635 | eval library_names=\"$acl_library_names_spec\" |
| 16636 | for f in $library_names; do |
| 16637 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 16638 | found_dir="$dir" |
| 16639 | found_so="$dir/$f" |
| 16640 | break |
| 16641 | fi |
| 16642 | done |
| 16643 | fi |
| 16644 | fi |
| 16645 | fi |
| 16646 | if test "X$found_dir" = "X"; then |
| 16647 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 16648 | found_dir="$dir" |
| 16649 | found_a="$dir/$libname.$acl_libext" |
| 16650 | fi |
| 16651 | fi |
| 16652 | if test "X$found_dir" != "X"; then |
| 16653 | if test -f "$dir/$libname.la"; then |
| 16654 | found_la="$dir/$libname.la" |
| 16655 | fi |
| 16656 | fi |
| 16657 | ;; |
| 16658 | esac |
| 16659 | if test "X$found_dir" != "X"; then |
| 16660 | break |
| 16661 | fi |
| 16662 | done |
| 16663 | fi |
| 16664 | if test "X$found_dir" != "X"; then |
| 16665 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 16666 | if test "X$found_so" != "X"; then |
| 16667 | if test "$enable_rpath" = no \ |
| 16668 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 16669 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
| 16670 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then |
| 16671 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16672 | else |
| 16673 | haveit= |
| 16674 | for x in $ltrpathdirs; do |
| 16675 | if test "X$x" = "X$found_dir"; then |
| 16676 | haveit=yes |
| 16677 | break |
| 16678 | fi |
| 16679 | done |
| 16680 | if test -z "$haveit"; then |
| 16681 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 16682 | fi |
| 16683 | if test "$acl_hardcode_direct" = yes; then |
| 16684 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16685 | else |
| 16686 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 16687 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16688 | haveit= |
| 16689 | for x in $rpathdirs; do |
| 16690 | if test "X$x" = "X$found_dir"; then |
| 16691 | haveit=yes |
| 16692 | break |
| 16693 | fi |
| 16694 | done |
| 16695 | if test -z "$haveit"; then |
| 16696 | rpathdirs="$rpathdirs $found_dir" |
| 16697 | fi |
| 16698 | else |
| 16699 | haveit= |
| 16700 | for x in $LDFLAGS $LIBINTL; do |
| 16701 | |
| 16702 | acl_save_prefix="$prefix" |
| 16703 | prefix="$acl_final_prefix" |
| 16704 | acl_save_exec_prefix="$exec_prefix" |
| 16705 | exec_prefix="$acl_final_exec_prefix" |
| 16706 | eval x=\"$x\" |
| 16707 | exec_prefix="$acl_save_exec_prefix" |
| 16708 | prefix="$acl_save_prefix" |
| 16709 | |
| 16710 | if test "X$x" = "X-L$found_dir"; then |
| 16711 | haveit=yes |
| 16712 | break |
| 16713 | fi |
| 16714 | done |
| 16715 | if test -z "$haveit"; then |
| 16716 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 16717 | fi |
| 16718 | if test "$acl_hardcode_minus_L" != no; then |
| 16719 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 16720 | else |
| 16721 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 16722 | fi |
| 16723 | fi |
| 16724 | fi |
| 16725 | fi |
| 16726 | else |
| 16727 | if test "X$found_a" != "X"; then |
| 16728 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 16729 | else |
| 16730 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 16731 | fi |
| 16732 | fi |
| 16733 | additional_includedir= |
| 16734 | case "$found_dir" in |
| 16735 | */$acl_libdirstem | */$acl_libdirstem/) |
| 16736 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 16737 | if test "$name" = 'intl'; then |
| 16738 | LIBINTL_PREFIX="$basedir" |
| 16739 | fi |
| 16740 | additional_includedir="$basedir/include" |
| 16741 | ;; |
| 16742 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 16743 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 16744 | if test "$name" = 'intl'; then |
| 16745 | LIBINTL_PREFIX="$basedir" |
| 16746 | fi |
| 16747 | additional_includedir="$basedir/include" |
| 16748 | ;; |
| 16749 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
| 16750 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` |
| 16751 | if test "$name" = 'intl'; then |
| 16752 | LIBINTL_PREFIX="$basedir" |
| 16753 | fi |
| 16754 | additional_includedir="$basedir/include" |
| 16755 | ;; |
| 16756 | esac |
| 16757 | if test "X$additional_includedir" != "X"; then |
| 16758 | if test "X$additional_includedir" != "X/usr/include"; then |
| 16759 | haveit= |
| 16760 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 16761 | if test -n "$GCC"; then |
| 16762 | case $host_os in |
| 16763 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 16764 | esac |
| 16765 | fi |
| 16766 | fi |
| 16767 | if test -z "$haveit"; then |
| 16768 | for x in $CPPFLAGS $INCINTL; do |
| 16769 | |
| 16770 | acl_save_prefix="$prefix" |
| 16771 | prefix="$acl_final_prefix" |
| 16772 | acl_save_exec_prefix="$exec_prefix" |
| 16773 | exec_prefix="$acl_final_exec_prefix" |
| 16774 | eval x=\"$x\" |
| 16775 | exec_prefix="$acl_save_exec_prefix" |
| 16776 | prefix="$acl_save_prefix" |
| 16777 | |
| 16778 | if test "X$x" = "X-I$additional_includedir"; then |
| 16779 | haveit=yes |
| 16780 | break |
| 16781 | fi |
| 16782 | done |
| 16783 | if test -z "$haveit"; then |
| 16784 | if test -d "$additional_includedir"; then |
| 16785 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 16786 | fi |
| 16787 | fi |
| 16788 | fi |
| 16789 | fi |
| 16790 | fi |
| 16791 | if test -n "$found_la"; then |
| 16792 | save_libdir="$libdir" |
| 16793 | case "$found_la" in |
| 16794 | */* | *\\*) . "$found_la" ;; |
| 16795 | *) . "./$found_la" ;; |
| 16796 | esac |
| 16797 | libdir="$save_libdir" |
| 16798 | for dep in $dependency_libs; do |
| 16799 | case "$dep" in |
| 16800 | -L*) |
| 16801 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 16802 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ |
| 16803 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ |
| 16804 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then |
| 16805 | haveit= |
| 16806 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 16807 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ |
| 16808 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then |
| 16809 | if test -n "$GCC"; then |
| 16810 | case $host_os in |
| 16811 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 16812 | esac |
| 16813 | fi |
| 16814 | fi |
| 16815 | if test -z "$haveit"; then |
| 16816 | haveit= |
| 16817 | for x in $LDFLAGS $LIBINTL; do |
| 16818 | |
| 16819 | acl_save_prefix="$prefix" |
| 16820 | prefix="$acl_final_prefix" |
| 16821 | acl_save_exec_prefix="$exec_prefix" |
| 16822 | exec_prefix="$acl_final_exec_prefix" |
| 16823 | eval x=\"$x\" |
| 16824 | exec_prefix="$acl_save_exec_prefix" |
| 16825 | prefix="$acl_save_prefix" |
| 16826 | |
| 16827 | if test "X$x" = "X-L$dependency_libdir"; then |
| 16828 | haveit=yes |
| 16829 | break |
| 16830 | fi |
| 16831 | done |
| 16832 | if test -z "$haveit"; then |
| 16833 | if test -d "$dependency_libdir"; then |
| 16834 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" |
| 16835 | fi |
| 16836 | fi |
| 16837 | haveit= |
| 16838 | for x in $LDFLAGS $LTLIBINTL; do |
| 16839 | |
| 16840 | acl_save_prefix="$prefix" |
| 16841 | prefix="$acl_final_prefix" |
| 16842 | acl_save_exec_prefix="$exec_prefix" |
| 16843 | exec_prefix="$acl_final_exec_prefix" |
| 16844 | eval x=\"$x\" |
| 16845 | exec_prefix="$acl_save_exec_prefix" |
| 16846 | prefix="$acl_save_prefix" |
| 16847 | |
| 16848 | if test "X$x" = "X-L$dependency_libdir"; then |
| 16849 | haveit=yes |
| 16850 | break |
| 16851 | fi |
| 16852 | done |
| 16853 | if test -z "$haveit"; then |
| 16854 | if test -d "$dependency_libdir"; then |
| 16855 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" |
| 16856 | fi |
| 16857 | fi |
| 16858 | fi |
| 16859 | fi |
| 16860 | ;; |
| 16861 | -R*) |
| 16862 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 16863 | if test "$enable_rpath" != no; then |
| 16864 | haveit= |
| 16865 | for x in $rpathdirs; do |
| 16866 | if test "X$x" = "X$dir"; then |
| 16867 | haveit=yes |
| 16868 | break |
| 16869 | fi |
| 16870 | done |
| 16871 | if test -z "$haveit"; then |
| 16872 | rpathdirs="$rpathdirs $dir" |
| 16873 | fi |
| 16874 | haveit= |
| 16875 | for x in $ltrpathdirs; do |
| 16876 | if test "X$x" = "X$dir"; then |
| 16877 | haveit=yes |
| 16878 | break |
| 16879 | fi |
| 16880 | done |
| 16881 | if test -z "$haveit"; then |
| 16882 | ltrpathdirs="$ltrpathdirs $dir" |
| 16883 | fi |
| 16884 | fi |
| 16885 | ;; |
| 16886 | -l*) |
| 16887 | dep=`echo "X$dep" | sed -e 's/^X-l//'` |
| 16888 | if test "X$dep" != Xc \ |
| 16889 | || case $host_os in |
| 16890 | linux* | gnu* | k*bsd*-gnu) false ;; |
| 16891 | *) true ;; |
| 16892 | esac; then |
| 16893 | names_next_round="$names_next_round $dep" |
| 16894 | fi |
| 16895 | ;; |
| 16896 | *.la) |
| 16897 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 16898 | ;; |
| 16899 | *) |
| 16900 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 16901 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 16902 | ;; |
| 16903 | esac |
| 16904 | done |
| 16905 | fi |
| 16906 | else |
| 16907 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 16908 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 16909 | fi |
| 16910 | fi |
| 16911 | fi |
| 16912 | done |
| 16913 | done |
| 16914 | if test "X$rpathdirs" != "X"; then |
| 16915 | if test -n "$acl_hardcode_libdir_separator"; then |
| 16916 | alldirs= |
| 16917 | for found_dir in $rpathdirs; do |
| 16918 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 16919 | done |
| 16920 | acl_save_libdir="$libdir" |
| 16921 | libdir="$alldirs" |
| 16922 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 16923 | libdir="$acl_save_libdir" |
| 16924 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 16925 | else |
| 16926 | for found_dir in $rpathdirs; do |
| 16927 | acl_save_libdir="$libdir" |
| 16928 | libdir="$found_dir" |
| 16929 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 16930 | libdir="$acl_save_libdir" |
| 16931 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 16932 | done |
| 16933 | fi |
| 16934 | fi |
| 16935 | if test "X$ltrpathdirs" != "X"; then |
| 16936 | for found_dir in $ltrpathdirs; do |
| 16937 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 16938 | done |
| 16939 | fi |
| 16940 | |
| 16941 | |
| 16942 | |
| 16943 | |
| 16944 | |
| 16945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
| 16946 | printf %s "checking for GNU gettext in libintl... " >&6; } |
| 16947 | if eval test \${$gt_func_gnugettext_libintl+y} |
| 16948 | then : |
| 16949 | printf %s "(cached) " >&6 |
| 16950 | else $as_nop |
| 16951 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 16952 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 16953 | gt_save_LIBS="$LIBS" |
| 16954 | LIBS="$LIBS $LIBINTL" |
| 16955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16956 | /* end confdefs.h. */ |
| 16957 | |
| 16958 | #include <libintl.h> |
| 16959 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 16960 | extern int _nl_msg_cat_cntr; |
| 16961 | extern |
| 16962 | #ifdef __cplusplus |
| 16963 | "C" |
| 16964 | #endif |
| 16965 | const char *_nl_expand_alias (const char *); |
| 16966 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| 16967 | #else |
| 16968 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 16969 | #endif |
| 16970 | $gt_revision_test_code |
| 16971 | |
| 16972 | int |
| 16973 | main (void) |
| 16974 | { |
| 16975 | |
| 16976 | bindtextdomain ("", ""); |
| 16977 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 16978 | |
| 16979 | ; |
| 16980 | return 0; |
| 16981 | } |
| 16982 | _ACEOF |
| 16983 | if ac_fn_c_try_link "$LINENO" |
| 16984 | then : |
| 16985 | eval "$gt_func_gnugettext_libintl=yes" |
| 16986 | else $as_nop |
| 16987 | eval "$gt_func_gnugettext_libintl=no" |
| 16988 | fi |
| 16989 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16990 | conftest$ac_exeext conftest.$ac_ext |
| 16991 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
| 16992 | LIBS="$LIBS $LIBICONV" |
| 16993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16994 | /* end confdefs.h. */ |
| 16995 | |
| 16996 | #include <libintl.h> |
| 16997 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 16998 | extern int _nl_msg_cat_cntr; |
| 16999 | extern |
| 17000 | #ifdef __cplusplus |
| 17001 | "C" |
| 17002 | #endif |
| 17003 | const char *_nl_expand_alias (const char *); |
| 17004 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| 17005 | #else |
| 17006 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 17007 | #endif |
| 17008 | $gt_revision_test_code |
| 17009 | |
| 17010 | int |
| 17011 | main (void) |
| 17012 | { |
| 17013 | |
| 17014 | bindtextdomain ("", ""); |
| 17015 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 17016 | |
| 17017 | ; |
| 17018 | return 0; |
| 17019 | } |
| 17020 | _ACEOF |
| 17021 | if ac_fn_c_try_link "$LINENO" |
| 17022 | then : |
| 17023 | LIBINTL="$LIBINTL $LIBICONV" |
| 17024 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 17025 | eval "$gt_func_gnugettext_libintl=yes" |
| 17026 | |
| 17027 | fi |
| 17028 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17029 | conftest$ac_exeext conftest.$ac_ext |
| 17030 | fi |
| 17031 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 17032 | LIBS="$gt_save_LIBS" |
| 17033 | fi |
| 17034 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 17035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17036 | printf "%s\n" "$ac_res" >&6; } |
| 17037 | fi |
| 17038 | |
| 17039 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 17040 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
| 17041 | && test "$PACKAGE" != gettext-runtime \ |
| 17042 | && test "$PACKAGE" != gettext-tools; }; then |
| 17043 | gt_use_preinstalled_gnugettext=yes |
| 17044 | else |
| 17045 | LIBINTL= |
| 17046 | LTLIBINTL= |
| 17047 | INCINTL= |
| 17048 | fi |
| 17049 | |
| 17050 | |
| 17051 | |
| 17052 | if test -n "$INTL_MACOSX_LIBS"; then |
| 17053 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 17054 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 17055 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 17056 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 17057 | fi |
| 17058 | fi |
| 17059 | |
| 17060 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 17061 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 17062 | |
| 17063 | printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
| 17064 | |
| 17065 | else |
| 17066 | USE_NLS=no |
| 17067 | fi |
| 17068 | fi |
| 17069 | |
| 17070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
| 17071 | printf %s "checking whether to use NLS... " >&6; } |
| 17072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 17073 | printf "%s\n" "$USE_NLS" >&6; } |
| 17074 | if test "$USE_NLS" = "yes"; then |
| 17075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
| 17076 | printf %s "checking where the gettext function comes from... " >&6; } |
| 17077 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 17078 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 17079 | gt_source="external libintl" |
| 17080 | else |
| 17081 | gt_source="libc" |
| 17082 | fi |
| 17083 | else |
| 17084 | gt_source="included intl directory" |
| 17085 | fi |
| 17086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
| 17087 | printf "%s\n" "$gt_source" >&6; } |
| 17088 | fi |
| 17089 | |
| 17090 | if test "$USE_NLS" = "yes"; then |
| 17091 | |
| 17092 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 17093 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 17094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
| 17095 | printf %s "checking how to link with libintl... " >&6; } |
| 17096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
| 17097 | printf "%s\n" "$LIBINTL" >&6; } |
| 17098 | |
| 17099 | for element in $INCINTL; do |
| 17100 | haveit= |
| 17101 | for x in $CPPFLAGS; do |
| 17102 | |
| 17103 | acl_save_prefix="$prefix" |
| 17104 | prefix="$acl_final_prefix" |
| 17105 | acl_save_exec_prefix="$exec_prefix" |
| 17106 | exec_prefix="$acl_final_exec_prefix" |
| 17107 | eval x=\"$x\" |
| 17108 | exec_prefix="$acl_save_exec_prefix" |
| 17109 | prefix="$acl_save_prefix" |
| 17110 | |
| 17111 | if test "X$x" = "X$element"; then |
| 17112 | haveit=yes |
| 17113 | break |
| 17114 | fi |
| 17115 | done |
| 17116 | if test -z "$haveit"; then |
| 17117 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 17118 | fi |
| 17119 | done |
| 17120 | |
| 17121 | fi |
| 17122 | |
| 17123 | |
| 17124 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
| 17125 | |
| 17126 | |
| 17127 | printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
| 17128 | |
| 17129 | fi |
| 17130 | |
| 17131 | POSUB=po |
| 17132 | fi |
| 17133 | |
| 17134 | |
| 17135 | |
| 17136 | INTLLIBS="$LIBINTL" |
| 17137 | |
| 17138 | |
| 17139 | |
| 17140 | |
| 17141 | |
| 17142 | |
| 17143 | |
| 17144 | # Checks for header files. |
| 17145 | ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 17146 | if test "x$ac_cv_header_locale_h" = xyes |
| 17147 | then : |
| 17148 | printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h |
| 17149 | |
| 17150 | fi |
| 17151 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 17152 | if test "x$ac_cv_header_stdint_h" = xyes |
| 17153 | then : |
| 17154 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 17155 | |
| 17156 | fi |
| 17157 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 17158 | if test "x$ac_cv_header_sys_select_h" = xyes |
| 17159 | then : |
| 17160 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 17161 | |
| 17162 | fi |
| 17163 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 17164 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 17165 | then : |
| 17166 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 17167 | |
| 17168 | fi |
| 17169 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" |
| 17170 | if test "x$ac_cv_header_signal_h" = xyes |
| 17171 | then : |
| 17172 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h |
| 17173 | |
| 17174 | fi |
| 17175 | ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 17176 | if test "x$ac_cv_header_poll_h" = xyes |
| 17177 | then : |
| 17178 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 17179 | |
| 17180 | fi |
| 17181 | ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 17182 | if test "x$ac_cv_header_pwd_h" = xyes |
| 17183 | then : |
| 17184 | printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 17185 | |
| 17186 | fi |
| 17187 | |
| 17188 | |
| 17189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 17190 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 17191 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 17192 | then : |
| 17193 | printf %s "(cached) " >&6 |
| 17194 | else $as_nop |
| 17195 | ac_save_CFLAGS=$CFLAGS |
| 17196 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 17197 | for ac_arg in '' -fno-builtin; do |
| 17198 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 17199 | # This test program should *not* compile successfully. |
| 17200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17201 | /* end confdefs.h. */ |
| 17202 | |
| 17203 | int |
| 17204 | main (void) |
| 17205 | { |
| 17206 | (void) strchr; |
| 17207 | ; |
| 17208 | return 0; |
| 17209 | } |
| 17210 | _ACEOF |
| 17211 | if ac_fn_c_try_compile "$LINENO" |
| 17212 | then : |
| 17213 | |
| 17214 | else $as_nop |
| 17215 | # This test program should compile successfully. |
| 17216 | # No library function is consistently available on |
| 17217 | # freestanding implementations, so test against a dummy |
| 17218 | # declaration. Include always-available headers on the |
| 17219 | # off chance that they somehow elicit warnings. |
| 17220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17221 | /* end confdefs.h. */ |
| 17222 | #include <float.h> |
| 17223 | #include <limits.h> |
| 17224 | #include <stdarg.h> |
| 17225 | #include <stddef.h> |
| 17226 | extern void ac_decl (int, char *); |
| 17227 | |
| 17228 | int |
| 17229 | main (void) |
| 17230 | { |
| 17231 | (void) ac_decl (0, (char *) 0); |
| 17232 | (void) ac_decl; |
| 17233 | |
| 17234 | ; |
| 17235 | return 0; |
| 17236 | } |
| 17237 | _ACEOF |
| 17238 | if ac_fn_c_try_compile "$LINENO" |
| 17239 | then : |
| 17240 | if test x"$ac_arg" = x |
| 17241 | then : |
| 17242 | ac_cv_c_undeclared_builtin_options='none needed' |
| 17243 | else $as_nop |
| 17244 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| 17245 | fi |
| 17246 | break |
| 17247 | fi |
| 17248 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17249 | fi |
| 17250 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17251 | done |
| 17252 | CFLAGS=$ac_save_CFLAGS |
| 17253 | |
| 17254 | fi |
| 17255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 17256 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 17257 | case $ac_cv_c_undeclared_builtin_options in #( |
| 17258 | 'cannot detect') : |
| 17259 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17260 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17261 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 17262 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 17263 | 'none needed') : |
| 17264 | ac_c_undeclared_builtin_options='' ;; #( |
| 17265 | *) : |
| 17266 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 17267 | esac |
| 17268 | |
| 17269 | ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17270 | if test "x$ac_cv_have_decl_strerror_r" = xyes |
| 17271 | then : |
| 17272 | ac_have_decl=1 |
| 17273 | else $as_nop |
| 17274 | ac_have_decl=0 |
| 17275 | fi |
| 17276 | printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h |
| 17277 | |
| 17278 | |
| 17279 | if test $ac_cv_have_decl_strerror_r = yes; then |
| 17280 | # For backward compatibility's sake, define HAVE_STRERROR_R. |
| 17281 | # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well |
| 17282 | # as AC_CHECK_DECLS_ONCE.) |
| 17283 | |
| 17284 | printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h |
| 17285 | |
| 17286 | fi |
| 17287 | |
| 17288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 17289 | printf %s "checking whether strerror_r returns char *... " >&6; } |
| 17290 | if test ${ac_cv_func_strerror_r_char_p+y} |
| 17291 | then : |
| 17292 | printf %s "(cached) " >&6 |
| 17293 | else $as_nop |
| 17294 | |
| 17295 | ac_cv_func_strerror_r_char_p=no |
| 17296 | if test $ac_cv_have_decl_strerror_r = yes; then |
| 17297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17298 | /* end confdefs.h. */ |
| 17299 | #include <string.h> |
| 17300 | int |
| 17301 | main (void) |
| 17302 | { |
| 17303 | |
| 17304 | char buf[100]; |
| 17305 | char x = *strerror_r (0, buf, sizeof buf); |
| 17306 | char *p = strerror_r (0, buf, sizeof buf); |
| 17307 | return !p || x; |
| 17308 | |
| 17309 | ; |
| 17310 | return 0; |
| 17311 | } |
| 17312 | _ACEOF |
| 17313 | if ac_fn_c_try_compile "$LINENO" |
| 17314 | then : |
| 17315 | ac_cv_func_strerror_r_char_p=yes |
| 17316 | fi |
| 17317 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17318 | |
| 17319 | fi |
| 17320 | |
| 17321 | fi |
| 17322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 17323 | printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } |
| 17324 | if test $ac_cv_func_strerror_r_char_p = yes; then |
| 17325 | |
| 17326 | printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 17327 | |
| 17328 | fi |
| 17329 | |
| 17330 | case "${host_os}" in |
| 17331 | mingw32*) |
| 17332 | INSTALLSHELLPATH=/bin/sh |
| 17333 | ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s" |
| 17334 | if test "x$ac_cv_func_strerror_s" = xyes |
| 17335 | then : |
| 17336 | |
| 17337 | fi |
| 17338 | |
| 17339 | ;; |
| 17340 | solaris*) |
| 17341 | INSTALLSHELLPATH=/usr/xpg4/bin/sh |
| 17342 | # All versions of Solaris from 2.4 have a thread-safe strerror(). |
| 17343 | # Since Solaris 10, in addition strerror_r() exists. |
| 17344 | ;; |
| 17345 | *) |
| 17346 | INSTALLSHELLPATH=/bin/sh |
| 17347 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 17348 | if test "x$ac_cv_func_strerror_r" = xyes |
| 17349 | then : |
| 17350 | |
| 17351 | else $as_nop |
| 17352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5 |
| 17353 | printf "%s\n" "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;} |
| 17354 | fi |
| 17355 | |
| 17356 | ;; |
| 17357 | esac |
| 17358 | |
| 17359 | |
| 17360 | # We don't check 'fork' by configure script. Use of fork is inferred from by |
| 17361 | # the target system (POSIX or Windows). |
| 17362 | # AC_FUNC_FORK |
| 17363 | |
| 17364 | # Note that vasprintf is only used by the test suite; snprintf is used |
| 17365 | # by estream-printf.c only if available. |
| 17366 | ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" |
| 17367 | if test "x$ac_cv_func_flockfile" = xyes |
| 17368 | then : |
| 17369 | printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h |
| 17370 | |
| 17371 | fi |
| 17372 | ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" |
| 17373 | if test "x$ac_cv_func_vasprintf" = xyes |
| 17374 | then : |
| 17375 | printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h |
| 17376 | |
| 17377 | fi |
| 17378 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 17379 | if test "x$ac_cv_func_mmap" = xyes |
| 17380 | then : |
| 17381 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
| 17382 | |
| 17383 | fi |
| 17384 | ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand" |
| 17385 | if test "x$ac_cv_func_rand" = xyes |
| 17386 | then : |
| 17387 | printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h |
| 17388 | |
| 17389 | fi |
| 17390 | ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr" |
| 17391 | if test "x$ac_cv_func_strlwr" = xyes |
| 17392 | then : |
| 17393 | printf "%s\n" "#define HAVE_STRLWR 1" >>confdefs.h |
| 17394 | |
| 17395 | fi |
| 17396 | ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" |
| 17397 | if test "x$ac_cv_func_stpcpy" = xyes |
| 17398 | then : |
| 17399 | printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h |
| 17400 | |
| 17401 | fi |
| 17402 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 17403 | if test "x$ac_cv_func_setenv" = xyes |
| 17404 | then : |
| 17405 | printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 17406 | |
| 17407 | fi |
| 17408 | ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" |
| 17409 | if test "x$ac_cv_func_stat" = xyes |
| 17410 | then : |
| 17411 | printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h |
| 17412 | |
| 17413 | fi |
| 17414 | ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" |
| 17415 | if test "x$ac_cv_func_getrlimit" = xyes |
| 17416 | then : |
| 17417 | printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h |
| 17418 | |
| 17419 | fi |
| 17420 | ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" |
| 17421 | if test "x$ac_cv_func_getpwnam" = xyes |
| 17422 | then : |
| 17423 | printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h |
| 17424 | |
| 17425 | fi |
| 17426 | ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" |
| 17427 | if test "x$ac_cv_func_getpwuid" = xyes |
| 17428 | then : |
| 17429 | printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h |
| 17430 | |
| 17431 | fi |
| 17432 | ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
| 17433 | if test "x$ac_cv_func_getpwnam_r" = xyes |
| 17434 | then : |
| 17435 | printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 17436 | |
| 17437 | fi |
| 17438 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
| 17439 | if test "x$ac_cv_func_getpwuid_r" = xyes |
| 17440 | then : |
| 17441 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 17442 | |
| 17443 | fi |
| 17444 | ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" |
| 17445 | if test "x$ac_cv_func_inet_pton" = xyes |
| 17446 | then : |
| 17447 | printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h |
| 17448 | |
| 17449 | fi |
| 17450 | ac_fn_c_check_func "$LINENO" "getdents64" "ac_cv_func_getdents64" |
| 17451 | if test "x$ac_cv_func_getdents64" = xyes |
| 17452 | then : |
| 17453 | printf "%s\n" "#define HAVE_GETDENTS64 1" >>confdefs.h |
| 17454 | |
| 17455 | fi |
| 17456 | ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" |
| 17457 | if test "x$ac_cv_func_closefrom" = xyes |
| 17458 | then : |
| 17459 | printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h |
| 17460 | |
| 17461 | fi |
| 17462 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 17463 | if test "x$ac_cv_func_snprintf" = xyes |
| 17464 | then : |
| 17465 | printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 17466 | |
| 17467 | fi |
| 17468 | |
| 17469 | |
| 17470 | |
| 17471 | # |
| 17472 | # Checks for typedefs, structures, and compiler characteristics. |
| 17473 | # |
| 17474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 17475 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 17476 | if test ${ac_cv_c_const+y} |
| 17477 | then : |
| 17478 | printf %s "(cached) " >&6 |
| 17479 | else $as_nop |
| 17480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17481 | /* end confdefs.h. */ |
| 17482 | |
| 17483 | int |
| 17484 | main (void) |
| 17485 | { |
| 17486 | |
| 17487 | #ifndef __cplusplus |
| 17488 | /* Ultrix mips cc rejects this sort of thing. */ |
| 17489 | typedef int charset[2]; |
| 17490 | const charset cs = { 0, 0 }; |
| 17491 | /* SunOS 4.1.1 cc rejects this. */ |
| 17492 | char const *const *pcpcc; |
| 17493 | char **ppc; |
| 17494 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17495 | struct point {int x, y;}; |
| 17496 | static struct point const zero = {0,0}; |
| 17497 | /* IBM XL C 1.02.0.0 rejects this. |
| 17498 | It does not let you subtract one const X* pointer from another in |
| 17499 | an arm of an if-expression whose if-part is not a constant |
| 17500 | expression */ |
| 17501 | const char *g = "string"; |
| 17502 | pcpcc = &g + (g ? g-g : 0); |
| 17503 | /* HPUX 7.0 cc rejects these. */ |
| 17504 | ++pcpcc; |
| 17505 | ppc = (char**) pcpcc; |
| 17506 | pcpcc = (char const *const *) ppc; |
| 17507 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 17508 | char tx; |
| 17509 | char *t = &tx; |
| 17510 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 17511 | |
| 17512 | *t++ = 0; |
| 17513 | if (s) return 0; |
| 17514 | } |
| 17515 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17516 | int x[] = {25, 17}; |
| 17517 | const int *foo = &x[0]; |
| 17518 | ++foo; |
| 17519 | } |
| 17520 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17521 | typedef const int *iptr; |
| 17522 | iptr p = 0; |
| 17523 | ++p; |
| 17524 | } |
| 17525 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 17526 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17527 | struct s { int j; const int *ap[3]; } bx; |
| 17528 | struct s *b = &bx; b->j = 5; |
| 17529 | } |
| 17530 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17531 | const int foo = 10; |
| 17532 | if (!foo) return 0; |
| 17533 | } |
| 17534 | return !cs[0] && !zero.x; |
| 17535 | #endif |
| 17536 | |
| 17537 | ; |
| 17538 | return 0; |
| 17539 | } |
| 17540 | _ACEOF |
| 17541 | if ac_fn_c_try_compile "$LINENO" |
| 17542 | then : |
| 17543 | ac_cv_c_const=yes |
| 17544 | else $as_nop |
| 17545 | ac_cv_c_const=no |
| 17546 | fi |
| 17547 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17548 | fi |
| 17549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 17550 | printf "%s\n" "$ac_cv_c_const" >&6; } |
| 17551 | if test $ac_cv_c_const = no; then |
| 17552 | |
| 17553 | printf "%s\n" "#define const /**/" >>confdefs.h |
| 17554 | |
| 17555 | fi |
| 17556 | |
| 17557 | |
| 17558 | # The cast to long int works around a bug in the HP C Compiler |
| 17559 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17560 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17561 | # This bug is HP SR number 8606223364. |
| 17562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 17563 | printf %s "checking size of int... " >&6; } |
| 17564 | if test ${ac_cv_sizeof_int+y} |
| 17565 | then : |
| 17566 | printf %s "(cached) " >&6 |
| 17567 | else $as_nop |
| 17568 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 17569 | then : |
| 17570 | |
| 17571 | else $as_nop |
| 17572 | if test "$ac_cv_type_int" = yes; then |
| 17573 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17574 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17575 | as_fn_error 77 "cannot compute sizeof (int) |
| 17576 | See \`config.log' for more details" "$LINENO" 5; } |
| 17577 | else |
| 17578 | ac_cv_sizeof_int=0 |
| 17579 | fi |
| 17580 | fi |
| 17581 | |
| 17582 | fi |
| 17583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 17584 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 17585 | |
| 17586 | |
| 17587 | |
| 17588 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 17589 | |
| 17590 | |
| 17591 | # The cast to long int works around a bug in the HP C Compiler |
| 17592 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17593 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17594 | # This bug is HP SR number 8606223364. |
| 17595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 17596 | printf %s "checking size of long... " >&6; } |
| 17597 | if test ${ac_cv_sizeof_long+y} |
| 17598 | then : |
| 17599 | printf %s "(cached) " >&6 |
| 17600 | else $as_nop |
| 17601 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 17602 | then : |
| 17603 | |
| 17604 | else $as_nop |
| 17605 | if test "$ac_cv_type_long" = yes; then |
| 17606 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17607 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17608 | as_fn_error 77 "cannot compute sizeof (long) |
| 17609 | See \`config.log' for more details" "$LINENO" 5; } |
| 17610 | else |
| 17611 | ac_cv_sizeof_long=0 |
| 17612 | fi |
| 17613 | fi |
| 17614 | |
| 17615 | fi |
| 17616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 17617 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
| 17618 | |
| 17619 | |
| 17620 | |
| 17621 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 17622 | |
| 17623 | |
| 17624 | # The cast to long int works around a bug in the HP C Compiler |
| 17625 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17626 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17627 | # This bug is HP SR number 8606223364. |
| 17628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 17629 | printf %s "checking size of long long... " >&6; } |
| 17630 | if test ${ac_cv_sizeof_long_long+y} |
| 17631 | then : |
| 17632 | printf %s "(cached) " >&6 |
| 17633 | else $as_nop |
| 17634 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" |
| 17635 | then : |
| 17636 | |
| 17637 | else $as_nop |
| 17638 | if test "$ac_cv_type_long_long" = yes; then |
| 17639 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17640 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17641 | as_fn_error 77 "cannot compute sizeof (long long) |
| 17642 | See \`config.log' for more details" "$LINENO" 5; } |
| 17643 | else |
| 17644 | ac_cv_sizeof_long_long=0 |
| 17645 | fi |
| 17646 | fi |
| 17647 | |
| 17648 | fi |
| 17649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 17650 | printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } |
| 17651 | |
| 17652 | |
| 17653 | |
| 17654 | printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
| 17655 | |
| 17656 | |
| 17657 | |
| 17658 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" |
| 17659 | if test "x$ac_cv_header_sys_stat_h" = xyes |
| 17660 | then : |
| 17661 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h |
| 17662 | |
| 17663 | fi |
| 17664 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 17665 | if test "x$ac_cv_header_unistd_h" = xyes |
| 17666 | then : |
| 17667 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 17668 | |
| 17669 | fi |
| 17670 | ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" |
| 17671 | if test "x$ac_cv_header_direct_h" = xyes |
| 17672 | then : |
| 17673 | printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h |
| 17674 | |
| 17675 | fi |
| 17676 | |
| 17677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 |
| 17678 | printf %s "checking if mkdir takes one argument... " >&6; } |
| 17679 | if test ${gnupg_cv_mkdir_takes_one_arg+y} |
| 17680 | then : |
| 17681 | printf %s "(cached) " >&6 |
| 17682 | else $as_nop |
| 17683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17684 | /* end confdefs.h. */ |
| 17685 | |
| 17686 | #include <sys/types.h> |
| 17687 | #ifdef HAVE_SYS_STAT_H |
| 17688 | # include <sys/stat.h> |
| 17689 | #endif |
| 17690 | #ifdef HAVE_UNISTD_H |
| 17691 | # include <unistd.h> |
| 17692 | #endif |
| 17693 | #ifdef HAVE_DIRECT_H |
| 17694 | # include <direct.h> |
| 17695 | #endif |
| 17696 | int |
| 17697 | main (void) |
| 17698 | { |
| 17699 | mkdir ("foo", 0); |
| 17700 | ; |
| 17701 | return 0; |
| 17702 | } |
| 17703 | _ACEOF |
| 17704 | if ac_fn_c_try_compile "$LINENO" |
| 17705 | then : |
| 17706 | gnupg_cv_mkdir_takes_one_arg=no |
| 17707 | else $as_nop |
| 17708 | gnupg_cv_mkdir_takes_one_arg=yes |
| 17709 | fi |
| 17710 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17711 | fi |
| 17712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5 |
| 17713 | printf "%s\n" "$gnupg_cv_mkdir_takes_one_arg" >&6; } |
| 17714 | if test $gnupg_cv_mkdir_takes_one_arg = yes ; then |
| 17715 | |
| 17716 | printf "%s\n" "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h |
| 17717 | |
| 17718 | fi |
| 17719 | |
| 17720 | |
| 17721 | |
| 17722 | # Find a 64 bit integer type to be used instead of off_t. We prefer |
| 17723 | # the standard integer types over int64_t and finally try long long. |
| 17724 | if test "$ac_cv_sizeof_int" = "8"; then |
| 17725 | replacement_for_off_t="int" |
| 17726 | elif test "$ac_cv_sizeof_long" = "8"; then |
| 17727 | replacement_for_off_t="long" |
| 17728 | elif test "$ac_cv_header_stdint_h" = yes; then |
| 17729 | replacement_for_off_t="int64_t" |
| 17730 | elif test "$ac_cv_sizeof_long_long" = "8"; then |
| 17731 | replacement_for_off_t="long long" |
| 17732 | else |
| 17733 | as_fn_error $? " |
| 17734 | *** |
| 17735 | *** No 64 bit signed integer type found. Can't build this library. |
| 17736 | ***" "$LINENO" 5 |
| 17737 | fi |
| 17738 | |
| 17739 | printf "%s\n" "#define REPLACEMENT_FOR_OFF_T \"$replacement_for_off_t\"" >>confdefs.h |
| 17740 | |
| 17741 | |
| 17742 | |
| 17743 | # |
| 17744 | # Setup gcc specific options |
| 17745 | # |
| 17746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5 |
| 17747 | printf "%s\n" "$as_me: checking for cc features" >&6;} |
| 17748 | if test "$GCC" = yes; then |
| 17749 | # Check whether gcc does not emit a diagnostic for unknown -Wno-* |
| 17750 | # options. This is the case for gcc >= 4.6 |
| 17751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5 |
| 17752 | printf %s "checking if gcc ignores unknown -Wno-* options... " >&6; } |
| 17753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17754 | /* end confdefs.h. */ |
| 17755 | |
| 17756 | #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 ) |
| 17757 | #kickerror |
| 17758 | #endif |
| 17759 | int |
| 17760 | main (void) |
| 17761 | { |
| 17762 | |
| 17763 | ; |
| 17764 | return 0; |
| 17765 | } |
| 17766 | _ACEOF |
| 17767 | if ac_fn_c_try_compile "$LINENO" |
| 17768 | then : |
| 17769 | _gcc_silent_wno=yes |
| 17770 | else $as_nop |
| 17771 | _gcc_silent_wno=no |
| 17772 | fi |
| 17773 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5 |
| 17775 | printf "%s\n" "$_gcc_silent_wno" >&6; } |
| 17776 | |
| 17777 | # Note that it is okay to use CFLAGS here because these are just |
| 17778 | # warning options and the user should have a chance of overriding |
| 17779 | # them. |
| 17780 | if test "$USE_MAINTAINER_MODE" = "yes"; then |
| 17781 | M_CFLAGS="-O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes" |
| 17782 | M_CFLAGS="$M_CFLAGS -Wformat -Wno-format-y2k -Wformat-security" |
| 17783 | if test x"$_gcc_silent_wno" = xyes ; then |
| 17784 | _gcc_wopt=yes |
| 17785 | else |
| 17786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5 |
| 17787 | printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; } |
| 17788 | _gcc_cflags_save=$CFLAGS |
| 17789 | CFLAGS="-Wno-missing-field-initializers" |
| 17790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17791 | /* end confdefs.h. */ |
| 17792 | |
| 17793 | int |
| 17794 | main (void) |
| 17795 | { |
| 17796 | |
| 17797 | ; |
| 17798 | return 0; |
| 17799 | } |
| 17800 | _ACEOF |
| 17801 | if ac_fn_c_try_compile "$LINENO" |
| 17802 | then : |
| 17803 | _gcc_wopt=yes |
| 17804 | else $as_nop |
| 17805 | _gcc_wopt=no |
| 17806 | fi |
| 17807 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5 |
| 17809 | printf "%s\n" "$_gcc_wopt" >&6; } |
| 17810 | CFLAGS=$_gcc_cflags_save; |
| 17811 | fi |
| 17812 | if test x"$_gcc_wopt" = xyes ; then |
| 17813 | M_CFLAGS="$M_CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers" |
| 17814 | fi |
| 17815 | |
| 17816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5 |
| 17817 | printf %s "checking if gcc supports -Wdeclaration-after-statement... " >&6; } |
| 17818 | _gcc_cflags_save=$CFLAGS |
| 17819 | CFLAGS="-Wdeclaration-after-statement" |
| 17820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17821 | /* end confdefs.h. */ |
| 17822 | |
| 17823 | int |
| 17824 | main (void) |
| 17825 | { |
| 17826 | |
| 17827 | ; |
| 17828 | return 0; |
| 17829 | } |
| 17830 | _ACEOF |
| 17831 | if ac_fn_c_try_compile "$LINENO" |
| 17832 | then : |
| 17833 | _gcc_wopt=yes |
| 17834 | else $as_nop |
| 17835 | _gcc_wopt=no |
| 17836 | fi |
| 17837 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5 |
| 17839 | printf "%s\n" "$_gcc_wopt" >&6; } |
| 17840 | CFLAGS=$_gcc_cflags_save; |
| 17841 | if test x"$_gcc_wopt" = xyes ; then |
| 17842 | M_CFLAGS="$M_CFLAGS -Wdeclaration-after-statement" |
| 17843 | fi |
| 17844 | |
| 17845 | # Prepend the maintainer-cflags so that the user can override |
| 17846 | # them, e.g. to override the optimization flags for debugging. |
| 17847 | CFLAGS="$M_CFLAGS $CFLAGS" |
| 17848 | else |
| 17849 | CFLAGS="$CFLAGS -Wall" |
| 17850 | fi |
| 17851 | |
| 17852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5 |
| 17853 | printf %s "checking if gcc supports -Wpointer-arith... " >&6; } |
| 17854 | _gcc_cflags_save=$CFLAGS |
| 17855 | CFLAGS="-Wpointer-arith" |
| 17856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17857 | /* end confdefs.h. */ |
| 17858 | |
| 17859 | int |
| 17860 | main (void) |
| 17861 | { |
| 17862 | |
| 17863 | ; |
| 17864 | return 0; |
| 17865 | } |
| 17866 | _ACEOF |
| 17867 | if ac_fn_c_try_compile "$LINENO" |
| 17868 | then : |
| 17869 | _gcc_psign=yes |
| 17870 | else $as_nop |
| 17871 | _gcc_psign=no |
| 17872 | fi |
| 17873 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5 |
| 17875 | printf "%s\n" "$_gcc_psign" >&6; } |
| 17876 | CFLAGS=$_gcc_cflags_save; |
| 17877 | if test x"$_gcc_psign" = xyes ; then |
| 17878 | CFLAGS="$CFLAGS -Wpointer-arith" |
| 17879 | fi |
| 17880 | |
| 17881 | # The undocumented option -Wno-psabi suppresses the annoying |
| 17882 | # "the ABI of passing union with long double has changed in GCC 4.4" |
| 17883 | # which is emitted in estream-printf.c but entirely irrelvant |
| 17884 | # because that union is local to the file. |
| 17885 | if test x"$_gcc_silent_wno" = xyes ; then |
| 17886 | CFLAGS="$CFLAGS -Wno-psabi" |
| 17887 | fi |
| 17888 | fi |
| 17889 | |
| 17890 | # |
| 17891 | # Check whether the compiler supports the GCC style aligned attribute |
| 17892 | # |
| 17893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style aligned attribute is supported" >&5 |
| 17894 | printf %s "checking whether the GCC style aligned attribute is supported... " >&6; } |
| 17895 | if test ${gcry_cv_gcc_attribute_aligned+y} |
| 17896 | then : |
| 17897 | printf %s "(cached) " >&6 |
| 17898 | else $as_nop |
| 17899 | gcry_cv_gcc_attribute_aligned=no |
| 17900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17901 | /* end confdefs.h. */ |
| 17902 | struct { int a; } foo __attribute__ ((aligned (16))); |
| 17903 | _ACEOF |
| 17904 | if ac_fn_c_try_compile "$LINENO" |
| 17905 | then : |
| 17906 | gcry_cv_gcc_attribute_aligned=yes |
| 17907 | fi |
| 17908 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17909 | fi |
| 17910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_aligned" >&5 |
| 17911 | printf "%s\n" "$gcry_cv_gcc_attribute_aligned" >&6; } |
| 17912 | if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then |
| 17913 | |
| 17914 | printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_ALIGNED 1" >>confdefs.h |
| 17915 | |
| 17916 | fi |
| 17917 | |
| 17918 | # |
| 17919 | # Check for ELF visibility support. |
| 17920 | # |
| 17921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5 |
| 17922 | printf %s "checking whether the visibility attribute is supported... " >&6; } |
| 17923 | if test ${gcry_cv_visibility_attribute+y} |
| 17924 | then : |
| 17925 | printf %s "(cached) " >&6 |
| 17926 | else $as_nop |
| 17927 | gcry_cv_visibility_attribute=no |
| 17928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17929 | /* end confdefs.h. */ |
| 17930 | int foo __attribute__ ((visibility ("hidden"))) = 1; |
| 17931 | int bar __attribute__ ((visibility ("protected"))) = 1; |
| 17932 | |
| 17933 | _ACEOF |
| 17934 | |
| 17935 | if ${CC-cc} -Werror -S conftest.c -o conftest.s \ |
| 17936 | 1>&5 2>&5 ; then |
| 17937 | if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then |
| 17938 | if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then |
| 17939 | gcry_cv_visibility_attribute=yes |
| 17940 | fi |
| 17941 | fi |
| 17942 | fi |
| 17943 | |
| 17944 | fi |
| 17945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5 |
| 17946 | printf "%s\n" "$gcry_cv_visibility_attribute" >&6; } |
| 17947 | if test "$gcry_cv_visibility_attribute" = "yes"; then |
| 17948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5 |
| 17949 | printf %s "checking for broken visibility attribute... " >&6; } |
| 17950 | if test ${gcry_cv_broken_visibility_attribute+y} |
| 17951 | then : |
| 17952 | printf %s "(cached) " >&6 |
| 17953 | else $as_nop |
| 17954 | gcry_cv_broken_visibility_attribute=yes |
| 17955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17956 | /* end confdefs.h. */ |
| 17957 | int foo (int x); |
| 17958 | int bar (int x) __asm__ ("foo") |
| 17959 | __attribute__ ((visibility ("hidden"))); |
| 17960 | int bar (int x) { return x; } |
| 17961 | |
| 17962 | _ACEOF |
| 17963 | |
| 17964 | if ${CC-cc} -Werror -S conftest.c -o conftest.s \ |
| 17965 | 1>&5 2>&5 ; then |
| 17966 | if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1; |
| 17967 | then |
| 17968 | gcry_cv_broken_visibility_attribute=no |
| 17969 | fi |
| 17970 | fi |
| 17971 | |
| 17972 | fi |
| 17973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5 |
| 17974 | printf "%s\n" "$gcry_cv_broken_visibility_attribute" >&6; } |
| 17975 | fi |
| 17976 | if test "$gcry_cv_visibility_attribute" = "yes"; then |
| 17977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5 |
| 17978 | printf %s "checking for broken alias attribute... " >&6; } |
| 17979 | if test ${gcry_cv_broken_alias_attribute+y} |
| 17980 | then : |
| 17981 | printf %s "(cached) " >&6 |
| 17982 | else $as_nop |
| 17983 | gcry_cv_broken_alias_attribute=yes |
| 17984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17985 | /* end confdefs.h. */ |
| 17986 | extern int foo (int x) __asm ("xyzzy"); |
| 17987 | int bar (int x) { return x; } |
| 17988 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); |
| 17989 | extern int dfoo; |
| 17990 | extern __typeof (dfoo) dfoo __asm ("abccb"); |
| 17991 | int dfoo = 1; |
| 17992 | |
| 17993 | _ACEOF |
| 17994 | |
| 17995 | if ${CC-cc} -Werror -S conftest.c -o conftest.s \ |
| 17996 | 1>&5 2>&5 ; then |
| 17997 | if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \ |
| 17998 | grep 'abccb' conftest.s >/dev/null 2>&1; then |
| 17999 | gcry_cv_broken_alias_attribute=no |
| 18000 | fi |
| 18001 | fi |
| 18002 | |
| 18003 | fi |
| 18004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5 |
| 18005 | printf "%s\n" "$gcry_cv_broken_alias_attribute" >&6; } |
| 18006 | fi |
| 18007 | if test "$gcry_cv_visibility_attribute" = "yes"; then |
| 18008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5 |
| 18009 | printf %s "checking if gcc supports -fvisibility=hidden... " >&6; } |
| 18010 | if test ${gcry_cv_gcc_has_f_visibility+y} |
| 18011 | then : |
| 18012 | printf %s "(cached) " >&6 |
| 18013 | else $as_nop |
| 18014 | gcry_cv_gcc_has_f_visibility=no |
| 18015 | _gcc_cflags_save=$CFLAGS |
| 18016 | CFLAGS="-fvisibility=hidden" |
| 18017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18018 | /* end confdefs.h. */ |
| 18019 | |
| 18020 | int |
| 18021 | main (void) |
| 18022 | { |
| 18023 | |
| 18024 | ; |
| 18025 | return 0; |
| 18026 | } |
| 18027 | _ACEOF |
| 18028 | if ac_fn_c_try_compile "$LINENO" |
| 18029 | then : |
| 18030 | gcry_cv_gcc_has_f_visibility=yes |
| 18031 | fi |
| 18032 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18033 | CFLAGS=$_gcc_cflags_save; |
| 18034 | |
| 18035 | fi |
| 18036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5 |
| 18037 | printf "%s\n" "$gcry_cv_gcc_has_f_visibility" >&6; } |
| 18038 | fi |
| 18039 | if test "$gcry_cv_visibility_attribute" = "yes" \ |
| 18040 | && test "$gcry_cv_broken_visibility_attribute" != "yes" \ |
| 18041 | && test "$gcry_cv_broken_alias_attribute" != "yes" \ |
| 18042 | && test "$gcry_cv_gcc_has_f_visibility" = "yes" |
| 18043 | then |
| 18044 | |
| 18045 | printf "%s\n" "#define GPGRT_USE_VISIBILITY 1" >>confdefs.h |
| 18046 | |
| 18047 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 18048 | fi |
| 18049 | |
| 18050 | # |
| 18051 | # Check whether ld supports a version script. |
| 18052 | # (Actually not a check but a list of systems which are known to support it.) |
| 18053 | # |
| 18054 | have_ld_version_script=no |
| 18055 | case "${host}" in |
| 18056 | *-*-linux*) |
| 18057 | have_ld_version_script=yes |
| 18058 | ;; |
| 18059 | *-*-gnu*) |
| 18060 | have_ld_version_script=yes |
| 18061 | ;; |
| 18062 | esac |
| 18063 | # Check whether --enable-ld-version-script was given. |
| 18064 | if test ${enable_ld_version_script+y} |
| 18065 | then : |
| 18066 | enableval=$enable_ld_version_script; have_ld_version_script=$enableval |
| 18067 | else $as_nop |
| 18068 | : |
| 18069 | fi |
| 18070 | |
| 18071 | if test "$have_ld_version_script" = "yes"; then |
| 18072 | HAVE_LD_VERSION_SCRIPT_TRUE= |
| 18073 | HAVE_LD_VERSION_SCRIPT_FALSE='#' |
| 18074 | else |
| 18075 | HAVE_LD_VERSION_SCRIPT_TRUE='#' |
| 18076 | HAVE_LD_VERSION_SCRIPT_FALSE= |
| 18077 | fi |
| 18078 | |
| 18079 | |
| 18080 | |
| 18081 | # |
| 18082 | # Check for thread library. |
| 18083 | # |
| 18084 | # Windows has always thread support; thus we don't bother to test for |
| 18085 | # it as it may lead to false results when cross building. |
| 18086 | if test "$have_w32_system" = yes; then |
| 18087 | GPG_ERROR_CONFIG_LIBS_PRIVATE=-lws2_32 |
| 18088 | printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 18089 | |
| 18090 | LIBTHREAD= |
| 18091 | LTLIBTHREAD= |
| 18092 | LIBMULTITHREAD= |
| 18093 | LTLIBMULTITHREAD= |
| 18094 | THREADLIB_CPPFLAGS="" |
| 18095 | |
| 18096 | |
| 18097 | |
| 18098 | |
| 18099 | else |
| 18100 | GPG_ERROR_CONFIG_LIBS_PRIVATE="" |
| 18101 | |
| 18102 | |
| 18103 | |
| 18104 | gl_threads_api=none |
| 18105 | LIBTHREAD= |
| 18106 | LTLIBTHREAD= |
| 18107 | LIBMULTITHREAD= |
| 18108 | LTLIBMULTITHREAD= |
| 18109 | if test "$gl_use_threads" != no; then |
| 18110 | |
| 18111 | |
| 18112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 18113 | printf %s "checking whether imported symbols can be declared weak... " >&6; } |
| 18114 | if test ${gl_cv_have_weak+y} |
| 18115 | then : |
| 18116 | printf %s "(cached) " >&6 |
| 18117 | else $as_nop |
| 18118 | gl_cv_have_weak=no |
| 18119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18120 | /* end confdefs.h. */ |
| 18121 | extern void xyzzy (); |
| 18122 | #pragma weak xyzzy |
| 18123 | int |
| 18124 | main (void) |
| 18125 | { |
| 18126 | xyzzy(); |
| 18127 | ; |
| 18128 | return 0; |
| 18129 | } |
| 18130 | _ACEOF |
| 18131 | if ac_fn_c_try_link "$LINENO" |
| 18132 | then : |
| 18133 | gl_cv_have_weak=maybe |
| 18134 | fi |
| 18135 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18136 | conftest$ac_exeext conftest.$ac_ext |
| 18137 | if test $gl_cv_have_weak = maybe; then |
| 18138 | if test "$cross_compiling" = yes |
| 18139 | then : |
| 18140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18141 | /* end confdefs.h. */ |
| 18142 | #ifdef __ELF__ |
| 18143 | Extensible Linking Format |
| 18144 | #endif |
| 18145 | |
| 18146 | _ACEOF |
| 18147 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18148 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 |
| 18149 | then : |
| 18150 | gl_cv_have_weak="guessing yes" |
| 18151 | else $as_nop |
| 18152 | gl_cv_have_weak="guessing no" |
| 18153 | fi |
| 18154 | rm -rf conftest* |
| 18155 | |
| 18156 | |
| 18157 | else $as_nop |
| 18158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18159 | /* end confdefs.h. */ |
| 18160 | |
| 18161 | #include <stdio.h> |
| 18162 | #pragma weak fputs |
| 18163 | int main () |
| 18164 | { |
| 18165 | return (fputs == NULL); |
| 18166 | } |
| 18167 | _ACEOF |
| 18168 | if ac_fn_c_try_run "$LINENO" |
| 18169 | then : |
| 18170 | gl_cv_have_weak=yes |
| 18171 | else $as_nop |
| 18172 | gl_cv_have_weak=no |
| 18173 | fi |
| 18174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18175 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18176 | fi |
| 18177 | |
| 18178 | fi |
| 18179 | case " $LDFLAGS " in |
| 18180 | *" -static "*) gl_cv_have_weak=no ;; |
| 18181 | esac |
| 18182 | case "$gl_cv_have_weak" in |
| 18183 | *yes) |
| 18184 | case "$host_os" in |
| 18185 | freebsd* | dragonfly* | midnightbsd*) |
| 18186 | : > conftest1.c |
| 18187 | $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 |
| 18188 | cat <<EOF > conftest2.c |
| 18189 | #include <pthread.h> |
| 18190 | #pragma weak pthread_mutexattr_gettype |
| 18191 | int main () |
| 18192 | { |
| 18193 | return (pthread_mutexattr_gettype != NULL); |
| 18194 | } |
| 18195 | EOF |
| 18196 | $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ |
| 18197 | || gl_cv_have_weak=no |
| 18198 | rm -f conftest1.c libempty.so conftest2.c conftest |
| 18199 | ;; |
| 18200 | esac |
| 18201 | ;; |
| 18202 | esac |
| 18203 | |
| 18204 | fi |
| 18205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 18206 | printf "%s\n" "$gl_cv_have_weak" >&6; } |
| 18207 | case "$gl_cv_have_weak" in |
| 18208 | *yes) |
| 18209 | |
| 18210 | printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h |
| 18211 | |
| 18212 | ;; |
| 18213 | esac |
| 18214 | |
| 18215 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 18216 | |
| 18217 | : |
| 18218 | fi |
| 18219 | if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then |
| 18220 | |
| 18221 | gl_have_isoc_threads="$ac_cv_header_threads_h" |
| 18222 | fi |
| 18223 | if test "$gl_use_threads" = yes \ |
| 18224 | || test "$gl_use_threads" = posix \ |
| 18225 | || test "$gl_use_threads" = isoc+posix; then |
| 18226 | |
| 18227 | |
| 18228 | if test -z "$gl_pthreadlib_body_done"; then |
| 18229 | gl_pthread_api=no |
| 18230 | LIBPTHREAD= |
| 18231 | LIBPMULTITHREAD= |
| 18232 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 18233 | # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. |
| 18234 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 18235 | if test "x$ac_cv_header_pthread_h" = xyes |
| 18236 | then : |
| 18237 | gl_have_pthread_h=yes |
| 18238 | else $as_nop |
| 18239 | gl_have_pthread_h=no |
| 18240 | fi |
| 18241 | |
| 18242 | if test "$gl_have_pthread_h" = yes; then |
| 18243 | # Other possible tests: |
| 18244 | # -lpthreads (FSU threads, PCthreads) |
| 18245 | # -lgthreads |
| 18246 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 18247 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 18248 | # the second one only in libpthread, and lock.c needs it. |
| 18249 | # |
| 18250 | # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 |
| 18251 | # needs -pthread for some reason. See: |
| 18252 | # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html |
| 18253 | save_LIBS=$LIBS |
| 18254 | for gl_pthread in '' '-pthread'; do |
| 18255 | LIBS="$LIBS $gl_pthread" |
| 18256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18257 | /* end confdefs.h. */ |
| 18258 | #include <pthread.h> |
| 18259 | pthread_mutex_t m; |
| 18260 | pthread_mutexattr_t ma; |
| 18261 | |
| 18262 | int |
| 18263 | main (void) |
| 18264 | { |
| 18265 | pthread_mutex_lock (&m); |
| 18266 | pthread_mutexattr_init (&ma); |
| 18267 | ; |
| 18268 | return 0; |
| 18269 | } |
| 18270 | _ACEOF |
| 18271 | if ac_fn_c_try_link "$LINENO" |
| 18272 | then : |
| 18273 | gl_pthread_api=yes |
| 18274 | LIBPTHREAD=$gl_pthread |
| 18275 | LIBPMULTITHREAD=$gl_pthread |
| 18276 | fi |
| 18277 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18278 | conftest$ac_exeext conftest.$ac_ext |
| 18279 | LIBS=$save_LIBS |
| 18280 | test $gl_pthread_api = yes && break |
| 18281 | done |
| 18282 | echo "$as_me:18282: gl_pthread_api=$gl_pthread_api" >&5 |
| 18283 | echo "$as_me:18283: LIBPTHREAD=$LIBPTHREAD" >&5 |
| 18284 | |
| 18285 | gl_pthread_in_glibc=no |
| 18286 | # On Linux with glibc >= 2.34, libc contains the fully functional |
| 18287 | # pthread functions. |
| 18288 | case "$host_os" in |
| 18289 | linux*) |
| 18290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18291 | /* end confdefs.h. */ |
| 18292 | #include <features.h> |
| 18293 | #ifdef __GNU_LIBRARY__ |
| 18294 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) |
| 18295 | Lucky user |
| 18296 | #endif |
| 18297 | #endif |
| 18298 | |
| 18299 | _ACEOF |
| 18300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18301 | $EGREP "Lucky user" >/dev/null 2>&1 |
| 18302 | then : |
| 18303 | gl_pthread_in_glibc=yes |
| 18304 | fi |
| 18305 | rm -rf conftest* |
| 18306 | |
| 18307 | ;; |
| 18308 | esac |
| 18309 | echo "$as_me:18309: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 |
| 18310 | |
| 18311 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 18312 | # since it is defined as a macro on OSF/1.) |
| 18313 | if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then |
| 18314 | # The program links fine without libpthread. But it may actually |
| 18315 | # need to link with libpthread in order to create multiple threads. |
| 18316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 18317 | printf %s "checking for pthread_kill in -lpthread... " >&6; } |
| 18318 | if test ${ac_cv_lib_pthread_pthread_kill+y} |
| 18319 | then : |
| 18320 | printf %s "(cached) " >&6 |
| 18321 | else $as_nop |
| 18322 | ac_check_lib_save_LIBS=$LIBS |
| 18323 | LIBS="-lpthread $LIBS" |
| 18324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18325 | /* end confdefs.h. */ |
| 18326 | |
| 18327 | /* Override any GCC internal prototype to avoid an error. |
| 18328 | Use char because int might match the return type of a GCC |
| 18329 | builtin and then its argument prototype would still apply. */ |
| 18330 | char pthread_kill (); |
| 18331 | int |
| 18332 | main (void) |
| 18333 | { |
| 18334 | return pthread_kill (); |
| 18335 | ; |
| 18336 | return 0; |
| 18337 | } |
| 18338 | _ACEOF |
| 18339 | if ac_fn_c_try_link "$LINENO" |
| 18340 | then : |
| 18341 | ac_cv_lib_pthread_pthread_kill=yes |
| 18342 | else $as_nop |
| 18343 | ac_cv_lib_pthread_pthread_kill=no |
| 18344 | fi |
| 18345 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18346 | conftest$ac_exeext conftest.$ac_ext |
| 18347 | LIBS=$ac_check_lib_save_LIBS |
| 18348 | fi |
| 18349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 18350 | printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 18351 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 18352 | then : |
| 18353 | if test $gl_pthread_in_glibc = yes; then |
| 18354 | LIBPMULTITHREAD= |
| 18355 | else |
| 18356 | LIBPMULTITHREAD=-lpthread |
| 18357 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 18358 | # Therefore pthread_in_use() needs to actually try to create a |
| 18359 | # thread: pthread_create from libc will fail, whereas |
| 18360 | # pthread_create will actually create a thread. |
| 18361 | # On Solaris 10 or newer, this test is no longer needed, because |
| 18362 | # libc contains the fully functional pthread functions. |
| 18363 | case "$host_os" in |
| 18364 | solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) |
| 18365 | |
| 18366 | printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 18367 | |
| 18368 | esac |
| 18369 | fi |
| 18370 | |
| 18371 | fi |
| 18372 | |
| 18373 | elif test $gl_pthread_api != yes; then |
| 18374 | # Some library is needed. Try libpthread and libc_r. |
| 18375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 18376 | printf %s "checking for pthread_kill in -lpthread... " >&6; } |
| 18377 | if test ${ac_cv_lib_pthread_pthread_kill+y} |
| 18378 | then : |
| 18379 | printf %s "(cached) " >&6 |
| 18380 | else $as_nop |
| 18381 | ac_check_lib_save_LIBS=$LIBS |
| 18382 | LIBS="-lpthread $LIBS" |
| 18383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18384 | /* end confdefs.h. */ |
| 18385 | |
| 18386 | /* Override any GCC internal prototype to avoid an error. |
| 18387 | Use char because int might match the return type of a GCC |
| 18388 | builtin and then its argument prototype would still apply. */ |
| 18389 | char pthread_kill (); |
| 18390 | int |
| 18391 | main (void) |
| 18392 | { |
| 18393 | return pthread_kill (); |
| 18394 | ; |
| 18395 | return 0; |
| 18396 | } |
| 18397 | _ACEOF |
| 18398 | if ac_fn_c_try_link "$LINENO" |
| 18399 | then : |
| 18400 | ac_cv_lib_pthread_pthread_kill=yes |
| 18401 | else $as_nop |
| 18402 | ac_cv_lib_pthread_pthread_kill=no |
| 18403 | fi |
| 18404 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18405 | conftest$ac_exeext conftest.$ac_ext |
| 18406 | LIBS=$ac_check_lib_save_LIBS |
| 18407 | fi |
| 18408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 18409 | printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 18410 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 18411 | then : |
| 18412 | gl_pthread_api=yes |
| 18413 | LIBPTHREAD=-lpthread |
| 18414 | LIBPMULTITHREAD=-lpthread |
| 18415 | fi |
| 18416 | |
| 18417 | if test $gl_pthread_api != yes; then |
| 18418 | # For FreeBSD 4. |
| 18419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 18420 | printf %s "checking for pthread_kill in -lc_r... " >&6; } |
| 18421 | if test ${ac_cv_lib_c_r_pthread_kill+y} |
| 18422 | then : |
| 18423 | printf %s "(cached) " >&6 |
| 18424 | else $as_nop |
| 18425 | ac_check_lib_save_LIBS=$LIBS |
| 18426 | LIBS="-lc_r $LIBS" |
| 18427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18428 | /* end confdefs.h. */ |
| 18429 | |
| 18430 | /* Override any GCC internal prototype to avoid an error. |
| 18431 | Use char because int might match the return type of a GCC |
| 18432 | builtin and then its argument prototype would still apply. */ |
| 18433 | char pthread_kill (); |
| 18434 | int |
| 18435 | main (void) |
| 18436 | { |
| 18437 | return pthread_kill (); |
| 18438 | ; |
| 18439 | return 0; |
| 18440 | } |
| 18441 | _ACEOF |
| 18442 | if ac_fn_c_try_link "$LINENO" |
| 18443 | then : |
| 18444 | ac_cv_lib_c_r_pthread_kill=yes |
| 18445 | else $as_nop |
| 18446 | ac_cv_lib_c_r_pthread_kill=no |
| 18447 | fi |
| 18448 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18449 | conftest$ac_exeext conftest.$ac_ext |
| 18450 | LIBS=$ac_check_lib_save_LIBS |
| 18451 | fi |
| 18452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 18453 | printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 18454 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes |
| 18455 | then : |
| 18456 | gl_pthread_api=yes |
| 18457 | LIBPTHREAD=-lc_r |
| 18458 | LIBPMULTITHREAD=-lc_r |
| 18459 | fi |
| 18460 | |
| 18461 | fi |
| 18462 | fi |
| 18463 | echo "$as_me:18463: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 |
| 18464 | fi |
| 18465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 |
| 18466 | printf %s "checking whether POSIX threads API is available... " >&6; } |
| 18467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 |
| 18468 | printf "%s\n" "$gl_pthread_api" >&6; } |
| 18469 | |
| 18470 | |
| 18471 | if test $gl_pthread_api = yes; then |
| 18472 | |
| 18473 | printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h |
| 18474 | |
| 18475 | fi |
| 18476 | |
| 18477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18478 | /* end confdefs.h. */ |
| 18479 | #include <sched.h> |
| 18480 | int |
| 18481 | main (void) |
| 18482 | { |
| 18483 | sched_yield (); |
| 18484 | ; |
| 18485 | return 0; |
| 18486 | } |
| 18487 | _ACEOF |
| 18488 | if ac_fn_c_try_link "$LINENO" |
| 18489 | then : |
| 18490 | LIB_SCHED_YIELD= |
| 18491 | |
| 18492 | else $as_nop |
| 18493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 |
| 18494 | printf %s "checking for sched_yield in -lrt... " >&6; } |
| 18495 | if test ${ac_cv_lib_rt_sched_yield+y} |
| 18496 | then : |
| 18497 | printf %s "(cached) " >&6 |
| 18498 | else $as_nop |
| 18499 | ac_check_lib_save_LIBS=$LIBS |
| 18500 | LIBS="-lrt $LIBS" |
| 18501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18502 | /* end confdefs.h. */ |
| 18503 | |
| 18504 | /* Override any GCC internal prototype to avoid an error. |
| 18505 | Use char because int might match the return type of a GCC |
| 18506 | builtin and then its argument prototype would still apply. */ |
| 18507 | char sched_yield (); |
| 18508 | int |
| 18509 | main (void) |
| 18510 | { |
| 18511 | return sched_yield (); |
| 18512 | ; |
| 18513 | return 0; |
| 18514 | } |
| 18515 | _ACEOF |
| 18516 | if ac_fn_c_try_link "$LINENO" |
| 18517 | then : |
| 18518 | ac_cv_lib_rt_sched_yield=yes |
| 18519 | else $as_nop |
| 18520 | ac_cv_lib_rt_sched_yield=no |
| 18521 | fi |
| 18522 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18523 | conftest$ac_exeext conftest.$ac_ext |
| 18524 | LIBS=$ac_check_lib_save_LIBS |
| 18525 | fi |
| 18526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 |
| 18527 | printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } |
| 18528 | if test "x$ac_cv_lib_rt_sched_yield" = xyes |
| 18529 | then : |
| 18530 | LIB_SCHED_YIELD=-lrt |
| 18531 | else $as_nop |
| 18532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
| 18533 | printf %s "checking for sched_yield in -lposix4... " >&6; } |
| 18534 | if test ${ac_cv_lib_posix4_sched_yield+y} |
| 18535 | then : |
| 18536 | printf %s "(cached) " >&6 |
| 18537 | else $as_nop |
| 18538 | ac_check_lib_save_LIBS=$LIBS |
| 18539 | LIBS="-lposix4 $LIBS" |
| 18540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18541 | /* end confdefs.h. */ |
| 18542 | |
| 18543 | /* Override any GCC internal prototype to avoid an error. |
| 18544 | Use char because int might match the return type of a GCC |
| 18545 | builtin and then its argument prototype would still apply. */ |
| 18546 | char sched_yield (); |
| 18547 | int |
| 18548 | main (void) |
| 18549 | { |
| 18550 | return sched_yield (); |
| 18551 | ; |
| 18552 | return 0; |
| 18553 | } |
| 18554 | _ACEOF |
| 18555 | if ac_fn_c_try_link "$LINENO" |
| 18556 | then : |
| 18557 | ac_cv_lib_posix4_sched_yield=yes |
| 18558 | else $as_nop |
| 18559 | ac_cv_lib_posix4_sched_yield=no |
| 18560 | fi |
| 18561 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18562 | conftest$ac_exeext conftest.$ac_ext |
| 18563 | LIBS=$ac_check_lib_save_LIBS |
| 18564 | fi |
| 18565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
| 18566 | printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } |
| 18567 | if test "x$ac_cv_lib_posix4_sched_yield" = xyes |
| 18568 | then : |
| 18569 | LIB_SCHED_YIELD=-lposix4 |
| 18570 | fi |
| 18571 | |
| 18572 | fi |
| 18573 | |
| 18574 | |
| 18575 | fi |
| 18576 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18577 | conftest$ac_exeext conftest.$ac_ext |
| 18578 | |
| 18579 | |
| 18580 | gl_pthreadlib_body_done=done |
| 18581 | fi |
| 18582 | |
| 18583 | LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD |
| 18584 | LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD |
| 18585 | if test $gl_pthread_api = yes; then |
| 18586 | if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then |
| 18587 | gl_threads_api='isoc+posix' |
| 18588 | |
| 18589 | printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h |
| 18590 | |
| 18591 | LIBTHREAD= LTLIBTHREAD= |
| 18592 | else |
| 18593 | gl_threads_api=posix |
| 18594 | |
| 18595 | printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 18596 | |
| 18597 | if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then |
| 18598 | |
| 18599 | printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h |
| 18600 | |
| 18601 | else |
| 18602 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 18603 | |
| 18604 | printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 18605 | |
| 18606 | LIBTHREAD= LTLIBTHREAD= |
| 18607 | else |
| 18608 | case "$host_os" in |
| 18609 | freebsd* | dragonfly* | midnightbsd*) |
| 18610 | if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then |
| 18611 | |
| 18612 | printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 18613 | |
| 18614 | fi |
| 18615 | ;; |
| 18616 | esac |
| 18617 | fi |
| 18618 | fi |
| 18619 | fi |
| 18620 | fi |
| 18621 | fi |
| 18622 | if test $gl_threads_api = none; then |
| 18623 | if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then |
| 18624 | |
| 18625 | |
| 18626 | |
| 18627 | if test -z "$gl_stdthreadlib_body_done"; then |
| 18628 | |
| 18629 | |
| 18630 | case "$host_os" in |
| 18631 | mingw*) |
| 18632 | LIBSTDTHREAD= |
| 18633 | ;; |
| 18634 | *) |
| 18635 | |
| 18636 | |
| 18637 | if test -z "$gl_pthreadlib_body_done"; then |
| 18638 | gl_pthread_api=no |
| 18639 | LIBPTHREAD= |
| 18640 | LIBPMULTITHREAD= |
| 18641 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 18642 | # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. |
| 18643 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 18644 | if test "x$ac_cv_header_pthread_h" = xyes |
| 18645 | then : |
| 18646 | gl_have_pthread_h=yes |
| 18647 | else $as_nop |
| 18648 | gl_have_pthread_h=no |
| 18649 | fi |
| 18650 | |
| 18651 | if test "$gl_have_pthread_h" = yes; then |
| 18652 | # Other possible tests: |
| 18653 | # -lpthreads (FSU threads, PCthreads) |
| 18654 | # -lgthreads |
| 18655 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 18656 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 18657 | # the second one only in libpthread, and lock.c needs it. |
| 18658 | # |
| 18659 | # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 |
| 18660 | # needs -pthread for some reason. See: |
| 18661 | # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html |
| 18662 | save_LIBS=$LIBS |
| 18663 | for gl_pthread in '' '-pthread'; do |
| 18664 | LIBS="$LIBS $gl_pthread" |
| 18665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18666 | /* end confdefs.h. */ |
| 18667 | #include <pthread.h> |
| 18668 | pthread_mutex_t m; |
| 18669 | pthread_mutexattr_t ma; |
| 18670 | |
| 18671 | int |
| 18672 | main (void) |
| 18673 | { |
| 18674 | pthread_mutex_lock (&m); |
| 18675 | pthread_mutexattr_init (&ma); |
| 18676 | ; |
| 18677 | return 0; |
| 18678 | } |
| 18679 | _ACEOF |
| 18680 | if ac_fn_c_try_link "$LINENO" |
| 18681 | then : |
| 18682 | gl_pthread_api=yes |
| 18683 | LIBPTHREAD=$gl_pthread |
| 18684 | LIBPMULTITHREAD=$gl_pthread |
| 18685 | fi |
| 18686 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18687 | conftest$ac_exeext conftest.$ac_ext |
| 18688 | LIBS=$save_LIBS |
| 18689 | test $gl_pthread_api = yes && break |
| 18690 | done |
| 18691 | echo "$as_me:18691: gl_pthread_api=$gl_pthread_api" >&5 |
| 18692 | echo "$as_me:18692: LIBPTHREAD=$LIBPTHREAD" >&5 |
| 18693 | |
| 18694 | gl_pthread_in_glibc=no |
| 18695 | # On Linux with glibc >= 2.34, libc contains the fully functional |
| 18696 | # pthread functions. |
| 18697 | case "$host_os" in |
| 18698 | linux*) |
| 18699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18700 | /* end confdefs.h. */ |
| 18701 | #include <features.h> |
| 18702 | #ifdef __GNU_LIBRARY__ |
| 18703 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) |
| 18704 | Lucky user |
| 18705 | #endif |
| 18706 | #endif |
| 18707 | |
| 18708 | _ACEOF |
| 18709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18710 | $EGREP "Lucky user" >/dev/null 2>&1 |
| 18711 | then : |
| 18712 | gl_pthread_in_glibc=yes |
| 18713 | fi |
| 18714 | rm -rf conftest* |
| 18715 | |
| 18716 | ;; |
| 18717 | esac |
| 18718 | echo "$as_me:18718: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 |
| 18719 | |
| 18720 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 18721 | # since it is defined as a macro on OSF/1.) |
| 18722 | if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then |
| 18723 | # The program links fine without libpthread. But it may actually |
| 18724 | # need to link with libpthread in order to create multiple threads. |
| 18725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 18726 | printf %s "checking for pthread_kill in -lpthread... " >&6; } |
| 18727 | if test ${ac_cv_lib_pthread_pthread_kill+y} |
| 18728 | then : |
| 18729 | printf %s "(cached) " >&6 |
| 18730 | else $as_nop |
| 18731 | ac_check_lib_save_LIBS=$LIBS |
| 18732 | LIBS="-lpthread $LIBS" |
| 18733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18734 | /* end confdefs.h. */ |
| 18735 | |
| 18736 | /* Override any GCC internal prototype to avoid an error. |
| 18737 | Use char because int might match the return type of a GCC |
| 18738 | builtin and then its argument prototype would still apply. */ |
| 18739 | char pthread_kill (); |
| 18740 | int |
| 18741 | main (void) |
| 18742 | { |
| 18743 | return pthread_kill (); |
| 18744 | ; |
| 18745 | return 0; |
| 18746 | } |
| 18747 | _ACEOF |
| 18748 | if ac_fn_c_try_link "$LINENO" |
| 18749 | then : |
| 18750 | ac_cv_lib_pthread_pthread_kill=yes |
| 18751 | else $as_nop |
| 18752 | ac_cv_lib_pthread_pthread_kill=no |
| 18753 | fi |
| 18754 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18755 | conftest$ac_exeext conftest.$ac_ext |
| 18756 | LIBS=$ac_check_lib_save_LIBS |
| 18757 | fi |
| 18758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 18759 | printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 18760 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 18761 | then : |
| 18762 | if test $gl_pthread_in_glibc = yes; then |
| 18763 | LIBPMULTITHREAD= |
| 18764 | else |
| 18765 | LIBPMULTITHREAD=-lpthread |
| 18766 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 18767 | # Therefore pthread_in_use() needs to actually try to create a |
| 18768 | # thread: pthread_create from libc will fail, whereas |
| 18769 | # pthread_create will actually create a thread. |
| 18770 | # On Solaris 10 or newer, this test is no longer needed, because |
| 18771 | # libc contains the fully functional pthread functions. |
| 18772 | case "$host_os" in |
| 18773 | solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) |
| 18774 | |
| 18775 | printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 18776 | |
| 18777 | esac |
| 18778 | fi |
| 18779 | |
| 18780 | fi |
| 18781 | |
| 18782 | elif test $gl_pthread_api != yes; then |
| 18783 | # Some library is needed. Try libpthread and libc_r. |
| 18784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 18785 | printf %s "checking for pthread_kill in -lpthread... " >&6; } |
| 18786 | if test ${ac_cv_lib_pthread_pthread_kill+y} |
| 18787 | then : |
| 18788 | printf %s "(cached) " >&6 |
| 18789 | else $as_nop |
| 18790 | ac_check_lib_save_LIBS=$LIBS |
| 18791 | LIBS="-lpthread $LIBS" |
| 18792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18793 | /* end confdefs.h. */ |
| 18794 | |
| 18795 | /* Override any GCC internal prototype to avoid an error. |
| 18796 | Use char because int might match the return type of a GCC |
| 18797 | builtin and then its argument prototype would still apply. */ |
| 18798 | char pthread_kill (); |
| 18799 | int |
| 18800 | main (void) |
| 18801 | { |
| 18802 | return pthread_kill (); |
| 18803 | ; |
| 18804 | return 0; |
| 18805 | } |
| 18806 | _ACEOF |
| 18807 | if ac_fn_c_try_link "$LINENO" |
| 18808 | then : |
| 18809 | ac_cv_lib_pthread_pthread_kill=yes |
| 18810 | else $as_nop |
| 18811 | ac_cv_lib_pthread_pthread_kill=no |
| 18812 | fi |
| 18813 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18814 | conftest$ac_exeext conftest.$ac_ext |
| 18815 | LIBS=$ac_check_lib_save_LIBS |
| 18816 | fi |
| 18817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 18818 | printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 18819 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 18820 | then : |
| 18821 | gl_pthread_api=yes |
| 18822 | LIBPTHREAD=-lpthread |
| 18823 | LIBPMULTITHREAD=-lpthread |
| 18824 | fi |
| 18825 | |
| 18826 | if test $gl_pthread_api != yes; then |
| 18827 | # For FreeBSD 4. |
| 18828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 18829 | printf %s "checking for pthread_kill in -lc_r... " >&6; } |
| 18830 | if test ${ac_cv_lib_c_r_pthread_kill+y} |
| 18831 | then : |
| 18832 | printf %s "(cached) " >&6 |
| 18833 | else $as_nop |
| 18834 | ac_check_lib_save_LIBS=$LIBS |
| 18835 | LIBS="-lc_r $LIBS" |
| 18836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18837 | /* end confdefs.h. */ |
| 18838 | |
| 18839 | /* Override any GCC internal prototype to avoid an error. |
| 18840 | Use char because int might match the return type of a GCC |
| 18841 | builtin and then its argument prototype would still apply. */ |
| 18842 | char pthread_kill (); |
| 18843 | int |
| 18844 | main (void) |
| 18845 | { |
| 18846 | return pthread_kill (); |
| 18847 | ; |
| 18848 | return 0; |
| 18849 | } |
| 18850 | _ACEOF |
| 18851 | if ac_fn_c_try_link "$LINENO" |
| 18852 | then : |
| 18853 | ac_cv_lib_c_r_pthread_kill=yes |
| 18854 | else $as_nop |
| 18855 | ac_cv_lib_c_r_pthread_kill=no |
| 18856 | fi |
| 18857 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18858 | conftest$ac_exeext conftest.$ac_ext |
| 18859 | LIBS=$ac_check_lib_save_LIBS |
| 18860 | fi |
| 18861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 18862 | printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 18863 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes |
| 18864 | then : |
| 18865 | gl_pthread_api=yes |
| 18866 | LIBPTHREAD=-lc_r |
| 18867 | LIBPMULTITHREAD=-lc_r |
| 18868 | fi |
| 18869 | |
| 18870 | fi |
| 18871 | fi |
| 18872 | echo "$as_me:18872: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 |
| 18873 | fi |
| 18874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 |
| 18875 | printf %s "checking whether POSIX threads API is available... " >&6; } |
| 18876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 |
| 18877 | printf "%s\n" "$gl_pthread_api" >&6; } |
| 18878 | |
| 18879 | |
| 18880 | if test $gl_pthread_api = yes; then |
| 18881 | |
| 18882 | printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h |
| 18883 | |
| 18884 | fi |
| 18885 | |
| 18886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18887 | /* end confdefs.h. */ |
| 18888 | #include <sched.h> |
| 18889 | int |
| 18890 | main (void) |
| 18891 | { |
| 18892 | sched_yield (); |
| 18893 | ; |
| 18894 | return 0; |
| 18895 | } |
| 18896 | _ACEOF |
| 18897 | if ac_fn_c_try_link "$LINENO" |
| 18898 | then : |
| 18899 | LIB_SCHED_YIELD= |
| 18900 | |
| 18901 | else $as_nop |
| 18902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 |
| 18903 | printf %s "checking for sched_yield in -lrt... " >&6; } |
| 18904 | if test ${ac_cv_lib_rt_sched_yield+y} |
| 18905 | then : |
| 18906 | printf %s "(cached) " >&6 |
| 18907 | else $as_nop |
| 18908 | ac_check_lib_save_LIBS=$LIBS |
| 18909 | LIBS="-lrt $LIBS" |
| 18910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18911 | /* end confdefs.h. */ |
| 18912 | |
| 18913 | /* Override any GCC internal prototype to avoid an error. |
| 18914 | Use char because int might match the return type of a GCC |
| 18915 | builtin and then its argument prototype would still apply. */ |
| 18916 | char sched_yield (); |
| 18917 | int |
| 18918 | main (void) |
| 18919 | { |
| 18920 | return sched_yield (); |
| 18921 | ; |
| 18922 | return 0; |
| 18923 | } |
| 18924 | _ACEOF |
| 18925 | if ac_fn_c_try_link "$LINENO" |
| 18926 | then : |
| 18927 | ac_cv_lib_rt_sched_yield=yes |
| 18928 | else $as_nop |
| 18929 | ac_cv_lib_rt_sched_yield=no |
| 18930 | fi |
| 18931 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18932 | conftest$ac_exeext conftest.$ac_ext |
| 18933 | LIBS=$ac_check_lib_save_LIBS |
| 18934 | fi |
| 18935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 |
| 18936 | printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } |
| 18937 | if test "x$ac_cv_lib_rt_sched_yield" = xyes |
| 18938 | then : |
| 18939 | LIB_SCHED_YIELD=-lrt |
| 18940 | else $as_nop |
| 18941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
| 18942 | printf %s "checking for sched_yield in -lposix4... " >&6; } |
| 18943 | if test ${ac_cv_lib_posix4_sched_yield+y} |
| 18944 | then : |
| 18945 | printf %s "(cached) " >&6 |
| 18946 | else $as_nop |
| 18947 | ac_check_lib_save_LIBS=$LIBS |
| 18948 | LIBS="-lposix4 $LIBS" |
| 18949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18950 | /* end confdefs.h. */ |
| 18951 | |
| 18952 | /* Override any GCC internal prototype to avoid an error. |
| 18953 | Use char because int might match the return type of a GCC |
| 18954 | builtin and then its argument prototype would still apply. */ |
| 18955 | char sched_yield (); |
| 18956 | int |
| 18957 | main (void) |
| 18958 | { |
| 18959 | return sched_yield (); |
| 18960 | ; |
| 18961 | return 0; |
| 18962 | } |
| 18963 | _ACEOF |
| 18964 | if ac_fn_c_try_link "$LINENO" |
| 18965 | then : |
| 18966 | ac_cv_lib_posix4_sched_yield=yes |
| 18967 | else $as_nop |
| 18968 | ac_cv_lib_posix4_sched_yield=no |
| 18969 | fi |
| 18970 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18971 | conftest$ac_exeext conftest.$ac_ext |
| 18972 | LIBS=$ac_check_lib_save_LIBS |
| 18973 | fi |
| 18974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
| 18975 | printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } |
| 18976 | if test "x$ac_cv_lib_posix4_sched_yield" = xyes |
| 18977 | then : |
| 18978 | LIB_SCHED_YIELD=-lposix4 |
| 18979 | fi |
| 18980 | |
| 18981 | fi |
| 18982 | |
| 18983 | |
| 18984 | fi |
| 18985 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18986 | conftest$ac_exeext conftest.$ac_ext |
| 18987 | |
| 18988 | |
| 18989 | gl_pthreadlib_body_done=done |
| 18990 | fi |
| 18991 | |
| 18992 | if test $ac_cv_header_threads_h = yes; then |
| 18993 | ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" |
| 18994 | if test "x$ac_cv_func_thrd_create" = xyes |
| 18995 | then : |
| 18996 | printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h |
| 18997 | |
| 18998 | fi |
| 18999 | |
| 19000 | if test $ac_cv_func_thrd_create = yes; then |
| 19001 | LIBSTDTHREAD= |
| 19002 | else |
| 19003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 |
| 19004 | printf %s "checking for thrd_create in -lstdthreads... " >&6; } |
| 19005 | if test ${ac_cv_lib_stdthreads_thrd_create+y} |
| 19006 | then : |
| 19007 | printf %s "(cached) " >&6 |
| 19008 | else $as_nop |
| 19009 | ac_check_lib_save_LIBS=$LIBS |
| 19010 | LIBS="-lstdthreads $LIBS" |
| 19011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19012 | /* end confdefs.h. */ |
| 19013 | |
| 19014 | /* Override any GCC internal prototype to avoid an error. |
| 19015 | Use char because int might match the return type of a GCC |
| 19016 | builtin and then its argument prototype would still apply. */ |
| 19017 | char thrd_create (); |
| 19018 | int |
| 19019 | main (void) |
| 19020 | { |
| 19021 | return thrd_create (); |
| 19022 | ; |
| 19023 | return 0; |
| 19024 | } |
| 19025 | _ACEOF |
| 19026 | if ac_fn_c_try_link "$LINENO" |
| 19027 | then : |
| 19028 | ac_cv_lib_stdthreads_thrd_create=yes |
| 19029 | else $as_nop |
| 19030 | ac_cv_lib_stdthreads_thrd_create=no |
| 19031 | fi |
| 19032 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19033 | conftest$ac_exeext conftest.$ac_ext |
| 19034 | LIBS=$ac_check_lib_save_LIBS |
| 19035 | fi |
| 19036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 |
| 19037 | printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } |
| 19038 | if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes |
| 19039 | then : |
| 19040 | |
| 19041 | LIBSTDTHREAD='-lstdthreads -lpthread' |
| 19042 | |
| 19043 | else $as_nop |
| 19044 | |
| 19045 | LIBSTDTHREAD="$LIBPMULTITHREAD" |
| 19046 | |
| 19047 | fi |
| 19048 | |
| 19049 | fi |
| 19050 | else |
| 19051 | LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" |
| 19052 | fi |
| 19053 | ;; |
| 19054 | esac |
| 19055 | |
| 19056 | |
| 19057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 |
| 19058 | printf %s "checking whether ISO C threads API is available... " >&6; } |
| 19059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 |
| 19060 | printf "%s\n" "$ac_cv_header_threads_h" >&6; } |
| 19061 | gl_stdthreadlib_body_done=done |
| 19062 | fi |
| 19063 | |
| 19064 | LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD |
| 19065 | LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD |
| 19066 | gl_threads_api=isoc |
| 19067 | |
| 19068 | printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h |
| 19069 | |
| 19070 | fi |
| 19071 | fi |
| 19072 | if test $gl_threads_api = none; then |
| 19073 | case "$gl_use_threads" in |
| 19074 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 19075 | if { case "$host_os" in |
| 19076 | mingw*) true;; |
| 19077 | *) false;; |
| 19078 | esac |
| 19079 | }; then |
| 19080 | gl_threads_api=windows |
| 19081 | |
| 19082 | printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 19083 | |
| 19084 | fi |
| 19085 | ;; |
| 19086 | esac |
| 19087 | fi |
| 19088 | fi |
| 19089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 19090 | printf %s "checking for multithread API to use... " >&6; } |
| 19091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 19092 | printf "%s\n" "$gl_threads_api" >&6; } |
| 19093 | |
| 19094 | |
| 19095 | |
| 19096 | |
| 19097 | |
| 19098 | |
| 19099 | |
| 19100 | |
| 19101 | |
| 19102 | |
| 19103 | |
| 19104 | if test "$gl_threads_api" = posix; then |
| 19105 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 19106 | # pthread_rwlock_* functions. |
| 19107 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 19108 | " |
| 19109 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes |
| 19110 | then : |
| 19111 | |
| 19112 | printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 19113 | |
| 19114 | fi |
| 19115 | |
| 19116 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 19117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19118 | /* end confdefs.h. */ |
| 19119 | |
| 19120 | #include <pthread.h> |
| 19121 | int |
| 19122 | main (void) |
| 19123 | { |
| 19124 | |
| 19125 | #if __FreeBSD__ == 4 |
| 19126 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 19127 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 19128 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 19129 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 19130 | #else |
| 19131 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 19132 | return !x; |
| 19133 | #endif |
| 19134 | |
| 19135 | ; |
| 19136 | return 0; |
| 19137 | } |
| 19138 | _ACEOF |
| 19139 | if ac_fn_c_try_compile "$LINENO" |
| 19140 | then : |
| 19141 | |
| 19142 | printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 19143 | |
| 19144 | fi |
| 19145 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19146 | fi |
| 19147 | : |
| 19148 | |
| 19149 | if test "$gl_threads_api" = posix; then |
| 19150 | # The cast to long int works around a bug in the HP C Compiler |
| 19151 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 19152 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 19153 | # This bug is HP SR number 8606223364. |
| 19154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_mutex_t" >&5 |
| 19155 | printf %s "checking size of pthread_mutex_t... " >&6; } |
| 19156 | if test ${ac_cv_sizeof_pthread_mutex_t+y} |
| 19157 | then : |
| 19158 | printf %s "(cached) " >&6 |
| 19159 | else $as_nop |
| 19160 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_mutex_t))" "ac_cv_sizeof_pthread_mutex_t" "$ac_includes_default |
| 19161 | #include <pthread.h> |
| 19162 | " |
| 19163 | then : |
| 19164 | |
| 19165 | else $as_nop |
| 19166 | if test "$ac_cv_type_pthread_mutex_t" = yes; then |
| 19167 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 19168 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 19169 | as_fn_error 77 "cannot compute sizeof (pthread_mutex_t) |
| 19170 | See \`config.log' for more details" "$LINENO" 5; } |
| 19171 | else |
| 19172 | ac_cv_sizeof_pthread_mutex_t=0 |
| 19173 | fi |
| 19174 | fi |
| 19175 | |
| 19176 | fi |
| 19177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_mutex_t" >&5 |
| 19178 | printf "%s\n" "$ac_cv_sizeof_pthread_mutex_t" >&6; } |
| 19179 | |
| 19180 | |
| 19181 | |
| 19182 | printf "%s\n" "#define SIZEOF_PTHREAD_MUTEX_T $ac_cv_sizeof_pthread_mutex_t" >>confdefs.h |
| 19183 | |
| 19184 | |
| 19185 | ac_fn_c_check_header_compile "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default" |
| 19186 | if test "x$ac_cv_header_sys_single_threaded_h" = xyes |
| 19187 | then : |
| 19188 | printf "%s\n" "#define HAVE_SYS_SINGLE_THREADED_H 1" >>confdefs.h |
| 19189 | |
| 19190 | fi |
| 19191 | |
| 19192 | fi |
| 19193 | fi |
| 19194 | |
| 19195 | # Default value for GPG_ERROR_CONFIG_LIBS |
| 19196 | config_libs="-lgpg-error" |
| 19197 | |
| 19198 | # |
| 19199 | # Check for other libraries |
| 19200 | # |
| 19201 | LIB_SCHED_YIELD= |
| 19202 | |
| 19203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 |
| 19204 | printf %s "checking for library containing sched_yield... " >&6; } |
| 19205 | if test ${ac_cv_search_sched_yield+y} |
| 19206 | then : |
| 19207 | printf %s "(cached) " >&6 |
| 19208 | else $as_nop |
| 19209 | ac_func_search_save_LIBS=$LIBS |
| 19210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19211 | /* end confdefs.h. */ |
| 19212 | |
| 19213 | /* Override any GCC internal prototype to avoid an error. |
| 19214 | Use char because int might match the return type of a GCC |
| 19215 | builtin and then its argument prototype would still apply. */ |
| 19216 | char sched_yield (); |
| 19217 | int |
| 19218 | main (void) |
| 19219 | { |
| 19220 | return sched_yield (); |
| 19221 | ; |
| 19222 | return 0; |
| 19223 | } |
| 19224 | _ACEOF |
| 19225 | for ac_lib in '' rt posix4 |
| 19226 | do |
| 19227 | if test -z "$ac_lib"; then |
| 19228 | ac_res="none required" |
| 19229 | else |
| 19230 | ac_res=-l$ac_lib |
| 19231 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19232 | fi |
| 19233 | if ac_fn_c_try_link "$LINENO" |
| 19234 | then : |
| 19235 | ac_cv_search_sched_yield=$ac_res |
| 19236 | fi |
| 19237 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19238 | conftest$ac_exeext |
| 19239 | if test ${ac_cv_search_sched_yield+y} |
| 19240 | then : |
| 19241 | break |
| 19242 | fi |
| 19243 | done |
| 19244 | if test ${ac_cv_search_sched_yield+y} |
| 19245 | then : |
| 19246 | |
| 19247 | else $as_nop |
| 19248 | ac_cv_search_sched_yield=no |
| 19249 | fi |
| 19250 | rm conftest.$ac_ext |
| 19251 | LIBS=$ac_func_search_save_LIBS |
| 19252 | fi |
| 19253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 |
| 19254 | printf "%s\n" "$ac_cv_search_sched_yield" >&6; } |
| 19255 | ac_res=$ac_cv_search_sched_yield |
| 19256 | if test "$ac_res" != no |
| 19257 | then : |
| 19258 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19259 | if test "$ac_cv_search_sched_yield" != "none required"; then |
| 19260 | LIB_SCHED_YIELD=$ac_cv_search_sched_yield |
| 19261 | config_libs="$config_libs $LIB_SCHED_YIELD" |
| 19262 | fi |
| 19263 | fi |
| 19264 | |
| 19265 | |
| 19266 | LIB_NETWORK= |
| 19267 | |
| 19268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 |
| 19269 | printf %s "checking for library containing inet_addr... " >&6; } |
| 19270 | if test ${ac_cv_search_inet_addr+y} |
| 19271 | then : |
| 19272 | printf %s "(cached) " >&6 |
| 19273 | else $as_nop |
| 19274 | ac_func_search_save_LIBS=$LIBS |
| 19275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19276 | /* end confdefs.h. */ |
| 19277 | |
| 19278 | /* Override any GCC internal prototype to avoid an error. |
| 19279 | Use char because int might match the return type of a GCC |
| 19280 | builtin and then its argument prototype would still apply. */ |
| 19281 | char inet_addr (); |
| 19282 | int |
| 19283 | main (void) |
| 19284 | { |
| 19285 | return inet_addr (); |
| 19286 | ; |
| 19287 | return 0; |
| 19288 | } |
| 19289 | _ACEOF |
| 19290 | for ac_lib in '' nsl |
| 19291 | do |
| 19292 | if test -z "$ac_lib"; then |
| 19293 | ac_res="none required" |
| 19294 | else |
| 19295 | ac_res=-l$ac_lib |
| 19296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19297 | fi |
| 19298 | if ac_fn_c_try_link "$LINENO" |
| 19299 | then : |
| 19300 | ac_cv_search_inet_addr=$ac_res |
| 19301 | fi |
| 19302 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19303 | conftest$ac_exeext |
| 19304 | if test ${ac_cv_search_inet_addr+y} |
| 19305 | then : |
| 19306 | break |
| 19307 | fi |
| 19308 | done |
| 19309 | if test ${ac_cv_search_inet_addr+y} |
| 19310 | then : |
| 19311 | |
| 19312 | else $as_nop |
| 19313 | ac_cv_search_inet_addr=no |
| 19314 | fi |
| 19315 | rm conftest.$ac_ext |
| 19316 | LIBS=$ac_func_search_save_LIBS |
| 19317 | fi |
| 19318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 |
| 19319 | printf "%s\n" "$ac_cv_search_inet_addr" >&6; } |
| 19320 | ac_res=$ac_cv_search_inet_addr |
| 19321 | if test "$ac_res" != no |
| 19322 | then : |
| 19323 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19324 | if test "$ac_cv_search_inet_addr" != "none required"; then |
| 19325 | LIB_NETWORK=$ac_cv_search_inet_addr |
| 19326 | fi |
| 19327 | fi |
| 19328 | |
| 19329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 19330 | printf %s "checking for library containing socket... " >&6; } |
| 19331 | if test ${ac_cv_search_socket+y} |
| 19332 | then : |
| 19333 | printf %s "(cached) " >&6 |
| 19334 | else $as_nop |
| 19335 | ac_func_search_save_LIBS=$LIBS |
| 19336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19337 | /* end confdefs.h. */ |
| 19338 | |
| 19339 | /* Override any GCC internal prototype to avoid an error. |
| 19340 | Use char because int might match the return type of a GCC |
| 19341 | builtin and then its argument prototype would still apply. */ |
| 19342 | char socket (); |
| 19343 | int |
| 19344 | main (void) |
| 19345 | { |
| 19346 | return socket (); |
| 19347 | ; |
| 19348 | return 0; |
| 19349 | } |
| 19350 | _ACEOF |
| 19351 | for ac_lib in '' socket |
| 19352 | do |
| 19353 | if test -z "$ac_lib"; then |
| 19354 | ac_res="none required" |
| 19355 | else |
| 19356 | ac_res=-l$ac_lib |
| 19357 | LIBS="-l$ac_lib $LIB_NETWORK $ac_func_search_save_LIBS" |
| 19358 | fi |
| 19359 | if ac_fn_c_try_link "$LINENO" |
| 19360 | then : |
| 19361 | ac_cv_search_socket=$ac_res |
| 19362 | fi |
| 19363 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19364 | conftest$ac_exeext |
| 19365 | if test ${ac_cv_search_socket+y} |
| 19366 | then : |
| 19367 | break |
| 19368 | fi |
| 19369 | done |
| 19370 | if test ${ac_cv_search_socket+y} |
| 19371 | then : |
| 19372 | |
| 19373 | else $as_nop |
| 19374 | ac_cv_search_socket=no |
| 19375 | fi |
| 19376 | rm conftest.$ac_ext |
| 19377 | LIBS=$ac_func_search_save_LIBS |
| 19378 | fi |
| 19379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 19380 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
| 19381 | ac_res=$ac_cv_search_socket |
| 19382 | if test "$ac_res" != no |
| 19383 | then : |
| 19384 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19385 | if test "$ac_cv_search_socket" != "none required"; then |
| 19386 | LIB_NETWORK="$ac_cv_search_socket $LIB_NETWORK" |
| 19387 | fi |
| 19388 | fi |
| 19389 | |
| 19390 | if test "x$LIB_NETWORK" != x; then |
| 19391 | config_libs="$config_libs $LIB_NETWORK" |
| 19392 | fi |
| 19393 | |
| 19394 | # Check for optional readline support |
| 19395 | |
| 19396 | |
| 19397 | # Check whether --with-readline was given. |
| 19398 | if test ${with_readline+y} |
| 19399 | then : |
| 19400 | withval=$with_readline; _do_readline=$withval |
| 19401 | else $as_nop |
| 19402 | _do_readline=yes |
| 19403 | fi |
| 19404 | |
| 19405 | |
| 19406 | gnupg_cv_have_readline=no |
| 19407 | if test "$_do_readline" != "no" ; then |
| 19408 | if test -d "$withval" ; then |
| 19409 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
| 19410 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
| 19411 | fi |
| 19412 | |
| 19413 | for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do |
| 19414 | _readline_save_libs=$LIBS |
| 19415 | _combo="-lreadline${_termcap:+ $_termcap}" |
| 19416 | LIBS="$LIBS $_combo" |
| 19417 | |
| 19418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5 |
| 19419 | printf %s "checking whether readline via \"$_combo\" is present and sane... " >&6; } |
| 19420 | |
| 19421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19422 | /* end confdefs.h. */ |
| 19423 | |
| 19424 | #include <stdio.h> |
| 19425 | #include <readline/readline.h> |
| 19426 | #include <readline/history.h> |
| 19427 | |
| 19428 | int |
| 19429 | main (void) |
| 19430 | { |
| 19431 | |
| 19432 | rl_completion_func_t *completer; |
| 19433 | add_history("foobar"); |
| 19434 | rl_catch_signals=0; |
| 19435 | rl_inhibit_completion=0; |
| 19436 | rl_attempted_completion_function=NULL; |
| 19437 | rl_completion_matches(NULL,NULL); |
| 19438 | |
| 19439 | ; |
| 19440 | return 0; |
| 19441 | } |
| 19442 | _ACEOF |
| 19443 | if ac_fn_c_try_link "$LINENO" |
| 19444 | then : |
| 19445 | _found_readline=yes |
| 19446 | else $as_nop |
| 19447 | _found_readline=no |
| 19448 | fi |
| 19449 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19450 | conftest$ac_exeext conftest.$ac_ext |
| 19451 | |
| 19452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5 |
| 19453 | printf "%s\n" "$_found_readline" >&6; } |
| 19454 | |
| 19455 | LIBS=$_readline_save_libs |
| 19456 | |
| 19457 | if test $_found_readline = yes ; then |
| 19458 | |
| 19459 | printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h |
| 19460 | |
| 19461 | LIBREADLINE=$_combo |
| 19462 | |
| 19463 | gnupg_cv_have_readline=yes |
| 19464 | break |
| 19465 | fi |
| 19466 | done |
| 19467 | |
| 19468 | unset _termcap |
| 19469 | unset _readline_save_libs |
| 19470 | unset _combo |
| 19471 | unset _found_readline |
| 19472 | fi |
| 19473 | |
| 19474 | |
| 19475 | |
| 19476 | # |
| 19477 | # Prepare building of estream |
| 19478 | # |
| 19479 | |
| 19480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 19481 | printf %s "checking for unsigned long long int... " >&6; } |
| 19482 | if test ${ac_cv_type_unsigned_long_long_int+y} |
| 19483 | then : |
| 19484 | printf %s "(cached) " >&6 |
| 19485 | else $as_nop |
| 19486 | ac_cv_type_unsigned_long_long_int=yes |
| 19487 | case $ac_prog_cc_stdc in |
| 19488 | no | c89) ;; |
| 19489 | *) |
| 19490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19491 | /* end confdefs.h. */ |
| 19492 | |
| 19493 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 19494 | implementations with broken preprocessors. Perhaps this can |
| 19495 | be revisited in 2012. In the meantime, code should not expect |
| 19496 | #if to work with literals wider than 32 bits. */ |
| 19497 | /* Test literals. */ |
| 19498 | long long int ll = 9223372036854775807ll; |
| 19499 | long long int nll = -9223372036854775807LL; |
| 19500 | unsigned long long int ull = 18446744073709551615ULL; |
| 19501 | /* Test constant expressions. */ |
| 19502 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 19503 | ? 1 : -1)]; |
| 19504 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 19505 | ? 1 : -1)]; |
| 19506 | int i = 63; |
| 19507 | int |
| 19508 | main (void) |
| 19509 | { |
| 19510 | /* Test availability of runtime routines for shift and division. */ |
| 19511 | long long int llmax = 9223372036854775807ll; |
| 19512 | unsigned long long int ullmax = 18446744073709551615ull; |
| 19513 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 19514 | | (llmax / ll) | (llmax % ll) |
| 19515 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 19516 | | (ullmax / ull) | (ullmax % ull)); |
| 19517 | ; |
| 19518 | return 0; |
| 19519 | } |
| 19520 | |
| 19521 | _ACEOF |
| 19522 | if ac_fn_c_try_link "$LINENO" |
| 19523 | then : |
| 19524 | |
| 19525 | else $as_nop |
| 19526 | ac_cv_type_unsigned_long_long_int=no |
| 19527 | fi |
| 19528 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19529 | conftest$ac_exeext conftest.$ac_ext;; |
| 19530 | esac |
| 19531 | fi |
| 19532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 19533 | printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 19534 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 19535 | |
| 19536 | printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 19537 | |
| 19538 | fi |
| 19539 | |
| 19540 | |
| 19541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system features for estream-printf" >&5 |
| 19542 | printf "%s\n" "$as_me: checking system features for estream-printf" >&6;} |
| 19543 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 19544 | if test "x$ac_cv_header_stdint_h" = xyes |
| 19545 | then : |
| 19546 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 19547 | |
| 19548 | fi |
| 19549 | |
| 19550 | |
| 19551 | |
| 19552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 19553 | printf %s "checking for long long int... " >&6; } |
| 19554 | if test ${ac_cv_type_long_long_int+y} |
| 19555 | then : |
| 19556 | printf %s "(cached) " >&6 |
| 19557 | else $as_nop |
| 19558 | ac_cv_type_long_long_int=yes |
| 19559 | case $ac_prog_cc_stdc in |
| 19560 | no | c89) ;; |
| 19561 | *) |
| 19562 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 19563 | if test $ac_cv_type_long_long_int = yes; then |
| 19564 | if test "$cross_compiling" = yes |
| 19565 | then : |
| 19566 | : |
| 19567 | else $as_nop |
| 19568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19569 | /* end confdefs.h. */ |
| 19570 | #include <limits.h> |
| 19571 | #ifndef LLONG_MAX |
| 19572 | # define HALF \ |
| 19573 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 19574 | # define LLONG_MAX (HALF - 1 + HALF) |
| 19575 | #endif |
| 19576 | int |
| 19577 | main (void) |
| 19578 | { |
| 19579 | long long int n = 1; |
| 19580 | int i; |
| 19581 | for (i = 0; ; i++) |
| 19582 | { |
| 19583 | long long int m = n << i; |
| 19584 | if (m >> i != n) |
| 19585 | return 1; |
| 19586 | if (LLONG_MAX / 2 < m) |
| 19587 | break; |
| 19588 | } |
| 19589 | return 0; |
| 19590 | ; |
| 19591 | return 0; |
| 19592 | } |
| 19593 | _ACEOF |
| 19594 | if ac_fn_c_try_run "$LINENO" |
| 19595 | then : |
| 19596 | |
| 19597 | else $as_nop |
| 19598 | ac_cv_type_long_long_int=no |
| 19599 | fi |
| 19600 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19601 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19602 | fi |
| 19603 | |
| 19604 | fi;; |
| 19605 | esac |
| 19606 | fi |
| 19607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 19608 | printf "%s\n" "$ac_cv_type_long_long_int" >&6; } |
| 19609 | if test $ac_cv_type_long_long_int = yes; then |
| 19610 | |
| 19611 | printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 19612 | |
| 19613 | fi |
| 19614 | |
| 19615 | |
| 19616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 19617 | printf %s "checking for long double... " >&6; } |
| 19618 | if test ${ac_cv_type_long_double+y} |
| 19619 | then : |
| 19620 | printf %s "(cached) " >&6 |
| 19621 | else $as_nop |
| 19622 | if test "$GCC" = yes; then |
| 19623 | ac_cv_type_long_double=yes |
| 19624 | else |
| 19625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19626 | /* end confdefs.h. */ |
| 19627 | /* The Stardent Vistra knows sizeof (long double), but does |
| 19628 | not support it. */ |
| 19629 | long double foo = 0.0L; |
| 19630 | int |
| 19631 | main (void) |
| 19632 | { |
| 19633 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 19634 | sizeof (double) <= sizeof (long double))]; |
| 19635 | test_array [0] = 0; |
| 19636 | return test_array [0]; |
| 19637 | |
| 19638 | ; |
| 19639 | return 0; |
| 19640 | } |
| 19641 | _ACEOF |
| 19642 | if ac_fn_c_try_compile "$LINENO" |
| 19643 | then : |
| 19644 | ac_cv_type_long_double=yes |
| 19645 | else $as_nop |
| 19646 | ac_cv_type_long_double=no |
| 19647 | fi |
| 19648 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19649 | fi |
| 19650 | fi |
| 19651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 19652 | printf "%s\n" "$ac_cv_type_long_double" >&6; } |
| 19653 | if test $ac_cv_type_long_double = yes; then |
| 19654 | |
| 19655 | printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
| 19656 | |
| 19657 | fi |
| 19658 | |
| 19659 | |
| 19660 | |
| 19661 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 19662 | if test "x$ac_cv_type_intmax_t" = xyes |
| 19663 | then : |
| 19664 | |
| 19665 | printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 19666 | |
| 19667 | else $as_nop |
| 19668 | test $ac_cv_type_long_long_int = yes \ |
| 19669 | && ac_type='long long int' \ |
| 19670 | || ac_type='long int' |
| 19671 | |
| 19672 | printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h |
| 19673 | |
| 19674 | fi |
| 19675 | |
| 19676 | |
| 19677 | |
| 19678 | |
| 19679 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" |
| 19680 | if test "x$ac_cv_type_uintmax_t" = xyes |
| 19681 | then : |
| 19682 | |
| 19683 | printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h |
| 19684 | |
| 19685 | else $as_nop |
| 19686 | test $ac_cv_type_unsigned_long_long_int = yes \ |
| 19687 | && ac_type='unsigned long long int' \ |
| 19688 | || ac_type='unsigned long int' |
| 19689 | |
| 19690 | printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h |
| 19691 | |
| 19692 | fi |
| 19693 | |
| 19694 | |
| 19695 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 19696 | if test "x$ac_cv_type_ptrdiff_t" = xyes |
| 19697 | then : |
| 19698 | |
| 19699 | printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h |
| 19700 | |
| 19701 | |
| 19702 | fi |
| 19703 | |
| 19704 | # The cast to long int works around a bug in the HP C Compiler |
| 19705 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 19706 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 19707 | # This bug is HP SR number 8606223364. |
| 19708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| 19709 | printf %s "checking size of unsigned long... " >&6; } |
| 19710 | if test ${ac_cv_sizeof_unsigned_long+y} |
| 19711 | then : |
| 19712 | printf %s "(cached) " >&6 |
| 19713 | else $as_nop |
| 19714 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" |
| 19715 | then : |
| 19716 | |
| 19717 | else $as_nop |
| 19718 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 19719 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 19720 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 19721 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 19722 | See \`config.log' for more details" "$LINENO" 5; } |
| 19723 | else |
| 19724 | ac_cv_sizeof_unsigned_long=0 |
| 19725 | fi |
| 19726 | fi |
| 19727 | |
| 19728 | fi |
| 19729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 19730 | printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } |
| 19731 | |
| 19732 | |
| 19733 | |
| 19734 | printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h |
| 19735 | |
| 19736 | |
| 19737 | # The cast to long int works around a bug in the HP C Compiler |
| 19738 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 19739 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 19740 | # This bug is HP SR number 8606223364. |
| 19741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 19742 | printf %s "checking size of void *... " >&6; } |
| 19743 | if test ${ac_cv_sizeof_void_p+y} |
| 19744 | then : |
| 19745 | printf %s "(cached) " >&6 |
| 19746 | else $as_nop |
| 19747 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" |
| 19748 | then : |
| 19749 | |
| 19750 | else $as_nop |
| 19751 | if test "$ac_cv_type_void_p" = yes; then |
| 19752 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 19753 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 19754 | as_fn_error 77 "cannot compute sizeof (void *) |
| 19755 | See \`config.log' for more details" "$LINENO" 5; } |
| 19756 | else |
| 19757 | ac_cv_sizeof_void_p=0 |
| 19758 | fi |
| 19759 | fi |
| 19760 | |
| 19761 | fi |
| 19762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 19763 | printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } |
| 19764 | |
| 19765 | |
| 19766 | |
| 19767 | printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h |
| 19768 | |
| 19769 | |
| 19770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and THOUSEP" >&5 |
| 19771 | printf %s "checking for nl_langinfo and THOUSEP... " >&6; } |
| 19772 | if test ${estream_cv_langinfo_thousep+y} |
| 19773 | then : |
| 19774 | printf %s "(cached) " >&6 |
| 19775 | else $as_nop |
| 19776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19777 | /* end confdefs.h. */ |
| 19778 | #include <langinfo.h> |
| 19779 | int |
| 19780 | main (void) |
| 19781 | { |
| 19782 | char* cs = nl_langinfo(THOUSEP); return !cs; |
| 19783 | ; |
| 19784 | return 0; |
| 19785 | } |
| 19786 | _ACEOF |
| 19787 | if ac_fn_c_try_link "$LINENO" |
| 19788 | then : |
| 19789 | estream_cv_langinfo_thousep=yes |
| 19790 | else $as_nop |
| 19791 | estream_cv_langinfo_thousep=no |
| 19792 | fi |
| 19793 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19794 | conftest$ac_exeext conftest.$ac_ext |
| 19795 | |
| 19796 | fi |
| 19797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $estream_cv_langinfo_thousep" >&5 |
| 19798 | printf "%s\n" "$estream_cv_langinfo_thousep" >&6; } |
| 19799 | if test $estream_cv_langinfo_thousep = yes; then |
| 19800 | |
| 19801 | printf "%s\n" "#define HAVE_LANGINFO_THOUSEP 1" >>confdefs.h |
| 19802 | |
| 19803 | fi |
| 19804 | |
| 19805 | |
| 19806 | |
| 19807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system features for estream" >&5 |
| 19808 | printf "%s\n" "$as_me: checking system features for estream" >&6;} |
| 19809 | ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" |
| 19810 | if test "x$ac_cv_func_memrchr" = xyes |
| 19811 | then : |
| 19812 | printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h |
| 19813 | |
| 19814 | fi |
| 19815 | |
| 19816 | |
| 19817 | |
| 19818 | # |
| 19819 | # Substitution used for gpg-error-config and gpg-error.pc |
| 19820 | # |
| 19821 | GPG_ERROR_CONFIG_LIBS="$config_libs" |
| 19822 | if test "x$LIBTHREAD" != x; then |
| 19823 | GPG_ERROR_CONFIG_LIBS="${GPG_ERROR_CONFIG_LIBS} ${LIBTHREAD}" |
| 19824 | fi |
| 19825 | if test "x$LIBMULTITHREAD" != x; then |
| 19826 | GPG_ERROR_CONFIG_MT_LIBS="${LIBMULTITHREAD}" |
| 19827 | else |
| 19828 | GPG_ERROR_CONFIG_MT_LIBS="" |
| 19829 | fi |
| 19830 | GPG_ERROR_CONFIG_CFLAGS="" |
| 19831 | if test "x$THREADLIB_CPPFLAGS" != x; then |
| 19832 | GPG_ERROR_CONFIG_MT_CFLAGS="${THREADLIB_CPPFLAGS}" |
| 19833 | else |
| 19834 | GPG_ERROR_CONFIG_MT_CFLAGS="" |
| 19835 | fi |
| 19836 | GPG_ERROR_CONFIG_HOST="$host" |
| 19837 | |
| 19838 | case "$includedir" in |
| 19839 | /usr/include|/include) ;; |
| 19840 | '${prefix}/include') |
| 19841 | if test "$prefix" != / && test "$prefix" != /usr; then |
| 19842 | if test -z "$GPG_ERROR_CONFIG_CFLAGS"; then |
| 19843 | GPG_ERROR_CONFIG_CFLAGS="-I\${includedir}" |
| 19844 | else |
| 19845 | GPG_ERROR_CONFIG_CFLAGS="-I\${includedir} $GPG_ERROR_CONFIG_CFLAGS" |
| 19846 | fi |
| 19847 | fi |
| 19848 | ;; |
| 19849 | *) |
| 19850 | if test -z "$GPG_ERROR_CONFIG_CFLAGS"; then |
| 19851 | GPG_ERROR_CONFIG_CFLAGS="-I\${includedir}" |
| 19852 | else |
| 19853 | GPG_ERROR_CONFIG_CFLAGS="-I\${includedir} $GPG_ERROR_CONFIG_CFLAGS" |
| 19854 | fi |
| 19855 | ;; |
| 19856 | esac |
| 19857 | case "$libdir" in |
| 19858 | /usr/lib|/usr/lib64|/lib|/lib64) ;; |
| 19859 | '${exec_prefix}/lib'|'${exec_prefix}/lib64') |
| 19860 | if test "$exec_prefix" = "NONE"; then |
| 19861 | if test "$prefix" != / && test "$prefix" != /usr; then |
| 19862 | GPG_ERROR_CONFIG_LIBS="-L\${libdir} $GPG_ERROR_CONFIG_LIBS" |
| 19863 | fi |
| 19864 | elif test "$exec_prefix" != / && test "$exec_prefix" != /usr; then |
| 19865 | GPG_ERROR_CONFIG_LIBS="-L\${libdir} $GPG_ERROR_CONFIG_LIBS" |
| 19866 | fi |
| 19867 | ;; |
| 19868 | *) GPG_ERROR_CONFIG_LIBS="-L\${libdir} $GPG_ERROR_CONFIG_LIBS" ;; |
| 19869 | esac |
| 19870 | |
| 19871 | |
| 19872 | |
| 19873 | |
| 19874 | |
| 19875 | |
| 19876 | |
| 19877 | |
| 19878 | |
| 19879 | # |
| 19880 | # Special defines for certain platforms |
| 19881 | # |
| 19882 | force_use_syscfg=no |
| 19883 | if test "$have_w32_system" = yes; then |
| 19884 | |
| 19885 | printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h |
| 19886 | |
| 19887 | if test "$have_w64_system" = yes; then |
| 19888 | |
| 19889 | printf "%s\n" "#define HAVE_W64_SYSTEM 1" >>confdefs.h |
| 19890 | |
| 19891 | fi |
| 19892 | force_use_syscfg=yes |
| 19893 | fi |
| 19894 | if test x"$gl_use_threads" = xno; then |
| 19895 | lock_obj_h_generated=yes |
| 19896 | if test ! -d src; then mkdir src; fi |
| 19897 | host=$host $srcdir/src/gen-lock-obj.sh --disable-threads \ |
| 19898 | >src/lock-obj-pub.native.h |
| 19899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: generated src/lock-obj-pub.native.h for $host" >&5 |
| 19900 | printf "%s\n" "$as_me: generated src/lock-obj-pub.native.h for $host" >&6;} |
| 19901 | elif test x$cross_compiling = xyes; then |
| 19902 | case $host in |
| 19903 | *-*-gnu* | *-*-linux-gnu* | *-*-linux-musl* | wasm*-*-emscripten) |
| 19904 | if test -n "$ac_tool_prefix"; then |
| 19905 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 19906 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 19907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19908 | printf %s "checking for $ac_word... " >&6; } |
| 19909 | if test ${ac_cv_prog_OBJDUMP+y} |
| 19910 | then : |
| 19911 | printf %s "(cached) " >&6 |
| 19912 | else $as_nop |
| 19913 | if test -n "$OBJDUMP"; then |
| 19914 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 19915 | else |
| 19916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19917 | for as_dir in $PATH |
| 19918 | do |
| 19919 | IFS=$as_save_IFS |
| 19920 | case $as_dir in #((( |
| 19921 | '') as_dir=./ ;; |
| 19922 | */) ;; |
| 19923 | *) as_dir=$as_dir/ ;; |
| 19924 | esac |
| 19925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19926 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 19927 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 19928 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 19929 | break 2 |
| 19930 | fi |
| 19931 | done |
| 19932 | done |
| 19933 | IFS=$as_save_IFS |
| 19934 | |
| 19935 | fi |
| 19936 | fi |
| 19937 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 19938 | if test -n "$OBJDUMP"; then |
| 19939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 19940 | printf "%s\n" "$OBJDUMP" >&6; } |
| 19941 | else |
| 19942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19943 | printf "%s\n" "no" >&6; } |
| 19944 | fi |
| 19945 | |
| 19946 | |
| 19947 | fi |
| 19948 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 19949 | ac_ct_OBJDUMP=$OBJDUMP |
| 19950 | # Extract the first word of "objdump", so it can be a program name with args. |
| 19951 | set dummy objdump; ac_word=$2 |
| 19952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 19953 | printf %s "checking for $ac_word... " >&6; } |
| 19954 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 19955 | then : |
| 19956 | printf %s "(cached) " >&6 |
| 19957 | else $as_nop |
| 19958 | if test -n "$ac_ct_OBJDUMP"; then |
| 19959 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 19960 | else |
| 19961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19962 | for as_dir in $PATH |
| 19963 | do |
| 19964 | IFS=$as_save_IFS |
| 19965 | case $as_dir in #((( |
| 19966 | '') as_dir=./ ;; |
| 19967 | */) ;; |
| 19968 | *) as_dir=$as_dir/ ;; |
| 19969 | esac |
| 19970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19971 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 19972 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 19973 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 19974 | break 2 |
| 19975 | fi |
| 19976 | done |
| 19977 | done |
| 19978 | IFS=$as_save_IFS |
| 19979 | |
| 19980 | fi |
| 19981 | fi |
| 19982 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 19983 | if test -n "$ac_ct_OBJDUMP"; then |
| 19984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 19985 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 19986 | else |
| 19987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19988 | printf "%s\n" "no" >&6; } |
| 19989 | fi |
| 19990 | |
| 19991 | if test "x$ac_ct_OBJDUMP" = x; then |
| 19992 | OBJDUMP="" |
| 19993 | else |
| 19994 | case $cross_compiling:$ac_tool_warned in |
| 19995 | yes:) |
| 19996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 19997 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 19998 | ac_tool_warned=yes ;; |
| 19999 | esac |
| 20000 | OBJDUMP=$ac_ct_OBJDUMP |
| 20001 | fi |
| 20002 | else |
| 20003 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 20004 | fi |
| 20005 | |
| 20006 | if test -n "$OBJDUMP"; then |
| 20007 | lock_obj_h_generated=yes |
| 20008 | if test ! -d src; then mkdir src; fi |
| 20009 | LOCK_ABI_VERSION=1 host=$host host_alias=$host_alias \ |
| 20010 | CC=$CC OBJDUMP=$OBJDUMP \ |
| 20011 | ac_ext=$ac_ext ac_objext=$ac_objext \ |
| 20012 | AWK=$AWK $srcdir/src/gen-lock-obj.sh \ |
| 20013 | >src/lock-obj-pub.native.h |
| 20014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: generated src/lock-obj-pub.native.h using $host_alias-objdump and $AWK" >&5 |
| 20015 | printf "%s\n" "$as_me: generated src/lock-obj-pub.native.h using $host_alias-objdump and $AWK" >&6;} |
| 20016 | else |
| 20017 | force_use_syscfg=yes |
| 20018 | fi |
| 20019 | ;; |
| 20020 | *) |
| 20021 | force_use_syscfg=yes |
| 20022 | ;; |
| 20023 | esac |
| 20024 | fi |
| 20025 | |
| 20026 | if test "$have_w32_system" = yes; then |
| 20027 | HAVE_W32_SYSTEM_TRUE= |
| 20028 | HAVE_W32_SYSTEM_FALSE='#' |
| 20029 | else |
| 20030 | HAVE_W32_SYSTEM_TRUE='#' |
| 20031 | HAVE_W32_SYSTEM_FALSE= |
| 20032 | fi |
| 20033 | |
| 20034 | if test "$have_w64_system" = yes; then |
| 20035 | HAVE_W64_SYSTEM_TRUE= |
| 20036 | HAVE_W64_SYSTEM_FALSE='#' |
| 20037 | else |
| 20038 | HAVE_W64_SYSTEM_TRUE='#' |
| 20039 | HAVE_W64_SYSTEM_FALSE= |
| 20040 | fi |
| 20041 | |
| 20042 | if test x$cross_compiling = xyes; then |
| 20043 | CROSS_COMPILING_TRUE= |
| 20044 | CROSS_COMPILING_FALSE='#' |
| 20045 | else |
| 20046 | CROSS_COMPILING_TRUE='#' |
| 20047 | CROSS_COMPILING_FALSE= |
| 20048 | fi |
| 20049 | |
| 20050 | if test x$force_use_syscfg = xyes; then |
| 20051 | FORCE_USE_SYSCFG_TRUE= |
| 20052 | FORCE_USE_SYSCFG_FALSE='#' |
| 20053 | else |
| 20054 | FORCE_USE_SYSCFG_TRUE='#' |
| 20055 | FORCE_USE_SYSCFG_FALSE= |
| 20056 | fi |
| 20057 | |
| 20058 | if test x$lock_obj_h_generated = xyes; then |
| 20059 | HAVE_GENERATED_LOCK_OBJ_H_TRUE= |
| 20060 | HAVE_GENERATED_LOCK_OBJ_H_FALSE='#' |
| 20061 | else |
| 20062 | HAVE_GENERATED_LOCK_OBJ_H_TRUE='#' |
| 20063 | HAVE_GENERATED_LOCK_OBJ_H_FALSE= |
| 20064 | fi |
| 20065 | |
| 20066 | |
| 20067 | have_lock_optimization=no |
| 20068 | if test "$gl_threads_api" = posix; then |
| 20069 | if test x$ac_cv_header_sys_single_threaded_h = xyes; then |
| 20070 | have_lock_optimization=yes |
| 20071 | else |
| 20072 | case "${host_os}" in |
| 20073 | *-gnu*) have_lock_optimization=yes ;; |
| 20074 | * ) ;; |
| 20075 | esac |
| 20076 | fi |
| 20077 | fi |
| 20078 | if test "$have_lock_optimization" = yes; then |
| 20079 | HAVE_LOCK_OPTIMIZATION_TRUE= |
| 20080 | HAVE_LOCK_OPTIMIZATION_FALSE='#' |
| 20081 | else |
| 20082 | HAVE_LOCK_OPTIMIZATION_TRUE='#' |
| 20083 | HAVE_LOCK_OPTIMIZATION_FALSE= |
| 20084 | fi |
| 20085 | |
| 20086 | |
| 20087 | |
| 20088 | printf "%s\n" "#define HOST_TRIPLET_STRING \"$host\"" >>confdefs.h |
| 20089 | |
| 20090 | |
| 20091 | |
| 20092 | # |
| 20093 | # gpgrt_log_clock may require linking with extra libaries. As long as |
| 20094 | # we don't have a good test for this we require the use of this |
| 20095 | # configure option to enabling printing of a timestamp. |
| 20096 | # |
| 20097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5 |
| 20098 | printf %s "checking whether to enable log_clock... " >&6; } |
| 20099 | # Check whether --enable-log_clock was given. |
| 20100 | if test ${enable_log_clock+y} |
| 20101 | then : |
| 20102 | enableval=$enable_log_clock; enable_log_clock=$enableval |
| 20103 | else $as_nop |
| 20104 | enable_log_clock=no |
| 20105 | fi |
| 20106 | |
| 20107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5 |
| 20108 | printf "%s\n" "$enable_log_clock" >&6; } |
| 20109 | if test "$enable_log_clock" = yes ; then |
| 20110 | |
| 20111 | printf "%s\n" "#define ENABLE_LOG_CLOCK 1" >>confdefs.h |
| 20112 | |
| 20113 | fi |
| 20114 | |
| 20115 | # |
| 20116 | # For now we do not build gpgscm by default. |
| 20117 | # Eventually we will reverse the meaning of that option. |
| 20118 | # |
| 20119 | build_gpgscm=no |
| 20120 | #AC_MSG_CHECKING([whether to build gpgscm]) |
| 20121 | #AC_ARG_ENABLE(gpgscm, |
| 20122 | # AS_HELP_STRING([--enable-gpgscm], |
| 20123 | # [build the gpgscm tool]), |
| 20124 | # build_gpgscm=$enableval, build_gpgscm=no) |
| 20125 | #AC_MSG_RESULT($build_gpgscm) |
| 20126 | if test "x$build_gpgscm" != xno; then |
| 20127 | BUILD_GPGSCM_TRUE= |
| 20128 | BUILD_GPGSCM_FALSE='#' |
| 20129 | else |
| 20130 | BUILD_GPGSCM_TRUE='#' |
| 20131 | BUILD_GPGSCM_FALSE= |
| 20132 | fi |
| 20133 | |
| 20134 | |
| 20135 | |
| 20136 | # |
| 20137 | # Add -Werror to CFLAGS. This hack can be used to avoid problems with |
| 20138 | # misbehaving autoconf tests in case the user supplied -Werror. |
| 20139 | # |
| 20140 | # Check whether --enable-werror was given. |
| 20141 | if test ${enable_werror+y} |
| 20142 | then : |
| 20143 | enableval=$enable_werror; if test $enableval = yes ; then |
| 20144 | CFLAGS="$CFLAGS -Werror" |
| 20145 | fi |
| 20146 | fi |
| 20147 | |
| 20148 | |
| 20149 | |
| 20150 | # |
| 20151 | # Provide information about the build. |
| 20152 | # |
| 20153 | BUILD_REVISION="687c9da" |
| 20154 | |
| 20155 | BUILD_COMMITID="687c9da501c21a64f7dcedfa73146a4670009cea" |
| 20156 | |
| 20157 | printf "%s\n" "#define BUILD_COMMITID \"$BUILD_COMMITID\"" >>confdefs.h |
| 20158 | |
| 20159 | |
| 20160 | BUILD_VERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./'` |
| 20161 | BUILD_VERSION="${BUILD_VERSION}0.26748" |
| 20162 | BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,` |
| 20163 | |
| 20164 | |
| 20165 | |
| 20166 | # Check whether --enable-build-timestamp was given. |
| 20167 | if test ${enable_build_timestamp+y} |
| 20168 | then : |
| 20169 | enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then |
| 20170 | BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date` |
| 20171 | else |
| 20172 | BUILD_TIMESTAMP="$enableval" |
| 20173 | fi |
| 20174 | else $as_nop |
| 20175 | BUILD_TIMESTAMP="<none>" |
| 20176 | fi |
| 20177 | |
| 20178 | |
| 20179 | |
| 20180 | printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h |
| 20181 | |
| 20182 | |
| 20183 | |
| 20184 | |
| 20185 | # Check whether --enable-languages was given. |
| 20186 | if test ${enable_languages+y} |
| 20187 | then : |
| 20188 | enableval=$enable_languages; |
| 20189 | fi |
| 20190 | |
| 20191 | if test "x$enable_languages" != xno; then |
| 20192 | LANGUAGES_SOME_TRUE= |
| 20193 | LANGUAGES_SOME_FALSE='#' |
| 20194 | else |
| 20195 | LANGUAGES_SOME_TRUE='#' |
| 20196 | LANGUAGES_SOME_FALSE= |
| 20197 | fi |
| 20198 | |
| 20199 | |
| 20200 | build_doc=yes |
| 20201 | # Check whether --enable-doc was given. |
| 20202 | if test ${enable_doc+y} |
| 20203 | then : |
| 20204 | enableval=$enable_doc; build_doc=$enableval |
| 20205 | else $as_nop |
| 20206 | build_doc=yes |
| 20207 | fi |
| 20208 | |
| 20209 | if test "x$build_doc" != xno; then |
| 20210 | BUILD_DOC_TRUE= |
| 20211 | BUILD_DOC_FALSE='#' |
| 20212 | else |
| 20213 | BUILD_DOC_TRUE='#' |
| 20214 | BUILD_DOC_FALSE= |
| 20215 | fi |
| 20216 | |
| 20217 | |
| 20218 | build_tests=yes |
| 20219 | # Check whether --enable-tests was given. |
| 20220 | if test ${enable_tests+y} |
| 20221 | then : |
| 20222 | enableval=$enable_tests; build_tests=$enableval |
| 20223 | else $as_nop |
| 20224 | build_tests=yes |
| 20225 | fi |
| 20226 | |
| 20227 | if test "x$build_tests" != xno; then |
| 20228 | BUILD_TESTS_TRUE= |
| 20229 | BUILD_TESTS_FALSE='#' |
| 20230 | else |
| 20231 | BUILD_TESTS_TRUE='#' |
| 20232 | BUILD_TESTS_FALSE= |
| 20233 | fi |
| 20234 | |
| 20235 | |
| 20236 | # |
| 20237 | # Substitution |
| 20238 | # |
| 20239 | ac_config_files="$ac_config_files Makefile" |
| 20240 | |
| 20241 | ac_config_files="$ac_config_files doc/Makefile po/Makefile.in m4/Makefile" |
| 20242 | |
| 20243 | ac_config_files="$ac_config_files src/Makefile tests/Makefile" |
| 20244 | |
| 20245 | ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd" |
| 20246 | |
| 20247 | ac_config_files="$ac_config_files src/versioninfo.rc src/gpg-error.w32-manifest" |
| 20248 | |
| 20249 | ac_config_files="$ac_config_files src/gpg-error.pc" |
| 20250 | |
| 20251 | ac_config_files="$ac_config_files src/gpg-error-config-old:src/gpg-error-config.in" |
| 20252 | |
| 20253 | ac_config_files="$ac_config_files src/gpgrt-config" |
| 20254 | |
| 20255 | ac_config_files="$ac_config_files src/gpg-error-config-test.sh" |
| 20256 | |
| 20257 | |
| 20258 | cat >confcache <<\_ACEOF |
| 20259 | # This file is a shell script that caches the results of configure |
| 20260 | # tests run on this system so they can be shared between configure |
| 20261 | # scripts and configure runs, see configure's option --config-cache. |
| 20262 | # It is not useful on other systems. If it contains results you don't |
| 20263 | # want to keep, you may remove or edit it. |
| 20264 | # |
| 20265 | # config.status only pays attention to the cache file if you give it |
| 20266 | # the --recheck option to rerun configure. |
| 20267 | # |
| 20268 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 20269 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20270 | # following values. |
| 20271 | |
| 20272 | _ACEOF |
| 20273 | |
| 20274 | # The following way of writing the cache mishandles newlines in values, |
| 20275 | # but we know of no workaround that is simple, portable, and efficient. |
| 20276 | # So, we kill variables containing newlines. |
| 20277 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20278 | # and sets the high bit in the cache file unless we assign to the vars. |
| 20279 | ( |
| 20280 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20281 | eval ac_val=\$$ac_var |
| 20282 | case $ac_val in #( |
| 20283 | *${as_nl}*) |
| 20284 | case $ac_var in #( |
| 20285 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 20286 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 20287 | esac |
| 20288 | case $ac_var in #( |
| 20289 | _ | IFS | as_nl) ;; #( |
| 20290 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 20291 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 20292 | esac ;; |
| 20293 | esac |
| 20294 | done |
| 20295 | |
| 20296 | (set) 2>&1 | |
| 20297 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20298 | *${as_nl}ac_space=\ *) |
| 20299 | # `set' does not quote correctly, so add quotes: double-quote |
| 20300 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 20301 | sed -n \ |
| 20302 | "s/'/'\\\\''/g; |
| 20303 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 20304 | ;; #( |
| 20305 | *) |
| 20306 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20307 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 20308 | ;; |
| 20309 | esac | |
| 20310 | sort |
| 20311 | ) | |
| 20312 | sed ' |
| 20313 | /^ac_cv_env_/b end |
| 20314 | t clear |
| 20315 | :clear |
| 20316 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 20317 | t end |
| 20318 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20319 | :end' >>confcache |
| 20320 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20321 | if test -w "$cache_file"; then |
| 20322 | if test "x$cache_file" != "x/dev/null"; then |
| 20323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 20324 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 20325 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 20326 | cat confcache >"$cache_file" |
| 20327 | else |
| 20328 | case $cache_file in #( |
| 20329 | */* | ?:*) |
| 20330 | mv -f confcache "$cache_file"$$ && |
| 20331 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 20332 | *) |
| 20333 | mv -f confcache "$cache_file" ;; |
| 20334 | esac |
| 20335 | fi |
| 20336 | fi |
| 20337 | else |
| 20338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 20339 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 20340 | fi |
| 20341 | fi |
| 20342 | rm -f confcache |
| 20343 | |
| 20344 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20345 | # Let make expand exec_prefix. |
| 20346 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20347 | |
| 20348 | DEFS=-DHAVE_CONFIG_H |
| 20349 | |
| 20350 | ac_libobjs= |
| 20351 | ac_ltlibobjs= |
| 20352 | U= |
| 20353 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20354 | # 1. Remove the extension, and $U if already installed. |
| 20355 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 20356 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 20357 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20358 | # will be set to the directory where LIBOBJS objects are built. |
| 20359 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20360 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 20361 | done |
| 20362 | LIBOBJS=$ac_libobjs |
| 20363 | |
| 20364 | LTLIBOBJS=$ac_ltlibobjs |
| 20365 | |
| 20366 | |
| 20367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 20368 | printf %s "checking that generated files are newer than configure... " >&6; } |
| 20369 | if test -n "$am_sleep_pid"; then |
| 20370 | # Hide warnings about reused PIDs. |
| 20371 | wait $am_sleep_pid 2>/dev/null |
| 20372 | fi |
| 20373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 20374 | printf "%s\n" "done" >&6; } |
| 20375 | if test -n "$EXEEXT"; then |
| 20376 | am__EXEEXT_TRUE= |
| 20377 | am__EXEEXT_FALSE='#' |
| 20378 | else |
| 20379 | am__EXEEXT_TRUE='#' |
| 20380 | am__EXEEXT_FALSE= |
| 20381 | fi |
| 20382 | |
| 20383 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 20384 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 20385 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20386 | fi |
| 20387 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 20388 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 20389 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20390 | fi |
| 20391 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 20392 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 20393 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20394 | fi |
| 20395 | if test -z "${INSTALL_GPG_ERROR_CONFIG_TRUE}" && test -z "${INSTALL_GPG_ERROR_CONFIG_FALSE}"; then |
| 20396 | as_fn_error $? "conditional \"INSTALL_GPG_ERROR_CONFIG\" was never defined. |
| 20397 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20398 | fi |
| 20399 | if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then |
| 20400 | as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. |
| 20401 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20402 | fi |
| 20403 | if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then |
| 20404 | as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined. |
| 20405 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20406 | fi |
| 20407 | if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then |
| 20408 | as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined. |
| 20409 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20410 | fi |
| 20411 | if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then |
| 20412 | as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. |
| 20413 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20414 | fi |
| 20415 | if test -z "${FORCE_USE_SYSCFG_TRUE}" && test -z "${FORCE_USE_SYSCFG_FALSE}"; then |
| 20416 | as_fn_error $? "conditional \"FORCE_USE_SYSCFG\" was never defined. |
| 20417 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20418 | fi |
| 20419 | if test -z "${HAVE_GENERATED_LOCK_OBJ_H_TRUE}" && test -z "${HAVE_GENERATED_LOCK_OBJ_H_FALSE}"; then |
| 20420 | as_fn_error $? "conditional \"HAVE_GENERATED_LOCK_OBJ_H\" was never defined. |
| 20421 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20422 | fi |
| 20423 | if test -z "${HAVE_LOCK_OPTIMIZATION_TRUE}" && test -z "${HAVE_LOCK_OPTIMIZATION_FALSE}"; then |
| 20424 | as_fn_error $? "conditional \"HAVE_LOCK_OPTIMIZATION\" was never defined. |
| 20425 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20426 | fi |
| 20427 | if test -z "${BUILD_GPGSCM_TRUE}" && test -z "${BUILD_GPGSCM_FALSE}"; then |
| 20428 | as_fn_error $? "conditional \"BUILD_GPGSCM\" was never defined. |
| 20429 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20430 | fi |
| 20431 | if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then |
| 20432 | as_fn_error $? "conditional \"LANGUAGES_SOME\" was never defined. |
| 20433 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20434 | fi |
| 20435 | if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then |
| 20436 | as_fn_error $? "conditional \"BUILD_DOC\" was never defined. |
| 20437 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20438 | fi |
| 20439 | if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then |
| 20440 | as_fn_error $? "conditional \"BUILD_TESTS\" was never defined. |
| 20441 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 20442 | fi |
| 20443 | |
| 20444 | : "${CONFIG_STATUS=./config.status}" |
| 20445 | ac_write_fail=0 |
| 20446 | ac_clean_files_save=$ac_clean_files |
| 20447 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 20449 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20450 | as_write_fail=0 |
| 20451 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 20452 | #! $SHELL |
| 20453 | # Generated by $as_me. |
| 20454 | # Run this file to recreate the current configuration. |
| 20455 | # Compiler output produced by configure, useful for debugging |
| 20456 | # configure, is in config.log if it exists. |
| 20457 | |
| 20458 | debug=false |
| 20459 | ac_cs_recheck=false |
| 20460 | ac_cs_silent=false |
| 20461 | |
| 20462 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20463 | export SHELL |
| 20464 | _ASEOF |
| 20465 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 20466 | ## -------------------- ## |
| 20467 | ## M4sh Initialization. ## |
| 20468 | ## -------------------- ## |
| 20469 | |
| 20470 | # Be more Bourne compatible |
| 20471 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20472 | as_nop=: |
| 20473 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20474 | then : |
| 20475 | emulate sh |
| 20476 | NULLCMD=: |
| 20477 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 20478 | # is contrary to our usage. Disable this feature. |
| 20479 | alias -g '${1+"$@"}'='"$@"' |
| 20480 | setopt NO_GLOB_SUBST |
| 20481 | else $as_nop |
| 20482 | case `(set -o) 2>/dev/null` in #( |
| 20483 | *posix*) : |
| 20484 | set -o posix ;; #( |
| 20485 | *) : |
| 20486 | ;; |
| 20487 | esac |
| 20488 | fi |
| 20489 | |
| 20490 | |
| 20491 | |
| 20492 | # Reset variables that may have inherited troublesome values from |
| 20493 | # the environment. |
| 20494 | |
| 20495 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 20496 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 20497 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 20498 | # Quoting is to prevent editors from complaining about space-tab. |
| 20499 | as_nl=' |
| 20500 | ' |
| 20501 | export as_nl |
| 20502 | IFS=" "" $as_nl" |
| 20503 | |
| 20504 | PS1='$ ' |
| 20505 | PS2='> ' |
| 20506 | PS4='+ ' |
| 20507 | |
| 20508 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 20509 | LC_ALL=C |
| 20510 | export LC_ALL |
| 20511 | LANGUAGE=C |
| 20512 | export LANGUAGE |
| 20513 | |
| 20514 | # We cannot yet rely on "unset" to work, but we need these variables |
| 20515 | # to be unset--not just set to an empty or harmless value--now, to |
| 20516 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 20517 | # also avoids known problems related to "unset" and subshell syntax |
| 20518 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 20519 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 20520 | do eval test \${$as_var+y} \ |
| 20521 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 20522 | done |
| 20523 | |
| 20524 | # Ensure that fds 0, 1, and 2 are open. |
| 20525 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 20526 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 20527 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 20528 | |
| 20529 | # The user is always right. |
| 20530 | if ${PATH_SEPARATOR+false} :; then |
| 20531 | PATH_SEPARATOR=: |
| 20532 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 20533 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 20534 | PATH_SEPARATOR=';' |
| 20535 | } |
| 20536 | fi |
| 20537 | |
| 20538 | |
| 20539 | # Find who we are. Look in the path if we contain no directory separator. |
| 20540 | as_myself= |
| 20541 | case $0 in #(( |
| 20542 | *[\\/]* ) as_myself=$0 ;; |
| 20543 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20544 | for as_dir in $PATH |
| 20545 | do |
| 20546 | IFS=$as_save_IFS |
| 20547 | case $as_dir in #((( |
| 20548 | '') as_dir=./ ;; |
| 20549 | */) ;; |
| 20550 | *) as_dir=$as_dir/ ;; |
| 20551 | esac |
| 20552 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 20553 | done |
| 20554 | IFS=$as_save_IFS |
| 20555 | |
| 20556 | ;; |
| 20557 | esac |
| 20558 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20559 | # in which case we are not to be found in the path. |
| 20560 | if test "x$as_myself" = x; then |
| 20561 | as_myself=$0 |
| 20562 | fi |
| 20563 | if test ! -f "$as_myself"; then |
| 20564 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20565 | exit 1 |
| 20566 | fi |
| 20567 | |
| 20568 | |
| 20569 | |
| 20570 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 20571 | # ---------------------------------------- |
| 20572 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 20573 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 20574 | # script with STATUS, using 1 if that was 0. |
| 20575 | as_fn_error () |
| 20576 | { |
| 20577 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 20578 | if test "$4"; then |
| 20579 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 20580 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 20581 | fi |
| 20582 | printf "%s\n" "$as_me: error: $2" >&2 |
| 20583 | as_fn_exit $as_status |
| 20584 | } # as_fn_error |
| 20585 | |
| 20586 | |
| 20587 | |
| 20588 | # as_fn_set_status STATUS |
| 20589 | # ----------------------- |
| 20590 | # Set $? to STATUS, without forking. |
| 20591 | as_fn_set_status () |
| 20592 | { |
| 20593 | return $1 |
| 20594 | } # as_fn_set_status |
| 20595 | |
| 20596 | # as_fn_exit STATUS |
| 20597 | # ----------------- |
| 20598 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 20599 | as_fn_exit () |
| 20600 | { |
| 20601 | set +e |
| 20602 | as_fn_set_status $1 |
| 20603 | exit $1 |
| 20604 | } # as_fn_exit |
| 20605 | |
| 20606 | # as_fn_unset VAR |
| 20607 | # --------------- |
| 20608 | # Portably unset VAR. |
| 20609 | as_fn_unset () |
| 20610 | { |
| 20611 | { eval $1=; unset $1;} |
| 20612 | } |
| 20613 | as_unset=as_fn_unset |
| 20614 | |
| 20615 | # as_fn_append VAR VALUE |
| 20616 | # ---------------------- |
| 20617 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 20618 | # advantage of any shell optimizations that allow amortized linear growth over |
| 20619 | # repeated appends, instead of the typical quadratic growth present in naive |
| 20620 | # implementations. |
| 20621 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 20622 | then : |
| 20623 | eval 'as_fn_append () |
| 20624 | { |
| 20625 | eval $1+=\$2 |
| 20626 | }' |
| 20627 | else $as_nop |
| 20628 | as_fn_append () |
| 20629 | { |
| 20630 | eval $1=\$$1\$2 |
| 20631 | } |
| 20632 | fi # as_fn_append |
| 20633 | |
| 20634 | # as_fn_arith ARG... |
| 20635 | # ------------------ |
| 20636 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 20637 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 20638 | # must be portable across $(()) and expr. |
| 20639 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 20640 | then : |
| 20641 | eval 'as_fn_arith () |
| 20642 | { |
| 20643 | as_val=$(( $* )) |
| 20644 | }' |
| 20645 | else $as_nop |
| 20646 | as_fn_arith () |
| 20647 | { |
| 20648 | as_val=`expr "$@" || test $? -eq 1` |
| 20649 | } |
| 20650 | fi # as_fn_arith |
| 20651 | |
| 20652 | |
| 20653 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20654 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20655 | as_expr=expr |
| 20656 | else |
| 20657 | as_expr=false |
| 20658 | fi |
| 20659 | |
| 20660 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20661 | as_basename=basename |
| 20662 | else |
| 20663 | as_basename=false |
| 20664 | fi |
| 20665 | |
| 20666 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20667 | as_dirname=dirname |
| 20668 | else |
| 20669 | as_dirname=false |
| 20670 | fi |
| 20671 | |
| 20672 | as_me=`$as_basename -- "$0" || |
| 20673 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20674 | X"$0" : 'X\(//\)$' \| \ |
| 20675 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 20676 | printf "%s\n" X/"$0" | |
| 20677 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20678 | s//\1/ |
| 20679 | q |
| 20680 | } |
| 20681 | /^X\/\(\/\/\)$/{ |
| 20682 | s//\1/ |
| 20683 | q |
| 20684 | } |
| 20685 | /^X\/\(\/\).*/{ |
| 20686 | s//\1/ |
| 20687 | q |
| 20688 | } |
| 20689 | s/.*/./; q'` |
| 20690 | |
| 20691 | # Avoid depending upon Character Ranges. |
| 20692 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20693 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20694 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20695 | as_cr_digits='0123456789' |
| 20696 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20697 | |
| 20698 | |
| 20699 | # Determine whether it's possible to make 'echo' print without a newline. |
| 20700 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 20701 | # for compatibility with existing Makefiles. |
| 20702 | ECHO_C= ECHO_N= ECHO_T= |
| 20703 | case `echo -n x` in #((((( |
| 20704 | -n*) |
| 20705 | case `echo 'xy\c'` in |
| 20706 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 20707 | xy) ECHO_C='\c';; |
| 20708 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 20709 | ECHO_T=' ';; |
| 20710 | esac;; |
| 20711 | *) |
| 20712 | ECHO_N='-n';; |
| 20713 | esac |
| 20714 | |
| 20715 | # For backward compatibility with old third-party macros, we provide |
| 20716 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 20717 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 20718 | as_echo='printf %s\n' |
| 20719 | as_echo_n='printf %s' |
| 20720 | |
| 20721 | rm -f conf$$ conf$$.exe conf$$.file |
| 20722 | if test -d conf$$.dir; then |
| 20723 | rm -f conf$$.dir/conf$$.file |
| 20724 | else |
| 20725 | rm -f conf$$.dir |
| 20726 | mkdir conf$$.dir 2>/dev/null |
| 20727 | fi |
| 20728 | if (echo >conf$$.file) 2>/dev/null; then |
| 20729 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20730 | as_ln_s='ln -s' |
| 20731 | # ... but there are two gotchas: |
| 20732 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20733 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20734 | # In both cases, we have to default to `cp -pR'. |
| 20735 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 20736 | as_ln_s='cp -pR' |
| 20737 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20738 | as_ln_s=ln |
| 20739 | else |
| 20740 | as_ln_s='cp -pR' |
| 20741 | fi |
| 20742 | else |
| 20743 | as_ln_s='cp -pR' |
| 20744 | fi |
| 20745 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20746 | rmdir conf$$.dir 2>/dev/null |
| 20747 | |
| 20748 | |
| 20749 | # as_fn_mkdir_p |
| 20750 | # ------------- |
| 20751 | # Create "$as_dir" as a directory, including parents if necessary. |
| 20752 | as_fn_mkdir_p () |
| 20753 | { |
| 20754 | |
| 20755 | case $as_dir in #( |
| 20756 | -*) as_dir=./$as_dir;; |
| 20757 | esac |
| 20758 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 20759 | as_dirs= |
| 20760 | while :; do |
| 20761 | case $as_dir in #( |
| 20762 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 20763 | *) as_qdir=$as_dir;; |
| 20764 | esac |
| 20765 | as_dirs="'$as_qdir' $as_dirs" |
| 20766 | as_dir=`$as_dirname -- "$as_dir" || |
| 20767 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20768 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20769 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20770 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 20771 | printf "%s\n" X"$as_dir" | |
| 20772 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20773 | s//\1/ |
| 20774 | q |
| 20775 | } |
| 20776 | /^X\(\/\/\)[^/].*/{ |
| 20777 | s//\1/ |
| 20778 | q |
| 20779 | } |
| 20780 | /^X\(\/\/\)$/{ |
| 20781 | s//\1/ |
| 20782 | q |
| 20783 | } |
| 20784 | /^X\(\/\).*/{ |
| 20785 | s//\1/ |
| 20786 | q |
| 20787 | } |
| 20788 | s/.*/./; q'` |
| 20789 | test -d "$as_dir" && break |
| 20790 | done |
| 20791 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20792 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 20793 | |
| 20794 | |
| 20795 | } # as_fn_mkdir_p |
| 20796 | if mkdir -p . 2>/dev/null; then |
| 20797 | as_mkdir_p='mkdir -p "$as_dir"' |
| 20798 | else |
| 20799 | test -d ./-p && rmdir ./-p |
| 20800 | as_mkdir_p=false |
| 20801 | fi |
| 20802 | |
| 20803 | |
| 20804 | # as_fn_executable_p FILE |
| 20805 | # ----------------------- |
| 20806 | # Test if FILE is an executable regular file. |
| 20807 | as_fn_executable_p () |
| 20808 | { |
| 20809 | test -f "$1" && test -x "$1" |
| 20810 | } # as_fn_executable_p |
| 20811 | as_test_x='test -x' |
| 20812 | as_executable_p=as_fn_executable_p |
| 20813 | |
| 20814 | # Sed expression to map a string onto a valid CPP name. |
| 20815 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 20816 | |
| 20817 | # Sed expression to map a string onto a valid variable name. |
| 20818 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 20819 | |
| 20820 | |
| 20821 | exec 6>&1 |
| 20822 | ## ----------------------------------- ## |
| 20823 | ## Main body of $CONFIG_STATUS script. ## |
| 20824 | ## ----------------------------------- ## |
| 20825 | _ASEOF |
| 20826 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 20827 | |
| 20828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20829 | # Save the log message, to keep $0 and so on meaningful, and to |
| 20830 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20831 | # values after options handling. |
| 20832 | ac_log=" |
| 20833 | This file was extended by libgpg-error $as_me 1.61, which was |
| 20834 | generated by GNU Autoconf 2.71. Invocation command line was |
| 20835 | |
| 20836 | CONFIG_FILES = $CONFIG_FILES |
| 20837 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20838 | CONFIG_LINKS = $CONFIG_LINKS |
| 20839 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20840 | $ $0 $@ |
| 20841 | |
| 20842 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20843 | " |
| 20844 | |
| 20845 | _ACEOF |
| 20846 | |
| 20847 | case $ac_config_files in *" |
| 20848 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 20849 | esac |
| 20850 | |
| 20851 | case $ac_config_headers in *" |
| 20852 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 20853 | esac |
| 20854 | |
| 20855 | |
| 20856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20857 | # Files that config.status was made for. |
| 20858 | config_files="$ac_config_files" |
| 20859 | config_headers="$ac_config_headers" |
| 20860 | config_commands="$ac_config_commands" |
| 20861 | |
| 20862 | _ACEOF |
| 20863 | |
| 20864 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20865 | ac_cs_usage="\ |
| 20866 | \`$as_me' instantiates files and other configuration actions |
| 20867 | from templates according to the current configuration. Unless the files |
| 20868 | and actions are specified as TAGs, all are instantiated by default. |
| 20869 | |
| 20870 | Usage: $0 [OPTION]... [TAG]... |
| 20871 | |
| 20872 | -h, --help print this help, then exit |
| 20873 | -V, --version print version number and configuration settings, then exit |
| 20874 | --config print configuration, then exit |
| 20875 | -q, --quiet, --silent |
| 20876 | do not print progress messages |
| 20877 | -d, --debug don't remove temporary files |
| 20878 | --recheck update $as_me by reconfiguring in the same conditions |
| 20879 | --file=FILE[:TEMPLATE] |
| 20880 | instantiate the configuration file FILE |
| 20881 | --header=FILE[:TEMPLATE] |
| 20882 | instantiate the configuration header FILE |
| 20883 | |
| 20884 | Configuration files: |
| 20885 | $config_files |
| 20886 | |
| 20887 | Configuration headers: |
| 20888 | $config_headers |
| 20889 | |
| 20890 | Configuration commands: |
| 20891 | $config_commands |
| 20892 | |
| 20893 | Report bugs to <https://bugs.gnupg.org>." |
| 20894 | |
| 20895 | _ACEOF |
| 20896 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 20897 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 20898 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20899 | ac_cs_config='$ac_cs_config_escaped' |
| 20900 | ac_cs_version="\\ |
| 20901 | libgpg-error config.status 1.61 |
| 20902 | configured by $0, generated by GNU Autoconf 2.71, |
| 20903 | with options \\"\$ac_cs_config\\" |
| 20904 | |
| 20905 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 20906 | This config.status script is free software; the Free Software Foundation |
| 20907 | gives unlimited permission to copy, distribute and modify it." |
| 20908 | |
| 20909 | ac_pwd='$ac_pwd' |
| 20910 | srcdir='$srcdir' |
| 20911 | INSTALL='$INSTALL' |
| 20912 | MKDIR_P='$MKDIR_P' |
| 20913 | AWK='$AWK' |
| 20914 | test -n "\$AWK" || AWK=awk |
| 20915 | _ACEOF |
| 20916 | |
| 20917 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20918 | # The default lists apply if the user does not specify any file. |
| 20919 | ac_need_defaults=: |
| 20920 | while test $# != 0 |
| 20921 | do |
| 20922 | case $1 in |
| 20923 | --*=?*) |
| 20924 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20925 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 20926 | ac_shift=: |
| 20927 | ;; |
| 20928 | --*=) |
| 20929 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20930 | ac_optarg= |
| 20931 | ac_shift=: |
| 20932 | ;; |
| 20933 | *) |
| 20934 | ac_option=$1 |
| 20935 | ac_optarg=$2 |
| 20936 | ac_shift=shift |
| 20937 | ;; |
| 20938 | esac |
| 20939 | |
| 20940 | case $ac_option in |
| 20941 | # Handling of the options. |
| 20942 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20943 | ac_cs_recheck=: ;; |
| 20944 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 20945 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 20946 | --config | --confi | --conf | --con | --co | --c ) |
| 20947 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 20948 | --debug | --debu | --deb | --de | --d | -d ) |
| 20949 | debug=: ;; |
| 20950 | --file | --fil | --fi | --f ) |
| 20951 | $ac_shift |
| 20952 | case $ac_optarg in |
| 20953 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 20954 | '') as_fn_error $? "missing file argument" ;; |
| 20955 | esac |
| 20956 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 20957 | ac_need_defaults=false;; |
| 20958 | --header | --heade | --head | --hea ) |
| 20959 | $ac_shift |
| 20960 | case $ac_optarg in |
| 20961 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 20962 | esac |
| 20963 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 20964 | ac_need_defaults=false;; |
| 20965 | --he | --h) |
| 20966 | # Conflict between --help and --header |
| 20967 | as_fn_error $? "ambiguous option: \`$1' |
| 20968 | Try \`$0 --help' for more information.";; |
| 20969 | --help | --hel | -h ) |
| 20970 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 20971 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20972 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20973 | ac_cs_silent=: ;; |
| 20974 | |
| 20975 | # This is an error. |
| 20976 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 20977 | Try \`$0 --help' for more information." ;; |
| 20978 | |
| 20979 | *) as_fn_append ac_config_targets " $1" |
| 20980 | ac_need_defaults=false ;; |
| 20981 | |
| 20982 | esac |
| 20983 | shift |
| 20984 | done |
| 20985 | |
| 20986 | ac_configure_extra_args= |
| 20987 | |
| 20988 | if $ac_cs_silent; then |
| 20989 | exec 6>/dev/null |
| 20990 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20991 | fi |
| 20992 | |
| 20993 | _ACEOF |
| 20994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20995 | if \$ac_cs_recheck; then |
| 20996 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20997 | shift |
| 20998 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 20999 | CONFIG_SHELL='$SHELL' |
| 21000 | export CONFIG_SHELL |
| 21001 | exec "\$@" |
| 21002 | fi |
| 21003 | |
| 21004 | _ACEOF |
| 21005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21006 | exec 5>>config.log |
| 21007 | { |
| 21008 | echo |
| 21009 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21010 | ## Running $as_me. ## |
| 21011 | _ASBOX |
| 21012 | printf "%s\n" "$ac_log" |
| 21013 | } >&5 |
| 21014 | |
| 21015 | _ACEOF |
| 21016 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21017 | # |
| 21018 | # INIT-COMMANDS |
| 21019 | # |
| 21020 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 21021 | |
| 21022 | |
| 21023 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 21024 | # if CDPATH is set. |
| 21025 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 21026 | |
| 21027 | sed_quote_subst='$sed_quote_subst' |
| 21028 | double_quote_subst='$double_quote_subst' |
| 21029 | delay_variable_subst='$delay_variable_subst' |
| 21030 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 21031 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 21032 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 21033 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 21034 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 21035 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 21036 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 21037 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 21038 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 21039 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 21040 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 21041 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 21042 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 21043 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 21044 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 21045 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 21046 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 21047 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 21048 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 21049 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 21050 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 21051 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 21052 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 21053 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 21054 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 21055 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 21056 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 21057 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 21058 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 21059 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 21060 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 21061 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 21062 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 21063 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 21064 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 21065 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 21066 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 21067 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 21068 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 21069 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 21070 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 21071 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 21072 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 21073 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 21074 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 21075 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 21076 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21077 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 21078 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 21079 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21080 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21081 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 21082 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 21083 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 21084 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 21085 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 21086 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 21087 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 21088 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 21089 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 21090 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 21091 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 21092 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 21093 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21094 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 21095 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 21096 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 21097 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 21098 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 21099 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 21100 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 21101 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 21102 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 21103 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 21104 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 21105 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 21106 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 21107 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 21108 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 21109 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 21110 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 21111 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 21112 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 21113 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 21114 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 21115 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21116 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21117 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 21118 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 21119 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 21120 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 21121 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 21122 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 21123 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 21124 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 21125 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 21126 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 21127 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 21128 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 21129 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 21130 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 21131 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 21132 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 21133 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 21134 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 21135 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 21136 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 21137 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 21138 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 21139 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 21140 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 21141 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 21142 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 21143 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 21144 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 21145 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 21146 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 21147 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 21148 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 21149 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 21150 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 21151 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 21152 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 21153 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 21154 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21155 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 21156 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 21157 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 21158 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 21159 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 21160 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 21161 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 21162 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 21163 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 21164 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 21165 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 21166 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 21167 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 21168 | LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' |
| 21169 | reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 21170 | reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21171 | old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21172 | compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' |
| 21173 | GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' |
| 21174 | lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 21175 | lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' |
| 21176 | lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' |
| 21177 | lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' |
| 21178 | lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' |
| 21179 | archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' |
| 21180 | enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' |
| 21181 | export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 21182 | whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 21183 | compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' |
| 21184 | old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21185 | old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21186 | archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21187 | archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21188 | module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21189 | module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21190 | with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' |
| 21191 | allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 21192 | no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 21193 | hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 21194 | hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' |
| 21195 | hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' |
| 21196 | hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' |
| 21197 | hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' |
| 21198 | hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' |
| 21199 | hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' |
| 21200 | inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' |
| 21201 | link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' |
| 21202 | always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' |
| 21203 | export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21204 | exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' |
| 21205 | include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' |
| 21206 | prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21207 | postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 21208 | file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 21209 | hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' |
| 21210 | |
| 21211 | LTCC='$LTCC' |
| 21212 | LTCFLAGS='$LTCFLAGS' |
| 21213 | compiler='$compiler_DEFAULT' |
| 21214 | |
| 21215 | # A function that is used when there is no print builtin or printf. |
| 21216 | func_fallback_echo () |
| 21217 | { |
| 21218 | eval 'cat <<_LTECHO_EOF |
| 21219 | \$1 |
| 21220 | _LTECHO_EOF' |
| 21221 | } |
| 21222 | |
| 21223 | # Quote evaled strings. |
| 21224 | for var in AS \ |
| 21225 | DLLTOOL \ |
| 21226 | OBJDUMP \ |
| 21227 | SHELL \ |
| 21228 | ECHO \ |
| 21229 | PATH_SEPARATOR \ |
| 21230 | SED \ |
| 21231 | GREP \ |
| 21232 | EGREP \ |
| 21233 | FGREP \ |
| 21234 | LD \ |
| 21235 | NM \ |
| 21236 | LN_S \ |
| 21237 | lt_SP2NL \ |
| 21238 | lt_NL2SP \ |
| 21239 | reload_flag \ |
| 21240 | FILECMD \ |
| 21241 | deplibs_check_method \ |
| 21242 | file_magic_cmd \ |
| 21243 | file_magic_glob \ |
| 21244 | want_nocaseglob \ |
| 21245 | sharedlib_from_linklib_cmd \ |
| 21246 | AR \ |
| 21247 | archiver_list_spec \ |
| 21248 | STRIP \ |
| 21249 | RANLIB \ |
| 21250 | CC \ |
| 21251 | CFLAGS \ |
| 21252 | compiler \ |
| 21253 | lt_cv_sys_global_symbol_pipe \ |
| 21254 | lt_cv_sys_global_symbol_to_cdecl \ |
| 21255 | lt_cv_sys_global_symbol_to_import \ |
| 21256 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21257 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 21258 | lt_cv_nm_interface \ |
| 21259 | nm_file_list_spec \ |
| 21260 | lt_cv_truncate_bin \ |
| 21261 | lt_prog_compiler_no_builtin_flag \ |
| 21262 | lt_prog_compiler_pic \ |
| 21263 | lt_prog_compiler_wl \ |
| 21264 | lt_prog_compiler_static \ |
| 21265 | lt_cv_prog_compiler_c_o \ |
| 21266 | need_locks \ |
| 21267 | MANIFEST_TOOL \ |
| 21268 | DSYMUTIL \ |
| 21269 | NMEDIT \ |
| 21270 | LIPO \ |
| 21271 | OTOOL \ |
| 21272 | OTOOL64 \ |
| 21273 | shrext_cmds \ |
| 21274 | export_dynamic_flag_spec \ |
| 21275 | whole_archive_flag_spec \ |
| 21276 | compiler_needs_object \ |
| 21277 | with_gnu_ld \ |
| 21278 | allow_undefined_flag \ |
| 21279 | no_undefined_flag \ |
| 21280 | hardcode_libdir_flag_spec \ |
| 21281 | hardcode_libdir_separator \ |
| 21282 | exclude_expsyms \ |
| 21283 | include_expsyms \ |
| 21284 | file_list_spec \ |
| 21285 | variables_saved_for_relink \ |
| 21286 | libname_spec \ |
| 21287 | library_names_spec \ |
| 21288 | soname_spec \ |
| 21289 | install_override_mode \ |
| 21290 | finish_eval \ |
| 21291 | old_striplib \ |
| 21292 | striplib \ |
| 21293 | LD_RC \ |
| 21294 | reload_flag_RC \ |
| 21295 | compiler_RC \ |
| 21296 | lt_prog_compiler_no_builtin_flag_RC \ |
| 21297 | lt_prog_compiler_pic_RC \ |
| 21298 | lt_prog_compiler_wl_RC \ |
| 21299 | lt_prog_compiler_static_RC \ |
| 21300 | lt_cv_prog_compiler_c_o_RC \ |
| 21301 | export_dynamic_flag_spec_RC \ |
| 21302 | whole_archive_flag_spec_RC \ |
| 21303 | compiler_needs_object_RC \ |
| 21304 | with_gnu_ld_RC \ |
| 21305 | allow_undefined_flag_RC \ |
| 21306 | no_undefined_flag_RC \ |
| 21307 | hardcode_libdir_flag_spec_RC \ |
| 21308 | hardcode_libdir_separator_RC \ |
| 21309 | exclude_expsyms_RC \ |
| 21310 | include_expsyms_RC \ |
| 21311 | file_list_spec_RC; do |
| 21312 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 21313 | *[\\\\\\\`\\"\\\$]*) |
| 21314 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 21315 | ;; |
| 21316 | *) |
| 21317 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 21318 | ;; |
| 21319 | esac |
| 21320 | done |
| 21321 | |
| 21322 | # Double-quote double-evaled strings. |
| 21323 | for var in reload_cmds \ |
| 21324 | old_postinstall_cmds \ |
| 21325 | old_postuninstall_cmds \ |
| 21326 | old_archive_cmds \ |
| 21327 | extract_expsyms_cmds \ |
| 21328 | old_archive_from_new_cmds \ |
| 21329 | old_archive_from_expsyms_cmds \ |
| 21330 | archive_cmds \ |
| 21331 | archive_expsym_cmds \ |
| 21332 | module_cmds \ |
| 21333 | module_expsym_cmds \ |
| 21334 | export_symbols_cmds \ |
| 21335 | prelink_cmds \ |
| 21336 | postlink_cmds \ |
| 21337 | postinstall_cmds \ |
| 21338 | postuninstall_cmds \ |
| 21339 | finish_cmds \ |
| 21340 | sys_lib_search_path_spec \ |
| 21341 | configure_time_dlsearch_path \ |
| 21342 | configure_time_lt_sys_library_path \ |
| 21343 | reload_cmds_RC \ |
| 21344 | old_archive_cmds_RC \ |
| 21345 | old_archive_from_new_cmds_RC \ |
| 21346 | old_archive_from_expsyms_cmds_RC \ |
| 21347 | archive_cmds_RC \ |
| 21348 | archive_expsym_cmds_RC \ |
| 21349 | module_cmds_RC \ |
| 21350 | module_expsym_cmds_RC \ |
| 21351 | export_symbols_cmds_RC \ |
| 21352 | prelink_cmds_RC \ |
| 21353 | postlink_cmds_RC; do |
| 21354 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 21355 | *[\\\\\\\`\\"\\\$]*) |
| 21356 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 21357 | ;; |
| 21358 | *) |
| 21359 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 21360 | ;; |
| 21361 | esac |
| 21362 | done |
| 21363 | |
| 21364 | ac_aux_dir='$ac_aux_dir' |
| 21365 | |
| 21366 | # See if we are running on zsh, and set the options that allow our |
| 21367 | # commands through without removal of \ escapes INIT. |
| 21368 | if test -n "\${ZSH_VERSION+set}"; then |
| 21369 | setopt NO_GLOB_SUBST |
| 21370 | fi |
| 21371 | |
| 21372 | |
| 21373 | PACKAGE='$PACKAGE' |
| 21374 | VERSION='$VERSION' |
| 21375 | RM='$RM' |
| 21376 | ofile='$ofile' |
| 21377 | |
| 21378 | |
| 21379 | |
| 21380 | |
| 21381 | |
| 21382 | build_selection=$build_libtool_modification |
| 21383 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 21384 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. |
| 21385 | OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" |
| 21386 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 21387 | LINGUAS="${LINGUAS-%UNSET%}" |
| 21388 | |
| 21389 | |
| 21390 | _ACEOF |
| 21391 | |
| 21392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21393 | |
| 21394 | # Handling of arguments. |
| 21395 | for ac_config_target in $ac_config_targets |
| 21396 | do |
| 21397 | case $ac_config_target in |
| 21398 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 21399 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 21400 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 21401 | "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;; |
| 21402 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 21403 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 21404 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 21405 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 21406 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 21407 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 21408 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 21409 | "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;; |
| 21410 | "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;; |
| 21411 | "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;; |
| 21412 | "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;; |
| 21413 | "src/gpg-error.w32-manifest") CONFIG_FILES="$CONFIG_FILES src/gpg-error.w32-manifest" ;; |
| 21414 | "src/gpg-error.pc") CONFIG_FILES="$CONFIG_FILES src/gpg-error.pc" ;; |
| 21415 | "src/gpg-error-config-old") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config-old:src/gpg-error-config.in" ;; |
| 21416 | "src/gpgrt-config") CONFIG_FILES="$CONFIG_FILES src/gpgrt-config" ;; |
| 21417 | "src/gpg-error-config-test.sh") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config-test.sh" ;; |
| 21418 | |
| 21419 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 21420 | esac |
| 21421 | done |
| 21422 | |
| 21423 | |
| 21424 | # If the user did not use the arguments to specify the items to instantiate, |
| 21425 | # then the envvar interface is used. Set only those that are not. |
| 21426 | # We use the long form for the default assignment because of an extremely |
| 21427 | # bizarre bug on SunOS 4.1.3. |
| 21428 | if $ac_need_defaults; then |
| 21429 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 21430 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 21431 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 21432 | fi |
| 21433 | |
| 21434 | # Have a temporary directory for convenience. Make it in the build tree |
| 21435 | # simply because there is no reason against having it here, and in addition, |
| 21436 | # creating and moving files from /tmp can sometimes cause problems. |
| 21437 | # Hook for its removal unless debugging. |
| 21438 | # Note that there is a small window in which the directory will not be cleaned: |
| 21439 | # after its creation but before its name has been assigned to `$tmp'. |
| 21440 | $debug || |
| 21441 | { |
| 21442 | tmp= ac_tmp= |
| 21443 | trap 'exit_status=$? |
| 21444 | : "${ac_tmp:=$tmp}" |
| 21445 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 21446 | ' 0 |
| 21447 | trap 'as_fn_exit 1' 1 2 13 15 |
| 21448 | } |
| 21449 | # Create a (secure) tmp directory for tmp files. |
| 21450 | |
| 21451 | { |
| 21452 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 21453 | test -d "$tmp" |
| 21454 | } || |
| 21455 | { |
| 21456 | tmp=./conf$$-$RANDOM |
| 21457 | (umask 077 && mkdir "$tmp") |
| 21458 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 21459 | ac_tmp=$tmp |
| 21460 | |
| 21461 | # Set up the scripts for CONFIG_FILES section. |
| 21462 | # No need to generate them if there are no CONFIG_FILES. |
| 21463 | # This happens for instance with `./config.status config.h'. |
| 21464 | if test -n "$CONFIG_FILES"; then |
| 21465 | |
| 21466 | |
| 21467 | ac_cr=`echo X | tr X '\015'` |
| 21468 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 21469 | # But we know of no other shell where ac_cr would be empty at this |
| 21470 | # point, so we can use a bashism as a fallback. |
| 21471 | if test "x$ac_cr" = x; then |
| 21472 | eval ac_cr=\$\'\\r\' |
| 21473 | fi |
| 21474 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 21475 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 21476 | ac_cs_awk_cr='\\r' |
| 21477 | else |
| 21478 | ac_cs_awk_cr=$ac_cr |
| 21479 | fi |
| 21480 | |
| 21481 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 21482 | _ACEOF |
| 21483 | |
| 21484 | |
| 21485 | { |
| 21486 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 21487 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 21488 | echo "_ACEOF" |
| 21489 | } >conf$$subs.sh || |
| 21490 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 21491 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 21492 | ac_delim='%!_!# ' |
| 21493 | for ac_last_try in false false false false false :; do |
| 21494 | . ./conf$$subs.sh || |
| 21495 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 21496 | |
| 21497 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 21498 | if test $ac_delim_n = $ac_delim_num; then |
| 21499 | break |
| 21500 | elif $ac_last_try; then |
| 21501 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 21502 | else |
| 21503 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21504 | fi |
| 21505 | done |
| 21506 | rm -f conf$$subs.sh |
| 21507 | |
| 21508 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21509 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 21510 | _ACEOF |
| 21511 | sed -n ' |
| 21512 | h |
| 21513 | s/^/S["/; s/!.*/"]=/ |
| 21514 | p |
| 21515 | g |
| 21516 | s/^[^!]*!// |
| 21517 | :repl |
| 21518 | t repl |
| 21519 | s/'"$ac_delim"'$// |
| 21520 | t delim |
| 21521 | :nl |
| 21522 | h |
| 21523 | s/\(.\{148\}\)..*/\1/ |
| 21524 | t more1 |
| 21525 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 21526 | p |
| 21527 | n |
| 21528 | b repl |
| 21529 | :more1 |
| 21530 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 21531 | p |
| 21532 | g |
| 21533 | s/.\{148\}// |
| 21534 | t nl |
| 21535 | :delim |
| 21536 | h |
| 21537 | s/\(.\{148\}\)..*/\1/ |
| 21538 | t more2 |
| 21539 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 21540 | p |
| 21541 | b |
| 21542 | :more2 |
| 21543 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 21544 | p |
| 21545 | g |
| 21546 | s/.\{148\}// |
| 21547 | t delim |
| 21548 | ' <conf$$subs.awk | sed ' |
| 21549 | /^[^""]/{ |
| 21550 | N |
| 21551 | s/\n// |
| 21552 | } |
| 21553 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 21554 | rm -f conf$$subs.awk |
| 21555 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21556 | _ACAWK |
| 21557 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 21558 | for (key in S) S_is_set[key] = 1 |
| 21559 | FS = "" |
| 21560 | |
| 21561 | } |
| 21562 | { |
| 21563 | line = $ 0 |
| 21564 | nfields = split(line, field, "@") |
| 21565 | substed = 0 |
| 21566 | len = length(field[1]) |
| 21567 | for (i = 2; i < nfields; i++) { |
| 21568 | key = field[i] |
| 21569 | keylen = length(key) |
| 21570 | if (S_is_set[key]) { |
| 21571 | value = S[key] |
| 21572 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 21573 | len += length(value) + length(field[++i]) |
| 21574 | substed = 1 |
| 21575 | } else |
| 21576 | len += 1 + keylen |
| 21577 | } |
| 21578 | |
| 21579 | print line |
| 21580 | } |
| 21581 | |
| 21582 | _ACAWK |
| 21583 | _ACEOF |
| 21584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21585 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 21586 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 21587 | else |
| 21588 | cat |
| 21589 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 21590 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 21591 | _ACEOF |
| 21592 | |
| 21593 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 21594 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 21595 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21596 | # (actually we leave an empty line to preserve line numbers). |
| 21597 | if test "x$srcdir" = x.; then |
| 21598 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 21599 | h |
| 21600 | s/// |
| 21601 | s/^/:/ |
| 21602 | s/[ ]*$/:/ |
| 21603 | s/:\$(srcdir):/:/g |
| 21604 | s/:\${srcdir}:/:/g |
| 21605 | s/:@srcdir@:/:/g |
| 21606 | s/^:*// |
| 21607 | s/:*$// |
| 21608 | x |
| 21609 | s/\(=[ ]*\).*/\1/ |
| 21610 | G |
| 21611 | s/\n// |
| 21612 | s/^[^=]*=[ ]*$// |
| 21613 | }' |
| 21614 | fi |
| 21615 | |
| 21616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21617 | fi # test -n "$CONFIG_FILES" |
| 21618 | |
| 21619 | # Set up the scripts for CONFIG_HEADERS section. |
| 21620 | # No need to generate them if there are no CONFIG_HEADERS. |
| 21621 | # This happens for instance with `./config.status Makefile'. |
| 21622 | if test -n "$CONFIG_HEADERS"; then |
| 21623 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 21624 | BEGIN { |
| 21625 | _ACEOF |
| 21626 | |
| 21627 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 21628 | # here-document in config.status, that substitutes the proper values into |
| 21629 | # config.h.in to produce config.h. |
| 21630 | |
| 21631 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 21632 | # handling of long lines. |
| 21633 | ac_delim='%!_!# ' |
| 21634 | for ac_last_try in false false :; do |
| 21635 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 21636 | if test -z "$ac_tt"; then |
| 21637 | break |
| 21638 | elif $ac_last_try; then |
| 21639 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 21640 | else |
| 21641 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21642 | fi |
| 21643 | done |
| 21644 | |
| 21645 | # For the awk script, D is an array of macro values keyed by name, |
| 21646 | # likewise P contains macro parameters if any. Preserve backslash |
| 21647 | # newline sequences. |
| 21648 | |
| 21649 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21650 | sed -n ' |
| 21651 | s/.\{148\}/&'"$ac_delim"'/g |
| 21652 | t rset |
| 21653 | :rset |
| 21654 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 21655 | t def |
| 21656 | d |
| 21657 | :def |
| 21658 | s/\\$// |
| 21659 | t bsnl |
| 21660 | s/["\\]/\\&/g |
| 21661 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21662 | D["\1"]=" \3"/p |
| 21663 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 21664 | d |
| 21665 | :bsnl |
| 21666 | s/["\\]/\\&/g |
| 21667 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 21668 | D["\1"]=" \3\\\\\\n"\\/p |
| 21669 | t cont |
| 21670 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 21671 | t cont |
| 21672 | d |
| 21673 | :cont |
| 21674 | n |
| 21675 | s/.\{148\}/&'"$ac_delim"'/g |
| 21676 | t clear |
| 21677 | :clear |
| 21678 | s/\\$// |
| 21679 | t bsnlc |
| 21680 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 21681 | d |
| 21682 | :bsnlc |
| 21683 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 21684 | b cont |
| 21685 | ' <confdefs.h | sed ' |
| 21686 | s/'"$ac_delim"'/"\\\ |
| 21687 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 21688 | |
| 21689 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21690 | for (key in D) D_is_set[key] = 1 |
| 21691 | FS = "" |
| 21692 | } |
| 21693 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 21694 | line = \$ 0 |
| 21695 | split(line, arg, " ") |
| 21696 | if (arg[1] == "#") { |
| 21697 | defundef = arg[2] |
| 21698 | mac1 = arg[3] |
| 21699 | } else { |
| 21700 | defundef = substr(arg[1], 2) |
| 21701 | mac1 = arg[2] |
| 21702 | } |
| 21703 | split(mac1, mac2, "(") #) |
| 21704 | macro = mac2[1] |
| 21705 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 21706 | if (D_is_set[macro]) { |
| 21707 | # Preserve the white space surrounding the "#". |
| 21708 | print prefix "define", macro P[macro] D[macro] |
| 21709 | next |
| 21710 | } else { |
| 21711 | # Replace #undef with comments. This is necessary, for example, |
| 21712 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 21713 | # on some systems where configure will not decide to define it. |
| 21714 | if (defundef == "undef") { |
| 21715 | print "/*", prefix defundef, macro, "*/" |
| 21716 | next |
| 21717 | } |
| 21718 | } |
| 21719 | } |
| 21720 | { print } |
| 21721 | _ACAWK |
| 21722 | _ACEOF |
| 21723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21724 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 21725 | fi # test -n "$CONFIG_HEADERS" |
| 21726 | |
| 21727 | |
| 21728 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 21729 | shift |
| 21730 | for ac_tag |
| 21731 | do |
| 21732 | case $ac_tag in |
| 21733 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21734 | esac |
| 21735 | case $ac_mode$ac_tag in |
| 21736 | :[FHL]*:*);; |
| 21737 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 21738 | :[FH]-) ac_tag=-:-;; |
| 21739 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21740 | esac |
| 21741 | ac_save_IFS=$IFS |
| 21742 | IFS=: |
| 21743 | set x $ac_tag |
| 21744 | IFS=$ac_save_IFS |
| 21745 | shift |
| 21746 | ac_file=$1 |
| 21747 | shift |
| 21748 | |
| 21749 | case $ac_mode in |
| 21750 | :L) ac_source=$1;; |
| 21751 | :[FH]) |
| 21752 | ac_file_inputs= |
| 21753 | for ac_f |
| 21754 | do |
| 21755 | case $ac_f in |
| 21756 | -) ac_f="$ac_tmp/stdin";; |
| 21757 | *) # Look for the file first in the build tree, then in the source tree |
| 21758 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21759 | # because $ac_f cannot contain `:'. |
| 21760 | test -f "$ac_f" || |
| 21761 | case $ac_f in |
| 21762 | [\\/$]*) false;; |
| 21763 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21764 | esac || |
| 21765 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 21766 | esac |
| 21767 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 21768 | as_fn_append ac_file_inputs " '$ac_f'" |
| 21769 | done |
| 21770 | |
| 21771 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21772 | # use $as_me), people would be surprised to read: |
| 21773 | # /* config.h. Generated by config.status. */ |
| 21774 | configure_input='Generated from '` |
| 21775 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 21776 | `' by configure.' |
| 21777 | if test x"$ac_file" != x-; then |
| 21778 | configure_input="$ac_file. $configure_input" |
| 21779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 21780 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 21781 | fi |
| 21782 | # Neutralize special characters interpreted by sed in replacement strings. |
| 21783 | case $configure_input in #( |
| 21784 | *\&* | *\|* | *\\* ) |
| 21785 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 21786 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 21787 | *) ac_sed_conf_input=$configure_input;; |
| 21788 | esac |
| 21789 | |
| 21790 | case $ac_tag in |
| 21791 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 21792 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 21793 | esac |
| 21794 | ;; |
| 21795 | esac |
| 21796 | |
| 21797 | ac_dir=`$as_dirname -- "$ac_file" || |
| 21798 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21799 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21800 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21801 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 21802 | printf "%s\n" X"$ac_file" | |
| 21803 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21804 | s//\1/ |
| 21805 | q |
| 21806 | } |
| 21807 | /^X\(\/\/\)[^/].*/{ |
| 21808 | s//\1/ |
| 21809 | q |
| 21810 | } |
| 21811 | /^X\(\/\/\)$/{ |
| 21812 | s//\1/ |
| 21813 | q |
| 21814 | } |
| 21815 | /^X\(\/\).*/{ |
| 21816 | s//\1/ |
| 21817 | q |
| 21818 | } |
| 21819 | s/.*/./; q'` |
| 21820 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 21821 | ac_builddir=. |
| 21822 | |
| 21823 | case "$ac_dir" in |
| 21824 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21825 | *) |
| 21826 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 21827 | # A ".." for each directory in $ac_dir_suffix. |
| 21828 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 21829 | case $ac_top_builddir_sub in |
| 21830 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21831 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21832 | esac ;; |
| 21833 | esac |
| 21834 | ac_abs_top_builddir=$ac_pwd |
| 21835 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21836 | # for backward compatibility: |
| 21837 | ac_top_builddir=$ac_top_build_prefix |
| 21838 | |
| 21839 | case $srcdir in |
| 21840 | .) # We are building in place. |
| 21841 | ac_srcdir=. |
| 21842 | ac_top_srcdir=$ac_top_builddir_sub |
| 21843 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21844 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 21845 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21846 | ac_top_srcdir=$srcdir |
| 21847 | ac_abs_top_srcdir=$srcdir ;; |
| 21848 | *) # Relative name. |
| 21849 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21850 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21851 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 21852 | esac |
| 21853 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 21854 | |
| 21855 | |
| 21856 | case $ac_mode in |
| 21857 | :F) |
| 21858 | # |
| 21859 | # CONFIG_FILE |
| 21860 | # |
| 21861 | |
| 21862 | case $INSTALL in |
| 21863 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 21864 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 21865 | esac |
| 21866 | ac_MKDIR_P=$MKDIR_P |
| 21867 | case $MKDIR_P in |
| 21868 | [\\/$]* | ?:[\\/]* ) ;; |
| 21869 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 21870 | esac |
| 21871 | _ACEOF |
| 21872 | |
| 21873 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21874 | # If the template does not know about datarootdir, expand it. |
| 21875 | # FIXME: This hack should be removed a few years after 2.60. |
| 21876 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 21877 | ac_sed_dataroot=' |
| 21878 | /datarootdir/ { |
| 21879 | p |
| 21880 | q |
| 21881 | } |
| 21882 | /@datadir@/p |
| 21883 | /@docdir@/p |
| 21884 | /@infodir@/p |
| 21885 | /@localedir@/p |
| 21886 | /@mandir@/p' |
| 21887 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 21888 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21889 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 21890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21891 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 21892 | _ACEOF |
| 21893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21894 | ac_datarootdir_hack=' |
| 21895 | s&@datadir@&$datadir&g |
| 21896 | s&@docdir@&$docdir&g |
| 21897 | s&@infodir@&$infodir&g |
| 21898 | s&@localedir@&$localedir&g |
| 21899 | s&@mandir@&$mandir&g |
| 21900 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 21901 | esac |
| 21902 | _ACEOF |
| 21903 | |
| 21904 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21905 | # Shell code in configure.ac might set extrasub. |
| 21906 | # FIXME: do we really want to maintain this feature? |
| 21907 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 21908 | ac_sed_extra="$ac_vpsub |
| 21909 | $extrasub |
| 21910 | _ACEOF |
| 21911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 21912 | :t |
| 21913 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21914 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 21915 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21916 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 21917 | s&@srcdir@&$ac_srcdir&;t t |
| 21918 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21919 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21920 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21921 | s&@builddir@&$ac_builddir&;t t |
| 21922 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21923 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21924 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21925 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 21926 | $ac_datarootdir_hack |
| 21927 | " |
| 21928 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 21929 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 21930 | |
| 21931 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21932 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 21933 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 21934 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 21935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21936 | which seems to be undefined. Please make sure it is defined" >&5 |
| 21937 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21938 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 21939 | |
| 21940 | rm -f "$ac_tmp/stdin" |
| 21941 | case $ac_file in |
| 21942 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 21943 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 21944 | esac \ |
| 21945 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 21946 | ;; |
| 21947 | :H) |
| 21948 | # |
| 21949 | # CONFIG_HEADER |
| 21950 | # |
| 21951 | if test x"$ac_file" != x-; then |
| 21952 | { |
| 21953 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 21954 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 21955 | } >"$ac_tmp/config.h" \ |
| 21956 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 21957 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 21958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 21959 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 21960 | else |
| 21961 | rm -f "$ac_file" |
| 21962 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 21963 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 21964 | fi |
| 21965 | else |
| 21966 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 21967 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 21968 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 21969 | fi |
| 21970 | # Compute "$ac_file"'s index in $config_headers. |
| 21971 | _am_arg="$ac_file" |
| 21972 | _am_stamp_count=1 |
| 21973 | for _am_header in $config_headers :; do |
| 21974 | case $_am_header in |
| 21975 | $_am_arg | $_am_arg:* ) |
| 21976 | break ;; |
| 21977 | * ) |
| 21978 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 21979 | esac |
| 21980 | done |
| 21981 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 21982 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21983 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 21984 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 21985 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 21986 | printf "%s\n" X"$_am_arg" | |
| 21987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21988 | s//\1/ |
| 21989 | q |
| 21990 | } |
| 21991 | /^X\(\/\/\)[^/].*/{ |
| 21992 | s//\1/ |
| 21993 | q |
| 21994 | } |
| 21995 | /^X\(\/\/\)$/{ |
| 21996 | s//\1/ |
| 21997 | q |
| 21998 | } |
| 21999 | /^X\(\/\).*/{ |
| 22000 | s//\1/ |
| 22001 | q |
| 22002 | } |
| 22003 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 22004 | ;; |
| 22005 | |
| 22006 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 22007 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 22008 | ;; |
| 22009 | esac |
| 22010 | |
| 22011 | |
| 22012 | case $ac_file$ac_mode in |
| 22013 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 22014 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 22015 | # are listed without --file. Let's play safe and only enable the eval |
| 22016 | # if we detect the quoting. |
| 22017 | # TODO: see whether this extra hack can be removed once we start |
| 22018 | # requiring Autoconf 2.70 or later. |
| 22019 | case $CONFIG_FILES in #( |
| 22020 | *\'*) : |
| 22021 | eval set x "$CONFIG_FILES" ;; #( |
| 22022 | *) : |
| 22023 | set x $CONFIG_FILES ;; #( |
| 22024 | *) : |
| 22025 | ;; |
| 22026 | esac |
| 22027 | shift |
| 22028 | # Used to flag and report bootstrapping failures. |
| 22029 | am_rc=0 |
| 22030 | for am_mf |
| 22031 | do |
| 22032 | # Strip MF so we end up with the name of the file. |
| 22033 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 22034 | # Check whether this is an Automake generated Makefile which includes |
| 22035 | # dependency-tracking related rules and includes. |
| 22036 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 22037 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 22038 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 22039 | || continue |
| 22040 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 22041 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22042 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 22043 | X"$am_mf" : 'X\(//\)$' \| \ |
| 22044 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 22045 | printf "%s\n" X"$am_mf" | |
| 22046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22047 | s//\1/ |
| 22048 | q |
| 22049 | } |
| 22050 | /^X\(\/\/\)[^/].*/{ |
| 22051 | s//\1/ |
| 22052 | q |
| 22053 | } |
| 22054 | /^X\(\/\/\)$/{ |
| 22055 | s//\1/ |
| 22056 | q |
| 22057 | } |
| 22058 | /^X\(\/\).*/{ |
| 22059 | s//\1/ |
| 22060 | q |
| 22061 | } |
| 22062 | s/.*/./; q'` |
| 22063 | am_filepart=`$as_basename -- "$am_mf" || |
| 22064 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22065 | X"$am_mf" : 'X\(//\)$' \| \ |
| 22066 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 22067 | printf "%s\n" X/"$am_mf" | |
| 22068 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 22069 | s//\1/ |
| 22070 | q |
| 22071 | } |
| 22072 | /^X\/\(\/\/\)$/{ |
| 22073 | s//\1/ |
| 22074 | q |
| 22075 | } |
| 22076 | /^X\/\(\/\).*/{ |
| 22077 | s//\1/ |
| 22078 | q |
| 22079 | } |
| 22080 | s/.*/./; q'` |
| 22081 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 22082 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 22083 | | $MAKE -f - am--depfiles" >&5 |
| 22084 | (cd "$am_dirpart" \ |
| 22085 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 22086 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 22087 | ac_status=$? |
| 22088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22089 | (exit $ac_status); } || am_rc=$? |
| 22090 | done |
| 22091 | if test $am_rc -ne 0; then |
| 22092 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 22093 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22094 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 22095 | for automatic dependency tracking. If GNU make was not used, consider |
| 22096 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 22097 | necessary). You can also try re-running configure with the |
| 22098 | '--disable-dependency-tracking' option to at least be able to build |
| 22099 | the package (albeit without support for automatic dependency tracking). |
| 22100 | See \`config.log' for more details" "$LINENO" 5; } |
| 22101 | fi |
| 22102 | { am_dirpart=; unset am_dirpart;} |
| 22103 | { am_filepart=; unset am_filepart;} |
| 22104 | { am_mf=; unset am_mf;} |
| 22105 | { am_rc=; unset am_rc;} |
| 22106 | rm -f conftest-deps.mk |
| 22107 | } |
| 22108 | ;; |
| 22109 | "libtool":C) |
| 22110 | |
| 22111 | # See if we are running on zsh, and set the options that allow our |
| 22112 | # commands through without removal of \ escapes. |
| 22113 | if test -n "${ZSH_VERSION+set}"; then |
| 22114 | setopt NO_GLOB_SUBST |
| 22115 | fi |
| 22116 | |
| 22117 | cfgfile=${ofile}T |
| 22118 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 22119 | $RM "$cfgfile" |
| 22120 | |
| 22121 | cat <<_LT_EOF >> "$cfgfile" |
| 22122 | #! $SHELL |
| 22123 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 22124 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 22125 | |
| 22126 | # Provide generalized library-building support services. |
| 22127 | # Written by Gordon Matzigkeit, 1996 |
| 22128 | |
| 22129 | # Copyright (C) 2014 Free Software Foundation, Inc. |
| 22130 | # This is free software; see the source for copying conditions. There is NO |
| 22131 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 22132 | |
| 22133 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 22134 | # it under the terms of the GNU General Public License as published by |
| 22135 | # the Free Software Foundation; either version 2 of of the License, or |
| 22136 | # (at your option) any later version. |
| 22137 | # |
| 22138 | # As a special exception to the GNU General Public License, if you |
| 22139 | # distribute this file as part of a program or library that is built |
| 22140 | # using GNU Libtool, you may include this file under the same |
| 22141 | # distribution terms that you use for the rest of that program. |
| 22142 | # |
| 22143 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 22144 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22145 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22146 | # GNU General Public License for more details. |
| 22147 | # |
| 22148 | # You should have received a copy of the GNU General Public License |
| 22149 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22150 | |
| 22151 | |
| 22152 | # The names of the tagged configurations supported by this script. |
| 22153 | available_tags='RC ' |
| 22154 | |
| 22155 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 22156 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 22157 | |
| 22158 | # ### BEGIN LIBTOOL CONFIG |
| 22159 | |
| 22160 | # Which release of libtool.m4 was used? |
| 22161 | macro_version=$macro_version |
| 22162 | macro_revision=$macro_revision |
| 22163 | |
| 22164 | # Assembler program. |
| 22165 | AS=$lt_AS |
| 22166 | |
| 22167 | # DLL creation program. |
| 22168 | DLLTOOL=$lt_DLLTOOL |
| 22169 | |
| 22170 | # Object dumper program. |
| 22171 | OBJDUMP=$lt_OBJDUMP |
| 22172 | |
| 22173 | # Whether or not to build static libraries. |
| 22174 | build_old_libs=$enable_static |
| 22175 | |
| 22176 | # Whether or not to build shared libraries. |
| 22177 | build_libtool_libs=$enable_shared |
| 22178 | |
| 22179 | # What type of objects to build. |
| 22180 | pic_mode=$pic_mode |
| 22181 | |
| 22182 | # Whether or not to optimize for fast installation. |
| 22183 | fast_install=$enable_fast_install |
| 22184 | |
| 22185 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 22186 | shared_archive_member_spec=$shared_archive_member_spec |
| 22187 | |
| 22188 | # Shell to use when invoking shell scripts. |
| 22189 | SHELL=$lt_SHELL |
| 22190 | |
| 22191 | # An echo program that protects backslashes. |
| 22192 | ECHO=$lt_ECHO |
| 22193 | |
| 22194 | # The PATH separator for the build system. |
| 22195 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 22196 | |
| 22197 | # The host system. |
| 22198 | host_alias=$host_alias |
| 22199 | host=$host |
| 22200 | host_os=$host_os |
| 22201 | |
| 22202 | # The build system. |
| 22203 | build_alias=$build_alias |
| 22204 | build=$build |
| 22205 | build_os=$build_os |
| 22206 | |
| 22207 | # A sed program that does not truncate output. |
| 22208 | SED=$lt_SED |
| 22209 | |
| 22210 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 22211 | Xsed="\$SED -e 1s/^X//" |
| 22212 | |
| 22213 | # A grep program that handles long lines. |
| 22214 | GREP=$lt_GREP |
| 22215 | |
| 22216 | # An ERE matcher. |
| 22217 | EGREP=$lt_EGREP |
| 22218 | |
| 22219 | # A literal string matcher. |
| 22220 | FGREP=$lt_FGREP |
| 22221 | |
| 22222 | # A BSD- or MS-compatible name lister. |
| 22223 | NM=$lt_NM |
| 22224 | |
| 22225 | # Whether we need soft or hard links. |
| 22226 | LN_S=$lt_LN_S |
| 22227 | |
| 22228 | # What is the maximum length of a command? |
| 22229 | max_cmd_len=$max_cmd_len |
| 22230 | |
| 22231 | # Object file suffix (normally "o"). |
| 22232 | objext=$ac_objext |
| 22233 | |
| 22234 | # Executable file suffix (normally ""). |
| 22235 | exeext=$exeext |
| 22236 | |
| 22237 | # whether the shell understands "unset". |
| 22238 | lt_unset=$lt_unset |
| 22239 | |
| 22240 | # turn spaces into newlines. |
| 22241 | SP2NL=$lt_lt_SP2NL |
| 22242 | |
| 22243 | # turn newlines into spaces. |
| 22244 | NL2SP=$lt_lt_NL2SP |
| 22245 | |
| 22246 | # convert \$build file names to \$host format. |
| 22247 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 22248 | |
| 22249 | # convert \$build files to toolchain format. |
| 22250 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 22251 | |
| 22252 | # A file(cmd) program that detects file types. |
| 22253 | FILECMD=$lt_FILECMD |
| 22254 | |
| 22255 | # Method to check whether dependent libraries are shared objects. |
| 22256 | deplibs_check_method=$lt_deplibs_check_method |
| 22257 | |
| 22258 | # Command to use when deplibs_check_method = "file_magic". |
| 22259 | file_magic_cmd=$lt_file_magic_cmd |
| 22260 | |
| 22261 | # How to find potential files when deplibs_check_method = "file_magic". |
| 22262 | file_magic_glob=$lt_file_magic_glob |
| 22263 | |
| 22264 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 22265 | want_nocaseglob=$lt_want_nocaseglob |
| 22266 | |
| 22267 | # Command to associate shared and link libraries. |
| 22268 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 22269 | |
| 22270 | # The archiver. |
| 22271 | AR=$lt_AR |
| 22272 | |
| 22273 | # Flags to create an archive (by configure). |
| 22274 | lt_ar_flags=$lt_ar_flags |
| 22275 | |
| 22276 | # Flags to create an archive. |
| 22277 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 22278 | |
| 22279 | # How to feed a file listing to the archiver. |
| 22280 | archiver_list_spec=$lt_archiver_list_spec |
| 22281 | |
| 22282 | # A symbol stripping program. |
| 22283 | STRIP=$lt_STRIP |
| 22284 | |
| 22285 | # Commands used to install an old-style archive. |
| 22286 | RANLIB=$lt_RANLIB |
| 22287 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 22288 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 22289 | |
| 22290 | # Whether to use a lock for old archive extraction. |
| 22291 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 22292 | |
| 22293 | # A C compiler. |
| 22294 | LTCC=$lt_CC |
| 22295 | |
| 22296 | # LTCC compiler flags. |
| 22297 | LTCFLAGS=$lt_CFLAGS |
| 22298 | |
| 22299 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 22300 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 22301 | |
| 22302 | # Transform the output of nm in a proper C declaration. |
| 22303 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 22304 | |
| 22305 | # Transform the output of nm into a list of symbols to manually relocate. |
| 22306 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 22307 | |
| 22308 | # Transform the output of nm in a C name address pair. |
| 22309 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 22310 | |
| 22311 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 22312 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 22313 | |
| 22314 | # The name lister interface. |
| 22315 | nm_interface=$lt_lt_cv_nm_interface |
| 22316 | |
| 22317 | # Specify filename containing input files for \$NM. |
| 22318 | nm_file_list_spec=$lt_nm_file_list_spec |
| 22319 | |
| 22320 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 22321 | lt_sysroot=$lt_sysroot |
| 22322 | |
| 22323 | # Command to truncate a binary pipe. |
| 22324 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 22325 | |
| 22326 | # The name of the directory that contains temporary libtool files. |
| 22327 | objdir=$objdir |
| 22328 | |
| 22329 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 22330 | MAGIC_CMD=$MAGIC_CMD |
| 22331 | |
| 22332 | # Must we lock files when doing compilation? |
| 22333 | need_locks=$lt_need_locks |
| 22334 | |
| 22335 | # Manifest tool. |
| 22336 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 22337 | |
| 22338 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 22339 | DSYMUTIL=$lt_DSYMUTIL |
| 22340 | |
| 22341 | # Tool to change global to local symbols on Mac OS X. |
| 22342 | NMEDIT=$lt_NMEDIT |
| 22343 | |
| 22344 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 22345 | LIPO=$lt_LIPO |
| 22346 | |
| 22347 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 22348 | OTOOL=$lt_OTOOL |
| 22349 | |
| 22350 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 22351 | OTOOL64=$lt_OTOOL64 |
| 22352 | |
| 22353 | # Old archive suffix (normally "a"). |
| 22354 | libext=$libext |
| 22355 | |
| 22356 | # Shared library suffix (normally ".so"). |
| 22357 | shrext_cmds=$lt_shrext_cmds |
| 22358 | |
| 22359 | # The commands to extract the exported symbol list from a shared archive. |
| 22360 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 22361 | |
| 22362 | # Variables whose values should be saved in libtool wrapper scripts and |
| 22363 | # restored at link time. |
| 22364 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 22365 | |
| 22366 | # Do we need the "lib" prefix for modules? |
| 22367 | need_lib_prefix=$need_lib_prefix |
| 22368 | |
| 22369 | # Do we need a version for libraries? |
| 22370 | need_version=$need_version |
| 22371 | |
| 22372 | # Library versioning type. |
| 22373 | version_type=$version_type |
| 22374 | |
| 22375 | # Shared library runtime path variable. |
| 22376 | runpath_var=$runpath_var |
| 22377 | |
| 22378 | # Shared library path variable. |
| 22379 | shlibpath_var=$shlibpath_var |
| 22380 | |
| 22381 | # Is shlibpath searched before the hard-coded library search path? |
| 22382 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 22383 | |
| 22384 | # Format of library name prefix. |
| 22385 | libname_spec=$lt_libname_spec |
| 22386 | |
| 22387 | # List of archive names. First name is the real one, the rest are links. |
| 22388 | # The last name is the one that the linker finds with -lNAME |
| 22389 | library_names_spec=$lt_library_names_spec |
| 22390 | |
| 22391 | # The coded name of the library, if different from the real name. |
| 22392 | soname_spec=$lt_soname_spec |
| 22393 | |
| 22394 | # Permission mode override for installation of shared libraries. |
| 22395 | install_override_mode=$lt_install_override_mode |
| 22396 | |
| 22397 | # Command to use after installation of a shared archive. |
| 22398 | postinstall_cmds=$lt_postinstall_cmds |
| 22399 | |
| 22400 | # Command to use after uninstallation of a shared archive. |
| 22401 | postuninstall_cmds=$lt_postuninstall_cmds |
| 22402 | |
| 22403 | # Commands used to finish a libtool library installation in a directory. |
| 22404 | finish_cmds=$lt_finish_cmds |
| 22405 | |
| 22406 | # As "finish_cmds", except a single script fragment to be evaled but |
| 22407 | # not shown. |
| 22408 | finish_eval=$lt_finish_eval |
| 22409 | |
| 22410 | # Whether we should hardcode library paths into libraries. |
| 22411 | hardcode_into_libs=$hardcode_into_libs |
| 22412 | |
| 22413 | # Compile-time system search path for libraries. |
| 22414 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 22415 | |
| 22416 | # Detected run-time system search path for libraries. |
| 22417 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 22418 | |
| 22419 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 22420 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 22421 | |
| 22422 | # Whether dlopen is supported. |
| 22423 | dlopen_support=$enable_dlopen |
| 22424 | |
| 22425 | # Whether dlopen of programs is supported. |
| 22426 | dlopen_self=$enable_dlopen_self |
| 22427 | |
| 22428 | # Whether dlopen of statically linked programs is supported. |
| 22429 | dlopen_self_static=$enable_dlopen_self_static |
| 22430 | |
| 22431 | # Commands to strip libraries. |
| 22432 | old_striplib=$lt_old_striplib |
| 22433 | striplib=$lt_striplib |
| 22434 | |
| 22435 | |
| 22436 | # The linker used to build libraries. |
| 22437 | LD=$lt_LD |
| 22438 | |
| 22439 | # How to create reloadable object files. |
| 22440 | reload_flag=$lt_reload_flag |
| 22441 | reload_cmds=$lt_reload_cmds |
| 22442 | |
| 22443 | # Commands used to build an old-style archive. |
| 22444 | old_archive_cmds=$lt_old_archive_cmds |
| 22445 | |
| 22446 | # A language specific compiler. |
| 22447 | CC=$lt_compiler |
| 22448 | |
| 22449 | # Is the compiler the GNU compiler? |
| 22450 | with_gcc=$GCC |
| 22451 | |
| 22452 | # Compiler flag to turn off builtin functions. |
| 22453 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 22454 | |
| 22455 | # Additional compiler flags for building library objects. |
| 22456 | pic_flag=$lt_lt_prog_compiler_pic |
| 22457 | |
| 22458 | # How to pass a linker flag through the compiler. |
| 22459 | wl=$lt_lt_prog_compiler_wl |
| 22460 | |
| 22461 | # Compiler flag to prevent dynamic linking. |
| 22462 | link_static_flag=$lt_lt_prog_compiler_static |
| 22463 | |
| 22464 | # Does compiler simultaneously support -c and -o options? |
| 22465 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 22466 | |
| 22467 | # Whether or not to add -lc for building shared libraries. |
| 22468 | build_libtool_need_lc=$archive_cmds_need_lc |
| 22469 | |
| 22470 | # Whether or not to disallow shared libs when runtime libs are static. |
| 22471 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 22472 | |
| 22473 | # Compiler flag to allow reflexive dlopens. |
| 22474 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 22475 | |
| 22476 | # Compiler flag to generate shared objects directly from archives. |
| 22477 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 22478 | |
| 22479 | # Whether the compiler copes with passing no objects directly. |
| 22480 | compiler_needs_object=$lt_compiler_needs_object |
| 22481 | |
| 22482 | # Create an old-style archive from a shared archive. |
| 22483 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 22484 | |
| 22485 | # Create a temporary old-style archive to link instead of a shared archive. |
| 22486 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 22487 | |
| 22488 | # Commands used to build a shared archive. |
| 22489 | archive_cmds=$lt_archive_cmds |
| 22490 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 22491 | |
| 22492 | # Commands used to build a loadable module if different from building |
| 22493 | # a shared archive. |
| 22494 | module_cmds=$lt_module_cmds |
| 22495 | module_expsym_cmds=$lt_module_expsym_cmds |
| 22496 | |
| 22497 | # Whether we are building with GNU ld or not. |
| 22498 | with_gnu_ld=$lt_with_gnu_ld |
| 22499 | |
| 22500 | # Flag that allows shared libraries with undefined symbols to be built. |
| 22501 | allow_undefined_flag=$lt_allow_undefined_flag |
| 22502 | |
| 22503 | # Flag that enforces no undefined symbols. |
| 22504 | no_undefined_flag=$lt_no_undefined_flag |
| 22505 | |
| 22506 | # Flag to hardcode \$libdir into a binary during linking. |
| 22507 | # This must work even if \$libdir does not exist |
| 22508 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 22509 | |
| 22510 | # Whether we need a single "-rpath" flag with a separated argument. |
| 22511 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 22512 | |
| 22513 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22514 | # DIR into the resulting binary. |
| 22515 | hardcode_direct=$hardcode_direct |
| 22516 | |
| 22517 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22518 | # DIR into the resulting binary and the resulting library dependency is |
| 22519 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 22520 | # library is relocated. |
| 22521 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 22522 | |
| 22523 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 22524 | # into the resulting binary. |
| 22525 | hardcode_minus_L=$hardcode_minus_L |
| 22526 | |
| 22527 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 22528 | # into the resulting binary. |
| 22529 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 22530 | |
| 22531 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 22532 | # into the library and all subsequent libraries and executables linked |
| 22533 | # against it. |
| 22534 | hardcode_automatic=$hardcode_automatic |
| 22535 | |
| 22536 | # Set to yes if linker adds runtime paths of dependent libraries |
| 22537 | # to runtime path list. |
| 22538 | inherit_rpath=$inherit_rpath |
| 22539 | |
| 22540 | # Whether libtool must link a program against all its dependency libraries. |
| 22541 | link_all_deplibs=$link_all_deplibs |
| 22542 | |
| 22543 | # Set to "yes" if exported symbols are required. |
| 22544 | always_export_symbols=$always_export_symbols |
| 22545 | |
| 22546 | # The commands to list exported symbols. |
| 22547 | export_symbols_cmds=$lt_export_symbols_cmds |
| 22548 | |
| 22549 | # Symbols that should not be listed in the preloaded symbols. |
| 22550 | exclude_expsyms=$lt_exclude_expsyms |
| 22551 | |
| 22552 | # Symbols that must always be exported. |
| 22553 | include_expsyms=$lt_include_expsyms |
| 22554 | |
| 22555 | # Commands necessary for linking programs (against libraries) with templates. |
| 22556 | prelink_cmds=$lt_prelink_cmds |
| 22557 | |
| 22558 | # Commands necessary for finishing linking programs. |
| 22559 | postlink_cmds=$lt_postlink_cmds |
| 22560 | |
| 22561 | # Specify filename containing input files. |
| 22562 | file_list_spec=$lt_file_list_spec |
| 22563 | |
| 22564 | # How to hardcode a shared library path into an executable. |
| 22565 | hardcode_action=$hardcode_action |
| 22566 | |
| 22567 | # ### END LIBTOOL CONFIG |
| 22568 | |
| 22569 | _LT_EOF |
| 22570 | |
| 22571 | cat <<'_LT_EOF' >> "$cfgfile" |
| 22572 | |
| 22573 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 22574 | |
| 22575 | # func_munge_path_list VARIABLE PATH |
| 22576 | # ----------------------------------- |
| 22577 | # VARIABLE is name of variable containing _space_ separated list of |
| 22578 | # directories to be munged by the contents of PATH, which is string |
| 22579 | # having a format: |
| 22580 | # "DIR[:DIR]:" |
| 22581 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 22582 | # ":DIR[:DIR]" |
| 22583 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 22584 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 22585 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 22586 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 22587 | # "DIR[:DIR]" |
| 22588 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 22589 | func_munge_path_list () |
| 22590 | { |
| 22591 | case x$2 in |
| 22592 | x) |
| 22593 | ;; |
| 22594 | *:) |
| 22595 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 22596 | ;; |
| 22597 | x:*) |
| 22598 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 22599 | ;; |
| 22600 | *::*) |
| 22601 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 22602 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 22603 | ;; |
| 22604 | *) |
| 22605 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 22606 | ;; |
| 22607 | esac |
| 22608 | } |
| 22609 | |
| 22610 | |
| 22611 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 22612 | func_cc_basename () |
| 22613 | { |
| 22614 | for cc_temp in $*""; do |
| 22615 | case $cc_temp in |
| 22616 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22617 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22618 | \-*) ;; |
| 22619 | *) break;; |
| 22620 | esac |
| 22621 | done |
| 22622 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 22623 | } |
| 22624 | |
| 22625 | |
| 22626 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 22627 | |
| 22628 | _LT_EOF |
| 22629 | |
| 22630 | case $host_os in |
| 22631 | aix3*) |
| 22632 | cat <<\_LT_EOF >> "$cfgfile" |
| 22633 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 22634 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 22635 | # vanish in a puff of smoke. |
| 22636 | if test set != "${COLLECT_NAMES+set}"; then |
| 22637 | COLLECT_NAMES= |
| 22638 | export COLLECT_NAMES |
| 22639 | fi |
| 22640 | _LT_EOF |
| 22641 | ;; |
| 22642 | esac |
| 22643 | |
| 22644 | |
| 22645 | |
| 22646 | ltmain=$ac_aux_dir/ltmain.sh |
| 22647 | |
| 22648 | |
| 22649 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 22650 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 22651 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 22652 | # is reportedly fixed, but why not run on old versions too? |
| 22653 | $SED '$q' "$ltmain" >> "$cfgfile" \ |
| 22654 | || (rm -f "$cfgfile"; exit 1) |
| 22655 | |
| 22656 | mv -f "$cfgfile" "$ofile" || |
| 22657 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 22658 | chmod +x "$ofile" |
| 22659 | |
| 22660 | |
| 22661 | cat <<_LT_EOF >> "$ofile" |
| 22662 | |
| 22663 | # ### BEGIN LIBTOOL TAG CONFIG: RC |
| 22664 | |
| 22665 | # The linker used to build libraries. |
| 22666 | LD=$lt_LD_RC |
| 22667 | |
| 22668 | # How to create reloadable object files. |
| 22669 | reload_flag=$lt_reload_flag_RC |
| 22670 | reload_cmds=$lt_reload_cmds_RC |
| 22671 | |
| 22672 | # Commands used to build an old-style archive. |
| 22673 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 22674 | |
| 22675 | # A language specific compiler. |
| 22676 | CC=$lt_compiler_RC |
| 22677 | |
| 22678 | # Is the compiler the GNU compiler? |
| 22679 | with_gcc=$GCC_RC |
| 22680 | |
| 22681 | # Compiler flag to turn off builtin functions. |
| 22682 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 22683 | |
| 22684 | # Additional compiler flags for building library objects. |
| 22685 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 22686 | |
| 22687 | # How to pass a linker flag through the compiler. |
| 22688 | wl=$lt_lt_prog_compiler_wl_RC |
| 22689 | |
| 22690 | # Compiler flag to prevent dynamic linking. |
| 22691 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 22692 | |
| 22693 | # Does compiler simultaneously support -c and -o options? |
| 22694 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 22695 | |
| 22696 | # Whether or not to add -lc for building shared libraries. |
| 22697 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 22698 | |
| 22699 | # Whether or not to disallow shared libs when runtime libs are static. |
| 22700 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 22701 | |
| 22702 | # Compiler flag to allow reflexive dlopens. |
| 22703 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 22704 | |
| 22705 | # Compiler flag to generate shared objects directly from archives. |
| 22706 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 22707 | |
| 22708 | # Whether the compiler copes with passing no objects directly. |
| 22709 | compiler_needs_object=$lt_compiler_needs_object_RC |
| 22710 | |
| 22711 | # Create an old-style archive from a shared archive. |
| 22712 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 22713 | |
| 22714 | # Create a temporary old-style archive to link instead of a shared archive. |
| 22715 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 22716 | |
| 22717 | # Commands used to build a shared archive. |
| 22718 | archive_cmds=$lt_archive_cmds_RC |
| 22719 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 22720 | |
| 22721 | # Commands used to build a loadable module if different from building |
| 22722 | # a shared archive. |
| 22723 | module_cmds=$lt_module_cmds_RC |
| 22724 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 22725 | |
| 22726 | # Whether we are building with GNU ld or not. |
| 22727 | with_gnu_ld=$lt_with_gnu_ld_RC |
| 22728 | |
| 22729 | # Flag that allows shared libraries with undefined symbols to be built. |
| 22730 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 22731 | |
| 22732 | # Flag that enforces no undefined symbols. |
| 22733 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 22734 | |
| 22735 | # Flag to hardcode \$libdir into a binary during linking. |
| 22736 | # This must work even if \$libdir does not exist |
| 22737 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 22738 | |
| 22739 | # Whether we need a single "-rpath" flag with a separated argument. |
| 22740 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 22741 | |
| 22742 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22743 | # DIR into the resulting binary. |
| 22744 | hardcode_direct=$hardcode_direct_RC |
| 22745 | |
| 22746 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 22747 | # DIR into the resulting binary and the resulting library dependency is |
| 22748 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 22749 | # library is relocated. |
| 22750 | hardcode_direct_absolute=$hardcode_direct_absolute_RC |
| 22751 | |
| 22752 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 22753 | # into the resulting binary. |
| 22754 | hardcode_minus_L=$hardcode_minus_L_RC |
| 22755 | |
| 22756 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 22757 | # into the resulting binary. |
| 22758 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 22759 | |
| 22760 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 22761 | # into the library and all subsequent libraries and executables linked |
| 22762 | # against it. |
| 22763 | hardcode_automatic=$hardcode_automatic_RC |
| 22764 | |
| 22765 | # Set to yes if linker adds runtime paths of dependent libraries |
| 22766 | # to runtime path list. |
| 22767 | inherit_rpath=$inherit_rpath_RC |
| 22768 | |
| 22769 | # Whether libtool must link a program against all its dependency libraries. |
| 22770 | link_all_deplibs=$link_all_deplibs_RC |
| 22771 | |
| 22772 | # Set to "yes" if exported symbols are required. |
| 22773 | always_export_symbols=$always_export_symbols_RC |
| 22774 | |
| 22775 | # The commands to list exported symbols. |
| 22776 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 22777 | |
| 22778 | # Symbols that should not be listed in the preloaded symbols. |
| 22779 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 22780 | |
| 22781 | # Symbols that must always be exported. |
| 22782 | include_expsyms=$lt_include_expsyms_RC |
| 22783 | |
| 22784 | # Commands necessary for linking programs (against libraries) with templates. |
| 22785 | prelink_cmds=$lt_prelink_cmds_RC |
| 22786 | |
| 22787 | # Commands necessary for finishing linking programs. |
| 22788 | postlink_cmds=$lt_postlink_cmds_RC |
| 22789 | |
| 22790 | # Specify filename containing input files. |
| 22791 | file_list_spec=$lt_file_list_spec_RC |
| 22792 | |
| 22793 | # How to hardcode a shared library path into an executable. |
| 22794 | hardcode_action=$hardcode_action_RC |
| 22795 | |
| 22796 | # ### END LIBTOOL TAG CONFIG: RC |
| 22797 | _LT_EOF |
| 22798 | |
| 22799 | ;; |
| 22800 | "libtool-patch":C) |
| 22801 | if test "$build_selection" = never; then |
| 22802 | echo "patch not applied" |
| 22803 | elif (mv -f libtool libtool.orig; \ |
| 22804 | sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then |
| 22805 | echo "applied successfully" |
| 22806 | elif test "$build_selection" = try; then |
| 22807 | mv -f libtool.orig libtool |
| 22808 | echo "patch failed, thus, using original" |
| 22809 | else |
| 22810 | echo "patch failed" |
| 22811 | as_fn_exit 1 |
| 22812 | fi |
| 22813 | ;; |
| 22814 | "po-directories":C) |
| 22815 | for ac_file in $CONFIG_FILES; do |
| 22816 | # Support "outfile[:infile[:infile...]]" |
| 22817 | case "$ac_file" in |
| 22818 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 22819 | esac |
| 22820 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 22821 | case "$ac_file" in */Makefile.in) |
| 22822 | # Adjust a relative srcdir. |
| 22823 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 22824 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 22825 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 22826 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 22827 | # In autoconf-2.50 it is called $srcdir. |
| 22828 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 22829 | case "$ac_given_srcdir" in |
| 22830 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 22831 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 22832 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 22833 | esac |
| 22834 | # Treat a directory as a PO directory if and only if it has a |
| 22835 | # POTFILES.in file. This allows packages to have multiple PO |
| 22836 | # directories under different names or in different locations. |
| 22837 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 22838 | rm -f "$ac_dir/POTFILES" |
| 22839 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 22840 | gt_tab=`printf '\t'` |
| 22841 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 22842 | POMAKEFILEDEPS="POTFILES.in" |
| 22843 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 22844 | # on $ac_dir but don't depend on user-specified configuration |
| 22845 | # parameters. |
| 22846 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 22847 | # The LINGUAS file contains the set of available languages. |
| 22848 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 22849 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 22850 | fi |
| 22851 | ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 22852 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 22853 | else |
| 22854 | # The set of available languages was given in configure.in. |
| 22855 | ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS |
| 22856 | fi |
| 22857 | # Compute POFILES |
| 22858 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 22859 | # Compute UPDATEPOFILES |
| 22860 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 22861 | # Compute DUMMYPOFILES |
| 22862 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 22863 | # Compute GMOFILES |
| 22864 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 22865 | case "$ac_given_srcdir" in |
| 22866 | .) srcdirpre= ;; |
| 22867 | *) srcdirpre='$(srcdir)/' ;; |
| 22868 | esac |
| 22869 | POFILES= |
| 22870 | UPDATEPOFILES= |
| 22871 | DUMMYPOFILES= |
| 22872 | GMOFILES= |
| 22873 | for lang in $ALL_LINGUAS; do |
| 22874 | POFILES="$POFILES $srcdirpre$lang.po" |
| 22875 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 22876 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 22877 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 22878 | done |
| 22879 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 22880 | # environment variable. |
| 22881 | INST_LINGUAS= |
| 22882 | if test -n "$ALL_LINGUAS"; then |
| 22883 | for presentlang in $ALL_LINGUAS; do |
| 22884 | useit=no |
| 22885 | if test "%UNSET%" != "$LINGUAS"; then |
| 22886 | desiredlanguages="$LINGUAS" |
| 22887 | else |
| 22888 | desiredlanguages="$ALL_LINGUAS" |
| 22889 | fi |
| 22890 | for desiredlang in $desiredlanguages; do |
| 22891 | # Use the presentlang catalog if desiredlang is |
| 22892 | # a. equal to presentlang, or |
| 22893 | # b. a variant of presentlang (because in this case, |
| 22894 | # presentlang can be used as a fallback for messages |
| 22895 | # which are not translated in the desiredlang catalog). |
| 22896 | case "$desiredlang" in |
| 22897 | "$presentlang"*) useit=yes;; |
| 22898 | esac |
| 22899 | done |
| 22900 | if test $useit = yes; then |
| 22901 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 22902 | fi |
| 22903 | done |
| 22904 | fi |
| 22905 | CATALOGS= |
| 22906 | if test -n "$INST_LINGUAS"; then |
| 22907 | for lang in $INST_LINGUAS; do |
| 22908 | CATALOGS="$CATALOGS $lang.gmo" |
| 22909 | done |
| 22910 | fi |
| 22911 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 22912 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 22913 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 22914 | if test -f "$f"; then |
| 22915 | case "$f" in |
| 22916 | *.orig | *.bak | *~) ;; |
| 22917 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 22918 | esac |
| 22919 | fi |
| 22920 | done |
| 22921 | fi |
| 22922 | ;; |
| 22923 | esac |
| 22924 | done ;; |
| 22925 | "src/gpg-error-config-old":F) chmod +x src/gpg-error-config-old ;; |
| 22926 | "src/gpgrt-config":F) chmod +x src/gpgrt-config ;; |
| 22927 | "src/gpg-error-config-test.sh":F) chmod +x src/gpg-error-config-test.sh ;; |
| 22928 | |
| 22929 | esac |
| 22930 | done # for ac_tag |
| 22931 | |
| 22932 | |
| 22933 | as_fn_exit 0 |
| 22934 | _ACEOF |
| 22935 | ac_clean_files=$ac_clean_files_save |
| 22936 | |
| 22937 | test $ac_write_fail = 0 || |
| 22938 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 22939 | |
| 22940 | |
| 22941 | # configure is writing to config.log, and then calls config.status. |
| 22942 | # config.status does its own redirection, appending to config.log. |
| 22943 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22944 | # by configure, so config.status won't be able to write to it; its |
| 22945 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22946 | # effectively closing config.log, so it can be properly (re)opened and |
| 22947 | # appended to by config.status. When coming back to configure, we |
| 22948 | # need to make the FD available again. |
| 22949 | if test "$no_create" != yes; then |
| 22950 | ac_cs_success=: |
| 22951 | ac_config_status_args= |
| 22952 | test "$silent" = yes && |
| 22953 | ac_config_status_args="$ac_config_status_args --quiet" |
| 22954 | exec 5>/dev/null |
| 22955 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 22956 | exec 5>>config.log |
| 22957 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22958 | # would make configure fail if this is the last instruction. |
| 22959 | $ac_cs_success || as_fn_exit 1 |
| 22960 | fi |
| 22961 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 22962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 22963 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 22964 | fi |
| 22965 | |
| 22966 | |
| 22967 | tmp= |
| 22968 | if test "$have_w32_system" != yes; then |
| 22969 | if test x"$gl_use_threads" = xno; then |
| 22970 | tmp=" NO-THREADS" |
| 22971 | fi |
| 22972 | fi |
| 22973 | echo " |
| 22974 | $PACKAGE_NAME v$PACKAGE_VERSION has been configured as follows: |
| 22975 | |
| 22976 | Revision: 687c9da (26748) |
| 22977 | Platform: $host$tmp |
| 22978 | " |
| 22979 | if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then |
| 22980 | cat <<G10EOF |
| 22981 | *** |
| 22982 | *** Please note that your compiler does not support the GCC style |
| 22983 | *** aligned attribute. Using this software may evoke bus errors. |
| 22984 | *** |
| 22985 | G10EOF |
| 22986 | fi |
| 22987 |