| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | as_myself= |
| 91 | case $0 in #(( |
| 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
| 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
| 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | |
| 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
| 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
| 131 | |
| 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 200 | |
| 201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 205 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 208 | if (eval "$as_required") 2>/dev/null; then : |
| 209 | as_have_required=yes |
| 210 | else |
| 211 | as_have_required=no |
| 212 | fi |
| 213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 214 | |
| 215 | else |
| 216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 217 | as_found=false |
| 218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
| 222 | as_found=: |
| 223 | case $as_dir in #( |
| 224 | /*) |
| 225 | for as_base in sh bash ksh sh5; do |
| 226 | # Try only shells that exist, to save several forks. |
| 227 | as_shell=$as_dir/$as_base |
| 228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 230 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | break 2 |
| 233 | fi |
| 234 | fi |
| 235 | done;; |
| 236 | esac |
| 237 | as_found=false |
| 238 | done |
| 239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 241 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 242 | fi; } |
| 243 | IFS=$as_save_IFS |
| 244 | |
| 245 | |
| 246 | if test "x$CONFIG_SHELL" != x; then : |
| 247 | export CONFIG_SHELL |
| 248 | # We cannot yet assume a decent shell, so we have to provide a |
| 249 | # neutralization value for shells without unset; and this also |
| 250 | # works around shells that cannot unset nonexistent variables. |
| 251 | # Preserve -v and -x to the replacement shell. |
| 252 | BASH_ENV=/dev/null |
| 253 | ENV=/dev/null |
| 254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 255 | case $- in # (((( |
| 256 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 257 | *v* ) as_opts=-v ;; |
| 258 | *x* ) as_opts=-x ;; |
| 259 | * ) as_opts= ;; |
| 260 | esac |
| 261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 262 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 263 | # out after a failed `exec'. |
| 264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 265 | exit 255 |
| 266 | fi |
| 267 | |
| 268 | if test x$as_have_required = xno; then : |
| 269 | $as_echo "$0: This script requires a shell more modern than all" |
| 270 | $as_echo "$0: the shells that I found on your system." |
| 271 | if test x${ZSH_VERSION+set} = xset ; then |
| 272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 274 | else |
| 275 | $as_echo "$0: Please tell [email protected] about your system, |
| 276 | $0: including any error possibly output before this |
| 277 | $0: message. Then install a modern shell, or manually run |
| 278 | $0: the script under such a shell if you do have one." |
| 279 | fi |
| 280 | exit 1 |
| 281 | fi |
| 282 | fi |
| 283 | fi |
| 284 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 285 | export SHELL |
| 286 | # Unset more variables known to interfere with behavior of common tools. |
| 287 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 288 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 289 | |
| 290 | ## --------------------- ## |
| 291 | ## M4sh Shell Functions. ## |
| 292 | ## --------------------- ## |
| 293 | # as_fn_unset VAR |
| 294 | # --------------- |
| 295 | # Portably unset VAR. |
| 296 | as_fn_unset () |
| 297 | { |
| 298 | { eval $1=; unset $1;} |
| 299 | } |
| 300 | as_unset=as_fn_unset |
| 301 | |
| 302 | # as_fn_set_status STATUS |
| 303 | # ----------------------- |
| 304 | # Set $? to STATUS, without forking. |
| 305 | as_fn_set_status () |
| 306 | { |
| 307 | return $1 |
| 308 | } # as_fn_set_status |
| 309 | |
| 310 | # as_fn_exit STATUS |
| 311 | # ----------------- |
| 312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 313 | as_fn_exit () |
| 314 | { |
| 315 | set +e |
| 316 | as_fn_set_status $1 |
| 317 | exit $1 |
| 318 | } # as_fn_exit |
| 319 | |
| 320 | # as_fn_mkdir_p |
| 321 | # ------------- |
| 322 | # Create "$as_dir" as a directory, including parents if necessary. |
| 323 | as_fn_mkdir_p () |
| 324 | { |
| 325 | |
| 326 | case $as_dir in #( |
| 327 | -*) as_dir=./$as_dir;; |
| 328 | esac |
| 329 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 330 | as_dirs= |
| 331 | while :; do |
| 332 | case $as_dir in #( |
| 333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 334 | *) as_qdir=$as_dir;; |
| 335 | esac |
| 336 | as_dirs="'$as_qdir' $as_dirs" |
| 337 | as_dir=`$as_dirname -- "$as_dir" || |
| 338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 339 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 340 | X"$as_dir" : 'X\(//\)$' \| \ |
| 341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 342 | $as_echo X"$as_dir" | |
| 343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)[^/].*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\/\)$/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | /^X\(\/\).*/{ |
| 356 | s//\1/ |
| 357 | q |
| 358 | } |
| 359 | s/.*/./; q'` |
| 360 | test -d "$as_dir" && break |
| 361 | done |
| 362 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 364 | |
| 365 | |
| 366 | } # as_fn_mkdir_p |
| 367 | |
| 368 | # as_fn_executable_p FILE |
| 369 | # ----------------------- |
| 370 | # Test if FILE is an executable regular file. |
| 371 | as_fn_executable_p () |
| 372 | { |
| 373 | test -f "$1" && test -x "$1" |
| 374 | } # as_fn_executable_p |
| 375 | # as_fn_append VAR VALUE |
| 376 | # ---------------------- |
| 377 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 378 | # advantage of any shell optimizations that allow amortized linear growth over |
| 379 | # repeated appends, instead of the typical quadratic growth present in naive |
| 380 | # implementations. |
| 381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 382 | eval 'as_fn_append () |
| 383 | { |
| 384 | eval $1+=\$2 |
| 385 | }' |
| 386 | else |
| 387 | as_fn_append () |
| 388 | { |
| 389 | eval $1=\$$1\$2 |
| 390 | } |
| 391 | fi # as_fn_append |
| 392 | |
| 393 | # as_fn_arith ARG... |
| 394 | # ------------------ |
| 395 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 | # must be portable across $(()) and expr. |
| 398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 399 | eval 'as_fn_arith () |
| 400 | { |
| 401 | as_val=$(( $* )) |
| 402 | }' |
| 403 | else |
| 404 | as_fn_arith () |
| 405 | { |
| 406 | as_val=`expr "$@" || test $? -eq 1` |
| 407 | } |
| 408 | fi # as_fn_arith |
| 409 | |
| 410 | |
| 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 412 | # ---------------------------------------- |
| 413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 415 | # script with STATUS, using 1 if that was 0. |
| 416 | as_fn_error () |
| 417 | { |
| 418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 419 | if test "$4"; then |
| 420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 422 | fi |
| 423 | $as_echo "$as_me: error: $2" >&2 |
| 424 | as_fn_exit $as_status |
| 425 | } # as_fn_error |
| 426 | |
| 427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 429 | as_expr=expr |
| 430 | else |
| 431 | as_expr=false |
| 432 | fi |
| 433 | |
| 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 435 | as_basename=basename |
| 436 | else |
| 437 | as_basename=false |
| 438 | fi |
| 439 | |
| 440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 441 | as_dirname=dirname |
| 442 | else |
| 443 | as_dirname=false |
| 444 | fi |
| 445 | |
| 446 | as_me=`$as_basename -- "$0" || |
| 447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 448 | X"$0" : 'X\(//\)$' \| \ |
| 449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 450 | $as_echo X/"$0" | |
| 451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\/\)$/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | /^X\/\(\/\).*/{ |
| 460 | s//\1/ |
| 461 | q |
| 462 | } |
| 463 | s/.*/./; q'` |
| 464 | |
| 465 | # Avoid depending upon Character Ranges. |
| 466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 469 | as_cr_digits='0123456789' |
| 470 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 471 | |
| 472 | |
| 473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 478 | sed -n ' |
| 479 | p |
| 480 | /[$]LINENO/= |
| 481 | ' <$as_myself | |
| 482 | sed ' |
| 483 | s/[$]LINENO.*/&-/ |
| 484 | t lineno |
| 485 | b |
| 486 | :lineno |
| 487 | N |
| 488 | :loop |
| 489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 490 | t loop |
| 491 | s/-\n.*// |
| 492 | ' >$as_me.lineno && |
| 493 | chmod +x "$as_me.lineno" || |
| 494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 495 | |
| 496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 497 | # already done that, so ensure we don't try to do so again and fall |
| 498 | # in an infinite loop. This has already happened in practice. |
| 499 | _as_can_reexec=no; export _as_can_reexec |
| 500 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 501 | # (the dirname of $[0] is not the place where we might find the |
| 502 | # original and so on. Autoconf is especially sensitive to this). |
| 503 | . "./$as_me.lineno" |
| 504 | # Exit status is that of the last command. |
| 505 | exit |
| 506 | } |
| 507 | |
| 508 | ECHO_C= ECHO_N= ECHO_T= |
| 509 | case `echo -n x` in #((((( |
| 510 | -n*) |
| 511 | case `echo 'xy\c'` in |
| 512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 513 | xy) ECHO_C='\c';; |
| 514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 515 | ECHO_T=' ';; |
| 516 | esac;; |
| 517 | *) |
| 518 | ECHO_N='-n';; |
| 519 | esac |
| 520 | |
| 521 | rm -f conf$$ conf$$.exe conf$$.file |
| 522 | if test -d conf$$.dir; then |
| 523 | rm -f conf$$.dir/conf$$.file |
| 524 | else |
| 525 | rm -f conf$$.dir |
| 526 | mkdir conf$$.dir 2>/dev/null |
| 527 | fi |
| 528 | if (echo >conf$$.file) 2>/dev/null; then |
| 529 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s='ln -s' |
| 531 | # ... but there are two gotchas: |
| 532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 534 | # In both cases, we have to default to `cp -pR'. |
| 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 536 | as_ln_s='cp -pR' |
| 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 538 | as_ln_s=ln |
| 539 | else |
| 540 | as_ln_s='cp -pR' |
| 541 | fi |
| 542 | else |
| 543 | as_ln_s='cp -pR' |
| 544 | fi |
| 545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 546 | rmdir conf$$.dir 2>/dev/null |
| 547 | |
| 548 | if mkdir -p . 2>/dev/null; then |
| 549 | as_mkdir_p='mkdir -p "$as_dir"' |
| 550 | else |
| 551 | test -d ./-p && rmdir ./-p |
| 552 | as_mkdir_p=false |
| 553 | fi |
| 554 | |
| 555 | as_test_x='test -x' |
| 556 | as_executable_p=as_fn_executable_p |
| 557 | |
| 558 | # Sed expression to map a string onto a valid CPP name. |
| 559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 560 | |
| 561 | # Sed expression to map a string onto a valid variable name. |
| 562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 563 | |
| 564 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 565 | |
| 566 | |
| 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 568 | exec 6>&1 |
| 569 | |
| 570 | # Name of the host. |
| 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 572 | # so uname gets run too. |
| 573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 574 | |
| 575 | # |
| 576 | # Initializations. |
| 577 | # |
| 578 | ac_default_prefix=/usr/local |
| 579 | ac_clean_files= |
| 580 | ac_config_libobj_dir=. |
| 581 | LIBOBJS= |
| 582 | cross_compiling=no |
| 583 | subdirs= |
| 584 | MFLAGS= |
| 585 | MAKEFLAGS= |
| 586 | |
| 587 | # Identity of this package. |
| 588 | PACKAGE_NAME='package-unused' |
| 589 | PACKAGE_TARNAME='libgcobol' |
| 590 | PACKAGE_VERSION='version-unused' |
| 591 | PACKAGE_STRING='package-unused version-unused' |
| 592 | PACKAGE_BUGREPORT='' |
| 593 | PACKAGE_URL='' |
| 594 | |
| 595 | ac_unique_file="Makefile.am" |
| 596 | # Factoring default headers for most tests. |
| 597 | ac_includes_default="\ |
| 598 | #include <stdio.h> |
| 599 | #ifdef HAVE_SYS_TYPES_H |
| 600 | # include <sys/types.h> |
| 601 | #endif |
| 602 | #ifdef HAVE_SYS_STAT_H |
| 603 | # include <sys/stat.h> |
| 604 | #endif |
| 605 | #ifdef STDC_HEADERS |
| 606 | # include <stdlib.h> |
| 607 | # include <stddef.h> |
| 608 | #else |
| 609 | # ifdef HAVE_STDLIB_H |
| 610 | # include <stdlib.h> |
| 611 | # endif |
| 612 | #endif |
| 613 | #ifdef HAVE_STRING_H |
| 614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 615 | # include <memory.h> |
| 616 | # endif |
| 617 | # include <string.h> |
| 618 | #endif |
| 619 | #ifdef HAVE_STRINGS_H |
| 620 | # include <strings.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_INTTYPES_H |
| 623 | # include <inttypes.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_STDINT_H |
| 626 | # include <stdint.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_UNISTD_H |
| 629 | # include <unistd.h> |
| 630 | #endif" |
| 631 | |
| 632 | ac_header_list= |
| 633 | ac_func_list= |
| 634 | ac_cxx_werror_flag= |
| 635 | ac_cxx_werror_flag= |
| 636 | ac_subst_vars='am__EXEEXT_FALSE |
| 637 | am__EXEEXT_TRUE |
| 638 | LTLIBOBJS |
| 639 | LIBOBJS |
| 640 | SPEC_LIBGCOBOL_DEPS |
| 641 | get_gcc_base_ver |
| 642 | USE_IEC_60559 |
| 643 | LIBQUADINCLUDE |
| 644 | LIBQUADLIB_DEP |
| 645 | LIBQUADLIB |
| 646 | LIBQUADSPEC |
| 647 | extra_ldflags_libgcobol |
| 648 | LIBGCOBOL_VERSION |
| 649 | BUILD_LIBGCOBOL_FALSE |
| 650 | BUILD_LIBGCOBOL_TRUE |
| 651 | LTLIBICONV |
| 652 | LIBICONV |
| 653 | toolexeclibdir |
| 654 | toolexecdir |
| 655 | CXXCPP |
| 656 | am__fastdepCXX_FALSE |
| 657 | am__fastdepCXX_TRUE |
| 658 | CXXDEPMODE |
| 659 | ac_ct_CXX |
| 660 | CXXFLAGS |
| 661 | CXX |
| 662 | enable_static |
| 663 | enable_shared |
| 664 | ENABLE_DARWIN_AT_RPATH_FALSE |
| 665 | ENABLE_DARWIN_AT_RPATH_TRUE |
| 666 | LIBM |
| 667 | OTOOL64 |
| 668 | OTOOL |
| 669 | LIPO |
| 670 | NMEDIT |
| 671 | DSYMUTIL |
| 672 | OBJDUMP |
| 673 | LN_S |
| 674 | ac_ct_DUMPBIN |
| 675 | DUMPBIN |
| 676 | LD |
| 677 | FGREP |
| 678 | SED |
| 679 | LIBTOOL |
| 680 | RANLIB |
| 681 | NM |
| 682 | AR |
| 683 | EGREP |
| 684 | GREP |
| 685 | CPP |
| 686 | am__fastdepCC_FALSE |
| 687 | am__fastdepCC_TRUE |
| 688 | CCDEPMODE |
| 689 | am__nodep |
| 690 | AMDEPBACKSLASH |
| 691 | AMDEP_FALSE |
| 692 | AMDEP_TRUE |
| 693 | am__quote |
| 694 | am__include |
| 695 | DEPDIR |
| 696 | OBJEXT |
| 697 | EXEEXT |
| 698 | ac_ct_CC |
| 699 | CPPFLAGS |
| 700 | LDFLAGS |
| 701 | CFLAGS |
| 702 | CC |
| 703 | AM_BACKSLASH |
| 704 | AM_DEFAULT_VERBOSITY |
| 705 | AM_DEFAULT_V |
| 706 | AM_V |
| 707 | am__untar |
| 708 | am__tar |
| 709 | AMTAR |
| 710 | am__leading_dot |
| 711 | SET_MAKE |
| 712 | AWK |
| 713 | mkdir_p |
| 714 | MKDIR_P |
| 715 | INSTALL_STRIP_PROGRAM |
| 716 | STRIP |
| 717 | install_sh |
| 718 | MAKEINFO |
| 719 | AUTOHEADER |
| 720 | AUTOMAKE |
| 721 | AUTOCONF |
| 722 | ACLOCAL |
| 723 | VERSION |
| 724 | PACKAGE |
| 725 | CYGPATH_W |
| 726 | am__isrc |
| 727 | INSTALL_DATA |
| 728 | INSTALL_SCRIPT |
| 729 | INSTALL_PROGRAM |
| 730 | MAINT |
| 731 | MAINTAINER_MODE_FALSE |
| 732 | MAINTAINER_MODE_TRUE |
| 733 | multi_basedir |
| 734 | target_noncanonical |
| 735 | target_os |
| 736 | target_vendor |
| 737 | target_cpu |
| 738 | target |
| 739 | host_os |
| 740 | host_vendor |
| 741 | host_cpu |
| 742 | host |
| 743 | build_os |
| 744 | build_vendor |
| 745 | build_cpu |
| 746 | build |
| 747 | target_alias |
| 748 | host_alias |
| 749 | build_alias |
| 750 | LIBS |
| 751 | ECHO_T |
| 752 | ECHO_N |
| 753 | ECHO_C |
| 754 | DEFS |
| 755 | mandir |
| 756 | localedir |
| 757 | libdir |
| 758 | psdir |
| 759 | pdfdir |
| 760 | dvidir |
| 761 | htmldir |
| 762 | infodir |
| 763 | docdir |
| 764 | oldincludedir |
| 765 | includedir |
| 766 | localstatedir |
| 767 | sharedstatedir |
| 768 | sysconfdir |
| 769 | datadir |
| 770 | datarootdir |
| 771 | libexecdir |
| 772 | sbindir |
| 773 | bindir |
| 774 | program_transform_name |
| 775 | prefix |
| 776 | exec_prefix |
| 777 | PACKAGE_URL |
| 778 | PACKAGE_BUGREPORT |
| 779 | PACKAGE_STRING |
| 780 | PACKAGE_VERSION |
| 781 | PACKAGE_TARNAME |
| 782 | PACKAGE_NAME |
| 783 | PATH_SEPARATOR |
| 784 | SHELL' |
| 785 | ac_subst_files='' |
| 786 | ac_user_opts=' |
| 787 | enable_option_checking |
| 788 | enable_multilib |
| 789 | enable_maintainer_mode |
| 790 | enable_silent_rules |
| 791 | enable_libgcobol |
| 792 | enable_version_specific_runtime_libs |
| 793 | enable_dependency_tracking |
| 794 | enable_shared |
| 795 | enable_static |
| 796 | with_pic |
| 797 | enable_fast_install |
| 798 | with_gnu_ld |
| 799 | enable_libtool_lock |
| 800 | enable_darwin_at_rpath |
| 801 | with_toolexeclibdir |
| 802 | enable_rpath |
| 803 | with_libiconv_prefix |
| 804 | with_libiconv_type |
| 805 | enable_libquadmath |
| 806 | with_gcc_major_version_only |
| 807 | ' |
| 808 | ac_precious_vars='build_alias |
| 809 | host_alias |
| 810 | target_alias |
| 811 | CC |
| 812 | CFLAGS |
| 813 | LDFLAGS |
| 814 | LIBS |
| 815 | CPPFLAGS |
| 816 | CPP' |
| 817 | |
| 818 | |
| 819 | # Initialize some variables set by options. |
| 820 | ac_init_help= |
| 821 | ac_init_version=false |
| 822 | ac_unrecognized_opts= |
| 823 | ac_unrecognized_sep= |
| 824 | # The variables have the same names as the options, with |
| 825 | # dashes changed to underlines. |
| 826 | cache_file=/dev/null |
| 827 | exec_prefix=NONE |
| 828 | no_create= |
| 829 | no_recursion= |
| 830 | prefix=NONE |
| 831 | program_prefix=NONE |
| 832 | program_suffix=NONE |
| 833 | program_transform_name=s,x,x, |
| 834 | silent= |
| 835 | site= |
| 836 | srcdir= |
| 837 | verbose= |
| 838 | x_includes=NONE |
| 839 | x_libraries=NONE |
| 840 | |
| 841 | # Installation directory options. |
| 842 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 843 | # and all the variables that are supposed to be based on exec_prefix |
| 844 | # by default will actually change. |
| 845 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 846 | # (The list follows the same order as the GNU Coding Standards.) |
| 847 | bindir='${exec_prefix}/bin' |
| 848 | sbindir='${exec_prefix}/sbin' |
| 849 | libexecdir='${exec_prefix}/libexec' |
| 850 | datarootdir='${prefix}/share' |
| 851 | datadir='${datarootdir}' |
| 852 | sysconfdir='${prefix}/etc' |
| 853 | sharedstatedir='${prefix}/com' |
| 854 | localstatedir='${prefix}/var' |
| 855 | includedir='${prefix}/include' |
| 856 | oldincludedir='/usr/include' |
| 857 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 858 | infodir='${datarootdir}/info' |
| 859 | htmldir='${docdir}' |
| 860 | dvidir='${docdir}' |
| 861 | pdfdir='${docdir}' |
| 862 | psdir='${docdir}' |
| 863 | libdir='${exec_prefix}/lib' |
| 864 | localedir='${datarootdir}/locale' |
| 865 | mandir='${datarootdir}/man' |
| 866 | |
| 867 | ac_prev= |
| 868 | ac_dashdash= |
| 869 | for ac_option |
| 870 | do |
| 871 | # If the previous option needs an argument, assign it. |
| 872 | if test -n "$ac_prev"; then |
| 873 | eval $ac_prev=\$ac_option |
| 874 | ac_prev= |
| 875 | continue |
| 876 | fi |
| 877 | |
| 878 | case $ac_option in |
| 879 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 880 | *=) ac_optarg= ;; |
| 881 | *) ac_optarg=yes ;; |
| 882 | esac |
| 883 | |
| 884 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 885 | |
| 886 | case $ac_dashdash$ac_option in |
| 887 | --) |
| 888 | ac_dashdash=yes ;; |
| 889 | |
| 890 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 891 | ac_prev=bindir ;; |
| 892 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 893 | bindir=$ac_optarg ;; |
| 894 | |
| 895 | -build | --build | --buil | --bui | --bu) |
| 896 | ac_prev=build_alias ;; |
| 897 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 898 | build_alias=$ac_optarg ;; |
| 899 | |
| 900 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 901 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 902 | ac_prev=cache_file ;; |
| 903 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 904 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 905 | cache_file=$ac_optarg ;; |
| 906 | |
| 907 | --config-cache | -C) |
| 908 | cache_file=config.cache ;; |
| 909 | |
| 910 | -datadir | --datadir | --datadi | --datad) |
| 911 | ac_prev=datadir ;; |
| 912 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 913 | datadir=$ac_optarg ;; |
| 914 | |
| 915 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 916 | | --dataroo | --dataro | --datar) |
| 917 | ac_prev=datarootdir ;; |
| 918 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 919 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 920 | datarootdir=$ac_optarg ;; |
| 921 | |
| 922 | -disable-* | --disable-*) |
| 923 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 924 | # Reject names that are not valid shell variable names. |
| 925 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 926 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 927 | ac_useropt_orig=$ac_useropt |
| 928 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 929 | case $ac_user_opts in |
| 930 | *" |
| 931 | "enable_$ac_useropt" |
| 932 | "*) ;; |
| 933 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 934 | ac_unrecognized_sep=', ';; |
| 935 | esac |
| 936 | eval enable_$ac_useropt=no ;; |
| 937 | |
| 938 | -docdir | --docdir | --docdi | --doc | --do) |
| 939 | ac_prev=docdir ;; |
| 940 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 941 | docdir=$ac_optarg ;; |
| 942 | |
| 943 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 944 | ac_prev=dvidir ;; |
| 945 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 946 | dvidir=$ac_optarg ;; |
| 947 | |
| 948 | -enable-* | --enable-*) |
| 949 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 950 | # Reject names that are not valid shell variable names. |
| 951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 952 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 953 | ac_useropt_orig=$ac_useropt |
| 954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 955 | case $ac_user_opts in |
| 956 | *" |
| 957 | "enable_$ac_useropt" |
| 958 | "*) ;; |
| 959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 960 | ac_unrecognized_sep=', ';; |
| 961 | esac |
| 962 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 963 | |
| 964 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 965 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 966 | | --exec | --exe | --ex) |
| 967 | ac_prev=exec_prefix ;; |
| 968 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 969 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 970 | | --exec=* | --exe=* | --ex=*) |
| 971 | exec_prefix=$ac_optarg ;; |
| 972 | |
| 973 | -gas | --gas | --ga | --g) |
| 974 | # Obsolete; use --with-gas. |
| 975 | with_gas=yes ;; |
| 976 | |
| 977 | -help | --help | --hel | --he | -h) |
| 978 | ac_init_help=long ;; |
| 979 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 980 | ac_init_help=recursive ;; |
| 981 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 982 | ac_init_help=short ;; |
| 983 | |
| 984 | -host | --host | --hos | --ho) |
| 985 | ac_prev=host_alias ;; |
| 986 | -host=* | --host=* | --hos=* | --ho=*) |
| 987 | host_alias=$ac_optarg ;; |
| 988 | |
| 989 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 990 | ac_prev=htmldir ;; |
| 991 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 992 | | --ht=*) |
| 993 | htmldir=$ac_optarg ;; |
| 994 | |
| 995 | -includedir | --includedir | --includedi | --included | --include \ |
| 996 | | --includ | --inclu | --incl | --inc) |
| 997 | ac_prev=includedir ;; |
| 998 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 999 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1000 | includedir=$ac_optarg ;; |
| 1001 | |
| 1002 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1003 | ac_prev=infodir ;; |
| 1004 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1005 | infodir=$ac_optarg ;; |
| 1006 | |
| 1007 | -libdir | --libdir | --libdi | --libd) |
| 1008 | ac_prev=libdir ;; |
| 1009 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1010 | libdir=$ac_optarg ;; |
| 1011 | |
| 1012 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1013 | | --libexe | --libex | --libe) |
| 1014 | ac_prev=libexecdir ;; |
| 1015 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1016 | | --libexe=* | --libex=* | --libe=*) |
| 1017 | libexecdir=$ac_optarg ;; |
| 1018 | |
| 1019 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1020 | ac_prev=localedir ;; |
| 1021 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1022 | localedir=$ac_optarg ;; |
| 1023 | |
| 1024 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1025 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1026 | ac_prev=localstatedir ;; |
| 1027 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1028 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1029 | localstatedir=$ac_optarg ;; |
| 1030 | |
| 1031 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1032 | ac_prev=mandir ;; |
| 1033 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1034 | mandir=$ac_optarg ;; |
| 1035 | |
| 1036 | -nfp | --nfp | --nf) |
| 1037 | # Obsolete; use --without-fp. |
| 1038 | with_fp=no ;; |
| 1039 | |
| 1040 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1041 | | --no-cr | --no-c | -n) |
| 1042 | no_create=yes ;; |
| 1043 | |
| 1044 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1045 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1046 | no_recursion=yes ;; |
| 1047 | |
| 1048 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1049 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1050 | | --oldin | --oldi | --old | --ol | --o) |
| 1051 | ac_prev=oldincludedir ;; |
| 1052 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1053 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1054 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1055 | oldincludedir=$ac_optarg ;; |
| 1056 | |
| 1057 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1058 | ac_prev=prefix ;; |
| 1059 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1060 | prefix=$ac_optarg ;; |
| 1061 | |
| 1062 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1063 | | --program-pre | --program-pr | --program-p) |
| 1064 | ac_prev=program_prefix ;; |
| 1065 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1066 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1067 | program_prefix=$ac_optarg ;; |
| 1068 | |
| 1069 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1070 | | --program-suf | --program-su | --program-s) |
| 1071 | ac_prev=program_suffix ;; |
| 1072 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1073 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1074 | program_suffix=$ac_optarg ;; |
| 1075 | |
| 1076 | -program-transform-name | --program-transform-name \ |
| 1077 | | --program-transform-nam | --program-transform-na \ |
| 1078 | | --program-transform-n | --program-transform- \ |
| 1079 | | --program-transform | --program-transfor \ |
| 1080 | | --program-transfo | --program-transf \ |
| 1081 | | --program-trans | --program-tran \ |
| 1082 | | --progr-tra | --program-tr | --program-t) |
| 1083 | ac_prev=program_transform_name ;; |
| 1084 | -program-transform-name=* | --program-transform-name=* \ |
| 1085 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1086 | | --program-transform-n=* | --program-transform-=* \ |
| 1087 | | --program-transform=* | --program-transfor=* \ |
| 1088 | | --program-transfo=* | --program-transf=* \ |
| 1089 | | --program-trans=* | --program-tran=* \ |
| 1090 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1091 | program_transform_name=$ac_optarg ;; |
| 1092 | |
| 1093 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1094 | ac_prev=pdfdir ;; |
| 1095 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1096 | pdfdir=$ac_optarg ;; |
| 1097 | |
| 1098 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1099 | ac_prev=psdir ;; |
| 1100 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1101 | psdir=$ac_optarg ;; |
| 1102 | |
| 1103 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1104 | | -silent | --silent | --silen | --sile | --sil) |
| 1105 | silent=yes ;; |
| 1106 | |
| 1107 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1108 | ac_prev=sbindir ;; |
| 1109 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1110 | | --sbi=* | --sb=*) |
| 1111 | sbindir=$ac_optarg ;; |
| 1112 | |
| 1113 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1114 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1115 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1116 | | --sha | --sh) |
| 1117 | ac_prev=sharedstatedir ;; |
| 1118 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1119 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1120 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1121 | | --sha=* | --sh=*) |
| 1122 | sharedstatedir=$ac_optarg ;; |
| 1123 | |
| 1124 | -site | --site | --sit) |
| 1125 | ac_prev=site ;; |
| 1126 | -site=* | --site=* | --sit=*) |
| 1127 | site=$ac_optarg ;; |
| 1128 | |
| 1129 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1130 | ac_prev=srcdir ;; |
| 1131 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1132 | srcdir=$ac_optarg ;; |
| 1133 | |
| 1134 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1135 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1136 | ac_prev=sysconfdir ;; |
| 1137 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1138 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1139 | sysconfdir=$ac_optarg ;; |
| 1140 | |
| 1141 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1142 | ac_prev=target_alias ;; |
| 1143 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1144 | target_alias=$ac_optarg ;; |
| 1145 | |
| 1146 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1147 | verbose=yes ;; |
| 1148 | |
| 1149 | -version | --version | --versio | --versi | --vers | -V) |
| 1150 | ac_init_version=: ;; |
| 1151 | |
| 1152 | -with-* | --with-*) |
| 1153 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1154 | # Reject names that are not valid shell variable names. |
| 1155 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1156 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1157 | ac_useropt_orig=$ac_useropt |
| 1158 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1159 | case $ac_user_opts in |
| 1160 | *" |
| 1161 | "with_$ac_useropt" |
| 1162 | "*) ;; |
| 1163 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1164 | ac_unrecognized_sep=', ';; |
| 1165 | esac |
| 1166 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1167 | |
| 1168 | -without-* | --without-*) |
| 1169 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1170 | # Reject names that are not valid shell variable names. |
| 1171 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1172 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1173 | ac_useropt_orig=$ac_useropt |
| 1174 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1175 | case $ac_user_opts in |
| 1176 | *" |
| 1177 | "with_$ac_useropt" |
| 1178 | "*) ;; |
| 1179 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1180 | ac_unrecognized_sep=', ';; |
| 1181 | esac |
| 1182 | eval with_$ac_useropt=no ;; |
| 1183 | |
| 1184 | --x) |
| 1185 | # Obsolete; use --with-x. |
| 1186 | with_x=yes ;; |
| 1187 | |
| 1188 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1189 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1190 | ac_prev=x_includes ;; |
| 1191 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1192 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1193 | x_includes=$ac_optarg ;; |
| 1194 | |
| 1195 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1196 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1197 | ac_prev=x_libraries ;; |
| 1198 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1199 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1200 | x_libraries=$ac_optarg ;; |
| 1201 | |
| 1202 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1203 | Try \`$0 --help' for more information" |
| 1204 | ;; |
| 1205 | |
| 1206 | *=*) |
| 1207 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1208 | # Reject names that are not valid shell variable names. |
| 1209 | case $ac_envvar in #( |
| 1210 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1211 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1212 | esac |
| 1213 | eval $ac_envvar=\$ac_optarg |
| 1214 | export $ac_envvar ;; |
| 1215 | |
| 1216 | *) |
| 1217 | # FIXME: should be removed in autoconf 3.0. |
| 1218 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1219 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1220 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1221 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1222 | ;; |
| 1223 | |
| 1224 | esac |
| 1225 | done |
| 1226 | |
| 1227 | if test -n "$ac_prev"; then |
| 1228 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1229 | as_fn_error $? "missing argument to $ac_option" |
| 1230 | fi |
| 1231 | |
| 1232 | if test -n "$ac_unrecognized_opts"; then |
| 1233 | case $enable_option_checking in |
| 1234 | no) ;; |
| 1235 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1236 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1237 | esac |
| 1238 | fi |
| 1239 | |
| 1240 | # Check all directory arguments for consistency. |
| 1241 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1242 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1243 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1244 | libdir localedir mandir |
| 1245 | do |
| 1246 | eval ac_val=\$$ac_var |
| 1247 | # Remove trailing slashes. |
| 1248 | case $ac_val in |
| 1249 | */ ) |
| 1250 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1251 | eval $ac_var=\$ac_val;; |
| 1252 | esac |
| 1253 | # Be sure to have absolute directory names. |
| 1254 | case $ac_val in |
| 1255 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1256 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1257 | esac |
| 1258 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1259 | done |
| 1260 | |
| 1261 | # There might be people who depend on the old broken behavior: `$host' |
| 1262 | # used to hold the argument of --host etc. |
| 1263 | # FIXME: To remove some day. |
| 1264 | build=$build_alias |
| 1265 | host=$host_alias |
| 1266 | target=$target_alias |
| 1267 | |
| 1268 | # FIXME: To remove some day. |
| 1269 | if test "x$host_alias" != x; then |
| 1270 | if test "x$build_alias" = x; then |
| 1271 | cross_compiling=maybe |
| 1272 | elif test "x$build_alias" != "x$host_alias"; then |
| 1273 | cross_compiling=yes |
| 1274 | fi |
| 1275 | fi |
| 1276 | |
| 1277 | ac_tool_prefix= |
| 1278 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1279 | |
| 1280 | test "$silent" = yes && exec 6>/dev/null |
| 1281 | |
| 1282 | |
| 1283 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1284 | ac_ls_di=`ls -di .` && |
| 1285 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1286 | as_fn_error $? "working directory cannot be determined" |
| 1287 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1288 | as_fn_error $? "pwd does not report name of working directory" |
| 1289 | |
| 1290 | |
| 1291 | # Find the source files, if location was not specified. |
| 1292 | if test -z "$srcdir"; then |
| 1293 | ac_srcdir_defaulted=yes |
| 1294 | # Try the directory containing this script, then the parent directory. |
| 1295 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1296 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1297 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1298 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1299 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1300 | $as_echo X"$as_myself" | |
| 1301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1302 | s//\1/ |
| 1303 | q |
| 1304 | } |
| 1305 | /^X\(\/\/\)[^/].*/{ |
| 1306 | s//\1/ |
| 1307 | q |
| 1308 | } |
| 1309 | /^X\(\/\/\)$/{ |
| 1310 | s//\1/ |
| 1311 | q |
| 1312 | } |
| 1313 | /^X\(\/\).*/{ |
| 1314 | s//\1/ |
| 1315 | q |
| 1316 | } |
| 1317 | s/.*/./; q'` |
| 1318 | srcdir=$ac_confdir |
| 1319 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1320 | srcdir=.. |
| 1321 | fi |
| 1322 | else |
| 1323 | ac_srcdir_defaulted=no |
| 1324 | fi |
| 1325 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1326 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1327 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1328 | fi |
| 1329 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1330 | ac_abs_confdir=`( |
| 1331 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1332 | pwd)` |
| 1333 | # When building in place, set srcdir=. |
| 1334 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1335 | srcdir=. |
| 1336 | fi |
| 1337 | # Remove unnecessary trailing slashes from srcdir. |
| 1338 | # Double slashes in file names in object file debugging info |
| 1339 | # mess up M-x gdb in Emacs. |
| 1340 | case $srcdir in |
| 1341 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1342 | esac |
| 1343 | for ac_var in $ac_precious_vars; do |
| 1344 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1345 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1346 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1347 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1348 | done |
| 1349 | |
| 1350 | # |
| 1351 | # Report the --help message. |
| 1352 | # |
| 1353 | if test "$ac_init_help" = "long"; then |
| 1354 | # Omit some internal or obsolete options to make the list less imposing. |
| 1355 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1356 | cat <<_ACEOF |
| 1357 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. |
| 1358 | |
| 1359 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1360 | |
| 1361 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1362 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1363 | |
| 1364 | Defaults for the options are specified in brackets. |
| 1365 | |
| 1366 | Configuration: |
| 1367 | -h, --help display this help and exit |
| 1368 | --help=short display options specific to this package |
| 1369 | --help=recursive display the short help of all the included packages |
| 1370 | -V, --version display version information and exit |
| 1371 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1372 | --cache-file=FILE cache test results in FILE [disabled] |
| 1373 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1374 | -n, --no-create do not create output files |
| 1375 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1376 | |
| 1377 | Installation directories: |
| 1378 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1379 | [$ac_default_prefix] |
| 1380 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1381 | [PREFIX] |
| 1382 | |
| 1383 | By default, \`make install' will install all the files in |
| 1384 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1385 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1386 | for instance \`--prefix=\$HOME'. |
| 1387 | |
| 1388 | For better control, use the options below. |
| 1389 | |
| 1390 | Fine tuning of the installation directories: |
| 1391 | --bindir=DIR user executables [EPREFIX/bin] |
| 1392 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1393 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1394 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1395 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1396 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1397 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1398 | --includedir=DIR C header files [PREFIX/include] |
| 1399 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1400 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1401 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1402 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1403 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1404 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1405 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgcobol] |
| 1406 | --htmldir=DIR html documentation [DOCDIR] |
| 1407 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1408 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1409 | --psdir=DIR ps documentation [DOCDIR] |
| 1410 | _ACEOF |
| 1411 | |
| 1412 | cat <<\_ACEOF |
| 1413 | |
| 1414 | Program names: |
| 1415 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1416 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1417 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1418 | |
| 1419 | System types: |
| 1420 | --build=BUILD configure for building on BUILD [guessed] |
| 1421 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1422 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1423 | _ACEOF |
| 1424 | fi |
| 1425 | |
| 1426 | if test -n "$ac_init_help"; then |
| 1427 | case $ac_init_help in |
| 1428 | short | recursive ) echo "Configuration of package-unused version-unused:";; |
| 1429 | esac |
| 1430 | cat <<\_ACEOF |
| 1431 | |
| 1432 | Optional Features: |
| 1433 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1434 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1435 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1436 | --enable-multilib build many library versions (default) |
| 1437 | --enable-maintainer-mode |
| 1438 | enable make rules and dependencies not useful (and |
| 1439 | sometimes confusing) to the casual installer |
| 1440 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1441 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1442 | --enable-libgcobol Enable libgcobol |
| 1443 | --enable-version-specific-runtime-libs |
| 1444 | Specify that runtime libraries should be installed |
| 1445 | in a compiler-specific directory |
| 1446 | --enable-dependency-tracking |
| 1447 | do not reject slow dependency extractors |
| 1448 | --disable-dependency-tracking |
| 1449 | speeds up one-time build |
| 1450 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1451 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1452 | --enable-fast-install[=PKGS] |
| 1453 | optimize for fast installation [default=yes] |
| 1454 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1455 | --enable-darwin-at-rpath |
| 1456 | install libraries with @rpath/library-name, requires |
| 1457 | rpaths to be added to executables |
| 1458 | --disable-rpath do not hardcode runtime library paths |
| 1459 | --disable-libquadmath disable libquadmath support for libgcobol |
| 1460 | |
| 1461 | Optional Packages: |
| 1462 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1463 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1464 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1465 | both] |
| 1466 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1467 | --with-toolexeclibdir=DIR |
| 1468 | install libraries built with a cross compiler within |
| 1469 | DIR |
| 1470 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1471 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1472 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1473 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) |
| 1474 | --with-gcc-major-version-only |
| 1475 | use only GCC major number in filesystem paths |
| 1476 | |
| 1477 | Some influential environment variables: |
| 1478 | CC C compiler command |
| 1479 | CFLAGS C compiler flags |
| 1480 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1481 | nonstandard directory <lib dir> |
| 1482 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1483 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1484 | you have headers in a nonstandard directory <include dir> |
| 1485 | CPP C preprocessor |
| 1486 | CXX C++ compiler command |
| 1487 | CXXFLAGS C++ compiler flags |
| 1488 | CXXCPP C++ preprocessor |
| 1489 | |
| 1490 | Use these variables to override the choices made by `configure' or to help |
| 1491 | it to find libraries and programs with nonstandard names/locations. |
| 1492 | |
| 1493 | Report bugs to the package provider. |
| 1494 | _ACEOF |
| 1495 | ac_status=$? |
| 1496 | fi |
| 1497 | |
| 1498 | if test "$ac_init_help" = "recursive"; then |
| 1499 | # If there are subdirs, report their specific --help. |
| 1500 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1501 | test -d "$ac_dir" || |
| 1502 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1503 | continue |
| 1504 | ac_builddir=. |
| 1505 | |
| 1506 | case "$ac_dir" in |
| 1507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1508 | *) |
| 1509 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1510 | # A ".." for each directory in $ac_dir_suffix. |
| 1511 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1512 | case $ac_top_builddir_sub in |
| 1513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1515 | esac ;; |
| 1516 | esac |
| 1517 | ac_abs_top_builddir=$ac_pwd |
| 1518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1519 | # for backward compatibility: |
| 1520 | ac_top_builddir=$ac_top_build_prefix |
| 1521 | |
| 1522 | case $srcdir in |
| 1523 | .) # We are building in place. |
| 1524 | ac_srcdir=. |
| 1525 | ac_top_srcdir=$ac_top_builddir_sub |
| 1526 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1527 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1528 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1529 | ac_top_srcdir=$srcdir |
| 1530 | ac_abs_top_srcdir=$srcdir ;; |
| 1531 | *) # Relative name. |
| 1532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1533 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1535 | esac |
| 1536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1537 | |
| 1538 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1539 | # Check for guested configure. |
| 1540 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1541 | echo && |
| 1542 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1543 | elif test -f "$ac_srcdir/configure"; then |
| 1544 | echo && |
| 1545 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1546 | else |
| 1547 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1548 | fi || ac_status=$? |
| 1549 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1550 | done |
| 1551 | fi |
| 1552 | |
| 1553 | test -n "$ac_init_help" && exit $ac_status |
| 1554 | if $ac_init_version; then |
| 1555 | cat <<\_ACEOF |
| 1556 | package-unused configure version-unused |
| 1557 | generated by GNU Autoconf 2.69 |
| 1558 | |
| 1559 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1560 | This configure script is free software; the Free Software Foundation |
| 1561 | gives unlimited permission to copy, distribute and modify it. |
| 1562 | _ACEOF |
| 1563 | exit |
| 1564 | fi |
| 1565 | |
| 1566 | ## ------------------------ ## |
| 1567 | ## Autoconf initialization. ## |
| 1568 | ## ------------------------ ## |
| 1569 | |
| 1570 | # ac_fn_c_try_compile LINENO |
| 1571 | # -------------------------- |
| 1572 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1573 | ac_fn_c_try_compile () |
| 1574 | { |
| 1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1576 | rm -f conftest.$ac_objext |
| 1577 | if { { ac_try="$ac_compile" |
| 1578 | case "(($ac_try" in |
| 1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1580 | *) ac_try_echo=$ac_try;; |
| 1581 | esac |
| 1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1583 | $as_echo "$ac_try_echo"; } >&5 |
| 1584 | (eval "$ac_compile") 2>conftest.err |
| 1585 | ac_status=$? |
| 1586 | if test -s conftest.err; then |
| 1587 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1588 | cat conftest.er1 >&5 |
| 1589 | mv -f conftest.er1 conftest.err |
| 1590 | fi |
| 1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1592 | test $ac_status = 0; } && { |
| 1593 | test -z "$ac_c_werror_flag" || |
| 1594 | test ! -s conftest.err |
| 1595 | } && test -s conftest.$ac_objext; then : |
| 1596 | ac_retval=0 |
| 1597 | else |
| 1598 | $as_echo "$as_me: failed program was:" >&5 |
| 1599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1600 | |
| 1601 | ac_retval=1 |
| 1602 | fi |
| 1603 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1604 | as_fn_set_status $ac_retval |
| 1605 | |
| 1606 | } # ac_fn_c_try_compile |
| 1607 | |
| 1608 | # ac_fn_c_try_cpp LINENO |
| 1609 | # ---------------------- |
| 1610 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1611 | ac_fn_c_try_cpp () |
| 1612 | { |
| 1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1614 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1615 | case "(($ac_try" in |
| 1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1617 | *) ac_try_echo=$ac_try;; |
| 1618 | esac |
| 1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1620 | $as_echo "$ac_try_echo"; } >&5 |
| 1621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1622 | ac_status=$? |
| 1623 | if test -s conftest.err; then |
| 1624 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1625 | cat conftest.er1 >&5 |
| 1626 | mv -f conftest.er1 conftest.err |
| 1627 | fi |
| 1628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1629 | test $ac_status = 0; } > conftest.i && { |
| 1630 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1631 | test ! -s conftest.err |
| 1632 | }; then : |
| 1633 | ac_retval=0 |
| 1634 | else |
| 1635 | $as_echo "$as_me: failed program was:" >&5 |
| 1636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1637 | |
| 1638 | ac_retval=1 |
| 1639 | fi |
| 1640 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1641 | as_fn_set_status $ac_retval |
| 1642 | |
| 1643 | } # ac_fn_c_try_cpp |
| 1644 | |
| 1645 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1646 | # ------------------------------------------------------- |
| 1647 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1648 | # the include files in INCLUDES and setting the cache variable VAR |
| 1649 | # accordingly. |
| 1650 | ac_fn_c_check_header_mongrel () |
| 1651 | { |
| 1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1653 | if eval \${$3+:} false; then : |
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1655 | $as_echo_n "checking for $2... " >&6; } |
| 1656 | if eval \${$3+:} false; then : |
| 1657 | $as_echo_n "(cached) " >&6 |
| 1658 | fi |
| 1659 | eval ac_res=\$$3 |
| 1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1661 | $as_echo "$ac_res" >&6; } |
| 1662 | else |
| 1663 | # Is the header compilable? |
| 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1665 | $as_echo_n "checking $2 usability... " >&6; } |
| 1666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1667 | /* end confdefs.h. */ |
| 1668 | $4 |
| 1669 | #include <$2> |
| 1670 | _ACEOF |
| 1671 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1672 | ac_header_compiler=yes |
| 1673 | else |
| 1674 | ac_header_compiler=no |
| 1675 | fi |
| 1676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1678 | $as_echo "$ac_header_compiler" >&6; } |
| 1679 | |
| 1680 | # Is the header present? |
| 1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1682 | $as_echo_n "checking $2 presence... " >&6; } |
| 1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1684 | /* end confdefs.h. */ |
| 1685 | #include <$2> |
| 1686 | _ACEOF |
| 1687 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1688 | ac_header_preproc=yes |
| 1689 | else |
| 1690 | ac_header_preproc=no |
| 1691 | fi |
| 1692 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1694 | $as_echo "$ac_header_preproc" >&6; } |
| 1695 | |
| 1696 | # So? What about this header? |
| 1697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1698 | yes:no: ) |
| 1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1700 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1702 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1703 | ;; |
| 1704 | no:yes:* ) |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1706 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1708 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1710 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1712 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1714 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1715 | ;; |
| 1716 | esac |
| 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1718 | $as_echo_n "checking for $2... " >&6; } |
| 1719 | if eval \${$3+:} false; then : |
| 1720 | $as_echo_n "(cached) " >&6 |
| 1721 | else |
| 1722 | eval "$3=\$ac_header_compiler" |
| 1723 | fi |
| 1724 | eval ac_res=\$$3 |
| 1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1726 | $as_echo "$ac_res" >&6; } |
| 1727 | fi |
| 1728 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1729 | |
| 1730 | } # ac_fn_c_check_header_mongrel |
| 1731 | |
| 1732 | # ac_fn_c_try_run LINENO |
| 1733 | # ---------------------- |
| 1734 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1735 | # that executables *can* be run. |
| 1736 | ac_fn_c_try_run () |
| 1737 | { |
| 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1739 | if { { ac_try="$ac_link" |
| 1740 | case "(($ac_try" in |
| 1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1742 | *) ac_try_echo=$ac_try;; |
| 1743 | esac |
| 1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1745 | $as_echo "$ac_try_echo"; } >&5 |
| 1746 | (eval "$ac_link") 2>&5 |
| 1747 | ac_status=$? |
| 1748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1749 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1750 | { { case "(($ac_try" in |
| 1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1752 | *) ac_try_echo=$ac_try;; |
| 1753 | esac |
| 1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1755 | $as_echo "$ac_try_echo"; } >&5 |
| 1756 | (eval "$ac_try") 2>&5 |
| 1757 | ac_status=$? |
| 1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1759 | test $ac_status = 0; }; }; then : |
| 1760 | ac_retval=0 |
| 1761 | else |
| 1762 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1763 | $as_echo "$as_me: failed program was:" >&5 |
| 1764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1765 | |
| 1766 | ac_retval=$ac_status |
| 1767 | fi |
| 1768 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1770 | as_fn_set_status $ac_retval |
| 1771 | |
| 1772 | } # ac_fn_c_try_run |
| 1773 | |
| 1774 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1775 | # ------------------------------------------------------- |
| 1776 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1777 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1778 | ac_fn_c_check_header_compile () |
| 1779 | { |
| 1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1782 | $as_echo_n "checking for $2... " >&6; } |
| 1783 | if eval \${$3+:} false; then : |
| 1784 | $as_echo_n "(cached) " >&6 |
| 1785 | else |
| 1786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1787 | /* end confdefs.h. */ |
| 1788 | $4 |
| 1789 | #include <$2> |
| 1790 | _ACEOF |
| 1791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1792 | eval "$3=yes" |
| 1793 | else |
| 1794 | eval "$3=no" |
| 1795 | fi |
| 1796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1797 | fi |
| 1798 | eval ac_res=\$$3 |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1800 | $as_echo "$ac_res" >&6; } |
| 1801 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1802 | |
| 1803 | } # ac_fn_c_check_header_compile |
| 1804 | |
| 1805 | # ac_fn_c_try_link LINENO |
| 1806 | # ----------------------- |
| 1807 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1808 | ac_fn_c_try_link () |
| 1809 | { |
| 1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1811 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1812 | if { { ac_try="$ac_link" |
| 1813 | case "(($ac_try" in |
| 1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1815 | *) ac_try_echo=$ac_try;; |
| 1816 | esac |
| 1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1818 | $as_echo "$ac_try_echo"; } >&5 |
| 1819 | (eval "$ac_link") 2>conftest.err |
| 1820 | ac_status=$? |
| 1821 | if test -s conftest.err; then |
| 1822 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1823 | cat conftest.er1 >&5 |
| 1824 | mv -f conftest.er1 conftest.err |
| 1825 | fi |
| 1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1827 | test $ac_status = 0; } && { |
| 1828 | test -z "$ac_c_werror_flag" || |
| 1829 | test ! -s conftest.err |
| 1830 | } && test -s conftest$ac_exeext && { |
| 1831 | test "$cross_compiling" = yes || |
| 1832 | test -x conftest$ac_exeext |
| 1833 | }; then : |
| 1834 | ac_retval=0 |
| 1835 | else |
| 1836 | $as_echo "$as_me: failed program was:" >&5 |
| 1837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1838 | |
| 1839 | ac_retval=1 |
| 1840 | fi |
| 1841 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1842 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1843 | # interfere with the next link command; also delete a directory that is |
| 1844 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1845 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1847 | as_fn_set_status $ac_retval |
| 1848 | |
| 1849 | } # ac_fn_c_try_link |
| 1850 | |
| 1851 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1852 | # ---------------------------------- |
| 1853 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1854 | ac_fn_c_check_func () |
| 1855 | { |
| 1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1858 | $as_echo_n "checking for $2... " >&6; } |
| 1859 | if eval \${$3+:} false; then : |
| 1860 | $as_echo_n "(cached) " >&6 |
| 1861 | else |
| 1862 | if test x$gcc_no_link = xyes; then |
| 1863 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 1864 | fi |
| 1865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1866 | /* end confdefs.h. */ |
| 1867 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1868 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1869 | #define $2 innocuous_$2 |
| 1870 | |
| 1871 | /* System header to define __stub macros and hopefully few prototypes, |
| 1872 | which can conflict with char $2 (); below. |
| 1873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1874 | <limits.h> exists even on freestanding compilers. */ |
| 1875 | |
| 1876 | #ifdef __STDC__ |
| 1877 | # include <limits.h> |
| 1878 | #else |
| 1879 | # include <assert.h> |
| 1880 | #endif |
| 1881 | |
| 1882 | #undef $2 |
| 1883 | |
| 1884 | /* Override any GCC internal prototype to avoid an error. |
| 1885 | Use char because int might match the return type of a GCC |
| 1886 | builtin and then its argument prototype would still apply. */ |
| 1887 | #ifdef __cplusplus |
| 1888 | extern "C" |
| 1889 | #endif |
| 1890 | char $2 (); |
| 1891 | /* The GNU C library defines this for functions which it implements |
| 1892 | to always fail with ENOSYS. Some functions are actually named |
| 1893 | something starting with __ and the normal name is an alias. */ |
| 1894 | #if defined __stub_$2 || defined __stub___$2 |
| 1895 | choke me |
| 1896 | #endif |
| 1897 | |
| 1898 | int |
| 1899 | main () |
| 1900 | { |
| 1901 | return $2 (); |
| 1902 | ; |
| 1903 | return 0; |
| 1904 | } |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_link "$LINENO"; then : |
| 1907 | eval "$3=yes" |
| 1908 | else |
| 1909 | eval "$3=no" |
| 1910 | fi |
| 1911 | rm -f core conftest.err conftest.$ac_objext \ |
| 1912 | conftest$ac_exeext conftest.$ac_ext |
| 1913 | fi |
| 1914 | eval ac_res=\$$3 |
| 1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1916 | $as_echo "$ac_res" >&6; } |
| 1917 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1918 | |
| 1919 | } # ac_fn_c_check_func |
| 1920 | |
| 1921 | # ac_fn_cxx_try_compile LINENO |
| 1922 | # ---------------------------- |
| 1923 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1924 | ac_fn_cxx_try_compile () |
| 1925 | { |
| 1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1927 | rm -f conftest.$ac_objext |
| 1928 | if { { ac_try="$ac_compile" |
| 1929 | case "(($ac_try" in |
| 1930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1931 | *) ac_try_echo=$ac_try;; |
| 1932 | esac |
| 1933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1934 | $as_echo "$ac_try_echo"; } >&5 |
| 1935 | (eval "$ac_compile") 2>conftest.err |
| 1936 | ac_status=$? |
| 1937 | if test -s conftest.err; then |
| 1938 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1939 | cat conftest.er1 >&5 |
| 1940 | mv -f conftest.er1 conftest.err |
| 1941 | fi |
| 1942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1943 | test $ac_status = 0; } && { |
| 1944 | test -z "$ac_cxx_werror_flag" || |
| 1945 | test ! -s conftest.err |
| 1946 | } && test -s conftest.$ac_objext; then : |
| 1947 | ac_retval=0 |
| 1948 | else |
| 1949 | $as_echo "$as_me: failed program was:" >&5 |
| 1950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1951 | |
| 1952 | ac_retval=1 |
| 1953 | fi |
| 1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1955 | as_fn_set_status $ac_retval |
| 1956 | |
| 1957 | } # ac_fn_cxx_try_compile |
| 1958 | |
| 1959 | # ac_fn_cxx_try_cpp LINENO |
| 1960 | # ------------------------ |
| 1961 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1962 | ac_fn_cxx_try_cpp () |
| 1963 | { |
| 1964 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1965 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1966 | case "(($ac_try" in |
| 1967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1968 | *) ac_try_echo=$ac_try;; |
| 1969 | esac |
| 1970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1971 | $as_echo "$ac_try_echo"; } >&5 |
| 1972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1973 | ac_status=$? |
| 1974 | if test -s conftest.err; then |
| 1975 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1976 | cat conftest.er1 >&5 |
| 1977 | mv -f conftest.er1 conftest.err |
| 1978 | fi |
| 1979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1980 | test $ac_status = 0; } > conftest.i && { |
| 1981 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1982 | test ! -s conftest.err |
| 1983 | }; then : |
| 1984 | ac_retval=0 |
| 1985 | else |
| 1986 | $as_echo "$as_me: failed program was:" >&5 |
| 1987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1988 | |
| 1989 | ac_retval=1 |
| 1990 | fi |
| 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1992 | as_fn_set_status $ac_retval |
| 1993 | |
| 1994 | } # ac_fn_cxx_try_cpp |
| 1995 | |
| 1996 | # ac_fn_cxx_try_link LINENO |
| 1997 | # ------------------------- |
| 1998 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1999 | ac_fn_cxx_try_link () |
| 2000 | { |
| 2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2003 | if { { ac_try="$ac_link" |
| 2004 | case "(($ac_try" in |
| 2005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2006 | *) ac_try_echo=$ac_try;; |
| 2007 | esac |
| 2008 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2009 | $as_echo "$ac_try_echo"; } >&5 |
| 2010 | (eval "$ac_link") 2>conftest.err |
| 2011 | ac_status=$? |
| 2012 | if test -s conftest.err; then |
| 2013 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2014 | cat conftest.er1 >&5 |
| 2015 | mv -f conftest.er1 conftest.err |
| 2016 | fi |
| 2017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2018 | test $ac_status = 0; } && { |
| 2019 | test -z "$ac_cxx_werror_flag" || |
| 2020 | test ! -s conftest.err |
| 2021 | } && test -s conftest$ac_exeext && { |
| 2022 | test "$cross_compiling" = yes || |
| 2023 | test -x conftest$ac_exeext |
| 2024 | }; then : |
| 2025 | ac_retval=0 |
| 2026 | else |
| 2027 | $as_echo "$as_me: failed program was:" >&5 |
| 2028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2029 | |
| 2030 | ac_retval=1 |
| 2031 | fi |
| 2032 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2033 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2034 | # interfere with the next link command; also delete a directory that is |
| 2035 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2036 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2037 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2038 | as_fn_set_status $ac_retval |
| 2039 | |
| 2040 | } # ac_fn_cxx_try_link |
| 2041 | |
| 2042 | # ac_fn_cxx_try_run LINENO |
| 2043 | # ------------------------ |
| 2044 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2045 | # that executables *can* be run. |
| 2046 | ac_fn_cxx_try_run () |
| 2047 | { |
| 2048 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2049 | if { { ac_try="$ac_link" |
| 2050 | case "(($ac_try" in |
| 2051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2052 | *) ac_try_echo=$ac_try;; |
| 2053 | esac |
| 2054 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2055 | $as_echo "$ac_try_echo"; } >&5 |
| 2056 | (eval "$ac_link") 2>&5 |
| 2057 | ac_status=$? |
| 2058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2059 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2060 | { { case "(($ac_try" in |
| 2061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2062 | *) ac_try_echo=$ac_try;; |
| 2063 | esac |
| 2064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2065 | $as_echo "$ac_try_echo"; } >&5 |
| 2066 | (eval "$ac_try") 2>&5 |
| 2067 | ac_status=$? |
| 2068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2069 | test $ac_status = 0; }; }; then : |
| 2070 | ac_retval=0 |
| 2071 | else |
| 2072 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2073 | $as_echo "$as_me: failed program was:" >&5 |
| 2074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2075 | |
| 2076 | ac_retval=$ac_status |
| 2077 | fi |
| 2078 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2079 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2080 | as_fn_set_status $ac_retval |
| 2081 | |
| 2082 | } # ac_fn_cxx_try_run |
| 2083 | |
| 2084 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2085 | # --------------------------------------------------------- |
| 2086 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2087 | # the include files in INCLUDES and setting the cache variable VAR |
| 2088 | # accordingly. |
| 2089 | ac_fn_cxx_check_header_mongrel () |
| 2090 | { |
| 2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2092 | if eval \${$3+:} false; then : |
| 2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2094 | $as_echo_n "checking for $2... " >&6; } |
| 2095 | if eval \${$3+:} false; then : |
| 2096 | $as_echo_n "(cached) " >&6 |
| 2097 | fi |
| 2098 | eval ac_res=\$$3 |
| 2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2100 | $as_echo "$ac_res" >&6; } |
| 2101 | else |
| 2102 | # Is the header compilable? |
| 2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2104 | $as_echo_n "checking $2 usability... " >&6; } |
| 2105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2106 | /* end confdefs.h. */ |
| 2107 | $4 |
| 2108 | #include <$2> |
| 2109 | _ACEOF |
| 2110 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2111 | ac_header_compiler=yes |
| 2112 | else |
| 2113 | ac_header_compiler=no |
| 2114 | fi |
| 2115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2117 | $as_echo "$ac_header_compiler" >&6; } |
| 2118 | |
| 2119 | # Is the header present? |
| 2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2121 | $as_echo_n "checking $2 presence... " >&6; } |
| 2122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2123 | /* end confdefs.h. */ |
| 2124 | #include <$2> |
| 2125 | _ACEOF |
| 2126 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2127 | ac_header_preproc=yes |
| 2128 | else |
| 2129 | ac_header_preproc=no |
| 2130 | fi |
| 2131 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2133 | $as_echo "$ac_header_preproc" >&6; } |
| 2134 | |
| 2135 | # So? What about this header? |
| 2136 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2137 | yes:no: ) |
| 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2139 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2141 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2142 | ;; |
| 2143 | no:yes:* ) |
| 2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2145 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2147 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2149 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2151 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2153 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2154 | ;; |
| 2155 | esac |
| 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2157 | $as_echo_n "checking for $2... " >&6; } |
| 2158 | if eval \${$3+:} false; then : |
| 2159 | $as_echo_n "(cached) " >&6 |
| 2160 | else |
| 2161 | eval "$3=\$ac_header_compiler" |
| 2162 | fi |
| 2163 | eval ac_res=\$$3 |
| 2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2165 | $as_echo "$ac_res" >&6; } |
| 2166 | fi |
| 2167 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2168 | |
| 2169 | } # ac_fn_cxx_check_header_mongrel |
| 2170 | |
| 2171 | # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES |
| 2172 | # ---------------------------------------------- |
| 2173 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2174 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2175 | # computed |
| 2176 | ac_fn_cxx_compute_int () |
| 2177 | { |
| 2178 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2179 | if test "$cross_compiling" = yes; then |
| 2180 | # Depending upon the size, compute the lo and hi bounds. |
| 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2182 | /* end confdefs.h. */ |
| 2183 | $4 |
| 2184 | int |
| 2185 | main () |
| 2186 | { |
| 2187 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2188 | test_array [0] = 0; |
| 2189 | return test_array [0]; |
| 2190 | |
| 2191 | ; |
| 2192 | return 0; |
| 2193 | } |
| 2194 | _ACEOF |
| 2195 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2196 | ac_lo=0 ac_mid=0 |
| 2197 | while :; do |
| 2198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2199 | /* end confdefs.h. */ |
| 2200 | $4 |
| 2201 | int |
| 2202 | main () |
| 2203 | { |
| 2204 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2205 | test_array [0] = 0; |
| 2206 | return test_array [0]; |
| 2207 | |
| 2208 | ; |
| 2209 | return 0; |
| 2210 | } |
| 2211 | _ACEOF |
| 2212 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2213 | ac_hi=$ac_mid; break |
| 2214 | else |
| 2215 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2216 | if test $ac_lo -le $ac_mid; then |
| 2217 | ac_lo= ac_hi= |
| 2218 | break |
| 2219 | fi |
| 2220 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2221 | fi |
| 2222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2223 | done |
| 2224 | else |
| 2225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2226 | /* end confdefs.h. */ |
| 2227 | $4 |
| 2228 | int |
| 2229 | main () |
| 2230 | { |
| 2231 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2232 | test_array [0] = 0; |
| 2233 | return test_array [0]; |
| 2234 | |
| 2235 | ; |
| 2236 | return 0; |
| 2237 | } |
| 2238 | _ACEOF |
| 2239 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2240 | ac_hi=-1 ac_mid=-1 |
| 2241 | while :; do |
| 2242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2243 | /* end confdefs.h. */ |
| 2244 | $4 |
| 2245 | int |
| 2246 | main () |
| 2247 | { |
| 2248 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2249 | test_array [0] = 0; |
| 2250 | return test_array [0]; |
| 2251 | |
| 2252 | ; |
| 2253 | return 0; |
| 2254 | } |
| 2255 | _ACEOF |
| 2256 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2257 | ac_lo=$ac_mid; break |
| 2258 | else |
| 2259 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2260 | if test $ac_mid -le $ac_hi; then |
| 2261 | ac_lo= ac_hi= |
| 2262 | break |
| 2263 | fi |
| 2264 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2265 | fi |
| 2266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2267 | done |
| 2268 | else |
| 2269 | ac_lo= ac_hi= |
| 2270 | fi |
| 2271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2272 | fi |
| 2273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2274 | # Binary search between lo and hi bounds. |
| 2275 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2276 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2278 | /* end confdefs.h. */ |
| 2279 | $4 |
| 2280 | int |
| 2281 | main () |
| 2282 | { |
| 2283 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2284 | test_array [0] = 0; |
| 2285 | return test_array [0]; |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2292 | ac_hi=$ac_mid |
| 2293 | else |
| 2294 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2295 | fi |
| 2296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2297 | done |
| 2298 | case $ac_lo in #(( |
| 2299 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2300 | '') ac_retval=1 ;; |
| 2301 | esac |
| 2302 | else |
| 2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2304 | /* end confdefs.h. */ |
| 2305 | $4 |
| 2306 | static long int longval () { return $2; } |
| 2307 | static unsigned long int ulongval () { return $2; } |
| 2308 | #include <stdio.h> |
| 2309 | #include <stdlib.h> |
| 2310 | int |
| 2311 | main () |
| 2312 | { |
| 2313 | |
| 2314 | FILE *f = fopen ("conftest.val", "w"); |
| 2315 | if (! f) |
| 2316 | return 1; |
| 2317 | if (($2) < 0) |
| 2318 | { |
| 2319 | long int i = longval (); |
| 2320 | if (i != ($2)) |
| 2321 | return 1; |
| 2322 | fprintf (f, "%ld", i); |
| 2323 | } |
| 2324 | else |
| 2325 | { |
| 2326 | unsigned long int i = ulongval (); |
| 2327 | if (i != ($2)) |
| 2328 | return 1; |
| 2329 | fprintf (f, "%lu", i); |
| 2330 | } |
| 2331 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2332 | on some platforms. */ |
| 2333 | return ferror (f) || fclose (f) != 0; |
| 2334 | |
| 2335 | ; |
| 2336 | return 0; |
| 2337 | } |
| 2338 | _ACEOF |
| 2339 | if ac_fn_cxx_try_run "$LINENO"; then : |
| 2340 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2341 | else |
| 2342 | ac_retval=1 |
| 2343 | fi |
| 2344 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2345 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2346 | rm -f conftest.val |
| 2347 | |
| 2348 | fi |
| 2349 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2350 | as_fn_set_status $ac_retval |
| 2351 | |
| 2352 | } # ac_fn_cxx_compute_int |
| 2353 | |
| 2354 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
| 2355 | # --------------------------------------------------------- |
| 2356 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2357 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2358 | ac_fn_cxx_check_header_compile () |
| 2359 | { |
| 2360 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2362 | $as_echo_n "checking for $2... " >&6; } |
| 2363 | if eval \${$3+:} false; then : |
| 2364 | $as_echo_n "(cached) " >&6 |
| 2365 | else |
| 2366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2367 | /* end confdefs.h. */ |
| 2368 | $4 |
| 2369 | #include <$2> |
| 2370 | _ACEOF |
| 2371 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2372 | eval "$3=yes" |
| 2373 | else |
| 2374 | eval "$3=no" |
| 2375 | fi |
| 2376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2377 | fi |
| 2378 | eval ac_res=\$$3 |
| 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2380 | $as_echo "$ac_res" >&6; } |
| 2381 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2382 | |
| 2383 | } # ac_fn_cxx_check_header_compile |
| 2384 | |
| 2385 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES |
| 2386 | # ----------------------------------------------- |
| 2387 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2388 | # accordingly. |
| 2389 | ac_fn_cxx_check_decl () |
| 2390 | { |
| 2391 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2392 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2393 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2395 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2396 | if eval \${$3+:} false; then : |
| 2397 | $as_echo_n "(cached) " >&6 |
| 2398 | else |
| 2399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2400 | /* end confdefs.h. */ |
| 2401 | $4 |
| 2402 | int |
| 2403 | main () |
| 2404 | { |
| 2405 | #ifndef $as_decl_name |
| 2406 | #ifdef __cplusplus |
| 2407 | (void) $as_decl_use; |
| 2408 | #else |
| 2409 | (void) $as_decl_name; |
| 2410 | #endif |
| 2411 | #endif |
| 2412 | |
| 2413 | ; |
| 2414 | return 0; |
| 2415 | } |
| 2416 | _ACEOF |
| 2417 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2418 | eval "$3=yes" |
| 2419 | else |
| 2420 | eval "$3=no" |
| 2421 | fi |
| 2422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2423 | fi |
| 2424 | eval ac_res=\$$3 |
| 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2426 | $as_echo "$ac_res" >&6; } |
| 2427 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2428 | |
| 2429 | } # ac_fn_cxx_check_decl |
| 2430 | |
| 2431 | # ac_fn_cxx_check_func LINENO FUNC VAR |
| 2432 | # ------------------------------------ |
| 2433 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2434 | ac_fn_cxx_check_func () |
| 2435 | { |
| 2436 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2438 | $as_echo_n "checking for $2... " >&6; } |
| 2439 | if eval \${$3+:} false; then : |
| 2440 | $as_echo_n "(cached) " >&6 |
| 2441 | else |
| 2442 | if test x$gcc_no_link = xyes; then |
| 2443 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 2444 | fi |
| 2445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2446 | /* end confdefs.h. */ |
| 2447 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2449 | #define $2 innocuous_$2 |
| 2450 | |
| 2451 | /* System header to define __stub macros and hopefully few prototypes, |
| 2452 | which can conflict with char $2 (); below. |
| 2453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2454 | <limits.h> exists even on freestanding compilers. */ |
| 2455 | |
| 2456 | #ifdef __STDC__ |
| 2457 | # include <limits.h> |
| 2458 | #else |
| 2459 | # include <assert.h> |
| 2460 | #endif |
| 2461 | |
| 2462 | #undef $2 |
| 2463 | |
| 2464 | /* Override any GCC internal prototype to avoid an error. |
| 2465 | Use char because int might match the return type of a GCC |
| 2466 | builtin and then its argument prototype would still apply. */ |
| 2467 | #ifdef __cplusplus |
| 2468 | extern "C" |
| 2469 | #endif |
| 2470 | char $2 (); |
| 2471 | /* The GNU C library defines this for functions which it implements |
| 2472 | to always fail with ENOSYS. Some functions are actually named |
| 2473 | something starting with __ and the normal name is an alias. */ |
| 2474 | #if defined __stub_$2 || defined __stub___$2 |
| 2475 | choke me |
| 2476 | #endif |
| 2477 | |
| 2478 | int |
| 2479 | main () |
| 2480 | { |
| 2481 | return $2 (); |
| 2482 | ; |
| 2483 | return 0; |
| 2484 | } |
| 2485 | _ACEOF |
| 2486 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 2487 | eval "$3=yes" |
| 2488 | else |
| 2489 | eval "$3=no" |
| 2490 | fi |
| 2491 | rm -f core conftest.err conftest.$ac_objext \ |
| 2492 | conftest$ac_exeext conftest.$ac_ext |
| 2493 | fi |
| 2494 | eval ac_res=\$$3 |
| 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2496 | $as_echo "$ac_res" >&6; } |
| 2497 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2498 | |
| 2499 | } # ac_fn_cxx_check_func |
| 2500 | |
| 2501 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2502 | # ------------------------------------------------------ |
| 2503 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2504 | # INCLUDES, setting cache variable VAR accordingly. |
| 2505 | ac_fn_cxx_check_member () |
| 2506 | { |
| 2507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2509 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2510 | if eval \${$4+:} false; then : |
| 2511 | $as_echo_n "(cached) " >&6 |
| 2512 | else |
| 2513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2514 | /* end confdefs.h. */ |
| 2515 | $5 |
| 2516 | int |
| 2517 | main () |
| 2518 | { |
| 2519 | static $2 ac_aggr; |
| 2520 | if (ac_aggr.$3) |
| 2521 | return 0; |
| 2522 | ; |
| 2523 | return 0; |
| 2524 | } |
| 2525 | _ACEOF |
| 2526 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2527 | eval "$4=yes" |
| 2528 | else |
| 2529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2530 | /* end confdefs.h. */ |
| 2531 | $5 |
| 2532 | int |
| 2533 | main () |
| 2534 | { |
| 2535 | static $2 ac_aggr; |
| 2536 | if (sizeof ac_aggr.$3) |
| 2537 | return 0; |
| 2538 | ; |
| 2539 | return 0; |
| 2540 | } |
| 2541 | _ACEOF |
| 2542 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2543 | eval "$4=yes" |
| 2544 | else |
| 2545 | eval "$4=no" |
| 2546 | fi |
| 2547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2548 | fi |
| 2549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2550 | fi |
| 2551 | eval ac_res=\$$4 |
| 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2553 | $as_echo "$ac_res" >&6; } |
| 2554 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2555 | |
| 2556 | } # ac_fn_cxx_check_member |
| 2557 | cat >config.log <<_ACEOF |
| 2558 | This file contains any messages produced by compilers while |
| 2559 | running configure, to aid debugging if configure makes a mistake. |
| 2560 | |
| 2561 | It was created by package-unused $as_me version-unused, which was |
| 2562 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2563 | |
| 2564 | $ $0 $@ |
| 2565 | |
| 2566 | _ACEOF |
| 2567 | exec 5>>config.log |
| 2568 | { |
| 2569 | cat <<_ASUNAME |
| 2570 | ## --------- ## |
| 2571 | ## Platform. ## |
| 2572 | ## --------- ## |
| 2573 | |
| 2574 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2575 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2576 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2577 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2578 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2579 | |
| 2580 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2581 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2582 | |
| 2583 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2584 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2585 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2586 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2587 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2588 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2589 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2590 | |
| 2591 | _ASUNAME |
| 2592 | |
| 2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2594 | for as_dir in $PATH |
| 2595 | do |
| 2596 | IFS=$as_save_IFS |
| 2597 | test -z "$as_dir" && as_dir=. |
| 2598 | $as_echo "PATH: $as_dir" |
| 2599 | done |
| 2600 | IFS=$as_save_IFS |
| 2601 | |
| 2602 | } >&5 |
| 2603 | |
| 2604 | cat >&5 <<_ACEOF |
| 2605 | |
| 2606 | |
| 2607 | ## ----------- ## |
| 2608 | ## Core tests. ## |
| 2609 | ## ----------- ## |
| 2610 | |
| 2611 | _ACEOF |
| 2612 | |
| 2613 | |
| 2614 | # Keep a trace of the command line. |
| 2615 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2616 | # Strip out --silent because we don't want to record it for future runs. |
| 2617 | # Also quote any args containing shell meta-characters. |
| 2618 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2619 | ac_configure_args= |
| 2620 | ac_configure_args0= |
| 2621 | ac_configure_args1= |
| 2622 | ac_must_keep_next=false |
| 2623 | for ac_pass in 1 2 |
| 2624 | do |
| 2625 | for ac_arg |
| 2626 | do |
| 2627 | case $ac_arg in |
| 2628 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2629 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2630 | | -silent | --silent | --silen | --sile | --sil) |
| 2631 | continue ;; |
| 2632 | *\'*) |
| 2633 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2634 | esac |
| 2635 | case $ac_pass in |
| 2636 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2637 | 2) |
| 2638 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2639 | if test $ac_must_keep_next = true; then |
| 2640 | ac_must_keep_next=false # Got value, back to normal. |
| 2641 | else |
| 2642 | case $ac_arg in |
| 2643 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2644 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2645 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2646 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2647 | case "$ac_configure_args0 " in |
| 2648 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2649 | esac |
| 2650 | ;; |
| 2651 | -* ) ac_must_keep_next=true ;; |
| 2652 | esac |
| 2653 | fi |
| 2654 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2655 | ;; |
| 2656 | esac |
| 2657 | done |
| 2658 | done |
| 2659 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2660 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2661 | |
| 2662 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2663 | # config.log. We remove comments because anyway the quotes in there |
| 2664 | # would cause problems or look ugly. |
| 2665 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2666 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2667 | trap 'exit_status=$? |
| 2668 | # Save into config.log some information that might help in debugging. |
| 2669 | { |
| 2670 | echo |
| 2671 | |
| 2672 | $as_echo "## ---------------- ## |
| 2673 | ## Cache variables. ## |
| 2674 | ## ---------------- ##" |
| 2675 | echo |
| 2676 | # The following way of writing the cache mishandles newlines in values, |
| 2677 | ( |
| 2678 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2679 | eval ac_val=\$$ac_var |
| 2680 | case $ac_val in #( |
| 2681 | *${as_nl}*) |
| 2682 | case $ac_var in #( |
| 2683 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2684 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2685 | esac |
| 2686 | case $ac_var in #( |
| 2687 | _ | IFS | as_nl) ;; #( |
| 2688 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2689 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2690 | esac ;; |
| 2691 | esac |
| 2692 | done |
| 2693 | (set) 2>&1 | |
| 2694 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2695 | *${as_nl}ac_space=\ *) |
| 2696 | sed -n \ |
| 2697 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2698 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2699 | ;; #( |
| 2700 | *) |
| 2701 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2702 | ;; |
| 2703 | esac | |
| 2704 | sort |
| 2705 | ) |
| 2706 | echo |
| 2707 | |
| 2708 | $as_echo "## ----------------- ## |
| 2709 | ## Output variables. ## |
| 2710 | ## ----------------- ##" |
| 2711 | echo |
| 2712 | for ac_var in $ac_subst_vars |
| 2713 | do |
| 2714 | eval ac_val=\$$ac_var |
| 2715 | case $ac_val in |
| 2716 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2717 | esac |
| 2718 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2719 | done | sort |
| 2720 | echo |
| 2721 | |
| 2722 | if test -n "$ac_subst_files"; then |
| 2723 | $as_echo "## ------------------- ## |
| 2724 | ## File substitutions. ## |
| 2725 | ## ------------------- ##" |
| 2726 | echo |
| 2727 | for ac_var in $ac_subst_files |
| 2728 | do |
| 2729 | eval ac_val=\$$ac_var |
| 2730 | case $ac_val in |
| 2731 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2732 | esac |
| 2733 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2734 | done | sort |
| 2735 | echo |
| 2736 | fi |
| 2737 | |
| 2738 | if test -s confdefs.h; then |
| 2739 | $as_echo "## ----------- ## |
| 2740 | ## confdefs.h. ## |
| 2741 | ## ----------- ##" |
| 2742 | echo |
| 2743 | cat confdefs.h |
| 2744 | echo |
| 2745 | fi |
| 2746 | test "$ac_signal" != 0 && |
| 2747 | $as_echo "$as_me: caught signal $ac_signal" |
| 2748 | $as_echo "$as_me: exit $exit_status" |
| 2749 | } >&5 |
| 2750 | rm -f core *.core core.conftest.* && |
| 2751 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2752 | exit $exit_status |
| 2753 | ' 0 |
| 2754 | for ac_signal in 1 2 13 15; do |
| 2755 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2756 | done |
| 2757 | ac_signal=0 |
| 2758 | |
| 2759 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2760 | rm -f -r conftest* confdefs.h |
| 2761 | |
| 2762 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2763 | |
| 2764 | # Predefined preprocessor variables. |
| 2765 | |
| 2766 | cat >>confdefs.h <<_ACEOF |
| 2767 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2768 | _ACEOF |
| 2769 | |
| 2770 | cat >>confdefs.h <<_ACEOF |
| 2771 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2772 | _ACEOF |
| 2773 | |
| 2774 | cat >>confdefs.h <<_ACEOF |
| 2775 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2776 | _ACEOF |
| 2777 | |
| 2778 | cat >>confdefs.h <<_ACEOF |
| 2779 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2780 | _ACEOF |
| 2781 | |
| 2782 | cat >>confdefs.h <<_ACEOF |
| 2783 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2784 | _ACEOF |
| 2785 | |
| 2786 | cat >>confdefs.h <<_ACEOF |
| 2787 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2788 | _ACEOF |
| 2789 | |
| 2790 | |
| 2791 | # Let the site file select an alternate cache file if it wants to. |
| 2792 | # Prefer an explicitly selected file to automatically selected ones. |
| 2793 | ac_site_file1=NONE |
| 2794 | ac_site_file2=NONE |
| 2795 | if test -n "$CONFIG_SITE"; then |
| 2796 | # We do not want a PATH search for config.site. |
| 2797 | case $CONFIG_SITE in #(( |
| 2798 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2799 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2800 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2801 | esac |
| 2802 | elif test "x$prefix" != xNONE; then |
| 2803 | ac_site_file1=$prefix/share/config.site |
| 2804 | ac_site_file2=$prefix/etc/config.site |
| 2805 | else |
| 2806 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2807 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2808 | fi |
| 2809 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2810 | do |
| 2811 | test "x$ac_site_file" = xNONE && continue |
| 2812 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2814 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2815 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2816 | . "$ac_site_file" \ |
| 2817 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2819 | as_fn_error $? "failed to load site script $ac_site_file |
| 2820 | See \`config.log' for more details" "$LINENO" 5; } |
| 2821 | fi |
| 2822 | done |
| 2823 | |
| 2824 | if test -r "$cache_file"; then |
| 2825 | # Some versions of bash will fail to source /dev/null (special files |
| 2826 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2827 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2829 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2830 | case $cache_file in |
| 2831 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2832 | *) . "./$cache_file";; |
| 2833 | esac |
| 2834 | fi |
| 2835 | else |
| 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2837 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2838 | >$cache_file |
| 2839 | fi |
| 2840 | |
| 2841 | as_fn_append ac_header_list " floatingpoint.h" |
| 2842 | as_fn_append ac_header_list " ieeefp.h" |
| 2843 | as_fn_append ac_header_list " fenv.h" |
| 2844 | as_fn_append ac_header_list " fptrap.h" |
| 2845 | as_fn_append ac_header_list " complex.h" |
| 2846 | as_fn_append ac_header_list " stdlib.h" |
| 2847 | as_fn_append ac_header_list " errno.h" |
| 2848 | as_fn_append ac_func_list " getprogname" |
| 2849 | as_fn_append ac_func_list " random_r" |
| 2850 | as_fn_append ac_func_list " srandom_r" |
| 2851 | as_fn_append ac_func_list " initstate_r" |
| 2852 | as_fn_append ac_func_list " setstate_r" |
| 2853 | as_fn_append ac_func_list " strfromf32" |
| 2854 | as_fn_append ac_func_list " strfromf64" |
| 2855 | as_fn_append ac_func_list " strtof128" |
| 2856 | as_fn_append ac_func_list " strfromf128" |
| 2857 | # Check that the precious variables saved in the cache have kept the same |
| 2858 | # value. |
| 2859 | ac_cache_corrupted=false |
| 2860 | for ac_var in $ac_precious_vars; do |
| 2861 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2862 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2863 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2864 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2865 | case $ac_old_set,$ac_new_set in |
| 2866 | set,) |
| 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2868 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2869 | ac_cache_corrupted=: ;; |
| 2870 | ,set) |
| 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2872 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2873 | ac_cache_corrupted=: ;; |
| 2874 | ,);; |
| 2875 | *) |
| 2876 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2877 | # differences in whitespace do not lead to failure. |
| 2878 | ac_old_val_w=`echo x $ac_old_val` |
| 2879 | ac_new_val_w=`echo x $ac_new_val` |
| 2880 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2882 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2883 | ac_cache_corrupted=: |
| 2884 | else |
| 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2886 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2887 | eval $ac_var=\$ac_old_val |
| 2888 | fi |
| 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2890 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2892 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2893 | fi;; |
| 2894 | esac |
| 2895 | # Pass precious variables to config.status. |
| 2896 | if test "$ac_new_set" = set; then |
| 2897 | case $ac_new_val in |
| 2898 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2899 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2900 | esac |
| 2901 | case " $ac_configure_args " in |
| 2902 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2903 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2904 | esac |
| 2905 | fi |
| 2906 | done |
| 2907 | if $ac_cache_corrupted; then |
| 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2909 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2911 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2912 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2913 | fi |
| 2914 | ## -------------------- ## |
| 2915 | ## Main body of script. ## |
| 2916 | ## -------------------- ## |
| 2917 | |
| 2918 | ac_ext=c |
| 2919 | ac_cpp='$CPP $CPPFLAGS' |
| 2920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2923 | |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | |
| 2928 | |
| 2929 | ac_config_headers="$ac_config_headers config.h" |
| 2930 | |
| 2931 | |
| 2932 | # Do not delete or change the following two lines. For why, see |
| 2933 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html |
| 2934 | ac_aux_dir= |
| 2935 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2936 | if test -f "$ac_dir/install-sh"; then |
| 2937 | ac_aux_dir=$ac_dir |
| 2938 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2939 | break |
| 2940 | elif test -f "$ac_dir/install.sh"; then |
| 2941 | ac_aux_dir=$ac_dir |
| 2942 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2943 | break |
| 2944 | elif test -f "$ac_dir/shtool"; then |
| 2945 | ac_aux_dir=$ac_dir |
| 2946 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2947 | break |
| 2948 | fi |
| 2949 | done |
| 2950 | if test -z "$ac_aux_dir"; then |
| 2951 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2952 | fi |
| 2953 | |
| 2954 | # These three variables are undocumented and unsupported, |
| 2955 | # and are intended to be withdrawn in a future Autoconf release. |
| 2956 | # They can cause serious problems if a builder's source tree is in a directory |
| 2957 | # whose full name contains unusual characters. |
| 2958 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2959 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2960 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2961 | |
| 2962 | |
| 2963 | # Make sure we can run config.sub. |
| 2964 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2965 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2966 | |
| 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2968 | $as_echo_n "checking build system type... " >&6; } |
| 2969 | if ${ac_cv_build+:} false; then : |
| 2970 | $as_echo_n "(cached) " >&6 |
| 2971 | else |
| 2972 | ac_build_alias=$build_alias |
| 2973 | test "x$ac_build_alias" = x && |
| 2974 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2975 | test "x$ac_build_alias" = x && |
| 2976 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2977 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2978 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2979 | |
| 2980 | fi |
| 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2982 | $as_echo "$ac_cv_build" >&6; } |
| 2983 | case $ac_cv_build in |
| 2984 | *-*-*) ;; |
| 2985 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2986 | esac |
| 2987 | build=$ac_cv_build |
| 2988 | ac_save_IFS=$IFS; IFS='-' |
| 2989 | set x $ac_cv_build |
| 2990 | shift |
| 2991 | build_cpu=$1 |
| 2992 | build_vendor=$2 |
| 2993 | shift; shift |
| 2994 | # Remember, the first character of IFS is used to create $*, |
| 2995 | # except with old shells: |
| 2996 | build_os=$* |
| 2997 | IFS=$ac_save_IFS |
| 2998 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2999 | |
| 3000 | |
| 3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3002 | $as_echo_n "checking host system type... " >&6; } |
| 3003 | if ${ac_cv_host+:} false; then : |
| 3004 | $as_echo_n "(cached) " >&6 |
| 3005 | else |
| 3006 | if test "x$host_alias" = x; then |
| 3007 | ac_cv_host=$ac_cv_build |
| 3008 | else |
| 3009 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3010 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3011 | fi |
| 3012 | |
| 3013 | fi |
| 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3015 | $as_echo "$ac_cv_host" >&6; } |
| 3016 | case $ac_cv_host in |
| 3017 | *-*-*) ;; |
| 3018 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3019 | esac |
| 3020 | host=$ac_cv_host |
| 3021 | ac_save_IFS=$IFS; IFS='-' |
| 3022 | set x $ac_cv_host |
| 3023 | shift |
| 3024 | host_cpu=$1 |
| 3025 | host_vendor=$2 |
| 3026 | shift; shift |
| 3027 | # Remember, the first character of IFS is used to create $*, |
| 3028 | # except with old shells: |
| 3029 | host_os=$* |
| 3030 | IFS=$ac_save_IFS |
| 3031 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3032 | |
| 3033 | |
| 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3035 | $as_echo_n "checking target system type... " >&6; } |
| 3036 | if ${ac_cv_target+:} false; then : |
| 3037 | $as_echo_n "(cached) " >&6 |
| 3038 | else |
| 3039 | if test "x$target_alias" = x; then |
| 3040 | ac_cv_target=$ac_cv_host |
| 3041 | else |
| 3042 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3043 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 3044 | fi |
| 3045 | |
| 3046 | fi |
| 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3048 | $as_echo "$ac_cv_target" >&6; } |
| 3049 | case $ac_cv_target in |
| 3050 | *-*-*) ;; |
| 3051 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 3052 | esac |
| 3053 | target=$ac_cv_target |
| 3054 | ac_save_IFS=$IFS; IFS='-' |
| 3055 | set x $ac_cv_target |
| 3056 | shift |
| 3057 | target_cpu=$1 |
| 3058 | target_vendor=$2 |
| 3059 | shift; shift |
| 3060 | # Remember, the first character of IFS is used to create $*, |
| 3061 | # except with old shells: |
| 3062 | target_os=$* |
| 3063 | IFS=$ac_save_IFS |
| 3064 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3065 | |
| 3066 | |
| 3067 | # The aliases save the names the user supplied, while $host etc. |
| 3068 | # will get canonicalized. |
| 3069 | test -n "$target_alias" && |
| 3070 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3071 | NONENONEs,x,x, && |
| 3072 | program_prefix=${target_alias}- |
| 3073 | |
| 3074 | case ${build_alias} in |
| 3075 | "") build_noncanonical=${build} ;; |
| 3076 | *) build_noncanonical=${build_alias} ;; |
| 3077 | esac |
| 3078 | |
| 3079 | case ${host_alias} in |
| 3080 | "") host_noncanonical=${build_noncanonical} ;; |
| 3081 | *) host_noncanonical=${host_alias} ;; |
| 3082 | esac |
| 3083 | |
| 3084 | case ${target_alias} in |
| 3085 | "") target_noncanonical=${host_noncanonical} ;; |
| 3086 | *) target_noncanonical=${target_alias} ;; |
| 3087 | esac |
| 3088 | |
| 3089 | |
| 3090 | |
| 3091 | |
| 3092 | # Default to --enable-multilib |
| 3093 | # Check whether --enable-multilib was given. |
| 3094 | if test "${enable_multilib+set}" = set; then : |
| 3095 | enableval=$enable_multilib; case "$enableval" in |
| 3096 | yes) multilib=yes ;; |
| 3097 | no) multilib=no ;; |
| 3098 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
| 3099 | esac |
| 3100 | else |
| 3101 | multilib=yes |
| 3102 | fi |
| 3103 | |
| 3104 | |
| 3105 | # We may get other options which we leave undocumented: |
| 3106 | # --with-target-subdir, --with-multisrctop, --with-multisubdir |
| 3107 | # See config-ml.in if you want the gory details. |
| 3108 | |
| 3109 | if test "$srcdir" = "."; then |
| 3110 | if test "$with_target_subdir" != "."; then |
| 3111 | multi_basedir="$srcdir/$with_multisrctop../.." |
| 3112 | else |
| 3113 | multi_basedir="$srcdir/$with_multisrctop.." |
| 3114 | fi |
| 3115 | else |
| 3116 | multi_basedir="$srcdir/.." |
| 3117 | fi |
| 3118 | |
| 3119 | |
| 3120 | # Even if the default multilib is not a cross compilation, |
| 3121 | # it may be that some of the other multilibs are. |
| 3122 | if test $cross_compiling = no && test $multilib = yes \ |
| 3123 | && test "x${with_multisubdir}" != x ; then |
| 3124 | cross_compiling=maybe |
| 3125 | fi |
| 3126 | |
| 3127 | ac_config_commands="$ac_config_commands default-1" |
| 3128 | |
| 3129 | |
| 3130 | target_alias=${target_alias-$host_alias} |
| 3131 | |
| 3132 | |
| 3133 | |
| 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3135 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3136 | # Check whether --enable-maintainer-mode was given. |
| 3137 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3138 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3139 | else |
| 3140 | USE_MAINTAINER_MODE=no |
| 3141 | fi |
| 3142 | |
| 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3144 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3145 | if test $USE_MAINTAINER_MODE = yes; then |
| 3146 | MAINTAINER_MODE_TRUE= |
| 3147 | MAINTAINER_MODE_FALSE='#' |
| 3148 | else |
| 3149 | MAINTAINER_MODE_TRUE='#' |
| 3150 | MAINTAINER_MODE_FALSE= |
| 3151 | fi |
| 3152 | |
| 3153 | MAINT=$MAINTAINER_MODE_TRUE |
| 3154 | |
| 3155 | |
| 3156 | |
| 3157 | am__api_version='1.15' |
| 3158 | |
| 3159 | # Find a good install program. We prefer a C program (faster), |
| 3160 | # so one script is as good as another. But avoid the broken or |
| 3161 | # incompatible versions: |
| 3162 | # SysV /etc/install, /usr/sbin/install |
| 3163 | # SunOS /usr/etc/install |
| 3164 | # IRIX /sbin/install |
| 3165 | # AIX /bin/install |
| 3166 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3167 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3168 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3169 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3170 | # OS/2's system install, which has a completely different semantic |
| 3171 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3172 | # Reject install programs that cannot install multiple files. |
| 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3174 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3175 | if test -z "$INSTALL"; then |
| 3176 | if ${ac_cv_path_install+:} false; then : |
| 3177 | $as_echo_n "(cached) " >&6 |
| 3178 | else |
| 3179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3180 | for as_dir in $PATH |
| 3181 | do |
| 3182 | IFS=$as_save_IFS |
| 3183 | test -z "$as_dir" && as_dir=. |
| 3184 | # Account for people who put trailing slashes in PATH elements. |
| 3185 | case $as_dir/ in #(( |
| 3186 | ./ | .// | /[cC]/* | \ |
| 3187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3188 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3189 | /usr/ucb/* ) ;; |
| 3190 | *) |
| 3191 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3192 | # Don't use installbsd from OSF since it installs stuff as root |
| 3193 | # by default. |
| 3194 | for ac_prog in ginstall scoinst install; do |
| 3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3196 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3197 | if test $ac_prog = install && |
| 3198 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3199 | # AIX install. It has an incompatible calling convention. |
| 3200 | : |
| 3201 | elif test $ac_prog = install && |
| 3202 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3203 | # program-specific install script used by HP pwplus--don't use. |
| 3204 | : |
| 3205 | else |
| 3206 | rm -rf conftest.one conftest.two conftest.dir |
| 3207 | echo one > conftest.one |
| 3208 | echo two > conftest.two |
| 3209 | mkdir conftest.dir |
| 3210 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3211 | test -s conftest.one && test -s conftest.two && |
| 3212 | test -s conftest.dir/conftest.one && |
| 3213 | test -s conftest.dir/conftest.two |
| 3214 | then |
| 3215 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3216 | break 3 |
| 3217 | fi |
| 3218 | fi |
| 3219 | fi |
| 3220 | done |
| 3221 | done |
| 3222 | ;; |
| 3223 | esac |
| 3224 | |
| 3225 | done |
| 3226 | IFS=$as_save_IFS |
| 3227 | |
| 3228 | rm -rf conftest.one conftest.two conftest.dir |
| 3229 | |
| 3230 | fi |
| 3231 | if test "${ac_cv_path_install+set}" = set; then |
| 3232 | INSTALL=$ac_cv_path_install |
| 3233 | else |
| 3234 | # As a last resort, use the slow shell script. Don't cache a |
| 3235 | # value for INSTALL within a source directory, because that will |
| 3236 | # break other packages using the cache if that directory is |
| 3237 | # removed, or if the value is a relative name. |
| 3238 | INSTALL=$ac_install_sh |
| 3239 | fi |
| 3240 | fi |
| 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3242 | $as_echo "$INSTALL" >&6; } |
| 3243 | |
| 3244 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3245 | # It thinks the first close brace ends the variable substitution. |
| 3246 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3247 | |
| 3248 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3249 | |
| 3250 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3251 | |
| 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3253 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3254 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3255 | # name. Accept space and tab only in the latter. |
| 3256 | am_lf=' |
| 3257 | ' |
| 3258 | case `pwd` in |
| 3259 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3260 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3261 | esac |
| 3262 | case $srcdir in |
| 3263 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3264 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3265 | esac |
| 3266 | |
| 3267 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 3268 | # arguments. Must try -L first in case configure is actually a |
| 3269 | # symlink; some systems play weird games with the mod time of symlinks |
| 3270 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3271 | # directory). |
| 3272 | if ( |
| 3273 | am_has_slept=no |
| 3274 | for am_try in 1 2; do |
| 3275 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3276 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3277 | if test "$*" = "X"; then |
| 3278 | # -L didn't work. |
| 3279 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3280 | fi |
| 3281 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3282 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3283 | |
| 3284 | # If neither matched, then we have a broken ls. This can happen |
| 3285 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3286 | # broken ls alias from the environment. This has actually |
| 3287 | # happened. Such a system could not be considered "sane". |
| 3288 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3289 | alias in your environment" "$LINENO" 5 |
| 3290 | fi |
| 3291 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 3292 | break |
| 3293 | fi |
| 3294 | # Just in case. |
| 3295 | sleep 1 |
| 3296 | am_has_slept=yes |
| 3297 | done |
| 3298 | test "$2" = conftest.file |
| 3299 | ) |
| 3300 | then |
| 3301 | # Ok. |
| 3302 | : |
| 3303 | else |
| 3304 | as_fn_error $? "newly created file is older than distributed files! |
| 3305 | Check your system clock" "$LINENO" 5 |
| 3306 | fi |
| 3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3308 | $as_echo "yes" >&6; } |
| 3309 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3310 | # generated files are strictly newer. |
| 3311 | am_sleep_pid= |
| 3312 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 3313 | ( sleep 1 ) & |
| 3314 | am_sleep_pid=$! |
| 3315 | fi |
| 3316 | |
| 3317 | rm -f conftest.file |
| 3318 | |
| 3319 | test "$program_prefix" != NONE && |
| 3320 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3321 | # Use a double $ so make ignores it. |
| 3322 | test "$program_suffix" != NONE && |
| 3323 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3324 | # Double any \ or $. |
| 3325 | # By default was `s,x,x', remove it if useless. |
| 3326 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3327 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3328 | |
| 3329 | # Expand $ac_aux_dir to an absolute path. |
| 3330 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3331 | |
| 3332 | if test x"${MISSING+set}" != xset; then |
| 3333 | case $am_aux_dir in |
| 3334 | *\ * | *\ *) |
| 3335 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3336 | *) |
| 3337 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3338 | esac |
| 3339 | fi |
| 3340 | # Use eval to expand $SHELL |
| 3341 | if eval "$MISSING --is-lightweight"; then |
| 3342 | am_missing_run="$MISSING " |
| 3343 | else |
| 3344 | am_missing_run= |
| 3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3346 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3347 | fi |
| 3348 | |
| 3349 | if test x"${install_sh+set}" != xset; then |
| 3350 | case $am_aux_dir in |
| 3351 | *\ * | *\ *) |
| 3352 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3353 | *) |
| 3354 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3355 | esac |
| 3356 | fi |
| 3357 | |
| 3358 | # Installed binaries are usually stripped using 'strip' when the user |
| 3359 | # run "make install-strip". However 'strip' might not be the right |
| 3360 | # tool to use in cross-compilation environments, therefore Automake |
| 3361 | # will honor the 'STRIP' environment variable to overrule this program. |
| 3362 | if test "$cross_compiling" != no; then |
| 3363 | if test -n "$ac_tool_prefix"; then |
| 3364 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3365 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3367 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3368 | if ${ac_cv_prog_STRIP+:} false; then : |
| 3369 | $as_echo_n "(cached) " >&6 |
| 3370 | else |
| 3371 | if test -n "$STRIP"; then |
| 3372 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3373 | else |
| 3374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3375 | for as_dir in $PATH |
| 3376 | do |
| 3377 | IFS=$as_save_IFS |
| 3378 | test -z "$as_dir" && as_dir=. |
| 3379 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3380 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3381 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3383 | break 2 |
| 3384 | fi |
| 3385 | done |
| 3386 | done |
| 3387 | IFS=$as_save_IFS |
| 3388 | |
| 3389 | fi |
| 3390 | fi |
| 3391 | STRIP=$ac_cv_prog_STRIP |
| 3392 | if test -n "$STRIP"; then |
| 3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3394 | $as_echo "$STRIP" >&6; } |
| 3395 | else |
| 3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3397 | $as_echo "no" >&6; } |
| 3398 | fi |
| 3399 | |
| 3400 | |
| 3401 | fi |
| 3402 | if test -z "$ac_cv_prog_STRIP"; then |
| 3403 | ac_ct_STRIP=$STRIP |
| 3404 | # Extract the first word of "strip", so it can be a program name with args. |
| 3405 | set dummy strip; ac_word=$2 |
| 3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3407 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3408 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 3409 | $as_echo_n "(cached) " >&6 |
| 3410 | else |
| 3411 | if test -n "$ac_ct_STRIP"; then |
| 3412 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3413 | else |
| 3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3415 | for as_dir in $PATH |
| 3416 | do |
| 3417 | IFS=$as_save_IFS |
| 3418 | test -z "$as_dir" && as_dir=. |
| 3419 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3421 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3423 | break 2 |
| 3424 | fi |
| 3425 | done |
| 3426 | done |
| 3427 | IFS=$as_save_IFS |
| 3428 | |
| 3429 | fi |
| 3430 | fi |
| 3431 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3432 | if test -n "$ac_ct_STRIP"; then |
| 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3434 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3435 | else |
| 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3437 | $as_echo "no" >&6; } |
| 3438 | fi |
| 3439 | |
| 3440 | if test "x$ac_ct_STRIP" = x; then |
| 3441 | STRIP=":" |
| 3442 | else |
| 3443 | case $cross_compiling:$ac_tool_warned in |
| 3444 | yes:) |
| 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3446 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3447 | ac_tool_warned=yes ;; |
| 3448 | esac |
| 3449 | STRIP=$ac_ct_STRIP |
| 3450 | fi |
| 3451 | else |
| 3452 | STRIP="$ac_cv_prog_STRIP" |
| 3453 | fi |
| 3454 | |
| 3455 | fi |
| 3456 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3457 | |
| 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3459 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3460 | if test -z "$MKDIR_P"; then |
| 3461 | if ${ac_cv_path_mkdir+:} false; then : |
| 3462 | $as_echo_n "(cached) " >&6 |
| 3463 | else |
| 3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3465 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3466 | do |
| 3467 | IFS=$as_save_IFS |
| 3468 | test -z "$as_dir" && as_dir=. |
| 3469 | for ac_prog in mkdir gmkdir; do |
| 3470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3471 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 3472 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3473 | 'mkdir (GNU coreutils) '* | \ |
| 3474 | 'mkdir (coreutils) '* | \ |
| 3475 | 'mkdir (fileutils) '4.1*) |
| 3476 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3477 | break 3;; |
| 3478 | esac |
| 3479 | done |
| 3480 | done |
| 3481 | done |
| 3482 | IFS=$as_save_IFS |
| 3483 | |
| 3484 | fi |
| 3485 | |
| 3486 | test -d ./--version && rmdir ./--version |
| 3487 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3488 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3489 | else |
| 3490 | # As a last resort, use the slow shell script. Don't cache a |
| 3491 | # value for MKDIR_P within a source directory, because that will |
| 3492 | # break other packages using the cache if that directory is |
| 3493 | # removed, or if the value is a relative name. |
| 3494 | MKDIR_P="$ac_install_sh -d" |
| 3495 | fi |
| 3496 | fi |
| 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3498 | $as_echo "$MKDIR_P" >&6; } |
| 3499 | |
| 3500 | for ac_prog in gawk mawk nawk awk |
| 3501 | do |
| 3502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3503 | set dummy $ac_prog; ac_word=$2 |
| 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3505 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3506 | if ${ac_cv_prog_AWK+:} false; then : |
| 3507 | $as_echo_n "(cached) " >&6 |
| 3508 | else |
| 3509 | if test -n "$AWK"; then |
| 3510 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3511 | else |
| 3512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3513 | for as_dir in $PATH |
| 3514 | do |
| 3515 | IFS=$as_save_IFS |
| 3516 | test -z "$as_dir" && as_dir=. |
| 3517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3519 | ac_cv_prog_AWK="$ac_prog" |
| 3520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3521 | break 2 |
| 3522 | fi |
| 3523 | done |
| 3524 | done |
| 3525 | IFS=$as_save_IFS |
| 3526 | |
| 3527 | fi |
| 3528 | fi |
| 3529 | AWK=$ac_cv_prog_AWK |
| 3530 | if test -n "$AWK"; then |
| 3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3532 | $as_echo "$AWK" >&6; } |
| 3533 | else |
| 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3535 | $as_echo "no" >&6; } |
| 3536 | fi |
| 3537 | |
| 3538 | |
| 3539 | test -n "$AWK" && break |
| 3540 | done |
| 3541 | |
| 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3543 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3544 | set x ${MAKE-make} |
| 3545 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3546 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3547 | $as_echo_n "(cached) " >&6 |
| 3548 | else |
| 3549 | cat >conftest.make <<\_ACEOF |
| 3550 | SHELL = /bin/sh |
| 3551 | all: |
| 3552 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3553 | _ACEOF |
| 3554 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3555 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3556 | *@@@%%%=?*=@@@%%%*) |
| 3557 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3558 | *) |
| 3559 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3560 | esac |
| 3561 | rm -f conftest.make |
| 3562 | fi |
| 3563 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3565 | $as_echo "yes" >&6; } |
| 3566 | SET_MAKE= |
| 3567 | else |
| 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3569 | $as_echo "no" >&6; } |
| 3570 | SET_MAKE="MAKE=${MAKE-make}" |
| 3571 | fi |
| 3572 | |
| 3573 | rm -rf .tst 2>/dev/null |
| 3574 | mkdir .tst 2>/dev/null |
| 3575 | if test -d .tst; then |
| 3576 | am__leading_dot=. |
| 3577 | else |
| 3578 | am__leading_dot=_ |
| 3579 | fi |
| 3580 | rmdir .tst 2>/dev/null |
| 3581 | |
| 3582 | # Check whether --enable-silent-rules was given. |
| 3583 | if test "${enable_silent_rules+set}" = set; then : |
| 3584 | enableval=$enable_silent_rules; |
| 3585 | fi |
| 3586 | |
| 3587 | case $enable_silent_rules in # ((( |
| 3588 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3589 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3590 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3591 | esac |
| 3592 | am_make=${MAKE-make} |
| 3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3594 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3595 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 3596 | $as_echo_n "(cached) " >&6 |
| 3597 | else |
| 3598 | if $as_echo 'TRUE=$(BAR$(V)) |
| 3599 | BAR0=false |
| 3600 | BAR1=true |
| 3601 | V=1 |
| 3602 | am__doit: |
| 3603 | @$(TRUE) |
| 3604 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3605 | am_cv_make_support_nested_variables=yes |
| 3606 | else |
| 3607 | am_cv_make_support_nested_variables=no |
| 3608 | fi |
| 3609 | fi |
| 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3611 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3612 | if test $am_cv_make_support_nested_variables = yes; then |
| 3613 | AM_V='$(V)' |
| 3614 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3615 | else |
| 3616 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3617 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3618 | fi |
| 3619 | AM_BACKSLASH='\' |
| 3620 | |
| 3621 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3622 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3623 | # is not polluted with repeated "-I." |
| 3624 | am__isrc=' -I$(srcdir)' |
| 3625 | # test to see if srcdir already configured |
| 3626 | if test -f $srcdir/config.status; then |
| 3627 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3628 | fi |
| 3629 | fi |
| 3630 | |
| 3631 | # test whether we have cygpath |
| 3632 | if test -z "$CYGPATH_W"; then |
| 3633 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3634 | CYGPATH_W='cygpath -w' |
| 3635 | else |
| 3636 | CYGPATH_W=echo |
| 3637 | fi |
| 3638 | fi |
| 3639 | |
| 3640 | |
| 3641 | # Define the identity of the package. |
| 3642 | PACKAGE='libgcobol' |
| 3643 | VERSION='version-unused' |
| 3644 | |
| 3645 | |
| 3646 | # Some tools Automake needs. |
| 3647 | |
| 3648 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3649 | |
| 3650 | |
| 3651 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3652 | |
| 3653 | |
| 3654 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3655 | |
| 3656 | |
| 3657 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3658 | |
| 3659 | |
| 3660 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3661 | |
| 3662 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3663 | # dies out for good. For more background, see: |
| 3664 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3665 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3666 | mkdir_p='$(MKDIR_P)' |
| 3667 | |
| 3668 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 3669 | # system "awk" is bad on some platforms. |
| 3670 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3671 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3672 | AMTAR='$${TAR-tar}' |
| 3673 | |
| 3674 | |
| 3675 | # We'll loop over all known methods to create a tar archive until one works. |
| 3676 | _am_tools='gnutar pax cpio none' |
| 3677 | |
| 3678 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3679 | |
| 3680 | |
| 3681 | |
| 3682 | |
| 3683 | |
| 3684 | |
| 3685 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3686 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3687 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3688 | # actually supported "in the wild" to an acceptable degree. |
| 3689 | # See automake bug#10828. |
| 3690 | # To make any issue more visible, cause the running configure to be aborted |
| 3691 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3692 | # user can still override this though. |
| 3693 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3694 | cat >&2 <<'END' |
| 3695 | Oops! |
| 3696 | |
| 3697 | Your 'rm' program seems unable to run without file operands specified |
| 3698 | on the command line, even when the '-f' option is present. This is contrary |
| 3699 | to the behaviour of most rm programs out there, and not conforming with |
| 3700 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3701 | |
| 3702 | Please tell [email protected] about your system, including the value |
| 3703 | of your $PATH and any error possibly output before this message. This |
| 3704 | can help us improve future automake versions. |
| 3705 | |
| 3706 | END |
| 3707 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3708 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3709 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3710 | echo >&2 |
| 3711 | else |
| 3712 | cat >&2 <<'END' |
| 3713 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3714 | |
| 3715 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3716 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3717 | |
| 3718 | If you want to complete the configuration process using your problematic |
| 3719 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3720 | to "yes", and re-run configure. |
| 3721 | |
| 3722 | END |
| 3723 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3724 | fi |
| 3725 | fi |
| 3726 | |
| 3727 | |
| 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libgcobol" >&5 |
| 3729 | $as_echo_n "checking for --enable-libgcobol... " >&6; } |
| 3730 | # Check whether --enable-libgcobol was given. |
| 3731 | if test "${enable_libgcobol+set}" = set; then : |
| 3732 | enableval=$enable_libgcobol; |
| 3733 | fi |
| 3734 | |
| 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgcobol" >&5 |
| 3736 | $as_echo "$enable_libgcobol" >&6; } |
| 3737 | |
| 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
| 3739 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } |
| 3740 | # Check whether --enable-version-specific-runtime-libs was given. |
| 3741 | if test "${enable_version_specific_runtime_libs+set}" = set; then : |
| 3742 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in |
| 3743 | yes) version_specific_libs=yes ;; |
| 3744 | no) version_specific_libs=no ;; |
| 3745 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
| 3746 | esac |
| 3747 | else |
| 3748 | version_specific_libs=no |
| 3749 | fi |
| 3750 | |
| 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 |
| 3752 | $as_echo "$version_specific_libs" >&6; } |
| 3753 | |
| 3754 | # This works around the fact that libtool configuration may change LD |
| 3755 | # for this particular configuration, but some shells, instead of |
| 3756 | # keeping the changes in LD private, export them just because LD is |
| 3757 | # exported. |
| 3758 | ORIGINAL_LD_FOR_MULTILIBS=$LD |
| 3759 | |
| 3760 | |
| 3761 | |
| 3762 | DEPDIR="${am__leading_dot}deps" |
| 3763 | |
| 3764 | ac_config_commands="$ac_config_commands depfiles" |
| 3765 | |
| 3766 | |
| 3767 | am_make=${MAKE-make} |
| 3768 | cat > confinc << 'END' |
| 3769 | am__doit: |
| 3770 | @echo this is the am__doit target |
| 3771 | .PHONY: am__doit |
| 3772 | END |
| 3773 | # If we don't find an include directive, just comment out the code. |
| 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3775 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3776 | am__include="#" |
| 3777 | am__quote= |
| 3778 | _am_result=none |
| 3779 | # First try GNU make style include. |
| 3780 | echo "include confinc" > confmf |
| 3781 | # Ignore all kinds of additional output from 'make'. |
| 3782 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3783 | *the\ am__doit\ target*) |
| 3784 | am__include=include |
| 3785 | am__quote= |
| 3786 | _am_result=GNU |
| 3787 | ;; |
| 3788 | esac |
| 3789 | # Now try BSD make style include. |
| 3790 | if test "$am__include" = "#"; then |
| 3791 | echo '.include "confinc"' > confmf |
| 3792 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3793 | *the\ am__doit\ target*) |
| 3794 | am__include=.include |
| 3795 | am__quote="\"" |
| 3796 | _am_result=BSD |
| 3797 | ;; |
| 3798 | esac |
| 3799 | fi |
| 3800 | |
| 3801 | |
| 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3803 | $as_echo "$_am_result" >&6; } |
| 3804 | rm -f confinc confmf |
| 3805 | |
| 3806 | # Check whether --enable-dependency-tracking was given. |
| 3807 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3808 | enableval=$enable_dependency_tracking; |
| 3809 | fi |
| 3810 | |
| 3811 | if test "x$enable_dependency_tracking" != xno; then |
| 3812 | am_depcomp="$ac_aux_dir/depcomp" |
| 3813 | AMDEPBACKSLASH='\' |
| 3814 | am__nodep='_no' |
| 3815 | fi |
| 3816 | if test "x$enable_dependency_tracking" != xno; then |
| 3817 | AMDEP_TRUE= |
| 3818 | AMDEP_FALSE='#' |
| 3819 | else |
| 3820 | AMDEP_TRUE='#' |
| 3821 | AMDEP_FALSE= |
| 3822 | fi |
| 3823 | |
| 3824 | |
| 3825 | ac_ext=c |
| 3826 | ac_cpp='$CPP $CPPFLAGS' |
| 3827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3830 | if test -n "$ac_tool_prefix"; then |
| 3831 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3832 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3834 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3835 | if ${ac_cv_prog_CC+:} false; then : |
| 3836 | $as_echo_n "(cached) " >&6 |
| 3837 | else |
| 3838 | if test -n "$CC"; then |
| 3839 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3840 | else |
| 3841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3842 | for as_dir in $PATH |
| 3843 | do |
| 3844 | IFS=$as_save_IFS |
| 3845 | test -z "$as_dir" && as_dir=. |
| 3846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3848 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3850 | break 2 |
| 3851 | fi |
| 3852 | done |
| 3853 | done |
| 3854 | IFS=$as_save_IFS |
| 3855 | |
| 3856 | fi |
| 3857 | fi |
| 3858 | CC=$ac_cv_prog_CC |
| 3859 | if test -n "$CC"; then |
| 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3861 | $as_echo "$CC" >&6; } |
| 3862 | else |
| 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3864 | $as_echo "no" >&6; } |
| 3865 | fi |
| 3866 | |
| 3867 | |
| 3868 | fi |
| 3869 | if test -z "$ac_cv_prog_CC"; then |
| 3870 | ac_ct_CC=$CC |
| 3871 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3872 | set dummy gcc; ac_word=$2 |
| 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3874 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3875 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3876 | $as_echo_n "(cached) " >&6 |
| 3877 | else |
| 3878 | if test -n "$ac_ct_CC"; then |
| 3879 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3880 | else |
| 3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3882 | for as_dir in $PATH |
| 3883 | do |
| 3884 | IFS=$as_save_IFS |
| 3885 | test -z "$as_dir" && as_dir=. |
| 3886 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3888 | ac_cv_prog_ac_ct_CC="gcc" |
| 3889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3890 | break 2 |
| 3891 | fi |
| 3892 | done |
| 3893 | done |
| 3894 | IFS=$as_save_IFS |
| 3895 | |
| 3896 | fi |
| 3897 | fi |
| 3898 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3899 | if test -n "$ac_ct_CC"; then |
| 3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3901 | $as_echo "$ac_ct_CC" >&6; } |
| 3902 | else |
| 3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3904 | $as_echo "no" >&6; } |
| 3905 | fi |
| 3906 | |
| 3907 | if test "x$ac_ct_CC" = x; then |
| 3908 | CC="" |
| 3909 | else |
| 3910 | case $cross_compiling:$ac_tool_warned in |
| 3911 | yes:) |
| 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3914 | ac_tool_warned=yes ;; |
| 3915 | esac |
| 3916 | CC=$ac_ct_CC |
| 3917 | fi |
| 3918 | else |
| 3919 | CC="$ac_cv_prog_CC" |
| 3920 | fi |
| 3921 | |
| 3922 | if test -z "$CC"; then |
| 3923 | if test -n "$ac_tool_prefix"; then |
| 3924 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3925 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3927 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3928 | if ${ac_cv_prog_CC+:} false; then : |
| 3929 | $as_echo_n "(cached) " >&6 |
| 3930 | else |
| 3931 | if test -n "$CC"; then |
| 3932 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3933 | else |
| 3934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3935 | for as_dir in $PATH |
| 3936 | do |
| 3937 | IFS=$as_save_IFS |
| 3938 | test -z "$as_dir" && as_dir=. |
| 3939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3941 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3943 | break 2 |
| 3944 | fi |
| 3945 | done |
| 3946 | done |
| 3947 | IFS=$as_save_IFS |
| 3948 | |
| 3949 | fi |
| 3950 | fi |
| 3951 | CC=$ac_cv_prog_CC |
| 3952 | if test -n "$CC"; then |
| 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3954 | $as_echo "$CC" >&6; } |
| 3955 | else |
| 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3957 | $as_echo "no" >&6; } |
| 3958 | fi |
| 3959 | |
| 3960 | |
| 3961 | fi |
| 3962 | fi |
| 3963 | if test -z "$CC"; then |
| 3964 | # Extract the first word of "cc", so it can be a program name with args. |
| 3965 | set dummy cc; ac_word=$2 |
| 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3967 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3968 | if ${ac_cv_prog_CC+:} false; then : |
| 3969 | $as_echo_n "(cached) " >&6 |
| 3970 | else |
| 3971 | if test -n "$CC"; then |
| 3972 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3973 | else |
| 3974 | ac_prog_rejected=no |
| 3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3976 | for as_dir in $PATH |
| 3977 | do |
| 3978 | IFS=$as_save_IFS |
| 3979 | test -z "$as_dir" && as_dir=. |
| 3980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3982 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3983 | ac_prog_rejected=yes |
| 3984 | continue |
| 3985 | fi |
| 3986 | ac_cv_prog_CC="cc" |
| 3987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3988 | break 2 |
| 3989 | fi |
| 3990 | done |
| 3991 | done |
| 3992 | IFS=$as_save_IFS |
| 3993 | |
| 3994 | if test $ac_prog_rejected = yes; then |
| 3995 | # We found a bogon in the path, so make sure we never use it. |
| 3996 | set dummy $ac_cv_prog_CC |
| 3997 | shift |
| 3998 | if test $# != 0; then |
| 3999 | # We chose a different compiler from the bogus one. |
| 4000 | # However, it has the same basename, so the bogon will be chosen |
| 4001 | # first if we set CC to just the basename; use the full file name. |
| 4002 | shift |
| 4003 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4004 | fi |
| 4005 | fi |
| 4006 | fi |
| 4007 | fi |
| 4008 | CC=$ac_cv_prog_CC |
| 4009 | if test -n "$CC"; then |
| 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4011 | $as_echo "$CC" >&6; } |
| 4012 | else |
| 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4014 | $as_echo "no" >&6; } |
| 4015 | fi |
| 4016 | |
| 4017 | |
| 4018 | fi |
| 4019 | if test -z "$CC"; then |
| 4020 | if test -n "$ac_tool_prefix"; then |
| 4021 | for ac_prog in cl.exe |
| 4022 | do |
| 4023 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4024 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4026 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4027 | if ${ac_cv_prog_CC+:} false; then : |
| 4028 | $as_echo_n "(cached) " >&6 |
| 4029 | else |
| 4030 | if test -n "$CC"; then |
| 4031 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4032 | else |
| 4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4034 | for as_dir in $PATH |
| 4035 | do |
| 4036 | IFS=$as_save_IFS |
| 4037 | test -z "$as_dir" && as_dir=. |
| 4038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4040 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4042 | break 2 |
| 4043 | fi |
| 4044 | done |
| 4045 | done |
| 4046 | IFS=$as_save_IFS |
| 4047 | |
| 4048 | fi |
| 4049 | fi |
| 4050 | CC=$ac_cv_prog_CC |
| 4051 | if test -n "$CC"; then |
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4053 | $as_echo "$CC" >&6; } |
| 4054 | else |
| 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4056 | $as_echo "no" >&6; } |
| 4057 | fi |
| 4058 | |
| 4059 | |
| 4060 | test -n "$CC" && break |
| 4061 | done |
| 4062 | fi |
| 4063 | if test -z "$CC"; then |
| 4064 | ac_ct_CC=$CC |
| 4065 | for ac_prog in cl.exe |
| 4066 | do |
| 4067 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4068 | set dummy $ac_prog; ac_word=$2 |
| 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4071 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4072 | $as_echo_n "(cached) " >&6 |
| 4073 | else |
| 4074 | if test -n "$ac_ct_CC"; then |
| 4075 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4076 | else |
| 4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4078 | for as_dir in $PATH |
| 4079 | do |
| 4080 | IFS=$as_save_IFS |
| 4081 | test -z "$as_dir" && as_dir=. |
| 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_ac_ct_CC="$ac_prog" |
| 4085 | $as_echo "$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 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4095 | if test -n "$ac_ct_CC"; then |
| 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4097 | $as_echo "$ac_ct_CC" >&6; } |
| 4098 | else |
| 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4100 | $as_echo "no" >&6; } |
| 4101 | fi |
| 4102 | |
| 4103 | |
| 4104 | test -n "$ac_ct_CC" && break |
| 4105 | done |
| 4106 | |
| 4107 | if test "x$ac_ct_CC" = x; then |
| 4108 | CC="" |
| 4109 | else |
| 4110 | case $cross_compiling:$ac_tool_warned in |
| 4111 | yes:) |
| 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4114 | ac_tool_warned=yes ;; |
| 4115 | esac |
| 4116 | CC=$ac_ct_CC |
| 4117 | fi |
| 4118 | fi |
| 4119 | |
| 4120 | fi |
| 4121 | |
| 4122 | |
| 4123 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4124 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4125 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4126 | See \`config.log' for more details" "$LINENO" 5; } |
| 4127 | |
| 4128 | # Provide some information about the compiler. |
| 4129 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4130 | set X $ac_compile |
| 4131 | ac_compiler=$2 |
| 4132 | for ac_option in --version -v -V -qversion; do |
| 4133 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4139 | $as_echo "$ac_try_echo"; } >&5 |
| 4140 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4141 | ac_status=$? |
| 4142 | if test -s conftest.err; then |
| 4143 | sed '10a\ |
| 4144 | ... rest of stderr output deleted ... |
| 4145 | 10q' conftest.err >conftest.er1 |
| 4146 | cat conftest.er1 >&5 |
| 4147 | fi |
| 4148 | rm -f conftest.er1 conftest.err |
| 4149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4150 | test $ac_status = 0; } |
| 4151 | done |
| 4152 | |
| 4153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4154 | /* end confdefs.h. */ |
| 4155 | #include <stdio.h> |
| 4156 | int |
| 4157 | main () |
| 4158 | { |
| 4159 | printf ("hello world\n"); |
| 4160 | ; |
| 4161 | return 0; |
| 4162 | } |
| 4163 | _ACEOF |
| 4164 | # FIXME: Cleanup? |
| 4165 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 4166 | (eval $ac_link) 2>&5 |
| 4167 | ac_status=$? |
| 4168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4169 | test $ac_status = 0; }; then : |
| 4170 | gcc_no_link=no |
| 4171 | else |
| 4172 | gcc_no_link=yes |
| 4173 | fi |
| 4174 | if test x$gcc_no_link = xyes; then |
| 4175 | # Setting cross_compile will disable run tests; it will |
| 4176 | # also disable AC_CHECK_FILE but that's generally |
| 4177 | # correct if we can't link. |
| 4178 | cross_compiling=yes |
| 4179 | EXEEXT= |
| 4180 | else |
| 4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4182 | /* end confdefs.h. */ |
| 4183 | |
| 4184 | int |
| 4185 | main () |
| 4186 | { |
| 4187 | |
| 4188 | ; |
| 4189 | return 0; |
| 4190 | } |
| 4191 | _ACEOF |
| 4192 | ac_clean_files_save=$ac_clean_files |
| 4193 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4194 | # Try to create an executable without -o first, disregard a.out. |
| 4195 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4196 | # of exeext. |
| 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4198 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 4199 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4200 | |
| 4201 | # The possible output files: |
| 4202 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4203 | |
| 4204 | ac_rmfiles= |
| 4205 | for ac_file in $ac_files |
| 4206 | do |
| 4207 | case $ac_file in |
| 4208 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4209 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4210 | esac |
| 4211 | done |
| 4212 | rm -f $ac_rmfiles |
| 4213 | |
| 4214 | if { { ac_try="$ac_link_default" |
| 4215 | case "(($ac_try" in |
| 4216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4217 | *) ac_try_echo=$ac_try;; |
| 4218 | esac |
| 4219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4220 | $as_echo "$ac_try_echo"; } >&5 |
| 4221 | (eval "$ac_link_default") 2>&5 |
| 4222 | ac_status=$? |
| 4223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4224 | test $ac_status = 0; }; then : |
| 4225 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4226 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4227 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4228 | # so that the user can short-circuit this test for compilers unknown to |
| 4229 | # Autoconf. |
| 4230 | for ac_file in $ac_files '' |
| 4231 | do |
| 4232 | test -f "$ac_file" || continue |
| 4233 | case $ac_file in |
| 4234 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4235 | ;; |
| 4236 | [ab].out ) |
| 4237 | # We found the default executable, but exeext='' is most |
| 4238 | # certainly right. |
| 4239 | break;; |
| 4240 | *.* ) |
| 4241 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 4242 | then :; else |
| 4243 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4244 | fi |
| 4245 | # We set ac_cv_exeext here because the later test for it is not |
| 4246 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4247 | # argument, so we may need to know it at that point already. |
| 4248 | # Even if this section looks crufty: it has the advantage of |
| 4249 | # actually working. |
| 4250 | break;; |
| 4251 | * ) |
| 4252 | break;; |
| 4253 | esac |
| 4254 | done |
| 4255 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4256 | |
| 4257 | else |
| 4258 | ac_file='' |
| 4259 | fi |
| 4260 | if test -z "$ac_file"; then : |
| 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4262 | $as_echo "no" >&6; } |
| 4263 | $as_echo "$as_me: failed program was:" >&5 |
| 4264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4265 | |
| 4266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4267 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4268 | as_fn_error 77 "C compiler cannot create executables |
| 4269 | See \`config.log' for more details" "$LINENO" 5; } |
| 4270 | else |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4272 | $as_echo "yes" >&6; } |
| 4273 | fi |
| 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4275 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4277 | $as_echo "$ac_file" >&6; } |
| 4278 | ac_exeext=$ac_cv_exeext |
| 4279 | |
| 4280 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4281 | ac_clean_files=$ac_clean_files_save |
| 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4283 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 4284 | if { { ac_try="$ac_link" |
| 4285 | case "(($ac_try" in |
| 4286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4287 | *) ac_try_echo=$ac_try;; |
| 4288 | esac |
| 4289 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4290 | $as_echo "$ac_try_echo"; } >&5 |
| 4291 | (eval "$ac_link") 2>&5 |
| 4292 | ac_status=$? |
| 4293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4294 | test $ac_status = 0; }; then : |
| 4295 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4296 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4297 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4298 | # `rm'. |
| 4299 | for ac_file in conftest.exe conftest conftest.*; do |
| 4300 | test -f "$ac_file" || continue |
| 4301 | case $ac_file in |
| 4302 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4303 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4304 | break;; |
| 4305 | * ) break;; |
| 4306 | esac |
| 4307 | done |
| 4308 | else |
| 4309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4311 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4312 | See \`config.log' for more details" "$LINENO" 5; } |
| 4313 | fi |
| 4314 | rm -f conftest conftest$ac_cv_exeext |
| 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4316 | $as_echo "$ac_cv_exeext" >&6; } |
| 4317 | |
| 4318 | rm -f conftest.$ac_ext |
| 4319 | EXEEXT=$ac_cv_exeext |
| 4320 | ac_exeext=$EXEEXT |
| 4321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4322 | /* end confdefs.h. */ |
| 4323 | #include <stdio.h> |
| 4324 | int |
| 4325 | main () |
| 4326 | { |
| 4327 | FILE *f = fopen ("conftest.out", "w"); |
| 4328 | return ferror (f) || fclose (f) != 0; |
| 4329 | |
| 4330 | ; |
| 4331 | return 0; |
| 4332 | } |
| 4333 | _ACEOF |
| 4334 | ac_clean_files="$ac_clean_files conftest.out" |
| 4335 | # Check that the compiler produces executables we can run. If not, either |
| 4336 | # the compiler is broken, or we cross compile. |
| 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4338 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4339 | if test "$cross_compiling" != yes; then |
| 4340 | { { ac_try="$ac_link" |
| 4341 | case "(($ac_try" in |
| 4342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4343 | *) ac_try_echo=$ac_try;; |
| 4344 | esac |
| 4345 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4346 | $as_echo "$ac_try_echo"; } >&5 |
| 4347 | (eval "$ac_link") 2>&5 |
| 4348 | ac_status=$? |
| 4349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4350 | test $ac_status = 0; } |
| 4351 | if { ac_try='./conftest$ac_cv_exeext' |
| 4352 | { { case "(($ac_try" in |
| 4353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4354 | *) ac_try_echo=$ac_try;; |
| 4355 | esac |
| 4356 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4357 | $as_echo "$ac_try_echo"; } >&5 |
| 4358 | (eval "$ac_try") 2>&5 |
| 4359 | ac_status=$? |
| 4360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4361 | test $ac_status = 0; }; }; then |
| 4362 | cross_compiling=no |
| 4363 | else |
| 4364 | if test "$cross_compiling" = maybe; then |
| 4365 | cross_compiling=yes |
| 4366 | else |
| 4367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4369 | as_fn_error $? "cannot run C compiled programs. |
| 4370 | If you meant to cross compile, use \`--host'. |
| 4371 | See \`config.log' for more details" "$LINENO" 5; } |
| 4372 | fi |
| 4373 | fi |
| 4374 | fi |
| 4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4376 | $as_echo "$cross_compiling" >&6; } |
| 4377 | |
| 4378 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4379 | ac_clean_files=$ac_clean_files_save |
| 4380 | fi |
| 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4382 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 4383 | if ${ac_cv_objext+:} false; then : |
| 4384 | $as_echo_n "(cached) " >&6 |
| 4385 | else |
| 4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4387 | /* end confdefs.h. */ |
| 4388 | |
| 4389 | int |
| 4390 | main () |
| 4391 | { |
| 4392 | |
| 4393 | ; |
| 4394 | return 0; |
| 4395 | } |
| 4396 | _ACEOF |
| 4397 | rm -f conftest.o conftest.obj |
| 4398 | if { { ac_try="$ac_compile" |
| 4399 | case "(($ac_try" in |
| 4400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4401 | *) ac_try_echo=$ac_try;; |
| 4402 | esac |
| 4403 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4404 | $as_echo "$ac_try_echo"; } >&5 |
| 4405 | (eval "$ac_compile") 2>&5 |
| 4406 | ac_status=$? |
| 4407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4408 | test $ac_status = 0; }; then : |
| 4409 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4410 | test -f "$ac_file" || continue; |
| 4411 | case $ac_file in |
| 4412 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4413 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4414 | break;; |
| 4415 | esac |
| 4416 | done |
| 4417 | else |
| 4418 | $as_echo "$as_me: failed program was:" >&5 |
| 4419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4420 | |
| 4421 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4422 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4423 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4424 | See \`config.log' for more details" "$LINENO" 5; } |
| 4425 | fi |
| 4426 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4427 | fi |
| 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4429 | $as_echo "$ac_cv_objext" >&6; } |
| 4430 | OBJEXT=$ac_cv_objext |
| 4431 | ac_objext=$OBJEXT |
| 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4433 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4434 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4435 | $as_echo_n "(cached) " >&6 |
| 4436 | else |
| 4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4438 | /* end confdefs.h. */ |
| 4439 | |
| 4440 | int |
| 4441 | main () |
| 4442 | { |
| 4443 | #ifndef __GNUC__ |
| 4444 | choke me |
| 4445 | #endif |
| 4446 | |
| 4447 | ; |
| 4448 | return 0; |
| 4449 | } |
| 4450 | _ACEOF |
| 4451 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4452 | ac_compiler_gnu=yes |
| 4453 | else |
| 4454 | ac_compiler_gnu=no |
| 4455 | fi |
| 4456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4457 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4458 | |
| 4459 | fi |
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4461 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4462 | if test $ac_compiler_gnu = yes; then |
| 4463 | GCC=yes |
| 4464 | else |
| 4465 | GCC= |
| 4466 | fi |
| 4467 | ac_test_CFLAGS=${CFLAGS+set} |
| 4468 | ac_save_CFLAGS=$CFLAGS |
| 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4470 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4471 | if ${ac_cv_prog_cc_g+:} false; then : |
| 4472 | $as_echo_n "(cached) " >&6 |
| 4473 | else |
| 4474 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4475 | ac_c_werror_flag=yes |
| 4476 | ac_cv_prog_cc_g=no |
| 4477 | CFLAGS="-g" |
| 4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4479 | /* end confdefs.h. */ |
| 4480 | |
| 4481 | int |
| 4482 | main () |
| 4483 | { |
| 4484 | |
| 4485 | ; |
| 4486 | return 0; |
| 4487 | } |
| 4488 | _ACEOF |
| 4489 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4490 | ac_cv_prog_cc_g=yes |
| 4491 | else |
| 4492 | CFLAGS="" |
| 4493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4494 | /* end confdefs.h. */ |
| 4495 | |
| 4496 | int |
| 4497 | main () |
| 4498 | { |
| 4499 | |
| 4500 | ; |
| 4501 | return 0; |
| 4502 | } |
| 4503 | _ACEOF |
| 4504 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4505 | |
| 4506 | else |
| 4507 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4508 | CFLAGS="-g" |
| 4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4510 | /* end confdefs.h. */ |
| 4511 | |
| 4512 | int |
| 4513 | main () |
| 4514 | { |
| 4515 | |
| 4516 | ; |
| 4517 | return 0; |
| 4518 | } |
| 4519 | _ACEOF |
| 4520 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4521 | ac_cv_prog_cc_g=yes |
| 4522 | fi |
| 4523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4524 | fi |
| 4525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4526 | fi |
| 4527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4528 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4529 | fi |
| 4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4531 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4532 | if test "$ac_test_CFLAGS" = set; then |
| 4533 | CFLAGS=$ac_save_CFLAGS |
| 4534 | elif test $ac_cv_prog_cc_g = yes; then |
| 4535 | if test "$GCC" = yes; then |
| 4536 | CFLAGS="-g -O2" |
| 4537 | else |
| 4538 | CFLAGS="-g" |
| 4539 | fi |
| 4540 | else |
| 4541 | if test "$GCC" = yes; then |
| 4542 | CFLAGS="-O2" |
| 4543 | else |
| 4544 | CFLAGS= |
| 4545 | fi |
| 4546 | fi |
| 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4548 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4549 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4550 | $as_echo_n "(cached) " >&6 |
| 4551 | else |
| 4552 | ac_cv_prog_cc_c89=no |
| 4553 | ac_save_CC=$CC |
| 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4555 | /* end confdefs.h. */ |
| 4556 | #include <stdarg.h> |
| 4557 | #include <stdio.h> |
| 4558 | struct stat; |
| 4559 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4560 | struct buf { int x; }; |
| 4561 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4562 | static char *e (p, i) |
| 4563 | char **p; |
| 4564 | int i; |
| 4565 | { |
| 4566 | return p[i]; |
| 4567 | } |
| 4568 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4569 | { |
| 4570 | char *s; |
| 4571 | va_list v; |
| 4572 | va_start (v,p); |
| 4573 | s = g (p, va_arg (v,int)); |
| 4574 | va_end (v); |
| 4575 | return s; |
| 4576 | } |
| 4577 | |
| 4578 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4579 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4580 | These don't provoke an error unfortunately, instead are silently treated |
| 4581 | as 'x'. The following induces an error, until -std is added to get |
| 4582 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4583 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4584 | that's true only with -std. */ |
| 4585 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4586 | |
| 4587 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4588 | inside strings and character constants. */ |
| 4589 | #define FOO(x) 'x' |
| 4590 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4591 | |
| 4592 | int test (int i, double x); |
| 4593 | struct s1 {int (*f) (int a);}; |
| 4594 | struct s2 {int (*f) (double a);}; |
| 4595 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4596 | int argc; |
| 4597 | char **argv; |
| 4598 | int |
| 4599 | main () |
| 4600 | { |
| 4601 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4602 | ; |
| 4603 | return 0; |
| 4604 | } |
| 4605 | _ACEOF |
| 4606 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4607 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4608 | do |
| 4609 | CC="$ac_save_CC $ac_arg" |
| 4610 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4611 | ac_cv_prog_cc_c89=$ac_arg |
| 4612 | fi |
| 4613 | rm -f core conftest.err conftest.$ac_objext |
| 4614 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4615 | done |
| 4616 | rm -f conftest.$ac_ext |
| 4617 | CC=$ac_save_CC |
| 4618 | |
| 4619 | fi |
| 4620 | # AC_CACHE_VAL |
| 4621 | case "x$ac_cv_prog_cc_c89" in |
| 4622 | x) |
| 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4624 | $as_echo "none needed" >&6; } ;; |
| 4625 | xno) |
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4627 | $as_echo "unsupported" >&6; } ;; |
| 4628 | *) |
| 4629 | CC="$CC $ac_cv_prog_cc_c89" |
| 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4631 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4632 | esac |
| 4633 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4634 | |
| 4635 | fi |
| 4636 | |
| 4637 | ac_ext=c |
| 4638 | ac_cpp='$CPP $CPPFLAGS' |
| 4639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4642 | |
| 4643 | ac_ext=c |
| 4644 | ac_cpp='$CPP $CPPFLAGS' |
| 4645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4649 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4650 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4651 | $as_echo_n "(cached) " >&6 |
| 4652 | else |
| 4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4654 | /* end confdefs.h. */ |
| 4655 | |
| 4656 | int |
| 4657 | main () |
| 4658 | { |
| 4659 | |
| 4660 | ; |
| 4661 | return 0; |
| 4662 | } |
| 4663 | _ACEOF |
| 4664 | # Make sure it works both with $CC and with simple cc. |
| 4665 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4666 | # compilers refuse to overwrite an existing .o file with -o, |
| 4667 | # though they will create one. |
| 4668 | am_cv_prog_cc_c_o=yes |
| 4669 | for am_i in 1 2; do |
| 4670 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4671 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4672 | ac_status=$? |
| 4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4674 | (exit $ac_status); } \ |
| 4675 | && test -f conftest2.$ac_objext; then |
| 4676 | : OK |
| 4677 | else |
| 4678 | am_cv_prog_cc_c_o=no |
| 4679 | break |
| 4680 | fi |
| 4681 | done |
| 4682 | rm -f core conftest* |
| 4683 | unset am_i |
| 4684 | fi |
| 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4686 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4687 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4688 | # Losing compiler, so override with the script. |
| 4689 | # FIXME: It is wrong to rewrite CC. |
| 4690 | # But if we don't then we get into trouble of one sort or another. |
| 4691 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4692 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4693 | CC="$am_aux_dir/compile $CC" |
| 4694 | fi |
| 4695 | ac_ext=c |
| 4696 | ac_cpp='$CPP $CPPFLAGS' |
| 4697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4700 | |
| 4701 | |
| 4702 | depcc="$CC" am_compiler_list= |
| 4703 | |
| 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4705 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4706 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4707 | $as_echo_n "(cached) " >&6 |
| 4708 | else |
| 4709 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4710 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4711 | # making bogus files that we don't know about and never remove. For |
| 4712 | # instance it was reported that on HP-UX the gcc test will end up |
| 4713 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4714 | # in D". |
| 4715 | rm -rf conftest.dir |
| 4716 | mkdir conftest.dir |
| 4717 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4718 | # using a relative directory. |
| 4719 | cp "$am_depcomp" conftest.dir |
| 4720 | cd conftest.dir |
| 4721 | # We will build objects and dependencies in a subdirectory because |
| 4722 | # it helps to detect inapplicable dependency modes. For instance |
| 4723 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4724 | # side effect of compilation, but ICC will put the dependencies in |
| 4725 | # the current directory while Tru64 will put them in the object |
| 4726 | # directory. |
| 4727 | mkdir sub |
| 4728 | |
| 4729 | am_cv_CC_dependencies_compiler_type=none |
| 4730 | if test "$am_compiler_list" = ""; then |
| 4731 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4732 | fi |
| 4733 | am__universal=false |
| 4734 | case " $depcc " in #( |
| 4735 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4736 | esac |
| 4737 | |
| 4738 | for depmode in $am_compiler_list; do |
| 4739 | # Setup a source with many dependencies, because some compilers |
| 4740 | # like to wrap large dependency lists on column 80 (with \), and |
| 4741 | # we should not choose a depcomp mode which is confused by this. |
| 4742 | # |
| 4743 | # We need to recreate these files for each test, as the compiler may |
| 4744 | # overwrite some of them when testing with obscure command lines. |
| 4745 | # This happens at least with the AIX C compiler. |
| 4746 | : > sub/conftest.c |
| 4747 | for i in 1 2 3 4 5 6; do |
| 4748 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4749 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4750 | # Solaris 10 /bin/sh. |
| 4751 | echo '/* dummy */' > sub/conftst$i.h |
| 4752 | done |
| 4753 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4754 | |
| 4755 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4756 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4757 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4758 | # versions had trouble with output in subdirs. |
| 4759 | am__obj=sub/conftest.${OBJEXT-o} |
| 4760 | am__minus_obj="-o $am__obj" |
| 4761 | case $depmode in |
| 4762 | gcc) |
| 4763 | # This depmode causes a compiler race in universal mode. |
| 4764 | test "$am__universal" = false || continue |
| 4765 | ;; |
| 4766 | nosideeffect) |
| 4767 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4768 | # only be used when explicitly requested. |
| 4769 | if test "x$enable_dependency_tracking" = xyes; then |
| 4770 | continue |
| 4771 | else |
| 4772 | break |
| 4773 | fi |
| 4774 | ;; |
| 4775 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4776 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4777 | # not run yet. These depmodes are late enough in the game, and |
| 4778 | # so weak that their functioning should not be impacted. |
| 4779 | am__obj=conftest.${OBJEXT-o} |
| 4780 | am__minus_obj= |
| 4781 | ;; |
| 4782 | none) break ;; |
| 4783 | esac |
| 4784 | if depmode=$depmode \ |
| 4785 | source=sub/conftest.c object=$am__obj \ |
| 4786 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4787 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4788 | >/dev/null 2>conftest.err && |
| 4789 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4790 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4791 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4792 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4793 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4794 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4795 | # that says an option was ignored or not supported. |
| 4796 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4797 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4798 | # The diagnosis changed in icc 8.0: |
| 4799 | # icc: Command line remark: option '-MP' not supported |
| 4800 | if (grep 'ignoring option' conftest.err || |
| 4801 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4802 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4803 | break |
| 4804 | fi |
| 4805 | fi |
| 4806 | done |
| 4807 | |
| 4808 | cd .. |
| 4809 | rm -rf conftest.dir |
| 4810 | else |
| 4811 | am_cv_CC_dependencies_compiler_type=none |
| 4812 | fi |
| 4813 | |
| 4814 | fi |
| 4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4816 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4817 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4818 | |
| 4819 | if |
| 4820 | test "x$enable_dependency_tracking" != xno \ |
| 4821 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4822 | am__fastdepCC_TRUE= |
| 4823 | am__fastdepCC_FALSE='#' |
| 4824 | else |
| 4825 | am__fastdepCC_TRUE='#' |
| 4826 | am__fastdepCC_FALSE= |
| 4827 | fi |
| 4828 | |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4837 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4838 | # On Suns, sometimes $CPP names a directory. |
| 4839 | if test -n "$CPP" && test -d "$CPP"; then |
| 4840 | CPP= |
| 4841 | fi |
| 4842 | if test -z "$CPP"; then |
| 4843 | if ${ac_cv_prog_CPP+:} false; then : |
| 4844 | $as_echo_n "(cached) " >&6 |
| 4845 | else |
| 4846 | # Double quotes because CPP needs to be expanded |
| 4847 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4848 | do |
| 4849 | ac_preproc_ok=false |
| 4850 | for ac_c_preproc_warn_flag in '' yes |
| 4851 | do |
| 4852 | # Use a header file that comes with gcc, so configuring glibc |
| 4853 | # with a fresh cross-compiler works. |
| 4854 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4855 | # <limits.h> exists even on freestanding compilers. |
| 4856 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4857 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4859 | /* end confdefs.h. */ |
| 4860 | #ifdef __STDC__ |
| 4861 | # include <limits.h> |
| 4862 | #else |
| 4863 | # include <assert.h> |
| 4864 | #endif |
| 4865 | Syntax error |
| 4866 | _ACEOF |
| 4867 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4868 | |
| 4869 | else |
| 4870 | # Broken: fails on valid input. |
| 4871 | continue |
| 4872 | fi |
| 4873 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4874 | |
| 4875 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4876 | # can be detected and how. |
| 4877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4878 | /* end confdefs.h. */ |
| 4879 | #include <ac_nonexistent.h> |
| 4880 | _ACEOF |
| 4881 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4882 | # Broken: success on invalid input. |
| 4883 | continue |
| 4884 | else |
| 4885 | # Passes both tests. |
| 4886 | ac_preproc_ok=: |
| 4887 | break |
| 4888 | fi |
| 4889 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4890 | |
| 4891 | done |
| 4892 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4893 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4894 | if $ac_preproc_ok; then : |
| 4895 | break |
| 4896 | fi |
| 4897 | |
| 4898 | done |
| 4899 | ac_cv_prog_CPP=$CPP |
| 4900 | |
| 4901 | fi |
| 4902 | CPP=$ac_cv_prog_CPP |
| 4903 | else |
| 4904 | ac_cv_prog_CPP=$CPP |
| 4905 | fi |
| 4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4907 | $as_echo "$CPP" >&6; } |
| 4908 | ac_preproc_ok=false |
| 4909 | for ac_c_preproc_warn_flag in '' yes |
| 4910 | do |
| 4911 | # Use a header file that comes with gcc, so configuring glibc |
| 4912 | # with a fresh cross-compiler works. |
| 4913 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4914 | # <limits.h> exists even on freestanding compilers. |
| 4915 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4916 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4918 | /* end confdefs.h. */ |
| 4919 | #ifdef __STDC__ |
| 4920 | # include <limits.h> |
| 4921 | #else |
| 4922 | # include <assert.h> |
| 4923 | #endif |
| 4924 | Syntax error |
| 4925 | _ACEOF |
| 4926 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4927 | |
| 4928 | else |
| 4929 | # Broken: fails on valid input. |
| 4930 | continue |
| 4931 | fi |
| 4932 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4933 | |
| 4934 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4935 | # can be detected and how. |
| 4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4937 | /* end confdefs.h. */ |
| 4938 | #include <ac_nonexistent.h> |
| 4939 | _ACEOF |
| 4940 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4941 | # Broken: success on invalid input. |
| 4942 | continue |
| 4943 | else |
| 4944 | # Passes both tests. |
| 4945 | ac_preproc_ok=: |
| 4946 | break |
| 4947 | fi |
| 4948 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4949 | |
| 4950 | done |
| 4951 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4952 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4953 | if $ac_preproc_ok; then : |
| 4954 | |
| 4955 | else |
| 4956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4958 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4959 | See \`config.log' for more details" "$LINENO" 5; } |
| 4960 | fi |
| 4961 | |
| 4962 | ac_ext=c |
| 4963 | ac_cpp='$CPP $CPPFLAGS' |
| 4964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4967 | |
| 4968 | |
| 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4970 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4971 | if ${ac_cv_path_GREP+:} false; then : |
| 4972 | $as_echo_n "(cached) " >&6 |
| 4973 | else |
| 4974 | if test -z "$GREP"; then |
| 4975 | ac_path_GREP_found=false |
| 4976 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4978 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4979 | do |
| 4980 | IFS=$as_save_IFS |
| 4981 | test -z "$as_dir" && as_dir=. |
| 4982 | for ac_prog in grep ggrep; do |
| 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4984 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4985 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4986 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4987 | # Check for GNU $ac_path_GREP |
| 4988 | case `"$ac_path_GREP" --version 2>&1` in |
| 4989 | *GNU*) |
| 4990 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4991 | *) |
| 4992 | ac_count=0 |
| 4993 | $as_echo_n 0123456789 >"conftest.in" |
| 4994 | while : |
| 4995 | do |
| 4996 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4997 | mv "conftest.tmp" "conftest.in" |
| 4998 | cp "conftest.in" "conftest.nl" |
| 4999 | $as_echo 'GREP' >> "conftest.nl" |
| 5000 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5001 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5002 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5003 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5004 | # Best one so far, save it but keep looking for a better one |
| 5005 | ac_cv_path_GREP="$ac_path_GREP" |
| 5006 | ac_path_GREP_max=$ac_count |
| 5007 | fi |
| 5008 | # 10*(2^10) chars as input seems more than enough |
| 5009 | test $ac_count -gt 10 && break |
| 5010 | done |
| 5011 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5012 | esac |
| 5013 | |
| 5014 | $ac_path_GREP_found && break 3 |
| 5015 | done |
| 5016 | done |
| 5017 | done |
| 5018 | IFS=$as_save_IFS |
| 5019 | if test -z "$ac_cv_path_GREP"; then |
| 5020 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5021 | fi |
| 5022 | else |
| 5023 | ac_cv_path_GREP=$GREP |
| 5024 | fi |
| 5025 | |
| 5026 | fi |
| 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5028 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5029 | GREP="$ac_cv_path_GREP" |
| 5030 | |
| 5031 | |
| 5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5033 | $as_echo_n "checking for egrep... " >&6; } |
| 5034 | if ${ac_cv_path_EGREP+:} false; then : |
| 5035 | $as_echo_n "(cached) " >&6 |
| 5036 | else |
| 5037 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5038 | then ac_cv_path_EGREP="$GREP -E" |
| 5039 | else |
| 5040 | if test -z "$EGREP"; then |
| 5041 | ac_path_EGREP_found=false |
| 5042 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5044 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5045 | do |
| 5046 | IFS=$as_save_IFS |
| 5047 | test -z "$as_dir" && as_dir=. |
| 5048 | for ac_prog in egrep; do |
| 5049 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5050 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5051 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 5052 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5053 | # Check for GNU $ac_path_EGREP |
| 5054 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5055 | *GNU*) |
| 5056 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5057 | *) |
| 5058 | ac_count=0 |
| 5059 | $as_echo_n 0123456789 >"conftest.in" |
| 5060 | while : |
| 5061 | do |
| 5062 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5063 | mv "conftest.tmp" "conftest.in" |
| 5064 | cp "conftest.in" "conftest.nl" |
| 5065 | $as_echo 'EGREP' >> "conftest.nl" |
| 5066 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5067 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5068 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5069 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5070 | # Best one so far, save it but keep looking for a better one |
| 5071 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5072 | ac_path_EGREP_max=$ac_count |
| 5073 | fi |
| 5074 | # 10*(2^10) chars as input seems more than enough |
| 5075 | test $ac_count -gt 10 && break |
| 5076 | done |
| 5077 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5078 | esac |
| 5079 | |
| 5080 | $ac_path_EGREP_found && break 3 |
| 5081 | done |
| 5082 | done |
| 5083 | done |
| 5084 | IFS=$as_save_IFS |
| 5085 | if test -z "$ac_cv_path_EGREP"; then |
| 5086 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5087 | fi |
| 5088 | else |
| 5089 | ac_cv_path_EGREP=$EGREP |
| 5090 | fi |
| 5091 | |
| 5092 | fi |
| 5093 | fi |
| 5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5095 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5096 | EGREP="$ac_cv_path_EGREP" |
| 5097 | |
| 5098 | |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5100 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5101 | if ${ac_cv_header_stdc+:} false; then : |
| 5102 | $as_echo_n "(cached) " >&6 |
| 5103 | else |
| 5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5105 | /* end confdefs.h. */ |
| 5106 | #include <stdlib.h> |
| 5107 | #include <stdarg.h> |
| 5108 | #include <string.h> |
| 5109 | #include <float.h> |
| 5110 | |
| 5111 | int |
| 5112 | main () |
| 5113 | { |
| 5114 | |
| 5115 | ; |
| 5116 | return 0; |
| 5117 | } |
| 5118 | _ACEOF |
| 5119 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5120 | ac_cv_header_stdc=yes |
| 5121 | else |
| 5122 | ac_cv_header_stdc=no |
| 5123 | fi |
| 5124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5125 | |
| 5126 | if test $ac_cv_header_stdc = yes; then |
| 5127 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5129 | /* end confdefs.h. */ |
| 5130 | #include <string.h> |
| 5131 | |
| 5132 | _ACEOF |
| 5133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5134 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5135 | |
| 5136 | else |
| 5137 | ac_cv_header_stdc=no |
| 5138 | fi |
| 5139 | rm -f conftest* |
| 5140 | |
| 5141 | fi |
| 5142 | |
| 5143 | if test $ac_cv_header_stdc = yes; then |
| 5144 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5146 | /* end confdefs.h. */ |
| 5147 | #include <stdlib.h> |
| 5148 | |
| 5149 | _ACEOF |
| 5150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5151 | $EGREP "free" >/dev/null 2>&1; then : |
| 5152 | |
| 5153 | else |
| 5154 | ac_cv_header_stdc=no |
| 5155 | fi |
| 5156 | rm -f conftest* |
| 5157 | |
| 5158 | fi |
| 5159 | |
| 5160 | if test $ac_cv_header_stdc = yes; then |
| 5161 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5162 | if test "$cross_compiling" = yes; then : |
| 5163 | : |
| 5164 | else |
| 5165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5166 | /* end confdefs.h. */ |
| 5167 | #include <ctype.h> |
| 5168 | #include <stdlib.h> |
| 5169 | #if ((' ' & 0x0FF) == 0x020) |
| 5170 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5171 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5172 | #else |
| 5173 | # define ISLOWER(c) \ |
| 5174 | (('a' <= (c) && (c) <= 'i') \ |
| 5175 | || ('j' <= (c) && (c) <= 'r') \ |
| 5176 | || ('s' <= (c) && (c) <= 'z')) |
| 5177 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5178 | #endif |
| 5179 | |
| 5180 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5181 | int |
| 5182 | main () |
| 5183 | { |
| 5184 | int i; |
| 5185 | for (i = 0; i < 256; i++) |
| 5186 | if (XOR (islower (i), ISLOWER (i)) |
| 5187 | || toupper (i) != TOUPPER (i)) |
| 5188 | return 2; |
| 5189 | return 0; |
| 5190 | } |
| 5191 | _ACEOF |
| 5192 | if ac_fn_c_try_run "$LINENO"; then : |
| 5193 | |
| 5194 | else |
| 5195 | ac_cv_header_stdc=no |
| 5196 | fi |
| 5197 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5198 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5199 | fi |
| 5200 | |
| 5201 | fi |
| 5202 | fi |
| 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5204 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5205 | if test $ac_cv_header_stdc = yes; then |
| 5206 | |
| 5207 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5208 | |
| 5209 | fi |
| 5210 | |
| 5211 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5212 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5213 | inttypes.h stdint.h unistd.h |
| 5214 | do : |
| 5215 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5216 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5217 | " |
| 5218 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5219 | cat >>confdefs.h <<_ACEOF |
| 5220 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5221 | _ACEOF |
| 5222 | |
| 5223 | fi |
| 5224 | |
| 5225 | done |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 5230 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 5231 | MINIX=yes |
| 5232 | else |
| 5233 | MINIX= |
| 5234 | fi |
| 5235 | |
| 5236 | |
| 5237 | if test "$MINIX" = yes; then |
| 5238 | |
| 5239 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5240 | |
| 5241 | |
| 5242 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5243 | |
| 5244 | |
| 5245 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5246 | |
| 5247 | fi |
| 5248 | |
| 5249 | |
| 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5251 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5252 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 5253 | $as_echo_n "(cached) " >&6 |
| 5254 | else |
| 5255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5256 | /* end confdefs.h. */ |
| 5257 | |
| 5258 | # define __EXTENSIONS__ 1 |
| 5259 | $ac_includes_default |
| 5260 | int |
| 5261 | main () |
| 5262 | { |
| 5263 | |
| 5264 | ; |
| 5265 | return 0; |
| 5266 | } |
| 5267 | _ACEOF |
| 5268 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5269 | ac_cv_safe_to_define___extensions__=yes |
| 5270 | else |
| 5271 | ac_cv_safe_to_define___extensions__=no |
| 5272 | fi |
| 5273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5274 | fi |
| 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5276 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5277 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5278 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5279 | |
| 5280 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5281 | |
| 5282 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5283 | |
| 5284 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5285 | |
| 5286 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5287 | |
| 5288 | |
| 5289 | |
| 5290 | # Find other programs we need. |
| 5291 | if test -n "$ac_tool_prefix"; then |
| 5292 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5293 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5295 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5296 | if ${ac_cv_prog_AR+:} false; then : |
| 5297 | $as_echo_n "(cached) " >&6 |
| 5298 | else |
| 5299 | if test -n "$AR"; then |
| 5300 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5301 | else |
| 5302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5303 | for as_dir in $PATH |
| 5304 | do |
| 5305 | IFS=$as_save_IFS |
| 5306 | test -z "$as_dir" && as_dir=. |
| 5307 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5309 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5311 | break 2 |
| 5312 | fi |
| 5313 | done |
| 5314 | done |
| 5315 | IFS=$as_save_IFS |
| 5316 | |
| 5317 | fi |
| 5318 | fi |
| 5319 | AR=$ac_cv_prog_AR |
| 5320 | if test -n "$AR"; then |
| 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5322 | $as_echo "$AR" >&6; } |
| 5323 | else |
| 5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5325 | $as_echo "no" >&6; } |
| 5326 | fi |
| 5327 | |
| 5328 | |
| 5329 | fi |
| 5330 | if test -z "$ac_cv_prog_AR"; then |
| 5331 | ac_ct_AR=$AR |
| 5332 | # Extract the first word of "ar", so it can be a program name with args. |
| 5333 | set dummy ar; ac_word=$2 |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5335 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5336 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5337 | $as_echo_n "(cached) " >&6 |
| 5338 | else |
| 5339 | if test -n "$ac_ct_AR"; then |
| 5340 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5341 | else |
| 5342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5343 | for as_dir in $PATH |
| 5344 | do |
| 5345 | IFS=$as_save_IFS |
| 5346 | test -z "$as_dir" && as_dir=. |
| 5347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5349 | ac_cv_prog_ac_ct_AR="ar" |
| 5350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5351 | break 2 |
| 5352 | fi |
| 5353 | done |
| 5354 | done |
| 5355 | IFS=$as_save_IFS |
| 5356 | |
| 5357 | fi |
| 5358 | fi |
| 5359 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5360 | if test -n "$ac_ct_AR"; then |
| 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5362 | $as_echo "$ac_ct_AR" >&6; } |
| 5363 | else |
| 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5365 | $as_echo "no" >&6; } |
| 5366 | fi |
| 5367 | |
| 5368 | if test "x$ac_ct_AR" = x; then |
| 5369 | AR="" |
| 5370 | else |
| 5371 | case $cross_compiling:$ac_tool_warned in |
| 5372 | yes:) |
| 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5374 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5375 | ac_tool_warned=yes ;; |
| 5376 | esac |
| 5377 | AR=$ac_ct_AR |
| 5378 | fi |
| 5379 | else |
| 5380 | AR="$ac_cv_prog_AR" |
| 5381 | fi |
| 5382 | |
| 5383 | if test -n "$ac_tool_prefix"; then |
| 5384 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. |
| 5385 | set dummy ${ac_tool_prefix}nm; ac_word=$2 |
| 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5387 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5388 | if ${ac_cv_prog_NM+:} false; then : |
| 5389 | $as_echo_n "(cached) " >&6 |
| 5390 | else |
| 5391 | if test -n "$NM"; then |
| 5392 | ac_cv_prog_NM="$NM" # Let the user override the test. |
| 5393 | else |
| 5394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5395 | for as_dir in $PATH |
| 5396 | do |
| 5397 | IFS=$as_save_IFS |
| 5398 | test -z "$as_dir" && as_dir=. |
| 5399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5401 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
| 5402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5403 | break 2 |
| 5404 | fi |
| 5405 | done |
| 5406 | done |
| 5407 | IFS=$as_save_IFS |
| 5408 | |
| 5409 | fi |
| 5410 | fi |
| 5411 | NM=$ac_cv_prog_NM |
| 5412 | if test -n "$NM"; then |
| 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 5414 | $as_echo "$NM" >&6; } |
| 5415 | else |
| 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5417 | $as_echo "no" >&6; } |
| 5418 | fi |
| 5419 | |
| 5420 | |
| 5421 | fi |
| 5422 | if test -z "$ac_cv_prog_NM"; then |
| 5423 | ac_ct_NM=$NM |
| 5424 | # Extract the first word of "nm", so it can be a program name with args. |
| 5425 | set dummy nm; ac_word=$2 |
| 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5427 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5428 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
| 5429 | $as_echo_n "(cached) " >&6 |
| 5430 | else |
| 5431 | if test -n "$ac_ct_NM"; then |
| 5432 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. |
| 5433 | else |
| 5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5435 | for as_dir in $PATH |
| 5436 | do |
| 5437 | IFS=$as_save_IFS |
| 5438 | test -z "$as_dir" && as_dir=. |
| 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5441 | ac_cv_prog_ac_ct_NM="nm" |
| 5442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5443 | break 2 |
| 5444 | fi |
| 5445 | done |
| 5446 | done |
| 5447 | IFS=$as_save_IFS |
| 5448 | |
| 5449 | fi |
| 5450 | fi |
| 5451 | ac_ct_NM=$ac_cv_prog_ac_ct_NM |
| 5452 | if test -n "$ac_ct_NM"; then |
| 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
| 5454 | $as_echo "$ac_ct_NM" >&6; } |
| 5455 | else |
| 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5457 | $as_echo "no" >&6; } |
| 5458 | fi |
| 5459 | |
| 5460 | if test "x$ac_ct_NM" = x; then |
| 5461 | NM="" |
| 5462 | else |
| 5463 | case $cross_compiling:$ac_tool_warned in |
| 5464 | yes:) |
| 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5466 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5467 | ac_tool_warned=yes ;; |
| 5468 | esac |
| 5469 | NM=$ac_ct_NM |
| 5470 | fi |
| 5471 | else |
| 5472 | NM="$ac_cv_prog_NM" |
| 5473 | fi |
| 5474 | |
| 5475 | if test -n "$ac_tool_prefix"; then |
| 5476 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5477 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5479 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5480 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 5481 | $as_echo_n "(cached) " >&6 |
| 5482 | else |
| 5483 | if test -n "$RANLIB"; then |
| 5484 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5485 | else |
| 5486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5487 | for as_dir in $PATH |
| 5488 | do |
| 5489 | IFS=$as_save_IFS |
| 5490 | test -z "$as_dir" && as_dir=. |
| 5491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5492 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5493 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5495 | break 2 |
| 5496 | fi |
| 5497 | done |
| 5498 | done |
| 5499 | IFS=$as_save_IFS |
| 5500 | |
| 5501 | fi |
| 5502 | fi |
| 5503 | RANLIB=$ac_cv_prog_RANLIB |
| 5504 | if test -n "$RANLIB"; then |
| 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5506 | $as_echo "$RANLIB" >&6; } |
| 5507 | else |
| 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5509 | $as_echo "no" >&6; } |
| 5510 | fi |
| 5511 | |
| 5512 | |
| 5513 | fi |
| 5514 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5515 | ac_ct_RANLIB=$RANLIB |
| 5516 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5517 | set dummy ranlib; ac_word=$2 |
| 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5519 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5520 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 5521 | $as_echo_n "(cached) " >&6 |
| 5522 | else |
| 5523 | if test -n "$ac_ct_RANLIB"; then |
| 5524 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5525 | else |
| 5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5527 | for as_dir in $PATH |
| 5528 | do |
| 5529 | IFS=$as_save_IFS |
| 5530 | test -z "$as_dir" && as_dir=. |
| 5531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5533 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5535 | break 2 |
| 5536 | fi |
| 5537 | done |
| 5538 | done |
| 5539 | IFS=$as_save_IFS |
| 5540 | |
| 5541 | fi |
| 5542 | fi |
| 5543 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5544 | if test -n "$ac_ct_RANLIB"; then |
| 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5546 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5547 | else |
| 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5549 | $as_echo "no" >&6; } |
| 5550 | fi |
| 5551 | |
| 5552 | if test "x$ac_ct_RANLIB" = x; then |
| 5553 | RANLIB="ranlib-not-found-in-path-error" |
| 5554 | else |
| 5555 | case $cross_compiling:$ac_tool_warned in |
| 5556 | yes:) |
| 5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5558 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5559 | ac_tool_warned=yes ;; |
| 5560 | esac |
| 5561 | RANLIB=$ac_ct_RANLIB |
| 5562 | fi |
| 5563 | else |
| 5564 | RANLIB="$ac_cv_prog_RANLIB" |
| 5565 | fi |
| 5566 | |
| 5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 5568 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5569 | set x ${MAKE-make} |
| 5570 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5571 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 5572 | $as_echo_n "(cached) " >&6 |
| 5573 | else |
| 5574 | cat >conftest.make <<\_ACEOF |
| 5575 | SHELL = /bin/sh |
| 5576 | all: |
| 5577 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5578 | _ACEOF |
| 5579 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 5580 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5581 | *@@@%%%=?*=@@@%%%*) |
| 5582 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5583 | *) |
| 5584 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5585 | esac |
| 5586 | rm -f conftest.make |
| 5587 | fi |
| 5588 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5590 | $as_echo "yes" >&6; } |
| 5591 | SET_MAKE= |
| 5592 | else |
| 5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5594 | $as_echo "no" >&6; } |
| 5595 | SET_MAKE="MAKE=${MAKE-make}" |
| 5596 | fi |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | case `pwd` in |
| 5601 | *\ * | *\ *) |
| 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 5603 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 5604 | esac |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | macro_version='2.2.7a' |
| 5609 | macro_revision='1.3134' |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5624 | |
| 5625 | # Backslashify metacharacters that are still active within |
| 5626 | # double-quoted strings. |
| 5627 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 5628 | |
| 5629 | # Same as above, but do not quote variable references. |
| 5630 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 5631 | |
| 5632 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5633 | # double_quote_subst'ed string. |
| 5634 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5635 | |
| 5636 | # Sed substitution to delay expansion of an escaped single quote. |
| 5637 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5638 | |
| 5639 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5640 | no_glob_subst='s/\*/\\\*/g' |
| 5641 | |
| 5642 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5643 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5644 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5645 | |
| 5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 5647 | $as_echo_n "checking how to print strings... " >&6; } |
| 5648 | # Test print first, because it will be a builtin if present. |
| 5649 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
| 5650 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5651 | ECHO='print -r --' |
| 5652 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5653 | ECHO='printf %s\n' |
| 5654 | else |
| 5655 | # Use this function as a fallback that always works. |
| 5656 | func_fallback_echo () |
| 5657 | { |
| 5658 | eval 'cat <<_LTECHO_EOF |
| 5659 | $1 |
| 5660 | _LTECHO_EOF' |
| 5661 | } |
| 5662 | ECHO='func_fallback_echo' |
| 5663 | fi |
| 5664 | |
| 5665 | # func_echo_all arg... |
| 5666 | # Invoke $ECHO with all args, space-separated. |
| 5667 | func_echo_all () |
| 5668 | { |
| 5669 | $ECHO "" |
| 5670 | } |
| 5671 | |
| 5672 | case "$ECHO" in |
| 5673 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 5674 | $as_echo "printf" >&6; } ;; |
| 5675 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 5676 | $as_echo "print -r" >&6; } ;; |
| 5677 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 5678 | $as_echo "cat" >&6; } ;; |
| 5679 | esac |
| 5680 | |
| 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
| 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5695 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 5696 | if ${ac_cv_path_SED+:} false; then : |
| 5697 | $as_echo_n "(cached) " >&6 |
| 5698 | else |
| 5699 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5700 | for ac_i in 1 2 3 4 5 6 7; do |
| 5701 | ac_script="$ac_script$as_nl$ac_script" |
| 5702 | done |
| 5703 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5704 | { ac_script=; unset ac_script;} |
| 5705 | if test -z "$SED"; then |
| 5706 | ac_path_SED_found=false |
| 5707 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5709 | for as_dir in $PATH |
| 5710 | do |
| 5711 | IFS=$as_save_IFS |
| 5712 | test -z "$as_dir" && as_dir=. |
| 5713 | for ac_prog in sed gsed; do |
| 5714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5715 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5716 | as_fn_executable_p "$ac_path_SED" || continue |
| 5717 | # Check for GNU ac_path_SED and select it if it is found. |
| 5718 | # Check for GNU $ac_path_SED |
| 5719 | case `"$ac_path_SED" --version 2>&1` in |
| 5720 | *GNU*) |
| 5721 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5722 | *) |
| 5723 | ac_count=0 |
| 5724 | $as_echo_n 0123456789 >"conftest.in" |
| 5725 | while : |
| 5726 | do |
| 5727 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5728 | mv "conftest.tmp" "conftest.in" |
| 5729 | cp "conftest.in" "conftest.nl" |
| 5730 | $as_echo '' >> "conftest.nl" |
| 5731 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5732 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5733 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5734 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5735 | # Best one so far, save it but keep looking for a better one |
| 5736 | ac_cv_path_SED="$ac_path_SED" |
| 5737 | ac_path_SED_max=$ac_count |
| 5738 | fi |
| 5739 | # 10*(2^10) chars as input seems more than enough |
| 5740 | test $ac_count -gt 10 && break |
| 5741 | done |
| 5742 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5743 | esac |
| 5744 | |
| 5745 | $ac_path_SED_found && break 3 |
| 5746 | done |
| 5747 | done |
| 5748 | done |
| 5749 | IFS=$as_save_IFS |
| 5750 | if test -z "$ac_cv_path_SED"; then |
| 5751 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5752 | fi |
| 5753 | else |
| 5754 | ac_cv_path_SED=$SED |
| 5755 | fi |
| 5756 | |
| 5757 | fi |
| 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5759 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5760 | SED="$ac_cv_path_SED" |
| 5761 | rm -f conftest.sed |
| 5762 | |
| 5763 | test -z "$SED" && SED=sed |
| 5764 | Xsed="$SED -e 1s/^X//" |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5777 | $as_echo_n "checking for fgrep... " >&6; } |
| 5778 | if ${ac_cv_path_FGREP+:} false; then : |
| 5779 | $as_echo_n "(cached) " >&6 |
| 5780 | else |
| 5781 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5782 | then ac_cv_path_FGREP="$GREP -F" |
| 5783 | else |
| 5784 | if test -z "$FGREP"; then |
| 5785 | ac_path_FGREP_found=false |
| 5786 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5788 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5789 | do |
| 5790 | IFS=$as_save_IFS |
| 5791 | test -z "$as_dir" && as_dir=. |
| 5792 | for ac_prog in fgrep; do |
| 5793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5794 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5795 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5796 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5797 | # Check for GNU $ac_path_FGREP |
| 5798 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5799 | *GNU*) |
| 5800 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5801 | *) |
| 5802 | ac_count=0 |
| 5803 | $as_echo_n 0123456789 >"conftest.in" |
| 5804 | while : |
| 5805 | do |
| 5806 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5807 | mv "conftest.tmp" "conftest.in" |
| 5808 | cp "conftest.in" "conftest.nl" |
| 5809 | $as_echo 'FGREP' >> "conftest.nl" |
| 5810 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5811 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5812 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5813 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5814 | # Best one so far, save it but keep looking for a better one |
| 5815 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5816 | ac_path_FGREP_max=$ac_count |
| 5817 | fi |
| 5818 | # 10*(2^10) chars as input seems more than enough |
| 5819 | test $ac_count -gt 10 && break |
| 5820 | done |
| 5821 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5822 | esac |
| 5823 | |
| 5824 | $ac_path_FGREP_found && break 3 |
| 5825 | done |
| 5826 | done |
| 5827 | done |
| 5828 | IFS=$as_save_IFS |
| 5829 | if test -z "$ac_cv_path_FGREP"; then |
| 5830 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5831 | fi |
| 5832 | else |
| 5833 | ac_cv_path_FGREP=$FGREP |
| 5834 | fi |
| 5835 | |
| 5836 | fi |
| 5837 | fi |
| 5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5839 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5840 | FGREP="$ac_cv_path_FGREP" |
| 5841 | |
| 5842 | |
| 5843 | test -z "$GREP" && GREP=grep |
| 5844 | |
| 5845 | |
| 5846 | |
| 5847 | |
| 5848 | |
| 5849 | |
| 5850 | |
| 5851 | |
| 5852 | |
| 5853 | |
| 5854 | |
| 5855 | |
| 5856 | |
| 5857 | |
| 5858 | |
| 5859 | |
| 5860 | |
| 5861 | |
| 5862 | |
| 5863 | # Check whether --with-gnu-ld was given. |
| 5864 | if test "${with_gnu_ld+set}" = set; then : |
| 5865 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5866 | else |
| 5867 | with_gnu_ld=no |
| 5868 | fi |
| 5869 | |
| 5870 | ac_prog=ld |
| 5871 | if test "$GCC" = yes; then |
| 5872 | # Check if gcc -print-prog-name=ld gives a path. |
| 5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5874 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5875 | case $host in |
| 5876 | *-*-mingw*) |
| 5877 | # gcc leaves a trailing carriage return which upsets mingw |
| 5878 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5879 | *) |
| 5880 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5881 | esac |
| 5882 | case $ac_prog in |
| 5883 | # Accept absolute paths. |
| 5884 | [\\/]* | ?:[\\/]*) |
| 5885 | re_direlt='/[^/][^/]*/\.\./' |
| 5886 | # Canonicalize the pathname of ld |
| 5887 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5888 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5889 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5890 | done |
| 5891 | test -z "$LD" && LD="$ac_prog" |
| 5892 | ;; |
| 5893 | "") |
| 5894 | # If it fails, then pretend we aren't using GCC. |
| 5895 | ac_prog=ld |
| 5896 | ;; |
| 5897 | *) |
| 5898 | # If it is relative, then search for the first ld in PATH. |
| 5899 | with_gnu_ld=unknown |
| 5900 | ;; |
| 5901 | esac |
| 5902 | elif test "$with_gnu_ld" = yes; then |
| 5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5904 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5905 | else |
| 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5907 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5908 | fi |
| 5909 | if ${lt_cv_path_LD+:} false; then : |
| 5910 | $as_echo_n "(cached) " >&6 |
| 5911 | else |
| 5912 | if test -z "$LD"; then |
| 5913 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5914 | for ac_dir in $PATH; do |
| 5915 | IFS="$lt_save_ifs" |
| 5916 | test -z "$ac_dir" && ac_dir=. |
| 5917 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5918 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5919 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5920 | # but apparently some variants of GNU ld only accept -v. |
| 5921 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5922 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5923 | *GNU* | *'with BFD'*) |
| 5924 | test "$with_gnu_ld" != no && break |
| 5925 | ;; |
| 5926 | *) |
| 5927 | test "$with_gnu_ld" != yes && break |
| 5928 | ;; |
| 5929 | esac |
| 5930 | fi |
| 5931 | done |
| 5932 | IFS="$lt_save_ifs" |
| 5933 | else |
| 5934 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5935 | fi |
| 5936 | fi |
| 5937 | |
| 5938 | LD="$lt_cv_path_LD" |
| 5939 | if test -n "$LD"; then |
| 5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5941 | $as_echo "$LD" >&6; } |
| 5942 | else |
| 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5944 | $as_echo "no" >&6; } |
| 5945 | fi |
| 5946 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5948 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5949 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5950 | $as_echo_n "(cached) " >&6 |
| 5951 | else |
| 5952 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5953 | case `$LD -v 2>&1 </dev/null` in |
| 5954 | *GNU* | *'with BFD'*) |
| 5955 | lt_cv_prog_gnu_ld=yes |
| 5956 | ;; |
| 5957 | *) |
| 5958 | lt_cv_prog_gnu_ld=no |
| 5959 | ;; |
| 5960 | esac |
| 5961 | fi |
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5963 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5964 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5965 | |
| 5966 | |
| 5967 | |
| 5968 | |
| 5969 | |
| 5970 | |
| 5971 | |
| 5972 | |
| 5973 | |
| 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5975 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5976 | if ${lt_cv_path_NM+:} false; then : |
| 5977 | $as_echo_n "(cached) " >&6 |
| 5978 | else |
| 5979 | if test -n "$NM"; then |
| 5980 | # Let the user override the nm to test. |
| 5981 | lt_nm_to_check="$NM" |
| 5982 | else |
| 5983 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5984 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5985 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5986 | fi |
| 5987 | fi |
| 5988 | for lt_tmp_nm in "$lt_nm_to_check"; do |
| 5989 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5990 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5991 | IFS="$lt_save_ifs" |
| 5992 | test -z "$ac_dir" && ac_dir=. |
| 5993 | # Strip out any user-provided options from the nm to test twice, |
| 5994 | # the first time to test to see if nm (rather than its options) has |
| 5995 | # an explicit path, the second time to yield a file which can be |
| 5996 | # nm'ed itself. |
| 5997 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" |
| 5998 | case "$tmp_nm_path" in |
| 5999 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
| 6000 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; |
| 6001 | esac |
| 6002 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
| 6003 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then |
| 6004 | # Check to see if the nm accepts a BSD-compat flag. |
| 6005 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6006 | # nm: unknown option "B" ignored |
| 6007 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
| 6008 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
| 6009 | break |
| 6010 | ;; |
| 6011 | *) |
| 6012 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
| 6013 | *$tmp_nm*) |
| 6014 | lt_cv_path_NM="$tmp_nm -p" |
| 6015 | break |
| 6016 | ;; |
| 6017 | *) |
| 6018 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6019 | continue # so that we can try to find one that supports BSD flags |
| 6020 | ;; |
| 6021 | esac |
| 6022 | ;; |
| 6023 | esac |
| 6024 | fi |
| 6025 | done |
| 6026 | IFS="$lt_save_ifs" |
| 6027 | done |
| 6028 | : ${lt_cv_path_NM=no} |
| 6029 | fi |
| 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6031 | $as_echo "$lt_cv_path_NM" >&6; } |
| 6032 | if test "$lt_cv_path_NM" != "no"; then |
| 6033 | NM="$lt_cv_path_NM" |
| 6034 | else |
| 6035 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6036 | if test -n "$DUMPBIN"; then : |
| 6037 | # Let the user override the test. |
| 6038 | else |
| 6039 | if test -n "$ac_tool_prefix"; then |
| 6040 | for ac_prog in dumpbin "link -dump" |
| 6041 | do |
| 6042 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6043 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6045 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6046 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 6047 | $as_echo_n "(cached) " >&6 |
| 6048 | else |
| 6049 | if test -n "$DUMPBIN"; then |
| 6050 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6051 | else |
| 6052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6053 | for as_dir in $PATH |
| 6054 | do |
| 6055 | IFS=$as_save_IFS |
| 6056 | test -z "$as_dir" && as_dir=. |
| 6057 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6059 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6061 | break 2 |
| 6062 | fi |
| 6063 | done |
| 6064 | done |
| 6065 | IFS=$as_save_IFS |
| 6066 | |
| 6067 | fi |
| 6068 | fi |
| 6069 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6070 | if test -n "$DUMPBIN"; then |
| 6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6072 | $as_echo "$DUMPBIN" >&6; } |
| 6073 | else |
| 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6075 | $as_echo "no" >&6; } |
| 6076 | fi |
| 6077 | |
| 6078 | |
| 6079 | test -n "$DUMPBIN" && break |
| 6080 | done |
| 6081 | fi |
| 6082 | if test -z "$DUMPBIN"; then |
| 6083 | ac_ct_DUMPBIN=$DUMPBIN |
| 6084 | for ac_prog in dumpbin "link -dump" |
| 6085 | do |
| 6086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6087 | set dummy $ac_prog; ac_word=$2 |
| 6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6089 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6090 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 6091 | $as_echo_n "(cached) " >&6 |
| 6092 | else |
| 6093 | if test -n "$ac_ct_DUMPBIN"; then |
| 6094 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6095 | else |
| 6096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6097 | for as_dir in $PATH |
| 6098 | do |
| 6099 | IFS=$as_save_IFS |
| 6100 | test -z "$as_dir" && as_dir=. |
| 6101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6103 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6105 | break 2 |
| 6106 | fi |
| 6107 | done |
| 6108 | done |
| 6109 | IFS=$as_save_IFS |
| 6110 | |
| 6111 | fi |
| 6112 | fi |
| 6113 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6114 | if test -n "$ac_ct_DUMPBIN"; then |
| 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6116 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 6117 | else |
| 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6119 | $as_echo "no" >&6; } |
| 6120 | fi |
| 6121 | |
| 6122 | |
| 6123 | test -n "$ac_ct_DUMPBIN" && break |
| 6124 | done |
| 6125 | |
| 6126 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6127 | DUMPBIN=":" |
| 6128 | else |
| 6129 | case $cross_compiling:$ac_tool_warned in |
| 6130 | yes:) |
| 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6132 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6133 | ac_tool_warned=yes ;; |
| 6134 | esac |
| 6135 | DUMPBIN=$ac_ct_DUMPBIN |
| 6136 | fi |
| 6137 | fi |
| 6138 | |
| 6139 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 6140 | *COFF*) |
| 6141 | DUMPBIN="$DUMPBIN -symbols" |
| 6142 | ;; |
| 6143 | *) |
| 6144 | DUMPBIN=: |
| 6145 | ;; |
| 6146 | esac |
| 6147 | fi |
| 6148 | |
| 6149 | if test "$DUMPBIN" != ":"; then |
| 6150 | NM="$DUMPBIN" |
| 6151 | fi |
| 6152 | fi |
| 6153 | test -z "$NM" && NM=nm |
| 6154 | |
| 6155 | |
| 6156 | |
| 6157 | |
| 6158 | |
| 6159 | |
| 6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6161 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 6162 | if ${lt_cv_nm_interface+:} false; then : |
| 6163 | $as_echo_n "(cached) " >&6 |
| 6164 | else |
| 6165 | lt_cv_nm_interface="BSD nm" |
| 6166 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6167 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6168 | (eval "$ac_compile" 2>conftest.err) |
| 6169 | cat conftest.err >&5 |
| 6170 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6171 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6172 | cat conftest.err >&5 |
| 6173 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6174 | cat conftest.out >&5 |
| 6175 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6176 | lt_cv_nm_interface="MS dumpbin" |
| 6177 | fi |
| 6178 | rm -f conftest* |
| 6179 | fi |
| 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6181 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 6182 | |
| 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6184 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6185 | LN_S=$as_ln_s |
| 6186 | if test "$LN_S" = "ln -s"; then |
| 6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6188 | $as_echo "yes" >&6; } |
| 6189 | else |
| 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6191 | $as_echo "no, using $LN_S" >&6; } |
| 6192 | fi |
| 6193 | |
| 6194 | # find the maximum length of command line arguments |
| 6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6196 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 6197 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 6198 | $as_echo_n "(cached) " >&6 |
| 6199 | else |
| 6200 | i=0 |
| 6201 | teststring="ABCD" |
| 6202 | |
| 6203 | case $build_os in |
| 6204 | msdosdjgpp*) |
| 6205 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6206 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6207 | # during glob expansion). Even if it were fixed, the result of this |
| 6208 | # check would be larger than it should be. |
| 6209 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6210 | ;; |
| 6211 | |
| 6212 | gnu*) |
| 6213 | # Under GNU Hurd, this test is not required because there is |
| 6214 | # no limit to the length of command line arguments. |
| 6215 | # Libtool will interpret -1 as no limit whatsoever |
| 6216 | lt_cv_sys_max_cmd_len=-1; |
| 6217 | ;; |
| 6218 | |
| 6219 | cygwin* | mingw* | cegcc*) |
| 6220 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6221 | # about 5 minutes as the teststring grows exponentially. |
| 6222 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6223 | # you end up with a "frozen" computer, even though with patience |
| 6224 | # the test eventually succeeds (with a max line length of 256k). |
| 6225 | # Instead, let's just punt: use the minimum linelength reported by |
| 6226 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6227 | lt_cv_sys_max_cmd_len=8192; |
| 6228 | ;; |
| 6229 | |
| 6230 | mint*) |
| 6231 | # On MiNT this can take a long time and run out of memory. |
| 6232 | lt_cv_sys_max_cmd_len=8192; |
| 6233 | ;; |
| 6234 | |
| 6235 | amigaos*) |
| 6236 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6237 | # So we just punt and use a minimum line length of 8192. |
| 6238 | lt_cv_sys_max_cmd_len=8192; |
| 6239 | ;; |
| 6240 | |
| 6241 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6242 | # This has been around since 386BSD, at least. Likely further. |
| 6243 | if test -x /sbin/sysctl; then |
| 6244 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6245 | elif test -x /usr/sbin/sysctl; then |
| 6246 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6247 | else |
| 6248 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6249 | fi |
| 6250 | # And add a safety zone |
| 6251 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6252 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6253 | ;; |
| 6254 | |
| 6255 | interix*) |
| 6256 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6257 | lt_cv_sys_max_cmd_len=196608 |
| 6258 | ;; |
| 6259 | |
| 6260 | osf*) |
| 6261 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6262 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6263 | # nice to cause kernel panics so lets avoid the loop below. |
| 6264 | # First set a reasonable default. |
| 6265 | lt_cv_sys_max_cmd_len=16384 |
| 6266 | # |
| 6267 | if test -x /sbin/sysconfig; then |
| 6268 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6269 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6270 | esac |
| 6271 | fi |
| 6272 | ;; |
| 6273 | sco3.2v5*) |
| 6274 | lt_cv_sys_max_cmd_len=102400 |
| 6275 | ;; |
| 6276 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6277 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6278 | if test -n "$kargmax"; then |
| 6279 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6280 | else |
| 6281 | lt_cv_sys_max_cmd_len=32768 |
| 6282 | fi |
| 6283 | ;; |
| 6284 | *) |
| 6285 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6286 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6287 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6288 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6289 | else |
| 6290 | # Make teststring a little bigger before we do anything with it. |
| 6291 | # a 1K string should be a reasonable start. |
| 6292 | for i in 1 2 3 4 5 6 7 8 ; do |
| 6293 | teststring=$teststring$teststring |
| 6294 | done |
| 6295 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6296 | # If test is not a shell built-in, we'll probably end up computing a |
| 6297 | # maximum length that is only half of the actual maximum length, but |
| 6298 | # we can't tell. |
| 6299 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 6300 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6301 | test $i != 17 # 1/2 MB should be enough |
| 6302 | do |
| 6303 | i=`expr $i + 1` |
| 6304 | teststring=$teststring$teststring |
| 6305 | done |
| 6306 | # Only check the string length outside the loop. |
| 6307 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6308 | teststring= |
| 6309 | # Add a significant safety factor because C++ compilers can tack on |
| 6310 | # massive amounts of additional arguments before passing them to the |
| 6311 | # linker. It appears as though 1/2 is a usable value. |
| 6312 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6313 | fi |
| 6314 | ;; |
| 6315 | esac |
| 6316 | |
| 6317 | fi |
| 6318 | |
| 6319 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6321 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 6322 | else |
| 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6324 | $as_echo "none" >&6; } |
| 6325 | fi |
| 6326 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6327 | |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | : ${CP="cp -f"} |
| 6334 | : ${MV="mv -f"} |
| 6335 | : ${RM="rm -f"} |
| 6336 | |
| 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 6338 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 6339 | # Try some XSI features |
| 6340 | xsi_shell=no |
| 6341 | ( _lt_dummy="a/b/c" |
| 6342 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 6343 | = c,a/b,, \ |
| 6344 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 6345 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 6346 | && xsi_shell=yes |
| 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 6348 | $as_echo "$xsi_shell" >&6; } |
| 6349 | |
| 6350 | |
| 6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 6352 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 6353 | lt_shell_append=no |
| 6354 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 6355 | >/dev/null 2>&1 \ |
| 6356 | && lt_shell_append=yes |
| 6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 6358 | $as_echo "$lt_shell_append" >&6; } |
| 6359 | |
| 6360 | |
| 6361 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6362 | lt_unset=unset |
| 6363 | else |
| 6364 | lt_unset=false |
| 6365 | fi |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | # test EBCDIC or ASCII |
| 6372 | case `echo X|tr X '\101'` in |
| 6373 | A) # ASCII based system |
| 6374 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6375 | lt_SP2NL='tr \040 \012' |
| 6376 | lt_NL2SP='tr \015\012 \040\040' |
| 6377 | ;; |
| 6378 | *) # EBCDIC based system |
| 6379 | lt_SP2NL='tr \100 \n' |
| 6380 | lt_NL2SP='tr \r\n \100\100' |
| 6381 | ;; |
| 6382 | esac |
| 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6393 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 6394 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 6395 | $as_echo_n "(cached) " >&6 |
| 6396 | else |
| 6397 | lt_cv_ld_reload_flag='-r' |
| 6398 | fi |
| 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6400 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 6401 | reload_flag=$lt_cv_ld_reload_flag |
| 6402 | case $reload_flag in |
| 6403 | "" | " "*) ;; |
| 6404 | *) reload_flag=" $reload_flag" ;; |
| 6405 | esac |
| 6406 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6407 | case $host_os in |
| 6408 | darwin*) |
| 6409 | if test "$GCC" = yes; then |
| 6410 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 6411 | else |
| 6412 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6413 | fi |
| 6414 | ;; |
| 6415 | esac |
| 6416 | |
| 6417 | |
| 6418 | |
| 6419 | |
| 6420 | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | if test -n "$ac_tool_prefix"; then |
| 6426 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 6427 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6429 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6430 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 6431 | $as_echo_n "(cached) " >&6 |
| 6432 | else |
| 6433 | if test -n "$OBJDUMP"; then |
| 6434 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 6435 | else |
| 6436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6437 | for as_dir in $PATH |
| 6438 | do |
| 6439 | IFS=$as_save_IFS |
| 6440 | test -z "$as_dir" && as_dir=. |
| 6441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6443 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 6444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6445 | break 2 |
| 6446 | fi |
| 6447 | done |
| 6448 | done |
| 6449 | IFS=$as_save_IFS |
| 6450 | |
| 6451 | fi |
| 6452 | fi |
| 6453 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 6454 | if test -n "$OBJDUMP"; then |
| 6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 6456 | $as_echo "$OBJDUMP" >&6; } |
| 6457 | else |
| 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6459 | $as_echo "no" >&6; } |
| 6460 | fi |
| 6461 | |
| 6462 | |
| 6463 | fi |
| 6464 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 6465 | ac_ct_OBJDUMP=$OBJDUMP |
| 6466 | # Extract the first word of "objdump", so it can be a program name with args. |
| 6467 | set dummy objdump; ac_word=$2 |
| 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6469 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6470 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 6471 | $as_echo_n "(cached) " >&6 |
| 6472 | else |
| 6473 | if test -n "$ac_ct_OBJDUMP"; then |
| 6474 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 6475 | else |
| 6476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6477 | for as_dir in $PATH |
| 6478 | do |
| 6479 | IFS=$as_save_IFS |
| 6480 | test -z "$as_dir" && as_dir=. |
| 6481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6483 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 6484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6485 | break 2 |
| 6486 | fi |
| 6487 | done |
| 6488 | done |
| 6489 | IFS=$as_save_IFS |
| 6490 | |
| 6491 | fi |
| 6492 | fi |
| 6493 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 6494 | if test -n "$ac_ct_OBJDUMP"; then |
| 6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 6496 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 6497 | else |
| 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6499 | $as_echo "no" >&6; } |
| 6500 | fi |
| 6501 | |
| 6502 | if test "x$ac_ct_OBJDUMP" = x; then |
| 6503 | OBJDUMP="false" |
| 6504 | else |
| 6505 | case $cross_compiling:$ac_tool_warned in |
| 6506 | yes:) |
| 6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6508 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6509 | ac_tool_warned=yes ;; |
| 6510 | esac |
| 6511 | OBJDUMP=$ac_ct_OBJDUMP |
| 6512 | fi |
| 6513 | else |
| 6514 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 6515 | fi |
| 6516 | |
| 6517 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6518 | |
| 6519 | |
| 6520 | |
| 6521 | |
| 6522 | |
| 6523 | |
| 6524 | |
| 6525 | |
| 6526 | |
| 6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 6528 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 6529 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 6530 | $as_echo_n "(cached) " >&6 |
| 6531 | else |
| 6532 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6533 | lt_cv_file_magic_test_file= |
| 6534 | lt_cv_deplibs_check_method='unknown' |
| 6535 | # Need to set the preceding variable on all platforms that support |
| 6536 | # interlibrary dependencies. |
| 6537 | # 'none' -- dependencies not supported. |
| 6538 | # `unknown' -- same as none, but documents that we really don't know. |
| 6539 | # 'pass_all' -- all dependencies passed with no checks. |
| 6540 | # 'test_compile' -- check by making test program. |
| 6541 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 6542 | # which responds to the $file_magic_cmd with a given extended regex. |
| 6543 | # If you have `file' or equivalent on your system and you're not sure |
| 6544 | # whether `pass_all' will *always* work, you probably want this one. |
| 6545 | |
| 6546 | case $host_os in |
| 6547 | aix[4-9]*) |
| 6548 | lt_cv_deplibs_check_method=pass_all |
| 6549 | ;; |
| 6550 | |
| 6551 | beos*) |
| 6552 | lt_cv_deplibs_check_method=pass_all |
| 6553 | ;; |
| 6554 | |
| 6555 | bsdi[45]*) |
| 6556 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 6557 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 6558 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 6559 | ;; |
| 6560 | |
| 6561 | cygwin*) |
| 6562 | # func_win32_libid is a shell function defined in ltmain.sh |
| 6563 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6564 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6565 | ;; |
| 6566 | |
| 6567 | mingw* | pw32*) |
| 6568 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 6569 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 6570 | # unless we find 'file', for example because we are cross-compiling. |
| 6571 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 6572 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 6573 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6574 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6575 | else |
| 6576 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 6577 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6578 | fi |
| 6579 | ;; |
| 6580 | |
| 6581 | cegcc*) |
| 6582 | # use the weaker test based on 'objdump'. See mingw*. |
| 6583 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 6584 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6585 | ;; |
| 6586 | |
| 6587 | darwin* | rhapsody*) |
| 6588 | lt_cv_deplibs_check_method=pass_all |
| 6589 | ;; |
| 6590 | |
| 6591 | freebsd* | dragonfly*) |
| 6592 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6593 | case $host_cpu in |
| 6594 | i*86 ) |
| 6595 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 6596 | # Let's accept both of them until this is cleared up. |
| 6597 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 6598 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6599 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6600 | ;; |
| 6601 | esac |
| 6602 | else |
| 6603 | lt_cv_deplibs_check_method=pass_all |
| 6604 | fi |
| 6605 | ;; |
| 6606 | |
| 6607 | gnu*) |
| 6608 | lt_cv_deplibs_check_method=pass_all |
| 6609 | ;; |
| 6610 | |
| 6611 | haiku*) |
| 6612 | lt_cv_deplibs_check_method=pass_all |
| 6613 | ;; |
| 6614 | |
| 6615 | hpux10.20* | hpux11*) |
| 6616 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6617 | case $host_cpu in |
| 6618 | ia64*) |
| 6619 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 6620 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6621 | ;; |
| 6622 | hppa*64*) |
| 6623 | 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]' |
| 6624 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6625 | ;; |
| 6626 | *) |
| 6627 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 6628 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6629 | ;; |
| 6630 | esac |
| 6631 | ;; |
| 6632 | |
| 6633 | interix[3-9]*) |
| 6634 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6635 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 6636 | ;; |
| 6637 | |
| 6638 | irix5* | irix6* | nonstopux*) |
| 6639 | case $LD in |
| 6640 | *-32|*"-32 ") libmagic=32-bit;; |
| 6641 | *-n32|*"-n32 ") libmagic=N32;; |
| 6642 | *-64|*"-64 ") libmagic=64-bit;; |
| 6643 | *) libmagic=never-match;; |
| 6644 | esac |
| 6645 | lt_cv_deplibs_check_method=pass_all |
| 6646 | ;; |
| 6647 | |
| 6648 | # This must be Linux ELF. |
| 6649 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
| 6650 | lt_cv_deplibs_check_method=pass_all |
| 6651 | ;; |
| 6652 | |
| 6653 | netbsd*) |
| 6654 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6655 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6656 | else |
| 6657 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6658 | fi |
| 6659 | ;; |
| 6660 | |
| 6661 | newos6*) |
| 6662 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 6663 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6664 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6665 | ;; |
| 6666 | |
| 6667 | *nto* | *qnx*) |
| 6668 | lt_cv_deplibs_check_method=pass_all |
| 6669 | ;; |
| 6670 | |
| 6671 | openbsd*) |
| 6672 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6673 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 6674 | else |
| 6675 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6676 | fi |
| 6677 | ;; |
| 6678 | |
| 6679 | osf3* | osf4* | osf5*) |
| 6680 | lt_cv_deplibs_check_method=pass_all |
| 6681 | ;; |
| 6682 | |
| 6683 | rdos*) |
| 6684 | lt_cv_deplibs_check_method=pass_all |
| 6685 | ;; |
| 6686 | |
| 6687 | solaris*) |
| 6688 | lt_cv_deplibs_check_method=pass_all |
| 6689 | ;; |
| 6690 | |
| 6691 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6692 | lt_cv_deplibs_check_method=pass_all |
| 6693 | ;; |
| 6694 | |
| 6695 | sysv4 | sysv4.3*) |
| 6696 | case $host_vendor in |
| 6697 | motorola) |
| 6698 | 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]' |
| 6699 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6700 | ;; |
| 6701 | ncr) |
| 6702 | lt_cv_deplibs_check_method=pass_all |
| 6703 | ;; |
| 6704 | sequent) |
| 6705 | lt_cv_file_magic_cmd='/bin/file' |
| 6706 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 6707 | ;; |
| 6708 | sni) |
| 6709 | lt_cv_file_magic_cmd='/bin/file' |
| 6710 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 6711 | lt_cv_file_magic_test_file=/lib/libc.so |
| 6712 | ;; |
| 6713 | siemens) |
| 6714 | lt_cv_deplibs_check_method=pass_all |
| 6715 | ;; |
| 6716 | pc) |
| 6717 | lt_cv_deplibs_check_method=pass_all |
| 6718 | ;; |
| 6719 | esac |
| 6720 | ;; |
| 6721 | |
| 6722 | tpf*) |
| 6723 | lt_cv_deplibs_check_method=pass_all |
| 6724 | ;; |
| 6725 | vxworks*) |
| 6726 | # Assume VxWorks cross toolchains are built on Linux, possibly |
| 6727 | # as canadian for Windows hosts. |
| 6728 | lt_cv_deplibs_check_method=pass_all |
| 6729 | ;; |
| 6730 | esac |
| 6731 | |
| 6732 | fi |
| 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 6734 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 6735 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 6736 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 6737 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6738 | |
| 6739 | |
| 6740 | |
| 6741 | |
| 6742 | |
| 6743 | |
| 6744 | |
| 6745 | |
| 6746 | |
| 6747 | |
| 6748 | |
| 6749 | |
| 6750 | plugin_option= |
| 6751 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" |
| 6752 | for plugin in $plugin_names; do |
| 6753 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` |
| 6754 | if test x$plugin_so = x$plugin; then |
| 6755 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` |
| 6756 | fi |
| 6757 | if test x$plugin_so != x$plugin; then |
| 6758 | plugin_option="--plugin $plugin_so" |
| 6759 | break |
| 6760 | fi |
| 6761 | done |
| 6762 | |
| 6763 | if test -n "$ac_tool_prefix"; then |
| 6764 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6765 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6767 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6768 | if ${ac_cv_prog_AR+:} false; then : |
| 6769 | $as_echo_n "(cached) " >&6 |
| 6770 | else |
| 6771 | if test -n "$AR"; then |
| 6772 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6773 | else |
| 6774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6775 | for as_dir in $PATH |
| 6776 | do |
| 6777 | IFS=$as_save_IFS |
| 6778 | test -z "$as_dir" && as_dir=. |
| 6779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6781 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6783 | break 2 |
| 6784 | fi |
| 6785 | done |
| 6786 | done |
| 6787 | IFS=$as_save_IFS |
| 6788 | |
| 6789 | fi |
| 6790 | fi |
| 6791 | AR=$ac_cv_prog_AR |
| 6792 | if test -n "$AR"; then |
| 6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6794 | $as_echo "$AR" >&6; } |
| 6795 | else |
| 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6797 | $as_echo "no" >&6; } |
| 6798 | fi |
| 6799 | |
| 6800 | |
| 6801 | fi |
| 6802 | if test -z "$ac_cv_prog_AR"; then |
| 6803 | ac_ct_AR=$AR |
| 6804 | # Extract the first word of "ar", so it can be a program name with args. |
| 6805 | set dummy ar; ac_word=$2 |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6807 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6808 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6809 | $as_echo_n "(cached) " >&6 |
| 6810 | else |
| 6811 | if test -n "$ac_ct_AR"; then |
| 6812 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6813 | else |
| 6814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6815 | for as_dir in $PATH |
| 6816 | do |
| 6817 | IFS=$as_save_IFS |
| 6818 | test -z "$as_dir" && as_dir=. |
| 6819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6821 | ac_cv_prog_ac_ct_AR="ar" |
| 6822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6823 | break 2 |
| 6824 | fi |
| 6825 | done |
| 6826 | done |
| 6827 | IFS=$as_save_IFS |
| 6828 | |
| 6829 | fi |
| 6830 | fi |
| 6831 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6832 | if test -n "$ac_ct_AR"; then |
| 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6834 | $as_echo "$ac_ct_AR" >&6; } |
| 6835 | else |
| 6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6837 | $as_echo "no" >&6; } |
| 6838 | fi |
| 6839 | |
| 6840 | if test "x$ac_ct_AR" = x; then |
| 6841 | AR="false" |
| 6842 | else |
| 6843 | case $cross_compiling:$ac_tool_warned in |
| 6844 | yes:) |
| 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6846 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6847 | ac_tool_warned=yes ;; |
| 6848 | esac |
| 6849 | AR=$ac_ct_AR |
| 6850 | fi |
| 6851 | else |
| 6852 | AR="$ac_cv_prog_AR" |
| 6853 | fi |
| 6854 | |
| 6855 | test -z "$AR" && AR=ar |
| 6856 | if test -n "$plugin_option"; then |
| 6857 | if $AR --help 2>&1 | grep -q "\--plugin"; then |
| 6858 | touch conftest.c |
| 6859 | $AR $plugin_option rc conftest.a conftest.c |
| 6860 | if test "$?" != 0; then |
| 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 |
| 6862 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} |
| 6863 | else |
| 6864 | AR="$AR $plugin_option" |
| 6865 | fi |
| 6866 | rm -f conftest.* |
| 6867 | fi |
| 6868 | fi |
| 6869 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6870 | |
| 6871 | |
| 6872 | |
| 6873 | |
| 6874 | |
| 6875 | |
| 6876 | |
| 6877 | |
| 6878 | |
| 6879 | |
| 6880 | |
| 6881 | if test -n "$ac_tool_prefix"; then |
| 6882 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6883 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6885 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6886 | if ${ac_cv_prog_STRIP+:} false; then : |
| 6887 | $as_echo_n "(cached) " >&6 |
| 6888 | else |
| 6889 | if test -n "$STRIP"; then |
| 6890 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6891 | else |
| 6892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6893 | for as_dir in $PATH |
| 6894 | do |
| 6895 | IFS=$as_save_IFS |
| 6896 | test -z "$as_dir" && as_dir=. |
| 6897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6899 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6901 | break 2 |
| 6902 | fi |
| 6903 | done |
| 6904 | done |
| 6905 | IFS=$as_save_IFS |
| 6906 | |
| 6907 | fi |
| 6908 | fi |
| 6909 | STRIP=$ac_cv_prog_STRIP |
| 6910 | if test -n "$STRIP"; then |
| 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6912 | $as_echo "$STRIP" >&6; } |
| 6913 | else |
| 6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6915 | $as_echo "no" >&6; } |
| 6916 | fi |
| 6917 | |
| 6918 | |
| 6919 | fi |
| 6920 | if test -z "$ac_cv_prog_STRIP"; then |
| 6921 | ac_ct_STRIP=$STRIP |
| 6922 | # Extract the first word of "strip", so it can be a program name with args. |
| 6923 | set dummy strip; ac_word=$2 |
| 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6925 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6926 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6927 | $as_echo_n "(cached) " >&6 |
| 6928 | else |
| 6929 | if test -n "$ac_ct_STRIP"; then |
| 6930 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6931 | else |
| 6932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6933 | for as_dir in $PATH |
| 6934 | do |
| 6935 | IFS=$as_save_IFS |
| 6936 | test -z "$as_dir" && as_dir=. |
| 6937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6939 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6941 | break 2 |
| 6942 | fi |
| 6943 | done |
| 6944 | done |
| 6945 | IFS=$as_save_IFS |
| 6946 | |
| 6947 | fi |
| 6948 | fi |
| 6949 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6950 | if test -n "$ac_ct_STRIP"; then |
| 6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6952 | $as_echo "$ac_ct_STRIP" >&6; } |
| 6953 | else |
| 6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6955 | $as_echo "no" >&6; } |
| 6956 | fi |
| 6957 | |
| 6958 | if test "x$ac_ct_STRIP" = x; then |
| 6959 | STRIP=":" |
| 6960 | else |
| 6961 | case $cross_compiling:$ac_tool_warned in |
| 6962 | yes:) |
| 6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6965 | ac_tool_warned=yes ;; |
| 6966 | esac |
| 6967 | STRIP=$ac_ct_STRIP |
| 6968 | fi |
| 6969 | else |
| 6970 | STRIP="$ac_cv_prog_STRIP" |
| 6971 | fi |
| 6972 | |
| 6973 | test -z "$STRIP" && STRIP=: |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | |
| 6978 | |
| 6979 | |
| 6980 | if test -n "$ac_tool_prefix"; then |
| 6981 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6982 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6984 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6985 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6986 | $as_echo_n "(cached) " >&6 |
| 6987 | else |
| 6988 | if test -n "$RANLIB"; then |
| 6989 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6990 | else |
| 6991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6992 | for as_dir in $PATH |
| 6993 | do |
| 6994 | IFS=$as_save_IFS |
| 6995 | test -z "$as_dir" && as_dir=. |
| 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_RANLIB="${ac_tool_prefix}ranlib" |
| 6999 | $as_echo "$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 | RANLIB=$ac_cv_prog_RANLIB |
| 7009 | if test -n "$RANLIB"; then |
| 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7011 | $as_echo "$RANLIB" >&6; } |
| 7012 | else |
| 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7014 | $as_echo "no" >&6; } |
| 7015 | fi |
| 7016 | |
| 7017 | |
| 7018 | fi |
| 7019 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7020 | ac_ct_RANLIB=$RANLIB |
| 7021 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7022 | set dummy ranlib; ac_word=$2 |
| 7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7024 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7025 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 7026 | $as_echo_n "(cached) " >&6 |
| 7027 | else |
| 7028 | if test -n "$ac_ct_RANLIB"; then |
| 7029 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7030 | else |
| 7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7032 | for as_dir in $PATH |
| 7033 | do |
| 7034 | IFS=$as_save_IFS |
| 7035 | test -z "$as_dir" && as_dir=. |
| 7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7038 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7040 | break 2 |
| 7041 | fi |
| 7042 | done |
| 7043 | done |
| 7044 | IFS=$as_save_IFS |
| 7045 | |
| 7046 | fi |
| 7047 | fi |
| 7048 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7049 | if test -n "$ac_ct_RANLIB"; then |
| 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7051 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 7052 | else |
| 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7054 | $as_echo "no" >&6; } |
| 7055 | fi |
| 7056 | |
| 7057 | if test "x$ac_ct_RANLIB" = x; then |
| 7058 | RANLIB=":" |
| 7059 | else |
| 7060 | case $cross_compiling:$ac_tool_warned in |
| 7061 | yes:) |
| 7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7064 | ac_tool_warned=yes ;; |
| 7065 | esac |
| 7066 | RANLIB=$ac_ct_RANLIB |
| 7067 | fi |
| 7068 | else |
| 7069 | RANLIB="$ac_cv_prog_RANLIB" |
| 7070 | fi |
| 7071 | |
| 7072 | test -z "$RANLIB" && RANLIB=: |
| 7073 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
| 7074 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then |
| 7075 | RANLIB="$RANLIB $plugin_option" |
| 7076 | fi |
| 7077 | fi |
| 7078 | |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | |
| 7083 | |
| 7084 | # Determine commands to create old-style static archives. |
| 7085 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 7086 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7087 | old_postuninstall_cmds= |
| 7088 | |
| 7089 | if test -n "$RANLIB"; then |
| 7090 | case $host_os in |
| 7091 | openbsd*) |
| 7092 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 7093 | ;; |
| 7094 | *) |
| 7095 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 7096 | ;; |
| 7097 | esac |
| 7098 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7099 | fi |
| 7100 | |
| 7101 | case $host_os in |
| 7102 | darwin*) |
| 7103 | lock_old_archive_extraction=yes ;; |
| 7104 | *) |
| 7105 | lock_old_archive_extraction=no ;; |
| 7106 | esac |
| 7107 | |
| 7108 | |
| 7109 | |
| 7110 | |
| 7111 | |
| 7112 | |
| 7113 | |
| 7114 | |
| 7115 | |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | |
| 7121 | |
| 7122 | |
| 7123 | |
| 7124 | |
| 7125 | |
| 7126 | |
| 7127 | |
| 7128 | |
| 7129 | |
| 7130 | |
| 7131 | |
| 7132 | |
| 7133 | |
| 7134 | |
| 7135 | |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
| 7140 | |
| 7141 | |
| 7142 | |
| 7143 | |
| 7144 | |
| 7145 | |
| 7146 | # If no C compiler was specified, use CC. |
| 7147 | LTCC=${LTCC-"$CC"} |
| 7148 | |
| 7149 | # If no C compiler flags were specified, use CFLAGS. |
| 7150 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7151 | |
| 7152 | # Allow CC to be a program name with arguments. |
| 7153 | compiler=$CC |
| 7154 | |
| 7155 | |
| 7156 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 7158 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 7159 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 7160 | $as_echo_n "(cached) " >&6 |
| 7161 | else |
| 7162 | |
| 7163 | # These are sane defaults that work on at least a few old systems. |
| 7164 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7165 | |
| 7166 | # Character class describing NM global symbol codes. |
| 7167 | symcode='[BCDEGRST]' |
| 7168 | |
| 7169 | # Regexp to match symbols that can be accessed directly from C. |
| 7170 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7171 | |
| 7172 | # Define system-specific variables. |
| 7173 | case $host_os in |
| 7174 | aix*) |
| 7175 | symcode='[BCDT]' |
| 7176 | ;; |
| 7177 | cygwin* | mingw* | pw32* | cegcc*) |
| 7178 | symcode='[ABCDGISTW]' |
| 7179 | ;; |
| 7180 | hpux*) |
| 7181 | if test "$host_cpu" = ia64; then |
| 7182 | symcode='[ABCDEGRST]' |
| 7183 | fi |
| 7184 | ;; |
| 7185 | irix* | nonstopux*) |
| 7186 | symcode='[BCDEGRST]' |
| 7187 | ;; |
| 7188 | osf*) |
| 7189 | symcode='[BCDEGQRST]' |
| 7190 | ;; |
| 7191 | solaris*) |
| 7192 | symcode='[BCDRT]' |
| 7193 | ;; |
| 7194 | sco3.2v5*) |
| 7195 | symcode='[DT]' |
| 7196 | ;; |
| 7197 | sysv4.2uw2*) |
| 7198 | symcode='[DT]' |
| 7199 | ;; |
| 7200 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7201 | symcode='[ABDT]' |
| 7202 | ;; |
| 7203 | sysv4) |
| 7204 | symcode='[DFNSTU]' |
| 7205 | ;; |
| 7206 | esac |
| 7207 | |
| 7208 | # If we're using GNU nm, then use its standard symbol codes. |
| 7209 | case `$NM -V 2>&1` in |
| 7210 | *GNU* | *'with BFD'*) |
| 7211 | symcode='[ABCDGIRSTW]' ;; |
| 7212 | esac |
| 7213 | |
| 7214 | # Transform an extracted symbol line into a proper C declaration. |
| 7215 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 7216 | # so use this general approach. |
| 7217 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7218 | |
| 7219 | # Transform an extracted symbol line into symbol name and symbol address |
| 7220 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 7221 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 7222 | |
| 7223 | # Handle CRLF in mingw tool chain |
| 7224 | opt_cr= |
| 7225 | case $build_os in |
| 7226 | mingw*) |
| 7227 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7228 | ;; |
| 7229 | esac |
| 7230 | |
| 7231 | # Try without a prefix underscore, then with it. |
| 7232 | for ac_symprfx in "" "_"; do |
| 7233 | |
| 7234 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7235 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7236 | |
| 7237 | # Write the raw and C identifiers. |
| 7238 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7239 | # Fake it for dumpbin and say T for any non-static function |
| 7240 | # and D for any global variable. |
| 7241 | # Also find C++ and __fastcall symbols from MSVC++, |
| 7242 | # which start with @ or ?. |
| 7243 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 7244 | " {last_section=section; section=\$ 3};"\ |
| 7245 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 7246 | " \$ 0!~/External *\|/{next};"\ |
| 7247 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 7248 | " {if(hide[section]) next};"\ |
| 7249 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 7250 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 7251 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 7252 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 7253 | " ' prfx=^$ac_symprfx" |
| 7254 | else |
| 7255 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7256 | fi |
| 7257 | |
| 7258 | # Check to see that the pipe works correctly. |
| 7259 | pipe_works=no |
| 7260 | |
| 7261 | rm -f conftest* |
| 7262 | cat > conftest.$ac_ext <<_LT_EOF |
| 7263 | #ifdef __cplusplus |
| 7264 | extern "C" { |
| 7265 | #endif |
| 7266 | char nm_test_var; |
| 7267 | void nm_test_func(void); |
| 7268 | void nm_test_func(void){} |
| 7269 | #ifdef __cplusplus |
| 7270 | } |
| 7271 | #endif |
| 7272 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7273 | _LT_EOF |
| 7274 | |
| 7275 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7276 | (eval $ac_compile) 2>&5 |
| 7277 | ac_status=$? |
| 7278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7279 | test $ac_status = 0; }; then |
| 7280 | # Now try to grab the symbols. |
| 7281 | nlist=conftest.nm |
| 7282 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 7283 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 7284 | ac_status=$? |
| 7285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7286 | test $ac_status = 0; } && test -s "$nlist"; then |
| 7287 | # Try sorting and uniquifying the output. |
| 7288 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7289 | mv -f "$nlist"T "$nlist" |
| 7290 | else |
| 7291 | rm -f "$nlist"T |
| 7292 | fi |
| 7293 | |
| 7294 | # Make sure that we snagged all the symbols we need. |
| 7295 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 7296 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 7297 | cat <<_LT_EOF > conftest.$ac_ext |
| 7298 | #ifdef __cplusplus |
| 7299 | extern "C" { |
| 7300 | #endif |
| 7301 | |
| 7302 | _LT_EOF |
| 7303 | # Now generate the symbol file. |
| 7304 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 7305 | |
| 7306 | cat <<_LT_EOF >> conftest.$ac_ext |
| 7307 | |
| 7308 | /* The mapping between symbol names and symbols. */ |
| 7309 | const struct { |
| 7310 | const char *name; |
| 7311 | void *address; |
| 7312 | } |
| 7313 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 7314 | { |
| 7315 | { "@PROGRAM@", (void *) 0 }, |
| 7316 | _LT_EOF |
| 7317 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 7318 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 7319 | {0, (void *) 0} |
| 7320 | }; |
| 7321 | |
| 7322 | /* This works around a problem in FreeBSD linker */ |
| 7323 | #ifdef FREEBSD_WORKAROUND |
| 7324 | static const void *lt_preloaded_setup() { |
| 7325 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 7326 | } |
| 7327 | #endif |
| 7328 | |
| 7329 | #ifdef __cplusplus |
| 7330 | } |
| 7331 | #endif |
| 7332 | _LT_EOF |
| 7333 | # Now try linking the two files. |
| 7334 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7335 | lt_save_LIBS="$LIBS" |
| 7336 | lt_save_CFLAGS="$CFLAGS" |
| 7337 | LIBS="conftstm.$ac_objext" |
| 7338 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7339 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7340 | (eval $ac_link) 2>&5 |
| 7341 | ac_status=$? |
| 7342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7343 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 7344 | pipe_works=yes |
| 7345 | fi |
| 7346 | LIBS="$lt_save_LIBS" |
| 7347 | CFLAGS="$lt_save_CFLAGS" |
| 7348 | else |
| 7349 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7350 | fi |
| 7351 | else |
| 7352 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7353 | fi |
| 7354 | else |
| 7355 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7356 | fi |
| 7357 | else |
| 7358 | echo "$progname: failed program was:" >&5 |
| 7359 | cat conftest.$ac_ext >&5 |
| 7360 | fi |
| 7361 | rm -rf conftest* conftst* |
| 7362 | |
| 7363 | # Do not use the global_symbol_pipe unless it works. |
| 7364 | if test "$pipe_works" = yes; then |
| 7365 | break |
| 7366 | else |
| 7367 | lt_cv_sys_global_symbol_pipe= |
| 7368 | fi |
| 7369 | done |
| 7370 | |
| 7371 | fi |
| 7372 | |
| 7373 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7374 | lt_cv_sys_global_symbol_to_cdecl= |
| 7375 | fi |
| 7376 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 7378 | $as_echo "failed" >&6; } |
| 7379 | else |
| 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 7381 | $as_echo "ok" >&6; } |
| 7382 | fi |
| 7383 | |
| 7384 | |
| 7385 | |
| 7386 | |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | |
| 7391 | |
| 7392 | |
| 7393 | |
| 7394 | |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | # Check whether --enable-libtool-lock was given. |
| 7406 | if test "${enable_libtool_lock+set}" = set; then : |
| 7407 | enableval=$enable_libtool_lock; |
| 7408 | fi |
| 7409 | |
| 7410 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7411 | |
| 7412 | # Some flags need to be propagated to the compiler or linker for good |
| 7413 | # libtool support. |
| 7414 | case $host in |
| 7415 | ia64-*-hpux*) |
| 7416 | # Find out which ABI we are using. |
| 7417 | echo 'int i;' > conftest.$ac_ext |
| 7418 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7419 | (eval $ac_compile) 2>&5 |
| 7420 | ac_status=$? |
| 7421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7422 | test $ac_status = 0; }; then |
| 7423 | case `/usr/bin/file conftest.$ac_objext` in |
| 7424 | *ELF-32*) |
| 7425 | HPUX_IA64_MODE="32" |
| 7426 | ;; |
| 7427 | *ELF-64*) |
| 7428 | HPUX_IA64_MODE="64" |
| 7429 | ;; |
| 7430 | esac |
| 7431 | fi |
| 7432 | rm -rf conftest* |
| 7433 | ;; |
| 7434 | *-*-irix6*) |
| 7435 | # Find out which ABI we are using. |
| 7436 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 7437 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7438 | (eval $ac_compile) 2>&5 |
| 7439 | ac_status=$? |
| 7440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7441 | test $ac_status = 0; }; then |
| 7442 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7443 | case `/usr/bin/file conftest.$ac_objext` in |
| 7444 | *32-bit*) |
| 7445 | LD="${LD-ld} -melf32bsmip" |
| 7446 | ;; |
| 7447 | *N32*) |
| 7448 | LD="${LD-ld} -melf32bmipn32" |
| 7449 | ;; |
| 7450 | *64-bit*) |
| 7451 | LD="${LD-ld} -melf64bmip" |
| 7452 | ;; |
| 7453 | esac |
| 7454 | else |
| 7455 | case `/usr/bin/file conftest.$ac_objext` in |
| 7456 | *32-bit*) |
| 7457 | LD="${LD-ld} -32" |
| 7458 | ;; |
| 7459 | *N32*) |
| 7460 | LD="${LD-ld} -n32" |
| 7461 | ;; |
| 7462 | *64-bit*) |
| 7463 | LD="${LD-ld} -64" |
| 7464 | ;; |
| 7465 | esac |
| 7466 | fi |
| 7467 | fi |
| 7468 | rm -rf conftest* |
| 7469 | ;; |
| 7470 | |
| 7471 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 7472 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 7473 | # Find out which ABI we are using. |
| 7474 | echo 'int i;' > conftest.$ac_ext |
| 7475 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7476 | (eval $ac_compile) 2>&5 |
| 7477 | ac_status=$? |
| 7478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7479 | test $ac_status = 0; }; then |
| 7480 | case `/usr/bin/file conftest.o` in |
| 7481 | *32-bit*) |
| 7482 | case $host in |
| 7483 | x86_64-*kfreebsd*-gnu) |
| 7484 | LD="${LD-ld} -m elf_i386_fbsd" |
| 7485 | ;; |
| 7486 | x86_64-*linux*) |
| 7487 | case `/usr/bin/file conftest.o` in |
| 7488 | *x86-64*) |
| 7489 | LD="${LD-ld} -m elf32_x86_64" |
| 7490 | ;; |
| 7491 | *) |
| 7492 | LD="${LD-ld} -m elf_i386" |
| 7493 | ;; |
| 7494 | esac |
| 7495 | ;; |
| 7496 | powerpc64le-*linux*) |
| 7497 | LD="${LD-ld} -m elf32lppclinux" |
| 7498 | ;; |
| 7499 | powerpc64-*linux*) |
| 7500 | LD="${LD-ld} -m elf32ppclinux" |
| 7501 | ;; |
| 7502 | s390x-*linux*) |
| 7503 | LD="${LD-ld} -m elf_s390" |
| 7504 | ;; |
| 7505 | sparc64-*linux*) |
| 7506 | LD="${LD-ld} -m elf32_sparc" |
| 7507 | ;; |
| 7508 | esac |
| 7509 | ;; |
| 7510 | *64-bit*) |
| 7511 | case $host in |
| 7512 | x86_64-*kfreebsd*-gnu) |
| 7513 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 7514 | ;; |
| 7515 | x86_64-*linux*) |
| 7516 | LD="${LD-ld} -m elf_x86_64" |
| 7517 | ;; |
| 7518 | powerpcle-*linux*) |
| 7519 | LD="${LD-ld} -m elf64lppc" |
| 7520 | ;; |
| 7521 | powerpc-*linux*) |
| 7522 | LD="${LD-ld} -m elf64ppc" |
| 7523 | ;; |
| 7524 | s390*-*linux*|s390*-*tpf*) |
| 7525 | LD="${LD-ld} -m elf64_s390" |
| 7526 | ;; |
| 7527 | sparc*-*linux*) |
| 7528 | LD="${LD-ld} -m elf64_sparc" |
| 7529 | ;; |
| 7530 | esac |
| 7531 | ;; |
| 7532 | esac |
| 7533 | fi |
| 7534 | rm -rf conftest* |
| 7535 | ;; |
| 7536 | |
| 7537 | *-*-sco3.2v5*) |
| 7538 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7539 | SAVE_CFLAGS="$CFLAGS" |
| 7540 | CFLAGS="$CFLAGS -belf" |
| 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7542 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7543 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 7544 | $as_echo_n "(cached) " >&6 |
| 7545 | else |
| 7546 | ac_ext=c |
| 7547 | ac_cpp='$CPP $CPPFLAGS' |
| 7548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7551 | |
| 7552 | if test x$gcc_no_link = xyes; then |
| 7553 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 7554 | fi |
| 7555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7556 | /* end confdefs.h. */ |
| 7557 | |
| 7558 | int |
| 7559 | main () |
| 7560 | { |
| 7561 | |
| 7562 | ; |
| 7563 | return 0; |
| 7564 | } |
| 7565 | _ACEOF |
| 7566 | if ac_fn_c_try_link "$LINENO"; then : |
| 7567 | lt_cv_cc_needs_belf=yes |
| 7568 | else |
| 7569 | lt_cv_cc_needs_belf=no |
| 7570 | fi |
| 7571 | rm -f core conftest.err conftest.$ac_objext \ |
| 7572 | conftest$ac_exeext conftest.$ac_ext |
| 7573 | ac_ext=c |
| 7574 | ac_cpp='$CPP $CPPFLAGS' |
| 7575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7578 | |
| 7579 | fi |
| 7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7581 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7582 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 7583 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7584 | CFLAGS="$SAVE_CFLAGS" |
| 7585 | fi |
| 7586 | ;; |
| 7587 | sparc*-*solaris*) |
| 7588 | # Find out which ABI we are using. |
| 7589 | echo 'int i;' > conftest.$ac_ext |
| 7590 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7591 | (eval $ac_compile) 2>&5 |
| 7592 | ac_status=$? |
| 7593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7594 | test $ac_status = 0; }; then |
| 7595 | case `/usr/bin/file conftest.o` in |
| 7596 | *64-bit*) |
| 7597 | case $lt_cv_prog_gnu_ld in |
| 7598 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 7599 | *) |
| 7600 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 7601 | LD="${LD-ld} -64" |
| 7602 | fi |
| 7603 | ;; |
| 7604 | esac |
| 7605 | ;; |
| 7606 | esac |
| 7607 | fi |
| 7608 | rm -rf conftest* |
| 7609 | ;; |
| 7610 | esac |
| 7611 | |
| 7612 | need_locks="$enable_libtool_lock" |
| 7613 | |
| 7614 | |
| 7615 | case $host_os in |
| 7616 | rhapsody* | darwin*) |
| 7617 | if test -n "$ac_tool_prefix"; then |
| 7618 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7619 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7621 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7622 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7623 | $as_echo_n "(cached) " >&6 |
| 7624 | else |
| 7625 | if test -n "$DSYMUTIL"; then |
| 7626 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7627 | else |
| 7628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7629 | for as_dir in $PATH |
| 7630 | do |
| 7631 | IFS=$as_save_IFS |
| 7632 | test -z "$as_dir" && as_dir=. |
| 7633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7635 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7637 | break 2 |
| 7638 | fi |
| 7639 | done |
| 7640 | done |
| 7641 | IFS=$as_save_IFS |
| 7642 | |
| 7643 | fi |
| 7644 | fi |
| 7645 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7646 | if test -n "$DSYMUTIL"; then |
| 7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7648 | $as_echo "$DSYMUTIL" >&6; } |
| 7649 | else |
| 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7651 | $as_echo "no" >&6; } |
| 7652 | fi |
| 7653 | |
| 7654 | |
| 7655 | fi |
| 7656 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7657 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 7658 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 7659 | set dummy dsymutil; ac_word=$2 |
| 7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7661 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7662 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7663 | $as_echo_n "(cached) " >&6 |
| 7664 | else |
| 7665 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7666 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7667 | else |
| 7668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7669 | for as_dir in $PATH |
| 7670 | do |
| 7671 | IFS=$as_save_IFS |
| 7672 | test -z "$as_dir" && as_dir=. |
| 7673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7675 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7677 | break 2 |
| 7678 | fi |
| 7679 | done |
| 7680 | done |
| 7681 | IFS=$as_save_IFS |
| 7682 | |
| 7683 | fi |
| 7684 | fi |
| 7685 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7686 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7688 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7689 | else |
| 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7691 | $as_echo "no" >&6; } |
| 7692 | fi |
| 7693 | |
| 7694 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7695 | DSYMUTIL=":" |
| 7696 | else |
| 7697 | case $cross_compiling:$ac_tool_warned in |
| 7698 | yes:) |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7700 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7701 | ac_tool_warned=yes ;; |
| 7702 | esac |
| 7703 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7704 | fi |
| 7705 | else |
| 7706 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7707 | fi |
| 7708 | |
| 7709 | if test -n "$ac_tool_prefix"; then |
| 7710 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7711 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7713 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7714 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7715 | $as_echo_n "(cached) " >&6 |
| 7716 | else |
| 7717 | if test -n "$NMEDIT"; then |
| 7718 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7719 | else |
| 7720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7721 | for as_dir in $PATH |
| 7722 | do |
| 7723 | IFS=$as_save_IFS |
| 7724 | test -z "$as_dir" && as_dir=. |
| 7725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7727 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7729 | break 2 |
| 7730 | fi |
| 7731 | done |
| 7732 | done |
| 7733 | IFS=$as_save_IFS |
| 7734 | |
| 7735 | fi |
| 7736 | fi |
| 7737 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7738 | if test -n "$NMEDIT"; then |
| 7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7740 | $as_echo "$NMEDIT" >&6; } |
| 7741 | else |
| 7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7743 | $as_echo "no" >&6; } |
| 7744 | fi |
| 7745 | |
| 7746 | |
| 7747 | fi |
| 7748 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7749 | ac_ct_NMEDIT=$NMEDIT |
| 7750 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7751 | set dummy nmedit; ac_word=$2 |
| 7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7753 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7754 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7755 | $as_echo_n "(cached) " >&6 |
| 7756 | else |
| 7757 | if test -n "$ac_ct_NMEDIT"; then |
| 7758 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7759 | else |
| 7760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7761 | for as_dir in $PATH |
| 7762 | do |
| 7763 | IFS=$as_save_IFS |
| 7764 | test -z "$as_dir" && as_dir=. |
| 7765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7767 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7769 | break 2 |
| 7770 | fi |
| 7771 | done |
| 7772 | done |
| 7773 | IFS=$as_save_IFS |
| 7774 | |
| 7775 | fi |
| 7776 | fi |
| 7777 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7778 | if test -n "$ac_ct_NMEDIT"; then |
| 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7780 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7781 | else |
| 7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7783 | $as_echo "no" >&6; } |
| 7784 | fi |
| 7785 | |
| 7786 | if test "x$ac_ct_NMEDIT" = x; then |
| 7787 | NMEDIT=":" |
| 7788 | else |
| 7789 | case $cross_compiling:$ac_tool_warned in |
| 7790 | yes:) |
| 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7792 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7793 | ac_tool_warned=yes ;; |
| 7794 | esac |
| 7795 | NMEDIT=$ac_ct_NMEDIT |
| 7796 | fi |
| 7797 | else |
| 7798 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7799 | fi |
| 7800 | |
| 7801 | if test -n "$ac_tool_prefix"; then |
| 7802 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7803 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7805 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7806 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7807 | $as_echo_n "(cached) " >&6 |
| 7808 | else |
| 7809 | if test -n "$LIPO"; then |
| 7810 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7811 | else |
| 7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7813 | for as_dir in $PATH |
| 7814 | do |
| 7815 | IFS=$as_save_IFS |
| 7816 | test -z "$as_dir" && as_dir=. |
| 7817 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7819 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7821 | break 2 |
| 7822 | fi |
| 7823 | done |
| 7824 | done |
| 7825 | IFS=$as_save_IFS |
| 7826 | |
| 7827 | fi |
| 7828 | fi |
| 7829 | LIPO=$ac_cv_prog_LIPO |
| 7830 | if test -n "$LIPO"; then |
| 7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7832 | $as_echo "$LIPO" >&6; } |
| 7833 | else |
| 7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7835 | $as_echo "no" >&6; } |
| 7836 | fi |
| 7837 | |
| 7838 | |
| 7839 | fi |
| 7840 | if test -z "$ac_cv_prog_LIPO"; then |
| 7841 | ac_ct_LIPO=$LIPO |
| 7842 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7843 | set dummy lipo; ac_word=$2 |
| 7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7845 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7846 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7847 | $as_echo_n "(cached) " >&6 |
| 7848 | else |
| 7849 | if test -n "$ac_ct_LIPO"; then |
| 7850 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7851 | else |
| 7852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7853 | for as_dir in $PATH |
| 7854 | do |
| 7855 | IFS=$as_save_IFS |
| 7856 | test -z "$as_dir" && as_dir=. |
| 7857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7859 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7861 | break 2 |
| 7862 | fi |
| 7863 | done |
| 7864 | done |
| 7865 | IFS=$as_save_IFS |
| 7866 | |
| 7867 | fi |
| 7868 | fi |
| 7869 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7870 | if test -n "$ac_ct_LIPO"; then |
| 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7872 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7873 | else |
| 7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7875 | $as_echo "no" >&6; } |
| 7876 | fi |
| 7877 | |
| 7878 | if test "x$ac_ct_LIPO" = x; then |
| 7879 | LIPO=":" |
| 7880 | else |
| 7881 | case $cross_compiling:$ac_tool_warned in |
| 7882 | yes:) |
| 7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7885 | ac_tool_warned=yes ;; |
| 7886 | esac |
| 7887 | LIPO=$ac_ct_LIPO |
| 7888 | fi |
| 7889 | else |
| 7890 | LIPO="$ac_cv_prog_LIPO" |
| 7891 | fi |
| 7892 | |
| 7893 | if test -n "$ac_tool_prefix"; then |
| 7894 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7895 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7897 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7898 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7899 | $as_echo_n "(cached) " >&6 |
| 7900 | else |
| 7901 | if test -n "$OTOOL"; then |
| 7902 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7903 | else |
| 7904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7905 | for as_dir in $PATH |
| 7906 | do |
| 7907 | IFS=$as_save_IFS |
| 7908 | test -z "$as_dir" && as_dir=. |
| 7909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7911 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7913 | break 2 |
| 7914 | fi |
| 7915 | done |
| 7916 | done |
| 7917 | IFS=$as_save_IFS |
| 7918 | |
| 7919 | fi |
| 7920 | fi |
| 7921 | OTOOL=$ac_cv_prog_OTOOL |
| 7922 | if test -n "$OTOOL"; then |
| 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7924 | $as_echo "$OTOOL" >&6; } |
| 7925 | else |
| 7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7927 | $as_echo "no" >&6; } |
| 7928 | fi |
| 7929 | |
| 7930 | |
| 7931 | fi |
| 7932 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7933 | ac_ct_OTOOL=$OTOOL |
| 7934 | # Extract the first word of "otool", so it can be a program name with args. |
| 7935 | set dummy otool; ac_word=$2 |
| 7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7937 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7938 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7939 | $as_echo_n "(cached) " >&6 |
| 7940 | else |
| 7941 | if test -n "$ac_ct_OTOOL"; then |
| 7942 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7943 | else |
| 7944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7945 | for as_dir in $PATH |
| 7946 | do |
| 7947 | IFS=$as_save_IFS |
| 7948 | test -z "$as_dir" && as_dir=. |
| 7949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7951 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7953 | break 2 |
| 7954 | fi |
| 7955 | done |
| 7956 | done |
| 7957 | IFS=$as_save_IFS |
| 7958 | |
| 7959 | fi |
| 7960 | fi |
| 7961 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7962 | if test -n "$ac_ct_OTOOL"; then |
| 7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7964 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7965 | else |
| 7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7967 | $as_echo "no" >&6; } |
| 7968 | fi |
| 7969 | |
| 7970 | if test "x$ac_ct_OTOOL" = x; then |
| 7971 | OTOOL=":" |
| 7972 | else |
| 7973 | case $cross_compiling:$ac_tool_warned in |
| 7974 | yes:) |
| 7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7977 | ac_tool_warned=yes ;; |
| 7978 | esac |
| 7979 | OTOOL=$ac_ct_OTOOL |
| 7980 | fi |
| 7981 | else |
| 7982 | OTOOL="$ac_cv_prog_OTOOL" |
| 7983 | fi |
| 7984 | |
| 7985 | if test -n "$ac_tool_prefix"; then |
| 7986 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7987 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7989 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7990 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7991 | $as_echo_n "(cached) " >&6 |
| 7992 | else |
| 7993 | if test -n "$OTOOL64"; then |
| 7994 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7995 | else |
| 7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7997 | for as_dir in $PATH |
| 7998 | do |
| 7999 | IFS=$as_save_IFS |
| 8000 | test -z "$as_dir" && as_dir=. |
| 8001 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8003 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 8004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8005 | break 2 |
| 8006 | fi |
| 8007 | done |
| 8008 | done |
| 8009 | IFS=$as_save_IFS |
| 8010 | |
| 8011 | fi |
| 8012 | fi |
| 8013 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 8014 | if test -n "$OTOOL64"; then |
| 8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 8016 | $as_echo "$OTOOL64" >&6; } |
| 8017 | else |
| 8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8019 | $as_echo "no" >&6; } |
| 8020 | fi |
| 8021 | |
| 8022 | |
| 8023 | fi |
| 8024 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 8025 | ac_ct_OTOOL64=$OTOOL64 |
| 8026 | # Extract the first word of "otool64", so it can be a program name with args. |
| 8027 | set dummy otool64; ac_word=$2 |
| 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8029 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8030 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 8031 | $as_echo_n "(cached) " >&6 |
| 8032 | else |
| 8033 | if test -n "$ac_ct_OTOOL64"; then |
| 8034 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 8035 | else |
| 8036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8037 | for as_dir in $PATH |
| 8038 | do |
| 8039 | IFS=$as_save_IFS |
| 8040 | test -z "$as_dir" && as_dir=. |
| 8041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8043 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 8044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8045 | break 2 |
| 8046 | fi |
| 8047 | done |
| 8048 | done |
| 8049 | IFS=$as_save_IFS |
| 8050 | |
| 8051 | fi |
| 8052 | fi |
| 8053 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 8054 | if test -n "$ac_ct_OTOOL64"; then |
| 8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 8056 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 8057 | else |
| 8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8059 | $as_echo "no" >&6; } |
| 8060 | fi |
| 8061 | |
| 8062 | if test "x$ac_ct_OTOOL64" = x; then |
| 8063 | OTOOL64=":" |
| 8064 | else |
| 8065 | case $cross_compiling:$ac_tool_warned in |
| 8066 | yes:) |
| 8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8069 | ac_tool_warned=yes ;; |
| 8070 | esac |
| 8071 | OTOOL64=$ac_ct_OTOOL64 |
| 8072 | fi |
| 8073 | else |
| 8074 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 8075 | fi |
| 8076 | |
| 8077 | |
| 8078 | |
| 8079 | |
| 8080 | |
| 8081 | |
| 8082 | |
| 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
| 8100 | |
| 8101 | |
| 8102 | |
| 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 8104 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 8105 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 8106 | $as_echo_n "(cached) " >&6 |
| 8107 | else |
| 8108 | lt_cv_apple_cc_single_mod=no |
| 8109 | if test -z "${LT_MULTI_MODULE}"; then |
| 8110 | # By default we will add the -single_module flag. You can override |
| 8111 | # by either setting the environment variable LT_MULTI_MODULE |
| 8112 | # non-empty at configure time, or by adding -multi_module to the |
| 8113 | # link flags. |
| 8114 | rm -rf libconftest.dylib* |
| 8115 | echo "int foo(void){return 1;}" > conftest.c |
| 8116 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 8117 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 8118 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 8119 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 8120 | _lt_result=$? |
| 8121 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 8122 | lt_cv_apple_cc_single_mod=yes |
| 8123 | else |
| 8124 | cat conftest.err >&5 |
| 8125 | fi |
| 8126 | rm -rf libconftest.dylib* |
| 8127 | rm -f conftest.* |
| 8128 | fi |
| 8129 | fi |
| 8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 8131 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 8133 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 8134 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 8135 | $as_echo_n "(cached) " >&6 |
| 8136 | else |
| 8137 | lt_cv_ld_exported_symbols_list=no |
| 8138 | save_LDFLAGS=$LDFLAGS |
| 8139 | echo "_main" > conftest.sym |
| 8140 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 8141 | if test x$gcc_no_link = xyes; then |
| 8142 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 8143 | fi |
| 8144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8145 | /* end confdefs.h. */ |
| 8146 | |
| 8147 | int |
| 8148 | main () |
| 8149 | { |
| 8150 | |
| 8151 | ; |
| 8152 | return 0; |
| 8153 | } |
| 8154 | _ACEOF |
| 8155 | if ac_fn_c_try_link "$LINENO"; then : |
| 8156 | lt_cv_ld_exported_symbols_list=yes |
| 8157 | else |
| 8158 | lt_cv_ld_exported_symbols_list=no |
| 8159 | fi |
| 8160 | rm -f core conftest.err conftest.$ac_objext \ |
| 8161 | conftest$ac_exeext conftest.$ac_ext |
| 8162 | LDFLAGS="$save_LDFLAGS" |
| 8163 | |
| 8164 | fi |
| 8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 8166 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 8168 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 8169 | if ${lt_cv_ld_force_load+:} false; then : |
| 8170 | $as_echo_n "(cached) " >&6 |
| 8171 | else |
| 8172 | lt_cv_ld_force_load=no |
| 8173 | cat > conftest.c << _LT_EOF |
| 8174 | int forced_loaded() { return 2;} |
| 8175 | _LT_EOF |
| 8176 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 8177 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 8178 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 8179 | $AR cru libconftest.a conftest.o 2>&5 |
| 8180 | cat > conftest.c << _LT_EOF |
| 8181 | int main() { return 0;} |
| 8182 | _LT_EOF |
| 8183 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 8184 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 8185 | _lt_result=$? |
| 8186 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 8187 | lt_cv_ld_force_load=yes |
| 8188 | else |
| 8189 | cat conftest.err >&5 |
| 8190 | fi |
| 8191 | rm -f conftest.err libconftest.a conftest conftest.c |
| 8192 | rm -rf conftest.dSYM |
| 8193 | |
| 8194 | fi |
| 8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 8196 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 8197 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
| 8198 | # build without first building modern cctools / linker. |
| 8199 | case $host_cpu-$host_os in |
| 8200 | *-rhapsody* | *-darwin1.[012]) |
| 8201 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 8202 | *-darwin1.*) |
| 8203 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 8204 | *-darwin*) |
| 8205 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the |
| 8206 | # deployment target is forced to an earlier version. |
| 8207 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in |
| 8208 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*) |
| 8209 | ;; |
| 8210 | 10.[012][,.]*) |
| 8211 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8212 | ;; |
| 8213 | *) |
| 8214 | ;; |
| 8215 | esac |
| 8216 | ;; |
| 8217 | esac |
| 8218 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 8219 | _lt_dar_single_mod='$single_module' |
| 8220 | fi |
| 8221 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 8222 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 8223 | else |
| 8224 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8225 | fi |
| 8226 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 8227 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 8228 | else |
| 8229 | _lt_dsymutil= |
| 8230 | fi |
| 8231 | ;; |
| 8232 | esac |
| 8233 | |
| 8234 | for ac_header in dlfcn.h |
| 8235 | do : |
| 8236 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 8237 | " |
| 8238 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 8239 | cat >>confdefs.h <<_ACEOF |
| 8240 | #define HAVE_DLFCN_H 1 |
| 8241 | _ACEOF |
| 8242 | |
| 8243 | fi |
| 8244 | |
| 8245 | done |
| 8246 | |
| 8247 | |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | # Set options |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | enable_dlopen=no |
| 8256 | |
| 8257 | |
| 8258 | enable_win32_dll=no |
| 8259 | |
| 8260 | |
| 8261 | # Check whether --enable-shared was given. |
| 8262 | if test "${enable_shared+set}" = set; then : |
| 8263 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8264 | case $enableval in |
| 8265 | yes) enable_shared=yes ;; |
| 8266 | no) enable_shared=no ;; |
| 8267 | *) |
| 8268 | enable_shared=no |
| 8269 | # Look at the argument we got. We use all the common list separators. |
| 8270 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8271 | for pkg in $enableval; do |
| 8272 | IFS="$lt_save_ifs" |
| 8273 | if test "X$pkg" = "X$p"; then |
| 8274 | enable_shared=yes |
| 8275 | fi |
| 8276 | done |
| 8277 | IFS="$lt_save_ifs" |
| 8278 | ;; |
| 8279 | esac |
| 8280 | else |
| 8281 | enable_shared=yes |
| 8282 | fi |
| 8283 | |
| 8284 | |
| 8285 | |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | |
| 8291 | |
| 8292 | # Check whether --enable-static was given. |
| 8293 | if test "${enable_static+set}" = set; then : |
| 8294 | enableval=$enable_static; p=${PACKAGE-default} |
| 8295 | case $enableval in |
| 8296 | yes) enable_static=yes ;; |
| 8297 | no) enable_static=no ;; |
| 8298 | *) |
| 8299 | enable_static=no |
| 8300 | # Look at the argument we got. We use all the common list separators. |
| 8301 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8302 | for pkg in $enableval; do |
| 8303 | IFS="$lt_save_ifs" |
| 8304 | if test "X$pkg" = "X$p"; then |
| 8305 | enable_static=yes |
| 8306 | fi |
| 8307 | done |
| 8308 | IFS="$lt_save_ifs" |
| 8309 | ;; |
| 8310 | esac |
| 8311 | else |
| 8312 | enable_static=yes |
| 8313 | fi |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
| 8322 | |
| 8323 | |
| 8324 | # Check whether --with-pic was given. |
| 8325 | if test "${with_pic+set}" = set; then : |
| 8326 | withval=$with_pic; pic_mode="$withval" |
| 8327 | else |
| 8328 | pic_mode=default |
| 8329 | fi |
| 8330 | |
| 8331 | |
| 8332 | test -z "$pic_mode" && pic_mode=default |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | # Check whether --enable-fast-install was given. |
| 8341 | if test "${enable_fast_install+set}" = set; then : |
| 8342 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8343 | case $enableval in |
| 8344 | yes) enable_fast_install=yes ;; |
| 8345 | no) enable_fast_install=no ;; |
| 8346 | *) |
| 8347 | enable_fast_install=no |
| 8348 | # Look at the argument we got. We use all the common list separators. |
| 8349 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8350 | for pkg in $enableval; do |
| 8351 | IFS="$lt_save_ifs" |
| 8352 | if test "X$pkg" = "X$p"; then |
| 8353 | enable_fast_install=yes |
| 8354 | fi |
| 8355 | done |
| 8356 | IFS="$lt_save_ifs" |
| 8357 | ;; |
| 8358 | esac |
| 8359 | else |
| 8360 | enable_fast_install=yes |
| 8361 | fi |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | # This can be used to rebuild libtool when needed |
| 8374 | LIBTOOL_DEPS="$ltmain" |
| 8375 | |
| 8376 | # Always use our own libtool. |
| 8377 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | test -z "$LN_S" && LN_S="ln -s" |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | if test -n "${ZSH_VERSION+set}" ; then |
| 8420 | setopt NO_GLOB_SUBST |
| 8421 | fi |
| 8422 | |
| 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8424 | $as_echo_n "checking for objdir... " >&6; } |
| 8425 | if ${lt_cv_objdir+:} false; then : |
| 8426 | $as_echo_n "(cached) " >&6 |
| 8427 | else |
| 8428 | rm -f .libs 2>/dev/null |
| 8429 | mkdir .libs 2>/dev/null |
| 8430 | if test -d .libs; then |
| 8431 | lt_cv_objdir=.libs |
| 8432 | else |
| 8433 | # MS-DOS does not allow filenames that begin with a dot. |
| 8434 | lt_cv_objdir=_libs |
| 8435 | fi |
| 8436 | rmdir .libs 2>/dev/null |
| 8437 | fi |
| 8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8439 | $as_echo "$lt_cv_objdir" >&6; } |
| 8440 | objdir=$lt_cv_objdir |
| 8441 | |
| 8442 | |
| 8443 | |
| 8444 | |
| 8445 | |
| 8446 | cat >>confdefs.h <<_ACEOF |
| 8447 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8448 | _ACEOF |
| 8449 | |
| 8450 | |
| 8451 | |
| 8452 | |
| 8453 | case $host_os in |
| 8454 | aix3*) |
| 8455 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8456 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8457 | # vanish in a puff of smoke. |
| 8458 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8459 | COLLECT_NAMES= |
| 8460 | export COLLECT_NAMES |
| 8461 | fi |
| 8462 | ;; |
| 8463 | esac |
| 8464 | |
| 8465 | # Global variables: |
| 8466 | ofile=libtool |
| 8467 | can_build_shared=yes |
| 8468 | |
| 8469 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8470 | # which needs '.lib'). |
| 8471 | libext=a |
| 8472 | |
| 8473 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8474 | |
| 8475 | old_CC="$CC" |
| 8476 | old_CFLAGS="$CFLAGS" |
| 8477 | |
| 8478 | # Set sane defaults for various variables |
| 8479 | test -z "$CC" && CC=cc |
| 8480 | test -z "$LTCC" && LTCC=$CC |
| 8481 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8482 | test -z "$LD" && LD=ld |
| 8483 | test -z "$ac_objext" && ac_objext=o |
| 8484 | |
| 8485 | for cc_temp in $compiler""; do |
| 8486 | case $cc_temp in |
| 8487 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8488 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8489 | \-*) ;; |
| 8490 | *) break;; |
| 8491 | esac |
| 8492 | done |
| 8493 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8494 | |
| 8495 | |
| 8496 | # Only perform the check for file, if the check method requires it |
| 8497 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8498 | case $deplibs_check_method in |
| 8499 | file_magic*) |
| 8500 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8502 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8503 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8504 | $as_echo_n "(cached) " >&6 |
| 8505 | else |
| 8506 | case $MAGIC_CMD in |
| 8507 | [\\/*] | ?:[\\/]*) |
| 8508 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8509 | ;; |
| 8510 | *) |
| 8511 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8512 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8513 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8514 | for ac_dir in $ac_dummy; do |
| 8515 | IFS="$lt_save_ifs" |
| 8516 | test -z "$ac_dir" && ac_dir=. |
| 8517 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8518 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8519 | if test -n "$file_magic_test_file"; then |
| 8520 | case $deplibs_check_method in |
| 8521 | "file_magic "*) |
| 8522 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8523 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8524 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8525 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8526 | : |
| 8527 | else |
| 8528 | cat <<_LT_EOF 1>&2 |
| 8529 | |
| 8530 | *** Warning: the command libtool uses to detect shared libraries, |
| 8531 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8532 | *** The result is that libtool may fail to recognize shared libraries |
| 8533 | *** as such. This will affect the creation of libtool libraries that |
| 8534 | *** depend on shared libraries, but programs linked with such libtool |
| 8535 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8536 | *** may want to report the problem to your system manager and/or to |
| 8537 | *** [email protected] |
| 8538 | |
| 8539 | _LT_EOF |
| 8540 | fi ;; |
| 8541 | esac |
| 8542 | fi |
| 8543 | break |
| 8544 | fi |
| 8545 | done |
| 8546 | IFS="$lt_save_ifs" |
| 8547 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8548 | ;; |
| 8549 | esac |
| 8550 | fi |
| 8551 | |
| 8552 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8553 | if test -n "$MAGIC_CMD"; then |
| 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8555 | $as_echo "$MAGIC_CMD" >&6; } |
| 8556 | else |
| 8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8558 | $as_echo "no" >&6; } |
| 8559 | fi |
| 8560 | |
| 8561 | |
| 8562 | |
| 8563 | |
| 8564 | |
| 8565 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8566 | if test -n "$ac_tool_prefix"; then |
| 8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8568 | $as_echo_n "checking for file... " >&6; } |
| 8569 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8570 | $as_echo_n "(cached) " >&6 |
| 8571 | else |
| 8572 | case $MAGIC_CMD in |
| 8573 | [\\/*] | ?:[\\/]*) |
| 8574 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8575 | ;; |
| 8576 | *) |
| 8577 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8578 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8579 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8580 | for ac_dir in $ac_dummy; do |
| 8581 | IFS="$lt_save_ifs" |
| 8582 | test -z "$ac_dir" && ac_dir=. |
| 8583 | if test -f $ac_dir/file; then |
| 8584 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8585 | if test -n "$file_magic_test_file"; then |
| 8586 | case $deplibs_check_method in |
| 8587 | "file_magic "*) |
| 8588 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8589 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8590 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8591 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8592 | : |
| 8593 | else |
| 8594 | cat <<_LT_EOF 1>&2 |
| 8595 | |
| 8596 | *** Warning: the command libtool uses to detect shared libraries, |
| 8597 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8598 | *** The result is that libtool may fail to recognize shared libraries |
| 8599 | *** as such. This will affect the creation of libtool libraries that |
| 8600 | *** depend on shared libraries, but programs linked with such libtool |
| 8601 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8602 | *** may want to report the problem to your system manager and/or to |
| 8603 | *** [email protected] |
| 8604 | |
| 8605 | _LT_EOF |
| 8606 | fi ;; |
| 8607 | esac |
| 8608 | fi |
| 8609 | break |
| 8610 | fi |
| 8611 | done |
| 8612 | IFS="$lt_save_ifs" |
| 8613 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8614 | ;; |
| 8615 | esac |
| 8616 | fi |
| 8617 | |
| 8618 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8619 | if test -n "$MAGIC_CMD"; then |
| 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8621 | $as_echo "$MAGIC_CMD" >&6; } |
| 8622 | else |
| 8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8624 | $as_echo "no" >&6; } |
| 8625 | fi |
| 8626 | |
| 8627 | |
| 8628 | else |
| 8629 | MAGIC_CMD=: |
| 8630 | fi |
| 8631 | fi |
| 8632 | |
| 8633 | fi |
| 8634 | ;; |
| 8635 | esac |
| 8636 | |
| 8637 | # Use C for the default configuration in the libtool script |
| 8638 | |
| 8639 | lt_save_CC="$CC" |
| 8640 | ac_ext=c |
| 8641 | ac_cpp='$CPP $CPPFLAGS' |
| 8642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8645 | |
| 8646 | |
| 8647 | # Source file extension for C test sources. |
| 8648 | ac_ext=c |
| 8649 | |
| 8650 | # Object file extension for compiled C test sources. |
| 8651 | objext=o |
| 8652 | objext=$objext |
| 8653 | |
| 8654 | # Code to be used in simple compile tests |
| 8655 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8656 | |
| 8657 | # Code to be used in simple link tests |
| 8658 | lt_simple_link_test_code='int main(){return(0);}' |
| 8659 | |
| 8660 | |
| 8661 | |
| 8662 | |
| 8663 | |
| 8664 | |
| 8665 | |
| 8666 | # If no C compiler was specified, use CC. |
| 8667 | LTCC=${LTCC-"$CC"} |
| 8668 | |
| 8669 | # If no C compiler flags were specified, use CFLAGS. |
| 8670 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8671 | |
| 8672 | # Allow CC to be a program name with arguments. |
| 8673 | compiler=$CC |
| 8674 | |
| 8675 | # Save the default compiler, since it gets overwritten when the other |
| 8676 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8677 | compiler_DEFAULT=$CC |
| 8678 | |
| 8679 | # save warnings/boilerplate of simple test code |
| 8680 | ac_outfile=conftest.$ac_objext |
| 8681 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8682 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8683 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8684 | $RM conftest* |
| 8685 | |
| 8686 | ac_outfile=conftest.$ac_objext |
| 8687 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8688 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8689 | _lt_linker_boilerplate=`cat conftest.err` |
| 8690 | $RM -r conftest* |
| 8691 | |
| 8692 | |
| 8693 | ## CAVEAT EMPTOR: |
| 8694 | ## There is no encapsulation within the following macros, do not change |
| 8695 | ## the running order or otherwise move them around unless you know exactly |
| 8696 | ## what you are doing... |
| 8697 | if test -n "$compiler"; then |
| 8698 | |
| 8699 | lt_prog_compiler_no_builtin_flag= |
| 8700 | |
| 8701 | if test "$GCC" = yes; then |
| 8702 | case $cc_basename in |
| 8703 | nvcc*) |
| 8704 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8705 | *) |
| 8706 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8707 | esac |
| 8708 | |
| 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8710 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8711 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8712 | $as_echo_n "(cached) " >&6 |
| 8713 | else |
| 8714 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8715 | ac_outfile=conftest.$ac_objext |
| 8716 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8717 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8718 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8719 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8720 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8721 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8722 | # The option is referenced via a variable to avoid confusing sed. |
| 8723 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8724 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8725 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8726 | -e 's:$: $lt_compiler_flag:'` |
| 8727 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8728 | (eval "$lt_compile" 2>conftest.err) |
| 8729 | ac_status=$? |
| 8730 | cat conftest.err >&5 |
| 8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8732 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8733 | # The compiler can only warn and ignore the option if not recognized |
| 8734 | # So say no if there are warnings other than the usual output. |
| 8735 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8736 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8737 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8738 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8739 | fi |
| 8740 | fi |
| 8741 | $RM conftest* |
| 8742 | |
| 8743 | fi |
| 8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8745 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8746 | |
| 8747 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8748 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8749 | else |
| 8750 | : |
| 8751 | fi |
| 8752 | |
| 8753 | fi |
| 8754 | |
| 8755 | |
| 8756 | |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | lt_prog_compiler_wl= |
| 8761 | lt_prog_compiler_pic= |
| 8762 | lt_prog_compiler_static= |
| 8763 | |
| 8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8765 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8766 | |
| 8767 | if test "$GCC" = yes; then |
| 8768 | lt_prog_compiler_wl='-Wl,' |
| 8769 | lt_prog_compiler_static='-static' |
| 8770 | |
| 8771 | case $host_os in |
| 8772 | aix*) |
| 8773 | # All AIX code is PIC. |
| 8774 | if test "$host_cpu" = ia64; then |
| 8775 | # AIX 5 now supports IA64 processor |
| 8776 | lt_prog_compiler_static='-Bstatic' |
| 8777 | fi |
| 8778 | lt_prog_compiler_pic='-fPIC' |
| 8779 | ;; |
| 8780 | |
| 8781 | amigaos*) |
| 8782 | case $host_cpu in |
| 8783 | powerpc) |
| 8784 | # see comment about AmigaOS4 .so support |
| 8785 | lt_prog_compiler_pic='-fPIC' |
| 8786 | ;; |
| 8787 | m68k) |
| 8788 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8789 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8790 | # like `-m68040'. |
| 8791 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8792 | ;; |
| 8793 | esac |
| 8794 | ;; |
| 8795 | |
| 8796 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8797 | # PIC is the default for these OSes. |
| 8798 | ;; |
| 8799 | |
| 8800 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8801 | # This hack is so that the source file can tell whether it is being |
| 8802 | # built for inclusion in a dll (and should export symbols for example). |
| 8803 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8804 | # (--disable-auto-import) libraries |
| 8805 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8806 | ;; |
| 8807 | |
| 8808 | darwin* | rhapsody*) |
| 8809 | # PIC is the default on this platform |
| 8810 | # Common symbols not allowed in MH_DYLIB files |
| 8811 | lt_prog_compiler_pic='-fno-common' |
| 8812 | ;; |
| 8813 | |
| 8814 | haiku*) |
| 8815 | # PIC is the default for Haiku. |
| 8816 | # The "-static" flag exists, but is broken. |
| 8817 | lt_prog_compiler_static= |
| 8818 | ;; |
| 8819 | |
| 8820 | hpux*) |
| 8821 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8822 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8823 | # sets the default TLS model and affects inlining. |
| 8824 | case $host_cpu in |
| 8825 | hppa*64*) |
| 8826 | # +Z the default |
| 8827 | ;; |
| 8828 | *) |
| 8829 | lt_prog_compiler_pic='-fPIC' |
| 8830 | ;; |
| 8831 | esac |
| 8832 | ;; |
| 8833 | |
| 8834 | interix[3-9]*) |
| 8835 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8836 | # Instead, we relocate shared libraries at runtime. |
| 8837 | ;; |
| 8838 | |
| 8839 | msdosdjgpp*) |
| 8840 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8841 | # on systems that don't support them. |
| 8842 | lt_prog_compiler_can_build_shared=no |
| 8843 | enable_shared=no |
| 8844 | ;; |
| 8845 | |
| 8846 | *nto* | *qnx*) |
| 8847 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8848 | # it will coredump. |
| 8849 | lt_prog_compiler_pic='-fPIC -shared' |
| 8850 | ;; |
| 8851 | |
| 8852 | sysv4*MP*) |
| 8853 | if test -d /usr/nec; then |
| 8854 | lt_prog_compiler_pic=-Kconform_pic |
| 8855 | fi |
| 8856 | ;; |
| 8857 | |
| 8858 | *) |
| 8859 | lt_prog_compiler_pic='-fPIC' |
| 8860 | ;; |
| 8861 | esac |
| 8862 | |
| 8863 | case $cc_basename in |
| 8864 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8865 | lt_prog_compiler_wl='-Xlinker ' |
| 8866 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 8867 | ;; |
| 8868 | esac |
| 8869 | else |
| 8870 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8871 | case $host_os in |
| 8872 | aix*) |
| 8873 | lt_prog_compiler_wl='-Wl,' |
| 8874 | if test "$host_cpu" = ia64; then |
| 8875 | # AIX 5 now supports IA64 processor |
| 8876 | lt_prog_compiler_static='-Bstatic' |
| 8877 | else |
| 8878 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8879 | fi |
| 8880 | ;; |
| 8881 | |
| 8882 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8883 | # This hack is so that the source file can tell whether it is being |
| 8884 | # built for inclusion in a dll (and should export symbols for example). |
| 8885 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8886 | ;; |
| 8887 | |
| 8888 | hpux9* | hpux10* | hpux11*) |
| 8889 | lt_prog_compiler_wl='-Wl,' |
| 8890 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8891 | # not for PA HP-UX. |
| 8892 | case $host_cpu in |
| 8893 | hppa*64*|ia64*) |
| 8894 | # +Z the default |
| 8895 | ;; |
| 8896 | *) |
| 8897 | lt_prog_compiler_pic='+Z' |
| 8898 | ;; |
| 8899 | esac |
| 8900 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8901 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8902 | ;; |
| 8903 | |
| 8904 | irix5* | irix6* | nonstopux*) |
| 8905 | lt_prog_compiler_wl='-Wl,' |
| 8906 | # PIC (with -KPIC) is the default. |
| 8907 | lt_prog_compiler_static='-non_shared' |
| 8908 | ;; |
| 8909 | |
| 8910 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8911 | case $cc_basename in |
| 8912 | # old Intel for x86_64 which still supported -KPIC. |
| 8913 | ecc*) |
| 8914 | lt_prog_compiler_wl='-Wl,' |
| 8915 | lt_prog_compiler_pic='-KPIC' |
| 8916 | lt_prog_compiler_static='-static' |
| 8917 | ;; |
| 8918 | # icc used to be incompatible with GCC. |
| 8919 | # ICC 10 doesn't accept -KPIC any more. |
| 8920 | icc* | ifort*) |
| 8921 | lt_prog_compiler_wl='-Wl,' |
| 8922 | lt_prog_compiler_pic='-fPIC' |
| 8923 | lt_prog_compiler_static='-static' |
| 8924 | ;; |
| 8925 | # Lahey Fortran 8.1. |
| 8926 | lf95*) |
| 8927 | lt_prog_compiler_wl='-Wl,' |
| 8928 | lt_prog_compiler_pic='--shared' |
| 8929 | lt_prog_compiler_static='--static' |
| 8930 | ;; |
| 8931 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8932 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8933 | # which looks to be a dead project) |
| 8934 | lt_prog_compiler_wl='-Wl,' |
| 8935 | lt_prog_compiler_pic='-fpic' |
| 8936 | lt_prog_compiler_static='-Bstatic' |
| 8937 | ;; |
| 8938 | ccc*) |
| 8939 | lt_prog_compiler_wl='-Wl,' |
| 8940 | # All Alpha code is PIC. |
| 8941 | lt_prog_compiler_static='-non_shared' |
| 8942 | ;; |
| 8943 | xl* | bgxl* | bgf* | mpixl*) |
| 8944 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8945 | lt_prog_compiler_wl='-Wl,' |
| 8946 | lt_prog_compiler_pic='-qpic' |
| 8947 | lt_prog_compiler_static='-qstaticlink' |
| 8948 | ;; |
| 8949 | *) |
| 8950 | case `$CC -V 2>&1 | sed 5q` in |
| 8951 | *Sun\ F* | *Sun*Fortran*) |
| 8952 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8953 | lt_prog_compiler_pic='-KPIC' |
| 8954 | lt_prog_compiler_static='-Bstatic' |
| 8955 | lt_prog_compiler_wl='' |
| 8956 | ;; |
| 8957 | *Sun\ C*) |
| 8958 | # Sun C 5.9 |
| 8959 | lt_prog_compiler_pic='-KPIC' |
| 8960 | lt_prog_compiler_static='-Bstatic' |
| 8961 | lt_prog_compiler_wl='-Wl,' |
| 8962 | ;; |
| 8963 | esac |
| 8964 | ;; |
| 8965 | esac |
| 8966 | ;; |
| 8967 | |
| 8968 | newsos6) |
| 8969 | lt_prog_compiler_pic='-KPIC' |
| 8970 | lt_prog_compiler_static='-Bstatic' |
| 8971 | ;; |
| 8972 | |
| 8973 | *nto* | *qnx*) |
| 8974 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8975 | # it will coredump. |
| 8976 | lt_prog_compiler_pic='-fPIC -shared' |
| 8977 | ;; |
| 8978 | |
| 8979 | osf3* | osf4* | osf5*) |
| 8980 | lt_prog_compiler_wl='-Wl,' |
| 8981 | # All OSF/1 code is PIC. |
| 8982 | lt_prog_compiler_static='-non_shared' |
| 8983 | ;; |
| 8984 | |
| 8985 | rdos*) |
| 8986 | lt_prog_compiler_static='-non_shared' |
| 8987 | ;; |
| 8988 | |
| 8989 | solaris*) |
| 8990 | lt_prog_compiler_pic='-KPIC' |
| 8991 | lt_prog_compiler_static='-Bstatic' |
| 8992 | case $cc_basename in |
| 8993 | f77* | f90* | f95*) |
| 8994 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8995 | *) |
| 8996 | lt_prog_compiler_wl='-Wl,';; |
| 8997 | esac |
| 8998 | ;; |
| 8999 | |
| 9000 | sunos4*) |
| 9001 | lt_prog_compiler_wl='-Qoption ld ' |
| 9002 | lt_prog_compiler_pic='-PIC' |
| 9003 | lt_prog_compiler_static='-Bstatic' |
| 9004 | ;; |
| 9005 | |
| 9006 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 9007 | lt_prog_compiler_wl='-Wl,' |
| 9008 | lt_prog_compiler_pic='-KPIC' |
| 9009 | lt_prog_compiler_static='-Bstatic' |
| 9010 | ;; |
| 9011 | |
| 9012 | sysv4*MP*) |
| 9013 | if test -d /usr/nec ;then |
| 9014 | lt_prog_compiler_pic='-Kconform_pic' |
| 9015 | lt_prog_compiler_static='-Bstatic' |
| 9016 | fi |
| 9017 | ;; |
| 9018 | |
| 9019 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 9020 | lt_prog_compiler_wl='-Wl,' |
| 9021 | lt_prog_compiler_pic='-KPIC' |
| 9022 | lt_prog_compiler_static='-Bstatic' |
| 9023 | ;; |
| 9024 | |
| 9025 | unicos*) |
| 9026 | lt_prog_compiler_wl='-Wl,' |
| 9027 | lt_prog_compiler_can_build_shared=no |
| 9028 | ;; |
| 9029 | |
| 9030 | uts4*) |
| 9031 | lt_prog_compiler_pic='-pic' |
| 9032 | lt_prog_compiler_static='-Bstatic' |
| 9033 | ;; |
| 9034 | |
| 9035 | *) |
| 9036 | lt_prog_compiler_can_build_shared=no |
| 9037 | ;; |
| 9038 | esac |
| 9039 | fi |
| 9040 | |
| 9041 | case $host_os in |
| 9042 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 9043 | *djgpp*) |
| 9044 | lt_prog_compiler_pic= |
| 9045 | ;; |
| 9046 | *) |
| 9047 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 9048 | ;; |
| 9049 | esac |
| 9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 9051 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 9052 | |
| 9053 | |
| 9054 | |
| 9055 | |
| 9056 | |
| 9057 | |
| 9058 | # |
| 9059 | # Check to make sure the PIC flag actually works. |
| 9060 | # |
| 9061 | if test -n "$lt_prog_compiler_pic"; then |
| 9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 9063 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 9064 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 9065 | $as_echo_n "(cached) " >&6 |
| 9066 | else |
| 9067 | lt_cv_prog_compiler_pic_works=no |
| 9068 | ac_outfile=conftest.$ac_objext |
| 9069 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9070 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9071 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9072 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9073 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9074 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9075 | # The option is referenced via a variable to avoid confusing sed. |
| 9076 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9077 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9078 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9079 | -e 's:$: $lt_compiler_flag:'` |
| 9080 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9081 | (eval "$lt_compile" 2>conftest.err) |
| 9082 | ac_status=$? |
| 9083 | cat conftest.err >&5 |
| 9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9085 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9086 | # The compiler can only warn and ignore the option if not recognized |
| 9087 | # So say no if there are warnings other than the usual output. |
| 9088 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9089 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9090 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9091 | lt_cv_prog_compiler_pic_works=yes |
| 9092 | fi |
| 9093 | fi |
| 9094 | $RM conftest* |
| 9095 | |
| 9096 | fi |
| 9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 9098 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 9099 | |
| 9100 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 9101 | case $lt_prog_compiler_pic in |
| 9102 | "" | " "*) ;; |
| 9103 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9104 | esac |
| 9105 | else |
| 9106 | lt_prog_compiler_pic= |
| 9107 | lt_prog_compiler_can_build_shared=no |
| 9108 | fi |
| 9109 | |
| 9110 | fi |
| 9111 | |
| 9112 | |
| 9113 | |
| 9114 | |
| 9115 | |
| 9116 | |
| 9117 | # |
| 9118 | # Check to make sure the static flag actually works. |
| 9119 | # |
| 9120 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 9122 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 9123 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 9124 | $as_echo_n "(cached) " >&6 |
| 9125 | else |
| 9126 | lt_cv_prog_compiler_static_works=no |
| 9127 | save_LDFLAGS="$LDFLAGS" |
| 9128 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 9129 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9130 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9131 | # The linker can only warn and ignore the option if not recognized |
| 9132 | # So say no if there are warnings |
| 9133 | if test -s conftest.err; then |
| 9134 | # Append any errors to the config.log. |
| 9135 | cat conftest.err 1>&5 |
| 9136 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9137 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9138 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9139 | lt_cv_prog_compiler_static_works=yes |
| 9140 | fi |
| 9141 | else |
| 9142 | lt_cv_prog_compiler_static_works=yes |
| 9143 | fi |
| 9144 | fi |
| 9145 | $RM -r conftest* |
| 9146 | LDFLAGS="$save_LDFLAGS" |
| 9147 | |
| 9148 | fi |
| 9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 9150 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9151 | |
| 9152 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9153 | : |
| 9154 | else |
| 9155 | lt_prog_compiler_static= |
| 9156 | fi |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9165 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9166 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9167 | $as_echo_n "(cached) " >&6 |
| 9168 | else |
| 9169 | lt_cv_prog_compiler_c_o=no |
| 9170 | $RM -r conftest 2>/dev/null |
| 9171 | mkdir conftest |
| 9172 | cd conftest |
| 9173 | mkdir out |
| 9174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9175 | |
| 9176 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9177 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9178 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9179 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9180 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9181 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9182 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9183 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9184 | -e 's:$: $lt_compiler_flag:'` |
| 9185 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9186 | (eval "$lt_compile" 2>out/conftest.err) |
| 9187 | ac_status=$? |
| 9188 | cat out/conftest.err >&5 |
| 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9190 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9191 | then |
| 9192 | # The compiler can only warn and ignore the option if not recognized |
| 9193 | # So say no if there are warnings |
| 9194 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9195 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9196 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9197 | lt_cv_prog_compiler_c_o=yes |
| 9198 | fi |
| 9199 | fi |
| 9200 | chmod u+w . 2>&5 |
| 9201 | $RM conftest* |
| 9202 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9203 | # template instantiation |
| 9204 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9205 | $RM out/* && rmdir out |
| 9206 | cd .. |
| 9207 | $RM -r conftest |
| 9208 | $RM conftest* |
| 9209 | |
| 9210 | fi |
| 9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9212 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9220 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9221 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9222 | $as_echo_n "(cached) " >&6 |
| 9223 | else |
| 9224 | lt_cv_prog_compiler_c_o=no |
| 9225 | $RM -r conftest 2>/dev/null |
| 9226 | mkdir conftest |
| 9227 | cd conftest |
| 9228 | mkdir out |
| 9229 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9230 | |
| 9231 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9232 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9233 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9234 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9235 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9236 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9239 | -e 's:$: $lt_compiler_flag:'` |
| 9240 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9241 | (eval "$lt_compile" 2>out/conftest.err) |
| 9242 | ac_status=$? |
| 9243 | cat out/conftest.err >&5 |
| 9244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9245 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9246 | then |
| 9247 | # The compiler can only warn and ignore the option if not recognized |
| 9248 | # So say no if there are warnings |
| 9249 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9250 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9251 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9252 | lt_cv_prog_compiler_c_o=yes |
| 9253 | fi |
| 9254 | fi |
| 9255 | chmod u+w . 2>&5 |
| 9256 | $RM conftest* |
| 9257 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9258 | # template instantiation |
| 9259 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9260 | $RM out/* && rmdir out |
| 9261 | cd .. |
| 9262 | $RM -r conftest |
| 9263 | $RM conftest* |
| 9264 | |
| 9265 | fi |
| 9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9267 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | hard_links="nottested" |
| 9273 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9274 | # do not overwrite the value of need_locks provided by the user |
| 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9276 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9277 | hard_links=yes |
| 9278 | $RM conftest* |
| 9279 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9280 | touch conftest.a |
| 9281 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9282 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9284 | $as_echo "$hard_links" >&6; } |
| 9285 | if test "$hard_links" = no; then |
| 9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9287 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9288 | need_locks=warn |
| 9289 | fi |
| 9290 | else |
| 9291 | need_locks=no |
| 9292 | fi |
| 9293 | |
| 9294 | |
| 9295 | |
| 9296 | |
| 9297 | |
| 9298 | |
| 9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9300 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9301 | |
| 9302 | runpath_var= |
| 9303 | allow_undefined_flag= |
| 9304 | always_export_symbols=no |
| 9305 | archive_cmds= |
| 9306 | archive_expsym_cmds= |
| 9307 | compiler_needs_object=no |
| 9308 | enable_shared_with_static_runtimes=no |
| 9309 | export_dynamic_flag_spec= |
| 9310 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9311 | hardcode_automatic=no |
| 9312 | hardcode_direct=no |
| 9313 | hardcode_direct_absolute=no |
| 9314 | hardcode_libdir_flag_spec= |
| 9315 | hardcode_libdir_flag_spec_ld= |
| 9316 | hardcode_libdir_separator= |
| 9317 | hardcode_minus_L=no |
| 9318 | hardcode_shlibpath_var=unsupported |
| 9319 | inherit_rpath=no |
| 9320 | link_all_deplibs=unknown |
| 9321 | module_cmds= |
| 9322 | module_expsym_cmds= |
| 9323 | old_archive_from_new_cmds= |
| 9324 | old_archive_from_expsyms_cmds= |
| 9325 | thread_safe_flag_spec= |
| 9326 | whole_archive_flag_spec= |
| 9327 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9328 | # included in the symbol list |
| 9329 | include_expsyms= |
| 9330 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9331 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9332 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9333 | # as well as any symbol that contains `d'. |
| 9334 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9335 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9336 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9337 | # the symbol is explicitly referenced. Since portable code cannot |
| 9338 | # rely on this symbol name, it's probably fine to never include it in |
| 9339 | # preloaded symbol tables. |
| 9340 | # Exclude shared library initialization/finalization symbols. |
| 9341 | extract_expsyms_cmds= |
| 9342 | |
| 9343 | case $host_os in |
| 9344 | cygwin* | mingw* | pw32* | cegcc*) |
| 9345 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9346 | # When not using gcc, we currently assume that we are using |
| 9347 | # Microsoft Visual C++. |
| 9348 | if test "$GCC" != yes; then |
| 9349 | with_gnu_ld=no |
| 9350 | fi |
| 9351 | ;; |
| 9352 | interix*) |
| 9353 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9354 | with_gnu_ld=yes |
| 9355 | ;; |
| 9356 | openbsd*) |
| 9357 | with_gnu_ld=no |
| 9358 | ;; |
| 9359 | esac |
| 9360 | |
| 9361 | ld_shlibs=yes |
| 9362 | |
| 9363 | # On some targets, GNU ld is compatible enough with the native linker |
| 9364 | # that we're better off using the native interface for both. |
| 9365 | lt_use_gnu_ld_interface=no |
| 9366 | if test "$with_gnu_ld" = yes; then |
| 9367 | case $host_os in |
| 9368 | aix*) |
| 9369 | # The AIX port of GNU ld has always aspired to compatibility |
| 9370 | # with the native linker. However, as the warning in the GNU ld |
| 9371 | # block says, versions before 2.19.5* couldn't really create working |
| 9372 | # shared libraries, regardless of the interface used. |
| 9373 | case `$LD -v 2>&1` in |
| 9374 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9375 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9376 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9377 | *) |
| 9378 | lt_use_gnu_ld_interface=yes |
| 9379 | ;; |
| 9380 | esac |
| 9381 | ;; |
| 9382 | *) |
| 9383 | lt_use_gnu_ld_interface=yes |
| 9384 | ;; |
| 9385 | esac |
| 9386 | fi |
| 9387 | |
| 9388 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 9389 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9390 | wlarc='${wl}' |
| 9391 | |
| 9392 | # Set some defaults for GNU ld with shared library support. These |
| 9393 | # are reset later if shared libraries are not supported. Putting them |
| 9394 | # here allows them to be overridden if necessary. |
| 9395 | runpath_var=LD_RUN_PATH |
| 9396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9397 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9398 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9399 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9400 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9401 | else |
| 9402 | whole_archive_flag_spec= |
| 9403 | fi |
| 9404 | supports_anon_versioning=no |
| 9405 | case `$LD -v 2>&1` in |
| 9406 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9407 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9408 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9409 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9410 | *\ 2.11.*) ;; # other 2.11 versions |
| 9411 | *) supports_anon_versioning=yes ;; |
| 9412 | esac |
| 9413 | |
| 9414 | # See if GNU ld supports shared libraries. |
| 9415 | case $host_os in |
| 9416 | aix[3-9]*) |
| 9417 | # On AIX/PPC, the GNU linker is very broken |
| 9418 | if test "$host_cpu" != ia64; then |
| 9419 | ld_shlibs=no |
| 9420 | cat <<_LT_EOF 1>&2 |
| 9421 | |
| 9422 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9423 | *** to be unable to reliably create shared libraries on AIX. |
| 9424 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9425 | *** really care for shared libraries, you may want to install binutils |
| 9426 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9427 | *** You will then need to restart the configuration process. |
| 9428 | |
| 9429 | _LT_EOF |
| 9430 | fi |
| 9431 | ;; |
| 9432 | |
| 9433 | amigaos*) |
| 9434 | case $host_cpu in |
| 9435 | powerpc) |
| 9436 | # see comment about AmigaOS4 .so support |
| 9437 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9438 | archive_expsym_cmds='' |
| 9439 | ;; |
| 9440 | m68k) |
| 9441 | 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)' |
| 9442 | hardcode_libdir_flag_spec='-L$libdir' |
| 9443 | hardcode_minus_L=yes |
| 9444 | ;; |
| 9445 | esac |
| 9446 | ;; |
| 9447 | |
| 9448 | beos*) |
| 9449 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9450 | allow_undefined_flag=unsupported |
| 9451 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 9452 | # support --undefined. This deserves some investigation. FIXME |
| 9453 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9454 | else |
| 9455 | ld_shlibs=no |
| 9456 | fi |
| 9457 | ;; |
| 9458 | |
| 9459 | cygwin* | mingw* | pw32* | cegcc*) |
| 9460 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9461 | # as there is no search path for DLLs. |
| 9462 | hardcode_libdir_flag_spec='-L$libdir' |
| 9463 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9464 | allow_undefined_flag=unsupported |
| 9465 | always_export_symbols=no |
| 9466 | enable_shared_with_static_runtimes=yes |
| 9467 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9468 | |
| 9469 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9470 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9471 | # If the export-symbols file already is a .def file (1st line |
| 9472 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9473 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9474 | cp $export_symbols $output_objdir/$soname.def; |
| 9475 | else |
| 9476 | echo EXPORTS > $output_objdir/$soname.def; |
| 9477 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9478 | fi~ |
| 9479 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9480 | else |
| 9481 | ld_shlibs=no |
| 9482 | fi |
| 9483 | ;; |
| 9484 | |
| 9485 | haiku*) |
| 9486 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9487 | link_all_deplibs=yes |
| 9488 | ;; |
| 9489 | |
| 9490 | interix[3-9]*) |
| 9491 | hardcode_direct=no |
| 9492 | hardcode_shlibpath_var=no |
| 9493 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9494 | export_dynamic_flag_spec='${wl}-E' |
| 9495 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9496 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9497 | # default) and relocated if they conflict, which is a slow very memory |
| 9498 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9499 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9500 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9501 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9502 | 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' |
| 9503 | ;; |
| 9504 | |
| 9505 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
| 9506 | tmp_diet=no |
| 9507 | if test "$host_os" = linux-dietlibc; then |
| 9508 | case $cc_basename in |
| 9509 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9510 | esac |
| 9511 | fi |
| 9512 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9513 | && test "$tmp_diet" = no |
| 9514 | then |
| 9515 | tmp_addflag=' $pic_flag' |
| 9516 | tmp_sharedflag='-shared' |
| 9517 | case $cc_basename,$host_cpu in |
| 9518 | pgcc*) # Portland Group C compiler |
| 9519 | 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' |
| 9520 | tmp_addflag=' $pic_flag' |
| 9521 | ;; |
| 9522 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9523 | # Portland Group f77 and f90 compilers |
| 9524 | 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' |
| 9525 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9526 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9527 | tmp_addflag=' -i_dynamic' ;; |
| 9528 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9529 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9530 | ifc* | ifort*) # Intel Fortran compiler |
| 9531 | tmp_addflag=' -nofor_main' ;; |
| 9532 | lf95*) # Lahey Fortran 8.1 |
| 9533 | whole_archive_flag_spec= |
| 9534 | tmp_sharedflag='--shared' ;; |
| 9535 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9536 | tmp_sharedflag='-qmkshrobj' |
| 9537 | tmp_addflag= ;; |
| 9538 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9539 | 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' |
| 9540 | compiler_needs_object=yes |
| 9541 | ;; |
| 9542 | esac |
| 9543 | case `$CC -V 2>&1 | sed 5q` in |
| 9544 | *Sun\ C*) # Sun C 5.9 |
| 9545 | 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' |
| 9546 | compiler_needs_object=yes |
| 9547 | tmp_sharedflag='-G' ;; |
| 9548 | *Sun\ F*) # Sun Fortran 8.3 |
| 9549 | tmp_sharedflag='-G' ;; |
| 9550 | esac |
| 9551 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9552 | |
| 9553 | if test "x$supports_anon_versioning" = xyes; then |
| 9554 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9555 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9556 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9557 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9558 | fi |
| 9559 | |
| 9560 | case $cc_basename in |
| 9561 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9562 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9563 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9564 | hardcode_libdir_flag_spec= |
| 9565 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9566 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9567 | if test "x$supports_anon_versioning" = xyes; then |
| 9568 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9569 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9570 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9571 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9572 | fi |
| 9573 | ;; |
| 9574 | esac |
| 9575 | else |
| 9576 | ld_shlibs=no |
| 9577 | fi |
| 9578 | ;; |
| 9579 | |
| 9580 | netbsd*) |
| 9581 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9582 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9583 | wlarc= |
| 9584 | else |
| 9585 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9586 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9587 | fi |
| 9588 | ;; |
| 9589 | |
| 9590 | solaris*) |
| 9591 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9592 | ld_shlibs=no |
| 9593 | cat <<_LT_EOF 1>&2 |
| 9594 | |
| 9595 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9596 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9597 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9598 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9599 | *** your PATH or compiler configuration so that the native linker is |
| 9600 | *** used, and then restart. |
| 9601 | |
| 9602 | _LT_EOF |
| 9603 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9604 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9605 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9606 | else |
| 9607 | ld_shlibs=no |
| 9608 | fi |
| 9609 | ;; |
| 9610 | |
| 9611 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9612 | case `$LD -v 2>&1` in |
| 9613 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9614 | ld_shlibs=no |
| 9615 | cat <<_LT_EOF 1>&2 |
| 9616 | |
| 9617 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9618 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9619 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9620 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9621 | *** your PATH or compiler configuration so that the native linker is |
| 9622 | *** used, and then restart. |
| 9623 | |
| 9624 | _LT_EOF |
| 9625 | ;; |
| 9626 | *) |
| 9627 | # For security reasons, it is highly recommended that you always |
| 9628 | # use absolute paths for naming shared libraries, and exclude the |
| 9629 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9630 | # requires that you compile everything twice, which is a pain. |
| 9631 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9632 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9633 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9634 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9635 | else |
| 9636 | ld_shlibs=no |
| 9637 | fi |
| 9638 | ;; |
| 9639 | esac |
| 9640 | ;; |
| 9641 | |
| 9642 | sunos4*) |
| 9643 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9644 | wlarc= |
| 9645 | hardcode_direct=yes |
| 9646 | hardcode_shlibpath_var=no |
| 9647 | ;; |
| 9648 | |
| 9649 | *) |
| 9650 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9651 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9652 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9653 | else |
| 9654 | ld_shlibs=no |
| 9655 | fi |
| 9656 | ;; |
| 9657 | esac |
| 9658 | |
| 9659 | if test "$ld_shlibs" = no; then |
| 9660 | runpath_var= |
| 9661 | hardcode_libdir_flag_spec= |
| 9662 | export_dynamic_flag_spec= |
| 9663 | whole_archive_flag_spec= |
| 9664 | fi |
| 9665 | else |
| 9666 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9667 | case $host_os in |
| 9668 | aix3*) |
| 9669 | allow_undefined_flag=unsupported |
| 9670 | always_export_symbols=yes |
| 9671 | 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' |
| 9672 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9673 | # are no directories specified by -L. |
| 9674 | hardcode_minus_L=yes |
| 9675 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9676 | # Neither direct hardcoding nor static linking is supported with a |
| 9677 | # broken collect2. |
| 9678 | hardcode_direct=unsupported |
| 9679 | fi |
| 9680 | ;; |
| 9681 | |
| 9682 | aix[4-9]*) |
| 9683 | if test "$host_cpu" = ia64; then |
| 9684 | # On IA64, the linker does run time linking by default, so we don't |
| 9685 | # have to do anything special. |
| 9686 | aix_use_runtimelinking=no |
| 9687 | exp_sym_flag='-Bexport' |
| 9688 | no_entry_flag="" |
| 9689 | else |
| 9690 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9691 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9692 | # Also, AIX nm treats weak defined symbols like other global |
| 9693 | # defined symbols, whereas GNU nm marks them as "W". |
| 9694 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9695 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9696 | else |
| 9697 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9698 | fi |
| 9699 | aix_use_runtimelinking=no |
| 9700 | |
| 9701 | # Test if we are trying to use run time linking or normal |
| 9702 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9703 | # need to do runtime linking. |
| 9704 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9705 | for ld_flag in $LDFLAGS; do |
| 9706 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9707 | aix_use_runtimelinking=yes |
| 9708 | break |
| 9709 | fi |
| 9710 | done |
| 9711 | ;; |
| 9712 | esac |
| 9713 | |
| 9714 | exp_sym_flag='-bexport' |
| 9715 | no_entry_flag='-bnoentry' |
| 9716 | fi |
| 9717 | |
| 9718 | # When large executables or shared objects are built, AIX ld can |
| 9719 | # have problems creating the table of contents. If linking a library |
| 9720 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9721 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9722 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9723 | |
| 9724 | archive_cmds='' |
| 9725 | hardcode_direct=yes |
| 9726 | hardcode_direct_absolute=yes |
| 9727 | hardcode_libdir_separator=':' |
| 9728 | link_all_deplibs=yes |
| 9729 | file_list_spec='${wl}-f,' |
| 9730 | |
| 9731 | if test "$GCC" = yes; then |
| 9732 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9733 | # We only want to do this on AIX 4.2 and lower, the check |
| 9734 | # below for broken collect2 doesn't work under 4.3+ |
| 9735 | collect2name=`${CC} -print-prog-name=collect2` |
| 9736 | if test -f "$collect2name" && |
| 9737 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9738 | then |
| 9739 | # We have reworked collect2 |
| 9740 | : |
| 9741 | else |
| 9742 | # We have old collect2 |
| 9743 | hardcode_direct=unsupported |
| 9744 | # It fails to find uninstalled libraries when the uninstalled |
| 9745 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9746 | # to unsupported forces relinking |
| 9747 | hardcode_minus_L=yes |
| 9748 | hardcode_libdir_flag_spec='-L$libdir' |
| 9749 | hardcode_libdir_separator= |
| 9750 | fi |
| 9751 | ;; |
| 9752 | esac |
| 9753 | shared_flag='-shared' |
| 9754 | if test "$aix_use_runtimelinking" = yes; then |
| 9755 | shared_flag="$shared_flag "'${wl}-G' |
| 9756 | fi |
| 9757 | else |
| 9758 | # not using gcc |
| 9759 | if test "$host_cpu" = ia64; then |
| 9760 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9761 | # chokes on -Wl,-G. The following line is correct: |
| 9762 | shared_flag='-G' |
| 9763 | else |
| 9764 | if test "$aix_use_runtimelinking" = yes; then |
| 9765 | shared_flag='${wl}-G' |
| 9766 | else |
| 9767 | shared_flag='${wl}-bM:SRE' |
| 9768 | fi |
| 9769 | fi |
| 9770 | fi |
| 9771 | |
| 9772 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9773 | # It seems that -bexpall does not export symbols beginning with |
| 9774 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9775 | always_export_symbols=yes |
| 9776 | if test "$aix_use_runtimelinking" = yes; then |
| 9777 | # Warning - without using the other runtime loading flags (-brtl), |
| 9778 | # -berok will link without error, but may produce a broken library. |
| 9779 | allow_undefined_flag='-berok' |
| 9780 | # Determine the default libpath from the value encoded in an |
| 9781 | # empty executable. |
| 9782 | if test x$gcc_no_link = xyes; then |
| 9783 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 9784 | fi |
| 9785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9786 | /* end confdefs.h. */ |
| 9787 | |
| 9788 | int |
| 9789 | main () |
| 9790 | { |
| 9791 | |
| 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
| 9795 | _ACEOF |
| 9796 | if ac_fn_c_try_link "$LINENO"; then : |
| 9797 | |
| 9798 | lt_aix_libpath_sed=' |
| 9799 | /Import File Strings/,/^$/ { |
| 9800 | /^0/ { |
| 9801 | s/^0 *\(.*\)$/\1/ |
| 9802 | p |
| 9803 | } |
| 9804 | }' |
| 9805 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9806 | # Check for a 64-bit object if we didn't find anything. |
| 9807 | if test -z "$aix_libpath"; then |
| 9808 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9809 | fi |
| 9810 | fi |
| 9811 | rm -f core conftest.err conftest.$ac_objext \ |
| 9812 | conftest$ac_exeext conftest.$ac_ext |
| 9813 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9814 | |
| 9815 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9816 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9817 | else |
| 9818 | if test "$host_cpu" = ia64; then |
| 9819 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9820 | allow_undefined_flag="-z nodefs" |
| 9821 | 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" |
| 9822 | else |
| 9823 | # Determine the default libpath from the value encoded in an |
| 9824 | # empty executable. |
| 9825 | if test x$gcc_no_link = xyes; then |
| 9826 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 9827 | fi |
| 9828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9829 | /* end confdefs.h. */ |
| 9830 | |
| 9831 | int |
| 9832 | main () |
| 9833 | { |
| 9834 | |
| 9835 | ; |
| 9836 | return 0; |
| 9837 | } |
| 9838 | _ACEOF |
| 9839 | if ac_fn_c_try_link "$LINENO"; then : |
| 9840 | |
| 9841 | lt_aix_libpath_sed=' |
| 9842 | /Import File Strings/,/^$/ { |
| 9843 | /^0/ { |
| 9844 | s/^0 *\(.*\)$/\1/ |
| 9845 | p |
| 9846 | } |
| 9847 | }' |
| 9848 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9849 | # Check for a 64-bit object if we didn't find anything. |
| 9850 | if test -z "$aix_libpath"; then |
| 9851 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9852 | fi |
| 9853 | fi |
| 9854 | rm -f core conftest.err conftest.$ac_objext \ |
| 9855 | conftest$ac_exeext conftest.$ac_ext |
| 9856 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9857 | |
| 9858 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9859 | # Warning - without using the other run time loading flags, |
| 9860 | # -berok will link without error, but may produce a broken library. |
| 9861 | no_undefined_flag=' ${wl}-bernotok' |
| 9862 | allow_undefined_flag=' ${wl}-berok' |
| 9863 | if test "$with_gnu_ld" = yes; then |
| 9864 | # We only use this code for GNU lds that support --whole-archive. |
| 9865 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9866 | else |
| 9867 | # Exported symbols can be pulled into shared objects from archives |
| 9868 | whole_archive_flag_spec='$convenience' |
| 9869 | fi |
| 9870 | archive_cmds_need_lc=yes |
| 9871 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9872 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9873 | fi |
| 9874 | fi |
| 9875 | ;; |
| 9876 | |
| 9877 | amigaos*) |
| 9878 | case $host_cpu in |
| 9879 | powerpc) |
| 9880 | # see comment about AmigaOS4 .so support |
| 9881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9882 | archive_expsym_cmds='' |
| 9883 | ;; |
| 9884 | m68k) |
| 9885 | 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)' |
| 9886 | hardcode_libdir_flag_spec='-L$libdir' |
| 9887 | hardcode_minus_L=yes |
| 9888 | ;; |
| 9889 | esac |
| 9890 | ;; |
| 9891 | |
| 9892 | bsdi[45]*) |
| 9893 | export_dynamic_flag_spec=-rdynamic |
| 9894 | ;; |
| 9895 | |
| 9896 | cygwin* | mingw* | pw32* | cegcc*) |
| 9897 | # When not using gcc, we currently assume that we are using |
| 9898 | # Microsoft Visual C++. |
| 9899 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9900 | # no search path for DLLs. |
| 9901 | hardcode_libdir_flag_spec=' ' |
| 9902 | allow_undefined_flag=unsupported |
| 9903 | # Tell ltmain to make .lib files, not .a files. |
| 9904 | libext=lib |
| 9905 | # Tell ltmain to make .dll files, not .so files. |
| 9906 | shrext_cmds=".dll" |
| 9907 | # FIXME: Setting linknames here is a bad hack. |
| 9908 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9909 | # The linker will automatically build a .lib file if we build a DLL. |
| 9910 | old_archive_from_new_cmds='true' |
| 9911 | # FIXME: Should let the user specify the lib program. |
| 9912 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9913 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9914 | enable_shared_with_static_runtimes=yes |
| 9915 | ;; |
| 9916 | |
| 9917 | darwin* | rhapsody*) |
| 9918 | |
| 9919 | |
| 9920 | |
| 9921 | # Publish an arg to allow the user to select that Darwin host (and target) |
| 9922 | # libraries should be given install-names like @rpath/libfoo.dylib. This |
| 9923 | # requires that the user of the library then adds an 'rpath' to the DSO that |
| 9924 | # needs access. |
| 9925 | # NOTE: there are defaults below, for systems that support rpaths. The person |
| 9926 | # configuring can override the defaults for any system version that supports |
| 9927 | # them - they are, however, forced off for system versions without support. |
| 9928 | # Check whether --enable-darwin-at-rpath was given. |
| 9929 | if test "${enable_darwin_at_rpath+set}" = set; then : |
| 9930 | enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then |
| 9931 | # This is not supported before macOS 10.5 / Darwin9. |
| 9932 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in |
| 9933 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) |
| 9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 |
| 9935 | $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} |
| 9936 | enable_darwin_at_rpath=no |
| 9937 | ;; |
| 9938 | esac |
| 9939 | fi |
| 9940 | else |
| 9941 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in |
| 9942 | # As above, before 10.5 / Darwin9 this does not work. |
| 9943 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) |
| 9944 | enable_darwin_at_rpath=no |
| 9945 | ;; |
| 9946 | |
| 9947 | # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use |
| 9948 | # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key |
| 9949 | # system executables (e.g. /bin/sh). Force rpaths on for these systems. |
| 9950 | UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) |
| 9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 |
| 9952 | $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} |
| 9953 | enable_darwin_at_rpath=yes |
| 9954 | ;; |
| 9955 | # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can |
| 9956 | # work with either DYLD_LIBRARY_PATH or embedded rpaths. |
| 9957 | |
| 9958 | esac |
| 9959 | |
| 9960 | fi |
| 9961 | |
| 9962 | |
| 9963 | archive_cmds_need_lc=no |
| 9964 | hardcode_direct=no |
| 9965 | hardcode_automatic=yes |
| 9966 | hardcode_shlibpath_var=unsupported |
| 9967 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9968 | 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\"`' |
| 9969 | else |
| 9970 | whole_archive_flag_spec='' |
| 9971 | fi |
| 9972 | link_all_deplibs=yes |
| 9973 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9974 | case $cc_basename in |
| 9975 | ifort*) _lt_dar_can_shared=yes ;; |
| 9976 | *) _lt_dar_can_shared=$GCC ;; |
| 9977 | esac |
| 9978 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9979 | output_verbose_link_cmd=func_echo_all |
| 9980 | _lt_install_name='\$rpath/\$soname' |
| 9981 | if test "x$enable_darwin_at_rpath" = "xyes"; then |
| 9982 | _lt_install_name='@rpath/\$soname' |
| 9983 | fi |
| 9984 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" |
| 9985 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9986 | 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9987 | 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}" |
| 9988 | |
| 9989 | else |
| 9990 | ld_shlibs=no |
| 9991 | fi |
| 9992 | |
| 9993 | ;; |
| 9994 | |
| 9995 | dgux*) |
| 9996 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9997 | hardcode_libdir_flag_spec='-L$libdir' |
| 9998 | hardcode_shlibpath_var=no |
| 9999 | ;; |
| 10000 | |
| 10001 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 10002 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 10003 | # does not break anything, and helps significantly (at the cost of a little |
| 10004 | # extra space). |
| 10005 | freebsd2.2*) |
| 10006 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 10007 | hardcode_libdir_flag_spec='-R$libdir' |
| 10008 | hardcode_direct=yes |
| 10009 | hardcode_shlibpath_var=no |
| 10010 | ;; |
| 10011 | |
| 10012 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 10013 | freebsd2.*) |
| 10014 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10015 | hardcode_direct=yes |
| 10016 | hardcode_minus_L=yes |
| 10017 | hardcode_shlibpath_var=no |
| 10018 | ;; |
| 10019 | |
| 10020 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 10021 | freebsd* | dragonfly*) |
| 10022 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 10023 | hardcode_libdir_flag_spec='-R$libdir' |
| 10024 | hardcode_direct=yes |
| 10025 | hardcode_shlibpath_var=no |
| 10026 | ;; |
| 10027 | |
| 10028 | hpux9*) |
| 10029 | if test "$GCC" = yes; then |
| 10030 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10031 | else |
| 10032 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10033 | fi |
| 10034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10035 | hardcode_libdir_separator=: |
| 10036 | hardcode_direct=yes |
| 10037 | |
| 10038 | # hardcode_minus_L: Not really in the search PATH, |
| 10039 | # but as the default location of the library. |
| 10040 | hardcode_minus_L=yes |
| 10041 | export_dynamic_flag_spec='${wl}-E' |
| 10042 | ;; |
| 10043 | |
| 10044 | hpux10*) |
| 10045 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10046 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10047 | else |
| 10048 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10049 | fi |
| 10050 | if test "$with_gnu_ld" = no; then |
| 10051 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10052 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 10053 | hardcode_libdir_separator=: |
| 10054 | hardcode_direct=yes |
| 10055 | hardcode_direct_absolute=yes |
| 10056 | export_dynamic_flag_spec='${wl}-E' |
| 10057 | # hardcode_minus_L: Not really in the search PATH, |
| 10058 | # but as the default location of the library. |
| 10059 | hardcode_minus_L=yes |
| 10060 | fi |
| 10061 | ;; |
| 10062 | |
| 10063 | hpux11*) |
| 10064 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10065 | case $host_cpu in |
| 10066 | hppa*64*) |
| 10067 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10068 | ;; |
| 10069 | ia64*) |
| 10070 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10071 | ;; |
| 10072 | *) |
| 10073 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10074 | ;; |
| 10075 | esac |
| 10076 | else |
| 10077 | case $host_cpu in |
| 10078 | hppa*64*) |
| 10079 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10080 | ;; |
| 10081 | ia64*) |
| 10082 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10083 | ;; |
| 10084 | *) |
| 10085 | |
| 10086 | # Older versions of the 11.00 compiler do not understand -b yet |
| 10087 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 10089 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 10090 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 10091 | $as_echo_n "(cached) " >&6 |
| 10092 | else |
| 10093 | lt_cv_prog_compiler__b=no |
| 10094 | save_LDFLAGS="$LDFLAGS" |
| 10095 | LDFLAGS="$LDFLAGS -b" |
| 10096 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10097 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10098 | # The linker can only warn and ignore the option if not recognized |
| 10099 | # So say no if there are warnings |
| 10100 | if test -s conftest.err; then |
| 10101 | # Append any errors to the config.log. |
| 10102 | cat conftest.err 1>&5 |
| 10103 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10104 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10105 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10106 | lt_cv_prog_compiler__b=yes |
| 10107 | fi |
| 10108 | else |
| 10109 | lt_cv_prog_compiler__b=yes |
| 10110 | fi |
| 10111 | fi |
| 10112 | $RM -r conftest* |
| 10113 | LDFLAGS="$save_LDFLAGS" |
| 10114 | |
| 10115 | fi |
| 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 10117 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 10118 | |
| 10119 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 10120 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10121 | else |
| 10122 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10123 | fi |
| 10124 | |
| 10125 | ;; |
| 10126 | esac |
| 10127 | fi |
| 10128 | if test "$with_gnu_ld" = no; then |
| 10129 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10130 | hardcode_libdir_separator=: |
| 10131 | |
| 10132 | case $host_cpu in |
| 10133 | hppa*64*|ia64*) |
| 10134 | hardcode_direct=no |
| 10135 | hardcode_shlibpath_var=no |
| 10136 | ;; |
| 10137 | *) |
| 10138 | hardcode_direct=yes |
| 10139 | hardcode_direct_absolute=yes |
| 10140 | export_dynamic_flag_spec='${wl}-E' |
| 10141 | |
| 10142 | # hardcode_minus_L: Not really in the search PATH, |
| 10143 | # but as the default location of the library. |
| 10144 | hardcode_minus_L=yes |
| 10145 | ;; |
| 10146 | esac |
| 10147 | fi |
| 10148 | ;; |
| 10149 | |
| 10150 | irix5* | irix6* | nonstopux*) |
| 10151 | if test "$GCC" = yes; then |
| 10152 | archive_cmds='$CC -shared $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' |
| 10153 | # Try to use the -exported_symbol ld option, if it does not |
| 10154 | # work, assume that -exports_file does not work either and |
| 10155 | # implicitly export all symbols. |
| 10156 | save_LDFLAGS="$LDFLAGS" |
| 10157 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10158 | if test x$gcc_no_link = xyes; then |
| 10159 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 10160 | fi |
| 10161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10162 | /* end confdefs.h. */ |
| 10163 | int foo(void) {} |
| 10164 | _ACEOF |
| 10165 | if ac_fn_c_try_link "$LINENO"; then : |
| 10166 | archive_expsym_cmds='$CC -shared $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' |
| 10167 | |
| 10168 | fi |
| 10169 | rm -f core conftest.err conftest.$ac_objext \ |
| 10170 | conftest$ac_exeext conftest.$ac_ext |
| 10171 | LDFLAGS="$save_LDFLAGS" |
| 10172 | else |
| 10173 | 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' |
| 10174 | 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' |
| 10175 | fi |
| 10176 | archive_cmds_need_lc='no' |
| 10177 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10178 | hardcode_libdir_separator=: |
| 10179 | inherit_rpath=yes |
| 10180 | link_all_deplibs=yes |
| 10181 | ;; |
| 10182 | |
| 10183 | netbsd*) |
| 10184 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10185 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10186 | else |
| 10187 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10188 | fi |
| 10189 | hardcode_libdir_flag_spec='-R$libdir' |
| 10190 | hardcode_direct=yes |
| 10191 | hardcode_shlibpath_var=no |
| 10192 | ;; |
| 10193 | |
| 10194 | newsos6) |
| 10195 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10196 | hardcode_direct=yes |
| 10197 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10198 | hardcode_libdir_separator=: |
| 10199 | hardcode_shlibpath_var=no |
| 10200 | ;; |
| 10201 | |
| 10202 | *nto* | *qnx*) |
| 10203 | ;; |
| 10204 | |
| 10205 | openbsd*) |
| 10206 | if test -f /usr/libexec/ld.so; then |
| 10207 | hardcode_direct=yes |
| 10208 | hardcode_shlibpath_var=no |
| 10209 | hardcode_direct_absolute=yes |
| 10210 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10211 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10212 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10213 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10214 | export_dynamic_flag_spec='${wl}-E' |
| 10215 | else |
| 10216 | case $host_os in |
| 10217 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10218 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10219 | hardcode_libdir_flag_spec='-R$libdir' |
| 10220 | ;; |
| 10221 | *) |
| 10222 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10223 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10224 | ;; |
| 10225 | esac |
| 10226 | fi |
| 10227 | else |
| 10228 | ld_shlibs=no |
| 10229 | fi |
| 10230 | ;; |
| 10231 | |
| 10232 | os2*) |
| 10233 | hardcode_libdir_flag_spec='-L$libdir' |
| 10234 | hardcode_minus_L=yes |
| 10235 | allow_undefined_flag=unsupported |
| 10236 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 10237 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10238 | ;; |
| 10239 | |
| 10240 | osf3*) |
| 10241 | if test "$GCC" = yes; then |
| 10242 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10243 | 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' |
| 10244 | else |
| 10245 | allow_undefined_flag=' -expect_unresolved \*' |
| 10246 | 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' |
| 10247 | fi |
| 10248 | archive_cmds_need_lc='no' |
| 10249 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10250 | hardcode_libdir_separator=: |
| 10251 | ;; |
| 10252 | |
| 10253 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10254 | if test "$GCC" = yes; then |
| 10255 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10256 | archive_cmds='$CC -shared${allow_undefined_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' |
| 10257 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10258 | else |
| 10259 | allow_undefined_flag=' -expect_unresolved \*' |
| 10260 | 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' |
| 10261 | 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~ |
| 10262 | $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' |
| 10263 | |
| 10264 | # Both c and cxx compiler support -rpath directly |
| 10265 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10266 | fi |
| 10267 | archive_cmds_need_lc='no' |
| 10268 | hardcode_libdir_separator=: |
| 10269 | ;; |
| 10270 | |
| 10271 | solaris*) |
| 10272 | no_undefined_flag=' -z defs' |
| 10273 | if test "$GCC" = yes; then |
| 10274 | wlarc='${wl}' |
| 10275 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10276 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10277 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10278 | else |
| 10279 | case `$CC -V 2>&1` in |
| 10280 | *"Compilers 5.0"*) |
| 10281 | wlarc='' |
| 10282 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10283 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10284 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10285 | ;; |
| 10286 | *) |
| 10287 | wlarc='${wl}' |
| 10288 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10289 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10290 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10291 | ;; |
| 10292 | esac |
| 10293 | fi |
| 10294 | hardcode_libdir_flag_spec='-R$libdir' |
| 10295 | hardcode_shlibpath_var=no |
| 10296 | case $host_os in |
| 10297 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10298 | *) |
| 10299 | # The compiler driver will combine and reorder linker options, |
| 10300 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10301 | # but is careful enough not to reorder. |
| 10302 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10303 | if test "$GCC" = yes; then |
| 10304 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10305 | else |
| 10306 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10307 | fi |
| 10308 | ;; |
| 10309 | esac |
| 10310 | link_all_deplibs=yes |
| 10311 | ;; |
| 10312 | |
| 10313 | sunos4*) |
| 10314 | if test "x$host_vendor" = xsequent; then |
| 10315 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10316 | # files that make .init and .fini sections work. |
| 10317 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10318 | else |
| 10319 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10320 | fi |
| 10321 | hardcode_libdir_flag_spec='-L$libdir' |
| 10322 | hardcode_direct=yes |
| 10323 | hardcode_minus_L=yes |
| 10324 | hardcode_shlibpath_var=no |
| 10325 | ;; |
| 10326 | |
| 10327 | sysv4) |
| 10328 | case $host_vendor in |
| 10329 | sni) |
| 10330 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10331 | hardcode_direct=yes # is this really true??? |
| 10332 | ;; |
| 10333 | siemens) |
| 10334 | ## LD is ld it makes a PLAMLIB |
| 10335 | ## CC just makes a GrossModule. |
| 10336 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10337 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10338 | hardcode_direct=no |
| 10339 | ;; |
| 10340 | motorola) |
| 10341 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10342 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10343 | ;; |
| 10344 | esac |
| 10345 | runpath_var='LD_RUN_PATH' |
| 10346 | hardcode_shlibpath_var=no |
| 10347 | ;; |
| 10348 | |
| 10349 | sysv4.3*) |
| 10350 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10351 | hardcode_shlibpath_var=no |
| 10352 | export_dynamic_flag_spec='-Bexport' |
| 10353 | ;; |
| 10354 | |
| 10355 | sysv4*MP*) |
| 10356 | if test -d /usr/nec; then |
| 10357 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10358 | hardcode_shlibpath_var=no |
| 10359 | runpath_var=LD_RUN_PATH |
| 10360 | hardcode_runpath_var=yes |
| 10361 | ld_shlibs=yes |
| 10362 | fi |
| 10363 | ;; |
| 10364 | |
| 10365 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10366 | no_undefined_flag='${wl}-z,text' |
| 10367 | archive_cmds_need_lc=no |
| 10368 | hardcode_shlibpath_var=no |
| 10369 | runpath_var='LD_RUN_PATH' |
| 10370 | |
| 10371 | if test "$GCC" = yes; then |
| 10372 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10373 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10374 | else |
| 10375 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10376 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10377 | fi |
| 10378 | ;; |
| 10379 | |
| 10380 | sysv5* | sco3.2v5* | sco5v6*) |
| 10381 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10382 | # link with -lc, and that would cause any symbols used from libc to |
| 10383 | # always be unresolved, which means just about no library would |
| 10384 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10385 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10386 | # as -z defs. |
| 10387 | no_undefined_flag='${wl}-z,text' |
| 10388 | allow_undefined_flag='${wl}-z,nodefs' |
| 10389 | archive_cmds_need_lc=no |
| 10390 | hardcode_shlibpath_var=no |
| 10391 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10392 | hardcode_libdir_separator=':' |
| 10393 | link_all_deplibs=yes |
| 10394 | export_dynamic_flag_spec='${wl}-Bexport' |
| 10395 | runpath_var='LD_RUN_PATH' |
| 10396 | |
| 10397 | if test "$GCC" = yes; then |
| 10398 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10399 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10400 | else |
| 10401 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10402 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10403 | fi |
| 10404 | ;; |
| 10405 | |
| 10406 | uts4*) |
| 10407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10408 | hardcode_libdir_flag_spec='-L$libdir' |
| 10409 | hardcode_shlibpath_var=no |
| 10410 | ;; |
| 10411 | |
| 10412 | *) |
| 10413 | ld_shlibs=no |
| 10414 | ;; |
| 10415 | esac |
| 10416 | |
| 10417 | if test x$host_vendor = xsni; then |
| 10418 | case $host in |
| 10419 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10420 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10421 | ;; |
| 10422 | esac |
| 10423 | fi |
| 10424 | fi |
| 10425 | |
| 10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10427 | $as_echo "$ld_shlibs" >&6; } |
| 10428 | test "$ld_shlibs" = no && can_build_shared=no |
| 10429 | |
| 10430 | with_gnu_ld=$with_gnu_ld |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | |
| 10435 | |
| 10436 | |
| 10437 | |
| 10438 | |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | # |
| 10447 | # Do we need to explicitly link libc? |
| 10448 | # |
| 10449 | case "x$archive_cmds_need_lc" in |
| 10450 | x|xyes) |
| 10451 | # Assume -lc should be added |
| 10452 | archive_cmds_need_lc=yes |
| 10453 | |
| 10454 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10455 | case $archive_cmds in |
| 10456 | *'~'*) |
| 10457 | # FIXME: we may have to deal with multi-command sequences. |
| 10458 | ;; |
| 10459 | '$CC '*) |
| 10460 | # Test whether the compiler implicitly links with -lc since on some |
| 10461 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10462 | # to ld, don't add -lc before -lgcc. |
| 10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10464 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10465 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10466 | $as_echo_n "(cached) " >&6 |
| 10467 | else |
| 10468 | $RM conftest* |
| 10469 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10470 | |
| 10471 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10472 | (eval $ac_compile) 2>&5 |
| 10473 | ac_status=$? |
| 10474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10475 | test $ac_status = 0; } 2>conftest.err; then |
| 10476 | soname=conftest |
| 10477 | lib=conftest |
| 10478 | libobjs=conftest.$ac_objext |
| 10479 | deplibs= |
| 10480 | wl=$lt_prog_compiler_wl |
| 10481 | pic_flag=$lt_prog_compiler_pic |
| 10482 | compiler_flags=-v |
| 10483 | linker_flags=-v |
| 10484 | verstring= |
| 10485 | output_objdir=. |
| 10486 | libname=conftest |
| 10487 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10488 | allow_undefined_flag= |
| 10489 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10490 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10491 | ac_status=$? |
| 10492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10493 | test $ac_status = 0; } |
| 10494 | then |
| 10495 | lt_cv_archive_cmds_need_lc=no |
| 10496 | else |
| 10497 | lt_cv_archive_cmds_need_lc=yes |
| 10498 | fi |
| 10499 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10500 | else |
| 10501 | cat conftest.err 1>&5 |
| 10502 | fi |
| 10503 | $RM conftest* |
| 10504 | |
| 10505 | fi |
| 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10507 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10508 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10509 | ;; |
| 10510 | esac |
| 10511 | fi |
| 10512 | ;; |
| 10513 | esac |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | |
| 10542 | |
| 10543 | |
| 10544 | |
| 10545 | |
| 10546 | |
| 10547 | |
| 10548 | |
| 10549 | |
| 10550 | |
| 10551 | |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | |
| 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
| 10633 | |
| 10634 | |
| 10635 | |
| 10636 | |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | |
| 10642 | |
| 10643 | |
| 10644 | |
| 10645 | |
| 10646 | |
| 10647 | |
| 10648 | |
| 10649 | |
| 10650 | |
| 10651 | |
| 10652 | |
| 10653 | |
| 10654 | |
| 10655 | |
| 10656 | |
| 10657 | |
| 10658 | |
| 10659 | |
| 10660 | |
| 10661 | |
| 10662 | |
| 10663 | |
| 10664 | |
| 10665 | |
| 10666 | |
| 10667 | |
| 10668 | |
| 10669 | |
| 10670 | |
| 10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10672 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10673 | |
| 10674 | if test "$GCC" = yes; then |
| 10675 | case $host_os in |
| 10676 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10677 | *) lt_awk_arg="/^libraries:/" ;; |
| 10678 | esac |
| 10679 | case $host_os in |
| 10680 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10681 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10682 | esac |
| 10683 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10684 | case $lt_search_path_spec in |
| 10685 | *\;*) |
| 10686 | # if the path contains ";" then we assume it to be the separator |
| 10687 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10688 | # assumed that no part of a normal pathname contains ";" but that should |
| 10689 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10690 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10691 | ;; |
| 10692 | *) |
| 10693 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10694 | ;; |
| 10695 | esac |
| 10696 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10697 | # and add multilib dir if necessary. |
| 10698 | lt_tmp_lt_search_path_spec= |
| 10699 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10700 | for lt_sys_path in $lt_search_path_spec; do |
| 10701 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10702 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10703 | else |
| 10704 | test -d "$lt_sys_path" && \ |
| 10705 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10706 | fi |
| 10707 | done |
| 10708 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10709 | BEGIN {RS=" "; FS="/|\n";} { |
| 10710 | lt_foo=""; |
| 10711 | lt_count=0; |
| 10712 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10713 | if ($lt_i != "" && $lt_i != ".") { |
| 10714 | if ($lt_i == "..") { |
| 10715 | lt_count++; |
| 10716 | } else { |
| 10717 | if (lt_count == 0) { |
| 10718 | lt_foo="/" $lt_i lt_foo; |
| 10719 | } else { |
| 10720 | lt_count--; |
| 10721 | } |
| 10722 | } |
| 10723 | } |
| 10724 | } |
| 10725 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10726 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10727 | }'` |
| 10728 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10729 | # for these hosts. |
| 10730 | case $host_os in |
| 10731 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10732 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10733 | esac |
| 10734 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10735 | else |
| 10736 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10737 | fi |
| 10738 | library_names_spec= |
| 10739 | libname_spec='lib$name' |
| 10740 | soname_spec= |
| 10741 | shrext_cmds=".so" |
| 10742 | postinstall_cmds= |
| 10743 | postuninstall_cmds= |
| 10744 | finish_cmds= |
| 10745 | finish_eval= |
| 10746 | shlibpath_var= |
| 10747 | shlibpath_overrides_runpath=unknown |
| 10748 | version_type=none |
| 10749 | dynamic_linker="$host_os ld.so" |
| 10750 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10751 | need_lib_prefix=unknown |
| 10752 | hardcode_into_libs=no |
| 10753 | |
| 10754 | # when you set need_version to no, make sure it does not cause -set_version |
| 10755 | # flags to be left without arguments |
| 10756 | need_version=unknown |
| 10757 | |
| 10758 | case $host_os in |
| 10759 | aix3*) |
| 10760 | version_type=linux |
| 10761 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10762 | shlibpath_var=LIBPATH |
| 10763 | |
| 10764 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10765 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10766 | ;; |
| 10767 | |
| 10768 | aix[4-9]*) |
| 10769 | version_type=linux |
| 10770 | need_lib_prefix=no |
| 10771 | need_version=no |
| 10772 | hardcode_into_libs=yes |
| 10773 | if test "$host_cpu" = ia64; then |
| 10774 | # AIX 5 supports IA64 |
| 10775 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10776 | shlibpath_var=LD_LIBRARY_PATH |
| 10777 | else |
| 10778 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10779 | # for dependence libraries. The import file would start with |
| 10780 | # the line `#! .'. This would cause the generated library to |
| 10781 | # depend on `.', always an invalid library. This was fixed in |
| 10782 | # development snapshots of GCC prior to 3.0. |
| 10783 | case $host_os in |
| 10784 | aix4 | aix4.[01] | aix4.[01].*) |
| 10785 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10786 | echo ' yes ' |
| 10787 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10788 | : |
| 10789 | else |
| 10790 | can_build_shared=no |
| 10791 | fi |
| 10792 | ;; |
| 10793 | esac |
| 10794 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10795 | # soname into executable. Probably we can add versioning support to |
| 10796 | # collect2, so additional links can be useful in future. |
| 10797 | if test "$aix_use_runtimelinking" = yes; then |
| 10798 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10799 | # instead of lib<name>.a to let people know that these are not |
| 10800 | # typical AIX shared libraries. |
| 10801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10802 | else |
| 10803 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10804 | # and later when we are not doing run time linking. |
| 10805 | library_names_spec='${libname}${release}.a $libname.a' |
| 10806 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10807 | fi |
| 10808 | shlibpath_var=LIBPATH |
| 10809 | fi |
| 10810 | ;; |
| 10811 | |
| 10812 | amigaos*) |
| 10813 | case $host_cpu in |
| 10814 | powerpc) |
| 10815 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10816 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10818 | ;; |
| 10819 | m68k) |
| 10820 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10821 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10822 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' |
| 10823 | ;; |
| 10824 | esac |
| 10825 | ;; |
| 10826 | |
| 10827 | beos*) |
| 10828 | library_names_spec='${libname}${shared_ext}' |
| 10829 | dynamic_linker="$host_os ld.so" |
| 10830 | shlibpath_var=LIBRARY_PATH |
| 10831 | ;; |
| 10832 | |
| 10833 | bsdi[45]*) |
| 10834 | version_type=linux |
| 10835 | need_version=no |
| 10836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10838 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10839 | shlibpath_var=LD_LIBRARY_PATH |
| 10840 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10841 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10842 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10843 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10844 | # libtool to hard-code these into programs |
| 10845 | ;; |
| 10846 | |
| 10847 | cygwin* | mingw* | pw32* | cegcc*) |
| 10848 | version_type=windows |
| 10849 | shrext_cmds=".dll" |
| 10850 | need_version=no |
| 10851 | need_lib_prefix=no |
| 10852 | |
| 10853 | case $GCC,$host_os in |
| 10854 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 10855 | library_names_spec='$libname.dll.a' |
| 10856 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10857 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10858 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10859 | dldir=$destdir/`dirname \$dlpath`~ |
| 10860 | test -d \$dldir || mkdir -p \$dldir~ |
| 10861 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10862 | chmod a+x \$dldir/$dlname~ |
| 10863 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10864 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10865 | fi' |
| 10866 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10867 | dlpath=$dir/\$dldll~ |
| 10868 | $RM \$dlpath' |
| 10869 | shlibpath_overrides_runpath=yes |
| 10870 | |
| 10871 | case $host_os in |
| 10872 | cygwin*) |
| 10873 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10874 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10875 | |
| 10876 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10877 | ;; |
| 10878 | mingw* | cegcc*) |
| 10879 | # MinGW DLLs use traditional 'lib' prefix |
| 10880 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10881 | ;; |
| 10882 | pw32*) |
| 10883 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10884 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10885 | ;; |
| 10886 | esac |
| 10887 | ;; |
| 10888 | |
| 10889 | *) |
| 10890 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10891 | ;; |
| 10892 | esac |
| 10893 | dynamic_linker='Win32 ld.exe' |
| 10894 | # FIXME: first we should search . and the directory the executable is in |
| 10895 | shlibpath_var=PATH |
| 10896 | ;; |
| 10897 | |
| 10898 | darwin* | rhapsody*) |
| 10899 | dynamic_linker="$host_os dyld" |
| 10900 | version_type=darwin |
| 10901 | need_lib_prefix=no |
| 10902 | need_version=no |
| 10903 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10904 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10905 | shlibpath_overrides_runpath=yes |
| 10906 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10907 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10908 | |
| 10909 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10910 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10911 | ;; |
| 10912 | |
| 10913 | dgux*) |
| 10914 | version_type=linux |
| 10915 | need_lib_prefix=no |
| 10916 | need_version=no |
| 10917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10919 | shlibpath_var=LD_LIBRARY_PATH |
| 10920 | ;; |
| 10921 | |
| 10922 | freebsd* | dragonfly*) |
| 10923 | # DragonFly does not have aout. When/if they implement a new |
| 10924 | # versioning mechanism, adjust this. |
| 10925 | if test -x /usr/bin/objformat; then |
| 10926 | objformat=`/usr/bin/objformat` |
| 10927 | else |
| 10928 | case $host_os in |
| 10929 | freebsd[23].*) objformat=aout ;; |
| 10930 | *) objformat=elf ;; |
| 10931 | esac |
| 10932 | fi |
| 10933 | version_type=freebsd-$objformat |
| 10934 | case $version_type in |
| 10935 | freebsd-elf*) |
| 10936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10937 | need_version=no |
| 10938 | need_lib_prefix=no |
| 10939 | ;; |
| 10940 | freebsd-*) |
| 10941 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10942 | need_version=yes |
| 10943 | ;; |
| 10944 | esac |
| 10945 | shlibpath_var=LD_LIBRARY_PATH |
| 10946 | case $host_os in |
| 10947 | freebsd2.*) |
| 10948 | shlibpath_overrides_runpath=yes |
| 10949 | ;; |
| 10950 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10951 | shlibpath_overrides_runpath=yes |
| 10952 | hardcode_into_libs=yes |
| 10953 | ;; |
| 10954 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10955 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10956 | shlibpath_overrides_runpath=no |
| 10957 | hardcode_into_libs=yes |
| 10958 | ;; |
| 10959 | *) # from 4.6 on, and DragonFly |
| 10960 | shlibpath_overrides_runpath=yes |
| 10961 | hardcode_into_libs=yes |
| 10962 | ;; |
| 10963 | esac |
| 10964 | ;; |
| 10965 | |
| 10966 | haiku*) |
| 10967 | version_type=linux |
| 10968 | need_lib_prefix=no |
| 10969 | need_version=no |
| 10970 | dynamic_linker="$host_os runtime_loader" |
| 10971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10973 | shlibpath_var=LIBRARY_PATH |
| 10974 | shlibpath_overrides_runpath=yes |
| 10975 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10976 | hardcode_into_libs=yes |
| 10977 | ;; |
| 10978 | |
| 10979 | hpux9* | hpux10* | hpux11*) |
| 10980 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10981 | # link against other versions. |
| 10982 | version_type=sunos |
| 10983 | need_lib_prefix=no |
| 10984 | need_version=no |
| 10985 | case $host_cpu in |
| 10986 | ia64*) |
| 10987 | shrext_cmds='.so' |
| 10988 | hardcode_into_libs=yes |
| 10989 | dynamic_linker="$host_os dld.so" |
| 10990 | shlibpath_var=LD_LIBRARY_PATH |
| 10991 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10994 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10995 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10996 | else |
| 10997 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10998 | fi |
| 10999 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11000 | ;; |
| 11001 | hppa*64*) |
| 11002 | shrext_cmds='.sl' |
| 11003 | hardcode_into_libs=yes |
| 11004 | dynamic_linker="$host_os dld.sl" |
| 11005 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11006 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11008 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11009 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11010 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11011 | ;; |
| 11012 | *) |
| 11013 | shrext_cmds='.sl' |
| 11014 | dynamic_linker="$host_os dld.sl" |
| 11015 | shlibpath_var=SHLIB_PATH |
| 11016 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11019 | ;; |
| 11020 | esac |
| 11021 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 11022 | postinstall_cmds='chmod 555 $lib' |
| 11023 | # or fails outright, so override atomically: |
| 11024 | install_override_mode=555 |
| 11025 | ;; |
| 11026 | |
| 11027 | interix[3-9]*) |
| 11028 | version_type=linux |
| 11029 | need_lib_prefix=no |
| 11030 | need_version=no |
| 11031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11033 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11034 | shlibpath_var=LD_LIBRARY_PATH |
| 11035 | shlibpath_overrides_runpath=no |
| 11036 | hardcode_into_libs=yes |
| 11037 | ;; |
| 11038 | |
| 11039 | irix5* | irix6* | nonstopux*) |
| 11040 | case $host_os in |
| 11041 | nonstopux*) version_type=nonstopux ;; |
| 11042 | *) |
| 11043 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11044 | version_type=linux |
| 11045 | else |
| 11046 | version_type=irix |
| 11047 | fi ;; |
| 11048 | esac |
| 11049 | need_lib_prefix=no |
| 11050 | need_version=no |
| 11051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11053 | case $host_os in |
| 11054 | irix5* | nonstopux*) |
| 11055 | libsuff= shlibsuff= |
| 11056 | ;; |
| 11057 | *) |
| 11058 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11059 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11060 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11061 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11062 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11063 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11064 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11065 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11066 | esac |
| 11067 | ;; |
| 11068 | esac |
| 11069 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11070 | shlibpath_overrides_runpath=no |
| 11071 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11072 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11073 | hardcode_into_libs=yes |
| 11074 | ;; |
| 11075 | |
| 11076 | # No shared lib support for Linux oldld, aout, or coff. |
| 11077 | linux*oldld* | linux*aout* | linux*coff*) |
| 11078 | dynamic_linker=no |
| 11079 | ;; |
| 11080 | |
| 11081 | # This must be Linux ELF. |
| 11082 | |
| 11083 | # uclinux* changes (here and below) have been submitted to the libtool |
| 11084 | # project, but have not yet been accepted: they are GCC-local changes |
| 11085 | # for the time being. (See |
| 11086 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) |
| 11087 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
| 11088 | version_type=linux |
| 11089 | need_lib_prefix=no |
| 11090 | need_version=no |
| 11091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11092 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11093 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11094 | shlibpath_var=LD_LIBRARY_PATH |
| 11095 | shlibpath_overrides_runpath=no |
| 11096 | |
| 11097 | # Some binutils ld are patched to set DT_RUNPATH |
| 11098 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11099 | $as_echo_n "(cached) " >&6 |
| 11100 | else |
| 11101 | lt_cv_shlibpath_overrides_runpath=no |
| 11102 | save_LDFLAGS=$LDFLAGS |
| 11103 | save_libdir=$libdir |
| 11104 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11105 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11106 | if test x$gcc_no_link = xyes; then |
| 11107 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11108 | fi |
| 11109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11110 | /* end confdefs.h. */ |
| 11111 | |
| 11112 | int |
| 11113 | main () |
| 11114 | { |
| 11115 | |
| 11116 | ; |
| 11117 | return 0; |
| 11118 | } |
| 11119 | _ACEOF |
| 11120 | if ac_fn_c_try_link "$LINENO"; then : |
| 11121 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11122 | lt_cv_shlibpath_overrides_runpath=yes |
| 11123 | fi |
| 11124 | fi |
| 11125 | rm -f core conftest.err conftest.$ac_objext \ |
| 11126 | conftest$ac_exeext conftest.$ac_ext |
| 11127 | LDFLAGS=$save_LDFLAGS |
| 11128 | libdir=$save_libdir |
| 11129 | |
| 11130 | fi |
| 11131 | |
| 11132 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11133 | |
| 11134 | # This implies no fast_install, which is unacceptable. |
| 11135 | # Some rework will be needed to allow for fast_install |
| 11136 | # before this can be enabled. |
| 11137 | hardcode_into_libs=yes |
| 11138 | |
| 11139 | # Append ld.so.conf contents to the search path |
| 11140 | if test -f /etc/ld.so.conf; then |
| 11141 | 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' ' '` |
| 11142 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11143 | fi |
| 11144 | |
| 11145 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11146 | # powerpc, because MkLinux only supported shared libraries with the |
| 11147 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11148 | # most powerpc-linux boxes support dynamic linking these days and |
| 11149 | # people can always --disable-shared, the test was removed, and we |
| 11150 | # assume the GNU/Linux dynamic linker is in use. |
| 11151 | dynamic_linker='GNU/Linux ld.so' |
| 11152 | ;; |
| 11153 | |
| 11154 | netbsd*) |
| 11155 | version_type=sunos |
| 11156 | need_lib_prefix=no |
| 11157 | need_version=no |
| 11158 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11160 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11161 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11162 | else |
| 11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11165 | dynamic_linker='NetBSD ld.elf_so' |
| 11166 | fi |
| 11167 | shlibpath_var=LD_LIBRARY_PATH |
| 11168 | shlibpath_overrides_runpath=yes |
| 11169 | hardcode_into_libs=yes |
| 11170 | ;; |
| 11171 | |
| 11172 | newsos6) |
| 11173 | version_type=linux |
| 11174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11175 | shlibpath_var=LD_LIBRARY_PATH |
| 11176 | shlibpath_overrides_runpath=yes |
| 11177 | ;; |
| 11178 | |
| 11179 | *nto* | *qnx*) |
| 11180 | version_type=qnx |
| 11181 | need_lib_prefix=no |
| 11182 | need_version=no |
| 11183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11184 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11185 | shlibpath_var=LD_LIBRARY_PATH |
| 11186 | shlibpath_overrides_runpath=no |
| 11187 | hardcode_into_libs=yes |
| 11188 | dynamic_linker='ldqnx.so' |
| 11189 | ;; |
| 11190 | |
| 11191 | openbsd*) |
| 11192 | version_type=sunos |
| 11193 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 11194 | need_lib_prefix=no |
| 11195 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11196 | case $host_os in |
| 11197 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11198 | *) need_version=no ;; |
| 11199 | esac |
| 11200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11201 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11202 | shlibpath_var=LD_LIBRARY_PATH |
| 11203 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11204 | case $host_os in |
| 11205 | openbsd2.[89] | openbsd2.[89].*) |
| 11206 | shlibpath_overrides_runpath=no |
| 11207 | ;; |
| 11208 | *) |
| 11209 | shlibpath_overrides_runpath=yes |
| 11210 | ;; |
| 11211 | esac |
| 11212 | else |
| 11213 | shlibpath_overrides_runpath=yes |
| 11214 | fi |
| 11215 | ;; |
| 11216 | |
| 11217 | os2*) |
| 11218 | libname_spec='$name' |
| 11219 | shrext_cmds=".dll" |
| 11220 | need_lib_prefix=no |
| 11221 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11222 | dynamic_linker='OS/2 ld.exe' |
| 11223 | shlibpath_var=LIBPATH |
| 11224 | ;; |
| 11225 | |
| 11226 | osf3* | osf4* | osf5*) |
| 11227 | version_type=osf |
| 11228 | need_lib_prefix=no |
| 11229 | need_version=no |
| 11230 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11232 | shlibpath_var=LD_LIBRARY_PATH |
| 11233 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11234 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11235 | ;; |
| 11236 | |
| 11237 | rdos*) |
| 11238 | dynamic_linker=no |
| 11239 | ;; |
| 11240 | |
| 11241 | solaris*) |
| 11242 | version_type=linux |
| 11243 | need_lib_prefix=no |
| 11244 | need_version=no |
| 11245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11246 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11247 | shlibpath_var=LD_LIBRARY_PATH |
| 11248 | shlibpath_overrides_runpath=yes |
| 11249 | hardcode_into_libs=yes |
| 11250 | # ldd complains unless libraries are executable |
| 11251 | postinstall_cmds='chmod +x $lib' |
| 11252 | ;; |
| 11253 | |
| 11254 | sunos4*) |
| 11255 | version_type=sunos |
| 11256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11257 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11258 | shlibpath_var=LD_LIBRARY_PATH |
| 11259 | shlibpath_overrides_runpath=yes |
| 11260 | if test "$with_gnu_ld" = yes; then |
| 11261 | need_lib_prefix=no |
| 11262 | fi |
| 11263 | need_version=yes |
| 11264 | ;; |
| 11265 | |
| 11266 | sysv4 | sysv4.3*) |
| 11267 | version_type=linux |
| 11268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11270 | shlibpath_var=LD_LIBRARY_PATH |
| 11271 | case $host_vendor in |
| 11272 | sni) |
| 11273 | shlibpath_overrides_runpath=no |
| 11274 | need_lib_prefix=no |
| 11275 | runpath_var=LD_RUN_PATH |
| 11276 | ;; |
| 11277 | siemens) |
| 11278 | need_lib_prefix=no |
| 11279 | ;; |
| 11280 | motorola) |
| 11281 | need_lib_prefix=no |
| 11282 | need_version=no |
| 11283 | shlibpath_overrides_runpath=no |
| 11284 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11285 | ;; |
| 11286 | esac |
| 11287 | ;; |
| 11288 | |
| 11289 | sysv4*MP*) |
| 11290 | if test -d /usr/nec ;then |
| 11291 | version_type=linux |
| 11292 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11293 | soname_spec='$libname${shared_ext}.$major' |
| 11294 | shlibpath_var=LD_LIBRARY_PATH |
| 11295 | fi |
| 11296 | ;; |
| 11297 | |
| 11298 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11299 | version_type=freebsd-elf |
| 11300 | need_lib_prefix=no |
| 11301 | need_version=no |
| 11302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11304 | shlibpath_var=LD_LIBRARY_PATH |
| 11305 | shlibpath_overrides_runpath=yes |
| 11306 | hardcode_into_libs=yes |
| 11307 | if test "$with_gnu_ld" = yes; then |
| 11308 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11309 | else |
| 11310 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11311 | case $host_os in |
| 11312 | sco3.2v5*) |
| 11313 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11314 | ;; |
| 11315 | esac |
| 11316 | fi |
| 11317 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11318 | ;; |
| 11319 | |
| 11320 | tpf*) |
| 11321 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11322 | version_type=linux |
| 11323 | need_lib_prefix=no |
| 11324 | need_version=no |
| 11325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11326 | shlibpath_var=LD_LIBRARY_PATH |
| 11327 | shlibpath_overrides_runpath=no |
| 11328 | hardcode_into_libs=yes |
| 11329 | ;; |
| 11330 | |
| 11331 | uts4*) |
| 11332 | version_type=linux |
| 11333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11334 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11335 | shlibpath_var=LD_LIBRARY_PATH |
| 11336 | ;; |
| 11337 | |
| 11338 | # Shared libraries for VwWorks, >= 7 only at this stage |
| 11339 | # and (fpic) still incompatible with "large" code models |
| 11340 | # in a few configurations. Only for RTP mode in any case, |
| 11341 | # and upon explicit request at configure time. |
| 11342 | vxworks7*) |
| 11343 | dynamic_linker=no |
| 11344 | case ${with_multisubdir}-${enable_shared} in |
| 11345 | *large*) |
| 11346 | ;; |
| 11347 | *mrtp*-yes) |
| 11348 | version_type=linux |
| 11349 | need_lib_prefix=no |
| 11350 | need_version=no |
| 11351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11352 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11353 | dynamic_linker="$host_os module_loader" |
| 11354 | ;; |
| 11355 | esac |
| 11356 | ;; |
| 11357 | *) |
| 11358 | dynamic_linker=no |
| 11359 | ;; |
| 11360 | esac |
| 11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11362 | $as_echo "$dynamic_linker" >&6; } |
| 11363 | test "$dynamic_linker" = no && can_build_shared=no |
| 11364 | |
| 11365 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11366 | if test "$GCC" = yes; then |
| 11367 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11368 | fi |
| 11369 | |
| 11370 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11371 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11372 | fi |
| 11373 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11374 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11375 | fi |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
| 11450 | |
| 11451 | |
| 11452 | |
| 11453 | |
| 11454 | |
| 11455 | |
| 11456 | |
| 11457 | |
| 11458 | |
| 11459 | |
| 11460 | |
| 11461 | |
| 11462 | |
| 11463 | |
| 11464 | |
| 11465 | |
| 11466 | |
| 11467 | |
| 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11469 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11470 | hardcode_action= |
| 11471 | if test -n "$hardcode_libdir_flag_spec" || |
| 11472 | test -n "$runpath_var" || |
| 11473 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11474 | |
| 11475 | # We can hardcode non-existent directories. |
| 11476 | if test "$hardcode_direct" != no && |
| 11477 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11478 | # have to relink, otherwise we might link with an installed library |
| 11479 | # when we should be linking with a yet-to-be-installed one |
| 11480 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11481 | test "$hardcode_minus_L" != no; then |
| 11482 | # Linking always hardcodes the temporary library directory. |
| 11483 | hardcode_action=relink |
| 11484 | else |
| 11485 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11486 | hardcode_action=immediate |
| 11487 | fi |
| 11488 | else |
| 11489 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11490 | # directories. |
| 11491 | hardcode_action=unsupported |
| 11492 | fi |
| 11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11494 | $as_echo "$hardcode_action" >&6; } |
| 11495 | |
| 11496 | if test "$hardcode_action" = relink || |
| 11497 | test "$inherit_rpath" = yes; then |
| 11498 | # Fast installation is not supported |
| 11499 | enable_fast_install=no |
| 11500 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11501 | test "$enable_shared" = no; then |
| 11502 | # Fast installation is not necessary |
| 11503 | enable_fast_install=needless |
| 11504 | fi |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | if test "x$enable_dlopen" != xyes; then |
| 11512 | enable_dlopen=unknown |
| 11513 | enable_dlopen_self=unknown |
| 11514 | enable_dlopen_self_static=unknown |
| 11515 | else |
| 11516 | lt_cv_dlopen=no |
| 11517 | lt_cv_dlopen_libs= |
| 11518 | |
| 11519 | case $host_os in |
| 11520 | beos*) |
| 11521 | lt_cv_dlopen="load_add_on" |
| 11522 | lt_cv_dlopen_libs= |
| 11523 | lt_cv_dlopen_self=yes |
| 11524 | ;; |
| 11525 | |
| 11526 | mingw* | pw32* | cegcc*) |
| 11527 | lt_cv_dlopen="LoadLibrary" |
| 11528 | lt_cv_dlopen_libs= |
| 11529 | ;; |
| 11530 | |
| 11531 | cygwin*) |
| 11532 | lt_cv_dlopen="dlopen" |
| 11533 | lt_cv_dlopen_libs= |
| 11534 | ;; |
| 11535 | |
| 11536 | darwin*) |
| 11537 | # if libdl is installed we need to link against it |
| 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11539 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11540 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11541 | $as_echo_n "(cached) " >&6 |
| 11542 | else |
| 11543 | ac_check_lib_save_LIBS=$LIBS |
| 11544 | LIBS="-ldl $LIBS" |
| 11545 | if test x$gcc_no_link = xyes; then |
| 11546 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11547 | fi |
| 11548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11549 | /* end confdefs.h. */ |
| 11550 | |
| 11551 | /* Override any GCC internal prototype to avoid an error. |
| 11552 | Use char because int might match the return type of a GCC |
| 11553 | builtin and then its argument prototype would still apply. */ |
| 11554 | #ifdef __cplusplus |
| 11555 | extern "C" |
| 11556 | #endif |
| 11557 | char dlopen (); |
| 11558 | int |
| 11559 | main () |
| 11560 | { |
| 11561 | return dlopen (); |
| 11562 | ; |
| 11563 | return 0; |
| 11564 | } |
| 11565 | _ACEOF |
| 11566 | if ac_fn_c_try_link "$LINENO"; then : |
| 11567 | ac_cv_lib_dl_dlopen=yes |
| 11568 | else |
| 11569 | ac_cv_lib_dl_dlopen=no |
| 11570 | fi |
| 11571 | rm -f core conftest.err conftest.$ac_objext \ |
| 11572 | conftest$ac_exeext conftest.$ac_ext |
| 11573 | LIBS=$ac_check_lib_save_LIBS |
| 11574 | fi |
| 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11576 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11577 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11578 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11579 | else |
| 11580 | |
| 11581 | lt_cv_dlopen="dyld" |
| 11582 | lt_cv_dlopen_libs= |
| 11583 | lt_cv_dlopen_self=yes |
| 11584 | |
| 11585 | fi |
| 11586 | |
| 11587 | ;; |
| 11588 | |
| 11589 | *) |
| 11590 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11591 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11592 | lt_cv_dlopen="shl_load" |
| 11593 | else |
| 11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11595 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11596 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11597 | $as_echo_n "(cached) " >&6 |
| 11598 | else |
| 11599 | ac_check_lib_save_LIBS=$LIBS |
| 11600 | LIBS="-ldld $LIBS" |
| 11601 | if test x$gcc_no_link = xyes; then |
| 11602 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11603 | fi |
| 11604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11605 | /* end confdefs.h. */ |
| 11606 | |
| 11607 | /* Override any GCC internal prototype to avoid an error. |
| 11608 | Use char because int might match the return type of a GCC |
| 11609 | builtin and then its argument prototype would still apply. */ |
| 11610 | #ifdef __cplusplus |
| 11611 | extern "C" |
| 11612 | #endif |
| 11613 | char shl_load (); |
| 11614 | int |
| 11615 | main () |
| 11616 | { |
| 11617 | return shl_load (); |
| 11618 | ; |
| 11619 | return 0; |
| 11620 | } |
| 11621 | _ACEOF |
| 11622 | if ac_fn_c_try_link "$LINENO"; then : |
| 11623 | ac_cv_lib_dld_shl_load=yes |
| 11624 | else |
| 11625 | ac_cv_lib_dld_shl_load=no |
| 11626 | fi |
| 11627 | rm -f core conftest.err conftest.$ac_objext \ |
| 11628 | conftest$ac_exeext conftest.$ac_ext |
| 11629 | LIBS=$ac_check_lib_save_LIBS |
| 11630 | fi |
| 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11632 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11633 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11634 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11635 | else |
| 11636 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11637 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11638 | lt_cv_dlopen="dlopen" |
| 11639 | else |
| 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11641 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11642 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11643 | $as_echo_n "(cached) " >&6 |
| 11644 | else |
| 11645 | ac_check_lib_save_LIBS=$LIBS |
| 11646 | LIBS="-ldl $LIBS" |
| 11647 | if test x$gcc_no_link = xyes; then |
| 11648 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11649 | fi |
| 11650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11651 | /* end confdefs.h. */ |
| 11652 | |
| 11653 | /* Override any GCC internal prototype to avoid an error. |
| 11654 | Use char because int might match the return type of a GCC |
| 11655 | builtin and then its argument prototype would still apply. */ |
| 11656 | #ifdef __cplusplus |
| 11657 | extern "C" |
| 11658 | #endif |
| 11659 | char dlopen (); |
| 11660 | int |
| 11661 | main () |
| 11662 | { |
| 11663 | return dlopen (); |
| 11664 | ; |
| 11665 | return 0; |
| 11666 | } |
| 11667 | _ACEOF |
| 11668 | if ac_fn_c_try_link "$LINENO"; then : |
| 11669 | ac_cv_lib_dl_dlopen=yes |
| 11670 | else |
| 11671 | ac_cv_lib_dl_dlopen=no |
| 11672 | fi |
| 11673 | rm -f core conftest.err conftest.$ac_objext \ |
| 11674 | conftest$ac_exeext conftest.$ac_ext |
| 11675 | LIBS=$ac_check_lib_save_LIBS |
| 11676 | fi |
| 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11678 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11679 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11680 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11681 | else |
| 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11683 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11684 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11685 | $as_echo_n "(cached) " >&6 |
| 11686 | else |
| 11687 | ac_check_lib_save_LIBS=$LIBS |
| 11688 | LIBS="-lsvld $LIBS" |
| 11689 | if test x$gcc_no_link = xyes; then |
| 11690 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11691 | fi |
| 11692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11693 | /* end confdefs.h. */ |
| 11694 | |
| 11695 | /* Override any GCC internal prototype to avoid an error. |
| 11696 | Use char because int might match the return type of a GCC |
| 11697 | builtin and then its argument prototype would still apply. */ |
| 11698 | #ifdef __cplusplus |
| 11699 | extern "C" |
| 11700 | #endif |
| 11701 | char dlopen (); |
| 11702 | int |
| 11703 | main () |
| 11704 | { |
| 11705 | return dlopen (); |
| 11706 | ; |
| 11707 | return 0; |
| 11708 | } |
| 11709 | _ACEOF |
| 11710 | if ac_fn_c_try_link "$LINENO"; then : |
| 11711 | ac_cv_lib_svld_dlopen=yes |
| 11712 | else |
| 11713 | ac_cv_lib_svld_dlopen=no |
| 11714 | fi |
| 11715 | rm -f core conftest.err conftest.$ac_objext \ |
| 11716 | conftest$ac_exeext conftest.$ac_ext |
| 11717 | LIBS=$ac_check_lib_save_LIBS |
| 11718 | fi |
| 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11720 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11721 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11722 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11723 | else |
| 11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11725 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11726 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11727 | $as_echo_n "(cached) " >&6 |
| 11728 | else |
| 11729 | ac_check_lib_save_LIBS=$LIBS |
| 11730 | LIBS="-ldld $LIBS" |
| 11731 | if test x$gcc_no_link = xyes; then |
| 11732 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 11733 | fi |
| 11734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11735 | /* end confdefs.h. */ |
| 11736 | |
| 11737 | /* Override any GCC internal prototype to avoid an error. |
| 11738 | Use char because int might match the return type of a GCC |
| 11739 | builtin and then its argument prototype would still apply. */ |
| 11740 | #ifdef __cplusplus |
| 11741 | extern "C" |
| 11742 | #endif |
| 11743 | char dld_link (); |
| 11744 | int |
| 11745 | main () |
| 11746 | { |
| 11747 | return dld_link (); |
| 11748 | ; |
| 11749 | return 0; |
| 11750 | } |
| 11751 | _ACEOF |
| 11752 | if ac_fn_c_try_link "$LINENO"; then : |
| 11753 | ac_cv_lib_dld_dld_link=yes |
| 11754 | else |
| 11755 | ac_cv_lib_dld_dld_link=no |
| 11756 | fi |
| 11757 | rm -f core conftest.err conftest.$ac_objext \ |
| 11758 | conftest$ac_exeext conftest.$ac_ext |
| 11759 | LIBS=$ac_check_lib_save_LIBS |
| 11760 | fi |
| 11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11762 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11763 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11764 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11765 | fi |
| 11766 | |
| 11767 | |
| 11768 | fi |
| 11769 | |
| 11770 | |
| 11771 | fi |
| 11772 | |
| 11773 | |
| 11774 | fi |
| 11775 | |
| 11776 | |
| 11777 | fi |
| 11778 | |
| 11779 | |
| 11780 | fi |
| 11781 | |
| 11782 | ;; |
| 11783 | esac |
| 11784 | |
| 11785 | if test "x$lt_cv_dlopen" != xno; then |
| 11786 | enable_dlopen=yes |
| 11787 | else |
| 11788 | enable_dlopen=no |
| 11789 | fi |
| 11790 | |
| 11791 | case $lt_cv_dlopen in |
| 11792 | dlopen) |
| 11793 | save_CPPFLAGS="$CPPFLAGS" |
| 11794 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11795 | |
| 11796 | save_LDFLAGS="$LDFLAGS" |
| 11797 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11798 | |
| 11799 | save_LIBS="$LIBS" |
| 11800 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11801 | |
| 11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11803 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11804 | if ${lt_cv_dlopen_self+:} false; then : |
| 11805 | $as_echo_n "(cached) " >&6 |
| 11806 | else |
| 11807 | if test "$cross_compiling" = yes; then : |
| 11808 | lt_cv_dlopen_self=cross |
| 11809 | else |
| 11810 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11811 | lt_status=$lt_dlunknown |
| 11812 | cat > conftest.$ac_ext <<_LT_EOF |
| 11813 | #line 11813 "configure" |
| 11814 | #include "confdefs.h" |
| 11815 | |
| 11816 | #if HAVE_DLFCN_H |
| 11817 | #include <dlfcn.h> |
| 11818 | #endif |
| 11819 | |
| 11820 | #include <stdio.h> |
| 11821 | |
| 11822 | #ifdef RTLD_GLOBAL |
| 11823 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11824 | #else |
| 11825 | # ifdef DL_GLOBAL |
| 11826 | # define LT_DLGLOBAL DL_GLOBAL |
| 11827 | # else |
| 11828 | # define LT_DLGLOBAL 0 |
| 11829 | # endif |
| 11830 | #endif |
| 11831 | |
| 11832 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11833 | find out it does not work in some platform. */ |
| 11834 | #ifndef LT_DLLAZY_OR_NOW |
| 11835 | # ifdef RTLD_LAZY |
| 11836 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11837 | # else |
| 11838 | # ifdef DL_LAZY |
| 11839 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11840 | # else |
| 11841 | # ifdef RTLD_NOW |
| 11842 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11843 | # else |
| 11844 | # ifdef DL_NOW |
| 11845 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11846 | # else |
| 11847 | # define LT_DLLAZY_OR_NOW 0 |
| 11848 | # endif |
| 11849 | # endif |
| 11850 | # endif |
| 11851 | # endif |
| 11852 | #endif |
| 11853 | |
| 11854 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11855 | correspondingly for the symbols needed. */ |
| 11856 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11857 | void fnord () __attribute__((visibility("default"))); |
| 11858 | #endif |
| 11859 | |
| 11860 | void fnord () { int i=42; } |
| 11861 | int main () |
| 11862 | { |
| 11863 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11864 | int status = $lt_dlunknown; |
| 11865 | |
| 11866 | if (self) |
| 11867 | { |
| 11868 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11869 | else |
| 11870 | { |
| 11871 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11872 | else puts (dlerror ()); |
| 11873 | } |
| 11874 | /* dlclose (self); */ |
| 11875 | } |
| 11876 | else |
| 11877 | puts (dlerror ()); |
| 11878 | |
| 11879 | return status; |
| 11880 | } |
| 11881 | _LT_EOF |
| 11882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11883 | (eval $ac_link) 2>&5 |
| 11884 | ac_status=$? |
| 11885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11886 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11887 | (./conftest; exit; ) >&5 2>/dev/null |
| 11888 | lt_status=$? |
| 11889 | case x$lt_status in |
| 11890 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11891 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11892 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11893 | esac |
| 11894 | else : |
| 11895 | # compilation failed |
| 11896 | lt_cv_dlopen_self=no |
| 11897 | fi |
| 11898 | fi |
| 11899 | rm -fr conftest* |
| 11900 | |
| 11901 | |
| 11902 | fi |
| 11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11904 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11905 | |
| 11906 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11907 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11909 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11910 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11911 | $as_echo_n "(cached) " >&6 |
| 11912 | else |
| 11913 | if test "$cross_compiling" = yes; then : |
| 11914 | lt_cv_dlopen_self_static=cross |
| 11915 | else |
| 11916 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11917 | lt_status=$lt_dlunknown |
| 11918 | cat > conftest.$ac_ext <<_LT_EOF |
| 11919 | #line 11919 "configure" |
| 11920 | #include "confdefs.h" |
| 11921 | |
| 11922 | #if HAVE_DLFCN_H |
| 11923 | #include <dlfcn.h> |
| 11924 | #endif |
| 11925 | |
| 11926 | #include <stdio.h> |
| 11927 | |
| 11928 | #ifdef RTLD_GLOBAL |
| 11929 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11930 | #else |
| 11931 | # ifdef DL_GLOBAL |
| 11932 | # define LT_DLGLOBAL DL_GLOBAL |
| 11933 | # else |
| 11934 | # define LT_DLGLOBAL 0 |
| 11935 | # endif |
| 11936 | #endif |
| 11937 | |
| 11938 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11939 | find out it does not work in some platform. */ |
| 11940 | #ifndef LT_DLLAZY_OR_NOW |
| 11941 | # ifdef RTLD_LAZY |
| 11942 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11943 | # else |
| 11944 | # ifdef DL_LAZY |
| 11945 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11946 | # else |
| 11947 | # ifdef RTLD_NOW |
| 11948 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11949 | # else |
| 11950 | # ifdef DL_NOW |
| 11951 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11952 | # else |
| 11953 | # define LT_DLLAZY_OR_NOW 0 |
| 11954 | # endif |
| 11955 | # endif |
| 11956 | # endif |
| 11957 | # endif |
| 11958 | #endif |
| 11959 | |
| 11960 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11961 | correspondingly for the symbols needed. */ |
| 11962 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11963 | void fnord () __attribute__((visibility("default"))); |
| 11964 | #endif |
| 11965 | |
| 11966 | void fnord () { int i=42; } |
| 11967 | int main () |
| 11968 | { |
| 11969 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11970 | int status = $lt_dlunknown; |
| 11971 | |
| 11972 | if (self) |
| 11973 | { |
| 11974 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11975 | else |
| 11976 | { |
| 11977 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11978 | else puts (dlerror ()); |
| 11979 | } |
| 11980 | /* dlclose (self); */ |
| 11981 | } |
| 11982 | else |
| 11983 | puts (dlerror ()); |
| 11984 | |
| 11985 | return status; |
| 11986 | } |
| 11987 | _LT_EOF |
| 11988 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11989 | (eval $ac_link) 2>&5 |
| 11990 | ac_status=$? |
| 11991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11992 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11993 | (./conftest; exit; ) >&5 2>/dev/null |
| 11994 | lt_status=$? |
| 11995 | case x$lt_status in |
| 11996 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11997 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11998 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11999 | esac |
| 12000 | else : |
| 12001 | # compilation failed |
| 12002 | lt_cv_dlopen_self_static=no |
| 12003 | fi |
| 12004 | fi |
| 12005 | rm -fr conftest* |
| 12006 | |
| 12007 | |
| 12008 | fi |
| 12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 12010 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 12011 | fi |
| 12012 | |
| 12013 | CPPFLAGS="$save_CPPFLAGS" |
| 12014 | LDFLAGS="$save_LDFLAGS" |
| 12015 | LIBS="$save_LIBS" |
| 12016 | ;; |
| 12017 | esac |
| 12018 | |
| 12019 | case $lt_cv_dlopen_self in |
| 12020 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12021 | *) enable_dlopen_self=unknown ;; |
| 12022 | esac |
| 12023 | |
| 12024 | case $lt_cv_dlopen_self_static in |
| 12025 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12026 | *) enable_dlopen_self_static=unknown ;; |
| 12027 | esac |
| 12028 | fi |
| 12029 | |
| 12030 | |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
| 12045 | |
| 12046 | striplib= |
| 12047 | old_striplib= |
| 12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 12049 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 12050 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12051 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12052 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12054 | $as_echo "yes" >&6; } |
| 12055 | else |
| 12056 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12057 | case $host_os in |
| 12058 | darwin*) |
| 12059 | if test -n "$STRIP" ; then |
| 12060 | striplib="$STRIP -x" |
| 12061 | old_striplib="$STRIP -S" |
| 12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12063 | $as_echo "yes" >&6; } |
| 12064 | else |
| 12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12066 | $as_echo "no" >&6; } |
| 12067 | fi |
| 12068 | ;; |
| 12069 | *) |
| 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12071 | $as_echo "no" >&6; } |
| 12072 | ;; |
| 12073 | esac |
| 12074 | fi |
| 12075 | |
| 12076 | |
| 12077 | |
| 12078 | |
| 12079 | |
| 12080 | |
| 12081 | |
| 12082 | |
| 12083 | |
| 12084 | |
| 12085 | |
| 12086 | |
| 12087 | # Report which library types will actually be built |
| 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 12089 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 12091 | $as_echo "$can_build_shared" >&6; } |
| 12092 | |
| 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 12094 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 12095 | test "$can_build_shared" = "no" && enable_shared=no |
| 12096 | |
| 12097 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12098 | # are all built from PIC. |
| 12099 | case $host_os in |
| 12100 | aix3*) |
| 12101 | test "$enable_shared" = yes && enable_static=no |
| 12102 | if test -n "$RANLIB"; then |
| 12103 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12104 | postinstall_cmds='$RANLIB $lib' |
| 12105 | fi |
| 12106 | ;; |
| 12107 | |
| 12108 | aix[4-9]*) |
| 12109 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12110 | test "$enable_shared" = yes && enable_static=no |
| 12111 | fi |
| 12112 | ;; |
| 12113 | esac |
| 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 12115 | $as_echo "$enable_shared" >&6; } |
| 12116 | |
| 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12118 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12119 | # Make sure either enable_shared or enable_static is yes. |
| 12120 | test "$enable_shared" = yes || enable_static=yes |
| 12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12122 | $as_echo "$enable_static" >&6; } |
| 12123 | |
| 12124 | |
| 12125 | |
| 12126 | |
| 12127 | fi |
| 12128 | ac_ext=c |
| 12129 | ac_cpp='$CPP $CPPFLAGS' |
| 12130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12133 | |
| 12134 | CC="$lt_save_CC" |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | |
| 12140 | |
| 12141 | |
| 12142 | |
| 12143 | |
| 12144 | |
| 12145 | |
| 12146 | |
| 12147 | |
| 12148 | ac_config_commands="$ac_config_commands libtool" |
| 12149 | |
| 12150 | |
| 12151 | |
| 12152 | |
| 12153 | # Only expand once: |
| 12154 | |
| 12155 | |
| 12156 | |
| 12157 | |
| 12158 | enable_dlopen=yes |
| 12159 | |
| 12160 | |
| 12161 | |
| 12162 | LIBM= |
| 12163 | case $host in |
| 12164 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
| 12165 | # These system don't have libm, or don't need it |
| 12166 | ;; |
| 12167 | *-ncr-sysv4.3*) |
| 12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
| 12169 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } |
| 12170 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
| 12171 | $as_echo_n "(cached) " >&6 |
| 12172 | else |
| 12173 | ac_check_lib_save_LIBS=$LIBS |
| 12174 | LIBS="-lmw $LIBS" |
| 12175 | if test x$gcc_no_link = xyes; then |
| 12176 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 12177 | fi |
| 12178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12179 | /* end confdefs.h. */ |
| 12180 | |
| 12181 | /* Override any GCC internal prototype to avoid an error. |
| 12182 | Use char because int might match the return type of a GCC |
| 12183 | builtin and then its argument prototype would still apply. */ |
| 12184 | #ifdef __cplusplus |
| 12185 | extern "C" |
| 12186 | #endif |
| 12187 | char _mwvalidcheckl (); |
| 12188 | int |
| 12189 | main () |
| 12190 | { |
| 12191 | return _mwvalidcheckl (); |
| 12192 | ; |
| 12193 | return 0; |
| 12194 | } |
| 12195 | _ACEOF |
| 12196 | if ac_fn_c_try_link "$LINENO"; then : |
| 12197 | ac_cv_lib_mw__mwvalidcheckl=yes |
| 12198 | else |
| 12199 | ac_cv_lib_mw__mwvalidcheckl=no |
| 12200 | fi |
| 12201 | rm -f core conftest.err conftest.$ac_objext \ |
| 12202 | conftest$ac_exeext conftest.$ac_ext |
| 12203 | LIBS=$ac_check_lib_save_LIBS |
| 12204 | fi |
| 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
| 12206 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } |
| 12207 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
| 12208 | LIBM="-lmw" |
| 12209 | fi |
| 12210 | |
| 12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
| 12212 | $as_echo_n "checking for cos in -lm... " >&6; } |
| 12213 | if ${ac_cv_lib_m_cos+:} false; then : |
| 12214 | $as_echo_n "(cached) " >&6 |
| 12215 | else |
| 12216 | ac_check_lib_save_LIBS=$LIBS |
| 12217 | LIBS="-lm $LIBS" |
| 12218 | if test x$gcc_no_link = xyes; then |
| 12219 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 12220 | fi |
| 12221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12222 | /* end confdefs.h. */ |
| 12223 | |
| 12224 | /* Override any GCC internal prototype to avoid an error. |
| 12225 | Use char because int might match the return type of a GCC |
| 12226 | builtin and then its argument prototype would still apply. */ |
| 12227 | #ifdef __cplusplus |
| 12228 | extern "C" |
| 12229 | #endif |
| 12230 | char cos (); |
| 12231 | int |
| 12232 | main () |
| 12233 | { |
| 12234 | return cos (); |
| 12235 | ; |
| 12236 | return 0; |
| 12237 | } |
| 12238 | _ACEOF |
| 12239 | if ac_fn_c_try_link "$LINENO"; then : |
| 12240 | ac_cv_lib_m_cos=yes |
| 12241 | else |
| 12242 | ac_cv_lib_m_cos=no |
| 12243 | fi |
| 12244 | rm -f core conftest.err conftest.$ac_objext \ |
| 12245 | conftest$ac_exeext conftest.$ac_ext |
| 12246 | LIBS=$ac_check_lib_save_LIBS |
| 12247 | fi |
| 12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
| 12249 | $as_echo "$ac_cv_lib_m_cos" >&6; } |
| 12250 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
| 12251 | LIBM="$LIBM -lm" |
| 12252 | fi |
| 12253 | |
| 12254 | ;; |
| 12255 | *) |
| 12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
| 12257 | $as_echo_n "checking for cos in -lm... " >&6; } |
| 12258 | if ${ac_cv_lib_m_cos+:} false; then : |
| 12259 | $as_echo_n "(cached) " >&6 |
| 12260 | else |
| 12261 | ac_check_lib_save_LIBS=$LIBS |
| 12262 | LIBS="-lm $LIBS" |
| 12263 | if test x$gcc_no_link = xyes; then |
| 12264 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 12265 | fi |
| 12266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12267 | /* end confdefs.h. */ |
| 12268 | |
| 12269 | /* Override any GCC internal prototype to avoid an error. |
| 12270 | Use char because int might match the return type of a GCC |
| 12271 | builtin and then its argument prototype would still apply. */ |
| 12272 | #ifdef __cplusplus |
| 12273 | extern "C" |
| 12274 | #endif |
| 12275 | char cos (); |
| 12276 | int |
| 12277 | main () |
| 12278 | { |
| 12279 | return cos (); |
| 12280 | ; |
| 12281 | return 0; |
| 12282 | } |
| 12283 | _ACEOF |
| 12284 | if ac_fn_c_try_link "$LINENO"; then : |
| 12285 | ac_cv_lib_m_cos=yes |
| 12286 | else |
| 12287 | ac_cv_lib_m_cos=no |
| 12288 | fi |
| 12289 | rm -f core conftest.err conftest.$ac_objext \ |
| 12290 | conftest$ac_exeext conftest.$ac_ext |
| 12291 | LIBS=$ac_check_lib_save_LIBS |
| 12292 | fi |
| 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
| 12294 | $as_echo "$ac_cv_lib_m_cos" >&6; } |
| 12295 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
| 12296 | LIBM="-lm" |
| 12297 | fi |
| 12298 | |
| 12299 | ;; |
| 12300 | esac |
| 12301 | |
| 12302 | |
| 12303 | |
| 12304 | if test x$enable_darwin_at_rpath = xyes; then |
| 12305 | ENABLE_DARWIN_AT_RPATH_TRUE= |
| 12306 | ENABLE_DARWIN_AT_RPATH_FALSE='#' |
| 12307 | else |
| 12308 | ENABLE_DARWIN_AT_RPATH_TRUE='#' |
| 12309 | ENABLE_DARWIN_AT_RPATH_FALSE= |
| 12310 | fi |
| 12311 | |
| 12312 | |
| 12313 | |
| 12314 | |
| 12315 | |
| 12316 | # This library is written in C++ and needs to link with the C++ runtime. |
| 12317 | ac_ext=cpp |
| 12318 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12319 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12320 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12321 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12322 | |
| 12323 | |
| 12324 | # We must force CC/CXX to /not/ be precious variables; otherwise |
| 12325 | # the wrong, non-multilib-adjusted value will be used in multilibs. |
| 12326 | # As a side effect, we have to subst CFLAGS ourselves. |
| 12327 | |
| 12328 | |
| 12329 | |
| 12330 | ac_ext=cpp |
| 12331 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12332 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12333 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12334 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12335 | if test -z "$CXX"; then |
| 12336 | if test -n "$CCC"; then |
| 12337 | CXX=$CCC |
| 12338 | else |
| 12339 | if test -n "$ac_tool_prefix"; then |
| 12340 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12341 | do |
| 12342 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12343 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12345 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12346 | if ${ac_cv_prog_CXX+:} false; then : |
| 12347 | $as_echo_n "(cached) " >&6 |
| 12348 | else |
| 12349 | if test -n "$CXX"; then |
| 12350 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 12351 | else |
| 12352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12353 | for as_dir in $PATH |
| 12354 | do |
| 12355 | IFS=$as_save_IFS |
| 12356 | test -z "$as_dir" && as_dir=. |
| 12357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12359 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 12360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12361 | break 2 |
| 12362 | fi |
| 12363 | done |
| 12364 | done |
| 12365 | IFS=$as_save_IFS |
| 12366 | |
| 12367 | fi |
| 12368 | fi |
| 12369 | CXX=$ac_cv_prog_CXX |
| 12370 | if test -n "$CXX"; then |
| 12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 12372 | $as_echo "$CXX" >&6; } |
| 12373 | else |
| 12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12375 | $as_echo "no" >&6; } |
| 12376 | fi |
| 12377 | |
| 12378 | |
| 12379 | test -n "$CXX" && break |
| 12380 | done |
| 12381 | fi |
| 12382 | if test -z "$CXX"; then |
| 12383 | ac_ct_CXX=$CXX |
| 12384 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12385 | do |
| 12386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12387 | set dummy $ac_prog; ac_word=$2 |
| 12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12389 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12390 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 12391 | $as_echo_n "(cached) " >&6 |
| 12392 | else |
| 12393 | if test -n "$ac_ct_CXX"; then |
| 12394 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 12395 | else |
| 12396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12397 | for as_dir in $PATH |
| 12398 | do |
| 12399 | IFS=$as_save_IFS |
| 12400 | test -z "$as_dir" && as_dir=. |
| 12401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12403 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 12404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12405 | break 2 |
| 12406 | fi |
| 12407 | done |
| 12408 | done |
| 12409 | IFS=$as_save_IFS |
| 12410 | |
| 12411 | fi |
| 12412 | fi |
| 12413 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 12414 | if test -n "$ac_ct_CXX"; then |
| 12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 12416 | $as_echo "$ac_ct_CXX" >&6; } |
| 12417 | else |
| 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12419 | $as_echo "no" >&6; } |
| 12420 | fi |
| 12421 | |
| 12422 | |
| 12423 | test -n "$ac_ct_CXX" && break |
| 12424 | done |
| 12425 | |
| 12426 | if test "x$ac_ct_CXX" = x; then |
| 12427 | CXX="g++" |
| 12428 | else |
| 12429 | case $cross_compiling:$ac_tool_warned in |
| 12430 | yes:) |
| 12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12432 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12433 | ac_tool_warned=yes ;; |
| 12434 | esac |
| 12435 | CXX=$ac_ct_CXX |
| 12436 | fi |
| 12437 | fi |
| 12438 | |
| 12439 | fi |
| 12440 | fi |
| 12441 | # Provide some information about the compiler. |
| 12442 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 12443 | set X $ac_compile |
| 12444 | ac_compiler=$2 |
| 12445 | for ac_option in --version -v -V -qversion; do |
| 12446 | { { ac_try="$ac_compiler $ac_option >&5" |
| 12447 | case "(($ac_try" in |
| 12448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12449 | *) ac_try_echo=$ac_try;; |
| 12450 | esac |
| 12451 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12452 | $as_echo "$ac_try_echo"; } >&5 |
| 12453 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 12454 | ac_status=$? |
| 12455 | if test -s conftest.err; then |
| 12456 | sed '10a\ |
| 12457 | ... rest of stderr output deleted ... |
| 12458 | 10q' conftest.err >conftest.er1 |
| 12459 | cat conftest.er1 >&5 |
| 12460 | fi |
| 12461 | rm -f conftest.er1 conftest.err |
| 12462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12463 | test $ac_status = 0; } |
| 12464 | done |
| 12465 | |
| 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 12467 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 12468 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 12469 | $as_echo_n "(cached) " >&6 |
| 12470 | else |
| 12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12472 | /* end confdefs.h. */ |
| 12473 | |
| 12474 | int |
| 12475 | main () |
| 12476 | { |
| 12477 | #ifndef __GNUC__ |
| 12478 | choke me |
| 12479 | #endif |
| 12480 | |
| 12481 | ; |
| 12482 | return 0; |
| 12483 | } |
| 12484 | _ACEOF |
| 12485 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12486 | ac_compiler_gnu=yes |
| 12487 | else |
| 12488 | ac_compiler_gnu=no |
| 12489 | fi |
| 12490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12491 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 12492 | |
| 12493 | fi |
| 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 12495 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 12496 | if test $ac_compiler_gnu = yes; then |
| 12497 | GXX=yes |
| 12498 | else |
| 12499 | GXX= |
| 12500 | fi |
| 12501 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 12502 | ac_save_CXXFLAGS=$CXXFLAGS |
| 12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 12504 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 12505 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 12506 | $as_echo_n "(cached) " >&6 |
| 12507 | else |
| 12508 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 12509 | ac_cxx_werror_flag=yes |
| 12510 | ac_cv_prog_cxx_g=no |
| 12511 | CXXFLAGS="-g" |
| 12512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12513 | /* end confdefs.h. */ |
| 12514 | |
| 12515 | int |
| 12516 | main () |
| 12517 | { |
| 12518 | |
| 12519 | ; |
| 12520 | return 0; |
| 12521 | } |
| 12522 | _ACEOF |
| 12523 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12524 | ac_cv_prog_cxx_g=yes |
| 12525 | else |
| 12526 | CXXFLAGS="" |
| 12527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12528 | /* end confdefs.h. */ |
| 12529 | |
| 12530 | int |
| 12531 | main () |
| 12532 | { |
| 12533 | |
| 12534 | ; |
| 12535 | return 0; |
| 12536 | } |
| 12537 | _ACEOF |
| 12538 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12539 | |
| 12540 | else |
| 12541 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12542 | CXXFLAGS="-g" |
| 12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12544 | /* end confdefs.h. */ |
| 12545 | |
| 12546 | int |
| 12547 | main () |
| 12548 | { |
| 12549 | |
| 12550 | ; |
| 12551 | return 0; |
| 12552 | } |
| 12553 | _ACEOF |
| 12554 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12555 | ac_cv_prog_cxx_g=yes |
| 12556 | fi |
| 12557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12558 | fi |
| 12559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12560 | fi |
| 12561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12562 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12563 | fi |
| 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 12565 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 12566 | if test "$ac_test_CXXFLAGS" = set; then |
| 12567 | CXXFLAGS=$ac_save_CXXFLAGS |
| 12568 | elif test $ac_cv_prog_cxx_g = yes; then |
| 12569 | if test "$GXX" = yes; then |
| 12570 | CXXFLAGS="-g -O2" |
| 12571 | else |
| 12572 | CXXFLAGS="-g" |
| 12573 | fi |
| 12574 | else |
| 12575 | if test "$GXX" = yes; then |
| 12576 | CXXFLAGS="-O2" |
| 12577 | else |
| 12578 | CXXFLAGS= |
| 12579 | fi |
| 12580 | fi |
| 12581 | ac_ext=cpp |
| 12582 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12583 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12584 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12585 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12586 | |
| 12587 | depcc="$CXX" am_compiler_list= |
| 12588 | |
| 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 12590 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 12591 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 12592 | $as_echo_n "(cached) " >&6 |
| 12593 | else |
| 12594 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 12595 | # We make a subdir and do the tests there. Otherwise we can end up |
| 12596 | # making bogus files that we don't know about and never remove. For |
| 12597 | # instance it was reported that on HP-UX the gcc test will end up |
| 12598 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 12599 | # in D". |
| 12600 | rm -rf conftest.dir |
| 12601 | mkdir conftest.dir |
| 12602 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 12603 | # using a relative directory. |
| 12604 | cp "$am_depcomp" conftest.dir |
| 12605 | cd conftest.dir |
| 12606 | # We will build objects and dependencies in a subdirectory because |
| 12607 | # it helps to detect inapplicable dependency modes. For instance |
| 12608 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 12609 | # side effect of compilation, but ICC will put the dependencies in |
| 12610 | # the current directory while Tru64 will put them in the object |
| 12611 | # directory. |
| 12612 | mkdir sub |
| 12613 | |
| 12614 | am_cv_CXX_dependencies_compiler_type=none |
| 12615 | if test "$am_compiler_list" = ""; then |
| 12616 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 12617 | fi |
| 12618 | am__universal=false |
| 12619 | case " $depcc " in #( |
| 12620 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 12621 | esac |
| 12622 | |
| 12623 | for depmode in $am_compiler_list; do |
| 12624 | # Setup a source with many dependencies, because some compilers |
| 12625 | # like to wrap large dependency lists on column 80 (with \), and |
| 12626 | # we should not choose a depcomp mode which is confused by this. |
| 12627 | # |
| 12628 | # We need to recreate these files for each test, as the compiler may |
| 12629 | # overwrite some of them when testing with obscure command lines. |
| 12630 | # This happens at least with the AIX C compiler. |
| 12631 | : > sub/conftest.c |
| 12632 | for i in 1 2 3 4 5 6; do |
| 12633 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 12634 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 12635 | # Solaris 10 /bin/sh. |
| 12636 | echo '/* dummy */' > sub/conftst$i.h |
| 12637 | done |
| 12638 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 12639 | |
| 12640 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 12641 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 12642 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 12643 | # versions had trouble with output in subdirs. |
| 12644 | am__obj=sub/conftest.${OBJEXT-o} |
| 12645 | am__minus_obj="-o $am__obj" |
| 12646 | case $depmode in |
| 12647 | gcc) |
| 12648 | # This depmode causes a compiler race in universal mode. |
| 12649 | test "$am__universal" = false || continue |
| 12650 | ;; |
| 12651 | nosideeffect) |
| 12652 | # After this tag, mechanisms are not by side-effect, so they'll |
| 12653 | # only be used when explicitly requested. |
| 12654 | if test "x$enable_dependency_tracking" = xyes; then |
| 12655 | continue |
| 12656 | else |
| 12657 | break |
| 12658 | fi |
| 12659 | ;; |
| 12660 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 12661 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 12662 | # not run yet. These depmodes are late enough in the game, and |
| 12663 | # so weak that their functioning should not be impacted. |
| 12664 | am__obj=conftest.${OBJEXT-o} |
| 12665 | am__minus_obj= |
| 12666 | ;; |
| 12667 | none) break ;; |
| 12668 | esac |
| 12669 | if depmode=$depmode \ |
| 12670 | source=sub/conftest.c object=$am__obj \ |
| 12671 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 12672 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 12673 | >/dev/null 2>conftest.err && |
| 12674 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 12675 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 12676 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 12677 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 12678 | # icc doesn't choke on unknown options, it will just issue warnings |
| 12679 | # or remarks (even with -Werror). So we grep stderr for any message |
| 12680 | # that says an option was ignored or not supported. |
| 12681 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 12682 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 12683 | # The diagnosis changed in icc 8.0: |
| 12684 | # icc: Command line remark: option '-MP' not supported |
| 12685 | if (grep 'ignoring option' conftest.err || |
| 12686 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 12687 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 12688 | break |
| 12689 | fi |
| 12690 | fi |
| 12691 | done |
| 12692 | |
| 12693 | cd .. |
| 12694 | rm -rf conftest.dir |
| 12695 | else |
| 12696 | am_cv_CXX_dependencies_compiler_type=none |
| 12697 | fi |
| 12698 | |
| 12699 | fi |
| 12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 12701 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 12702 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 12703 | |
| 12704 | if |
| 12705 | test "x$enable_dependency_tracking" != xno \ |
| 12706 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 12707 | am__fastdepCXX_TRUE= |
| 12708 | am__fastdepCXX_FALSE='#' |
| 12709 | else |
| 12710 | am__fastdepCXX_TRUE='#' |
| 12711 | am__fastdepCXX_FALSE= |
| 12712 | fi |
| 12713 | |
| 12714 | |
| 12715 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12716 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12717 | (test "X$CXX" != "Xg++"))) ; then |
| 12718 | ac_ext=cpp |
| 12719 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12724 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12725 | if test -z "$CXXCPP"; then |
| 12726 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 12727 | $as_echo_n "(cached) " >&6 |
| 12728 | else |
| 12729 | # Double quotes because CXXCPP needs to be expanded |
| 12730 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12731 | do |
| 12732 | ac_preproc_ok=false |
| 12733 | for ac_cxx_preproc_warn_flag in '' yes |
| 12734 | do |
| 12735 | # Use a header file that comes with gcc, so configuring glibc |
| 12736 | # with a fresh cross-compiler works. |
| 12737 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12738 | # <limits.h> exists even on freestanding compilers. |
| 12739 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12740 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12742 | /* end confdefs.h. */ |
| 12743 | #ifdef __STDC__ |
| 12744 | # include <limits.h> |
| 12745 | #else |
| 12746 | # include <assert.h> |
| 12747 | #endif |
| 12748 | Syntax error |
| 12749 | _ACEOF |
| 12750 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12751 | |
| 12752 | else |
| 12753 | # Broken: fails on valid input. |
| 12754 | continue |
| 12755 | fi |
| 12756 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12757 | |
| 12758 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12759 | # can be detected and how. |
| 12760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12761 | /* end confdefs.h. */ |
| 12762 | #include <ac_nonexistent.h> |
| 12763 | _ACEOF |
| 12764 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12765 | # Broken: success on invalid input. |
| 12766 | continue |
| 12767 | else |
| 12768 | # Passes both tests. |
| 12769 | ac_preproc_ok=: |
| 12770 | break |
| 12771 | fi |
| 12772 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12773 | |
| 12774 | done |
| 12775 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12776 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12777 | if $ac_preproc_ok; then : |
| 12778 | break |
| 12779 | fi |
| 12780 | |
| 12781 | done |
| 12782 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12783 | |
| 12784 | fi |
| 12785 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12786 | else |
| 12787 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12788 | fi |
| 12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12790 | $as_echo "$CXXCPP" >&6; } |
| 12791 | ac_preproc_ok=false |
| 12792 | for ac_cxx_preproc_warn_flag in '' yes |
| 12793 | do |
| 12794 | # Use a header file that comes with gcc, so configuring glibc |
| 12795 | # with a fresh cross-compiler works. |
| 12796 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12797 | # <limits.h> exists even on freestanding compilers. |
| 12798 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12799 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12801 | /* end confdefs.h. */ |
| 12802 | #ifdef __STDC__ |
| 12803 | # include <limits.h> |
| 12804 | #else |
| 12805 | # include <assert.h> |
| 12806 | #endif |
| 12807 | Syntax error |
| 12808 | _ACEOF |
| 12809 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12810 | |
| 12811 | else |
| 12812 | # Broken: fails on valid input. |
| 12813 | continue |
| 12814 | fi |
| 12815 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12816 | |
| 12817 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12818 | # can be detected and how. |
| 12819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12820 | /* end confdefs.h. */ |
| 12821 | #include <ac_nonexistent.h> |
| 12822 | _ACEOF |
| 12823 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12824 | # Broken: success on invalid input. |
| 12825 | continue |
| 12826 | else |
| 12827 | # Passes both tests. |
| 12828 | ac_preproc_ok=: |
| 12829 | break |
| 12830 | fi |
| 12831 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12832 | |
| 12833 | done |
| 12834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12835 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12836 | if $ac_preproc_ok; then : |
| 12837 | |
| 12838 | else |
| 12839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12841 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12842 | See \`config.log' for more details" "$LINENO" 5; } |
| 12843 | fi |
| 12844 | |
| 12845 | ac_ext=cpp |
| 12846 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12850 | |
| 12851 | else |
| 12852 | _lt_caught_CXX_error=yes |
| 12853 | fi |
| 12854 | |
| 12855 | ac_ext=cpp |
| 12856 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12860 | |
| 12861 | archive_cmds_need_lc_CXX=no |
| 12862 | allow_undefined_flag_CXX= |
| 12863 | always_export_symbols_CXX=no |
| 12864 | archive_expsym_cmds_CXX= |
| 12865 | compiler_needs_object_CXX=no |
| 12866 | export_dynamic_flag_spec_CXX= |
| 12867 | hardcode_direct_CXX=no |
| 12868 | hardcode_direct_absolute_CXX=no |
| 12869 | hardcode_libdir_flag_spec_CXX= |
| 12870 | hardcode_libdir_flag_spec_ld_CXX= |
| 12871 | hardcode_libdir_separator_CXX= |
| 12872 | hardcode_minus_L_CXX=no |
| 12873 | hardcode_shlibpath_var_CXX=unsupported |
| 12874 | hardcode_automatic_CXX=no |
| 12875 | inherit_rpath_CXX=no |
| 12876 | module_cmds_CXX= |
| 12877 | module_expsym_cmds_CXX= |
| 12878 | link_all_deplibs_CXX=unknown |
| 12879 | old_archive_cmds_CXX=$old_archive_cmds |
| 12880 | reload_flag_CXX=$reload_flag |
| 12881 | reload_cmds_CXX=$reload_cmds |
| 12882 | no_undefined_flag_CXX= |
| 12883 | whole_archive_flag_spec_CXX= |
| 12884 | enable_shared_with_static_runtimes_CXX=no |
| 12885 | |
| 12886 | # Source file extension for C++ test sources. |
| 12887 | ac_ext=cpp |
| 12888 | |
| 12889 | # Object file extension for compiled C++ test sources. |
| 12890 | objext=o |
| 12891 | objext_CXX=$objext |
| 12892 | |
| 12893 | # No sense in running all these tests if we already determined that |
| 12894 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12895 | # are currently assumed to apply to all compilers on this platform, |
| 12896 | # and will be corrupted by setting them based on a non-working compiler. |
| 12897 | if test "$_lt_caught_CXX_error" != yes; then |
| 12898 | # Code to be used in simple compile tests |
| 12899 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12900 | |
| 12901 | # Code to be used in simple link tests |
| 12902 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 12903 | |
| 12904 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12905 | |
| 12906 | |
| 12907 | |
| 12908 | |
| 12909 | |
| 12910 | |
| 12911 | # If no C compiler was specified, use CC. |
| 12912 | LTCC=${LTCC-"$CC"} |
| 12913 | |
| 12914 | # If no C compiler flags were specified, use CFLAGS. |
| 12915 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12916 | |
| 12917 | # Allow CC to be a program name with arguments. |
| 12918 | compiler=$CC |
| 12919 | |
| 12920 | |
| 12921 | # save warnings/boilerplate of simple test code |
| 12922 | ac_outfile=conftest.$ac_objext |
| 12923 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12924 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12925 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12926 | $RM conftest* |
| 12927 | |
| 12928 | ac_outfile=conftest.$ac_objext |
| 12929 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12930 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12931 | _lt_linker_boilerplate=`cat conftest.err` |
| 12932 | $RM -r conftest* |
| 12933 | |
| 12934 | |
| 12935 | # Allow CC to be a program name with arguments. |
| 12936 | lt_save_CC=$CC |
| 12937 | lt_save_LD=$LD |
| 12938 | lt_save_GCC=$GCC |
| 12939 | GCC=$GXX |
| 12940 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12941 | lt_save_path_LD=$lt_cv_path_LD |
| 12942 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12943 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12944 | else |
| 12945 | $as_unset lt_cv_prog_gnu_ld |
| 12946 | fi |
| 12947 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12948 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12949 | else |
| 12950 | $as_unset lt_cv_path_LD |
| 12951 | fi |
| 12952 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12953 | CC=${CXX-"c++"} |
| 12954 | compiler=$CC |
| 12955 | compiler_CXX=$CC |
| 12956 | for cc_temp in $compiler""; do |
| 12957 | case $cc_temp in |
| 12958 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12959 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12960 | \-*) ;; |
| 12961 | *) break;; |
| 12962 | esac |
| 12963 | done |
| 12964 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12965 | |
| 12966 | |
| 12967 | if test -n "$compiler"; then |
| 12968 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12969 | # no_builtin_flag separately |
| 12970 | if test "$GXX" = yes; then |
| 12971 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12972 | else |
| 12973 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12974 | fi |
| 12975 | |
| 12976 | if test "$GXX" = yes; then |
| 12977 | # Set up default GNU C++ configuration |
| 12978 | |
| 12979 | |
| 12980 | |
| 12981 | # Check whether --with-gnu-ld was given. |
| 12982 | if test "${with_gnu_ld+set}" = set; then : |
| 12983 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 12984 | else |
| 12985 | with_gnu_ld=no |
| 12986 | fi |
| 12987 | |
| 12988 | ac_prog=ld |
| 12989 | if test "$GCC" = yes; then |
| 12990 | # Check if gcc -print-prog-name=ld gives a path. |
| 12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 12992 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 12993 | case $host in |
| 12994 | *-*-mingw*) |
| 12995 | # gcc leaves a trailing carriage return which upsets mingw |
| 12996 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12997 | *) |
| 12998 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12999 | esac |
| 13000 | case $ac_prog in |
| 13001 | # Accept absolute paths. |
| 13002 | [\\/]* | ?:[\\/]*) |
| 13003 | re_direlt='/[^/][^/]*/\.\./' |
| 13004 | # Canonicalize the pathname of ld |
| 13005 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 13006 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 13007 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 13008 | done |
| 13009 | test -z "$LD" && LD="$ac_prog" |
| 13010 | ;; |
| 13011 | "") |
| 13012 | # If it fails, then pretend we aren't using GCC. |
| 13013 | ac_prog=ld |
| 13014 | ;; |
| 13015 | *) |
| 13016 | # If it is relative, then search for the first ld in PATH. |
| 13017 | with_gnu_ld=unknown |
| 13018 | ;; |
| 13019 | esac |
| 13020 | elif test "$with_gnu_ld" = yes; then |
| 13021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 13022 | $as_echo_n "checking for GNU ld... " >&6; } |
| 13023 | else |
| 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 13025 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 13026 | fi |
| 13027 | if ${lt_cv_path_LD+:} false; then : |
| 13028 | $as_echo_n "(cached) " >&6 |
| 13029 | else |
| 13030 | if test -z "$LD"; then |
| 13031 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13032 | for ac_dir in $PATH; do |
| 13033 | IFS="$lt_save_ifs" |
| 13034 | test -z "$ac_dir" && ac_dir=. |
| 13035 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 13036 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 13037 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 13038 | # but apparently some variants of GNU ld only accept -v. |
| 13039 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 13040 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 13041 | *GNU* | *'with BFD'*) |
| 13042 | test "$with_gnu_ld" != no && break |
| 13043 | ;; |
| 13044 | *) |
| 13045 | test "$with_gnu_ld" != yes && break |
| 13046 | ;; |
| 13047 | esac |
| 13048 | fi |
| 13049 | done |
| 13050 | IFS="$lt_save_ifs" |
| 13051 | else |
| 13052 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 13053 | fi |
| 13054 | fi |
| 13055 | |
| 13056 | LD="$lt_cv_path_LD" |
| 13057 | if test -n "$LD"; then |
| 13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 13059 | $as_echo "$LD" >&6; } |
| 13060 | else |
| 13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13062 | $as_echo "no" >&6; } |
| 13063 | fi |
| 13064 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 13066 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 13067 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 13068 | $as_echo_n "(cached) " >&6 |
| 13069 | else |
| 13070 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 13071 | case `$LD -v 2>&1 </dev/null` in |
| 13072 | *GNU* | *'with BFD'*) |
| 13073 | lt_cv_prog_gnu_ld=yes |
| 13074 | ;; |
| 13075 | *) |
| 13076 | lt_cv_prog_gnu_ld=no |
| 13077 | ;; |
| 13078 | esac |
| 13079 | fi |
| 13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 13081 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 13082 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 13083 | |
| 13084 | |
| 13085 | |
| 13086 | |
| 13087 | |
| 13088 | |
| 13089 | |
| 13090 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 13091 | # archiving commands below assume that GNU ld is being used. |
| 13092 | if test "$with_gnu_ld" = yes; then |
| 13093 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13094 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13095 | |
| 13096 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13097 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13098 | |
| 13099 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13100 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 13101 | # investigate it a little bit more. (MM) |
| 13102 | wlarc='${wl}' |
| 13103 | |
| 13104 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13105 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 13106 | $GREP 'no-whole-archive' > /dev/null; then |
| 13107 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13108 | else |
| 13109 | whole_archive_flag_spec_CXX= |
| 13110 | fi |
| 13111 | else |
| 13112 | with_gnu_ld=no |
| 13113 | wlarc= |
| 13114 | |
| 13115 | # A generic and very simple default shared library creation |
| 13116 | # command for GNU C++ for the case where it uses the native |
| 13117 | # linker, instead of GNU ld. If possible, this setting should |
| 13118 | # overridden to take advantage of the native linker features on |
| 13119 | # the platform it is being used on. |
| 13120 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13121 | fi |
| 13122 | |
| 13123 | # Commands to make compiler produce verbose output that lists |
| 13124 | # what "hidden" libraries, object files and flags are used when |
| 13125 | # linking a shared library. |
| 13126 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13127 | |
| 13128 | else |
| 13129 | GXX=no |
| 13130 | with_gnu_ld=no |
| 13131 | wlarc= |
| 13132 | fi |
| 13133 | |
| 13134 | # PORTME: fill in a description of your system's C++ link characteristics |
| 13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13136 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 13137 | ld_shlibs_CXX=yes |
| 13138 | case $host_os in |
| 13139 | aix3*) |
| 13140 | # FIXME: insert proper C++ library support |
| 13141 | ld_shlibs_CXX=no |
| 13142 | ;; |
| 13143 | aix[4-9]*) |
| 13144 | if test "$host_cpu" = ia64; then |
| 13145 | # On IA64, the linker does run time linking by default, so we don't |
| 13146 | # have to do anything special. |
| 13147 | aix_use_runtimelinking=no |
| 13148 | exp_sym_flag='-Bexport' |
| 13149 | no_entry_flag="" |
| 13150 | else |
| 13151 | aix_use_runtimelinking=no |
| 13152 | |
| 13153 | # Test if we are trying to use run time linking or normal |
| 13154 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13155 | # need to do runtime linking. |
| 13156 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 13157 | for ld_flag in $LDFLAGS; do |
| 13158 | case $ld_flag in |
| 13159 | *-brtl*) |
| 13160 | aix_use_runtimelinking=yes |
| 13161 | break |
| 13162 | ;; |
| 13163 | esac |
| 13164 | done |
| 13165 | ;; |
| 13166 | esac |
| 13167 | |
| 13168 | exp_sym_flag='-bexport' |
| 13169 | no_entry_flag='-bnoentry' |
| 13170 | fi |
| 13171 | |
| 13172 | # When large executables or shared objects are built, AIX ld can |
| 13173 | # have problems creating the table of contents. If linking a library |
| 13174 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13175 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13176 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13177 | |
| 13178 | archive_cmds_CXX='' |
| 13179 | hardcode_direct_CXX=yes |
| 13180 | hardcode_direct_absolute_CXX=yes |
| 13181 | hardcode_libdir_separator_CXX=':' |
| 13182 | link_all_deplibs_CXX=yes |
| 13183 | file_list_spec_CXX='${wl}-f,' |
| 13184 | |
| 13185 | if test "$GXX" = yes; then |
| 13186 | case $host_os in aix4.[012]|aix4.[012].*) |
| 13187 | # We only want to do this on AIX 4.2 and lower, the check |
| 13188 | # below for broken collect2 doesn't work under 4.3+ |
| 13189 | collect2name=`${CC} -print-prog-name=collect2` |
| 13190 | if test -f "$collect2name" && |
| 13191 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 13192 | then |
| 13193 | # We have reworked collect2 |
| 13194 | : |
| 13195 | else |
| 13196 | # We have old collect2 |
| 13197 | hardcode_direct_CXX=unsupported |
| 13198 | # It fails to find uninstalled libraries when the uninstalled |
| 13199 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13200 | # to unsupported forces relinking |
| 13201 | hardcode_minus_L_CXX=yes |
| 13202 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13203 | hardcode_libdir_separator_CXX= |
| 13204 | fi |
| 13205 | esac |
| 13206 | shared_flag='-shared' |
| 13207 | if test "$aix_use_runtimelinking" = yes; then |
| 13208 | shared_flag="$shared_flag "'${wl}-G' |
| 13209 | fi |
| 13210 | else |
| 13211 | # not using gcc |
| 13212 | if test "$host_cpu" = ia64; then |
| 13213 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13214 | # chokes on -Wl,-G. The following line is correct: |
| 13215 | shared_flag='-G' |
| 13216 | else |
| 13217 | if test "$aix_use_runtimelinking" = yes; then |
| 13218 | shared_flag='${wl}-G' |
| 13219 | else |
| 13220 | shared_flag='${wl}-bM:SRE' |
| 13221 | fi |
| 13222 | fi |
| 13223 | fi |
| 13224 | |
| 13225 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 13226 | # It seems that -bexpall does not export symbols beginning with |
| 13227 | # underscore (_), so it is better to generate a list of symbols to |
| 13228 | # export. |
| 13229 | always_export_symbols_CXX=yes |
| 13230 | if test "$aix_use_runtimelinking" = yes; then |
| 13231 | # Warning - without using the other runtime loading flags (-brtl), |
| 13232 | # -berok will link without error, but may produce a broken library. |
| 13233 | allow_undefined_flag_CXX='-berok' |
| 13234 | # Determine the default libpath from the value encoded in an empty |
| 13235 | # executable. |
| 13236 | if test x$gcc_no_link = xyes; then |
| 13237 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 13238 | fi |
| 13239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13240 | /* end confdefs.h. */ |
| 13241 | |
| 13242 | int |
| 13243 | main () |
| 13244 | { |
| 13245 | |
| 13246 | ; |
| 13247 | return 0; |
| 13248 | } |
| 13249 | _ACEOF |
| 13250 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13251 | |
| 13252 | lt_aix_libpath_sed=' |
| 13253 | /Import File Strings/,/^$/ { |
| 13254 | /^0/ { |
| 13255 | s/^0 *\(.*\)$/\1/ |
| 13256 | p |
| 13257 | } |
| 13258 | }' |
| 13259 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13260 | # Check for a 64-bit object if we didn't find anything. |
| 13261 | if test -z "$aix_libpath"; then |
| 13262 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13263 | fi |
| 13264 | fi |
| 13265 | rm -f core conftest.err conftest.$ac_objext \ |
| 13266 | conftest$ac_exeext conftest.$ac_ext |
| 13267 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13268 | |
| 13269 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13270 | |
| 13271 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 13272 | else |
| 13273 | if test "$host_cpu" = ia64; then |
| 13274 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 13275 | allow_undefined_flag_CXX="-z nodefs" |
| 13276 | archive_expsym_cmds_CXX="\$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" |
| 13277 | else |
| 13278 | # Determine the default libpath from the value encoded in an |
| 13279 | # empty executable. |
| 13280 | if test x$gcc_no_link = xyes; then |
| 13281 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 13282 | fi |
| 13283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13284 | /* end confdefs.h. */ |
| 13285 | |
| 13286 | int |
| 13287 | main () |
| 13288 | { |
| 13289 | |
| 13290 | ; |
| 13291 | return 0; |
| 13292 | } |
| 13293 | _ACEOF |
| 13294 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13295 | |
| 13296 | lt_aix_libpath_sed=' |
| 13297 | /Import File Strings/,/^$/ { |
| 13298 | /^0/ { |
| 13299 | s/^0 *\(.*\)$/\1/ |
| 13300 | p |
| 13301 | } |
| 13302 | }' |
| 13303 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13304 | # Check for a 64-bit object if we didn't find anything. |
| 13305 | if test -z "$aix_libpath"; then |
| 13306 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13307 | fi |
| 13308 | fi |
| 13309 | rm -f core conftest.err conftest.$ac_objext \ |
| 13310 | conftest$ac_exeext conftest.$ac_ext |
| 13311 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13312 | |
| 13313 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13314 | # Warning - without using the other run time loading flags, |
| 13315 | # -berok will link without error, but may produce a broken library. |
| 13316 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 13317 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 13318 | if test "$with_gnu_ld" = yes; then |
| 13319 | # We only use this code for GNU lds that support --whole-archive. |
| 13320 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13321 | else |
| 13322 | # Exported symbols can be pulled into shared objects from archives |
| 13323 | whole_archive_flag_spec_CXX='$convenience' |
| 13324 | fi |
| 13325 | archive_cmds_need_lc_CXX=yes |
| 13326 | # This is similar to how AIX traditionally builds its shared |
| 13327 | # libraries. |
| 13328 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13329 | fi |
| 13330 | fi |
| 13331 | ;; |
| 13332 | |
| 13333 | beos*) |
| 13334 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13335 | allow_undefined_flag_CXX=unsupported |
| 13336 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 13337 | # support --undefined. This deserves some investigation. FIXME |
| 13338 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13339 | else |
| 13340 | ld_shlibs_CXX=no |
| 13341 | fi |
| 13342 | ;; |
| 13343 | |
| 13344 | chorus*) |
| 13345 | case $cc_basename in |
| 13346 | *) |
| 13347 | # FIXME: insert proper C++ library support |
| 13348 | ld_shlibs_CXX=no |
| 13349 | ;; |
| 13350 | esac |
| 13351 | ;; |
| 13352 | |
| 13353 | cygwin* | mingw* | pw32* | cegcc*) |
| 13354 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 13355 | # as there is no search path for DLLs. |
| 13356 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13357 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 13358 | allow_undefined_flag_CXX=unsupported |
| 13359 | always_export_symbols_CXX=no |
| 13360 | enable_shared_with_static_runtimes_CXX=yes |
| 13361 | |
| 13362 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13363 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13364 | # If the export-symbols file already is a .def file (1st line |
| 13365 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13366 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13367 | cp $export_symbols $output_objdir/$soname.def; |
| 13368 | else |
| 13369 | echo EXPORTS > $output_objdir/$soname.def; |
| 13370 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13371 | fi~ |
| 13372 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13373 | else |
| 13374 | ld_shlibs_CXX=no |
| 13375 | fi |
| 13376 | ;; |
| 13377 | darwin* | rhapsody*) |
| 13378 | |
| 13379 | |
| 13380 | |
| 13381 | # Publish an arg to allow the user to select that Darwin host (and target) |
| 13382 | # libraries should be given install-names like @rpath/libfoo.dylib. This |
| 13383 | # requires that the user of the library then adds an 'rpath' to the DSO that |
| 13384 | # needs access. |
| 13385 | # NOTE: there are defaults below, for systems that support rpaths. The person |
| 13386 | # configuring can override the defaults for any system version that supports |
| 13387 | # them - they are, however, forced off for system versions without support. |
| 13388 | # Check whether --enable-darwin-at-rpath was given. |
| 13389 | if test "${enable_darwin_at_rpath+set}" = set; then : |
| 13390 | enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then |
| 13391 | # This is not supported before macOS 10.5 / Darwin9. |
| 13392 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in |
| 13393 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) |
| 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 |
| 13395 | $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} |
| 13396 | enable_darwin_at_rpath=no |
| 13397 | ;; |
| 13398 | esac |
| 13399 | fi |
| 13400 | else |
| 13401 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in |
| 13402 | # As above, before 10.5 / Darwin9 this does not work. |
| 13403 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) |
| 13404 | enable_darwin_at_rpath=no |
| 13405 | ;; |
| 13406 | |
| 13407 | # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use |
| 13408 | # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key |
| 13409 | # system executables (e.g. /bin/sh). Force rpaths on for these systems. |
| 13410 | UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) |
| 13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 |
| 13412 | $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} |
| 13413 | enable_darwin_at_rpath=yes |
| 13414 | ;; |
| 13415 | # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can |
| 13416 | # work with either DYLD_LIBRARY_PATH or embedded rpaths. |
| 13417 | |
| 13418 | esac |
| 13419 | |
| 13420 | fi |
| 13421 | |
| 13422 | |
| 13423 | archive_cmds_need_lc_CXX=no |
| 13424 | hardcode_direct_CXX=no |
| 13425 | hardcode_automatic_CXX=yes |
| 13426 | hardcode_shlibpath_var_CXX=unsupported |
| 13427 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 13428 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 13429 | else |
| 13430 | whole_archive_flag_spec_CXX='' |
| 13431 | fi |
| 13432 | link_all_deplibs_CXX=yes |
| 13433 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 13434 | case $cc_basename in |
| 13435 | ifort*) _lt_dar_can_shared=yes ;; |
| 13436 | *) _lt_dar_can_shared=$GCC ;; |
| 13437 | esac |
| 13438 | if test "$_lt_dar_can_shared" = "yes"; then |
| 13439 | output_verbose_link_cmd=func_echo_all |
| 13440 | _lt_install_name='\$rpath/\$soname' |
| 13441 | if test "x$enable_darwin_at_rpath" = "xyes"; then |
| 13442 | _lt_install_name='@rpath/\$soname' |
| 13443 | fi |
| 13444 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" |
| 13445 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 13446 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13447 | module_expsym_cmds_CXX="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}" |
| 13448 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 13449 | _lt_install_name='\$rpath/\$soname' |
| 13450 | if test "x$enable_darwin_at_rpath" = "xyes"; then |
| 13451 | _lt_install_name='@rpath/\$soname' |
| 13452 | fi |
| 13453 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}" |
| 13454 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13455 | fi |
| 13456 | |
| 13457 | else |
| 13458 | ld_shlibs_CXX=no |
| 13459 | fi |
| 13460 | |
| 13461 | ;; |
| 13462 | |
| 13463 | dgux*) |
| 13464 | case $cc_basename in |
| 13465 | ec++*) |
| 13466 | # FIXME: insert proper C++ library support |
| 13467 | ld_shlibs_CXX=no |
| 13468 | ;; |
| 13469 | ghcx*) |
| 13470 | # Green Hills C++ Compiler |
| 13471 | # FIXME: insert proper C++ library support |
| 13472 | ld_shlibs_CXX=no |
| 13473 | ;; |
| 13474 | *) |
| 13475 | # FIXME: insert proper C++ library support |
| 13476 | ld_shlibs_CXX=no |
| 13477 | ;; |
| 13478 | esac |
| 13479 | ;; |
| 13480 | |
| 13481 | freebsd2.*) |
| 13482 | # C++ shared libraries reported to be fairly broken before |
| 13483 | # switch to ELF |
| 13484 | ld_shlibs_CXX=no |
| 13485 | ;; |
| 13486 | |
| 13487 | freebsd-elf*) |
| 13488 | archive_cmds_need_lc_CXX=no |
| 13489 | ;; |
| 13490 | |
| 13491 | freebsd* | dragonfly*) |
| 13492 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 13493 | # conventions |
| 13494 | ld_shlibs_CXX=yes |
| 13495 | ;; |
| 13496 | |
| 13497 | gnu*) |
| 13498 | ;; |
| 13499 | |
| 13500 | haiku*) |
| 13501 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13502 | link_all_deplibs_CXX=yes |
| 13503 | ;; |
| 13504 | |
| 13505 | hpux9*) |
| 13506 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13507 | hardcode_libdir_separator_CXX=: |
| 13508 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13509 | hardcode_direct_CXX=yes |
| 13510 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13511 | # but as the default |
| 13512 | # location of the library. |
| 13513 | |
| 13514 | case $cc_basename in |
| 13515 | CC*) |
| 13516 | # FIXME: insert proper C++ library support |
| 13517 | ld_shlibs_CXX=no |
| 13518 | ;; |
| 13519 | aCC*) |
| 13520 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13521 | # Commands to make compiler produce verbose output that lists |
| 13522 | # what "hidden" libraries, object files and flags are used when |
| 13523 | # linking a shared library. |
| 13524 | # |
| 13525 | # There doesn't appear to be a way to prevent this compiler from |
| 13526 | # explicitly linking system object files so we need to strip them |
| 13527 | # from the output so that they don't get included in the library |
| 13528 | # dependencies. |
| 13529 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13530 | ;; |
| 13531 | *) |
| 13532 | if test "$GXX" = yes; then |
| 13533 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13534 | else |
| 13535 | # FIXME: insert proper C++ library support |
| 13536 | ld_shlibs_CXX=no |
| 13537 | fi |
| 13538 | ;; |
| 13539 | esac |
| 13540 | ;; |
| 13541 | |
| 13542 | hpux10*|hpux11*) |
| 13543 | if test $with_gnu_ld = no; then |
| 13544 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13545 | hardcode_libdir_separator_CXX=: |
| 13546 | |
| 13547 | case $host_cpu in |
| 13548 | hppa*64*|ia64*) |
| 13549 | ;; |
| 13550 | *) |
| 13551 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13552 | ;; |
| 13553 | esac |
| 13554 | fi |
| 13555 | case $host_cpu in |
| 13556 | hppa*64*|ia64*) |
| 13557 | hardcode_direct_CXX=no |
| 13558 | hardcode_shlibpath_var_CXX=no |
| 13559 | ;; |
| 13560 | *) |
| 13561 | hardcode_direct_CXX=yes |
| 13562 | hardcode_direct_absolute_CXX=yes |
| 13563 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13564 | # but as the default |
| 13565 | # location of the library. |
| 13566 | ;; |
| 13567 | esac |
| 13568 | |
| 13569 | case $cc_basename in |
| 13570 | CC*) |
| 13571 | # FIXME: insert proper C++ library support |
| 13572 | ld_shlibs_CXX=no |
| 13573 | ;; |
| 13574 | aCC*) |
| 13575 | case $host_cpu in |
| 13576 | hppa*64*) |
| 13577 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13578 | ;; |
| 13579 | ia64*) |
| 13580 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13581 | ;; |
| 13582 | *) |
| 13583 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13584 | ;; |
| 13585 | esac |
| 13586 | # Commands to make compiler produce verbose output that lists |
| 13587 | # what "hidden" libraries, object files and flags are used when |
| 13588 | # linking a shared library. |
| 13589 | # |
| 13590 | # There doesn't appear to be a way to prevent this compiler from |
| 13591 | # explicitly linking system object files so we need to strip them |
| 13592 | # from the output so that they don't get included in the library |
| 13593 | # dependencies. |
| 13594 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13595 | ;; |
| 13596 | *) |
| 13597 | if test "$GXX" = yes; then |
| 13598 | if test $with_gnu_ld = no; then |
| 13599 | case $host_cpu in |
| 13600 | hppa*64*) |
| 13601 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13602 | ;; |
| 13603 | ia64*) |
| 13604 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13605 | ;; |
| 13606 | *) |
| 13607 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13608 | ;; |
| 13609 | esac |
| 13610 | fi |
| 13611 | else |
| 13612 | # FIXME: insert proper C++ library support |
| 13613 | ld_shlibs_CXX=no |
| 13614 | fi |
| 13615 | ;; |
| 13616 | esac |
| 13617 | ;; |
| 13618 | |
| 13619 | interix[3-9]*) |
| 13620 | hardcode_direct_CXX=no |
| 13621 | hardcode_shlibpath_var_CXX=no |
| 13622 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13623 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13624 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13625 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13626 | # default) and relocated if they conflict, which is a slow very memory |
| 13627 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13628 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13629 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13630 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13631 | archive_expsym_cmds_CXX='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' |
| 13632 | ;; |
| 13633 | irix5* | irix6*) |
| 13634 | case $cc_basename in |
| 13635 | CC*) |
| 13636 | # SGI C++ |
| 13637 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13638 | |
| 13639 | # Archives containing C++ object files must be created using |
| 13640 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13641 | # necessary to make sure instantiated templates are included |
| 13642 | # in the archive. |
| 13643 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13644 | ;; |
| 13645 | *) |
| 13646 | if test "$GXX" = yes; then |
| 13647 | if test "$with_gnu_ld" = no; then |
| 13648 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 13649 | else |
| 13650 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| 13651 | fi |
| 13652 | fi |
| 13653 | link_all_deplibs_CXX=yes |
| 13654 | ;; |
| 13655 | esac |
| 13656 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13657 | hardcode_libdir_separator_CXX=: |
| 13658 | inherit_rpath_CXX=yes |
| 13659 | ;; |
| 13660 | |
| 13661 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13662 | case $cc_basename in |
| 13663 | KCC*) |
| 13664 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13665 | |
| 13666 | # KCC will only create a shared library if the output file |
| 13667 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13668 | # to its proper name (with version) after linking. |
| 13669 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13670 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 13671 | # Commands to make compiler produce verbose output that lists |
| 13672 | # what "hidden" libraries, object files and flags are used when |
| 13673 | # linking a shared library. |
| 13674 | # |
| 13675 | # There doesn't appear to be a way to prevent this compiler from |
| 13676 | # explicitly linking system object files so we need to strip them |
| 13677 | # from the output so that they don't get included in the library |
| 13678 | # dependencies. |
| 13679 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13680 | |
| 13681 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13682 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13683 | |
| 13684 | # Archives containing C++ object files must be created using |
| 13685 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13686 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13687 | ;; |
| 13688 | icpc* | ecpc* ) |
| 13689 | # Intel C++ |
| 13690 | with_gnu_ld=yes |
| 13691 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13692 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13693 | # earlier do not add the objects themselves. |
| 13694 | case `$CC -V 2>&1` in |
| 13695 | *"Version 7."*) |
| 13696 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13697 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13698 | ;; |
| 13699 | *) # Version 8.0 or newer |
| 13700 | tmp_idyn= |
| 13701 | case $host_cpu in |
| 13702 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13703 | esac |
| 13704 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13705 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13706 | ;; |
| 13707 | esac |
| 13708 | archive_cmds_need_lc_CXX=no |
| 13709 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13710 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13711 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13712 | ;; |
| 13713 | pgCC* | pgcpp*) |
| 13714 | # Portland Group C++ compiler |
| 13715 | case `$CC -V` in |
| 13716 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 13717 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13718 | rm -rf $tpldir~ |
| 13719 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13720 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 13721 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13722 | rm -rf $tpldir~ |
| 13723 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13724 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 13725 | $RANLIB $oldlib' |
| 13726 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13727 | rm -rf $tpldir~ |
| 13728 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13729 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13730 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13731 | rm -rf $tpldir~ |
| 13732 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13733 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 13734 | ;; |
| 13735 | *) # Version 6 and above use weak symbols |
| 13736 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13737 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 13738 | ;; |
| 13739 | esac |
| 13740 | |
| 13741 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13742 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13743 | whole_archive_flag_spec_CXX='${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' |
| 13744 | ;; |
| 13745 | cxx*) |
| 13746 | # Compaq C++ |
| 13747 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13748 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 13749 | |
| 13750 | runpath_var=LD_RUN_PATH |
| 13751 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13752 | hardcode_libdir_separator_CXX=: |
| 13753 | |
| 13754 | # Commands to make compiler produce verbose output that lists |
| 13755 | # what "hidden" libraries, object files and flags are used when |
| 13756 | # linking a shared library. |
| 13757 | # |
| 13758 | # There doesn't appear to be a way to prevent this compiler from |
| 13759 | # explicitly linking system object files so we need to strip them |
| 13760 | # from the output so that they don't get included in the library |
| 13761 | # dependencies. |
| 13762 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| 13763 | ;; |
| 13764 | xl* | mpixl* | bgxl*) |
| 13765 | # IBM XL 8.0 on PPC, with GNU ld |
| 13766 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13767 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13768 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13769 | if test "x$supports_anon_versioning" = xyes; then |
| 13770 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13771 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13772 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13773 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13774 | fi |
| 13775 | ;; |
| 13776 | *) |
| 13777 | case `$CC -V 2>&1 | sed 5q` in |
| 13778 | *Sun\ C*) |
| 13779 | # Sun C++ 5.9 |
| 13780 | no_undefined_flag_CXX=' -zdefs' |
| 13781 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13782 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 13783 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13784 | whole_archive_flag_spec_CXX='${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' |
| 13785 | compiler_needs_object_CXX=yes |
| 13786 | |
| 13787 | # Not sure whether something based on |
| 13788 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13789 | # would be better. |
| 13790 | output_verbose_link_cmd='func_echo_all' |
| 13791 | |
| 13792 | # Archives containing C++ object files must be created using |
| 13793 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13794 | # necessary to make sure instantiated templates are included |
| 13795 | # in the archive. |
| 13796 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13797 | ;; |
| 13798 | esac |
| 13799 | ;; |
| 13800 | esac |
| 13801 | ;; |
| 13802 | |
| 13803 | lynxos*) |
| 13804 | # FIXME: insert proper C++ library support |
| 13805 | ld_shlibs_CXX=no |
| 13806 | ;; |
| 13807 | |
| 13808 | m88k*) |
| 13809 | # FIXME: insert proper C++ library support |
| 13810 | ld_shlibs_CXX=no |
| 13811 | ;; |
| 13812 | |
| 13813 | mvs*) |
| 13814 | case $cc_basename in |
| 13815 | cxx*) |
| 13816 | # FIXME: insert proper C++ library support |
| 13817 | ld_shlibs_CXX=no |
| 13818 | ;; |
| 13819 | *) |
| 13820 | # FIXME: insert proper C++ library support |
| 13821 | ld_shlibs_CXX=no |
| 13822 | ;; |
| 13823 | esac |
| 13824 | ;; |
| 13825 | |
| 13826 | netbsd*) |
| 13827 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13828 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13829 | wlarc= |
| 13830 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13831 | hardcode_direct_CXX=yes |
| 13832 | hardcode_shlibpath_var_CXX=no |
| 13833 | fi |
| 13834 | # Workaround some broken pre-1.5 toolchains |
| 13835 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 13836 | ;; |
| 13837 | |
| 13838 | *nto* | *qnx*) |
| 13839 | ld_shlibs_CXX=yes |
| 13840 | ;; |
| 13841 | |
| 13842 | openbsd2*) |
| 13843 | # C++ shared libraries are fairly broken |
| 13844 | ld_shlibs_CXX=no |
| 13845 | ;; |
| 13846 | |
| 13847 | openbsd*) |
| 13848 | if test -f /usr/libexec/ld.so; then |
| 13849 | hardcode_direct_CXX=yes |
| 13850 | hardcode_shlibpath_var_CXX=no |
| 13851 | hardcode_direct_absolute_CXX=yes |
| 13852 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13853 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13854 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13855 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13856 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13857 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13858 | fi |
| 13859 | output_verbose_link_cmd=func_echo_all |
| 13860 | else |
| 13861 | ld_shlibs_CXX=no |
| 13862 | fi |
| 13863 | ;; |
| 13864 | |
| 13865 | osf3* | osf4* | osf5*) |
| 13866 | case $cc_basename in |
| 13867 | KCC*) |
| 13868 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13869 | |
| 13870 | # KCC will only create a shared library if the output file |
| 13871 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13872 | # to its proper name (with version) after linking. |
| 13873 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13874 | |
| 13875 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13876 | hardcode_libdir_separator_CXX=: |
| 13877 | |
| 13878 | # Archives containing C++ object files must be created using |
| 13879 | # the KAI C++ compiler. |
| 13880 | case $host in |
| 13881 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13882 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13883 | esac |
| 13884 | ;; |
| 13885 | RCC*) |
| 13886 | # Rational C++ 2.4.1 |
| 13887 | # FIXME: insert proper C++ library support |
| 13888 | ld_shlibs_CXX=no |
| 13889 | ;; |
| 13890 | cxx*) |
| 13891 | case $host in |
| 13892 | osf3*) |
| 13893 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13894 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13895 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13896 | ;; |
| 13897 | *) |
| 13898 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13899 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13900 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13901 | echo "-hidden">> $lib.exp~ |
| 13902 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 13903 | $RM $lib.exp' |
| 13904 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13905 | ;; |
| 13906 | esac |
| 13907 | |
| 13908 | hardcode_libdir_separator_CXX=: |
| 13909 | |
| 13910 | # Commands to make compiler produce verbose output that lists |
| 13911 | # what "hidden" libraries, object files and flags are used when |
| 13912 | # linking a shared library. |
| 13913 | # |
| 13914 | # There doesn't appear to be a way to prevent this compiler from |
| 13915 | # explicitly linking system object files so we need to strip them |
| 13916 | # from the output so that they don't get included in the library |
| 13917 | # dependencies. |
| 13918 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13919 | ;; |
| 13920 | *) |
| 13921 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13922 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13923 | case $host in |
| 13924 | osf3*) |
| 13925 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 13926 | ;; |
| 13927 | *) |
| 13928 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 13929 | ;; |
| 13930 | esac |
| 13931 | |
| 13932 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13933 | hardcode_libdir_separator_CXX=: |
| 13934 | |
| 13935 | # Commands to make compiler produce verbose output that lists |
| 13936 | # what "hidden" libraries, object files and flags are used when |
| 13937 | # linking a shared library. |
| 13938 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13939 | |
| 13940 | else |
| 13941 | # FIXME: insert proper C++ library support |
| 13942 | ld_shlibs_CXX=no |
| 13943 | fi |
| 13944 | ;; |
| 13945 | esac |
| 13946 | ;; |
| 13947 | |
| 13948 | psos*) |
| 13949 | # FIXME: insert proper C++ library support |
| 13950 | ld_shlibs_CXX=no |
| 13951 | ;; |
| 13952 | |
| 13953 | sunos4*) |
| 13954 | case $cc_basename in |
| 13955 | CC*) |
| 13956 | # Sun C++ 4.x |
| 13957 | # FIXME: insert proper C++ library support |
| 13958 | ld_shlibs_CXX=no |
| 13959 | ;; |
| 13960 | lcc*) |
| 13961 | # Lucid |
| 13962 | # FIXME: insert proper C++ library support |
| 13963 | ld_shlibs_CXX=no |
| 13964 | ;; |
| 13965 | *) |
| 13966 | # FIXME: insert proper C++ library support |
| 13967 | ld_shlibs_CXX=no |
| 13968 | ;; |
| 13969 | esac |
| 13970 | ;; |
| 13971 | |
| 13972 | solaris*) |
| 13973 | case $cc_basename in |
| 13974 | CC*) |
| 13975 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13976 | archive_cmds_need_lc_CXX=yes |
| 13977 | no_undefined_flag_CXX=' -zdefs' |
| 13978 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13979 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13980 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13981 | |
| 13982 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13983 | hardcode_shlibpath_var_CXX=no |
| 13984 | case $host_os in |
| 13985 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13986 | *) |
| 13987 | # The compiler driver will combine and reorder linker options, |
| 13988 | # but understands `-z linker_flag'. |
| 13989 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13990 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13991 | ;; |
| 13992 | esac |
| 13993 | link_all_deplibs_CXX=yes |
| 13994 | |
| 13995 | output_verbose_link_cmd='func_echo_all' |
| 13996 | |
| 13997 | # Archives containing C++ object files must be created using |
| 13998 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13999 | # necessary to make sure instantiated templates are included |
| 14000 | # in the archive. |
| 14001 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 14002 | ;; |
| 14003 | gcx*) |
| 14004 | # Green Hills C++ Compiler |
| 14005 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14006 | |
| 14007 | # The C++ compiler must be used to create the archive. |
| 14008 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 14009 | ;; |
| 14010 | *) |
| 14011 | # GNU C++ compiler with Solaris linker |
| 14012 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 14013 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 14014 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 14015 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14016 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14017 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 14018 | |
| 14019 | # Commands to make compiler produce verbose output that lists |
| 14020 | # what "hidden" libraries, object files and flags are used when |
| 14021 | # linking a shared library. |
| 14022 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 14023 | else |
| 14024 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 14025 | # platform. |
| 14026 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14027 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14028 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 14029 | |
| 14030 | # Commands to make compiler produce verbose output that lists |
| 14031 | # what "hidden" libraries, object files and flags are used when |
| 14032 | # linking a shared library. |
| 14033 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 14034 | fi |
| 14035 | |
| 14036 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 14037 | case $host_os in |
| 14038 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14039 | *) |
| 14040 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 14041 | ;; |
| 14042 | esac |
| 14043 | fi |
| 14044 | ;; |
| 14045 | esac |
| 14046 | ;; |
| 14047 | |
| 14048 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 14049 | no_undefined_flag_CXX='${wl}-z,text' |
| 14050 | archive_cmds_need_lc_CXX=no |
| 14051 | hardcode_shlibpath_var_CXX=no |
| 14052 | runpath_var='LD_RUN_PATH' |
| 14053 | |
| 14054 | case $cc_basename in |
| 14055 | CC*) |
| 14056 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14057 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14058 | ;; |
| 14059 | *) |
| 14060 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14061 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14062 | ;; |
| 14063 | esac |
| 14064 | ;; |
| 14065 | |
| 14066 | sysv5* | sco3.2v5* | sco5v6*) |
| 14067 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14068 | # link with -lc, and that would cause any symbols used from libc to |
| 14069 | # always be unresolved, which means just about no library would |
| 14070 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14071 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14072 | # as -z defs. |
| 14073 | no_undefined_flag_CXX='${wl}-z,text' |
| 14074 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 14075 | archive_cmds_need_lc_CXX=no |
| 14076 | hardcode_shlibpath_var_CXX=no |
| 14077 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 14078 | hardcode_libdir_separator_CXX=':' |
| 14079 | link_all_deplibs_CXX=yes |
| 14080 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 14081 | runpath_var='LD_RUN_PATH' |
| 14082 | |
| 14083 | case $cc_basename in |
| 14084 | CC*) |
| 14085 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14086 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14087 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 14088 | '"$old_archive_cmds_CXX" |
| 14089 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 14090 | '"$reload_cmds_CXX" |
| 14091 | ;; |
| 14092 | *) |
| 14093 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14094 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14095 | ;; |
| 14096 | esac |
| 14097 | ;; |
| 14098 | |
| 14099 | tandem*) |
| 14100 | case $cc_basename in |
| 14101 | NCC*) |
| 14102 | # NonStop-UX NCC 3.20 |
| 14103 | # FIXME: insert proper C++ library support |
| 14104 | ld_shlibs_CXX=no |
| 14105 | ;; |
| 14106 | *) |
| 14107 | # FIXME: insert proper C++ library support |
| 14108 | ld_shlibs_CXX=no |
| 14109 | ;; |
| 14110 | esac |
| 14111 | ;; |
| 14112 | |
| 14113 | vxworks*) |
| 14114 | # For VxWorks ports, we assume the use of a GNU linker with |
| 14115 | # standard elf conventions. |
| 14116 | ld_shlibs_CXX=yes |
| 14117 | ;; |
| 14118 | |
| 14119 | *) |
| 14120 | # FIXME: insert proper C++ library support |
| 14121 | ld_shlibs_CXX=no |
| 14122 | ;; |
| 14123 | esac |
| 14124 | |
| 14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14126 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14127 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14128 | |
| 14129 | GCC_CXX="$GXX" |
| 14130 | LD_CXX="$LD" |
| 14131 | |
| 14132 | ## CAVEAT EMPTOR: |
| 14133 | ## There is no encapsulation within the following macros, do not change |
| 14134 | ## the running order or otherwise move them around unless you know exactly |
| 14135 | ## what you are doing... |
| 14136 | # Dependencies to place before and after the object being linked: |
| 14137 | predep_objects_CXX= |
| 14138 | postdep_objects_CXX= |
| 14139 | predeps_CXX= |
| 14140 | postdeps_CXX= |
| 14141 | compiler_lib_search_path_CXX= |
| 14142 | |
| 14143 | cat > conftest.$ac_ext <<_LT_EOF |
| 14144 | class Foo |
| 14145 | { |
| 14146 | public: |
| 14147 | Foo (void) { a = 0; } |
| 14148 | private: |
| 14149 | int a; |
| 14150 | }; |
| 14151 | _LT_EOF |
| 14152 | |
| 14153 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14154 | (eval $ac_compile) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14157 | test $ac_status = 0; }; then |
| 14158 | # Parse the compiler output and extract the necessary |
| 14159 | # objects, libraries and library flags. |
| 14160 | |
| 14161 | # Sentinel used to keep track of whether or not we are before |
| 14162 | # the conftest object file. |
| 14163 | pre_test_object_deps_done=no |
| 14164 | |
| 14165 | for p in `eval "$output_verbose_link_cmd"`; do |
| 14166 | case $p in |
| 14167 | |
| 14168 | -L* | -R* | -l*) |
| 14169 | # Some compilers place space between "-{L,R}" and the path. |
| 14170 | # Remove the space. |
| 14171 | if test $p = "-L" || |
| 14172 | test $p = "-R"; then |
| 14173 | prev=$p |
| 14174 | continue |
| 14175 | else |
| 14176 | prev= |
| 14177 | fi |
| 14178 | |
| 14179 | if test "$pre_test_object_deps_done" = no; then |
| 14180 | case $p in |
| 14181 | -L* | -R*) |
| 14182 | # Internal compiler library paths should come after those |
| 14183 | # provided the user. The postdeps already come after the |
| 14184 | # user supplied libs so there is no need to process them. |
| 14185 | if test -z "$compiler_lib_search_path_CXX"; then |
| 14186 | compiler_lib_search_path_CXX="${prev}${p}" |
| 14187 | else |
| 14188 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 14189 | fi |
| 14190 | ;; |
| 14191 | # The "-l" case would never come before the object being |
| 14192 | # linked, so don't bother handling this case. |
| 14193 | esac |
| 14194 | else |
| 14195 | if test -z "$postdeps_CXX"; then |
| 14196 | postdeps_CXX="${prev}${p}" |
| 14197 | else |
| 14198 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 14199 | fi |
| 14200 | fi |
| 14201 | ;; |
| 14202 | |
| 14203 | *.$objext) |
| 14204 | # This assumes that the test object file only shows up |
| 14205 | # once in the compiler output. |
| 14206 | if test "$p" = "conftest.$objext"; then |
| 14207 | pre_test_object_deps_done=yes |
| 14208 | continue |
| 14209 | fi |
| 14210 | |
| 14211 | if test "$pre_test_object_deps_done" = no; then |
| 14212 | if test -z "$predep_objects_CXX"; then |
| 14213 | predep_objects_CXX="$p" |
| 14214 | else |
| 14215 | predep_objects_CXX="$predep_objects_CXX $p" |
| 14216 | fi |
| 14217 | else |
| 14218 | if test -z "$postdep_objects_CXX"; then |
| 14219 | postdep_objects_CXX="$p" |
| 14220 | else |
| 14221 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 14222 | fi |
| 14223 | fi |
| 14224 | ;; |
| 14225 | |
| 14226 | *) ;; # Ignore the rest. |
| 14227 | |
| 14228 | esac |
| 14229 | done |
| 14230 | |
| 14231 | # Clean up. |
| 14232 | rm -f a.out a.exe |
| 14233 | else |
| 14234 | echo "libtool.m4: error: problem compiling CXX test program" |
| 14235 | fi |
| 14236 | |
| 14237 | $RM -f confest.$objext |
| 14238 | |
| 14239 | # PORTME: override above test on systems where it is broken |
| 14240 | case $host_os in |
| 14241 | interix[3-9]*) |
| 14242 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 14243 | # hack all around it, let's just trust "g++" to DTRT. |
| 14244 | predep_objects_CXX= |
| 14245 | postdep_objects_CXX= |
| 14246 | postdeps_CXX= |
| 14247 | ;; |
| 14248 | |
| 14249 | linux*) |
| 14250 | case `$CC -V 2>&1 | sed 5q` in |
| 14251 | *Sun\ C*) |
| 14252 | # Sun C++ 5.9 |
| 14253 | |
| 14254 | # The more standards-conforming stlport4 library is |
| 14255 | # incompatible with the Cstd library. Avoid specifying |
| 14256 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14257 | # -library=stlport4 depends on it. |
| 14258 | case " $CXX $CXXFLAGS " in |
| 14259 | *" -library=stlport4 "*) |
| 14260 | solaris_use_stlport4=yes |
| 14261 | ;; |
| 14262 | esac |
| 14263 | |
| 14264 | if test "$solaris_use_stlport4" != yes; then |
| 14265 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14266 | fi |
| 14267 | ;; |
| 14268 | esac |
| 14269 | ;; |
| 14270 | |
| 14271 | solaris*) |
| 14272 | case $cc_basename in |
| 14273 | CC*) |
| 14274 | # The more standards-conforming stlport4 library is |
| 14275 | # incompatible with the Cstd library. Avoid specifying |
| 14276 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14277 | # -library=stlport4 depends on it. |
| 14278 | case " $CXX $CXXFLAGS " in |
| 14279 | *" -library=stlport4 "*) |
| 14280 | solaris_use_stlport4=yes |
| 14281 | ;; |
| 14282 | esac |
| 14283 | |
| 14284 | # Adding this requires a known-good setup of shared libraries for |
| 14285 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 14286 | # archive will be linked into the output, leading to subtle bugs. |
| 14287 | if test "$solaris_use_stlport4" != yes; then |
| 14288 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14289 | fi |
| 14290 | ;; |
| 14291 | esac |
| 14292 | ;; |
| 14293 | esac |
| 14294 | |
| 14295 | |
| 14296 | case " $postdeps_CXX " in |
| 14297 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 14298 | esac |
| 14299 | compiler_lib_search_dirs_CXX= |
| 14300 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 14301 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 14302 | fi |
| 14303 | |
| 14304 | |
| 14305 | |
| 14306 | |
| 14307 | |
| 14308 | |
| 14309 | |
| 14310 | |
| 14311 | |
| 14312 | |
| 14313 | |
| 14314 | |
| 14315 | |
| 14316 | |
| 14317 | |
| 14318 | |
| 14319 | |
| 14320 | |
| 14321 | |
| 14322 | |
| 14323 | |
| 14324 | |
| 14325 | |
| 14326 | |
| 14327 | |
| 14328 | |
| 14329 | |
| 14330 | |
| 14331 | |
| 14332 | |
| 14333 | |
| 14334 | lt_prog_compiler_wl_CXX= |
| 14335 | lt_prog_compiler_pic_CXX= |
| 14336 | lt_prog_compiler_static_CXX= |
| 14337 | |
| 14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14339 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14340 | |
| 14341 | # C++ specific cases for pic, static, wl, etc. |
| 14342 | if test "$GXX" = yes; then |
| 14343 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14344 | lt_prog_compiler_static_CXX='-static' |
| 14345 | |
| 14346 | case $host_os in |
| 14347 | aix*) |
| 14348 | # All AIX code is PIC. |
| 14349 | if test "$host_cpu" = ia64; then |
| 14350 | # AIX 5 now supports IA64 processor |
| 14351 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14352 | fi |
| 14353 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14354 | ;; |
| 14355 | |
| 14356 | amigaos*) |
| 14357 | case $host_cpu in |
| 14358 | powerpc) |
| 14359 | # see comment about AmigaOS4 .so support |
| 14360 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14361 | ;; |
| 14362 | m68k) |
| 14363 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14364 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14365 | # like `-m68040'. |
| 14366 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 14367 | ;; |
| 14368 | esac |
| 14369 | ;; |
| 14370 | |
| 14371 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14372 | # PIC is the default for these OSes. |
| 14373 | ;; |
| 14374 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14375 | # This hack is so that the source file can tell whether it is being |
| 14376 | # built for inclusion in a dll (and should export symbols for example). |
| 14377 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14378 | # (--disable-auto-import) libraries |
| 14379 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14380 | ;; |
| 14381 | darwin* | rhapsody*) |
| 14382 | # PIC is the default on this platform |
| 14383 | # Common symbols not allowed in MH_DYLIB files |
| 14384 | lt_prog_compiler_pic_CXX='-fno-common' |
| 14385 | ;; |
| 14386 | *djgpp*) |
| 14387 | # DJGPP does not support shared libraries at all |
| 14388 | lt_prog_compiler_pic_CXX= |
| 14389 | ;; |
| 14390 | haiku*) |
| 14391 | # PIC is the default for Haiku. |
| 14392 | # The "-static" flag exists, but is broken. |
| 14393 | lt_prog_compiler_static_CXX= |
| 14394 | ;; |
| 14395 | interix[3-9]*) |
| 14396 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14397 | # Instead, we relocate shared libraries at runtime. |
| 14398 | ;; |
| 14399 | sysv4*MP*) |
| 14400 | if test -d /usr/nec; then |
| 14401 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 14402 | fi |
| 14403 | ;; |
| 14404 | hpux*) |
| 14405 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14406 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14407 | # sets the default TLS model and affects inlining. |
| 14408 | case $host_cpu in |
| 14409 | hppa*64*) |
| 14410 | ;; |
| 14411 | *) |
| 14412 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14413 | ;; |
| 14414 | esac |
| 14415 | ;; |
| 14416 | *qnx* | *nto*) |
| 14417 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14418 | # it will coredump. |
| 14419 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14420 | ;; |
| 14421 | *) |
| 14422 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14423 | ;; |
| 14424 | esac |
| 14425 | else |
| 14426 | case $host_os in |
| 14427 | aix[4-9]*) |
| 14428 | # All AIX code is PIC. |
| 14429 | if test "$host_cpu" = ia64; then |
| 14430 | # AIX 5 now supports IA64 processor |
| 14431 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14432 | else |
| 14433 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 14434 | fi |
| 14435 | ;; |
| 14436 | chorus*) |
| 14437 | case $cc_basename in |
| 14438 | cxch68*) |
| 14439 | # Green Hills C++ Compiler |
| 14440 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 14441 | ;; |
| 14442 | esac |
| 14443 | ;; |
| 14444 | dgux*) |
| 14445 | case $cc_basename in |
| 14446 | ec++*) |
| 14447 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14448 | ;; |
| 14449 | ghcx*) |
| 14450 | # Green Hills C++ Compiler |
| 14451 | lt_prog_compiler_pic_CXX='-pic' |
| 14452 | ;; |
| 14453 | *) |
| 14454 | ;; |
| 14455 | esac |
| 14456 | ;; |
| 14457 | freebsd* | dragonfly*) |
| 14458 | # FreeBSD uses GNU C++ |
| 14459 | ;; |
| 14460 | hpux9* | hpux10* | hpux11*) |
| 14461 | case $cc_basename in |
| 14462 | CC*) |
| 14463 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14464 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14465 | if test "$host_cpu" != ia64; then |
| 14466 | lt_prog_compiler_pic_CXX='+Z' |
| 14467 | fi |
| 14468 | ;; |
| 14469 | aCC*) |
| 14470 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14471 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14472 | case $host_cpu in |
| 14473 | hppa*64*|ia64*) |
| 14474 | # +Z the default |
| 14475 | ;; |
| 14476 | *) |
| 14477 | lt_prog_compiler_pic_CXX='+Z' |
| 14478 | ;; |
| 14479 | esac |
| 14480 | ;; |
| 14481 | *) |
| 14482 | ;; |
| 14483 | esac |
| 14484 | ;; |
| 14485 | interix*) |
| 14486 | # This is c89, which is MS Visual C++ (no shared libs) |
| 14487 | # Anyone wants to do a port? |
| 14488 | ;; |
| 14489 | irix5* | irix6* | nonstopux*) |
| 14490 | case $cc_basename in |
| 14491 | CC*) |
| 14492 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14493 | lt_prog_compiler_static_CXX='-non_shared' |
| 14494 | # CC pic flag -KPIC is the default. |
| 14495 | ;; |
| 14496 | *) |
| 14497 | ;; |
| 14498 | esac |
| 14499 | ;; |
| 14500 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14501 | case $cc_basename in |
| 14502 | KCC*) |
| 14503 | # KAI C++ Compiler |
| 14504 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14505 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14506 | ;; |
| 14507 | ecpc* ) |
| 14508 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 14509 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14510 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14511 | lt_prog_compiler_static_CXX='-static' |
| 14512 | ;; |
| 14513 | icpc* ) |
| 14514 | # Intel C++, used to be incompatible with GCC. |
| 14515 | # ICC 10 doesn't accept -KPIC any more. |
| 14516 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14517 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14518 | lt_prog_compiler_static_CXX='-static' |
| 14519 | ;; |
| 14520 | pgCC* | pgcpp*) |
| 14521 | # Portland Group C++ compiler |
| 14522 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14523 | lt_prog_compiler_pic_CXX='-fpic' |
| 14524 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14525 | ;; |
| 14526 | cxx*) |
| 14527 | # Compaq C++ |
| 14528 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14529 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14530 | lt_prog_compiler_pic_CXX= |
| 14531 | lt_prog_compiler_static_CXX='-non_shared' |
| 14532 | ;; |
| 14533 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 14534 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 14535 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14536 | lt_prog_compiler_pic_CXX='-qpic' |
| 14537 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 14538 | ;; |
| 14539 | *) |
| 14540 | case `$CC -V 2>&1 | sed 5q` in |
| 14541 | *Sun\ C*) |
| 14542 | # Sun C++ 5.9 |
| 14543 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14544 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14545 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14546 | ;; |
| 14547 | esac |
| 14548 | ;; |
| 14549 | esac |
| 14550 | ;; |
| 14551 | lynxos*) |
| 14552 | ;; |
| 14553 | m88k*) |
| 14554 | ;; |
| 14555 | mvs*) |
| 14556 | case $cc_basename in |
| 14557 | cxx*) |
| 14558 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14559 | ;; |
| 14560 | *) |
| 14561 | ;; |
| 14562 | esac |
| 14563 | ;; |
| 14564 | netbsd*) |
| 14565 | ;; |
| 14566 | *qnx* | *nto*) |
| 14567 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14568 | # it will coredump. |
| 14569 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14570 | ;; |
| 14571 | osf3* | osf4* | osf5*) |
| 14572 | case $cc_basename in |
| 14573 | KCC*) |
| 14574 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14575 | ;; |
| 14576 | RCC*) |
| 14577 | # Rational C++ 2.4.1 |
| 14578 | lt_prog_compiler_pic_CXX='-pic' |
| 14579 | ;; |
| 14580 | cxx*) |
| 14581 | # Digital/Compaq C++ |
| 14582 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14583 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14584 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14585 | lt_prog_compiler_pic_CXX= |
| 14586 | lt_prog_compiler_static_CXX='-non_shared' |
| 14587 | ;; |
| 14588 | *) |
| 14589 | ;; |
| 14590 | esac |
| 14591 | ;; |
| 14592 | psos*) |
| 14593 | ;; |
| 14594 | solaris*) |
| 14595 | case $cc_basename in |
| 14596 | CC*) |
| 14597 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14598 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14599 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14600 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14601 | ;; |
| 14602 | gcx*) |
| 14603 | # Green Hills C++ Compiler |
| 14604 | lt_prog_compiler_pic_CXX='-PIC' |
| 14605 | ;; |
| 14606 | *) |
| 14607 | ;; |
| 14608 | esac |
| 14609 | ;; |
| 14610 | sunos4*) |
| 14611 | case $cc_basename in |
| 14612 | CC*) |
| 14613 | # Sun C++ 4.x |
| 14614 | lt_prog_compiler_pic_CXX='-pic' |
| 14615 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14616 | ;; |
| 14617 | lcc*) |
| 14618 | # Lucid |
| 14619 | lt_prog_compiler_pic_CXX='-pic' |
| 14620 | ;; |
| 14621 | *) |
| 14622 | ;; |
| 14623 | esac |
| 14624 | ;; |
| 14625 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14626 | case $cc_basename in |
| 14627 | CC*) |
| 14628 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14629 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14630 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14631 | ;; |
| 14632 | esac |
| 14633 | ;; |
| 14634 | tandem*) |
| 14635 | case $cc_basename in |
| 14636 | NCC*) |
| 14637 | # NonStop-UX NCC 3.20 |
| 14638 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14639 | ;; |
| 14640 | *) |
| 14641 | ;; |
| 14642 | esac |
| 14643 | ;; |
| 14644 | vxworks*) |
| 14645 | ;; |
| 14646 | *) |
| 14647 | lt_prog_compiler_can_build_shared_CXX=no |
| 14648 | ;; |
| 14649 | esac |
| 14650 | fi |
| 14651 | |
| 14652 | case $host_os in |
| 14653 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14654 | *djgpp*) |
| 14655 | lt_prog_compiler_pic_CXX= |
| 14656 | ;; |
| 14657 | *) |
| 14658 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14659 | ;; |
| 14660 | esac |
| 14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 14662 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 14663 | |
| 14664 | |
| 14665 | |
| 14666 | # |
| 14667 | # Check to make sure the PIC flag actually works. |
| 14668 | # |
| 14669 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 14671 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 14672 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 14673 | $as_echo_n "(cached) " >&6 |
| 14674 | else |
| 14675 | lt_cv_prog_compiler_pic_works_CXX=no |
| 14676 | ac_outfile=conftest.$ac_objext |
| 14677 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14678 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14679 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14680 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14681 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14682 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14683 | # The option is referenced via a variable to avoid confusing sed. |
| 14684 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14685 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14686 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14687 | -e 's:$: $lt_compiler_flag:'` |
| 14688 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14689 | (eval "$lt_compile" 2>conftest.err) |
| 14690 | ac_status=$? |
| 14691 | cat conftest.err >&5 |
| 14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14693 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14694 | # The compiler can only warn and ignore the option if not recognized |
| 14695 | # So say no if there are warnings other than the usual output. |
| 14696 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14697 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14698 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14699 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 14700 | fi |
| 14701 | fi |
| 14702 | $RM conftest* |
| 14703 | |
| 14704 | fi |
| 14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 14706 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 14707 | |
| 14708 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 14709 | case $lt_prog_compiler_pic_CXX in |
| 14710 | "" | " "*) ;; |
| 14711 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14712 | esac |
| 14713 | else |
| 14714 | lt_prog_compiler_pic_CXX= |
| 14715 | lt_prog_compiler_can_build_shared_CXX=no |
| 14716 | fi |
| 14717 | |
| 14718 | fi |
| 14719 | |
| 14720 | |
| 14721 | |
| 14722 | # |
| 14723 | # Check to make sure the static flag actually works. |
| 14724 | # |
| 14725 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14727 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14728 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 14729 | $as_echo_n "(cached) " >&6 |
| 14730 | else |
| 14731 | lt_cv_prog_compiler_static_works_CXX=no |
| 14732 | save_LDFLAGS="$LDFLAGS" |
| 14733 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14734 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14735 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14736 | # The linker can only warn and ignore the option if not recognized |
| 14737 | # So say no if there are warnings |
| 14738 | if test -s conftest.err; then |
| 14739 | # Append any errors to the config.log. |
| 14740 | cat conftest.err 1>&5 |
| 14741 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14742 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14743 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14744 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14745 | fi |
| 14746 | else |
| 14747 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14748 | fi |
| 14749 | fi |
| 14750 | $RM -r conftest* |
| 14751 | LDFLAGS="$save_LDFLAGS" |
| 14752 | |
| 14753 | fi |
| 14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 14755 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 14756 | |
| 14757 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 14758 | : |
| 14759 | else |
| 14760 | lt_prog_compiler_static_CXX= |
| 14761 | fi |
| 14762 | |
| 14763 | |
| 14764 | |
| 14765 | |
| 14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14767 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14768 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14769 | $as_echo_n "(cached) " >&6 |
| 14770 | else |
| 14771 | lt_cv_prog_compiler_c_o_CXX=no |
| 14772 | $RM -r conftest 2>/dev/null |
| 14773 | mkdir conftest |
| 14774 | cd conftest |
| 14775 | mkdir out |
| 14776 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14777 | |
| 14778 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14779 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14780 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14781 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14782 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14783 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14784 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14785 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14786 | -e 's:$: $lt_compiler_flag:'` |
| 14787 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14788 | (eval "$lt_compile" 2>out/conftest.err) |
| 14789 | ac_status=$? |
| 14790 | cat out/conftest.err >&5 |
| 14791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14792 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14793 | then |
| 14794 | # The compiler can only warn and ignore the option if not recognized |
| 14795 | # So say no if there are warnings |
| 14796 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14797 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14798 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14799 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14800 | fi |
| 14801 | fi |
| 14802 | chmod u+w . 2>&5 |
| 14803 | $RM conftest* |
| 14804 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14805 | # template instantiation |
| 14806 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14807 | $RM out/* && rmdir out |
| 14808 | cd .. |
| 14809 | $RM -r conftest |
| 14810 | $RM conftest* |
| 14811 | |
| 14812 | fi |
| 14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14814 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14819 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14820 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14821 | $as_echo_n "(cached) " >&6 |
| 14822 | else |
| 14823 | lt_cv_prog_compiler_c_o_CXX=no |
| 14824 | $RM -r conftest 2>/dev/null |
| 14825 | mkdir conftest |
| 14826 | cd conftest |
| 14827 | mkdir out |
| 14828 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14829 | |
| 14830 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14831 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14832 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14833 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14834 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14835 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14836 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14837 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14838 | -e 's:$: $lt_compiler_flag:'` |
| 14839 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14840 | (eval "$lt_compile" 2>out/conftest.err) |
| 14841 | ac_status=$? |
| 14842 | cat out/conftest.err >&5 |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14845 | then |
| 14846 | # The compiler can only warn and ignore the option if not recognized |
| 14847 | # So say no if there are warnings |
| 14848 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14849 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14850 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14851 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14852 | fi |
| 14853 | fi |
| 14854 | chmod u+w . 2>&5 |
| 14855 | $RM conftest* |
| 14856 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14857 | # template instantiation |
| 14858 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14859 | $RM out/* && rmdir out |
| 14860 | cd .. |
| 14861 | $RM -r conftest |
| 14862 | $RM conftest* |
| 14863 | |
| 14864 | fi |
| 14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14866 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14867 | |
| 14868 | |
| 14869 | |
| 14870 | |
| 14871 | hard_links="nottested" |
| 14872 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14873 | # do not overwrite the value of need_locks provided by the user |
| 14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14875 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14876 | hard_links=yes |
| 14877 | $RM conftest* |
| 14878 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14879 | touch conftest.a |
| 14880 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14881 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14883 | $as_echo "$hard_links" >&6; } |
| 14884 | if test "$hard_links" = no; then |
| 14885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14886 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14887 | need_locks=warn |
| 14888 | fi |
| 14889 | else |
| 14890 | need_locks=no |
| 14891 | fi |
| 14892 | |
| 14893 | |
| 14894 | |
| 14895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14896 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14897 | |
| 14898 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14899 | case $host_os in |
| 14900 | aix[4-9]*) |
| 14901 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14902 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14903 | # Also, AIX nm treats weak defined symbols like other global defined |
| 14904 | # symbols, whereas GNU nm marks them as "W". |
| 14905 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14906 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 14907 | else |
| 14908 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 14909 | fi |
| 14910 | ;; |
| 14911 | pw32*) |
| 14912 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14913 | ;; |
| 14914 | cygwin* | mingw* | cegcc*) |
| 14915 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 14916 | ;; |
| 14917 | *) |
| 14918 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14919 | ;; |
| 14920 | esac |
| 14921 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14922 | |
| 14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14924 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14925 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14926 | |
| 14927 | with_gnu_ld_CXX=$with_gnu_ld |
| 14928 | |
| 14929 | |
| 14930 | |
| 14931 | |
| 14932 | |
| 14933 | |
| 14934 | # |
| 14935 | # Do we need to explicitly link libc? |
| 14936 | # |
| 14937 | case "x$archive_cmds_need_lc_CXX" in |
| 14938 | x|xyes) |
| 14939 | # Assume -lc should be added |
| 14940 | archive_cmds_need_lc_CXX=yes |
| 14941 | |
| 14942 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14943 | case $archive_cmds_CXX in |
| 14944 | *'~'*) |
| 14945 | # FIXME: we may have to deal with multi-command sequences. |
| 14946 | ;; |
| 14947 | '$CC '*) |
| 14948 | # Test whether the compiler implicitly links with -lc since on some |
| 14949 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14950 | # to ld, don't add -lc before -lgcc. |
| 14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14952 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14953 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 14954 | $as_echo_n "(cached) " >&6 |
| 14955 | else |
| 14956 | $RM conftest* |
| 14957 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14958 | |
| 14959 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14960 | (eval $ac_compile) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14963 | test $ac_status = 0; } 2>conftest.err; then |
| 14964 | soname=conftest |
| 14965 | lib=conftest |
| 14966 | libobjs=conftest.$ac_objext |
| 14967 | deplibs= |
| 14968 | wl=$lt_prog_compiler_wl_CXX |
| 14969 | pic_flag=$lt_prog_compiler_pic_CXX |
| 14970 | compiler_flags=-v |
| 14971 | linker_flags=-v |
| 14972 | verstring= |
| 14973 | output_objdir=. |
| 14974 | libname=conftest |
| 14975 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14976 | allow_undefined_flag_CXX= |
| 14977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14978 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14979 | ac_status=$? |
| 14980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14981 | test $ac_status = 0; } |
| 14982 | then |
| 14983 | lt_cv_archive_cmds_need_lc_CXX=no |
| 14984 | else |
| 14985 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 14986 | fi |
| 14987 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14988 | else |
| 14989 | cat conftest.err 1>&5 |
| 14990 | fi |
| 14991 | $RM conftest* |
| 14992 | |
| 14993 | fi |
| 14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 14995 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 14996 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 14997 | ;; |
| 14998 | esac |
| 14999 | fi |
| 15000 | ;; |
| 15001 | esac |
| 15002 | |
| 15003 | |
| 15004 | |
| 15005 | |
| 15006 | |
| 15007 | |
| 15008 | |
| 15009 | |
| 15010 | |
| 15011 | |
| 15012 | |
| 15013 | |
| 15014 | |
| 15015 | |
| 15016 | |
| 15017 | |
| 15018 | |
| 15019 | |
| 15020 | |
| 15021 | |
| 15022 | |
| 15023 | |
| 15024 | |
| 15025 | |
| 15026 | |
| 15027 | |
| 15028 | |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | |
| 15037 | |
| 15038 | |
| 15039 | |
| 15040 | |
| 15041 | |
| 15042 | |
| 15043 | |
| 15044 | |
| 15045 | |
| 15046 | |
| 15047 | |
| 15048 | |
| 15049 | |
| 15050 | |
| 15051 | |
| 15052 | |
| 15053 | |
| 15054 | |
| 15055 | |
| 15056 | |
| 15057 | |
| 15058 | |
| 15059 | |
| 15060 | |
| 15061 | |
| 15062 | |
| 15063 | |
| 15064 | |
| 15065 | |
| 15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 15067 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 15068 | |
| 15069 | library_names_spec= |
| 15070 | libname_spec='lib$name' |
| 15071 | soname_spec= |
| 15072 | shrext_cmds=".so" |
| 15073 | postinstall_cmds= |
| 15074 | postuninstall_cmds= |
| 15075 | finish_cmds= |
| 15076 | finish_eval= |
| 15077 | shlibpath_var= |
| 15078 | shlibpath_overrides_runpath=unknown |
| 15079 | version_type=none |
| 15080 | dynamic_linker="$host_os ld.so" |
| 15081 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15082 | need_lib_prefix=unknown |
| 15083 | hardcode_into_libs=no |
| 15084 | |
| 15085 | # when you set need_version to no, make sure it does not cause -set_version |
| 15086 | # flags to be left without arguments |
| 15087 | need_version=unknown |
| 15088 | |
| 15089 | case $host_os in |
| 15090 | aix3*) |
| 15091 | version_type=linux |
| 15092 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15093 | shlibpath_var=LIBPATH |
| 15094 | |
| 15095 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15097 | ;; |
| 15098 | |
| 15099 | aix[4-9]*) |
| 15100 | version_type=linux |
| 15101 | need_lib_prefix=no |
| 15102 | need_version=no |
| 15103 | hardcode_into_libs=yes |
| 15104 | if test "$host_cpu" = ia64; then |
| 15105 | # AIX 5 supports IA64 |
| 15106 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15107 | shlibpath_var=LD_LIBRARY_PATH |
| 15108 | else |
| 15109 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15110 | # for dependence libraries. The import file would start with |
| 15111 | # the line `#! .'. This would cause the generated library to |
| 15112 | # depend on `.', always an invalid library. This was fixed in |
| 15113 | # development snapshots of GCC prior to 3.0. |
| 15114 | case $host_os in |
| 15115 | aix4 | aix4.[01] | aix4.[01].*) |
| 15116 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15117 | echo ' yes ' |
| 15118 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 15119 | : |
| 15120 | else |
| 15121 | can_build_shared=no |
| 15122 | fi |
| 15123 | ;; |
| 15124 | esac |
| 15125 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15126 | # soname into executable. Probably we can add versioning support to |
| 15127 | # collect2, so additional links can be useful in future. |
| 15128 | if test "$aix_use_runtimelinking" = yes; then |
| 15129 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15130 | # instead of lib<name>.a to let people know that these are not |
| 15131 | # typical AIX shared libraries. |
| 15132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15133 | else |
| 15134 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15135 | # and later when we are not doing run time linking. |
| 15136 | library_names_spec='${libname}${release}.a $libname.a' |
| 15137 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15138 | fi |
| 15139 | shlibpath_var=LIBPATH |
| 15140 | fi |
| 15141 | ;; |
| 15142 | |
| 15143 | amigaos*) |
| 15144 | case $host_cpu in |
| 15145 | powerpc) |
| 15146 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 15147 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 15148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15149 | ;; |
| 15150 | m68k) |
| 15151 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15152 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15153 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' |
| 15154 | ;; |
| 15155 | esac |
| 15156 | ;; |
| 15157 | |
| 15158 | beos*) |
| 15159 | library_names_spec='${libname}${shared_ext}' |
| 15160 | dynamic_linker="$host_os ld.so" |
| 15161 | shlibpath_var=LIBRARY_PATH |
| 15162 | ;; |
| 15163 | |
| 15164 | bsdi[45]*) |
| 15165 | version_type=linux |
| 15166 | need_version=no |
| 15167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15170 | shlibpath_var=LD_LIBRARY_PATH |
| 15171 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15172 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15173 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15174 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15175 | # libtool to hard-code these into programs |
| 15176 | ;; |
| 15177 | |
| 15178 | cygwin* | mingw* | pw32* | cegcc*) |
| 15179 | version_type=windows |
| 15180 | shrext_cmds=".dll" |
| 15181 | need_version=no |
| 15182 | need_lib_prefix=no |
| 15183 | |
| 15184 | case $GCC,$host_os in |
| 15185 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 15186 | library_names_spec='$libname.dll.a' |
| 15187 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15188 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15189 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15190 | dldir=$destdir/`dirname \$dlpath`~ |
| 15191 | test -d \$dldir || mkdir -p \$dldir~ |
| 15192 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15193 | chmod a+x \$dldir/$dlname~ |
| 15194 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15195 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15196 | fi' |
| 15197 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15198 | dlpath=$dir/\$dldll~ |
| 15199 | $RM \$dlpath' |
| 15200 | shlibpath_overrides_runpath=yes |
| 15201 | |
| 15202 | case $host_os in |
| 15203 | cygwin*) |
| 15204 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15205 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15206 | |
| 15207 | ;; |
| 15208 | mingw* | cegcc*) |
| 15209 | # MinGW DLLs use traditional 'lib' prefix |
| 15210 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15211 | ;; |
| 15212 | pw32*) |
| 15213 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15214 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15215 | ;; |
| 15216 | esac |
| 15217 | ;; |
| 15218 | |
| 15219 | *) |
| 15220 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15221 | ;; |
| 15222 | esac |
| 15223 | dynamic_linker='Win32 ld.exe' |
| 15224 | # FIXME: first we should search . and the directory the executable is in |
| 15225 | shlibpath_var=PATH |
| 15226 | ;; |
| 15227 | |
| 15228 | darwin* | rhapsody*) |
| 15229 | dynamic_linker="$host_os dyld" |
| 15230 | version_type=darwin |
| 15231 | need_lib_prefix=no |
| 15232 | need_version=no |
| 15233 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15234 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15235 | shlibpath_overrides_runpath=yes |
| 15236 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15237 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15238 | |
| 15239 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15240 | ;; |
| 15241 | |
| 15242 | dgux*) |
| 15243 | version_type=linux |
| 15244 | need_lib_prefix=no |
| 15245 | need_version=no |
| 15246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15247 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15248 | shlibpath_var=LD_LIBRARY_PATH |
| 15249 | ;; |
| 15250 | |
| 15251 | freebsd* | dragonfly*) |
| 15252 | # DragonFly does not have aout. When/if they implement a new |
| 15253 | # versioning mechanism, adjust this. |
| 15254 | if test -x /usr/bin/objformat; then |
| 15255 | objformat=`/usr/bin/objformat` |
| 15256 | else |
| 15257 | case $host_os in |
| 15258 | freebsd[23].*) objformat=aout ;; |
| 15259 | *) objformat=elf ;; |
| 15260 | esac |
| 15261 | fi |
| 15262 | version_type=freebsd-$objformat |
| 15263 | case $version_type in |
| 15264 | freebsd-elf*) |
| 15265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15266 | need_version=no |
| 15267 | need_lib_prefix=no |
| 15268 | ;; |
| 15269 | freebsd-*) |
| 15270 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15271 | need_version=yes |
| 15272 | ;; |
| 15273 | esac |
| 15274 | shlibpath_var=LD_LIBRARY_PATH |
| 15275 | case $host_os in |
| 15276 | freebsd2.*) |
| 15277 | shlibpath_overrides_runpath=yes |
| 15278 | ;; |
| 15279 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15280 | shlibpath_overrides_runpath=yes |
| 15281 | hardcode_into_libs=yes |
| 15282 | ;; |
| 15283 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15284 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15285 | shlibpath_overrides_runpath=no |
| 15286 | hardcode_into_libs=yes |
| 15287 | ;; |
| 15288 | *) # from 4.6 on, and DragonFly |
| 15289 | shlibpath_overrides_runpath=yes |
| 15290 | hardcode_into_libs=yes |
| 15291 | ;; |
| 15292 | esac |
| 15293 | ;; |
| 15294 | |
| 15295 | haiku*) |
| 15296 | version_type=linux |
| 15297 | need_lib_prefix=no |
| 15298 | need_version=no |
| 15299 | dynamic_linker="$host_os runtime_loader" |
| 15300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15302 | shlibpath_var=LIBRARY_PATH |
| 15303 | shlibpath_overrides_runpath=yes |
| 15304 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15305 | hardcode_into_libs=yes |
| 15306 | ;; |
| 15307 | |
| 15308 | hpux9* | hpux10* | hpux11*) |
| 15309 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15310 | # link against other versions. |
| 15311 | version_type=sunos |
| 15312 | need_lib_prefix=no |
| 15313 | need_version=no |
| 15314 | case $host_cpu in |
| 15315 | ia64*) |
| 15316 | shrext_cmds='.so' |
| 15317 | hardcode_into_libs=yes |
| 15318 | dynamic_linker="$host_os dld.so" |
| 15319 | shlibpath_var=LD_LIBRARY_PATH |
| 15320 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15322 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15323 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15324 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15325 | else |
| 15326 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15327 | fi |
| 15328 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15329 | ;; |
| 15330 | hppa*64*) |
| 15331 | shrext_cmds='.sl' |
| 15332 | hardcode_into_libs=yes |
| 15333 | dynamic_linker="$host_os dld.sl" |
| 15334 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15335 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15337 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15338 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15339 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15340 | ;; |
| 15341 | *) |
| 15342 | shrext_cmds='.sl' |
| 15343 | dynamic_linker="$host_os dld.sl" |
| 15344 | shlibpath_var=SHLIB_PATH |
| 15345 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15347 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15348 | ;; |
| 15349 | esac |
| 15350 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 15351 | postinstall_cmds='chmod 555 $lib' |
| 15352 | # or fails outright, so override atomically: |
| 15353 | install_override_mode=555 |
| 15354 | ;; |
| 15355 | |
| 15356 | interix[3-9]*) |
| 15357 | version_type=linux |
| 15358 | need_lib_prefix=no |
| 15359 | need_version=no |
| 15360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15361 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15362 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15363 | shlibpath_var=LD_LIBRARY_PATH |
| 15364 | shlibpath_overrides_runpath=no |
| 15365 | hardcode_into_libs=yes |
| 15366 | ;; |
| 15367 | |
| 15368 | irix5* | irix6* | nonstopux*) |
| 15369 | case $host_os in |
| 15370 | nonstopux*) version_type=nonstopux ;; |
| 15371 | *) |
| 15372 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15373 | version_type=linux |
| 15374 | else |
| 15375 | version_type=irix |
| 15376 | fi ;; |
| 15377 | esac |
| 15378 | need_lib_prefix=no |
| 15379 | need_version=no |
| 15380 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15382 | case $host_os in |
| 15383 | irix5* | nonstopux*) |
| 15384 | libsuff= shlibsuff= |
| 15385 | ;; |
| 15386 | *) |
| 15387 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15388 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15389 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15390 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15391 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15392 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15393 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15394 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15395 | esac |
| 15396 | ;; |
| 15397 | esac |
| 15398 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15399 | shlibpath_overrides_runpath=no |
| 15400 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15401 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15402 | hardcode_into_libs=yes |
| 15403 | ;; |
| 15404 | |
| 15405 | # No shared lib support for Linux oldld, aout, or coff. |
| 15406 | linux*oldld* | linux*aout* | linux*coff*) |
| 15407 | dynamic_linker=no |
| 15408 | ;; |
| 15409 | |
| 15410 | # This must be Linux ELF. |
| 15411 | |
| 15412 | # uclinux* changes (here and below) have been submitted to the libtool |
| 15413 | # project, but have not yet been accepted: they are GCC-local changes |
| 15414 | # for the time being. (See |
| 15415 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) |
| 15416 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
| 15417 | version_type=linux |
| 15418 | need_lib_prefix=no |
| 15419 | need_version=no |
| 15420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15422 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15423 | shlibpath_var=LD_LIBRARY_PATH |
| 15424 | shlibpath_overrides_runpath=no |
| 15425 | |
| 15426 | # Some binutils ld are patched to set DT_RUNPATH |
| 15427 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 15428 | $as_echo_n "(cached) " >&6 |
| 15429 | else |
| 15430 | lt_cv_shlibpath_overrides_runpath=no |
| 15431 | save_LDFLAGS=$LDFLAGS |
| 15432 | save_libdir=$libdir |
| 15433 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 15434 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 15435 | if test x$gcc_no_link = xyes; then |
| 15436 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 15437 | fi |
| 15438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15439 | /* end confdefs.h. */ |
| 15440 | |
| 15441 | int |
| 15442 | main () |
| 15443 | { |
| 15444 | |
| 15445 | ; |
| 15446 | return 0; |
| 15447 | } |
| 15448 | _ACEOF |
| 15449 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 15450 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 15451 | lt_cv_shlibpath_overrides_runpath=yes |
| 15452 | fi |
| 15453 | fi |
| 15454 | rm -f core conftest.err conftest.$ac_objext \ |
| 15455 | conftest$ac_exeext conftest.$ac_ext |
| 15456 | LDFLAGS=$save_LDFLAGS |
| 15457 | libdir=$save_libdir |
| 15458 | |
| 15459 | fi |
| 15460 | |
| 15461 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 15462 | |
| 15463 | # This implies no fast_install, which is unacceptable. |
| 15464 | # Some rework will be needed to allow for fast_install |
| 15465 | # before this can be enabled. |
| 15466 | hardcode_into_libs=yes |
| 15467 | |
| 15468 | # Append ld.so.conf contents to the search path |
| 15469 | if test -f /etc/ld.so.conf; then |
| 15470 | 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' ' '` |
| 15471 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15472 | fi |
| 15473 | |
| 15474 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15475 | # powerpc, because MkLinux only supported shared libraries with the |
| 15476 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15477 | # most powerpc-linux boxes support dynamic linking these days and |
| 15478 | # people can always --disable-shared, the test was removed, and we |
| 15479 | # assume the GNU/Linux dynamic linker is in use. |
| 15480 | dynamic_linker='GNU/Linux ld.so' |
| 15481 | ;; |
| 15482 | |
| 15483 | netbsd*) |
| 15484 | version_type=sunos |
| 15485 | need_lib_prefix=no |
| 15486 | need_version=no |
| 15487 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15489 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15490 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15491 | else |
| 15492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15494 | dynamic_linker='NetBSD ld.elf_so' |
| 15495 | fi |
| 15496 | shlibpath_var=LD_LIBRARY_PATH |
| 15497 | shlibpath_overrides_runpath=yes |
| 15498 | hardcode_into_libs=yes |
| 15499 | ;; |
| 15500 | |
| 15501 | newsos6) |
| 15502 | version_type=linux |
| 15503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15504 | shlibpath_var=LD_LIBRARY_PATH |
| 15505 | shlibpath_overrides_runpath=yes |
| 15506 | ;; |
| 15507 | |
| 15508 | *nto* | *qnx*) |
| 15509 | version_type=qnx |
| 15510 | need_lib_prefix=no |
| 15511 | need_version=no |
| 15512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15514 | shlibpath_var=LD_LIBRARY_PATH |
| 15515 | shlibpath_overrides_runpath=no |
| 15516 | hardcode_into_libs=yes |
| 15517 | dynamic_linker='ldqnx.so' |
| 15518 | ;; |
| 15519 | |
| 15520 | openbsd*) |
| 15521 | version_type=sunos |
| 15522 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15523 | need_lib_prefix=no |
| 15524 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15525 | case $host_os in |
| 15526 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15527 | *) need_version=no ;; |
| 15528 | esac |
| 15529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15530 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15531 | shlibpath_var=LD_LIBRARY_PATH |
| 15532 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15533 | case $host_os in |
| 15534 | openbsd2.[89] | openbsd2.[89].*) |
| 15535 | shlibpath_overrides_runpath=no |
| 15536 | ;; |
| 15537 | *) |
| 15538 | shlibpath_overrides_runpath=yes |
| 15539 | ;; |
| 15540 | esac |
| 15541 | else |
| 15542 | shlibpath_overrides_runpath=yes |
| 15543 | fi |
| 15544 | ;; |
| 15545 | |
| 15546 | os2*) |
| 15547 | libname_spec='$name' |
| 15548 | shrext_cmds=".dll" |
| 15549 | need_lib_prefix=no |
| 15550 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15551 | dynamic_linker='OS/2 ld.exe' |
| 15552 | shlibpath_var=LIBPATH |
| 15553 | ;; |
| 15554 | |
| 15555 | osf3* | osf4* | osf5*) |
| 15556 | version_type=osf |
| 15557 | need_lib_prefix=no |
| 15558 | need_version=no |
| 15559 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15561 | shlibpath_var=LD_LIBRARY_PATH |
| 15562 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15563 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15564 | ;; |
| 15565 | |
| 15566 | rdos*) |
| 15567 | dynamic_linker=no |
| 15568 | ;; |
| 15569 | |
| 15570 | solaris*) |
| 15571 | version_type=linux |
| 15572 | need_lib_prefix=no |
| 15573 | need_version=no |
| 15574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15575 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15576 | shlibpath_var=LD_LIBRARY_PATH |
| 15577 | shlibpath_overrides_runpath=yes |
| 15578 | hardcode_into_libs=yes |
| 15579 | # ldd complains unless libraries are executable |
| 15580 | postinstall_cmds='chmod +x $lib' |
| 15581 | ;; |
| 15582 | |
| 15583 | sunos4*) |
| 15584 | version_type=sunos |
| 15585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15586 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15587 | shlibpath_var=LD_LIBRARY_PATH |
| 15588 | shlibpath_overrides_runpath=yes |
| 15589 | if test "$with_gnu_ld" = yes; then |
| 15590 | need_lib_prefix=no |
| 15591 | fi |
| 15592 | need_version=yes |
| 15593 | ;; |
| 15594 | |
| 15595 | sysv4 | sysv4.3*) |
| 15596 | version_type=linux |
| 15597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15599 | shlibpath_var=LD_LIBRARY_PATH |
| 15600 | case $host_vendor in |
| 15601 | sni) |
| 15602 | shlibpath_overrides_runpath=no |
| 15603 | need_lib_prefix=no |
| 15604 | runpath_var=LD_RUN_PATH |
| 15605 | ;; |
| 15606 | siemens) |
| 15607 | need_lib_prefix=no |
| 15608 | ;; |
| 15609 | motorola) |
| 15610 | need_lib_prefix=no |
| 15611 | need_version=no |
| 15612 | shlibpath_overrides_runpath=no |
| 15613 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15614 | ;; |
| 15615 | esac |
| 15616 | ;; |
| 15617 | |
| 15618 | sysv4*MP*) |
| 15619 | if test -d /usr/nec ;then |
| 15620 | version_type=linux |
| 15621 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15622 | soname_spec='$libname${shared_ext}.$major' |
| 15623 | shlibpath_var=LD_LIBRARY_PATH |
| 15624 | fi |
| 15625 | ;; |
| 15626 | |
| 15627 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15628 | version_type=freebsd-elf |
| 15629 | need_lib_prefix=no |
| 15630 | need_version=no |
| 15631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15633 | shlibpath_var=LD_LIBRARY_PATH |
| 15634 | shlibpath_overrides_runpath=yes |
| 15635 | hardcode_into_libs=yes |
| 15636 | if test "$with_gnu_ld" = yes; then |
| 15637 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15638 | else |
| 15639 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15640 | case $host_os in |
| 15641 | sco3.2v5*) |
| 15642 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15643 | ;; |
| 15644 | esac |
| 15645 | fi |
| 15646 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15647 | ;; |
| 15648 | |
| 15649 | tpf*) |
| 15650 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15651 | version_type=linux |
| 15652 | need_lib_prefix=no |
| 15653 | need_version=no |
| 15654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15655 | shlibpath_var=LD_LIBRARY_PATH |
| 15656 | shlibpath_overrides_runpath=no |
| 15657 | hardcode_into_libs=yes |
| 15658 | ;; |
| 15659 | |
| 15660 | uts4*) |
| 15661 | version_type=linux |
| 15662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15663 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15664 | shlibpath_var=LD_LIBRARY_PATH |
| 15665 | ;; |
| 15666 | |
| 15667 | # Shared libraries for VwWorks, >= 7 only at this stage |
| 15668 | # and (fpic) still incompatible with "large" code models |
| 15669 | # in a few configurations. Only for RTP mode in any case, |
| 15670 | # and upon explicit request at configure time. |
| 15671 | vxworks7*) |
| 15672 | dynamic_linker=no |
| 15673 | case ${with_multisubdir}-${enable_shared} in |
| 15674 | *large*) |
| 15675 | ;; |
| 15676 | *mrtp*-yes) |
| 15677 | version_type=linux |
| 15678 | need_lib_prefix=no |
| 15679 | need_version=no |
| 15680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15682 | dynamic_linker="$host_os module_loader" |
| 15683 | ;; |
| 15684 | esac |
| 15685 | ;; |
| 15686 | *) |
| 15687 | dynamic_linker=no |
| 15688 | ;; |
| 15689 | esac |
| 15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15691 | $as_echo "$dynamic_linker" >&6; } |
| 15692 | test "$dynamic_linker" = no && can_build_shared=no |
| 15693 | |
| 15694 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15695 | if test "$GCC" = yes; then |
| 15696 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15697 | fi |
| 15698 | |
| 15699 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15700 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15701 | fi |
| 15702 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15703 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15704 | fi |
| 15705 | |
| 15706 | |
| 15707 | |
| 15708 | |
| 15709 | |
| 15710 | |
| 15711 | |
| 15712 | |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
| 15718 | |
| 15719 | |
| 15720 | |
| 15721 | |
| 15722 | |
| 15723 | |
| 15724 | |
| 15725 | |
| 15726 | |
| 15727 | |
| 15728 | |
| 15729 | |
| 15730 | |
| 15731 | |
| 15732 | |
| 15733 | |
| 15734 | |
| 15735 | |
| 15736 | |
| 15737 | |
| 15738 | |
| 15739 | |
| 15740 | |
| 15741 | |
| 15742 | |
| 15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15744 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15745 | hardcode_action_CXX= |
| 15746 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15747 | test -n "$runpath_var_CXX" || |
| 15748 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 15749 | |
| 15750 | # We can hardcode non-existent directories. |
| 15751 | if test "$hardcode_direct_CXX" != no && |
| 15752 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15753 | # have to relink, otherwise we might link with an installed library |
| 15754 | # when we should be linking with a yet-to-be-installed one |
| 15755 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 15756 | test "$hardcode_minus_L_CXX" != no; then |
| 15757 | # Linking always hardcodes the temporary library directory. |
| 15758 | hardcode_action_CXX=relink |
| 15759 | else |
| 15760 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15761 | hardcode_action_CXX=immediate |
| 15762 | fi |
| 15763 | else |
| 15764 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15765 | # directories. |
| 15766 | hardcode_action_CXX=unsupported |
| 15767 | fi |
| 15768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 15769 | $as_echo "$hardcode_action_CXX" >&6; } |
| 15770 | |
| 15771 | if test "$hardcode_action_CXX" = relink || |
| 15772 | test "$inherit_rpath_CXX" = yes; then |
| 15773 | # Fast installation is not supported |
| 15774 | enable_fast_install=no |
| 15775 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15776 | test "$enable_shared" = no; then |
| 15777 | # Fast installation is not necessary |
| 15778 | enable_fast_install=needless |
| 15779 | fi |
| 15780 | |
| 15781 | |
| 15782 | |
| 15783 | |
| 15784 | |
| 15785 | |
| 15786 | |
| 15787 | fi # test -n "$compiler" |
| 15788 | |
| 15789 | CC=$lt_save_CC |
| 15790 | LDCXX=$LD |
| 15791 | LD=$lt_save_LD |
| 15792 | GCC=$lt_save_GCC |
| 15793 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15794 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15795 | lt_cv_path_LD=$lt_save_path_LD |
| 15796 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15797 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15798 | fi # test "$_lt_caught_CXX_error" != yes |
| 15799 | |
| 15800 | ac_ext=cpp |
| 15801 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15802 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15803 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15804 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15805 | |
| 15806 | |
| 15807 | |
| 15808 | |
| 15809 | |
| 15810 | |
| 15811 | |
| 15812 | # Check whether --with-toolexeclibdir was given. |
| 15813 | if test "${with_toolexeclibdir+set}" = set; then : |
| 15814 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in |
| 15815 | /) |
| 15816 | ;; |
| 15817 | */) |
| 15818 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` |
| 15819 | ;; |
| 15820 | esac |
| 15821 | else |
| 15822 | with_toolexeclibdir=no |
| 15823 | fi |
| 15824 | |
| 15825 | |
| 15826 | |
| 15827 | # Calculate toolexeclibdir |
| 15828 | # Also toolexecdir, though it's only used in toolexeclibdir |
| 15829 | case ${version_specific_libs} in |
| 15830 | yes) |
| 15831 | # Need the gcc compiler version to know where to install libraries |
| 15832 | # and header files if --enable-version-specific-runtime-libs option |
| 15833 | # is selected. |
| 15834 | toolexecdir='$(libdir)/gcc/$(target_noncanonical)' |
| 15835 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
| 15836 | ;; |
| 15837 | no) |
| 15838 | if test -n "$with_cross_host" && |
| 15839 | test x"$with_cross_host" != x"no"; then |
| 15840 | # Install a library built with a cross compiler in tooldir, not libdir. |
| 15841 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' |
| 15842 | toolexeclibdir='$(toolexecdir)/lib' |
| 15843 | else |
| 15844 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' |
| 15845 | toolexeclibdir='$(libdir)' |
| 15846 | fi |
| 15847 | multi_os_directory=`$CC -print-multi-os-directory` |
| 15848 | case $multi_os_directory in |
| 15849 | .) ;; # Avoid trailing /. |
| 15850 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; |
| 15851 | esac |
| 15852 | ;; |
| 15853 | esac |
| 15854 | |
| 15855 | |
| 15856 | |
| 15857 | # For iconv support. |
| 15858 | |
| 15859 | if test "X$prefix" = "XNONE"; then |
| 15860 | acl_final_prefix="$ac_default_prefix" |
| 15861 | else |
| 15862 | acl_final_prefix="$prefix" |
| 15863 | fi |
| 15864 | if test "X$exec_prefix" = "XNONE"; then |
| 15865 | acl_final_exec_prefix='${prefix}' |
| 15866 | else |
| 15867 | acl_final_exec_prefix="$exec_prefix" |
| 15868 | fi |
| 15869 | acl_save_prefix="$prefix" |
| 15870 | prefix="$acl_final_prefix" |
| 15871 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 15872 | prefix="$acl_save_prefix" |
| 15873 | |
| 15874 | |
| 15875 | # Check whether --with-gnu-ld was given. |
| 15876 | if test "${with_gnu_ld+set}" = set; then : |
| 15877 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 15878 | else |
| 15879 | with_gnu_ld=no |
| 15880 | fi |
| 15881 | |
| 15882 | # Prepare PATH_SEPARATOR. |
| 15883 | # The user is always right. |
| 15884 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15885 | echo "#! /bin/sh" >conf$$.sh |
| 15886 | echo "exit 0" >>conf$$.sh |
| 15887 | chmod +x conf$$.sh |
| 15888 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15889 | PATH_SEPARATOR=';' |
| 15890 | else |
| 15891 | PATH_SEPARATOR=: |
| 15892 | fi |
| 15893 | rm -f conf$$.sh |
| 15894 | fi |
| 15895 | ac_prog=ld |
| 15896 | if test "$GCC" = yes; then |
| 15897 | # Check if gcc -print-prog-name=ld gives a path. |
| 15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
| 15899 | $as_echo_n "checking for ld used by GCC... " >&6; } |
| 15900 | case $host in |
| 15901 | *-*-mingw*) |
| 15902 | # gcc leaves a trailing carriage return which upsets mingw |
| 15903 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15904 | *) |
| 15905 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15906 | esac |
| 15907 | case $ac_prog in |
| 15908 | # Accept absolute paths. |
| 15909 | [\\/]* | [A-Za-z]:[\\/]*) |
| 15910 | re_direlt='/[^/][^/]*/\.\./' |
| 15911 | # Canonicalize the path of ld |
| 15912 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 15913 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 15914 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 15915 | done |
| 15916 | test -z "$LD" && LD="$ac_prog" |
| 15917 | ;; |
| 15918 | "") |
| 15919 | # If it fails, then pretend we aren't using GCC. |
| 15920 | ac_prog=ld |
| 15921 | ;; |
| 15922 | *) |
| 15923 | # If it is relative, then search for the first ld in PATH. |
| 15924 | with_gnu_ld=unknown |
| 15925 | ;; |
| 15926 | esac |
| 15927 | elif test "$with_gnu_ld" = yes; then |
| 15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 15929 | $as_echo_n "checking for GNU ld... " >&6; } |
| 15930 | else |
| 15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 15932 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 15933 | fi |
| 15934 | if ${acl_cv_path_LD+:} false; then : |
| 15935 | $as_echo_n "(cached) " >&6 |
| 15936 | else |
| 15937 | if test -z "$LD"; then |
| 15938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 15939 | for ac_dir in $PATH; do |
| 15940 | test -z "$ac_dir" && ac_dir=. |
| 15941 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 15942 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 15943 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 15944 | # but apparently some GNU ld's only accept -v. |
| 15945 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 15946 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then |
| 15947 | test "$with_gnu_ld" != no && break |
| 15948 | else |
| 15949 | test "$with_gnu_ld" != yes && break |
| 15950 | fi |
| 15951 | fi |
| 15952 | done |
| 15953 | IFS="$ac_save_ifs" |
| 15954 | else |
| 15955 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 15956 | fi |
| 15957 | fi |
| 15958 | |
| 15959 | LD="$acl_cv_path_LD" |
| 15960 | if test -n "$LD"; then |
| 15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 15962 | $as_echo "$LD" >&6; } |
| 15963 | else |
| 15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15965 | $as_echo "no" >&6; } |
| 15966 | fi |
| 15967 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 15969 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 15970 | if ${acl_cv_prog_gnu_ld+:} false; then : |
| 15971 | $as_echo_n "(cached) " >&6 |
| 15972 | else |
| 15973 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 15974 | if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then |
| 15975 | acl_cv_prog_gnu_ld=yes |
| 15976 | else |
| 15977 | acl_cv_prog_gnu_ld=no |
| 15978 | fi |
| 15979 | fi |
| 15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
| 15981 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
| 15982 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 15983 | |
| 15984 | |
| 15985 | |
| 15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 15987 | $as_echo_n "checking for shared library run path origin... " >&6; } |
| 15988 | if ${acl_cv_rpath+:} false; then : |
| 15989 | $as_echo_n "(cached) " >&6 |
| 15990 | else |
| 15991 | |
| 15992 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 15993 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 15994 | . ./conftest.sh |
| 15995 | rm -f ./conftest.sh |
| 15996 | acl_cv_rpath=done |
| 15997 | |
| 15998 | fi |
| 15999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 16000 | $as_echo "$acl_cv_rpath" >&6; } |
| 16001 | wl="$acl_cv_wl" |
| 16002 | libext="$acl_cv_libext" |
| 16003 | shlibext="$acl_cv_shlibext" |
| 16004 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 16005 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 16006 | hardcode_direct="$acl_cv_hardcode_direct" |
| 16007 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 16008 | # Check whether --enable-rpath was given. |
| 16009 | if test "${enable_rpath+set}" = set; then : |
| 16010 | enableval=$enable_rpath; : |
| 16011 | else |
| 16012 | enable_rpath=yes |
| 16013 | fi |
| 16014 | |
| 16015 | |
| 16016 | |
| 16017 | |
| 16018 | |
| 16019 | |
| 16020 | |
| 16021 | |
| 16022 | use_additional=yes |
| 16023 | |
| 16024 | acl_save_prefix="$prefix" |
| 16025 | prefix="$acl_final_prefix" |
| 16026 | acl_save_exec_prefix="$exec_prefix" |
| 16027 | exec_prefix="$acl_final_exec_prefix" |
| 16028 | |
| 16029 | eval additional_includedir=\"$includedir\" |
| 16030 | eval additional_libdir=\"$libdir\" |
| 16031 | |
| 16032 | exec_prefix="$acl_save_exec_prefix" |
| 16033 | prefix="$acl_save_prefix" |
| 16034 | |
| 16035 | |
| 16036 | # Check whether --with-libiconv-prefix was given. |
| 16037 | if test "${with_libiconv_prefix+set}" = set; then : |
| 16038 | withval=$with_libiconv_prefix; |
| 16039 | if test "X$withval" = "Xno"; then |
| 16040 | use_additional=no |
| 16041 | else |
| 16042 | if test "X$withval" = "X"; then |
| 16043 | |
| 16044 | acl_save_prefix="$prefix" |
| 16045 | prefix="$acl_final_prefix" |
| 16046 | acl_save_exec_prefix="$exec_prefix" |
| 16047 | exec_prefix="$acl_final_exec_prefix" |
| 16048 | |
| 16049 | eval additional_includedir=\"$includedir\" |
| 16050 | eval additional_libdir=\"$libdir\" |
| 16051 | |
| 16052 | exec_prefix="$acl_save_exec_prefix" |
| 16053 | prefix="$acl_save_prefix" |
| 16054 | |
| 16055 | else |
| 16056 | additional_includedir="$withval/include" |
| 16057 | additional_libdir="$withval/lib" |
| 16058 | fi |
| 16059 | fi |
| 16060 | |
| 16061 | fi |
| 16062 | |
| 16063 | |
| 16064 | # Check whether --with-libiconv-type was given. |
| 16065 | if test "${with_libiconv_type+set}" = set; then : |
| 16066 | withval=$with_libiconv_type; with_libiconv_type=$withval |
| 16067 | else |
| 16068 | with_libiconv_type=auto |
| 16069 | fi |
| 16070 | |
| 16071 | lib_type=`eval echo \$with_libiconv_type` |
| 16072 | |
| 16073 | LIBICONV= |
| 16074 | LTLIBICONV= |
| 16075 | INCICONV= |
| 16076 | rpathdirs= |
| 16077 | ltrpathdirs= |
| 16078 | names_already_handled= |
| 16079 | names_next_round='iconv ' |
| 16080 | while test -n "$names_next_round"; do |
| 16081 | names_this_round="$names_next_round" |
| 16082 | names_next_round= |
| 16083 | for name in $names_this_round; do |
| 16084 | already_handled= |
| 16085 | for n in $names_already_handled; do |
| 16086 | if test "$n" = "$name"; then |
| 16087 | already_handled=yes |
| 16088 | break |
| 16089 | fi |
| 16090 | done |
| 16091 | if test -z "$already_handled"; then |
| 16092 | names_already_handled="$names_already_handled $name" |
| 16093 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 16094 | eval value=\"\$HAVE_LIB$uppername\" |
| 16095 | if test -n "$value"; then |
| 16096 | if test "$value" = yes; then |
| 16097 | eval value=\"\$LIB$uppername\" |
| 16098 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 16099 | eval value=\"\$LTLIB$uppername\" |
| 16100 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 16101 | else |
| 16102 | : |
| 16103 | fi |
| 16104 | else |
| 16105 | found_dir= |
| 16106 | found_la= |
| 16107 | found_so= |
| 16108 | found_a= |
| 16109 | if test $use_additional = yes; then |
| 16110 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
| 16111 | found_dir="$additional_libdir" |
| 16112 | found_so="$additional_libdir/lib$name.$shlibext" |
| 16113 | if test -f "$additional_libdir/lib$name.la"; then |
| 16114 | found_la="$additional_libdir/lib$name.la" |
| 16115 | fi |
| 16116 | elif test x$lib_type != xshared; then |
| 16117 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 16118 | found_dir="$additional_libdir" |
| 16119 | found_a="$additional_libdir/lib$name.$libext" |
| 16120 | if test -f "$additional_libdir/lib$name.la"; then |
| 16121 | found_la="$additional_libdir/lib$name.la" |
| 16122 | fi |
| 16123 | fi |
| 16124 | fi |
| 16125 | fi |
| 16126 | if test "X$found_dir" = "X"; then |
| 16127 | for x in $LDFLAGS $LTLIBICONV; do |
| 16128 | |
| 16129 | acl_save_prefix="$prefix" |
| 16130 | prefix="$acl_final_prefix" |
| 16131 | acl_save_exec_prefix="$exec_prefix" |
| 16132 | exec_prefix="$acl_final_exec_prefix" |
| 16133 | eval x=\"$x\" |
| 16134 | exec_prefix="$acl_save_exec_prefix" |
| 16135 | prefix="$acl_save_prefix" |
| 16136 | |
| 16137 | case "$x" in |
| 16138 | -L*) |
| 16139 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 16140 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
| 16141 | found_dir="$dir" |
| 16142 | found_so="$dir/lib$name.$shlibext" |
| 16143 | if test -f "$dir/lib$name.la"; then |
| 16144 | found_la="$dir/lib$name.la" |
| 16145 | fi |
| 16146 | elif test x$lib_type != xshared; then |
| 16147 | if test -f "$dir/lib$name.$libext"; then |
| 16148 | found_dir="$dir" |
| 16149 | found_a="$dir/lib$name.$libext" |
| 16150 | if test -f "$dir/lib$name.la"; then |
| 16151 | found_la="$dir/lib$name.la" |
| 16152 | fi |
| 16153 | fi |
| 16154 | fi |
| 16155 | ;; |
| 16156 | esac |
| 16157 | if test "X$found_dir" != "X"; then |
| 16158 | break |
| 16159 | fi |
| 16160 | done |
| 16161 | fi |
| 16162 | if test "X$found_dir" != "X"; then |
| 16163 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 16164 | if test "X$found_so" != "X"; then |
| 16165 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 16166 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 16167 | else |
| 16168 | haveit= |
| 16169 | for x in $ltrpathdirs; do |
| 16170 | if test "X$x" = "X$found_dir"; then |
| 16171 | haveit=yes |
| 16172 | break |
| 16173 | fi |
| 16174 | done |
| 16175 | if test -z "$haveit"; then |
| 16176 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 16177 | fi |
| 16178 | if test "$hardcode_direct" = yes; then |
| 16179 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 16180 | else |
| 16181 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 16182 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 16183 | haveit= |
| 16184 | for x in $rpathdirs; do |
| 16185 | if test "X$x" = "X$found_dir"; then |
| 16186 | haveit=yes |
| 16187 | break |
| 16188 | fi |
| 16189 | done |
| 16190 | if test -z "$haveit"; then |
| 16191 | rpathdirs="$rpathdirs $found_dir" |
| 16192 | fi |
| 16193 | else |
| 16194 | haveit= |
| 16195 | for x in $LDFLAGS $LIBICONV; do |
| 16196 | |
| 16197 | acl_save_prefix="$prefix" |
| 16198 | prefix="$acl_final_prefix" |
| 16199 | acl_save_exec_prefix="$exec_prefix" |
| 16200 | exec_prefix="$acl_final_exec_prefix" |
| 16201 | eval x=\"$x\" |
| 16202 | exec_prefix="$acl_save_exec_prefix" |
| 16203 | prefix="$acl_save_prefix" |
| 16204 | |
| 16205 | if test "X$x" = "X-L$found_dir"; then |
| 16206 | haveit=yes |
| 16207 | break |
| 16208 | fi |
| 16209 | done |
| 16210 | if test -z "$haveit"; then |
| 16211 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 16212 | fi |
| 16213 | if test "$hardcode_minus_L" != no; then |
| 16214 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 16215 | else |
| 16216 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 16217 | fi |
| 16218 | fi |
| 16219 | fi |
| 16220 | fi |
| 16221 | else |
| 16222 | if test "X$found_a" != "X"; then |
| 16223 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 16224 | else |
| 16225 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 16226 | fi |
| 16227 | fi |
| 16228 | additional_includedir= |
| 16229 | case "$found_dir" in |
| 16230 | */lib | */lib/) |
| 16231 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 16232 | additional_includedir="$basedir/include" |
| 16233 | ;; |
| 16234 | esac |
| 16235 | if test "X$additional_includedir" != "X"; then |
| 16236 | if test "X$additional_includedir" != "X/usr/include"; then |
| 16237 | haveit= |
| 16238 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 16239 | if test -n "$GCC"; then |
| 16240 | case $host_os in |
| 16241 | linux*) haveit=yes;; |
| 16242 | esac |
| 16243 | fi |
| 16244 | fi |
| 16245 | if test -z "$haveit"; then |
| 16246 | for x in $CPPFLAGS $INCICONV; do |
| 16247 | |
| 16248 | acl_save_prefix="$prefix" |
| 16249 | prefix="$acl_final_prefix" |
| 16250 | acl_save_exec_prefix="$exec_prefix" |
| 16251 | exec_prefix="$acl_final_exec_prefix" |
| 16252 | eval x=\"$x\" |
| 16253 | exec_prefix="$acl_save_exec_prefix" |
| 16254 | prefix="$acl_save_prefix" |
| 16255 | |
| 16256 | if test "X$x" = "X-I$additional_includedir"; then |
| 16257 | haveit=yes |
| 16258 | break |
| 16259 | fi |
| 16260 | done |
| 16261 | if test -z "$haveit"; then |
| 16262 | if test -d "$additional_includedir"; then |
| 16263 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 16264 | fi |
| 16265 | fi |
| 16266 | fi |
| 16267 | fi |
| 16268 | fi |
| 16269 | if test -n "$found_la"; then |
| 16270 | save_libdir="$libdir" |
| 16271 | case "$found_la" in |
| 16272 | */* | *\\*) . "$found_la" ;; |
| 16273 | *) . "./$found_la" ;; |
| 16274 | esac |
| 16275 | libdir="$save_libdir" |
| 16276 | for dep in $dependency_libs; do |
| 16277 | case "$dep" in |
| 16278 | -L*) |
| 16279 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 16280 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 16281 | haveit= |
| 16282 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 16283 | if test -n "$GCC"; then |
| 16284 | case $host_os in |
| 16285 | linux*) haveit=yes;; |
| 16286 | esac |
| 16287 | fi |
| 16288 | fi |
| 16289 | if test -z "$haveit"; then |
| 16290 | haveit= |
| 16291 | for x in $LDFLAGS $LIBICONV; do |
| 16292 | |
| 16293 | acl_save_prefix="$prefix" |
| 16294 | prefix="$acl_final_prefix" |
| 16295 | acl_save_exec_prefix="$exec_prefix" |
| 16296 | exec_prefix="$acl_final_exec_prefix" |
| 16297 | eval x=\"$x\" |
| 16298 | exec_prefix="$acl_save_exec_prefix" |
| 16299 | prefix="$acl_save_prefix" |
| 16300 | |
| 16301 | if test "X$x" = "X-L$additional_libdir"; then |
| 16302 | haveit=yes |
| 16303 | break |
| 16304 | fi |
| 16305 | done |
| 16306 | if test -z "$haveit"; then |
| 16307 | if test -d "$additional_libdir"; then |
| 16308 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 16309 | fi |
| 16310 | fi |
| 16311 | haveit= |
| 16312 | for x in $LDFLAGS $LTLIBICONV; do |
| 16313 | |
| 16314 | acl_save_prefix="$prefix" |
| 16315 | prefix="$acl_final_prefix" |
| 16316 | acl_save_exec_prefix="$exec_prefix" |
| 16317 | exec_prefix="$acl_final_exec_prefix" |
| 16318 | eval x=\"$x\" |
| 16319 | exec_prefix="$acl_save_exec_prefix" |
| 16320 | prefix="$acl_save_prefix" |
| 16321 | |
| 16322 | if test "X$x" = "X-L$additional_libdir"; then |
| 16323 | haveit=yes |
| 16324 | break |
| 16325 | fi |
| 16326 | done |
| 16327 | if test -z "$haveit"; then |
| 16328 | if test -d "$additional_libdir"; then |
| 16329 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 16330 | fi |
| 16331 | fi |
| 16332 | fi |
| 16333 | fi |
| 16334 | ;; |
| 16335 | -R*) |
| 16336 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 16337 | if test "$enable_rpath" != no; then |
| 16338 | haveit= |
| 16339 | for x in $rpathdirs; do |
| 16340 | if test "X$x" = "X$dir"; then |
| 16341 | haveit=yes |
| 16342 | break |
| 16343 | fi |
| 16344 | done |
| 16345 | if test -z "$haveit"; then |
| 16346 | rpathdirs="$rpathdirs $dir" |
| 16347 | fi |
| 16348 | haveit= |
| 16349 | for x in $ltrpathdirs; do |
| 16350 | if test "X$x" = "X$dir"; then |
| 16351 | haveit=yes |
| 16352 | break |
| 16353 | fi |
| 16354 | done |
| 16355 | if test -z "$haveit"; then |
| 16356 | ltrpathdirs="$ltrpathdirs $dir" |
| 16357 | fi |
| 16358 | fi |
| 16359 | ;; |
| 16360 | -l*) |
| 16361 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 16362 | ;; |
| 16363 | *.la) |
| 16364 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 16365 | ;; |
| 16366 | *) |
| 16367 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 16368 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 16369 | ;; |
| 16370 | esac |
| 16371 | done |
| 16372 | fi |
| 16373 | else |
| 16374 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then |
| 16375 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 16376 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 16377 | else |
| 16378 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" |
| 16379 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" |
| 16380 | fi |
| 16381 | fi |
| 16382 | fi |
| 16383 | fi |
| 16384 | done |
| 16385 | done |
| 16386 | if test "X$rpathdirs" != "X"; then |
| 16387 | if test -n "$hardcode_libdir_separator"; then |
| 16388 | alldirs= |
| 16389 | for found_dir in $rpathdirs; do |
| 16390 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 16391 | done |
| 16392 | acl_save_libdir="$libdir" |
| 16393 | libdir="$alldirs" |
| 16394 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 16395 | libdir="$acl_save_libdir" |
| 16396 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 16397 | else |
| 16398 | for found_dir in $rpathdirs; do |
| 16399 | acl_save_libdir="$libdir" |
| 16400 | libdir="$found_dir" |
| 16401 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 16402 | libdir="$acl_save_libdir" |
| 16403 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 16404 | done |
| 16405 | fi |
| 16406 | fi |
| 16407 | if test "X$ltrpathdirs" != "X"; then |
| 16408 | for found_dir in $ltrpathdirs; do |
| 16409 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 16410 | done |
| 16411 | fi |
| 16412 | |
| 16413 | |
| 16414 | |
| 16415 | |
| 16416 | |
| 16417 | |
| 16418 | |
| 16419 | am_save_CPPFLAGS="$CPPFLAGS" |
| 16420 | |
| 16421 | for element in $INCICONV; do |
| 16422 | haveit= |
| 16423 | for x in $CPPFLAGS; do |
| 16424 | |
| 16425 | acl_save_prefix="$prefix" |
| 16426 | prefix="$acl_final_prefix" |
| 16427 | acl_save_exec_prefix="$exec_prefix" |
| 16428 | exec_prefix="$acl_final_exec_prefix" |
| 16429 | eval x=\"$x\" |
| 16430 | exec_prefix="$acl_save_exec_prefix" |
| 16431 | prefix="$acl_save_prefix" |
| 16432 | |
| 16433 | if test "X$x" = "X$element"; then |
| 16434 | haveit=yes |
| 16435 | break |
| 16436 | fi |
| 16437 | done |
| 16438 | if test -z "$haveit"; then |
| 16439 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 16440 | fi |
| 16441 | done |
| 16442 | |
| 16443 | |
| 16444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 16445 | $as_echo_n "checking for iconv... " >&6; } |
| 16446 | if ${am_cv_func_iconv+:} false; then : |
| 16447 | $as_echo_n "(cached) " >&6 |
| 16448 | else |
| 16449 | |
| 16450 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 16451 | am_cv_lib_iconv=no |
| 16452 | if test x$gcc_no_link = xyes; then |
| 16453 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 16454 | fi |
| 16455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16456 | /* end confdefs.h. */ |
| 16457 | |
| 16458 | #include <stdlib.h> |
| 16459 | #include <iconv.h> |
| 16460 | |
| 16461 | int |
| 16462 | main () |
| 16463 | { |
| 16464 | iconv_t cd = iconv_open("",""); |
| 16465 | iconv(cd,NULL,NULL,NULL,NULL); |
| 16466 | iconv_close(cd); |
| 16467 | ; |
| 16468 | return 0; |
| 16469 | } |
| 16470 | _ACEOF |
| 16471 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16472 | am_cv_func_iconv=yes |
| 16473 | fi |
| 16474 | rm -f core conftest.err conftest.$ac_objext \ |
| 16475 | conftest$ac_exeext conftest.$ac_ext |
| 16476 | if test "$am_cv_func_iconv" != yes; then |
| 16477 | am_save_LIBS="$LIBS" |
| 16478 | LIBS="$LIBS $LIBICONV" |
| 16479 | if test x$gcc_no_link = xyes; then |
| 16480 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 16481 | fi |
| 16482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16483 | /* end confdefs.h. */ |
| 16484 | |
| 16485 | #include <stdlib.h> |
| 16486 | #include <iconv.h> |
| 16487 | |
| 16488 | int |
| 16489 | main () |
| 16490 | { |
| 16491 | iconv_t cd = iconv_open("",""); |
| 16492 | iconv(cd,NULL,NULL,NULL,NULL); |
| 16493 | iconv_close(cd); |
| 16494 | ; |
| 16495 | return 0; |
| 16496 | } |
| 16497 | _ACEOF |
| 16498 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16499 | am_cv_lib_iconv=yes |
| 16500 | am_cv_func_iconv=yes |
| 16501 | fi |
| 16502 | rm -f core conftest.err conftest.$ac_objext \ |
| 16503 | conftest$ac_exeext conftest.$ac_ext |
| 16504 | LIBS="$am_save_LIBS" |
| 16505 | fi |
| 16506 | |
| 16507 | fi |
| 16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 16509 | $as_echo "$am_cv_func_iconv" >&6; } |
| 16510 | if test "$am_cv_func_iconv" = yes; then |
| 16511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 16512 | $as_echo_n "checking for working iconv... " >&6; } |
| 16513 | if ${am_cv_func_iconv_works+:} false; then : |
| 16514 | $as_echo_n "(cached) " >&6 |
| 16515 | else |
| 16516 | |
| 16517 | am_save_LIBS="$LIBS" |
| 16518 | if test $am_cv_lib_iconv = yes; then |
| 16519 | LIBS="$LIBS $LIBICONV" |
| 16520 | fi |
| 16521 | am_cv_func_iconv_works=no |
| 16522 | for ac_iconv_const in '' 'const'; do |
| 16523 | if test "$cross_compiling" = yes; then : |
| 16524 | case "$host_os" in |
| 16525 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 16526 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 16527 | esac |
| 16528 | else |
| 16529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16530 | /* end confdefs.h. */ |
| 16531 | |
| 16532 | #include <iconv.h> |
| 16533 | #include <string.h> |
| 16534 | |
| 16535 | #ifndef ICONV_CONST |
| 16536 | # define ICONV_CONST $ac_iconv_const |
| 16537 | #endif |
| 16538 | |
| 16539 | int |
| 16540 | main () |
| 16541 | { |
| 16542 | int result = 0; |
| 16543 | /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from |
| 16544 | successful returns. This is even documented in |
| 16545 | <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ |
| 16546 | { |
| 16547 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 16548 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 16549 | { |
| 16550 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ |
| 16551 | char buf[10]; |
| 16552 | ICONV_CONST char *inptr = input; |
| 16553 | size_t inbytesleft = strlen (input); |
| 16554 | char *outptr = buf; |
| 16555 | size_t outbytesleft = sizeof (buf); |
| 16556 | size_t res = iconv (cd_utf8_to_88591, |
| 16557 | &inptr, &inbytesleft, |
| 16558 | &outptr, &outbytesleft); |
| 16559 | if (res == 0) |
| 16560 | result |= 1; |
| 16561 | iconv_close (cd_utf8_to_88591); |
| 16562 | } |
| 16563 | } |
| 16564 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 16565 | successful returns. */ |
| 16566 | { |
| 16567 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 16568 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 16569 | { |
| 16570 | static ICONV_CONST char input[] = "\263"; |
| 16571 | char buf[10]; |
| 16572 | ICONV_CONST char *inptr = input; |
| 16573 | size_t inbytesleft = strlen (input); |
| 16574 | char *outptr = buf; |
| 16575 | size_t outbytesleft = sizeof (buf); |
| 16576 | size_t res = iconv (cd_ascii_to_88591, |
| 16577 | &inptr, &inbytesleft, |
| 16578 | &outptr, &outbytesleft); |
| 16579 | if (res == 0) |
| 16580 | result |= 2; |
| 16581 | iconv_close (cd_ascii_to_88591); |
| 16582 | } |
| 16583 | } |
| 16584 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 16585 | { |
| 16586 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 16587 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16588 | { |
| 16589 | static ICONV_CONST char input[] = "\304"; |
| 16590 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 16591 | ICONV_CONST char *inptr = input; |
| 16592 | size_t inbytesleft = 1; |
| 16593 | char *outptr = buf; |
| 16594 | size_t outbytesleft = 1; |
| 16595 | size_t res = iconv (cd_88591_to_utf8, |
| 16596 | &inptr, &inbytesleft, |
| 16597 | &outptr, &outbytesleft); |
| 16598 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 16599 | result |= 4; |
| 16600 | iconv_close (cd_88591_to_utf8); |
| 16601 | } |
| 16602 | } |
| 16603 | #if 0 /* This bug could be worked around by the caller. */ |
| 16604 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 16605 | { |
| 16606 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 16607 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 16608 | { |
| 16609 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 16610 | char buf[50]; |
| 16611 | ICONV_CONST char *inptr = input; |
| 16612 | size_t inbytesleft = strlen (input); |
| 16613 | char *outptr = buf; |
| 16614 | size_t outbytesleft = sizeof (buf); |
| 16615 | size_t res = iconv (cd_88591_to_utf8, |
| 16616 | &inptr, &inbytesleft, |
| 16617 | &outptr, &outbytesleft); |
| 16618 | if ((int)res > 0) |
| 16619 | result |= 8; |
| 16620 | iconv_close (cd_88591_to_utf8); |
| 16621 | } |
| 16622 | } |
| 16623 | #endif |
| 16624 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 16625 | provided. */ |
| 16626 | { |
| 16627 | /* Try standardized names. */ |
| 16628 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); |
| 16629 | /* Try IRIX, OSF/1 names. */ |
| 16630 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); |
| 16631 | /* Try AIX names. */ |
| 16632 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); |
| 16633 | /* Try HP-UX names. */ |
| 16634 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); |
| 16635 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) |
| 16636 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) |
| 16637 | result |= 16; |
| 16638 | if (cd1 != (iconv_t)(-1)) |
| 16639 | iconv_close (cd1); |
| 16640 | if (cd2 != (iconv_t)(-1)) |
| 16641 | iconv_close (cd2); |
| 16642 | if (cd3 != (iconv_t)(-1)) |
| 16643 | iconv_close (cd3); |
| 16644 | if (cd4 != (iconv_t)(-1)) |
| 16645 | iconv_close (cd4); |
| 16646 | } |
| 16647 | return result; |
| 16648 | |
| 16649 | ; |
| 16650 | return 0; |
| 16651 | } |
| 16652 | _ACEOF |
| 16653 | if ac_fn_cxx_try_run "$LINENO"; then : |
| 16654 | am_cv_func_iconv_works=yes |
| 16655 | fi |
| 16656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16657 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16658 | fi |
| 16659 | |
| 16660 | test "$am_cv_func_iconv_works" = no || break |
| 16661 | done |
| 16662 | LIBS="$am_save_LIBS" |
| 16663 | |
| 16664 | fi |
| 16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 16666 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 16667 | case "$am_cv_func_iconv_works" in |
| 16668 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 16669 | *) am_func_iconv=yes ;; |
| 16670 | esac |
| 16671 | else |
| 16672 | am_func_iconv=no am_cv_lib_iconv=no |
| 16673 | fi |
| 16674 | if test "$am_func_iconv" = yes; then |
| 16675 | |
| 16676 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
| 16677 | |
| 16678 | fi |
| 16679 | if test "$am_cv_lib_iconv" = yes; then |
| 16680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 16681 | $as_echo_n "checking how to link with libiconv... " >&6; } |
| 16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 16683 | $as_echo "$LIBICONV" >&6; } |
| 16684 | else |
| 16685 | CPPFLAGS="$am_save_CPPFLAGS" |
| 16686 | LIBICONV= |
| 16687 | LTLIBICONV= |
| 16688 | fi |
| 16689 | |
| 16690 | |
| 16691 | |
| 16692 | if test "$am_cv_func_iconv" = yes; then |
| 16693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5 |
| 16694 | $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; } |
| 16695 | if ${gl_cv_iconv_nonconst+:} false; then : |
| 16696 | $as_echo_n "(cached) " >&6 |
| 16697 | else |
| 16698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16699 | /* end confdefs.h. */ |
| 16700 | |
| 16701 | #include <stdlib.h> |
| 16702 | #include <iconv.h> |
| 16703 | extern |
| 16704 | #ifdef __cplusplus |
| 16705 | "C" |
| 16706 | #endif |
| 16707 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 16708 | |
| 16709 | int |
| 16710 | main () |
| 16711 | { |
| 16712 | |
| 16713 | ; |
| 16714 | return 0; |
| 16715 | } |
| 16716 | _ACEOF |
| 16717 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16718 | gl_cv_iconv_nonconst=yes |
| 16719 | else |
| 16720 | gl_cv_iconv_nonconst=no |
| 16721 | fi |
| 16722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16723 | |
| 16724 | fi |
| 16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5 |
| 16726 | $as_echo "$gl_cv_iconv_nonconst" >&6; } |
| 16727 | else |
| 16728 | gl_cv_iconv_nonconst=yes |
| 16729 | fi |
| 16730 | if test $gl_cv_iconv_nonconst = yes; then |
| 16731 | iconv_arg1="" |
| 16732 | else |
| 16733 | iconv_arg1="const" |
| 16734 | fi |
| 16735 | |
| 16736 | cat >>confdefs.h <<_ACEOF |
| 16737 | #define ICONV_CONST $iconv_arg1 |
| 16738 | _ACEOF |
| 16739 | |
| 16740 | |
| 16741 | |
| 16742 | if test "$am_func_iconv" = yes; then |
| 16743 | if test -n "$LIBICONV"; then |
| 16744 | am_cv_func_iconv_summary='yes, in libiconv' |
| 16745 | else |
| 16746 | am_cv_func_iconv_summary='yes, in libc' |
| 16747 | fi |
| 16748 | else |
| 16749 | if test "$am_cv_func_iconv" = yes; then |
| 16750 | am_cv_func_iconv_summary='not working, consider installing GNU libiconv' |
| 16751 | else |
| 16752 | am_cv_func_iconv_summary='no, consider installing GNU libiconv' |
| 16753 | fi |
| 16754 | fi |
| 16755 | |
| 16756 | |
| 16757 | # Checks for header files. |
| 16758 | |
| 16759 | for ac_header in malloc.h |
| 16760 | do : |
| 16761 | ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 16762 | if test "x$ac_cv_header_malloc_h" = xyes; then : |
| 16763 | cat >>confdefs.h <<_ACEOF |
| 16764 | #define HAVE_MALLOC_H 1 |
| 16765 | _ACEOF |
| 16766 | |
| 16767 | fi |
| 16768 | |
| 16769 | done |
| 16770 | |
| 16771 | |
| 16772 | # The cast to long int works around a bug in the HP C Compiler |
| 16773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16775 | # This bug is HP SR number 8606223364. |
| 16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 16777 | $as_echo_n "checking size of void *... " >&6; } |
| 16778 | if ${ac_cv_sizeof_void_p+:} false; then : |
| 16779 | $as_echo_n "(cached) " >&6 |
| 16780 | else |
| 16781 | if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
| 16782 | |
| 16783 | else |
| 16784 | if test "$ac_cv_type_void_p" = yes; then |
| 16785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16787 | as_fn_error 77 "cannot compute sizeof (void *) |
| 16788 | See \`config.log' for more details" "$LINENO" 5; } |
| 16789 | else |
| 16790 | ac_cv_sizeof_void_p=0 |
| 16791 | fi |
| 16792 | fi |
| 16793 | |
| 16794 | fi |
| 16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 16796 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
| 16797 | |
| 16798 | |
| 16799 | |
| 16800 | cat >>confdefs.h <<_ACEOF |
| 16801 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 16802 | _ACEOF |
| 16803 | |
| 16804 | |
| 16805 | |
| 16806 | # Get target configury. |
| 16807 | unset LIBGCOBOL_SUPPORTED |
| 16808 | . ${srcdir}/configure.tgt |
| 16809 | |
| 16810 | # Decide if it's usable. |
| 16811 | case $LIBGCOBOL_SUPPORTED:$enable_libgcobol in |
| 16812 | *:no) use_libgcobol=no ;; |
| 16813 | *:yes) use_libgcobol=yes ;; |
| 16814 | yes:*) use_libgcobol=yes ;; |
| 16815 | *:*) use_libgcobol=no ;; |
| 16816 | esac |
| 16817 | |
| 16818 | # ----------------- |
| 16819 | # __int128 support |
| 16820 | # ----------------- |
| 16821 | |
| 16822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __int128 is supported" >&5 |
| 16823 | $as_echo_n "checking whether __int128 is supported... " >&6; } |
| 16824 | if ${libgcobol_cv_have_int128+:} false; then : |
| 16825 | $as_echo_n "(cached) " >&6 |
| 16826 | else |
| 16827 | if test x$gcc_no_link = xyes; then |
| 16828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16829 | /* end confdefs.h. */ |
| 16830 | |
| 16831 | __int128 foo (__int128 ) |
| 16832 | { |
| 16833 | __int128 aaa; |
| 16834 | return (__int128) aaa; |
| 16835 | } |
| 16836 | |
| 16837 | __int128 bar (__int128 ) |
| 16838 | { |
| 16839 | __int128 aaa; |
| 16840 | return (__int128) aaa; |
| 16841 | } |
| 16842 | |
| 16843 | int |
| 16844 | main () |
| 16845 | { |
| 16846 | |
| 16847 | foo (1); |
| 16848 | bar (1); |
| 16849 | |
| 16850 | ; |
| 16851 | return 0; |
| 16852 | } |
| 16853 | _ACEOF |
| 16854 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16855 | |
| 16856 | libgcobol_cv_have_int128=yes |
| 16857 | |
| 16858 | else |
| 16859 | |
| 16860 | libgcobol_cv_have_int128=no |
| 16861 | |
| 16862 | fi |
| 16863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16864 | else |
| 16865 | if test x$gcc_no_link = xyes; then |
| 16866 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 16867 | fi |
| 16868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16869 | /* end confdefs.h. */ |
| 16870 | |
| 16871 | __int128 foo (__int128 ) |
| 16872 | { |
| 16873 | __int128 aaa; |
| 16874 | return (__int128) aaa; |
| 16875 | } |
| 16876 | |
| 16877 | __int128 bar (__int128 ) |
| 16878 | { |
| 16879 | __int128 aaa; |
| 16880 | return (__int128) aaa; |
| 16881 | } |
| 16882 | |
| 16883 | int |
| 16884 | main () |
| 16885 | { |
| 16886 | |
| 16887 | foo (1); |
| 16888 | bar (1); |
| 16889 | |
| 16890 | ; |
| 16891 | return 0; |
| 16892 | } |
| 16893 | _ACEOF |
| 16894 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16895 | |
| 16896 | libgcobol_cv_have_int128=yes |
| 16897 | |
| 16898 | else |
| 16899 | |
| 16900 | libgcobol_cv_have_int128=no |
| 16901 | |
| 16902 | fi |
| 16903 | rm -f core conftest.err conftest.$ac_objext \ |
| 16904 | conftest$ac_exeext conftest.$ac_ext |
| 16905 | fi |
| 16906 | fi |
| 16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcobol_cv_have_int128" >&5 |
| 16908 | $as_echo "$libgcobol_cv_have_int128" >&6; } |
| 16909 | |
| 16910 | if test "x$use_libgcobol" = xyes && test "x$libgcobol_cv_have_int128" = xyes; then |
| 16911 | BUILD_LIBGCOBOL_TRUE= |
| 16912 | BUILD_LIBGCOBOL_FALSE='#' |
| 16913 | else |
| 16914 | BUILD_LIBGCOBOL_TRUE='#' |
| 16915 | BUILD_LIBGCOBOL_FALSE= |
| 16916 | fi |
| 16917 | |
| 16918 | |
| 16919 | #Â Check if functions are available in libc before adding extra libs. |
| 16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5 |
| 16921 | $as_echo_n "checking for library containing malloc... " >&6; } |
| 16922 | if ${ac_cv_search_malloc+:} false; then : |
| 16923 | $as_echo_n "(cached) " >&6 |
| 16924 | else |
| 16925 | ac_func_search_save_LIBS=$LIBS |
| 16926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16927 | /* end confdefs.h. */ |
| 16928 | |
| 16929 | /* Override any GCC internal prototype to avoid an error. |
| 16930 | Use char because int might match the return type of a GCC |
| 16931 | builtin and then its argument prototype would still apply. */ |
| 16932 | #ifdef __cplusplus |
| 16933 | extern "C" |
| 16934 | #endif |
| 16935 | char malloc (); |
| 16936 | int |
| 16937 | main () |
| 16938 | { |
| 16939 | return malloc (); |
| 16940 | ; |
| 16941 | return 0; |
| 16942 | } |
| 16943 | _ACEOF |
| 16944 | for ac_lib in '' c; do |
| 16945 | if test -z "$ac_lib"; then |
| 16946 | ac_res="none required" |
| 16947 | else |
| 16948 | ac_res=-l$ac_lib |
| 16949 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16950 | fi |
| 16951 | if test x$gcc_no_link = xyes; then |
| 16952 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 16953 | fi |
| 16954 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16955 | ac_cv_search_malloc=$ac_res |
| 16956 | fi |
| 16957 | rm -f core conftest.err conftest.$ac_objext \ |
| 16958 | conftest$ac_exeext |
| 16959 | if ${ac_cv_search_malloc+:} false; then : |
| 16960 | break |
| 16961 | fi |
| 16962 | done |
| 16963 | if ${ac_cv_search_malloc+:} false; then : |
| 16964 | |
| 16965 | else |
| 16966 | ac_cv_search_malloc=no |
| 16967 | fi |
| 16968 | rm conftest.$ac_ext |
| 16969 | LIBS=$ac_func_search_save_LIBS |
| 16970 | fi |
| 16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5 |
| 16972 | $as_echo "$ac_cv_search_malloc" >&6; } |
| 16973 | ac_res=$ac_cv_search_malloc |
| 16974 | if test "$ac_res" != no; then : |
| 16975 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16976 | |
| 16977 | fi |
| 16978 | |
| 16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 16980 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| 16981 | if ${ac_cv_search_clock_gettime+:} false; then : |
| 16982 | $as_echo_n "(cached) " >&6 |
| 16983 | else |
| 16984 | ac_func_search_save_LIBS=$LIBS |
| 16985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16986 | /* end confdefs.h. */ |
| 16987 | |
| 16988 | /* Override any GCC internal prototype to avoid an error. |
| 16989 | Use char because int might match the return type of a GCC |
| 16990 | builtin and then its argument prototype would still apply. */ |
| 16991 | #ifdef __cplusplus |
| 16992 | extern "C" |
| 16993 | #endif |
| 16994 | char clock_gettime (); |
| 16995 | int |
| 16996 | main () |
| 16997 | { |
| 16998 | return clock_gettime (); |
| 16999 | ; |
| 17000 | return 0; |
| 17001 | } |
| 17002 | _ACEOF |
| 17003 | for ac_lib in '' c rt; do |
| 17004 | if test -z "$ac_lib"; then |
| 17005 | ac_res="none required" |
| 17006 | else |
| 17007 | ac_res=-l$ac_lib |
| 17008 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17009 | fi |
| 17010 | if test x$gcc_no_link = xyes; then |
| 17011 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17012 | fi |
| 17013 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17014 | ac_cv_search_clock_gettime=$ac_res |
| 17015 | fi |
| 17016 | rm -f core conftest.err conftest.$ac_objext \ |
| 17017 | conftest$ac_exeext |
| 17018 | if ${ac_cv_search_clock_gettime+:} false; then : |
| 17019 | break |
| 17020 | fi |
| 17021 | done |
| 17022 | if ${ac_cv_search_clock_gettime+:} false; then : |
| 17023 | |
| 17024 | else |
| 17025 | ac_cv_search_clock_gettime=no |
| 17026 | fi |
| 17027 | rm conftest.$ac_ext |
| 17028 | LIBS=$ac_func_search_save_LIBS |
| 17029 | fi |
| 17030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 17031 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 17032 | ac_res=$ac_cv_search_clock_gettime |
| 17033 | if test "$ac_res" != no; then : |
| 17034 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17035 | |
| 17036 | fi |
| 17037 | |
| 17038 | |
| 17039 | # libgcobol soname version |
| 17040 | LIBGCOBOL_VERSION=1:0:0 |
| 17041 | |
| 17042 | |
| 17043 | ## added, currently unused. |
| 17044 | # VERSION_SUFFIX=$(echo $LIBGCOBOL_VERSION | tr ':' '.' ) |
| 17045 | # AC_SUBST(VERSION_SUFFIX) |
| 17046 | ## end added |
| 17047 | |
| 17048 | extra_ldflags_libgcobol= |
| 17049 | case $host in |
| 17050 | *-*-darwin*) |
| 17051 | extra_ldflags_libgcobol=-Wl,-U,___cobol_main ;; |
| 17052 | *) ;; |
| 17053 | esac |
| 17054 | |
| 17055 | |
| 17056 | |
| 17057 | |
| 17058 | |
| 17059 | for ac_header in $ac_header_list |
| 17060 | do : |
| 17061 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17062 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 17063 | " |
| 17064 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17065 | cat >>confdefs.h <<_ACEOF |
| 17066 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17067 | _ACEOF |
| 17068 | |
| 17069 | fi |
| 17070 | |
| 17071 | done |
| 17072 | |
| 17073 | |
| 17074 | |
| 17075 | |
| 17076 | |
| 17077 | |
| 17078 | |
| 17079 | |
| 17080 | |
| 17081 | |
| 17082 | |
| 17083 | |
| 17084 | |
| 17085 | |
| 17086 | |
| 17087 | |
| 17088 | |
| 17089 | # Look for a way to represent the program name |
| 17090 | # First, check the GLIBC case |
| 17091 | ac_fn_cxx_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" " |
| 17092 | #if HAVE_ERRNO_H |
| 17093 | # define _GNU_SOURCE |
| 17094 | # include <errno.h> |
| 17095 | #endif |
| 17096 | |
| 17097 | " |
| 17098 | if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : |
| 17099 | ac_have_decl=1 |
| 17100 | else |
| 17101 | ac_have_decl=0 |
| 17102 | fi |
| 17103 | |
| 17104 | cat >>confdefs.h <<_ACEOF |
| 17105 | #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl |
| 17106 | _ACEOF |
| 17107 | |
| 17108 | |
| 17109 | # Check an alternate |
| 17110 | |
| 17111 | |
| 17112 | |
| 17113 | for ac_func in $ac_func_list |
| 17114 | do : |
| 17115 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17116 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 17117 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 17118 | cat >>confdefs.h <<_ACEOF |
| 17119 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17120 | _ACEOF |
| 17121 | |
| 17122 | fi |
| 17123 | done |
| 17124 | |
| 17125 | |
| 17126 | |
| 17127 | |
| 17128 | |
| 17129 | # These are GLIBC |
| 17130 | |
| 17131 | |
| 17132 | |
| 17133 | |
| 17134 | |
| 17135 | |
| 17136 | |
| 17137 | |
| 17138 | |
| 17139 | |
| 17140 | # Some functions we check to figure out if the libc Float128 support |
| 17141 | # is adequate. |
| 17142 | |
| 17143 | #Â These are C23. |
| 17144 | |
| 17145 | |
| 17146 | |
| 17147 | |
| 17148 | |
| 17149 | |
| 17150 | # These are GLIBC. |
| 17151 | |
| 17152 | |
| 17153 | |
| 17154 | |
| 17155 | |
| 17156 | # We need to make sure to check libc before adding libm. |
| 17157 | libgcobol_have_sinf128=no |
| 17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf128" >&5 |
| 17159 | $as_echo_n "checking for library containing sinf128... " >&6; } |
| 17160 | if ${ac_cv_search_sinf128+:} false; then : |
| 17161 | $as_echo_n "(cached) " >&6 |
| 17162 | else |
| 17163 | ac_func_search_save_LIBS=$LIBS |
| 17164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17165 | /* end confdefs.h. */ |
| 17166 | |
| 17167 | /* Override any GCC internal prototype to avoid an error. |
| 17168 | Use char because int might match the return type of a GCC |
| 17169 | builtin and then its argument prototype would still apply. */ |
| 17170 | #ifdef __cplusplus |
| 17171 | extern "C" |
| 17172 | #endif |
| 17173 | char sinf128 (); |
| 17174 | int |
| 17175 | main () |
| 17176 | { |
| 17177 | return sinf128 (); |
| 17178 | ; |
| 17179 | return 0; |
| 17180 | } |
| 17181 | _ACEOF |
| 17182 | for ac_lib in '' c m; do |
| 17183 | if test -z "$ac_lib"; then |
| 17184 | ac_res="none required" |
| 17185 | else |
| 17186 | ac_res=-l$ac_lib |
| 17187 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17188 | fi |
| 17189 | if test x$gcc_no_link = xyes; then |
| 17190 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17191 | fi |
| 17192 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17193 | ac_cv_search_sinf128=$ac_res |
| 17194 | fi |
| 17195 | rm -f core conftest.err conftest.$ac_objext \ |
| 17196 | conftest$ac_exeext |
| 17197 | if ${ac_cv_search_sinf128+:} false; then : |
| 17198 | break |
| 17199 | fi |
| 17200 | done |
| 17201 | if ${ac_cv_search_sinf128+:} false; then : |
| 17202 | |
| 17203 | else |
| 17204 | ac_cv_search_sinf128=no |
| 17205 | fi |
| 17206 | rm conftest.$ac_ext |
| 17207 | LIBS=$ac_func_search_save_LIBS |
| 17208 | fi |
| 17209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf128" >&5 |
| 17210 | $as_echo "$ac_cv_search_sinf128" >&6; } |
| 17211 | ac_res=$ac_cv_search_sinf128 |
| 17212 | if test "$ac_res" != no; then : |
| 17213 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17214 | libgcobol_have_sinf128=yes |
| 17215 | fi |
| 17216 | |
| 17217 | libgcobol_have_cacosf128=no |
| 17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cacosf128" >&5 |
| 17219 | $as_echo_n "checking for library containing cacosf128... " >&6; } |
| 17220 | if ${ac_cv_search_cacosf128+:} false; then : |
| 17221 | $as_echo_n "(cached) " >&6 |
| 17222 | else |
| 17223 | ac_func_search_save_LIBS=$LIBS |
| 17224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17225 | /* end confdefs.h. */ |
| 17226 | |
| 17227 | /* Override any GCC internal prototype to avoid an error. |
| 17228 | Use char because int might match the return type of a GCC |
| 17229 | builtin and then its argument prototype would still apply. */ |
| 17230 | #ifdef __cplusplus |
| 17231 | extern "C" |
| 17232 | #endif |
| 17233 | char cacosf128 (); |
| 17234 | int |
| 17235 | main () |
| 17236 | { |
| 17237 | return cacosf128 (); |
| 17238 | ; |
| 17239 | return 0; |
| 17240 | } |
| 17241 | _ACEOF |
| 17242 | for ac_lib in '' c m; do |
| 17243 | if test -z "$ac_lib"; then |
| 17244 | ac_res="none required" |
| 17245 | else |
| 17246 | ac_res=-l$ac_lib |
| 17247 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17248 | fi |
| 17249 | if test x$gcc_no_link = xyes; then |
| 17250 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17251 | fi |
| 17252 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17253 | ac_cv_search_cacosf128=$ac_res |
| 17254 | fi |
| 17255 | rm -f core conftest.err conftest.$ac_objext \ |
| 17256 | conftest$ac_exeext |
| 17257 | if ${ac_cv_search_cacosf128+:} false; then : |
| 17258 | break |
| 17259 | fi |
| 17260 | done |
| 17261 | if ${ac_cv_search_cacosf128+:} false; then : |
| 17262 | |
| 17263 | else |
| 17264 | ac_cv_search_cacosf128=no |
| 17265 | fi |
| 17266 | rm conftest.$ac_ext |
| 17267 | LIBS=$ac_func_search_save_LIBS |
| 17268 | fi |
| 17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cacosf128" >&5 |
| 17270 | $as_echo "$ac_cv_search_cacosf128" >&6; } |
| 17271 | ac_res=$ac_cv_search_cacosf128 |
| 17272 | if test "$ac_res" != no; then : |
| 17273 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17274 | libgcobol_have_cacosf128=yes |
| 17275 | fi |
| 17276 | |
| 17277 | |
| 17278 | # Copied from gcc/configure.ac. 2025-06-05 R.J.Dubner |
| 17279 | # At least for glibc, clock_gettime is in librt. But don't pull that |
| 17280 | # in if it still doesn't give us the function we want. |
| 17281 | ac_cv_func_clock_gettime=no |
| 17282 | if test $ac_cv_func_clock_gettime = no; then |
| 17283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 17284 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 17285 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 17286 | $as_echo_n "(cached) " >&6 |
| 17287 | else |
| 17288 | ac_check_lib_save_LIBS=$LIBS |
| 17289 | LIBS="-lrt $LIBS" |
| 17290 | if test x$gcc_no_link = xyes; then |
| 17291 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17292 | fi |
| 17293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17294 | /* end confdefs.h. */ |
| 17295 | |
| 17296 | /* Override any GCC internal prototype to avoid an error. |
| 17297 | Use char because int might match the return type of a GCC |
| 17298 | builtin and then its argument prototype would still apply. */ |
| 17299 | #ifdef __cplusplus |
| 17300 | extern "C" |
| 17301 | #endif |
| 17302 | char clock_gettime (); |
| 17303 | int |
| 17304 | main () |
| 17305 | { |
| 17306 | return clock_gettime (); |
| 17307 | ; |
| 17308 | return 0; |
| 17309 | } |
| 17310 | _ACEOF |
| 17311 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17312 | ac_cv_lib_rt_clock_gettime=yes |
| 17313 | else |
| 17314 | ac_cv_lib_rt_clock_gettime=no |
| 17315 | fi |
| 17316 | rm -f core conftest.err conftest.$ac_objext \ |
| 17317 | conftest$ac_exeext conftest.$ac_ext |
| 17318 | LIBS=$ac_check_lib_save_LIBS |
| 17319 | fi |
| 17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 17321 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 17322 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 17323 | LIBS="-lrt $LIBS" |
| 17324 | |
| 17325 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 17326 | |
| 17327 | fi |
| 17328 | |
| 17329 | fi |
| 17330 | |
| 17331 | have_iec_60559_libc_support=no |
| 17332 | if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \ |
| 17333 | && test "x$libgcobol_have_sinf128$libgcobol_have_cacosf128" = xyesyes; then |
| 17334 | have_iec_60559_libc_support=yes |
| 17335 | fi |
| 17336 | |
| 17337 | # Check whether libquadmath should be used |
| 17338 | # Check whether --enable-libquadmath was given. |
| 17339 | if test "${enable_libquadmath+set}" = set; then : |
| 17340 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH_SUPPORT=$enableval |
| 17341 | else |
| 17342 | if test "x$have_iec_60559_libc_support" = xyes; then |
| 17343 | ENABLE_LIBQUADMATH_SUPPORT=default |
| 17344 | else |
| 17345 | ENABLE_LIBQUADMATH_SUPPORT=yes |
| 17346 | fi |
| 17347 | fi |
| 17348 | |
| 17349 | enable_libquadmath_support= |
| 17350 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then |
| 17351 | enable_libquadmath_support=no |
| 17352 | elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then |
| 17353 | enable_libquadmath_support=default |
| 17354 | fi |
| 17355 | |
| 17356 | LIBQUADSPEC= |
| 17357 | LIBQUADLIB= |
| 17358 | LIBQUADLIB_DEP= |
| 17359 | LIBQUADINCLUDE= |
| 17360 | USE_IEC_60559=no |
| 17361 | |
| 17362 | if test "x$enable_libquadmath_support" = "xno"; then |
| 17363 | if test "x$have_iec_60559_libc_support" = "xyes"; then |
| 17364 | |
| 17365 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h |
| 17366 | |
| 17367 | fi |
| 17368 | else |
| 17369 | |
| 17370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5 |
| 17371 | $as_echo_n "checking whether we have a usable _Float128 type... " >&6; } |
| 17372 | if ${libgcob_cv_have_float128+:} false; then : |
| 17373 | $as_echo_n "(cached) " >&6 |
| 17374 | else |
| 17375 | |
| 17376 | if test x$gcc_no_link = xyes; then |
| 17377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17378 | /* end confdefs.h. */ |
| 17379 | |
| 17380 | #if __LDBL_MANT_DIG__ == 113 && __LDBL_MIN_EXP__ == -16381 |
| 17381 | #error "long double is IEEE quad, no need for libquadmath" |
| 17382 | #endif |
| 17383 | |
| 17384 | _Float128 foo (_Float128 x) |
| 17385 | { |
| 17386 | _Complex _Float128 z1, z2; |
| 17387 | |
| 17388 | z1 = x; |
| 17389 | z2 = x / 7.F128; |
| 17390 | z2 /= z1; |
| 17391 | |
| 17392 | return __real__ z2; |
| 17393 | } |
| 17394 | |
| 17395 | _Float128 bar (_Float128 x) |
| 17396 | { |
| 17397 | return x * __builtin_huge_valf128 (); |
| 17398 | } |
| 17399 | |
| 17400 | __float128 baz (__float128 x) |
| 17401 | { |
| 17402 | return x * __builtin_huge_valf128 (); |
| 17403 | } |
| 17404 | |
| 17405 | int |
| 17406 | main () |
| 17407 | { |
| 17408 | |
| 17409 | foo (1.2F128); |
| 17410 | bar (1.2F128); |
| 17411 | baz (1.2F128); |
| 17412 | foo (1.2Q); |
| 17413 | bar (1.2Q); |
| 17414 | baz (1.2Q); |
| 17415 | |
| 17416 | ; |
| 17417 | return 0; |
| 17418 | } |
| 17419 | _ACEOF |
| 17420 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17421 | |
| 17422 | libgcob_cv_have_float128=yes |
| 17423 | |
| 17424 | else |
| 17425 | |
| 17426 | libgcob_cv_have_float128=no |
| 17427 | |
| 17428 | fi |
| 17429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17430 | else |
| 17431 | if test x$gcc_no_link = xyes; then |
| 17432 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17433 | fi |
| 17434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17435 | /* end confdefs.h. */ |
| 17436 | |
| 17437 | #if __LDBL_MANT_DIG__ == 113 && __LDBL_MIN_EXP__ == -16381 |
| 17438 | #error "long double is IEEE quad, no need for libquadmath" |
| 17439 | #endif |
| 17440 | |
| 17441 | _Float128 foo (_Float128 x) |
| 17442 | { |
| 17443 | _Complex _Float128 z1, z2; |
| 17444 | |
| 17445 | z1 = x; |
| 17446 | z2 = x / 7.F128; |
| 17447 | z2 /= z1; |
| 17448 | |
| 17449 | return __real__ z2; |
| 17450 | } |
| 17451 | |
| 17452 | _Float128 bar (_Float128 x) |
| 17453 | { |
| 17454 | return x * __builtin_huge_valf128 (); |
| 17455 | } |
| 17456 | |
| 17457 | __float128 baz (__float128 x) |
| 17458 | { |
| 17459 | return x * __builtin_huge_valf128 (); |
| 17460 | } |
| 17461 | |
| 17462 | int |
| 17463 | main () |
| 17464 | { |
| 17465 | |
| 17466 | foo (1.2F128); |
| 17467 | bar (1.2F128); |
| 17468 | baz (1.2F128); |
| 17469 | foo (1.2Q); |
| 17470 | bar (1.2Q); |
| 17471 | baz (1.2Q); |
| 17472 | |
| 17473 | ; |
| 17474 | return 0; |
| 17475 | } |
| 17476 | _ACEOF |
| 17477 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17478 | |
| 17479 | libgcob_cv_have_float128=yes |
| 17480 | |
| 17481 | else |
| 17482 | |
| 17483 | libgcob_cv_have_float128=no |
| 17484 | |
| 17485 | fi |
| 17486 | rm -f core conftest.err conftest.$ac_objext \ |
| 17487 | conftest$ac_exeext conftest.$ac_ext |
| 17488 | fi |
| 17489 | fi |
| 17490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcob_cv_have_float128" >&5 |
| 17491 | $as_echo "$libgcob_cv_have_float128" >&6; } |
| 17492 | |
| 17493 | if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgcob_cv_have_float128" = xyesdefaultyes; then |
| 17494 | USE_IEC_60559=yes |
| 17495 | fi |
| 17496 | |
| 17497 | if test "x$libgcob_cv_have_float128" = xyes; then |
| 17498 | |
| 17499 | if test "x$USE_IEC_60559" = xyes; then |
| 17500 | |
| 17501 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h |
| 17502 | |
| 17503 | else |
| 17504 | |
| 17505 | $as_echo "#define USE_QUADMATH 1" >>confdefs.h |
| 17506 | |
| 17507 | fi |
| 17508 | |
| 17509 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h |
| 17510 | |
| 17511 | |
| 17512 | if test "x$USE_IEC_60559" != xyes; then |
| 17513 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
| 17514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
| 17515 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } |
| 17516 | if ${libgcob_cv_have_as_needed+:} false; then : |
| 17517 | $as_echo_n "(cached) " >&6 |
| 17518 | else |
| 17519 | |
| 17520 | # Test for native Solaris options first. |
| 17521 | # No whitespace after -z to pass it through -Wl. |
| 17522 | libgcob_cv_as_needed_option="-zignore" |
| 17523 | libgcob_cv_no_as_needed_option="-zrecord" |
| 17524 | save_LDFLAGS="$LDFLAGS" |
| 17525 | LDFLAGS="$LDFLAGS -Wl,$libgcob_cv_as_needed_option -lm -Wl,$libgcob_cv_no_as_needed_option" |
| 17526 | libgcob_cv_have_as_needed=no |
| 17527 | |
| 17528 | ac_cxx_werror_flag=yes |
| 17529 | if test x$gcc_no_link = xyes; then |
| 17530 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17531 | fi |
| 17532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17533 | /* end confdefs.h. */ |
| 17534 | |
| 17535 | int |
| 17536 | main () |
| 17537 | { |
| 17538 | |
| 17539 | ; |
| 17540 | return 0; |
| 17541 | } |
| 17542 | _ACEOF |
| 17543 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17544 | libgcob_cv_have_as_needed=yes |
| 17545 | else |
| 17546 | libgcob_cv_have_as_needed=no |
| 17547 | fi |
| 17548 | rm -f core conftest.err conftest.$ac_objext \ |
| 17549 | conftest$ac_exeext conftest.$ac_ext |
| 17550 | LDFLAGS="$save_LDFLAGS" |
| 17551 | if test "x$libgcob_cv_have_as_needed" = xno; then |
| 17552 | libgcob_cv_as_needed_option="--as-needed" |
| 17553 | libgcob_cv_no_as_needed_option="--no-as-needed" |
| 17554 | save_LDFLAGS="$LDFLAGS" |
| 17555 | LDFLAGS="$LDFLAGS -Wl,$libgcob_cv_as_needed_option -lm -Wl,$libgcob_cv_no_as_needed_option" |
| 17556 | libgcob_cv_have_as_needed=no |
| 17557 | |
| 17558 | ac_cxx_werror_flag=yes |
| 17559 | if test x$gcc_no_link = xyes; then |
| 17560 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
| 17561 | fi |
| 17562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17563 | /* end confdefs.h. */ |
| 17564 | |
| 17565 | int |
| 17566 | main () |
| 17567 | { |
| 17568 | |
| 17569 | ; |
| 17570 | return 0; |
| 17571 | } |
| 17572 | _ACEOF |
| 17573 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17574 | libgcob_cv_have_as_needed=yes |
| 17575 | else |
| 17576 | libgcob_cv_have_as_needed=no |
| 17577 | fi |
| 17578 | rm -f core conftest.err conftest.$ac_objext \ |
| 17579 | conftest$ac_exeext conftest.$ac_ext |
| 17580 | LDFLAGS="$save_LDFLAGS" |
| 17581 | fi |
| 17582 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
| 17583 | |
| 17584 | fi |
| 17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcob_cv_have_as_needed" >&5 |
| 17586 | $as_echo "$libgcob_cv_have_as_needed" >&6; } |
| 17587 | |
| 17588 | touch conftest1.$ac_objext conftest2.$ac_objext |
| 17589 | LQUADMATH=-lquadmath |
| 17590 | $CXX -static-libgcobol -### -o conftest \ |
| 17591 | conftest1.$ac_objext -lgcobol conftest2.$ac_objext 2>&1 >/dev/null \ |
| 17592 | | grep "conftest1.$ac_objext.*conftest2.$ac_objext" > conftest.cmd |
| 17593 | if grep "conftest1.$ac_objext.* -Bstatic -lgcobol -Bdynamic .*conftest2.$ac_objext" \ |
| 17594 | conftest.cmd >/dev/null 2>&1; then |
| 17595 | LQUADMATH="%{static-libquadmath:-Bstatic} -lquadmath %{static-libquadmath:-Bdynamic}" |
| 17596 | elif grep "conftest1.$ac_objext.* -bstatic -lgcobol -bdynamic .*conftest2.$ac_objext" \ |
| 17597 | conftest.cmd >/dev/null 2>&1; then |
| 17598 | LQUADMATH="%{static-libquadmath:-bstatic} -lquadmath %{static-libquadmath:-bdynamic}" |
| 17599 | elif grep "conftest1.$ac_objext.* -aarchive_shared -lgcobol -adefault .*conftest2.$ac_objext" \ |
| 17600 | conftest.cmd >/dev/null 2>&1; then |
| 17601 | LQUADMATH="%{static-libquadmath:-aarchive_shared} -lquadmath %{static-libquadmath:-adefault}" |
| 17602 | elif grep "conftest1.$ac_objext.*libgcobol.a .*conftest2.$ac_objext" \ |
| 17603 | conftest.cmd >/dev/null 2>&1; then |
| 17604 | LQUADMATH="%{static-libquadmath:libquadmath.a%s;:-lquadmath}" |
| 17605 | fi |
| 17606 | rm -f conftest1.$ac_objext conftest2.$ac_objext conftest conftest.cmd |
| 17607 | |
| 17608 | if test "x$libgcob_cv_have_as_needed" = xyes; then |
| 17609 | if test "x$USE_IEC_60559" = xyes; then |
| 17610 | LIBQUADSPEC="$libgcob_cv_as_needed_option $LQUADMATH $libgcob_cv_no_as_needed_option" |
| 17611 | else |
| 17612 | LIBQUADSPEC="%{static-libgcobol:$libgcob_cv_as_needed_option} $LQUADMATH %{static-libgcobol:$libgcob_cv_no_as_needed_option}" |
| 17613 | fi |
| 17614 | else |
| 17615 | LIBQUADSPEC="$LQUADMATH" |
| 17616 | fi |
| 17617 | if test -f ../libquadmath/libquadmath.la; then |
| 17618 | LIBQUADLIB=../libquadmath/libquadmath.la |
| 17619 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la |
| 17620 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' |
| 17621 | else |
| 17622 | LIBQUADLIB="-lquadmath" |
| 17623 | fi |
| 17624 | fi |
| 17625 | else |
| 17626 | if test "x$USE_IEC_60559" = xyes; then |
| 17627 | |
| 17628 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h |
| 17629 | |
| 17630 | fi |
| 17631 | fi |
| 17632 | |
| 17633 | fi |
| 17634 | |
| 17635 | |
| 17636 | |
| 17637 | |
| 17638 | |
| 17639 | |
| 17640 | |
| 17641 | |
| 17642 | # struct tm tm_zone is a POSIX.1-2024 addition. |
| 17643 | ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <time.h> |
| 17644 | " |
| 17645 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
| 17646 | |
| 17647 | cat >>confdefs.h <<_ACEOF |
| 17648 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 17649 | _ACEOF |
| 17650 | |
| 17651 | |
| 17652 | fi |
| 17653 | |
| 17654 | |
| 17655 | if test "${multilib}" = "yes"; then |
| 17656 | multilib_arg="--enable-multilib" |
| 17657 | else |
| 17658 | multilib_arg= |
| 17659 | fi |
| 17660 | |
| 17661 | # Determine what GCC version number to use in filesystem paths. |
| 17662 | |
| 17663 | get_gcc_base_ver="cat" |
| 17664 | |
| 17665 | # Check whether --with-gcc-major-version-only was given. |
| 17666 | if test "${with_gcc_major_version_only+set}" = set; then : |
| 17667 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then |
| 17668 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
| 17669 | fi |
| 17670 | |
| 17671 | fi |
| 17672 | |
| 17673 | |
| 17674 | |
| 17675 | |
| 17676 | # Add dependencies for libgcobol.spec file, this might be excessive - since |
| 17677 | # the spec file might not use all of them. |
| 17678 | SPEC_LIBGCOBOL_DEPS="$LIBS" |
| 17679 | |
| 17680 | |
| 17681 | ac_config_files="$ac_config_files Makefile libgcobol.spec" |
| 17682 | |
| 17683 | |
| 17684 | { $as_echo "$as_me:${as_lineno-$LINENO}: libgcobol has been configured." >&5 |
| 17685 | $as_echo "$as_me: libgcobol has been configured." >&6;} |
| 17686 | |
| 17687 | cat >confcache <<\_ACEOF |
| 17688 | # This file is a shell script that caches the results of configure |
| 17689 | # tests run on this system so they can be shared between configure |
| 17690 | # scripts and configure runs, see configure's option --config-cache. |
| 17691 | # It is not useful on other systems. If it contains results you don't |
| 17692 | # want to keep, you may remove or edit it. |
| 17693 | # |
| 17694 | # config.status only pays attention to the cache file if you give it |
| 17695 | # the --recheck option to rerun configure. |
| 17696 | # |
| 17697 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17698 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17699 | # following values. |
| 17700 | |
| 17701 | _ACEOF |
| 17702 | |
| 17703 | # The following way of writing the cache mishandles newlines in values, |
| 17704 | # but we know of no workaround that is simple, portable, and efficient. |
| 17705 | # So, we kill variables containing newlines. |
| 17706 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17707 | # and sets the high bit in the cache file unless we assign to the vars. |
| 17708 | ( |
| 17709 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17710 | eval ac_val=\$$ac_var |
| 17711 | case $ac_val in #( |
| 17712 | *${as_nl}*) |
| 17713 | case $ac_var in #( |
| 17714 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17715 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 17716 | esac |
| 17717 | case $ac_var in #( |
| 17718 | _ | IFS | as_nl) ;; #( |
| 17719 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17720 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 17721 | esac ;; |
| 17722 | esac |
| 17723 | done |
| 17724 | |
| 17725 | (set) 2>&1 | |
| 17726 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17727 | *${as_nl}ac_space=\ *) |
| 17728 | # `set' does not quote correctly, so add quotes: double-quote |
| 17729 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 17730 | sed -n \ |
| 17731 | "s/'/'\\\\''/g; |
| 17732 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17733 | ;; #( |
| 17734 | *) |
| 17735 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17736 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 17737 | ;; |
| 17738 | esac | |
| 17739 | sort |
| 17740 | ) | |
| 17741 | sed ' |
| 17742 | /^ac_cv_env_/b end |
| 17743 | t clear |
| 17744 | :clear |
| 17745 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17746 | t end |
| 17747 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17748 | :end' >>confcache |
| 17749 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17750 | if test -w "$cache_file"; then |
| 17751 | if test "x$cache_file" != "x/dev/null"; then |
| 17752 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 17753 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 17754 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 17755 | cat confcache >"$cache_file" |
| 17756 | else |
| 17757 | case $cache_file in #( |
| 17758 | */* | ?:*) |
| 17759 | mv -f confcache "$cache_file"$$ && |
| 17760 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 17761 | *) |
| 17762 | mv -f confcache "$cache_file" ;; |
| 17763 | esac |
| 17764 | fi |
| 17765 | fi |
| 17766 | else |
| 17767 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 17768 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 17769 | fi |
| 17770 | fi |
| 17771 | rm -f confcache |
| 17772 | |
| 17773 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17774 | # Let make expand exec_prefix. |
| 17775 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17776 | |
| 17777 | DEFS=-DHAVE_CONFIG_H |
| 17778 | |
| 17779 | ac_libobjs= |
| 17780 | ac_ltlibobjs= |
| 17781 | U= |
| 17782 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17783 | # 1. Remove the extension, and $U if already installed. |
| 17784 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17785 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 17786 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17787 | # will be set to the directory where LIBOBJS objects are built. |
| 17788 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17789 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 17790 | done |
| 17791 | LIBOBJS=$ac_libobjs |
| 17792 | |
| 17793 | LTLIBOBJS=$ac_ltlibobjs |
| 17794 | |
| 17795 | |
| 17796 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 17797 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 17798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17799 | fi |
| 17800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 17801 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 17802 | if test -n "$am_sleep_pid"; then |
| 17803 | # Hide warnings about reused PIDs. |
| 17804 | wait $am_sleep_pid 2>/dev/null |
| 17805 | fi |
| 17806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 17807 | $as_echo "done" >&6; } |
| 17808 | if test -n "$EXEEXT"; then |
| 17809 | am__EXEEXT_TRUE= |
| 17810 | am__EXEEXT_FALSE='#' |
| 17811 | else |
| 17812 | am__EXEEXT_TRUE='#' |
| 17813 | am__EXEEXT_FALSE= |
| 17814 | fi |
| 17815 | |
| 17816 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 17817 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 17818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17819 | fi |
| 17820 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 17821 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 17822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17823 | fi |
| 17824 | if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then |
| 17825 | as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined. |
| 17826 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17827 | fi |
| 17828 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 17829 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 17830 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17831 | fi |
| 17832 | if test -z "${BUILD_LIBGCOBOL_TRUE}" && test -z "${BUILD_LIBGCOBOL_FALSE}"; then |
| 17833 | as_fn_error $? "conditional \"BUILD_LIBGCOBOL\" was never defined. |
| 17834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17835 | fi |
| 17836 | |
| 17837 | : "${CONFIG_STATUS=./config.status}" |
| 17838 | ac_write_fail=0 |
| 17839 | ac_clean_files_save=$ac_clean_files |
| 17840 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17841 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 17842 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17843 | as_write_fail=0 |
| 17844 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 17845 | #! $SHELL |
| 17846 | # Generated by $as_me. |
| 17847 | # Run this file to recreate the current configuration. |
| 17848 | # Compiler output produced by configure, useful for debugging |
| 17849 | # configure, is in config.log if it exists. |
| 17850 | |
| 17851 | debug=false |
| 17852 | ac_cs_recheck=false |
| 17853 | ac_cs_silent=false |
| 17854 | |
| 17855 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17856 | export SHELL |
| 17857 | _ASEOF |
| 17858 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 17859 | ## -------------------- ## |
| 17860 | ## M4sh Initialization. ## |
| 17861 | ## -------------------- ## |
| 17862 | |
| 17863 | # Be more Bourne compatible |
| 17864 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17865 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 17866 | emulate sh |
| 17867 | NULLCMD=: |
| 17868 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 17869 | # is contrary to our usage. Disable this feature. |
| 17870 | alias -g '${1+"$@"}'='"$@"' |
| 17871 | setopt NO_GLOB_SUBST |
| 17872 | else |
| 17873 | case `(set -o) 2>/dev/null` in #( |
| 17874 | *posix*) : |
| 17875 | set -o posix ;; #( |
| 17876 | *) : |
| 17877 | ;; |
| 17878 | esac |
| 17879 | fi |
| 17880 | |
| 17881 | |
| 17882 | as_nl=' |
| 17883 | ' |
| 17884 | export as_nl |
| 17885 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17886 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17887 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17888 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17889 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 17890 | # but without wasting forks for bash or zsh. |
| 17891 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 17892 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17893 | as_echo='print -r --' |
| 17894 | as_echo_n='print -rn --' |
| 17895 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17896 | as_echo='printf %s\n' |
| 17897 | as_echo_n='printf %s' |
| 17898 | else |
| 17899 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17900 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17901 | as_echo_n='/usr/ucb/echo -n' |
| 17902 | else |
| 17903 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17904 | as_echo_n_body='eval |
| 17905 | arg=$1; |
| 17906 | case $arg in #( |
| 17907 | *"$as_nl"*) |
| 17908 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17909 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17910 | esac; |
| 17911 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17912 | ' |
| 17913 | export as_echo_n_body |
| 17914 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17915 | fi |
| 17916 | export as_echo_body |
| 17917 | as_echo='sh -c $as_echo_body as_echo' |
| 17918 | fi |
| 17919 | |
| 17920 | # The user is always right. |
| 17921 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17922 | PATH_SEPARATOR=: |
| 17923 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17924 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17925 | PATH_SEPARATOR=';' |
| 17926 | } |
| 17927 | fi |
| 17928 | |
| 17929 | |
| 17930 | # IFS |
| 17931 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17932 | # there to prevent editors from complaining about space-tab. |
| 17933 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17934 | # splitting by setting IFS to empty value.) |
| 17935 | IFS=" "" $as_nl" |
| 17936 | |
| 17937 | # Find who we are. Look in the path if we contain no directory separator. |
| 17938 | as_myself= |
| 17939 | case $0 in #(( |
| 17940 | *[\\/]* ) as_myself=$0 ;; |
| 17941 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17942 | for as_dir in $PATH |
| 17943 | do |
| 17944 | IFS=$as_save_IFS |
| 17945 | test -z "$as_dir" && as_dir=. |
| 17946 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17947 | done |
| 17948 | IFS=$as_save_IFS |
| 17949 | |
| 17950 | ;; |
| 17951 | esac |
| 17952 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17953 | # in which case we are not to be found in the path. |
| 17954 | if test "x$as_myself" = x; then |
| 17955 | as_myself=$0 |
| 17956 | fi |
| 17957 | if test ! -f "$as_myself"; then |
| 17958 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17959 | exit 1 |
| 17960 | fi |
| 17961 | |
| 17962 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 17963 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 17964 | # suppresses any "Segmentation fault" message there. '((' could |
| 17965 | # trigger a bug in pdksh 5.2.14. |
| 17966 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 17967 | do eval test x\${$as_var+set} = xset \ |
| 17968 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 17969 | done |
| 17970 | PS1='$ ' |
| 17971 | PS2='> ' |
| 17972 | PS4='+ ' |
| 17973 | |
| 17974 | # NLS nuisances. |
| 17975 | LC_ALL=C |
| 17976 | export LC_ALL |
| 17977 | LANGUAGE=C |
| 17978 | export LANGUAGE |
| 17979 | |
| 17980 | # CDPATH. |
| 17981 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 17982 | |
| 17983 | |
| 17984 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 17985 | # ---------------------------------------- |
| 17986 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 17987 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 17988 | # script with STATUS, using 1 if that was 0. |
| 17989 | as_fn_error () |
| 17990 | { |
| 17991 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 17992 | if test "$4"; then |
| 17993 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 17994 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 17995 | fi |
| 17996 | $as_echo "$as_me: error: $2" >&2 |
| 17997 | as_fn_exit $as_status |
| 17998 | } # as_fn_error |
| 17999 | |
| 18000 | |
| 18001 | # as_fn_set_status STATUS |
| 18002 | # ----------------------- |
| 18003 | # Set $? to STATUS, without forking. |
| 18004 | as_fn_set_status () |
| 18005 | { |
| 18006 | return $1 |
| 18007 | } # as_fn_set_status |
| 18008 | |
| 18009 | # as_fn_exit STATUS |
| 18010 | # ----------------- |
| 18011 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18012 | as_fn_exit () |
| 18013 | { |
| 18014 | set +e |
| 18015 | as_fn_set_status $1 |
| 18016 | exit $1 |
| 18017 | } # as_fn_exit |
| 18018 | |
| 18019 | # as_fn_unset VAR |
| 18020 | # --------------- |
| 18021 | # Portably unset VAR. |
| 18022 | as_fn_unset () |
| 18023 | { |
| 18024 | { eval $1=; unset $1;} |
| 18025 | } |
| 18026 | as_unset=as_fn_unset |
| 18027 | # as_fn_append VAR VALUE |
| 18028 | # ---------------------- |
| 18029 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18030 | # advantage of any shell optimizations that allow amortized linear growth over |
| 18031 | # repeated appends, instead of the typical quadratic growth present in naive |
| 18032 | # implementations. |
| 18033 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 18034 | eval 'as_fn_append () |
| 18035 | { |
| 18036 | eval $1+=\$2 |
| 18037 | }' |
| 18038 | else |
| 18039 | as_fn_append () |
| 18040 | { |
| 18041 | eval $1=\$$1\$2 |
| 18042 | } |
| 18043 | fi # as_fn_append |
| 18044 | |
| 18045 | # as_fn_arith ARG... |
| 18046 | # ------------------ |
| 18047 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18048 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18049 | # must be portable across $(()) and expr. |
| 18050 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 18051 | eval 'as_fn_arith () |
| 18052 | { |
| 18053 | as_val=$(( $* )) |
| 18054 | }' |
| 18055 | else |
| 18056 | as_fn_arith () |
| 18057 | { |
| 18058 | as_val=`expr "$@" || test $? -eq 1` |
| 18059 | } |
| 18060 | fi # as_fn_arith |
| 18061 | |
| 18062 | |
| 18063 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18064 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18065 | as_expr=expr |
| 18066 | else |
| 18067 | as_expr=false |
| 18068 | fi |
| 18069 | |
| 18070 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18071 | as_basename=basename |
| 18072 | else |
| 18073 | as_basename=false |
| 18074 | fi |
| 18075 | |
| 18076 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18077 | as_dirname=dirname |
| 18078 | else |
| 18079 | as_dirname=false |
| 18080 | fi |
| 18081 | |
| 18082 | as_me=`$as_basename -- "$0" || |
| 18083 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18084 | X"$0" : 'X\(//\)$' \| \ |
| 18085 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18086 | $as_echo X/"$0" | |
| 18087 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18088 | s//\1/ |
| 18089 | q |
| 18090 | } |
| 18091 | /^X\/\(\/\/\)$/{ |
| 18092 | s//\1/ |
| 18093 | q |
| 18094 | } |
| 18095 | /^X\/\(\/\).*/{ |
| 18096 | s//\1/ |
| 18097 | q |
| 18098 | } |
| 18099 | s/.*/./; q'` |
| 18100 | |
| 18101 | # Avoid depending upon Character Ranges. |
| 18102 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18103 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18104 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18105 | as_cr_digits='0123456789' |
| 18106 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18107 | |
| 18108 | ECHO_C= ECHO_N= ECHO_T= |
| 18109 | case `echo -n x` in #((((( |
| 18110 | -n*) |
| 18111 | case `echo 'xy\c'` in |
| 18112 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 18113 | xy) ECHO_C='\c';; |
| 18114 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 18115 | ECHO_T=' ';; |
| 18116 | esac;; |
| 18117 | *) |
| 18118 | ECHO_N='-n';; |
| 18119 | esac |
| 18120 | |
| 18121 | rm -f conf$$ conf$$.exe conf$$.file |
| 18122 | if test -d conf$$.dir; then |
| 18123 | rm -f conf$$.dir/conf$$.file |
| 18124 | else |
| 18125 | rm -f conf$$.dir |
| 18126 | mkdir conf$$.dir 2>/dev/null |
| 18127 | fi |
| 18128 | if (echo >conf$$.file) 2>/dev/null; then |
| 18129 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18130 | as_ln_s='ln -s' |
| 18131 | # ... but there are two gotchas: |
| 18132 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18133 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18134 | # In both cases, we have to default to `cp -pR'. |
| 18135 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18136 | as_ln_s='cp -pR' |
| 18137 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18138 | as_ln_s=ln |
| 18139 | else |
| 18140 | as_ln_s='cp -pR' |
| 18141 | fi |
| 18142 | else |
| 18143 | as_ln_s='cp -pR' |
| 18144 | fi |
| 18145 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18146 | rmdir conf$$.dir 2>/dev/null |
| 18147 | |
| 18148 | |
| 18149 | # as_fn_mkdir_p |
| 18150 | # ------------- |
| 18151 | # Create "$as_dir" as a directory, including parents if necessary. |
| 18152 | as_fn_mkdir_p () |
| 18153 | { |
| 18154 | |
| 18155 | case $as_dir in #( |
| 18156 | -*) as_dir=./$as_dir;; |
| 18157 | esac |
| 18158 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 18159 | as_dirs= |
| 18160 | while :; do |
| 18161 | case $as_dir in #( |
| 18162 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18163 | *) as_qdir=$as_dir;; |
| 18164 | esac |
| 18165 | as_dirs="'$as_qdir' $as_dirs" |
| 18166 | as_dir=`$as_dirname -- "$as_dir" || |
| 18167 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18168 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18169 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18170 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18171 | $as_echo X"$as_dir" | |
| 18172 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18173 | s//\1/ |
| 18174 | q |
| 18175 | } |
| 18176 | /^X\(\/\/\)[^/].*/{ |
| 18177 | s//\1/ |
| 18178 | q |
| 18179 | } |
| 18180 | /^X\(\/\/\)$/{ |
| 18181 | s//\1/ |
| 18182 | q |
| 18183 | } |
| 18184 | /^X\(\/\).*/{ |
| 18185 | s//\1/ |
| 18186 | q |
| 18187 | } |
| 18188 | s/.*/./; q'` |
| 18189 | test -d "$as_dir" && break |
| 18190 | done |
| 18191 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18192 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 18193 | |
| 18194 | |
| 18195 | } # as_fn_mkdir_p |
| 18196 | if mkdir -p . 2>/dev/null; then |
| 18197 | as_mkdir_p='mkdir -p "$as_dir"' |
| 18198 | else |
| 18199 | test -d ./-p && rmdir ./-p |
| 18200 | as_mkdir_p=false |
| 18201 | fi |
| 18202 | |
| 18203 | |
| 18204 | # as_fn_executable_p FILE |
| 18205 | # ----------------------- |
| 18206 | # Test if FILE is an executable regular file. |
| 18207 | as_fn_executable_p () |
| 18208 | { |
| 18209 | test -f "$1" && test -x "$1" |
| 18210 | } # as_fn_executable_p |
| 18211 | as_test_x='test -x' |
| 18212 | as_executable_p=as_fn_executable_p |
| 18213 | |
| 18214 | # Sed expression to map a string onto a valid CPP name. |
| 18215 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18216 | |
| 18217 | # Sed expression to map a string onto a valid variable name. |
| 18218 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18219 | |
| 18220 | |
| 18221 | exec 6>&1 |
| 18222 | ## ----------------------------------- ## |
| 18223 | ## Main body of $CONFIG_STATUS script. ## |
| 18224 | ## ----------------------------------- ## |
| 18225 | _ASEOF |
| 18226 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 18227 | |
| 18228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18229 | # Save the log message, to keep $0 and so on meaningful, and to |
| 18230 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18231 | # values after options handling. |
| 18232 | ac_log=" |
| 18233 | This file was extended by package-unused $as_me version-unused, which was |
| 18234 | generated by GNU Autoconf 2.69. Invocation command line was |
| 18235 | |
| 18236 | CONFIG_FILES = $CONFIG_FILES |
| 18237 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18238 | CONFIG_LINKS = $CONFIG_LINKS |
| 18239 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18240 | $ $0 $@ |
| 18241 | |
| 18242 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18243 | " |
| 18244 | |
| 18245 | _ACEOF |
| 18246 | |
| 18247 | case $ac_config_files in *" |
| 18248 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 18249 | esac |
| 18250 | |
| 18251 | case $ac_config_headers in *" |
| 18252 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 18253 | esac |
| 18254 | |
| 18255 | |
| 18256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18257 | # Files that config.status was made for. |
| 18258 | config_files="$ac_config_files" |
| 18259 | config_headers="$ac_config_headers" |
| 18260 | config_commands="$ac_config_commands" |
| 18261 | |
| 18262 | _ACEOF |
| 18263 | |
| 18264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18265 | ac_cs_usage="\ |
| 18266 | \`$as_me' instantiates files and other configuration actions |
| 18267 | from templates according to the current configuration. Unless the files |
| 18268 | and actions are specified as TAGs, all are instantiated by default. |
| 18269 | |
| 18270 | Usage: $0 [OPTION]... [TAG]... |
| 18271 | |
| 18272 | -h, --help print this help, then exit |
| 18273 | -V, --version print version number and configuration settings, then exit |
| 18274 | --config print configuration, then exit |
| 18275 | -q, --quiet, --silent |
| 18276 | do not print progress messages |
| 18277 | -d, --debug don't remove temporary files |
| 18278 | --recheck update $as_me by reconfiguring in the same conditions |
| 18279 | --file=FILE[:TEMPLATE] |
| 18280 | instantiate the configuration file FILE |
| 18281 | --header=FILE[:TEMPLATE] |
| 18282 | instantiate the configuration header FILE |
| 18283 | |
| 18284 | Configuration files: |
| 18285 | $config_files |
| 18286 | |
| 18287 | Configuration headers: |
| 18288 | $config_headers |
| 18289 | |
| 18290 | Configuration commands: |
| 18291 | $config_commands |
| 18292 | |
| 18293 | Report bugs to the package provider." |
| 18294 | |
| 18295 | _ACEOF |
| 18296 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18297 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 18298 | ac_cs_version="\\ |
| 18299 | package-unused config.status version-unused |
| 18300 | configured by $0, generated by GNU Autoconf 2.69, |
| 18301 | with options \\"\$ac_cs_config\\" |
| 18302 | |
| 18303 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 18304 | This config.status script is free software; the Free Software Foundation |
| 18305 | gives unlimited permission to copy, distribute and modify it." |
| 18306 | |
| 18307 | ac_pwd='$ac_pwd' |
| 18308 | srcdir='$srcdir' |
| 18309 | INSTALL='$INSTALL' |
| 18310 | MKDIR_P='$MKDIR_P' |
| 18311 | AWK='$AWK' |
| 18312 | test -n "\$AWK" || AWK=awk |
| 18313 | _ACEOF |
| 18314 | |
| 18315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18316 | # The default lists apply if the user does not specify any file. |
| 18317 | ac_need_defaults=: |
| 18318 | while test $# != 0 |
| 18319 | do |
| 18320 | case $1 in |
| 18321 | --*=?*) |
| 18322 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18323 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 18324 | ac_shift=: |
| 18325 | ;; |
| 18326 | --*=) |
| 18327 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18328 | ac_optarg= |
| 18329 | ac_shift=: |
| 18330 | ;; |
| 18331 | *) |
| 18332 | ac_option=$1 |
| 18333 | ac_optarg=$2 |
| 18334 | ac_shift=shift |
| 18335 | ;; |
| 18336 | esac |
| 18337 | |
| 18338 | case $ac_option in |
| 18339 | # Handling of the options. |
| 18340 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18341 | ac_cs_recheck=: ;; |
| 18342 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 18343 | $as_echo "$ac_cs_version"; exit ;; |
| 18344 | --config | --confi | --conf | --con | --co | --c ) |
| 18345 | $as_echo "$ac_cs_config"; exit ;; |
| 18346 | --debug | --debu | --deb | --de | --d | -d ) |
| 18347 | debug=: ;; |
| 18348 | --file | --fil | --fi | --f ) |
| 18349 | $ac_shift |
| 18350 | case $ac_optarg in |
| 18351 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18352 | '') as_fn_error $? "missing file argument" ;; |
| 18353 | esac |
| 18354 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 18355 | ac_need_defaults=false;; |
| 18356 | --header | --heade | --head | --hea ) |
| 18357 | $ac_shift |
| 18358 | case $ac_optarg in |
| 18359 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18360 | esac |
| 18361 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 18362 | ac_need_defaults=false;; |
| 18363 | --he | --h) |
| 18364 | # Conflict between --help and --header |
| 18365 | as_fn_error $? "ambiguous option: \`$1' |
| 18366 | Try \`$0 --help' for more information.";; |
| 18367 | --help | --hel | -h ) |
| 18368 | $as_echo "$ac_cs_usage"; exit ;; |
| 18369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18370 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18371 | ac_cs_silent=: ;; |
| 18372 | |
| 18373 | # This is an error. |
| 18374 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 18375 | Try \`$0 --help' for more information." ;; |
| 18376 | |
| 18377 | *) as_fn_append ac_config_targets " $1" |
| 18378 | ac_need_defaults=false ;; |
| 18379 | |
| 18380 | esac |
| 18381 | shift |
| 18382 | done |
| 18383 | |
| 18384 | ac_configure_extra_args= |
| 18385 | |
| 18386 | if $ac_cs_silent; then |
| 18387 | exec 6>/dev/null |
| 18388 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18389 | fi |
| 18390 | |
| 18391 | _ACEOF |
| 18392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18393 | if \$ac_cs_recheck; then |
| 18394 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18395 | shift |
| 18396 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18397 | CONFIG_SHELL='$SHELL' |
| 18398 | export CONFIG_SHELL |
| 18399 | exec "\$@" |
| 18400 | fi |
| 18401 | |
| 18402 | _ACEOF |
| 18403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18404 | exec 5>>config.log |
| 18405 | { |
| 18406 | echo |
| 18407 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18408 | ## Running $as_me. ## |
| 18409 | _ASBOX |
| 18410 | $as_echo "$ac_log" |
| 18411 | } >&5 |
| 18412 | |
| 18413 | _ACEOF |
| 18414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18415 | # |
| 18416 | # INIT-COMMANDS |
| 18417 | # |
| 18418 | |
| 18419 | srcdir="$srcdir" |
| 18420 | host="$host" |
| 18421 | target="$target" |
| 18422 | with_multisubdir="$with_multisubdir" |
| 18423 | with_multisrctop="$with_multisrctop" |
| 18424 | with_target_subdir="$with_target_subdir" |
| 18425 | ac_configure_args="${multilib_arg} ${ac_configure_args}" |
| 18426 | multi_basedir="$multi_basedir" |
| 18427 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 18428 | CC="$CC" |
| 18429 | CXX="$CXX" |
| 18430 | GFORTRAN="$GFORTRAN" |
| 18431 | GDC="$GDC" |
| 18432 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 18433 | |
| 18434 | |
| 18435 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18436 | # if CDPATH is set. |
| 18437 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18438 | |
| 18439 | sed_quote_subst='$sed_quote_subst' |
| 18440 | double_quote_subst='$double_quote_subst' |
| 18441 | delay_variable_subst='$delay_variable_subst' |
| 18442 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 18443 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 18444 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 18445 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 18446 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 18447 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 18448 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 18449 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 18450 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 18451 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 18452 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 18453 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 18454 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 18455 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 18456 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 18457 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 18458 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 18459 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 18460 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 18461 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 18462 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 18463 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 18464 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 18465 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 18466 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 18467 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 18468 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 18469 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 18470 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 18471 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 18472 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 18473 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 18474 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 18475 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 18476 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 18477 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 18478 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 18479 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18480 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18481 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 18482 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 18483 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 18484 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 18485 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 18486 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 18487 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 18488 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 18489 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 18490 | 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"`' |
| 18491 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 18492 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 18493 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 18494 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 18495 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 18496 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 18497 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 18498 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 18499 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 18500 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 18501 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 18502 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 18503 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 18504 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 18505 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 18506 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 18507 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 18508 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 18509 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18510 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18511 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 18512 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 18513 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 18514 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 18515 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 18516 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 18517 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 18518 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 18519 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 18520 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 18521 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18522 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 18523 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 18524 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 18525 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 18526 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 18527 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 18528 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 18529 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 18530 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 18531 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
| 18532 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 18533 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 18534 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 18535 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 18536 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 18537 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 18538 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 18539 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 18540 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 18541 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 18542 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 18543 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 18544 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 18545 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 18546 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 18547 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 18548 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 18549 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18550 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18551 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 18552 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 18553 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 18554 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18555 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18556 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 18557 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 18558 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 18559 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 18560 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 18561 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 18562 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 18563 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 18564 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 18565 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 18566 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 18567 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 18568 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 18569 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18570 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18571 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18572 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 18573 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 18574 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18575 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 18576 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 18577 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 18578 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 18579 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 18580 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 18581 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18582 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18583 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 18584 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18585 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18586 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18587 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18588 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18589 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18590 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 18591 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18592 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18593 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18594 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 18595 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 18596 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 18597 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 18598 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 18599 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 18600 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 18601 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 18602 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 18603 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 18604 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 18605 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18606 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 18607 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 18608 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18609 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18610 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 18611 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 18612 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 18613 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 18614 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 18615 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 18616 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 18617 | |
| 18618 | LTCC='$LTCC' |
| 18619 | LTCFLAGS='$LTCFLAGS' |
| 18620 | compiler='$compiler_DEFAULT' |
| 18621 | |
| 18622 | # A function that is used when there is no print builtin or printf. |
| 18623 | func_fallback_echo () |
| 18624 | { |
| 18625 | eval 'cat <<_LTECHO_EOF |
| 18626 | \$1 |
| 18627 | _LTECHO_EOF' |
| 18628 | } |
| 18629 | |
| 18630 | # Quote evaled strings. |
| 18631 | for var in SHELL \ |
| 18632 | ECHO \ |
| 18633 | SED \ |
| 18634 | GREP \ |
| 18635 | EGREP \ |
| 18636 | FGREP \ |
| 18637 | LD \ |
| 18638 | NM \ |
| 18639 | LN_S \ |
| 18640 | lt_SP2NL \ |
| 18641 | lt_NL2SP \ |
| 18642 | reload_flag \ |
| 18643 | OBJDUMP \ |
| 18644 | deplibs_check_method \ |
| 18645 | file_magic_cmd \ |
| 18646 | AR \ |
| 18647 | AR_FLAGS \ |
| 18648 | STRIP \ |
| 18649 | RANLIB \ |
| 18650 | CC \ |
| 18651 | CFLAGS \ |
| 18652 | compiler \ |
| 18653 | lt_cv_sys_global_symbol_pipe \ |
| 18654 | lt_cv_sys_global_symbol_to_cdecl \ |
| 18655 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18656 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 18657 | lt_prog_compiler_no_builtin_flag \ |
| 18658 | lt_prog_compiler_wl \ |
| 18659 | lt_prog_compiler_pic \ |
| 18660 | lt_prog_compiler_static \ |
| 18661 | lt_cv_prog_compiler_c_o \ |
| 18662 | need_locks \ |
| 18663 | DSYMUTIL \ |
| 18664 | NMEDIT \ |
| 18665 | LIPO \ |
| 18666 | OTOOL \ |
| 18667 | OTOOL64 \ |
| 18668 | shrext_cmds \ |
| 18669 | export_dynamic_flag_spec \ |
| 18670 | whole_archive_flag_spec \ |
| 18671 | compiler_needs_object \ |
| 18672 | with_gnu_ld \ |
| 18673 | allow_undefined_flag \ |
| 18674 | no_undefined_flag \ |
| 18675 | hardcode_libdir_flag_spec \ |
| 18676 | hardcode_libdir_flag_spec_ld \ |
| 18677 | hardcode_libdir_separator \ |
| 18678 | fix_srcfile_path \ |
| 18679 | exclude_expsyms \ |
| 18680 | include_expsyms \ |
| 18681 | file_list_spec \ |
| 18682 | variables_saved_for_relink \ |
| 18683 | libname_spec \ |
| 18684 | library_names_spec \ |
| 18685 | soname_spec \ |
| 18686 | install_override_mode \ |
| 18687 | finish_eval \ |
| 18688 | old_striplib \ |
| 18689 | striplib \ |
| 18690 | compiler_lib_search_dirs \ |
| 18691 | predep_objects \ |
| 18692 | postdep_objects \ |
| 18693 | predeps \ |
| 18694 | postdeps \ |
| 18695 | compiler_lib_search_path \ |
| 18696 | LD_CXX \ |
| 18697 | reload_flag_CXX \ |
| 18698 | compiler_CXX \ |
| 18699 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18700 | lt_prog_compiler_wl_CXX \ |
| 18701 | lt_prog_compiler_pic_CXX \ |
| 18702 | lt_prog_compiler_static_CXX \ |
| 18703 | lt_cv_prog_compiler_c_o_CXX \ |
| 18704 | export_dynamic_flag_spec_CXX \ |
| 18705 | whole_archive_flag_spec_CXX \ |
| 18706 | compiler_needs_object_CXX \ |
| 18707 | with_gnu_ld_CXX \ |
| 18708 | allow_undefined_flag_CXX \ |
| 18709 | no_undefined_flag_CXX \ |
| 18710 | hardcode_libdir_flag_spec_CXX \ |
| 18711 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18712 | hardcode_libdir_separator_CXX \ |
| 18713 | fix_srcfile_path_CXX \ |
| 18714 | exclude_expsyms_CXX \ |
| 18715 | include_expsyms_CXX \ |
| 18716 | file_list_spec_CXX \ |
| 18717 | compiler_lib_search_dirs_CXX \ |
| 18718 | predep_objects_CXX \ |
| 18719 | postdep_objects_CXX \ |
| 18720 | predeps_CXX \ |
| 18721 | postdeps_CXX \ |
| 18722 | compiler_lib_search_path_CXX; do |
| 18723 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18724 | *[\\\\\\\`\\"\\\$]*) |
| 18725 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 18726 | ;; |
| 18727 | *) |
| 18728 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18729 | ;; |
| 18730 | esac |
| 18731 | done |
| 18732 | |
| 18733 | # Double-quote double-evaled strings. |
| 18734 | for var in reload_cmds \ |
| 18735 | old_postinstall_cmds \ |
| 18736 | old_postuninstall_cmds \ |
| 18737 | old_archive_cmds \ |
| 18738 | extract_expsyms_cmds \ |
| 18739 | old_archive_from_new_cmds \ |
| 18740 | old_archive_from_expsyms_cmds \ |
| 18741 | archive_cmds \ |
| 18742 | archive_expsym_cmds \ |
| 18743 | module_cmds \ |
| 18744 | module_expsym_cmds \ |
| 18745 | export_symbols_cmds \ |
| 18746 | prelink_cmds \ |
| 18747 | postinstall_cmds \ |
| 18748 | postuninstall_cmds \ |
| 18749 | finish_cmds \ |
| 18750 | sys_lib_search_path_spec \ |
| 18751 | sys_lib_dlsearch_path_spec \ |
| 18752 | reload_cmds_CXX \ |
| 18753 | old_archive_cmds_CXX \ |
| 18754 | old_archive_from_new_cmds_CXX \ |
| 18755 | old_archive_from_expsyms_cmds_CXX \ |
| 18756 | archive_cmds_CXX \ |
| 18757 | archive_expsym_cmds_CXX \ |
| 18758 | module_cmds_CXX \ |
| 18759 | module_expsym_cmds_CXX \ |
| 18760 | export_symbols_cmds_CXX \ |
| 18761 | prelink_cmds_CXX; do |
| 18762 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18763 | *[\\\\\\\`\\"\\\$]*) |
| 18764 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 18765 | ;; |
| 18766 | *) |
| 18767 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18768 | ;; |
| 18769 | esac |
| 18770 | done |
| 18771 | |
| 18772 | ac_aux_dir='$ac_aux_dir' |
| 18773 | xsi_shell='$xsi_shell' |
| 18774 | lt_shell_append='$lt_shell_append' |
| 18775 | |
| 18776 | # See if we are running on zsh, and set the options which allow our |
| 18777 | # commands through without removal of \ escapes INIT. |
| 18778 | if test -n "\${ZSH_VERSION+set}" ; then |
| 18779 | setopt NO_GLOB_SUBST |
| 18780 | fi |
| 18781 | |
| 18782 | |
| 18783 | PACKAGE='$PACKAGE' |
| 18784 | VERSION='$VERSION' |
| 18785 | TIMESTAMP='$TIMESTAMP' |
| 18786 | RM='$RM' |
| 18787 | ofile='$ofile' |
| 18788 | |
| 18789 | |
| 18790 | |
| 18791 | |
| 18792 | |
| 18793 | |
| 18794 | _ACEOF |
| 18795 | |
| 18796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18797 | |
| 18798 | # Handling of arguments. |
| 18799 | for ac_config_target in $ac_config_targets |
| 18800 | do |
| 18801 | case $ac_config_target in |
| 18802 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 18803 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 18804 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 18805 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 18806 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 18807 | "libgcobol.spec") CONFIG_FILES="$CONFIG_FILES libgcobol.spec" ;; |
| 18808 | |
| 18809 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 18810 | esac |
| 18811 | done |
| 18812 | |
| 18813 | |
| 18814 | # If the user did not use the arguments to specify the items to instantiate, |
| 18815 | # then the envvar interface is used. Set only those that are not. |
| 18816 | # We use the long form for the default assignment because of an extremely |
| 18817 | # bizarre bug on SunOS 4.1.3. |
| 18818 | if $ac_need_defaults; then |
| 18819 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18820 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18821 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 18822 | fi |
| 18823 | |
| 18824 | # Have a temporary directory for convenience. Make it in the build tree |
| 18825 | # simply because there is no reason against having it here, and in addition, |
| 18826 | # creating and moving files from /tmp can sometimes cause problems. |
| 18827 | # Hook for its removal unless debugging. |
| 18828 | # Note that there is a small window in which the directory will not be cleaned: |
| 18829 | # after its creation but before its name has been assigned to `$tmp'. |
| 18830 | $debug || |
| 18831 | { |
| 18832 | tmp= ac_tmp= |
| 18833 | trap 'exit_status=$? |
| 18834 | : "${ac_tmp:=$tmp}" |
| 18835 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 18836 | ' 0 |
| 18837 | trap 'as_fn_exit 1' 1 2 13 15 |
| 18838 | } |
| 18839 | # Create a (secure) tmp directory for tmp files. |
| 18840 | |
| 18841 | { |
| 18842 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 18843 | test -d "$tmp" |
| 18844 | } || |
| 18845 | { |
| 18846 | tmp=./conf$$-$RANDOM |
| 18847 | (umask 077 && mkdir "$tmp") |
| 18848 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 18849 | ac_tmp=$tmp |
| 18850 | |
| 18851 | # Set up the scripts for CONFIG_FILES section. |
| 18852 | # No need to generate them if there are no CONFIG_FILES. |
| 18853 | # This happens for instance with `./config.status config.h'. |
| 18854 | if test -n "$CONFIG_FILES"; then |
| 18855 | |
| 18856 | |
| 18857 | ac_cr=`echo X | tr X '\015'` |
| 18858 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 18859 | # But we know of no other shell where ac_cr would be empty at this |
| 18860 | # point, so we can use a bashism as a fallback. |
| 18861 | if test "x$ac_cr" = x; then |
| 18862 | eval ac_cr=\$\'\\r\' |
| 18863 | fi |
| 18864 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18865 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 18866 | ac_cs_awk_cr='\\r' |
| 18867 | else |
| 18868 | ac_cs_awk_cr=$ac_cr |
| 18869 | fi |
| 18870 | |
| 18871 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 18872 | _ACEOF |
| 18873 | |
| 18874 | |
| 18875 | { |
| 18876 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18877 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18878 | echo "_ACEOF" |
| 18879 | } >conf$$subs.sh || |
| 18880 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18881 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 18882 | ac_delim='%!_!# ' |
| 18883 | for ac_last_try in false false false false false :; do |
| 18884 | . ./conf$$subs.sh || |
| 18885 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18886 | |
| 18887 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18888 | if test $ac_delim_n = $ac_delim_num; then |
| 18889 | break |
| 18890 | elif $ac_last_try; then |
| 18891 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18892 | else |
| 18893 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18894 | fi |
| 18895 | done |
| 18896 | rm -f conf$$subs.sh |
| 18897 | |
| 18898 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18899 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 18900 | _ACEOF |
| 18901 | sed -n ' |
| 18902 | h |
| 18903 | s/^/S["/; s/!.*/"]=/ |
| 18904 | p |
| 18905 | g |
| 18906 | s/^[^!]*!// |
| 18907 | :repl |
| 18908 | t repl |
| 18909 | s/'"$ac_delim"'$// |
| 18910 | t delim |
| 18911 | :nl |
| 18912 | h |
| 18913 | s/\(.\{148\}\)..*/\1/ |
| 18914 | t more1 |
| 18915 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18916 | p |
| 18917 | n |
| 18918 | b repl |
| 18919 | :more1 |
| 18920 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18921 | p |
| 18922 | g |
| 18923 | s/.\{148\}// |
| 18924 | t nl |
| 18925 | :delim |
| 18926 | h |
| 18927 | s/\(.\{148\}\)..*/\1/ |
| 18928 | t more2 |
| 18929 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18930 | p |
| 18931 | b |
| 18932 | :more2 |
| 18933 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18934 | p |
| 18935 | g |
| 18936 | s/.\{148\}// |
| 18937 | t delim |
| 18938 | ' <conf$$subs.awk | sed ' |
| 18939 | /^[^""]/{ |
| 18940 | N |
| 18941 | s/\n// |
| 18942 | } |
| 18943 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18944 | rm -f conf$$subs.awk |
| 18945 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18946 | _ACAWK |
| 18947 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 18948 | for (key in S) S_is_set[key] = 1 |
| 18949 | FS = "" |
| 18950 | |
| 18951 | } |
| 18952 | { |
| 18953 | line = $ 0 |
| 18954 | nfields = split(line, field, "@") |
| 18955 | substed = 0 |
| 18956 | len = length(field[1]) |
| 18957 | for (i = 2; i < nfields; i++) { |
| 18958 | key = field[i] |
| 18959 | keylen = length(key) |
| 18960 | if (S_is_set[key]) { |
| 18961 | value = S[key] |
| 18962 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 18963 | len += length(value) + length(field[++i]) |
| 18964 | substed = 1 |
| 18965 | } else |
| 18966 | len += 1 + keylen |
| 18967 | } |
| 18968 | |
| 18969 | print line |
| 18970 | } |
| 18971 | |
| 18972 | _ACAWK |
| 18973 | _ACEOF |
| 18974 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18975 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 18976 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 18977 | else |
| 18978 | cat |
| 18979 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 18980 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 18981 | _ACEOF |
| 18982 | |
| 18983 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 18984 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 18985 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18986 | # (actually we leave an empty line to preserve line numbers). |
| 18987 | if test "x$srcdir" = x.; then |
| 18988 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 18989 | h |
| 18990 | s/// |
| 18991 | s/^/:/ |
| 18992 | s/[ ]*$/:/ |
| 18993 | s/:\$(srcdir):/:/g |
| 18994 | s/:\${srcdir}:/:/g |
| 18995 | s/:@srcdir@:/:/g |
| 18996 | s/^:*// |
| 18997 | s/:*$// |
| 18998 | x |
| 18999 | s/\(=[ ]*\).*/\1/ |
| 19000 | G |
| 19001 | s/\n// |
| 19002 | s/^[^=]*=[ ]*$// |
| 19003 | }' |
| 19004 | fi |
| 19005 | |
| 19006 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19007 | fi # test -n "$CONFIG_FILES" |
| 19008 | |
| 19009 | # Set up the scripts for CONFIG_HEADERS section. |
| 19010 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19011 | # This happens for instance with `./config.status Makefile'. |
| 19012 | if test -n "$CONFIG_HEADERS"; then |
| 19013 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19014 | BEGIN { |
| 19015 | _ACEOF |
| 19016 | |
| 19017 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19018 | # here-document in config.status, that substitutes the proper values into |
| 19019 | # config.h.in to produce config.h. |
| 19020 | |
| 19021 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19022 | # handling of long lines. |
| 19023 | ac_delim='%!_!# ' |
| 19024 | for ac_last_try in false false :; do |
| 19025 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19026 | if test -z "$ac_tt"; then |
| 19027 | break |
| 19028 | elif $ac_last_try; then |
| 19029 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19030 | else |
| 19031 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19032 | fi |
| 19033 | done |
| 19034 | |
| 19035 | # For the awk script, D is an array of macro values keyed by name, |
| 19036 | # likewise P contains macro parameters if any. Preserve backslash |
| 19037 | # newline sequences. |
| 19038 | |
| 19039 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19040 | sed -n ' |
| 19041 | s/.\{148\}/&'"$ac_delim"'/g |
| 19042 | t rset |
| 19043 | :rset |
| 19044 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19045 | t def |
| 19046 | d |
| 19047 | :def |
| 19048 | s/\\$// |
| 19049 | t bsnl |
| 19050 | s/["\\]/\\&/g |
| 19051 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19052 | D["\1"]=" \3"/p |
| 19053 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19054 | d |
| 19055 | :bsnl |
| 19056 | s/["\\]/\\&/g |
| 19057 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19058 | D["\1"]=" \3\\\\\\n"\\/p |
| 19059 | t cont |
| 19060 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19061 | t cont |
| 19062 | d |
| 19063 | :cont |
| 19064 | n |
| 19065 | s/.\{148\}/&'"$ac_delim"'/g |
| 19066 | t clear |
| 19067 | :clear |
| 19068 | s/\\$// |
| 19069 | t bsnlc |
| 19070 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19071 | d |
| 19072 | :bsnlc |
| 19073 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19074 | b cont |
| 19075 | ' <confdefs.h | sed ' |
| 19076 | s/'"$ac_delim"'/"\\\ |
| 19077 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19078 | |
| 19079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19080 | for (key in D) D_is_set[key] = 1 |
| 19081 | FS = "" |
| 19082 | } |
| 19083 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19084 | line = \$ 0 |
| 19085 | split(line, arg, " ") |
| 19086 | if (arg[1] == "#") { |
| 19087 | defundef = arg[2] |
| 19088 | mac1 = arg[3] |
| 19089 | } else { |
| 19090 | defundef = substr(arg[1], 2) |
| 19091 | mac1 = arg[2] |
| 19092 | } |
| 19093 | split(mac1, mac2, "(") #) |
| 19094 | macro = mac2[1] |
| 19095 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 19096 | if (D_is_set[macro]) { |
| 19097 | # Preserve the white space surrounding the "#". |
| 19098 | print prefix "define", macro P[macro] D[macro] |
| 19099 | next |
| 19100 | } else { |
| 19101 | # Replace #undef with comments. This is necessary, for example, |
| 19102 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 19103 | # on some systems where configure will not decide to define it. |
| 19104 | if (defundef == "undef") { |
| 19105 | print "/*", prefix defundef, macro, "*/" |
| 19106 | next |
| 19107 | } |
| 19108 | } |
| 19109 | } |
| 19110 | { print } |
| 19111 | _ACAWK |
| 19112 | _ACEOF |
| 19113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19114 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 19115 | fi # test -n "$CONFIG_HEADERS" |
| 19116 | |
| 19117 | |
| 19118 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 19119 | shift |
| 19120 | for ac_tag |
| 19121 | do |
| 19122 | case $ac_tag in |
| 19123 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 19124 | esac |
| 19125 | case $ac_mode$ac_tag in |
| 19126 | :[FHL]*:*);; |
| 19127 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 19128 | :[FH]-) ac_tag=-:-;; |
| 19129 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19130 | esac |
| 19131 | ac_save_IFS=$IFS |
| 19132 | IFS=: |
| 19133 | set x $ac_tag |
| 19134 | IFS=$ac_save_IFS |
| 19135 | shift |
| 19136 | ac_file=$1 |
| 19137 | shift |
| 19138 | |
| 19139 | case $ac_mode in |
| 19140 | :L) ac_source=$1;; |
| 19141 | :[FH]) |
| 19142 | ac_file_inputs= |
| 19143 | for ac_f |
| 19144 | do |
| 19145 | case $ac_f in |
| 19146 | -) ac_f="$ac_tmp/stdin";; |
| 19147 | *) # Look for the file first in the build tree, then in the source tree |
| 19148 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19149 | # because $ac_f cannot contain `:'. |
| 19150 | test -f "$ac_f" || |
| 19151 | case $ac_f in |
| 19152 | [\\/$]*) false;; |
| 19153 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19154 | esac || |
| 19155 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 19156 | esac |
| 19157 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 19158 | as_fn_append ac_file_inputs " '$ac_f'" |
| 19159 | done |
| 19160 | |
| 19161 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19162 | # use $as_me), people would be surprised to read: |
| 19163 | # /* config.h. Generated by config.status. */ |
| 19164 | configure_input='Generated from '` |
| 19165 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19166 | `' by configure.' |
| 19167 | if test x"$ac_file" != x-; then |
| 19168 | configure_input="$ac_file. $configure_input" |
| 19169 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 19170 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 19171 | fi |
| 19172 | # Neutralize special characters interpreted by sed in replacement strings. |
| 19173 | case $configure_input in #( |
| 19174 | *\&* | *\|* | *\\* ) |
| 19175 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 19176 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19177 | *) ac_sed_conf_input=$configure_input;; |
| 19178 | esac |
| 19179 | |
| 19180 | case $ac_tag in |
| 19181 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 19182 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 19183 | esac |
| 19184 | ;; |
| 19185 | esac |
| 19186 | |
| 19187 | ac_dir=`$as_dirname -- "$ac_file" || |
| 19188 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19189 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19190 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19191 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 19192 | $as_echo X"$ac_file" | |
| 19193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19194 | s//\1/ |
| 19195 | q |
| 19196 | } |
| 19197 | /^X\(\/\/\)[^/].*/{ |
| 19198 | s//\1/ |
| 19199 | q |
| 19200 | } |
| 19201 | /^X\(\/\/\)$/{ |
| 19202 | s//\1/ |
| 19203 | q |
| 19204 | } |
| 19205 | /^X\(\/\).*/{ |
| 19206 | s//\1/ |
| 19207 | q |
| 19208 | } |
| 19209 | s/.*/./; q'` |
| 19210 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 19211 | ac_builddir=. |
| 19212 | |
| 19213 | case "$ac_dir" in |
| 19214 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19215 | *) |
| 19216 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 19217 | # A ".." for each directory in $ac_dir_suffix. |
| 19218 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 19219 | case $ac_top_builddir_sub in |
| 19220 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19221 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19222 | esac ;; |
| 19223 | esac |
| 19224 | ac_abs_top_builddir=$ac_pwd |
| 19225 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19226 | # for backward compatibility: |
| 19227 | ac_top_builddir=$ac_top_build_prefix |
| 19228 | |
| 19229 | case $srcdir in |
| 19230 | .) # We are building in place. |
| 19231 | ac_srcdir=. |
| 19232 | ac_top_srcdir=$ac_top_builddir_sub |
| 19233 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19234 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 19235 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19236 | ac_top_srcdir=$srcdir |
| 19237 | ac_abs_top_srcdir=$srcdir ;; |
| 19238 | *) # Relative name. |
| 19239 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19240 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19241 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 19242 | esac |
| 19243 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 19244 | |
| 19245 | |
| 19246 | case $ac_mode in |
| 19247 | :F) |
| 19248 | # |
| 19249 | # CONFIG_FILE |
| 19250 | # |
| 19251 | |
| 19252 | case $INSTALL in |
| 19253 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19254 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 19255 | esac |
| 19256 | ac_MKDIR_P=$MKDIR_P |
| 19257 | case $MKDIR_P in |
| 19258 | [\\/$]* | ?:[\\/]* ) ;; |
| 19259 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 19260 | esac |
| 19261 | _ACEOF |
| 19262 | |
| 19263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19264 | # If the template does not know about datarootdir, expand it. |
| 19265 | # FIXME: This hack should be removed a few years after 2.60. |
| 19266 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 19267 | ac_sed_dataroot=' |
| 19268 | /datarootdir/ { |
| 19269 | p |
| 19270 | q |
| 19271 | } |
| 19272 | /@datadir@/p |
| 19273 | /@docdir@/p |
| 19274 | /@infodir@/p |
| 19275 | /@localedir@/p |
| 19276 | /@mandir@/p' |
| 19277 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 19278 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 19279 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 19280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 19281 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 19282 | _ACEOF |
| 19283 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19284 | ac_datarootdir_hack=' |
| 19285 | s&@datadir@&$datadir&g |
| 19286 | s&@docdir@&$docdir&g |
| 19287 | s&@infodir@&$infodir&g |
| 19288 | s&@localedir@&$localedir&g |
| 19289 | s&@mandir@&$mandir&g |
| 19290 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 19291 | esac |
| 19292 | _ACEOF |
| 19293 | |
| 19294 | # Neutralize VPATH when `$srcdir' = `.'. |
| 19295 | # Shell code in configure.ac might set extrasub. |
| 19296 | # FIXME: do we really want to maintain this feature? |
| 19297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19298 | ac_sed_extra="$ac_vpsub |
| 19299 | $extrasub |
| 19300 | _ACEOF |
| 19301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19302 | :t |
| 19303 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19304 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 19305 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 19306 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 19307 | s&@srcdir@&$ac_srcdir&;t t |
| 19308 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19309 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19310 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19311 | s&@builddir@&$ac_builddir&;t t |
| 19312 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19313 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19314 | s&@INSTALL@&$ac_INSTALL&;t t |
| 19315 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 19316 | $ac_datarootdir_hack |
| 19317 | " |
| 19318 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 19319 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19320 | |
| 19321 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19322 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 19323 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 19324 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 19325 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19326 | which seems to be undefined. Please make sure it is defined" >&5 |
| 19327 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19328 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 19329 | |
| 19330 | rm -f "$ac_tmp/stdin" |
| 19331 | case $ac_file in |
| 19332 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 19333 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 19334 | esac \ |
| 19335 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19336 | ;; |
| 19337 | :H) |
| 19338 | # |
| 19339 | # CONFIG_HEADER |
| 19340 | # |
| 19341 | if test x"$ac_file" != x-; then |
| 19342 | { |
| 19343 | $as_echo "/* $configure_input */" \ |
| 19344 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 19345 | } >"$ac_tmp/config.h" \ |
| 19346 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19347 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 19348 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 19349 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 19350 | else |
| 19351 | rm -f "$ac_file" |
| 19352 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 19353 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19354 | fi |
| 19355 | else |
| 19356 | $as_echo "/* $configure_input */" \ |
| 19357 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 19358 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 19359 | fi |
| 19360 | # Compute "$ac_file"'s index in $config_headers. |
| 19361 | _am_arg="$ac_file" |
| 19362 | _am_stamp_count=1 |
| 19363 | for _am_header in $config_headers :; do |
| 19364 | case $_am_header in |
| 19365 | $_am_arg | $_am_arg:* ) |
| 19366 | break ;; |
| 19367 | * ) |
| 19368 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 19369 | esac |
| 19370 | done |
| 19371 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 19372 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19373 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 19374 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 19375 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 19376 | $as_echo X"$_am_arg" | |
| 19377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19378 | s//\1/ |
| 19379 | q |
| 19380 | } |
| 19381 | /^X\(\/\/\)[^/].*/{ |
| 19382 | s//\1/ |
| 19383 | q |
| 19384 | } |
| 19385 | /^X\(\/\/\)$/{ |
| 19386 | s//\1/ |
| 19387 | q |
| 19388 | } |
| 19389 | /^X\(\/\).*/{ |
| 19390 | s//\1/ |
| 19391 | q |
| 19392 | } |
| 19393 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 19394 | ;; |
| 19395 | |
| 19396 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 19397 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 19398 | ;; |
| 19399 | esac |
| 19400 | |
| 19401 | |
| 19402 | case $ac_file$ac_mode in |
| 19403 | "default-1":C) |
| 19404 | # Only add multilib support code if we just rebuilt the top-level |
| 19405 | # Makefile. |
| 19406 | case " $CONFIG_FILES " in |
| 19407 | *" Makefile "*) |
| 19408 | ac_file=Makefile . ${multi_basedir}/config-ml.in |
| 19409 | ;; |
| 19410 | esac ;; |
| 19411 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 19412 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 19413 | # are listed without --file. Let's play safe and only enable the eval |
| 19414 | # if we detect the quoting. |
| 19415 | case $CONFIG_FILES in |
| 19416 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 19417 | *) set x $CONFIG_FILES ;; |
| 19418 | esac |
| 19419 | shift |
| 19420 | for mf |
| 19421 | do |
| 19422 | # Strip MF so we end up with the name of the file. |
| 19423 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 19424 | # Check whether this is an Automake generated Makefile or not. |
| 19425 | # We used to match only the files named 'Makefile.in', but |
| 19426 | # some people rename them; so instead we look at the file content. |
| 19427 | # Grep'ing the first line is not enough: some people post-process |
| 19428 | # each Makefile.in and add a new line on top of each file to say so. |
| 19429 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 19430 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 19431 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 19432 | dirpart=`$as_dirname -- "$mf" || |
| 19433 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19434 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 19435 | X"$mf" : 'X\(//\)$' \| \ |
| 19436 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 19437 | $as_echo X"$mf" | |
| 19438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19439 | s//\1/ |
| 19440 | q |
| 19441 | } |
| 19442 | /^X\(\/\/\)[^/].*/{ |
| 19443 | s//\1/ |
| 19444 | q |
| 19445 | } |
| 19446 | /^X\(\/\/\)$/{ |
| 19447 | s//\1/ |
| 19448 | q |
| 19449 | } |
| 19450 | /^X\(\/\).*/{ |
| 19451 | s//\1/ |
| 19452 | q |
| 19453 | } |
| 19454 | s/.*/./; q'` |
| 19455 | else |
| 19456 | continue |
| 19457 | fi |
| 19458 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 19459 | # from the Makefile without running 'make'. |
| 19460 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 19461 | test -z "$DEPDIR" && continue |
| 19462 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 19463 | test -z "$am__include" && continue |
| 19464 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 19465 | # Find all dependency output files, they are included files with |
| 19466 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 19467 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 19468 | # expansion. |
| 19469 | for file in `sed -n " |
| 19470 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 19471 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 19472 | # Make sure the directory exists. |
| 19473 | test -f "$dirpart/$file" && continue |
| 19474 | fdir=`$as_dirname -- "$file" || |
| 19475 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19476 | X"$file" : 'X\(//\)[^/]' \| \ |
| 19477 | X"$file" : 'X\(//\)$' \| \ |
| 19478 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 19479 | $as_echo X"$file" | |
| 19480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19481 | s//\1/ |
| 19482 | q |
| 19483 | } |
| 19484 | /^X\(\/\/\)[^/].*/{ |
| 19485 | s//\1/ |
| 19486 | q |
| 19487 | } |
| 19488 | /^X\(\/\/\)$/{ |
| 19489 | s//\1/ |
| 19490 | q |
| 19491 | } |
| 19492 | /^X\(\/\).*/{ |
| 19493 | s//\1/ |
| 19494 | q |
| 19495 | } |
| 19496 | s/.*/./; q'` |
| 19497 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 19498 | # echo "creating $dirpart/$file" |
| 19499 | echo '# dummy' > "$dirpart/$file" |
| 19500 | done |
| 19501 | done |
| 19502 | } |
| 19503 | ;; |
| 19504 | "libtool":C) |
| 19505 | |
| 19506 | # See if we are running on zsh, and set the options which allow our |
| 19507 | # commands through without removal of \ escapes. |
| 19508 | if test -n "${ZSH_VERSION+set}" ; then |
| 19509 | setopt NO_GLOB_SUBST |
| 19510 | fi |
| 19511 | |
| 19512 | cfgfile="${ofile}T" |
| 19513 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 19514 | $RM "$cfgfile" |
| 19515 | |
| 19516 | cat <<_LT_EOF >> "$cfgfile" |
| 19517 | #! $SHELL |
| 19518 | |
| 19519 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 19520 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 19521 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19522 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 19523 | # |
| 19524 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 19525 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 19526 | # Written by Gordon Matzigkeit, 1996 |
| 19527 | # |
| 19528 | # This file is part of GNU Libtool. |
| 19529 | # |
| 19530 | # GNU Libtool is free software; you can redistribute it and/or |
| 19531 | # modify it under the terms of the GNU General Public License as |
| 19532 | # published by the Free Software Foundation; either version 2 of |
| 19533 | # the License, or (at your option) any later version. |
| 19534 | # |
| 19535 | # As a special exception to the GNU General Public License, |
| 19536 | # if you distribute this file as part of a program or library that |
| 19537 | # is built using GNU Libtool, you may include this file under the |
| 19538 | # same distribution terms that you use for the rest of that program. |
| 19539 | # |
| 19540 | # GNU Libtool is distributed in the hope that it will be useful, |
| 19541 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19542 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19543 | # GNU General Public License for more details. |
| 19544 | # |
| 19545 | # You should have received a copy of the GNU General Public License |
| 19546 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 19547 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 19548 | # obtained by writing to the Free Software Foundation, Inc., |
| 19549 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19550 | |
| 19551 | |
| 19552 | # The names of the tagged configurations supported by this script. |
| 19553 | available_tags="CXX " |
| 19554 | |
| 19555 | # ### BEGIN LIBTOOL CONFIG |
| 19556 | |
| 19557 | # Which release of libtool.m4 was used? |
| 19558 | macro_version=$macro_version |
| 19559 | macro_revision=$macro_revision |
| 19560 | |
| 19561 | # Whether or not to build shared libraries. |
| 19562 | build_libtool_libs=$enable_shared |
| 19563 | |
| 19564 | # Whether or not to build static libraries. |
| 19565 | build_old_libs=$enable_static |
| 19566 | |
| 19567 | # What type of objects to build. |
| 19568 | pic_mode=$pic_mode |
| 19569 | |
| 19570 | # Whether or not to optimize for fast installation. |
| 19571 | fast_install=$enable_fast_install |
| 19572 | |
| 19573 | # Shell to use when invoking shell scripts. |
| 19574 | SHELL=$lt_SHELL |
| 19575 | |
| 19576 | # An echo program that protects backslashes. |
| 19577 | ECHO=$lt_ECHO |
| 19578 | |
| 19579 | # The host system. |
| 19580 | host_alias=$host_alias |
| 19581 | host=$host |
| 19582 | host_os=$host_os |
| 19583 | |
| 19584 | # The build system. |
| 19585 | build_alias=$build_alias |
| 19586 | build=$build |
| 19587 | build_os=$build_os |
| 19588 | |
| 19589 | # A sed program that does not truncate output. |
| 19590 | SED=$lt_SED |
| 19591 | |
| 19592 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 19593 | Xsed="\$SED -e 1s/^X//" |
| 19594 | |
| 19595 | # A grep program that handles long lines. |
| 19596 | GREP=$lt_GREP |
| 19597 | |
| 19598 | # An ERE matcher. |
| 19599 | EGREP=$lt_EGREP |
| 19600 | |
| 19601 | # A literal string matcher. |
| 19602 | FGREP=$lt_FGREP |
| 19603 | |
| 19604 | # A BSD- or MS-compatible name lister. |
| 19605 | NM=$lt_NM |
| 19606 | |
| 19607 | # Whether we need soft or hard links. |
| 19608 | LN_S=$lt_LN_S |
| 19609 | |
| 19610 | # What is the maximum length of a command? |
| 19611 | max_cmd_len=$max_cmd_len |
| 19612 | |
| 19613 | # Object file suffix (normally "o"). |
| 19614 | objext=$ac_objext |
| 19615 | |
| 19616 | # Executable file suffix (normally ""). |
| 19617 | exeext=$exeext |
| 19618 | |
| 19619 | # whether the shell understands "unset". |
| 19620 | lt_unset=$lt_unset |
| 19621 | |
| 19622 | # turn spaces into newlines. |
| 19623 | SP2NL=$lt_lt_SP2NL |
| 19624 | |
| 19625 | # turn newlines into spaces. |
| 19626 | NL2SP=$lt_lt_NL2SP |
| 19627 | |
| 19628 | # An object symbol dumper. |
| 19629 | OBJDUMP=$lt_OBJDUMP |
| 19630 | |
| 19631 | # Method to check whether dependent libraries are shared objects. |
| 19632 | deplibs_check_method=$lt_deplibs_check_method |
| 19633 | |
| 19634 | # Command to use when deplibs_check_method == "file_magic". |
| 19635 | file_magic_cmd=$lt_file_magic_cmd |
| 19636 | |
| 19637 | # The archiver. |
| 19638 | AR=$lt_AR |
| 19639 | AR_FLAGS=$lt_AR_FLAGS |
| 19640 | |
| 19641 | # A symbol stripping program. |
| 19642 | STRIP=$lt_STRIP |
| 19643 | |
| 19644 | # Commands used to install an old-style archive. |
| 19645 | RANLIB=$lt_RANLIB |
| 19646 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19647 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19648 | |
| 19649 | # Whether to use a lock for old archive extraction. |
| 19650 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 19651 | |
| 19652 | # A C compiler. |
| 19653 | LTCC=$lt_CC |
| 19654 | |
| 19655 | # LTCC compiler flags. |
| 19656 | LTCFLAGS=$lt_CFLAGS |
| 19657 | |
| 19658 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19659 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19660 | |
| 19661 | # Transform the output of nm in a proper C declaration. |
| 19662 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19663 | |
| 19664 | # Transform the output of nm in a C name address pair. |
| 19665 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19666 | |
| 19667 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 19668 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 19669 | |
| 19670 | # The name of the directory that contains temporary libtool files. |
| 19671 | objdir=$objdir |
| 19672 | |
| 19673 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 19674 | MAGIC_CMD=$MAGIC_CMD |
| 19675 | |
| 19676 | # Must we lock files when doing compilation? |
| 19677 | need_locks=$lt_need_locks |
| 19678 | |
| 19679 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 19680 | DSYMUTIL=$lt_DSYMUTIL |
| 19681 | |
| 19682 | # Tool to change global to local symbols on Mac OS X. |
| 19683 | NMEDIT=$lt_NMEDIT |
| 19684 | |
| 19685 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 19686 | LIPO=$lt_LIPO |
| 19687 | |
| 19688 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 19689 | OTOOL=$lt_OTOOL |
| 19690 | |
| 19691 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 19692 | OTOOL64=$lt_OTOOL64 |
| 19693 | |
| 19694 | # Old archive suffix (normally "a"). |
| 19695 | libext=$libext |
| 19696 | |
| 19697 | # Shared library suffix (normally ".so"). |
| 19698 | shrext_cmds=$lt_shrext_cmds |
| 19699 | |
| 19700 | # The commands to extract the exported symbol list from a shared archive. |
| 19701 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19702 | |
| 19703 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19704 | # restored at link time. |
| 19705 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 19706 | |
| 19707 | # Do we need the "lib" prefix for modules? |
| 19708 | need_lib_prefix=$need_lib_prefix |
| 19709 | |
| 19710 | # Do we need a version for libraries? |
| 19711 | need_version=$need_version |
| 19712 | |
| 19713 | # Library versioning type. |
| 19714 | version_type=$version_type |
| 19715 | |
| 19716 | # Shared library runtime path variable. |
| 19717 | runpath_var=$runpath_var |
| 19718 | |
| 19719 | # Shared library path variable. |
| 19720 | shlibpath_var=$shlibpath_var |
| 19721 | |
| 19722 | # Is shlibpath searched before the hard-coded library search path? |
| 19723 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19724 | |
| 19725 | # Format of library name prefix. |
| 19726 | libname_spec=$lt_libname_spec |
| 19727 | |
| 19728 | # List of archive names. First name is the real one, the rest are links. |
| 19729 | # The last name is the one that the linker finds with -lNAME |
| 19730 | library_names_spec=$lt_library_names_spec |
| 19731 | |
| 19732 | # The coded name of the library, if different from the real name. |
| 19733 | soname_spec=$lt_soname_spec |
| 19734 | |
| 19735 | # Permission mode override for installation of shared libraries. |
| 19736 | install_override_mode=$lt_install_override_mode |
| 19737 | |
| 19738 | # Command to use after installation of a shared archive. |
| 19739 | postinstall_cmds=$lt_postinstall_cmds |
| 19740 | |
| 19741 | # Command to use after uninstallation of a shared archive. |
| 19742 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19743 | |
| 19744 | # Commands used to finish a libtool library installation in a directory. |
| 19745 | finish_cmds=$lt_finish_cmds |
| 19746 | |
| 19747 | # As "finish_cmds", except a single script fragment to be evaled but |
| 19748 | # not shown. |
| 19749 | finish_eval=$lt_finish_eval |
| 19750 | |
| 19751 | # Whether we should hardcode library paths into libraries. |
| 19752 | hardcode_into_libs=$hardcode_into_libs |
| 19753 | |
| 19754 | # Compile-time system search path for libraries. |
| 19755 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19756 | |
| 19757 | # Run-time system search path for libraries. |
| 19758 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19759 | |
| 19760 | # Whether dlopen is supported. |
| 19761 | dlopen_support=$enable_dlopen |
| 19762 | |
| 19763 | # Whether dlopen of programs is supported. |
| 19764 | dlopen_self=$enable_dlopen_self |
| 19765 | |
| 19766 | # Whether dlopen of statically linked programs is supported. |
| 19767 | dlopen_self_static=$enable_dlopen_self_static |
| 19768 | |
| 19769 | # Commands to strip libraries. |
| 19770 | old_striplib=$lt_old_striplib |
| 19771 | striplib=$lt_striplib |
| 19772 | |
| 19773 | |
| 19774 | # The linker used to build libraries. |
| 19775 | LD=$lt_LD |
| 19776 | |
| 19777 | # How to create reloadable object files. |
| 19778 | reload_flag=$lt_reload_flag |
| 19779 | reload_cmds=$lt_reload_cmds |
| 19780 | |
| 19781 | # Commands used to build an old-style archive. |
| 19782 | old_archive_cmds=$lt_old_archive_cmds |
| 19783 | |
| 19784 | # A language specific compiler. |
| 19785 | CC=$lt_compiler |
| 19786 | |
| 19787 | # Is the compiler the GNU compiler? |
| 19788 | with_gcc=$GCC |
| 19789 | |
| 19790 | # Compiler flag to turn off builtin functions. |
| 19791 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 19792 | |
| 19793 | # How to pass a linker flag through the compiler. |
| 19794 | wl=$lt_lt_prog_compiler_wl |
| 19795 | |
| 19796 | # Additional compiler flags for building library objects. |
| 19797 | pic_flag=$lt_lt_prog_compiler_pic |
| 19798 | |
| 19799 | # Compiler flag to prevent dynamic linking. |
| 19800 | link_static_flag=$lt_lt_prog_compiler_static |
| 19801 | |
| 19802 | # Does compiler simultaneously support -c and -o options? |
| 19803 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 19804 | |
| 19805 | # Whether or not to add -lc for building shared libraries. |
| 19806 | build_libtool_need_lc=$archive_cmds_need_lc |
| 19807 | |
| 19808 | # Whether or not to disallow shared libs when runtime libs are static. |
| 19809 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 19810 | |
| 19811 | # Compiler flag to allow reflexive dlopens. |
| 19812 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 19813 | |
| 19814 | # Compiler flag to generate shared objects directly from archives. |
| 19815 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 19816 | |
| 19817 | # Whether the compiler copes with passing no objects directly. |
| 19818 | compiler_needs_object=$lt_compiler_needs_object |
| 19819 | |
| 19820 | # Create an old-style archive from a shared archive. |
| 19821 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 19822 | |
| 19823 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19824 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 19825 | |
| 19826 | # Commands used to build a shared archive. |
| 19827 | archive_cmds=$lt_archive_cmds |
| 19828 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 19829 | |
| 19830 | # Commands used to build a loadable module if different from building |
| 19831 | # a shared archive. |
| 19832 | module_cmds=$lt_module_cmds |
| 19833 | module_expsym_cmds=$lt_module_expsym_cmds |
| 19834 | |
| 19835 | # Whether we are building with GNU ld or not. |
| 19836 | with_gnu_ld=$lt_with_gnu_ld |
| 19837 | |
| 19838 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19839 | allow_undefined_flag=$lt_allow_undefined_flag |
| 19840 | |
| 19841 | # Flag that enforces no undefined symbols. |
| 19842 | no_undefined_flag=$lt_no_undefined_flag |
| 19843 | |
| 19844 | # Flag to hardcode \$libdir into a binary during linking. |
| 19845 | # This must work even if \$libdir does not exist |
| 19846 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 19847 | |
| 19848 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 19849 | # during linking. This must work even if \$libdir does not exist. |
| 19850 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 19851 | |
| 19852 | # Whether we need a single "-rpath" flag with a separated argument. |
| 19853 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 19854 | |
| 19855 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19856 | # DIR into the resulting binary. |
| 19857 | hardcode_direct=$hardcode_direct |
| 19858 | |
| 19859 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19860 | # DIR into the resulting binary and the resulting library dependency is |
| 19861 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 19862 | # library is relocated. |
| 19863 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 19864 | |
| 19865 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 19866 | # into the resulting binary. |
| 19867 | hardcode_minus_L=$hardcode_minus_L |
| 19868 | |
| 19869 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 19870 | # into the resulting binary. |
| 19871 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 19872 | |
| 19873 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 19874 | # into the library and all subsequent libraries and executables linked |
| 19875 | # against it. |
| 19876 | hardcode_automatic=$hardcode_automatic |
| 19877 | |
| 19878 | # Set to yes if linker adds runtime paths of dependent libraries |
| 19879 | # to runtime path list. |
| 19880 | inherit_rpath=$inherit_rpath |
| 19881 | |
| 19882 | # Whether libtool must link a program against all its dependency libraries. |
| 19883 | link_all_deplibs=$link_all_deplibs |
| 19884 | |
| 19885 | # Fix the shell variable \$srcfile for the compiler. |
| 19886 | fix_srcfile_path=$lt_fix_srcfile_path |
| 19887 | |
| 19888 | # Set to "yes" if exported symbols are required. |
| 19889 | always_export_symbols=$always_export_symbols |
| 19890 | |
| 19891 | # The commands to list exported symbols. |
| 19892 | export_symbols_cmds=$lt_export_symbols_cmds |
| 19893 | |
| 19894 | # Symbols that should not be listed in the preloaded symbols. |
| 19895 | exclude_expsyms=$lt_exclude_expsyms |
| 19896 | |
| 19897 | # Symbols that must always be exported. |
| 19898 | include_expsyms=$lt_include_expsyms |
| 19899 | |
| 19900 | # Commands necessary for linking programs (against libraries) with templates. |
| 19901 | prelink_cmds=$lt_prelink_cmds |
| 19902 | |
| 19903 | # Specify filename containing input files. |
| 19904 | file_list_spec=$lt_file_list_spec |
| 19905 | |
| 19906 | # How to hardcode a shared library path into an executable. |
| 19907 | hardcode_action=$hardcode_action |
| 19908 | |
| 19909 | # The directories searched by this compiler when creating a shared library. |
| 19910 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 19911 | |
| 19912 | # Dependencies to place before and after the objects being linked to |
| 19913 | # create a shared library. |
| 19914 | predep_objects=$lt_predep_objects |
| 19915 | postdep_objects=$lt_postdep_objects |
| 19916 | predeps=$lt_predeps |
| 19917 | postdeps=$lt_postdeps |
| 19918 | |
| 19919 | # The library search path used internally by the compiler when linking |
| 19920 | # a shared library. |
| 19921 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 19922 | |
| 19923 | # ### END LIBTOOL CONFIG |
| 19924 | |
| 19925 | _LT_EOF |
| 19926 | |
| 19927 | case $host_os in |
| 19928 | aix3*) |
| 19929 | cat <<\_LT_EOF >> "$cfgfile" |
| 19930 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 19931 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 19932 | # vanish in a puff of smoke. |
| 19933 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 19934 | COLLECT_NAMES= |
| 19935 | export COLLECT_NAMES |
| 19936 | fi |
| 19937 | _LT_EOF |
| 19938 | ;; |
| 19939 | esac |
| 19940 | |
| 19941 | |
| 19942 | ltmain="$ac_aux_dir/ltmain.sh" |
| 19943 | |
| 19944 | |
| 19945 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 19946 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 19947 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 19948 | # is reportedly fixed, but why not run on old versions too? |
| 19949 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 19950 | || (rm -f "$cfgfile"; exit 1) |
| 19951 | |
| 19952 | case $xsi_shell in |
| 19953 | yes) |
| 19954 | cat << \_LT_EOF >> "$cfgfile" |
| 19955 | |
| 19956 | # func_dirname file append nondir_replacement |
| 19957 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 19958 | # otherwise set result to NONDIR_REPLACEMENT. |
| 19959 | func_dirname () |
| 19960 | { |
| 19961 | case ${1} in |
| 19962 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 19963 | * ) func_dirname_result="${3}" ;; |
| 19964 | esac |
| 19965 | } |
| 19966 | |
| 19967 | # func_basename file |
| 19968 | func_basename () |
| 19969 | { |
| 19970 | func_basename_result="${1##*/}" |
| 19971 | } |
| 19972 | |
| 19973 | # func_dirname_and_basename file append nondir_replacement |
| 19974 | # perform func_basename and func_dirname in a single function |
| 19975 | # call: |
| 19976 | # dirname: Compute the dirname of FILE. If nonempty, |
| 19977 | # add APPEND to the result, otherwise set result |
| 19978 | # to NONDIR_REPLACEMENT. |
| 19979 | # value returned in "$func_dirname_result" |
| 19980 | # basename: Compute filename of FILE. |
| 19981 | # value retuned in "$func_basename_result" |
| 19982 | # Implementation must be kept synchronized with func_dirname |
| 19983 | # and func_basename. For efficiency, we do not delegate to |
| 19984 | # those functions but instead duplicate the functionality here. |
| 19985 | func_dirname_and_basename () |
| 19986 | { |
| 19987 | case ${1} in |
| 19988 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 19989 | * ) func_dirname_result="${3}" ;; |
| 19990 | esac |
| 19991 | func_basename_result="${1##*/}" |
| 19992 | } |
| 19993 | |
| 19994 | # func_stripname prefix suffix name |
| 19995 | # strip PREFIX and SUFFIX off of NAME. |
| 19996 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 19997 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 19998 | # dot (in which case that matches only a dot). |
| 19999 | func_stripname () |
| 20000 | { |
| 20001 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 20002 | # positional parameters, so assign one to ordinary parameter first. |
| 20003 | func_stripname_result=${3} |
| 20004 | func_stripname_result=${func_stripname_result#"${1}"} |
| 20005 | func_stripname_result=${func_stripname_result%"${2}"} |
| 20006 | } |
| 20007 | |
| 20008 | # func_opt_split |
| 20009 | func_opt_split () |
| 20010 | { |
| 20011 | func_opt_split_opt=${1%%=*} |
| 20012 | func_opt_split_arg=${1#*=} |
| 20013 | } |
| 20014 | |
| 20015 | # func_lo2o object |
| 20016 | func_lo2o () |
| 20017 | { |
| 20018 | case ${1} in |
| 20019 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 20020 | *) func_lo2o_result=${1} ;; |
| 20021 | esac |
| 20022 | } |
| 20023 | |
| 20024 | # func_xform libobj-or-source |
| 20025 | func_xform () |
| 20026 | { |
| 20027 | func_xform_result=${1%.*}.lo |
| 20028 | } |
| 20029 | |
| 20030 | # func_arith arithmetic-term... |
| 20031 | func_arith () |
| 20032 | { |
| 20033 | func_arith_result=$(( $* )) |
| 20034 | } |
| 20035 | |
| 20036 | # func_len string |
| 20037 | # STRING may not start with a hyphen. |
| 20038 | func_len () |
| 20039 | { |
| 20040 | func_len_result=${#1} |
| 20041 | } |
| 20042 | |
| 20043 | _LT_EOF |
| 20044 | ;; |
| 20045 | *) # Bourne compatible functions. |
| 20046 | cat << \_LT_EOF >> "$cfgfile" |
| 20047 | |
| 20048 | # func_dirname file append nondir_replacement |
| 20049 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 20050 | # otherwise set result to NONDIR_REPLACEMENT. |
| 20051 | func_dirname () |
| 20052 | { |
| 20053 | # Extract subdirectory from the argument. |
| 20054 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
| 20055 | if test "X$func_dirname_result" = "X${1}"; then |
| 20056 | func_dirname_result="${3}" |
| 20057 | else |
| 20058 | func_dirname_result="$func_dirname_result${2}" |
| 20059 | fi |
| 20060 | } |
| 20061 | |
| 20062 | # func_basename file |
| 20063 | func_basename () |
| 20064 | { |
| 20065 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
| 20066 | } |
| 20067 | |
| 20068 | |
| 20069 | # func_stripname prefix suffix name |
| 20070 | # strip PREFIX and SUFFIX off of NAME. |
| 20071 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 20072 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 20073 | # dot (in which case that matches only a dot). |
| 20074 | # func_strip_suffix prefix name |
| 20075 | func_stripname () |
| 20076 | { |
| 20077 | case ${2} in |
| 20078 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 20079 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 20080 | esac |
| 20081 | } |
| 20082 | |
| 20083 | # sed scripts: |
| 20084 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 20085 | my_sed_long_arg='1s/^-[^=]*=//' |
| 20086 | |
| 20087 | # func_opt_split |
| 20088 | func_opt_split () |
| 20089 | { |
| 20090 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
| 20091 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` |
| 20092 | } |
| 20093 | |
| 20094 | # func_lo2o object |
| 20095 | func_lo2o () |
| 20096 | { |
| 20097 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
| 20098 | } |
| 20099 | |
| 20100 | # func_xform libobj-or-source |
| 20101 | func_xform () |
| 20102 | { |
| 20103 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
| 20104 | } |
| 20105 | |
| 20106 | # func_arith arithmetic-term... |
| 20107 | func_arith () |
| 20108 | { |
| 20109 | func_arith_result=`expr "$@"` |
| 20110 | } |
| 20111 | |
| 20112 | # func_len string |
| 20113 | # STRING may not start with a hyphen. |
| 20114 | func_len () |
| 20115 | { |
| 20116 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 20117 | } |
| 20118 | |
| 20119 | _LT_EOF |
| 20120 | esac |
| 20121 | |
| 20122 | case $lt_shell_append in |
| 20123 | yes) |
| 20124 | cat << \_LT_EOF >> "$cfgfile" |
| 20125 | |
| 20126 | # func_append var value |
| 20127 | # Append VALUE to the end of shell variable VAR. |
| 20128 | func_append () |
| 20129 | { |
| 20130 | eval "$1+=\$2" |
| 20131 | } |
| 20132 | _LT_EOF |
| 20133 | ;; |
| 20134 | *) |
| 20135 | cat << \_LT_EOF >> "$cfgfile" |
| 20136 | |
| 20137 | # func_append var value |
| 20138 | # Append VALUE to the end of shell variable VAR. |
| 20139 | func_append () |
| 20140 | { |
| 20141 | eval "$1=\$$1\$2" |
| 20142 | } |
| 20143 | |
| 20144 | _LT_EOF |
| 20145 | ;; |
| 20146 | esac |
| 20147 | |
| 20148 | |
| 20149 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 20150 | || (rm -f "$cfgfile"; exit 1) |
| 20151 | |
| 20152 | mv -f "$cfgfile" "$ofile" || |
| 20153 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 20154 | chmod +x "$ofile" |
| 20155 | |
| 20156 | |
| 20157 | cat <<_LT_EOF >> "$ofile" |
| 20158 | |
| 20159 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 20160 | |
| 20161 | # The linker used to build libraries. |
| 20162 | LD=$lt_LD_CXX |
| 20163 | |
| 20164 | # How to create reloadable object files. |
| 20165 | reload_flag=$lt_reload_flag_CXX |
| 20166 | reload_cmds=$lt_reload_cmds_CXX |
| 20167 | |
| 20168 | # Commands used to build an old-style archive. |
| 20169 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20170 | |
| 20171 | # A language specific compiler. |
| 20172 | CC=$lt_compiler_CXX |
| 20173 | |
| 20174 | # Is the compiler the GNU compiler? |
| 20175 | with_gcc=$GCC_CXX |
| 20176 | |
| 20177 | # Compiler flag to turn off builtin functions. |
| 20178 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20179 | |
| 20180 | # How to pass a linker flag through the compiler. |
| 20181 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20182 | |
| 20183 | # Additional compiler flags for building library objects. |
| 20184 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20185 | |
| 20186 | # Compiler flag to prevent dynamic linking. |
| 20187 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20188 | |
| 20189 | # Does compiler simultaneously support -c and -o options? |
| 20190 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20191 | |
| 20192 | # Whether or not to add -lc for building shared libraries. |
| 20193 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20194 | |
| 20195 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20196 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20197 | |
| 20198 | # Compiler flag to allow reflexive dlopens. |
| 20199 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20200 | |
| 20201 | # Compiler flag to generate shared objects directly from archives. |
| 20202 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20203 | |
| 20204 | # Whether the compiler copes with passing no objects directly. |
| 20205 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 20206 | |
| 20207 | # Create an old-style archive from a shared archive. |
| 20208 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20209 | |
| 20210 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20211 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20212 | |
| 20213 | # Commands used to build a shared archive. |
| 20214 | archive_cmds=$lt_archive_cmds_CXX |
| 20215 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20216 | |
| 20217 | # Commands used to build a loadable module if different from building |
| 20218 | # a shared archive. |
| 20219 | module_cmds=$lt_module_cmds_CXX |
| 20220 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20221 | |
| 20222 | # Whether we are building with GNU ld or not. |
| 20223 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 20224 | |
| 20225 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20226 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20227 | |
| 20228 | # Flag that enforces no undefined symbols. |
| 20229 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20230 | |
| 20231 | # Flag to hardcode \$libdir into a binary during linking. |
| 20232 | # This must work even if \$libdir does not exist |
| 20233 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20234 | |
| 20235 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 20236 | # during linking. This must work even if \$libdir does not exist. |
| 20237 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20238 | |
| 20239 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20240 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20241 | |
| 20242 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20243 | # DIR into the resulting binary. |
| 20244 | hardcode_direct=$hardcode_direct_CXX |
| 20245 | |
| 20246 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20247 | # DIR into the resulting binary and the resulting library dependency is |
| 20248 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20249 | # library is relocated. |
| 20250 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 20251 | |
| 20252 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20253 | # into the resulting binary. |
| 20254 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20255 | |
| 20256 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20257 | # into the resulting binary. |
| 20258 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20259 | |
| 20260 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20261 | # into the library and all subsequent libraries and executables linked |
| 20262 | # against it. |
| 20263 | hardcode_automatic=$hardcode_automatic_CXX |
| 20264 | |
| 20265 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20266 | # to runtime path list. |
| 20267 | inherit_rpath=$inherit_rpath_CXX |
| 20268 | |
| 20269 | # Whether libtool must link a program against all its dependency libraries. |
| 20270 | link_all_deplibs=$link_all_deplibs_CXX |
| 20271 | |
| 20272 | # Fix the shell variable \$srcfile for the compiler. |
| 20273 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 20274 | |
| 20275 | # Set to "yes" if exported symbols are required. |
| 20276 | always_export_symbols=$always_export_symbols_CXX |
| 20277 | |
| 20278 | # The commands to list exported symbols. |
| 20279 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20280 | |
| 20281 | # Symbols that should not be listed in the preloaded symbols. |
| 20282 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20283 | |
| 20284 | # Symbols that must always be exported. |
| 20285 | include_expsyms=$lt_include_expsyms_CXX |
| 20286 | |
| 20287 | # Commands necessary for linking programs (against libraries) with templates. |
| 20288 | prelink_cmds=$lt_prelink_cmds_CXX |
| 20289 | |
| 20290 | # Specify filename containing input files. |
| 20291 | file_list_spec=$lt_file_list_spec_CXX |
| 20292 | |
| 20293 | # How to hardcode a shared library path into an executable. |
| 20294 | hardcode_action=$hardcode_action_CXX |
| 20295 | |
| 20296 | # The directories searched by this compiler when creating a shared library. |
| 20297 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 20298 | |
| 20299 | # Dependencies to place before and after the objects being linked to |
| 20300 | # create a shared library. |
| 20301 | predep_objects=$lt_predep_objects_CXX |
| 20302 | postdep_objects=$lt_postdep_objects_CXX |
| 20303 | predeps=$lt_predeps_CXX |
| 20304 | postdeps=$lt_postdeps_CXX |
| 20305 | |
| 20306 | # The library search path used internally by the compiler when linking |
| 20307 | # a shared library. |
| 20308 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20309 | |
| 20310 | # ### END LIBTOOL TAG CONFIG: CXX |
| 20311 | _LT_EOF |
| 20312 | |
| 20313 | ;; |
| 20314 | |
| 20315 | esac |
| 20316 | done # for ac_tag |
| 20317 | |
| 20318 | |
| 20319 | as_fn_exit 0 |
| 20320 | _ACEOF |
| 20321 | ac_clean_files=$ac_clean_files_save |
| 20322 | |
| 20323 | test $ac_write_fail = 0 || |
| 20324 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 20325 | |
| 20326 | |
| 20327 | # configure is writing to config.log, and then calls config.status. |
| 20328 | # config.status does its own redirection, appending to config.log. |
| 20329 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20330 | # by configure, so config.status won't be able to write to it; its |
| 20331 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20332 | # effectively closing config.log, so it can be properly (re)opened and |
| 20333 | # appended to by config.status. When coming back to configure, we |
| 20334 | # need to make the FD available again. |
| 20335 | if test "$no_create" != yes; then |
| 20336 | ac_cs_success=: |
| 20337 | ac_config_status_args= |
| 20338 | test "$silent" = yes && |
| 20339 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20340 | exec 5>/dev/null |
| 20341 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20342 | exec 5>>config.log |
| 20343 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20344 | # would make configure fail if this is the last instruction. |
| 20345 | $ac_cs_success || as_fn_exit 1 |
| 20346 | fi |
| 20347 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 20348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 20349 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 20350 | fi |
| 20351 |