Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.68. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 8 | # Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | if test "x$CONFIG_SHELL" = x; then |
| 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 139 | emulate sh |
| 140 | NULLCMD=: |
| 141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 142 | # is contrary to our usage. Disable this feature. |
| 143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 144 | setopt NO_GLOB_SUBST |
| 145 | else |
| 146 | case \`(set -o) 2>/dev/null\` in #( |
| 147 | *posix*) : |
| 148 | set -o posix ;; #( |
| 149 | *) : |
| 150 | ;; |
| 151 | esac |
| 152 | fi |
| 153 | " |
| 154 | as_required="as_fn_return () { (exit \$1); } |
| 155 | as_fn_success () { as_fn_return 0; } |
| 156 | as_fn_failure () { as_fn_return 1; } |
| 157 | as_fn_ret_success () { return 0; } |
| 158 | as_fn_ret_failure () { return 1; } |
| 159 | |
| 160 | exitcode=0 |
| 161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 166 | |
| 167 | else |
| 168 | exitcode=1; echo positional parameters were not saved. |
| 169 | fi |
| 170 | test x\$exitcode = x0 || exit 1" |
| 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 175 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 176 | |
| 177 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 178 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 179 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 180 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 181 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 182 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 183 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 184 | if (eval "$as_required") 2>/dev/null; then : |
| 185 | as_have_required=yes |
| 186 | else |
| 187 | as_have_required=no |
| 188 | fi |
| 189 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 190 | |
| 191 | else |
| 192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 193 | as_found=false |
| 194 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 195 | do |
| 196 | IFS=$as_save_IFS |
| 197 | test -z "$as_dir" && as_dir=. |
| 198 | as_found=: |
| 199 | case $as_dir in #( |
| 200 | /*) |
| 201 | for as_base in sh bash ksh sh5; do |
| 202 | # Try only shells that exist, to save several forks. |
| 203 | as_shell=$as_dir/$as_base |
| 204 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 206 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 207 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 208 | break 2 |
| 209 | fi |
| 210 | fi |
| 211 | done;; |
| 212 | esac |
| 213 | as_found=false |
| 214 | done |
| 215 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 216 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 217 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 218 | fi; } |
| 219 | IFS=$as_save_IFS |
| 220 | |
| 221 | |
| 222 | if test "x$CONFIG_SHELL" != x; then : |
| 223 | # We cannot yet assume a decent shell, so we have to provide a |
| 224 | # neutralization value for shells without unset; and this also |
| 225 | # works around shells that cannot unset nonexistent variables. |
| 226 | # Preserve -v and -x to the replacement shell. |
| 227 | BASH_ENV=/dev/null |
| 228 | ENV=/dev/null |
| 229 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 230 | export CONFIG_SHELL |
| 231 | case $- in # (((( |
| 232 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 233 | *v* ) as_opts=-v ;; |
| 234 | *x* ) as_opts=-x ;; |
| 235 | * ) as_opts= ;; |
| 236 | esac |
| 237 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
| 238 | fi |
| 239 | |
| 240 | if test x$as_have_required = xno; then : |
| 241 | $as_echo "$0: This script requires a shell more modern than all" |
| 242 | $as_echo "$0: the shells that I found on your system." |
| 243 | if test x${ZSH_VERSION+set} = xset ; then |
| 244 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 245 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 246 | else |
| 247 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 248 | $0: including any error possibly output before this |
| 249 | $0: message. Then install a modern shell, or manually run |
| 250 | $0: the script under such a shell if you do have one." |
| 251 | fi |
| 252 | exit 1 |
| 253 | fi |
| 254 | fi |
| 255 | fi |
| 256 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 257 | export SHELL |
| 258 | # Unset more variables known to interfere with behavior of common tools. |
| 259 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 260 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 261 | |
| 262 | ## --------------------- ## |
| 263 | ## M4sh Shell Functions. ## |
| 264 | ## --------------------- ## |
| 265 | # as_fn_unset VAR |
| 266 | # --------------- |
| 267 | # Portably unset VAR. |
| 268 | as_fn_unset () |
| 269 | { |
| 270 | { eval $1=; unset $1;} |
| 271 | } |
| 272 | as_unset=as_fn_unset |
| 273 | |
| 274 | # as_fn_set_status STATUS |
| 275 | # ----------------------- |
| 276 | # Set $? to STATUS, without forking. |
| 277 | as_fn_set_status () |
| 278 | { |
| 279 | return $1 |
| 280 | } # as_fn_set_status |
| 281 | |
| 282 | # as_fn_exit STATUS |
| 283 | # ----------------- |
| 284 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 285 | as_fn_exit () |
| 286 | { |
| 287 | set +e |
| 288 | as_fn_set_status $1 |
| 289 | exit $1 |
| 290 | } # as_fn_exit |
| 291 | |
| 292 | # as_fn_mkdir_p |
| 293 | # ------------- |
| 294 | # Create "$as_dir" as a directory, including parents if necessary. |
| 295 | as_fn_mkdir_p () |
| 296 | { |
| 297 | |
| 298 | case $as_dir in #( |
| 299 | -*) as_dir=./$as_dir;; |
| 300 | esac |
| 301 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 302 | as_dirs= |
| 303 | while :; do |
| 304 | case $as_dir in #( |
| 305 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 306 | *) as_qdir=$as_dir;; |
| 307 | esac |
| 308 | as_dirs="'$as_qdir' $as_dirs" |
| 309 | as_dir=`$as_dirname -- "$as_dir" || |
| 310 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 311 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 312 | X"$as_dir" : 'X\(//\)$' \| \ |
| 313 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 314 | $as_echo X"$as_dir" | |
| 315 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | /^X\(\/\/\)[^/].*/{ |
| 320 | s//\1/ |
| 321 | q |
| 322 | } |
| 323 | /^X\(\/\/\)$/{ |
| 324 | s//\1/ |
| 325 | q |
| 326 | } |
| 327 | /^X\(\/\).*/{ |
| 328 | s//\1/ |
| 329 | q |
| 330 | } |
| 331 | s/.*/./; q'` |
| 332 | test -d "$as_dir" && break |
| 333 | done |
| 334 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 335 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 336 | |
| 337 | |
| 338 | } # as_fn_mkdir_p |
| 339 | # as_fn_append VAR VALUE |
| 340 | # ---------------------- |
| 341 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 342 | # advantage of any shell optimizations that allow amortized linear growth over |
| 343 | # repeated appends, instead of the typical quadratic growth present in naive |
| 344 | # implementations. |
| 345 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 346 | eval 'as_fn_append () |
| 347 | { |
| 348 | eval $1+=\$2 |
| 349 | }' |
| 350 | else |
| 351 | as_fn_append () |
| 352 | { |
| 353 | eval $1=\$$1\$2 |
| 354 | } |
| 355 | fi # as_fn_append |
| 356 | |
| 357 | # as_fn_arith ARG... |
| 358 | # ------------------ |
| 359 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 360 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 361 | # must be portable across $(()) and expr. |
| 362 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 363 | eval 'as_fn_arith () |
| 364 | { |
| 365 | as_val=$(( $* )) |
| 366 | }' |
| 367 | else |
| 368 | as_fn_arith () |
| 369 | { |
| 370 | as_val=`expr "$@" || test $? -eq 1` |
| 371 | } |
| 372 | fi # as_fn_arith |
| 373 | |
| 374 | |
| 375 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 376 | # ---------------------------------------- |
| 377 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 378 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 379 | # script with STATUS, using 1 if that was 0. |
| 380 | as_fn_error () |
| 381 | { |
| 382 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 383 | if test "$4"; then |
| 384 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 385 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 386 | fi |
| 387 | $as_echo "$as_me: error: $2" >&2 |
| 388 | as_fn_exit $as_status |
| 389 | } # as_fn_error |
| 390 | |
| 391 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 392 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 393 | as_expr=expr |
| 394 | else |
| 395 | as_expr=false |
| 396 | fi |
| 397 | |
| 398 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 399 | as_basename=basename |
| 400 | else |
| 401 | as_basename=false |
| 402 | fi |
| 403 | |
| 404 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 405 | as_dirname=dirname |
| 406 | else |
| 407 | as_dirname=false |
| 408 | fi |
| 409 | |
| 410 | as_me=`$as_basename -- "$0" || |
| 411 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 412 | X"$0" : 'X\(//\)$' \| \ |
| 413 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 414 | $as_echo X/"$0" | |
| 415 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 416 | s//\1/ |
| 417 | q |
| 418 | } |
| 419 | /^X\/\(\/\/\)$/{ |
| 420 | s//\1/ |
| 421 | q |
| 422 | } |
| 423 | /^X\/\(\/\).*/{ |
| 424 | s//\1/ |
| 425 | q |
| 426 | } |
| 427 | s/.*/./; q'` |
| 428 | |
| 429 | # Avoid depending upon Character Ranges. |
| 430 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 431 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 432 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 433 | as_cr_digits='0123456789' |
| 434 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 435 | |
| 436 | |
| 437 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 438 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 439 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 440 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 441 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 442 | sed -n ' |
| 443 | p |
| 444 | /[$]LINENO/= |
| 445 | ' <$as_myself | |
| 446 | sed ' |
| 447 | s/[$]LINENO.*/&-/ |
| 448 | t lineno |
| 449 | b |
| 450 | :lineno |
| 451 | N |
| 452 | :loop |
| 453 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 454 | t loop |
| 455 | s/-\n.*// |
| 456 | ' >$as_me.lineno && |
| 457 | chmod +x "$as_me.lineno" || |
| 458 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
| 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
| 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in #((((( |
| 470 | -n*) |
| 471 | case `echo 'xy\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | xy) ECHO_C='\c';; |
| 474 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 475 | ECHO_T=' ';; |
| 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
| 479 | esac |
| 480 | |
| 481 | rm -f conf$$ conf$$.exe conf$$.file |
| 482 | if test -d conf$$.dir; then |
| 483 | rm -f conf$$.dir/conf$$.file |
| 484 | else |
| 485 | rm -f conf$$.dir |
| 486 | mkdir conf$$.dir 2>/dev/null |
| 487 | fi |
| 488 | if (echo >conf$$.file) 2>/dev/null; then |
| 489 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 490 | as_ln_s='ln -s' |
| 491 | # ... but there are two gotchas: |
| 492 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 493 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 494 | # In both cases, we have to default to `cp -p'. |
| 495 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 496 | as_ln_s='cp -p' |
| 497 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 498 | as_ln_s=ln |
| 499 | else |
| 500 | as_ln_s='cp -p' |
| 501 | fi |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
| 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 506 | rmdir conf$$.dir 2>/dev/null |
| 507 | |
| 508 | if mkdir -p . 2>/dev/null; then |
| 509 | as_mkdir_p='mkdir -p "$as_dir"' |
| 510 | else |
| 511 | test -d ./-p && rmdir ./-p |
| 512 | as_mkdir_p=false |
| 513 | fi |
| 514 | |
| 515 | if test -x / >/dev/null 2>&1; then |
| 516 | as_test_x='test -x' |
| 517 | else |
| 518 | if ls -dL / >/dev/null 2>&1; then |
| 519 | as_ls_L_option=L |
| 520 | else |
| 521 | as_ls_L_option= |
| 522 | fi |
| 523 | as_test_x=' |
| 524 | eval sh -c '\'' |
| 525 | if test -d "$1"; then |
| 526 | test -d "$1/."; |
| 527 | else |
| 528 | case $1 in #( |
| 529 | -*)set "./$1";; |
| 530 | esac; |
| 531 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 532 | ???[sx]*):;;*)false;;esac;fi |
| 533 | '\'' sh |
| 534 | ' |
| 535 | fi |
| 536 | as_executable_p=$as_test_x |
| 537 | |
| 538 | # Sed expression to map a string onto a valid CPP name. |
| 539 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 540 | |
| 541 | # Sed expression to map a string onto a valid variable name. |
| 542 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 543 | |
| 544 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 545 | |
| 546 | |
| 547 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 548 | exec 6>&1 |
| 549 | |
| 550 | # Name of the host. |
| 551 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 552 | # so uname gets run too. |
| 553 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 554 | |
| 555 | # |
| 556 | # Initializations. |
| 557 | # |
| 558 | ac_default_prefix=/usr/local |
| 559 | ac_clean_files= |
| 560 | ac_config_libobj_dir=. |
| 561 | LIBOBJS= |
| 562 | cross_compiling=no |
| 563 | subdirs= |
| 564 | MFLAGS= |
| 565 | MAKEFLAGS= |
| 566 | |
| 567 | # Identity of this package. |
| 568 | PACKAGE_NAME= |
| 569 | PACKAGE_TARNAME= |
| 570 | PACKAGE_VERSION= |
| 571 | PACKAGE_STRING= |
| 572 | PACKAGE_BUGREPORT= |
| 573 | PACKAGE_URL= |
| 574 | |
| 575 | ac_unique_file="src/thread.cpp" |
| 576 | # Factoring default headers for most tests. |
| 577 | ac_includes_default="\ |
| 578 | #include <stdio.h> |
| 579 | #ifdef HAVE_SYS_TYPES_H |
| 580 | # include <sys/types.h> |
| 581 | #endif |
| 582 | #ifdef HAVE_SYS_STAT_H |
| 583 | # include <sys/stat.h> |
| 584 | #endif |
| 585 | #ifdef STDC_HEADERS |
| 586 | # include <stdlib.h> |
| 587 | # include <stddef.h> |
| 588 | #else |
| 589 | # ifdef HAVE_STDLIB_H |
| 590 | # include <stdlib.h> |
| 591 | # endif |
| 592 | #endif |
| 593 | #ifdef HAVE_STRING_H |
| 594 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 595 | # include <memory.h> |
| 596 | # endif |
| 597 | # include <string.h> |
| 598 | #endif |
| 599 | #ifdef HAVE_STRINGS_H |
| 600 | # include <strings.h> |
| 601 | #endif |
| 602 | #ifdef HAVE_INTTYPES_H |
| 603 | # include <inttypes.h> |
| 604 | #endif |
| 605 | #ifdef HAVE_STDINT_H |
| 606 | # include <stdint.h> |
| 607 | #endif |
| 608 | #ifdef HAVE_UNISTD_H |
| 609 | # include <unistd.h> |
| 610 | #endif" |
| 611 | |
| 612 | ac_subst_vars='am__EXEEXT_FALSE |
| 613 | am__EXEEXT_TRUE |
| 614 | LTLIBOBJS |
| 615 | LIBOBJS |
| 616 | LIB_MAJOR |
| 617 | LIB_VERSION |
| 618 | GETOPT_LONG_FALSE |
| 619 | GETOPT_LONG_TRUE |
| 620 | DOXY_FALSE |
| 621 | DOXY_TRUE |
| 622 | DOXYGEN |
| 623 | etc_confdir |
| 624 | STAGE2 |
| 625 | BASE_LIB |
| 626 | MODULE_FLAGS |
| 627 | SHARED_FLAGS |
| 628 | COMMON_FLAGS |
| 629 | ost_cv_dynloader |
| 630 | EXTRAS_FALSE |
| 631 | EXTRAS_TRUE |
| 632 | WIN32_FALSE |
| 633 | WIN32_TRUE |
| 634 | incprefix |
| 635 | CCXX_DIR |
| 636 | KDOC_DIR |
| 637 | WARN_FLAGS |
| 638 | WITH_CPPUNIT_TESTS_FALSE |
| 639 | WITH_CPPUNIT_TESTS_TRUE |
| 640 | CPPUNIT_LIBS |
| 641 | SSL_LIBS |
| 642 | ZSTREAM_LIBS |
| 643 | SOCKET_LIBS |
| 644 | PTHREAD_CC |
| 645 | THREAD_LIBS |
| 646 | THREAD_FLAGS |
| 647 | thrprefix |
| 648 | DYN_LOADER |
| 649 | LIBGETOPTOBJS |
| 650 | GETOPT_LIBS |
| 651 | WINVERSION |
| 652 | FTPDIR |
| 653 | MAINT |
| 654 | MAINTAINER_MODE_FALSE |
| 655 | MAINTAINER_MODE_TRUE |
| 656 | LT_CCXX_VERSION |
| 657 | LT_MINOR |
| 658 | LT_MAJOR |
| 659 | LT_SUBVER |
| 660 | LT_RELEASE |
| 661 | am__fastdepCXX_FALSE |
| 662 | am__fastdepCXX_TRUE |
| 663 | CXXDEPMODE |
| 664 | am__fastdepCC_FALSE |
| 665 | am__fastdepCC_TRUE |
| 666 | CCDEPMODE |
| 667 | AMDEPBACKSLASH |
| 668 | AMDEP_FALSE |
| 669 | AMDEP_TRUE |
| 670 | am__quote |
| 671 | am__include |
| 672 | DEPDIR |
| 673 | am__untar |
| 674 | am__tar |
| 675 | AMTAR |
| 676 | am__leading_dot |
| 677 | SET_MAKE |
| 678 | mkdir_p |
| 679 | MKDIR_P |
| 680 | INSTALL_STRIP_PROGRAM |
| 681 | install_sh |
| 682 | MAKEINFO |
| 683 | AUTOHEADER |
| 684 | AUTOMAKE |
| 685 | AUTOCONF |
| 686 | ACLOCAL |
| 687 | VERSION |
| 688 | PACKAGE |
| 689 | CYGPATH_W |
| 690 | am__isrc |
| 691 | INSTALL_DATA |
| 692 | INSTALL_SCRIPT |
| 693 | INSTALL_PROGRAM |
| 694 | OTOOL64 |
| 695 | OTOOL |
| 696 | LIPO |
| 697 | NMEDIT |
| 698 | DSYMUTIL |
| 699 | MANIFEST_TOOL |
| 700 | AWK |
| 701 | RANLIB |
| 702 | STRIP |
| 703 | ac_ct_AR |
| 704 | AR |
| 705 | LN_S |
| 706 | NM |
| 707 | ac_ct_DUMPBIN |
| 708 | DUMPBIN |
| 709 | LD |
| 710 | FGREP |
| 711 | SED |
| 712 | LIBTOOL |
| 713 | OBJDUMP |
| 714 | DLLTOOL |
| 715 | AS |
| 716 | MSWIN32_FALSE |
| 717 | MSWIN32_TRUE |
| 718 | EGREP |
| 719 | GREP |
| 720 | CXXCPP |
| 721 | ac_ct_CXX |
| 722 | CXXFLAGS |
| 723 | CPP |
| 724 | OBJEXT |
| 725 | EXEEXT |
| 726 | ac_ct_CC |
| 727 | CPPFLAGS |
| 728 | LDFLAGS |
| 729 | CFLAGS |
| 730 | target_os |
| 731 | target_vendor |
| 732 | target_cpu |
| 733 | target |
| 734 | host_os |
| 735 | host_vendor |
| 736 | host_cpu |
| 737 | host |
| 738 | build_os |
| 739 | build_vendor |
| 740 | build_cpu |
| 741 | build |
| 742 | ccincludedir |
| 743 | CXX |
| 744 | CC |
| 745 | target_alias |
| 746 | host_alias |
| 747 | build_alias |
| 748 | LIBS |
| 749 | ECHO_T |
| 750 | ECHO_N |
| 751 | ECHO_C |
| 752 | DEFS |
| 753 | mandir |
| 754 | localedir |
| 755 | libdir |
| 756 | psdir |
| 757 | pdfdir |
| 758 | dvidir |
| 759 | htmldir |
| 760 | infodir |
| 761 | docdir |
| 762 | oldincludedir |
| 763 | includedir |
| 764 | localstatedir |
| 765 | sharedstatedir |
| 766 | sysconfdir |
| 767 | datadir |
| 768 | datarootdir |
| 769 | libexecdir |
| 770 | sbindir |
| 771 | bindir |
| 772 | program_transform_name |
| 773 | prefix |
| 774 | exec_prefix |
| 775 | PACKAGE_URL |
| 776 | PACKAGE_BUGREPORT |
| 777 | PACKAGE_STRING |
| 778 | PACKAGE_VERSION |
| 779 | PACKAGE_TARNAME |
| 780 | PACKAGE_NAME |
| 781 | PATH_SEPARATOR |
| 782 | SHELL' |
| 783 | ac_subst_files='' |
| 784 | ac_user_opts=' |
| 785 | enable_option_checking |
| 786 | with_lsb |
| 787 | with_wininc |
| 788 | with_winlib |
| 789 | enable_shared |
| 790 | enable_static |
| 791 | with_pic |
| 792 | enable_fast_install |
| 793 | with_gnu_ld |
| 794 | with_sysroot |
| 795 | enable_libtool_lock |
| 796 | enable_dependency_tracking |
| 797 | enable_maintainer_mode |
| 798 | with_pthread |
| 799 | with_linuxthreads |
| 800 | with_ipv6 |
| 801 | with_nat |
| 802 | with_monotonic |
| 803 | with_extras |
| 804 | with_gnutls |
| 805 | with_openssl |
| 806 | with_compression |
| 807 | with_memaudit |
| 808 | with_cppunit |
| 809 | with_exceptions |
| 810 | with_stlport |
| 811 | enable_debug |
| 812 | enable_profiling |
| 813 | ' |
| 814 | ac_precious_vars='build_alias |
| 815 | host_alias |
| 816 | target_alias |
| 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | LIBS |
| 821 | CPPFLAGS |
| 822 | CPP |
| 823 | CXX |
| 824 | CXXFLAGS |
| 825 | CCC |
| 826 | CXXCPP' |
| 827 | |
| 828 | |
| 829 | # Initialize some variables set by options. |
| 830 | ac_init_help= |
| 831 | ac_init_version=false |
| 832 | ac_unrecognized_opts= |
| 833 | ac_unrecognized_sep= |
| 834 | # The variables have the same names as the options, with |
| 835 | # dashes changed to underlines. |
| 836 | cache_file=/dev/null |
| 837 | exec_prefix=NONE |
| 838 | no_create= |
| 839 | no_recursion= |
| 840 | prefix=NONE |
| 841 | program_prefix=NONE |
| 842 | program_suffix=NONE |
| 843 | program_transform_name=s,x,x, |
| 844 | silent= |
| 845 | site= |
| 846 | srcdir= |
| 847 | verbose= |
| 848 | x_includes=NONE |
| 849 | x_libraries=NONE |
| 850 | |
| 851 | # Installation directory options. |
| 852 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 853 | # and all the variables that are supposed to be based on exec_prefix |
| 854 | # by default will actually change. |
| 855 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 856 | # (The list follows the same order as the GNU Coding Standards.) |
| 857 | bindir='${exec_prefix}/bin' |
| 858 | sbindir='${exec_prefix}/sbin' |
| 859 | libexecdir='${exec_prefix}/libexec' |
| 860 | datarootdir='${prefix}/share' |
| 861 | datadir='${datarootdir}' |
| 862 | sysconfdir='${prefix}/etc' |
| 863 | sharedstatedir='${prefix}/com' |
| 864 | localstatedir='${prefix}/var' |
| 865 | includedir='${prefix}/include' |
| 866 | oldincludedir='/usr/include' |
| 867 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 868 | infodir='${datarootdir}/info' |
| 869 | htmldir='${docdir}' |
| 870 | dvidir='${docdir}' |
| 871 | pdfdir='${docdir}' |
| 872 | psdir='${docdir}' |
| 873 | libdir='${exec_prefix}/lib' |
| 874 | localedir='${datarootdir}/locale' |
| 875 | mandir='${datarootdir}/man' |
| 876 | |
| 877 | ac_prev= |
| 878 | ac_dashdash= |
| 879 | for ac_option |
| 880 | do |
| 881 | # If the previous option needs an argument, assign it. |
| 882 | if test -n "$ac_prev"; then |
| 883 | eval $ac_prev=\$ac_option |
| 884 | ac_prev= |
| 885 | continue |
| 886 | fi |
| 887 | |
| 888 | case $ac_option in |
| 889 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 890 | *=) ac_optarg= ;; |
| 891 | *) ac_optarg=yes ;; |
| 892 | esac |
| 893 | |
| 894 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 895 | |
| 896 | case $ac_dashdash$ac_option in |
| 897 | --) |
| 898 | ac_dashdash=yes ;; |
| 899 | |
| 900 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 901 | ac_prev=bindir ;; |
| 902 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 903 | bindir=$ac_optarg ;; |
| 904 | |
| 905 | -build | --build | --buil | --bui | --bu) |
| 906 | ac_prev=build_alias ;; |
| 907 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 908 | build_alias=$ac_optarg ;; |
| 909 | |
| 910 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 911 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 912 | ac_prev=cache_file ;; |
| 913 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 914 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 915 | cache_file=$ac_optarg ;; |
| 916 | |
| 917 | --config-cache | -C) |
| 918 | cache_file=config.cache ;; |
| 919 | |
| 920 | -datadir | --datadir | --datadi | --datad) |
| 921 | ac_prev=datadir ;; |
| 922 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 923 | datadir=$ac_optarg ;; |
| 924 | |
| 925 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 926 | | --dataroo | --dataro | --datar) |
| 927 | ac_prev=datarootdir ;; |
| 928 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 929 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 930 | datarootdir=$ac_optarg ;; |
| 931 | |
| 932 | -disable-* | --disable-*) |
| 933 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 934 | # Reject names that are not valid shell variable names. |
| 935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 936 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 937 | ac_useropt_orig=$ac_useropt |
| 938 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 939 | case $ac_user_opts in |
| 940 | *" |
| 941 | "enable_$ac_useropt" |
| 942 | "*) ;; |
| 943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 944 | ac_unrecognized_sep=', ';; |
| 945 | esac |
| 946 | eval enable_$ac_useropt=no ;; |
| 947 | |
| 948 | -docdir | --docdir | --docdi | --doc | --do) |
| 949 | ac_prev=docdir ;; |
| 950 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 951 | docdir=$ac_optarg ;; |
| 952 | |
| 953 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 954 | ac_prev=dvidir ;; |
| 955 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 956 | dvidir=$ac_optarg ;; |
| 957 | |
| 958 | -enable-* | --enable-*) |
| 959 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 960 | # Reject names that are not valid shell variable names. |
| 961 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 962 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 963 | ac_useropt_orig=$ac_useropt |
| 964 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 965 | case $ac_user_opts in |
| 966 | *" |
| 967 | "enable_$ac_useropt" |
| 968 | "*) ;; |
| 969 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 970 | ac_unrecognized_sep=', ';; |
| 971 | esac |
| 972 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 973 | |
| 974 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 975 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 976 | | --exec | --exe | --ex) |
| 977 | ac_prev=exec_prefix ;; |
| 978 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 979 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 980 | | --exec=* | --exe=* | --ex=*) |
| 981 | exec_prefix=$ac_optarg ;; |
| 982 | |
| 983 | -gas | --gas | --ga | --g) |
| 984 | # Obsolete; use --with-gas. |
| 985 | with_gas=yes ;; |
| 986 | |
| 987 | -help | --help | --hel | --he | -h) |
| 988 | ac_init_help=long ;; |
| 989 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 990 | ac_init_help=recursive ;; |
| 991 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 992 | ac_init_help=short ;; |
| 993 | |
| 994 | -host | --host | --hos | --ho) |
| 995 | ac_prev=host_alias ;; |
| 996 | -host=* | --host=* | --hos=* | --ho=*) |
| 997 | host_alias=$ac_optarg ;; |
| 998 | |
| 999 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1000 | ac_prev=htmldir ;; |
| 1001 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1002 | | --ht=*) |
| 1003 | htmldir=$ac_optarg ;; |
| 1004 | |
| 1005 | -includedir | --includedir | --includedi | --included | --include \ |
| 1006 | | --includ | --inclu | --incl | --inc) |
| 1007 | ac_prev=includedir ;; |
| 1008 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1009 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1010 | includedir=$ac_optarg ;; |
| 1011 | |
| 1012 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1013 | ac_prev=infodir ;; |
| 1014 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1015 | infodir=$ac_optarg ;; |
| 1016 | |
| 1017 | -libdir | --libdir | --libdi | --libd) |
| 1018 | ac_prev=libdir ;; |
| 1019 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1020 | libdir=$ac_optarg ;; |
| 1021 | |
| 1022 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1023 | | --libexe | --libex | --libe) |
| 1024 | ac_prev=libexecdir ;; |
| 1025 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1026 | | --libexe=* | --libex=* | --libe=*) |
| 1027 | libexecdir=$ac_optarg ;; |
| 1028 | |
| 1029 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1030 | ac_prev=localedir ;; |
| 1031 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1032 | localedir=$ac_optarg ;; |
| 1033 | |
| 1034 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1035 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1036 | ac_prev=localstatedir ;; |
| 1037 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1038 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1039 | localstatedir=$ac_optarg ;; |
| 1040 | |
| 1041 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1042 | ac_prev=mandir ;; |
| 1043 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1044 | mandir=$ac_optarg ;; |
| 1045 | |
| 1046 | -nfp | --nfp | --nf) |
| 1047 | # Obsolete; use --without-fp. |
| 1048 | with_fp=no ;; |
| 1049 | |
| 1050 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1051 | | --no-cr | --no-c | -n) |
| 1052 | no_create=yes ;; |
| 1053 | |
| 1054 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1055 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1056 | no_recursion=yes ;; |
| 1057 | |
| 1058 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1059 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1060 | | --oldin | --oldi | --old | --ol | --o) |
| 1061 | ac_prev=oldincludedir ;; |
| 1062 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1063 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1064 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1065 | oldincludedir=$ac_optarg ;; |
| 1066 | |
| 1067 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1068 | ac_prev=prefix ;; |
| 1069 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1070 | prefix=$ac_optarg ;; |
| 1071 | |
| 1072 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1073 | | --program-pre | --program-pr | --program-p) |
| 1074 | ac_prev=program_prefix ;; |
| 1075 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1076 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1077 | program_prefix=$ac_optarg ;; |
| 1078 | |
| 1079 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1080 | | --program-suf | --program-su | --program-s) |
| 1081 | ac_prev=program_suffix ;; |
| 1082 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1083 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1084 | program_suffix=$ac_optarg ;; |
| 1085 | |
| 1086 | -program-transform-name | --program-transform-name \ |
| 1087 | | --program-transform-nam | --program-transform-na \ |
| 1088 | | --program-transform-n | --program-transform- \ |
| 1089 | | --program-transform | --program-transfor \ |
| 1090 | | --program-transfo | --program-transf \ |
| 1091 | | --program-trans | --program-tran \ |
| 1092 | | --progr-tra | --program-tr | --program-t) |
| 1093 | ac_prev=program_transform_name ;; |
| 1094 | -program-transform-name=* | --program-transform-name=* \ |
| 1095 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1096 | | --program-transform-n=* | --program-transform-=* \ |
| 1097 | | --program-transform=* | --program-transfor=* \ |
| 1098 | | --program-transfo=* | --program-transf=* \ |
| 1099 | | --program-trans=* | --program-tran=* \ |
| 1100 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1101 | program_transform_name=$ac_optarg ;; |
| 1102 | |
| 1103 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1104 | ac_prev=pdfdir ;; |
| 1105 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1106 | pdfdir=$ac_optarg ;; |
| 1107 | |
| 1108 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1109 | ac_prev=psdir ;; |
| 1110 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1111 | psdir=$ac_optarg ;; |
| 1112 | |
| 1113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1114 | | -silent | --silent | --silen | --sile | --sil) |
| 1115 | silent=yes ;; |
| 1116 | |
| 1117 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1118 | ac_prev=sbindir ;; |
| 1119 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1120 | | --sbi=* | --sb=*) |
| 1121 | sbindir=$ac_optarg ;; |
| 1122 | |
| 1123 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1124 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1125 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1126 | | --sha | --sh) |
| 1127 | ac_prev=sharedstatedir ;; |
| 1128 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1129 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1130 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1131 | | --sha=* | --sh=*) |
| 1132 | sharedstatedir=$ac_optarg ;; |
| 1133 | |
| 1134 | -site | --site | --sit) |
| 1135 | ac_prev=site ;; |
| 1136 | -site=* | --site=* | --sit=*) |
| 1137 | site=$ac_optarg ;; |
| 1138 | |
| 1139 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1140 | ac_prev=srcdir ;; |
| 1141 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1142 | srcdir=$ac_optarg ;; |
| 1143 | |
| 1144 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1145 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1146 | ac_prev=sysconfdir ;; |
| 1147 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1148 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1149 | sysconfdir=$ac_optarg ;; |
| 1150 | |
| 1151 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1152 | ac_prev=target_alias ;; |
| 1153 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1154 | target_alias=$ac_optarg ;; |
| 1155 | |
| 1156 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1157 | verbose=yes ;; |
| 1158 | |
| 1159 | -version | --version | --versio | --versi | --vers | -V) |
| 1160 | ac_init_version=: ;; |
| 1161 | |
| 1162 | -with-* | --with-*) |
| 1163 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1164 | # Reject names that are not valid shell variable names. |
| 1165 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1166 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1167 | ac_useropt_orig=$ac_useropt |
| 1168 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1169 | case $ac_user_opts in |
| 1170 | *" |
| 1171 | "with_$ac_useropt" |
| 1172 | "*) ;; |
| 1173 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1174 | ac_unrecognized_sep=', ';; |
| 1175 | esac |
| 1176 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1177 | |
| 1178 | -without-* | --without-*) |
| 1179 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1180 | # Reject names that are not valid shell variable names. |
| 1181 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1182 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1183 | ac_useropt_orig=$ac_useropt |
| 1184 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1185 | case $ac_user_opts in |
| 1186 | *" |
| 1187 | "with_$ac_useropt" |
| 1188 | "*) ;; |
| 1189 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1190 | ac_unrecognized_sep=', ';; |
| 1191 | esac |
| 1192 | eval with_$ac_useropt=no ;; |
| 1193 | |
| 1194 | --x) |
| 1195 | # Obsolete; use --with-x. |
| 1196 | with_x=yes ;; |
| 1197 | |
| 1198 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1199 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1200 | ac_prev=x_includes ;; |
| 1201 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1202 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1203 | x_includes=$ac_optarg ;; |
| 1204 | |
| 1205 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1206 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1207 | ac_prev=x_libraries ;; |
| 1208 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1209 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1210 | x_libraries=$ac_optarg ;; |
| 1211 | |
| 1212 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1213 | Try \`$0 --help' for more information" |
| 1214 | ;; |
| 1215 | |
| 1216 | *=*) |
| 1217 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1218 | # Reject names that are not valid shell variable names. |
| 1219 | case $ac_envvar in #( |
| 1220 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1221 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1222 | esac |
| 1223 | eval $ac_envvar=\$ac_optarg |
| 1224 | export $ac_envvar ;; |
| 1225 | |
| 1226 | *) |
| 1227 | # FIXME: should be removed in autoconf 3.0. |
| 1228 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1229 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1230 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1231 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1232 | ;; |
| 1233 | |
| 1234 | esac |
| 1235 | done |
| 1236 | |
| 1237 | if test -n "$ac_prev"; then |
| 1238 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1239 | as_fn_error $? "missing argument to $ac_option" |
| 1240 | fi |
| 1241 | |
| 1242 | if test -n "$ac_unrecognized_opts"; then |
| 1243 | case $enable_option_checking in |
| 1244 | no) ;; |
| 1245 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1246 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1247 | esac |
| 1248 | fi |
| 1249 | |
| 1250 | # Check all directory arguments for consistency. |
| 1251 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1252 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1253 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1254 | libdir localedir mandir |
| 1255 | do |
| 1256 | eval ac_val=\$$ac_var |
| 1257 | # Remove trailing slashes. |
| 1258 | case $ac_val in |
| 1259 | */ ) |
| 1260 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1261 | eval $ac_var=\$ac_val;; |
| 1262 | esac |
| 1263 | # Be sure to have absolute directory names. |
| 1264 | case $ac_val in |
| 1265 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1266 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1267 | esac |
| 1268 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1269 | done |
| 1270 | |
| 1271 | # There might be people who depend on the old broken behavior: `$host' |
| 1272 | # used to hold the argument of --host etc. |
| 1273 | # FIXME: To remove some day. |
| 1274 | build=$build_alias |
| 1275 | host=$host_alias |
| 1276 | target=$target_alias |
| 1277 | |
| 1278 | # FIXME: To remove some day. |
| 1279 | if test "x$host_alias" != x; then |
| 1280 | if test "x$build_alias" = x; then |
| 1281 | cross_compiling=maybe |
| 1282 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1283 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| 1284 | elif test "x$build_alias" != "x$host_alias"; then |
| 1285 | cross_compiling=yes |
| 1286 | fi |
| 1287 | fi |
| 1288 | |
| 1289 | ac_tool_prefix= |
| 1290 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1291 | |
| 1292 | test "$silent" = yes && exec 6>/dev/null |
| 1293 | |
| 1294 | |
| 1295 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1296 | ac_ls_di=`ls -di .` && |
| 1297 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1298 | as_fn_error $? "working directory cannot be determined" |
| 1299 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1300 | as_fn_error $? "pwd does not report name of working directory" |
| 1301 | |
| 1302 | |
| 1303 | # Find the source files, if location was not specified. |
| 1304 | if test -z "$srcdir"; then |
| 1305 | ac_srcdir_defaulted=yes |
| 1306 | # Try the directory containing this script, then the parent directory. |
| 1307 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1308 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1309 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1310 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1311 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1312 | $as_echo X"$as_myself" | |
| 1313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1314 | s//\1/ |
| 1315 | q |
| 1316 | } |
| 1317 | /^X\(\/\/\)[^/].*/{ |
| 1318 | s//\1/ |
| 1319 | q |
| 1320 | } |
| 1321 | /^X\(\/\/\)$/{ |
| 1322 | s//\1/ |
| 1323 | q |
| 1324 | } |
| 1325 | /^X\(\/\).*/{ |
| 1326 | s//\1/ |
| 1327 | q |
| 1328 | } |
| 1329 | s/.*/./; q'` |
| 1330 | srcdir=$ac_confdir |
| 1331 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1332 | srcdir=.. |
| 1333 | fi |
| 1334 | else |
| 1335 | ac_srcdir_defaulted=no |
| 1336 | fi |
| 1337 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1338 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1339 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1340 | fi |
| 1341 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1342 | ac_abs_confdir=`( |
| 1343 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1344 | pwd)` |
| 1345 | # When building in place, set srcdir=. |
| 1346 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1347 | srcdir=. |
| 1348 | fi |
| 1349 | # Remove unnecessary trailing slashes from srcdir. |
| 1350 | # Double slashes in file names in object file debugging info |
| 1351 | # mess up M-x gdb in Emacs. |
| 1352 | case $srcdir in |
| 1353 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1354 | esac |
| 1355 | for ac_var in $ac_precious_vars; do |
| 1356 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1357 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1358 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1359 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1360 | done |
| 1361 | |
| 1362 | # |
| 1363 | # Report the --help message. |
| 1364 | # |
| 1365 | if test "$ac_init_help" = "long"; then |
| 1366 | # Omit some internal or obsolete options to make the list less imposing. |
| 1367 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1368 | cat <<_ACEOF |
| 1369 | \`configure' configures this package to adapt to many kinds of systems. |
| 1370 | |
| 1371 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1372 | |
| 1373 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1374 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1375 | |
| 1376 | Defaults for the options are specified in brackets. |
| 1377 | |
| 1378 | Configuration: |
| 1379 | -h, --help display this help and exit |
| 1380 | --help=short display options specific to this package |
| 1381 | --help=recursive display the short help of all the included packages |
| 1382 | -V, --version display version information and exit |
| 1383 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1384 | --cache-file=FILE cache test results in FILE [disabled] |
| 1385 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1386 | -n, --no-create do not create output files |
| 1387 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1388 | |
| 1389 | Installation directories: |
| 1390 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1391 | [$ac_default_prefix] |
| 1392 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1393 | [PREFIX] |
| 1394 | |
| 1395 | By default, \`make install' will install all the files in |
| 1396 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1397 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1398 | for instance \`--prefix=\$HOME'. |
| 1399 | |
| 1400 | For better control, use the options below. |
| 1401 | |
| 1402 | Fine tuning of the installation directories: |
| 1403 | --bindir=DIR user executables [EPREFIX/bin] |
| 1404 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1405 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1406 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1407 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1408 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1409 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1410 | --includedir=DIR C header files [PREFIX/include] |
| 1411 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1412 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1413 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1414 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1415 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1416 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1417 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1418 | --htmldir=DIR html documentation [DOCDIR] |
| 1419 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1420 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1421 | --psdir=DIR ps documentation [DOCDIR] |
| 1422 | _ACEOF |
| 1423 | |
| 1424 | cat <<\_ACEOF |
| 1425 | |
| 1426 | Program names: |
| 1427 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1428 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1429 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1430 | |
| 1431 | System types: |
| 1432 | --build=BUILD configure for building on BUILD [guessed] |
| 1433 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1434 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1435 | _ACEOF |
| 1436 | fi |
| 1437 | |
| 1438 | if test -n "$ac_init_help"; then |
| 1439 | |
| 1440 | cat <<\_ACEOF |
| 1441 | |
| 1442 | Optional Features: |
| 1443 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1444 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1445 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1446 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1447 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1448 | --enable-fast-install[=PKGS] |
| 1449 | optimize for fast installation [default=yes] |
| 1450 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1451 | --disable-dependency-tracking speeds up one-time build |
| 1452 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1453 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1454 | (and sometimes confusing) to the casual installer |
| 1455 | --enable-debug compile for debugging |
| 1456 | --enable-profiling compile for profiling |
| 1457 | |
| 1458 | Optional Packages: |
| 1459 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1460 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1461 | --with-lsb=name Build lsb compliant package |
| 1462 | --with-wininc=DIR define windows include directory |
| 1463 | --with-winlib=DIR define windows lib directory |
| 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-sysroot=DIR Search for dependent libraries within DIR |
| 1468 | (or the compiler's sysroot if not specified). |
| 1469 | --with-pthread=lib using specified pthread library |
| 1470 | --with-linuxthreads use linux kernel mode library |
| 1471 | |
| 1472 | --without-ipv6 Disable ipv6 |
| 1473 | --without-nat Disable NAT class interface (pf, ipf or netfilter), |
| 1474 | default is enabled. |
| 1475 | --without-monotonic Disable monotonic clock |
| 1476 | --without-extras Disables extras lib |
| 1477 | --with-gnutls Enable gnutls support |
| 1478 | --with-openssl Enable openssl support |
| 1479 | --without-compression Disable libz compression |
| 1480 | --with-memaudit Enable memory auditing |
| 1481 | --with-cppunit Build cppunit based test suite |
| 1482 | --without-exceptions Disable exception handling |
| 1483 | --with-stlport=dir using SGI portable C++ stream library |
| 1484 | ie: /usr/local, not all include directory |
| 1485 | |
| 1486 | Some influential environment variables: |
| 1487 | CC C compiler command |
| 1488 | CFLAGS C compiler flags |
| 1489 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1490 | nonstandard directory <lib dir> |
| 1491 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1492 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1493 | you have headers in a nonstandard directory <include dir> |
| 1494 | CPP C preprocessor |
| 1495 | CXX C++ compiler command |
| 1496 | CXXFLAGS C++ compiler flags |
| 1497 | CXXCPP C++ preprocessor |
| 1498 | |
| 1499 | Use these variables to override the choices made by `configure' or to help |
| 1500 | it to find libraries and programs with nonstandard names/locations. |
| 1501 | |
| 1502 | Report bugs to the package provider. |
| 1503 | _ACEOF |
| 1504 | ac_status=$? |
| 1505 | fi |
| 1506 | |
| 1507 | if test "$ac_init_help" = "recursive"; then |
| 1508 | # If there are subdirs, report their specific --help. |
| 1509 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1510 | test -d "$ac_dir" || |
| 1511 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1512 | continue |
| 1513 | ac_builddir=. |
| 1514 | |
| 1515 | case "$ac_dir" in |
| 1516 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1517 | *) |
| 1518 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1519 | # A ".." for each directory in $ac_dir_suffix. |
| 1520 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1521 | case $ac_top_builddir_sub in |
| 1522 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1523 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1524 | esac ;; |
| 1525 | esac |
| 1526 | ac_abs_top_builddir=$ac_pwd |
| 1527 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1528 | # for backward compatibility: |
| 1529 | ac_top_builddir=$ac_top_build_prefix |
| 1530 | |
| 1531 | case $srcdir in |
| 1532 | .) # We are building in place. |
| 1533 | ac_srcdir=. |
| 1534 | ac_top_srcdir=$ac_top_builddir_sub |
| 1535 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1536 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1537 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1538 | ac_top_srcdir=$srcdir |
| 1539 | ac_abs_top_srcdir=$srcdir ;; |
| 1540 | *) # Relative name. |
| 1541 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1542 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1543 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1544 | esac |
| 1545 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1546 | |
| 1547 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1548 | # Check for guested configure. |
| 1549 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1550 | echo && |
| 1551 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1552 | elif test -f "$ac_srcdir/configure"; then |
| 1553 | echo && |
| 1554 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1555 | else |
| 1556 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1557 | fi || ac_status=$? |
| 1558 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1559 | done |
| 1560 | fi |
| 1561 | |
| 1562 | test -n "$ac_init_help" && exit $ac_status |
| 1563 | if $ac_init_version; then |
| 1564 | cat <<\_ACEOF |
| 1565 | configure |
| 1566 | generated by GNU Autoconf 2.68 |
| 1567 | |
| 1568 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 1569 | This configure script is free software; the Free Software Foundation |
| 1570 | gives unlimited permission to copy, distribute and modify it. |
| 1571 | _ACEOF |
| 1572 | exit |
| 1573 | fi |
| 1574 | |
| 1575 | ## ------------------------ ## |
| 1576 | ## Autoconf initialization. ## |
| 1577 | ## ------------------------ ## |
| 1578 | |
| 1579 | # ac_fn_c_try_compile LINENO |
| 1580 | # -------------------------- |
| 1581 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1582 | ac_fn_c_try_compile () |
| 1583 | { |
| 1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1585 | rm -f conftest.$ac_objext |
| 1586 | if { { ac_try="$ac_compile" |
| 1587 | case "(($ac_try" in |
| 1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1589 | *) ac_try_echo=$ac_try;; |
| 1590 | esac |
| 1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1592 | $as_echo "$ac_try_echo"; } >&5 |
| 1593 | (eval "$ac_compile") 2>conftest.err |
| 1594 | ac_status=$? |
| 1595 | if test -s conftest.err; then |
| 1596 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1597 | cat conftest.er1 >&5 |
| 1598 | mv -f conftest.er1 conftest.err |
| 1599 | fi |
| 1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1601 | test $ac_status = 0; } && { |
| 1602 | test -z "$ac_c_werror_flag" || |
| 1603 | test ! -s conftest.err |
| 1604 | } && test -s conftest.$ac_objext; then : |
| 1605 | ac_retval=0 |
| 1606 | else |
| 1607 | $as_echo "$as_me: failed program was:" >&5 |
| 1608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1609 | |
| 1610 | ac_retval=1 |
| 1611 | fi |
| 1612 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1613 | as_fn_set_status $ac_retval |
| 1614 | |
| 1615 | } # ac_fn_c_try_compile |
| 1616 | |
| 1617 | # ac_fn_c_try_cpp LINENO |
| 1618 | # ---------------------- |
| 1619 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1620 | ac_fn_c_try_cpp () |
| 1621 | { |
| 1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1623 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1624 | case "(($ac_try" in |
| 1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1626 | *) ac_try_echo=$ac_try;; |
| 1627 | esac |
| 1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1629 | $as_echo "$ac_try_echo"; } >&5 |
| 1630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1631 | ac_status=$? |
| 1632 | if test -s conftest.err; then |
| 1633 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1634 | cat conftest.er1 >&5 |
| 1635 | mv -f conftest.er1 conftest.err |
| 1636 | fi |
| 1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1638 | test $ac_status = 0; } > conftest.i && { |
| 1639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1640 | test ! -s conftest.err |
| 1641 | }; then : |
| 1642 | ac_retval=0 |
| 1643 | else |
| 1644 | $as_echo "$as_me: failed program was:" >&5 |
| 1645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1646 | |
| 1647 | ac_retval=1 |
| 1648 | fi |
| 1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1650 | as_fn_set_status $ac_retval |
| 1651 | |
| 1652 | } # ac_fn_c_try_cpp |
| 1653 | |
| 1654 | # ac_fn_cxx_try_compile LINENO |
| 1655 | # ---------------------------- |
| 1656 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1657 | ac_fn_cxx_try_compile () |
| 1658 | { |
| 1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1660 | rm -f conftest.$ac_objext |
| 1661 | if { { ac_try="$ac_compile" |
| 1662 | case "(($ac_try" in |
| 1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1664 | *) ac_try_echo=$ac_try;; |
| 1665 | esac |
| 1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1667 | $as_echo "$ac_try_echo"; } >&5 |
| 1668 | (eval "$ac_compile") 2>conftest.err |
| 1669 | ac_status=$? |
| 1670 | if test -s conftest.err; then |
| 1671 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1672 | cat conftest.er1 >&5 |
| 1673 | mv -f conftest.er1 conftest.err |
| 1674 | fi |
| 1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1676 | test $ac_status = 0; } && { |
| 1677 | test -z "$ac_cxx_werror_flag" || |
| 1678 | test ! -s conftest.err |
| 1679 | } && test -s conftest.$ac_objext; then : |
| 1680 | ac_retval=0 |
| 1681 | else |
| 1682 | $as_echo "$as_me: failed program was:" >&5 |
| 1683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1684 | |
| 1685 | ac_retval=1 |
| 1686 | fi |
| 1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1688 | as_fn_set_status $ac_retval |
| 1689 | |
| 1690 | } # ac_fn_cxx_try_compile |
| 1691 | |
| 1692 | # ac_fn_cxx_try_cpp LINENO |
| 1693 | # ------------------------ |
| 1694 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1695 | ac_fn_cxx_try_cpp () |
| 1696 | { |
| 1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1698 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1699 | case "(($ac_try" in |
| 1700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1701 | *) ac_try_echo=$ac_try;; |
| 1702 | esac |
| 1703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1704 | $as_echo "$ac_try_echo"; } >&5 |
| 1705 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1706 | ac_status=$? |
| 1707 | if test -s conftest.err; then |
| 1708 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1709 | cat conftest.er1 >&5 |
| 1710 | mv -f conftest.er1 conftest.err |
| 1711 | fi |
| 1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1713 | test $ac_status = 0; } > conftest.i && { |
| 1714 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1715 | test ! -s conftest.err |
| 1716 | }; then : |
| 1717 | ac_retval=0 |
| 1718 | else |
| 1719 | $as_echo "$as_me: failed program was:" >&5 |
| 1720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1721 | |
| 1722 | ac_retval=1 |
| 1723 | fi |
| 1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1725 | as_fn_set_status $ac_retval |
| 1726 | |
| 1727 | } # ac_fn_cxx_try_cpp |
| 1728 | |
| 1729 | # ac_fn_cxx_try_link LINENO |
| 1730 | # ------------------------- |
| 1731 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1732 | ac_fn_cxx_try_link () |
| 1733 | { |
| 1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1736 | if { { ac_try="$ac_link" |
| 1737 | case "(($ac_try" in |
| 1738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1739 | *) ac_try_echo=$ac_try;; |
| 1740 | esac |
| 1741 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1742 | $as_echo "$ac_try_echo"; } >&5 |
| 1743 | (eval "$ac_link") 2>conftest.err |
| 1744 | ac_status=$? |
| 1745 | if test -s conftest.err; then |
| 1746 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1747 | cat conftest.er1 >&5 |
| 1748 | mv -f conftest.er1 conftest.err |
| 1749 | fi |
| 1750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1751 | test $ac_status = 0; } && { |
| 1752 | test -z "$ac_cxx_werror_flag" || |
| 1753 | test ! -s conftest.err |
| 1754 | } && test -s conftest$ac_exeext && { |
| 1755 | test "$cross_compiling" = yes || |
| 1756 | $as_test_x conftest$ac_exeext |
| 1757 | }; then : |
| 1758 | ac_retval=0 |
| 1759 | else |
| 1760 | $as_echo "$as_me: failed program was:" >&5 |
| 1761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1762 | |
| 1763 | ac_retval=1 |
| 1764 | fi |
| 1765 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1766 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1767 | # interfere with the next link command; also delete a directory that is |
| 1768 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1769 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1771 | as_fn_set_status $ac_retval |
| 1772 | |
| 1773 | } # ac_fn_cxx_try_link |
| 1774 | |
| 1775 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1776 | # --------------------------------------------------------- |
| 1777 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1778 | # the include files in INCLUDES and setting the cache variable VAR |
| 1779 | # accordingly. |
| 1780 | ac_fn_cxx_check_header_mongrel () |
| 1781 | { |
| 1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1783 | if eval \${$3+:} false; then : |
| 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1785 | $as_echo_n "checking for $2... " >&6; } |
| 1786 | if eval \${$3+:} false; then : |
| 1787 | $as_echo_n "(cached) " >&6 |
| 1788 | fi |
| 1789 | eval ac_res=\$$3 |
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1791 | $as_echo "$ac_res" >&6; } |
| 1792 | else |
| 1793 | # Is the header compilable? |
| 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1795 | $as_echo_n "checking $2 usability... " >&6; } |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | $4 |
| 1799 | #include <$2> |
| 1800 | _ACEOF |
| 1801 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 1802 | ac_header_compiler=yes |
| 1803 | else |
| 1804 | ac_header_compiler=no |
| 1805 | fi |
| 1806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1808 | $as_echo "$ac_header_compiler" >&6; } |
| 1809 | |
| 1810 | # Is the header present? |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1812 | $as_echo_n "checking $2 presence... " >&6; } |
| 1813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1814 | /* end confdefs.h. */ |
| 1815 | #include <$2> |
| 1816 | _ACEOF |
| 1817 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 1818 | ac_header_preproc=yes |
| 1819 | else |
| 1820 | ac_header_preproc=no |
| 1821 | fi |
| 1822 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1824 | $as_echo "$ac_header_preproc" >&6; } |
| 1825 | |
| 1826 | # So? What about this header? |
| 1827 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 1828 | yes:no: ) |
| 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1830 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1832 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1833 | ;; |
| 1834 | no:yes:* ) |
| 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1836 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1838 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1840 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1842 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1844 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1845 | ;; |
| 1846 | esac |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1848 | $as_echo_n "checking for $2... " >&6; } |
| 1849 | if eval \${$3+:} false; then : |
| 1850 | $as_echo_n "(cached) " >&6 |
| 1851 | else |
| 1852 | eval "$3=\$ac_header_compiler" |
| 1853 | fi |
| 1854 | eval ac_res=\$$3 |
| 1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1856 | $as_echo "$ac_res" >&6; } |
| 1857 | fi |
| 1858 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1859 | |
| 1860 | } # ac_fn_cxx_check_header_mongrel |
| 1861 | |
| 1862 | # ac_fn_cxx_try_run LINENO |
| 1863 | # ------------------------ |
| 1864 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1865 | # that executables *can* be run. |
| 1866 | ac_fn_cxx_try_run () |
| 1867 | { |
| 1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1869 | if { { ac_try="$ac_link" |
| 1870 | case "(($ac_try" in |
| 1871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1872 | *) ac_try_echo=$ac_try;; |
| 1873 | esac |
| 1874 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1875 | $as_echo "$ac_try_echo"; } >&5 |
| 1876 | (eval "$ac_link") 2>&5 |
| 1877 | ac_status=$? |
| 1878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1879 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1880 | { { case "(($ac_try" in |
| 1881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1882 | *) ac_try_echo=$ac_try;; |
| 1883 | esac |
| 1884 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1885 | $as_echo "$ac_try_echo"; } >&5 |
| 1886 | (eval "$ac_try") 2>&5 |
| 1887 | ac_status=$? |
| 1888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1889 | test $ac_status = 0; }; }; then : |
| 1890 | ac_retval=0 |
| 1891 | else |
| 1892 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1893 | $as_echo "$as_me: failed program was:" >&5 |
| 1894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1895 | |
| 1896 | ac_retval=$ac_status |
| 1897 | fi |
| 1898 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1899 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1900 | as_fn_set_status $ac_retval |
| 1901 | |
| 1902 | } # ac_fn_cxx_try_run |
| 1903 | |
| 1904 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
| 1905 | # --------------------------------------------------------- |
| 1906 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1907 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1908 | ac_fn_cxx_check_header_compile () |
| 1909 | { |
| 1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1912 | $as_echo_n "checking for $2... " >&6; } |
| 1913 | if eval \${$3+:} false; then : |
| 1914 | $as_echo_n "(cached) " >&6 |
| 1915 | else |
| 1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1917 | /* end confdefs.h. */ |
| 1918 | $4 |
| 1919 | #include <$2> |
| 1920 | _ACEOF |
| 1921 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 1922 | eval "$3=yes" |
| 1923 | else |
| 1924 | eval "$3=no" |
| 1925 | fi |
| 1926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1927 | fi |
| 1928 | eval ac_res=\$$3 |
| 1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1930 | $as_echo "$ac_res" >&6; } |
| 1931 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1932 | |
| 1933 | } # ac_fn_cxx_check_header_compile |
| 1934 | |
| 1935 | # ac_fn_c_try_link LINENO |
| 1936 | # ----------------------- |
| 1937 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1938 | ac_fn_c_try_link () |
| 1939 | { |
| 1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1942 | if { { ac_try="$ac_link" |
| 1943 | case "(($ac_try" in |
| 1944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1945 | *) ac_try_echo=$ac_try;; |
| 1946 | esac |
| 1947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1948 | $as_echo "$ac_try_echo"; } >&5 |
| 1949 | (eval "$ac_link") 2>conftest.err |
| 1950 | ac_status=$? |
| 1951 | if test -s conftest.err; then |
| 1952 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1953 | cat conftest.er1 >&5 |
| 1954 | mv -f conftest.er1 conftest.err |
| 1955 | fi |
| 1956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1957 | test $ac_status = 0; } && { |
| 1958 | test -z "$ac_c_werror_flag" || |
| 1959 | test ! -s conftest.err |
| 1960 | } && test -s conftest$ac_exeext && { |
| 1961 | test "$cross_compiling" = yes || |
| 1962 | $as_test_x conftest$ac_exeext |
| 1963 | }; then : |
| 1964 | ac_retval=0 |
| 1965 | else |
| 1966 | $as_echo "$as_me: failed program was:" >&5 |
| 1967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1968 | |
| 1969 | ac_retval=1 |
| 1970 | fi |
| 1971 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1972 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1973 | # interfere with the next link command; also delete a directory that is |
| 1974 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1975 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1977 | as_fn_set_status $ac_retval |
| 1978 | |
| 1979 | } # ac_fn_c_try_link |
| 1980 | |
| 1981 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1982 | # ------------------------------------------------------- |
| 1983 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1984 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1985 | ac_fn_c_check_header_compile () |
| 1986 | { |
| 1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1989 | $as_echo_n "checking for $2... " >&6; } |
| 1990 | if eval \${$3+:} false; then : |
| 1991 | $as_echo_n "(cached) " >&6 |
| 1992 | else |
| 1993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1994 | /* end confdefs.h. */ |
| 1995 | $4 |
| 1996 | #include <$2> |
| 1997 | _ACEOF |
| 1998 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1999 | eval "$3=yes" |
| 2000 | else |
| 2001 | eval "$3=no" |
| 2002 | fi |
| 2003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2004 | fi |
| 2005 | eval ac_res=\$$3 |
| 2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2007 | $as_echo "$ac_res" >&6; } |
| 2008 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2009 | |
| 2010 | } # ac_fn_c_check_header_compile |
| 2011 | |
| 2012 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2013 | # ---------------------------------- |
| 2014 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2015 | ac_fn_c_check_func () |
| 2016 | { |
| 2017 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2019 | $as_echo_n "checking for $2... " >&6; } |
| 2020 | if eval \${$3+:} false; then : |
| 2021 | $as_echo_n "(cached) " >&6 |
| 2022 | else |
| 2023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2024 | /* end confdefs.h. */ |
| 2025 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2027 | #define $2 innocuous_$2 |
| 2028 | |
| 2029 | /* System header to define __stub macros and hopefully few prototypes, |
| 2030 | which can conflict with char $2 (); below. |
| 2031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2032 | <limits.h> exists even on freestanding compilers. */ |
| 2033 | |
| 2034 | #ifdef __STDC__ |
| 2035 | # include <limits.h> |
| 2036 | #else |
| 2037 | # include <assert.h> |
| 2038 | #endif |
| 2039 | |
| 2040 | #undef $2 |
| 2041 | |
| 2042 | /* Override any GCC internal prototype to avoid an error. |
| 2043 | Use char because int might match the return type of a GCC |
| 2044 | builtin and then its argument prototype would still apply. */ |
| 2045 | #ifdef __cplusplus |
| 2046 | extern "C" |
| 2047 | #endif |
| 2048 | char $2 (); |
| 2049 | /* The GNU C library defines this for functions which it implements |
| 2050 | to always fail with ENOSYS. Some functions are actually named |
| 2051 | something starting with __ and the normal name is an alias. */ |
| 2052 | #if defined __stub_$2 || defined __stub___$2 |
| 2053 | choke me |
| 2054 | #endif |
| 2055 | |
| 2056 | int |
| 2057 | main () |
| 2058 | { |
| 2059 | return $2 (); |
| 2060 | ; |
| 2061 | return 0; |
| 2062 | } |
| 2063 | _ACEOF |
| 2064 | if ac_fn_c_try_link "$LINENO"; then : |
| 2065 | eval "$3=yes" |
| 2066 | else |
| 2067 | eval "$3=no" |
| 2068 | fi |
| 2069 | rm -f core conftest.err conftest.$ac_objext \ |
| 2070 | conftest$ac_exeext conftest.$ac_ext |
| 2071 | fi |
| 2072 | eval ac_res=\$$3 |
| 2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2074 | $as_echo "$ac_res" >&6; } |
| 2075 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2076 | |
| 2077 | } # ac_fn_c_check_func |
| 2078 | |
| 2079 | # ac_fn_cxx_check_func LINENO FUNC VAR |
| 2080 | # ------------------------------------ |
| 2081 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2082 | ac_fn_cxx_check_func () |
| 2083 | { |
| 2084 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2086 | $as_echo_n "checking for $2... " >&6; } |
| 2087 | if eval \${$3+:} false; then : |
| 2088 | $as_echo_n "(cached) " >&6 |
| 2089 | else |
| 2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2091 | /* end confdefs.h. */ |
| 2092 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2094 | #define $2 innocuous_$2 |
| 2095 | |
| 2096 | /* System header to define __stub macros and hopefully few prototypes, |
| 2097 | which can conflict with char $2 (); below. |
| 2098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2099 | <limits.h> exists even on freestanding compilers. */ |
| 2100 | |
| 2101 | #ifdef __STDC__ |
| 2102 | # include <limits.h> |
| 2103 | #else |
| 2104 | # include <assert.h> |
| 2105 | #endif |
| 2106 | |
| 2107 | #undef $2 |
| 2108 | |
| 2109 | /* Override any GCC internal prototype to avoid an error. |
| 2110 | Use char because int might match the return type of a GCC |
| 2111 | builtin and then its argument prototype would still apply. */ |
| 2112 | #ifdef __cplusplus |
| 2113 | extern "C" |
| 2114 | #endif |
| 2115 | char $2 (); |
| 2116 | /* The GNU C library defines this for functions which it implements |
| 2117 | to always fail with ENOSYS. Some functions are actually named |
| 2118 | something starting with __ and the normal name is an alias. */ |
| 2119 | #if defined __stub_$2 || defined __stub___$2 |
| 2120 | choke me |
| 2121 | #endif |
| 2122 | |
| 2123 | int |
| 2124 | main () |
| 2125 | { |
| 2126 | return $2 (); |
| 2127 | ; |
| 2128 | return 0; |
| 2129 | } |
| 2130 | _ACEOF |
| 2131 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 2132 | eval "$3=yes" |
| 2133 | else |
| 2134 | eval "$3=no" |
| 2135 | fi |
| 2136 | rm -f core conftest.err conftest.$ac_objext \ |
| 2137 | conftest$ac_exeext conftest.$ac_ext |
| 2138 | fi |
| 2139 | eval ac_res=\$$3 |
| 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2141 | $as_echo "$ac_res" >&6; } |
| 2142 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2143 | |
| 2144 | } # ac_fn_cxx_check_func |
| 2145 | cat >config.log <<_ACEOF |
| 2146 | This file contains any messages produced by compilers while |
| 2147 | running configure, to aid debugging if configure makes a mistake. |
| 2148 | |
| 2149 | It was created by $as_me, which was |
| 2150 | generated by GNU Autoconf 2.68. Invocation command line was |
| 2151 | |
| 2152 | $ $0 $@ |
| 2153 | |
| 2154 | _ACEOF |
| 2155 | exec 5>>config.log |
| 2156 | { |
| 2157 | cat <<_ASUNAME |
| 2158 | ## --------- ## |
| 2159 | ## Platform. ## |
| 2160 | ## --------- ## |
| 2161 | |
| 2162 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2163 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2164 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2165 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2166 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2167 | |
| 2168 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2169 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2170 | |
| 2171 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2172 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2173 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2174 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2175 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2176 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2177 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2178 | |
| 2179 | _ASUNAME |
| 2180 | |
| 2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2182 | for as_dir in $PATH |
| 2183 | do |
| 2184 | IFS=$as_save_IFS |
| 2185 | test -z "$as_dir" && as_dir=. |
| 2186 | $as_echo "PATH: $as_dir" |
| 2187 | done |
| 2188 | IFS=$as_save_IFS |
| 2189 | |
| 2190 | } >&5 |
| 2191 | |
| 2192 | cat >&5 <<_ACEOF |
| 2193 | |
| 2194 | |
| 2195 | ## ----------- ## |
| 2196 | ## Core tests. ## |
| 2197 | ## ----------- ## |
| 2198 | |
| 2199 | _ACEOF |
| 2200 | |
| 2201 | |
| 2202 | # Keep a trace of the command line. |
| 2203 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2204 | # Strip out --silent because we don't want to record it for future runs. |
| 2205 | # Also quote any args containing shell meta-characters. |
| 2206 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2207 | ac_configure_args= |
| 2208 | ac_configure_args0= |
| 2209 | ac_configure_args1= |
| 2210 | ac_must_keep_next=false |
| 2211 | for ac_pass in 1 2 |
| 2212 | do |
| 2213 | for ac_arg |
| 2214 | do |
| 2215 | case $ac_arg in |
| 2216 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2217 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2218 | | -silent | --silent | --silen | --sile | --sil) |
| 2219 | continue ;; |
| 2220 | *\'*) |
| 2221 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2222 | esac |
| 2223 | case $ac_pass in |
| 2224 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2225 | 2) |
| 2226 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2227 | if test $ac_must_keep_next = true; then |
| 2228 | ac_must_keep_next=false # Got value, back to normal. |
| 2229 | else |
| 2230 | case $ac_arg in |
| 2231 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2232 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2233 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2234 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2235 | case "$ac_configure_args0 " in |
| 2236 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2237 | esac |
| 2238 | ;; |
| 2239 | -* ) ac_must_keep_next=true ;; |
| 2240 | esac |
| 2241 | fi |
| 2242 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2243 | ;; |
| 2244 | esac |
| 2245 | done |
| 2246 | done |
| 2247 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2248 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2249 | |
| 2250 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2251 | # config.log. We remove comments because anyway the quotes in there |
| 2252 | # would cause problems or look ugly. |
| 2253 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2254 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2255 | trap 'exit_status=$? |
| 2256 | # Save into config.log some information that might help in debugging. |
| 2257 | { |
| 2258 | echo |
| 2259 | |
| 2260 | $as_echo "## ---------------- ## |
| 2261 | ## Cache variables. ## |
| 2262 | ## ---------------- ##" |
| 2263 | echo |
| 2264 | # The following way of writing the cache mishandles newlines in values, |
| 2265 | ( |
| 2266 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2267 | eval ac_val=\$$ac_var |
| 2268 | case $ac_val in #( |
| 2269 | *${as_nl}*) |
| 2270 | case $ac_var in #( |
| 2271 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2272 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2273 | esac |
| 2274 | case $ac_var in #( |
| 2275 | _ | IFS | as_nl) ;; #( |
| 2276 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2277 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2278 | esac ;; |
| 2279 | esac |
| 2280 | done |
| 2281 | (set) 2>&1 | |
| 2282 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2283 | *${as_nl}ac_space=\ *) |
| 2284 | sed -n \ |
| 2285 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2286 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2287 | ;; #( |
| 2288 | *) |
| 2289 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2290 | ;; |
| 2291 | esac | |
| 2292 | sort |
| 2293 | ) |
| 2294 | echo |
| 2295 | |
| 2296 | $as_echo "## ----------------- ## |
| 2297 | ## Output variables. ## |
| 2298 | ## ----------------- ##" |
| 2299 | echo |
| 2300 | for ac_var in $ac_subst_vars |
| 2301 | do |
| 2302 | eval ac_val=\$$ac_var |
| 2303 | case $ac_val in |
| 2304 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2305 | esac |
| 2306 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2307 | done | sort |
| 2308 | echo |
| 2309 | |
| 2310 | if test -n "$ac_subst_files"; then |
| 2311 | $as_echo "## ------------------- ## |
| 2312 | ## File substitutions. ## |
| 2313 | ## ------------------- ##" |
| 2314 | echo |
| 2315 | for ac_var in $ac_subst_files |
| 2316 | do |
| 2317 | eval ac_val=\$$ac_var |
| 2318 | case $ac_val in |
| 2319 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2320 | esac |
| 2321 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2322 | done | sort |
| 2323 | echo |
| 2324 | fi |
| 2325 | |
| 2326 | if test -s confdefs.h; then |
| 2327 | $as_echo "## ----------- ## |
| 2328 | ## confdefs.h. ## |
| 2329 | ## ----------- ##" |
| 2330 | echo |
| 2331 | cat confdefs.h |
| 2332 | echo |
| 2333 | fi |
| 2334 | test "$ac_signal" != 0 && |
| 2335 | $as_echo "$as_me: caught signal $ac_signal" |
| 2336 | $as_echo "$as_me: exit $exit_status" |
| 2337 | } >&5 |
| 2338 | rm -f core *.core core.conftest.* && |
| 2339 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2340 | exit $exit_status |
| 2341 | ' 0 |
| 2342 | for ac_signal in 1 2 13 15; do |
| 2343 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2344 | done |
| 2345 | ac_signal=0 |
| 2346 | |
| 2347 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2348 | rm -f -r conftest* confdefs.h |
| 2349 | |
| 2350 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2351 | |
| 2352 | # Predefined preprocessor variables. |
| 2353 | |
| 2354 | cat >>confdefs.h <<_ACEOF |
| 2355 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2356 | _ACEOF |
| 2357 | |
| 2358 | cat >>confdefs.h <<_ACEOF |
| 2359 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2360 | _ACEOF |
| 2361 | |
| 2362 | cat >>confdefs.h <<_ACEOF |
| 2363 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2364 | _ACEOF |
| 2365 | |
| 2366 | cat >>confdefs.h <<_ACEOF |
| 2367 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2368 | _ACEOF |
| 2369 | |
| 2370 | cat >>confdefs.h <<_ACEOF |
| 2371 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2372 | _ACEOF |
| 2373 | |
| 2374 | cat >>confdefs.h <<_ACEOF |
| 2375 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2376 | _ACEOF |
| 2377 | |
| 2378 | |
| 2379 | # Let the site file select an alternate cache file if it wants to. |
| 2380 | # Prefer an explicitly selected file to automatically selected ones. |
| 2381 | ac_site_file1=NONE |
| 2382 | ac_site_file2=NONE |
| 2383 | if test -n "$CONFIG_SITE"; then |
| 2384 | # We do not want a PATH search for config.site. |
| 2385 | case $CONFIG_SITE in #(( |
| 2386 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2387 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2388 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2389 | esac |
| 2390 | elif test "x$prefix" != xNONE; then |
| 2391 | ac_site_file1=$prefix/share/config.site |
| 2392 | ac_site_file2=$prefix/etc/config.site |
| 2393 | else |
| 2394 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2395 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2396 | fi |
| 2397 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2398 | do |
| 2399 | test "x$ac_site_file" = xNONE && continue |
| 2400 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2402 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2403 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2404 | . "$ac_site_file" \ |
| 2405 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2407 | as_fn_error $? "failed to load site script $ac_site_file |
| 2408 | See \`config.log' for more details" "$LINENO" 5; } |
| 2409 | fi |
| 2410 | done |
| 2411 | |
| 2412 | if test -r "$cache_file"; then |
| 2413 | # Some versions of bash will fail to source /dev/null (special files |
| 2414 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2415 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2417 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2418 | case $cache_file in |
| 2419 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2420 | *) . "./$cache_file";; |
| 2421 | esac |
| 2422 | fi |
| 2423 | else |
| 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2425 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2426 | >$cache_file |
| 2427 | fi |
| 2428 | |
| 2429 | # Check that the precious variables saved in the cache have kept the same |
| 2430 | # value. |
| 2431 | ac_cache_corrupted=false |
| 2432 | for ac_var in $ac_precious_vars; do |
| 2433 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2434 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2435 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2436 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2437 | case $ac_old_set,$ac_new_set in |
| 2438 | set,) |
| 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2440 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2441 | ac_cache_corrupted=: ;; |
| 2442 | ,set) |
| 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2444 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2445 | ac_cache_corrupted=: ;; |
| 2446 | ,);; |
| 2447 | *) |
| 2448 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2449 | # differences in whitespace do not lead to failure. |
| 2450 | ac_old_val_w=`echo x $ac_old_val` |
| 2451 | ac_new_val_w=`echo x $ac_new_val` |
| 2452 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2454 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2455 | ac_cache_corrupted=: |
| 2456 | else |
| 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2458 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2459 | eval $ac_var=\$ac_old_val |
| 2460 | fi |
| 2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2462 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2464 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2465 | fi;; |
| 2466 | esac |
| 2467 | # Pass precious variables to config.status. |
| 2468 | if test "$ac_new_set" = set; then |
| 2469 | case $ac_new_val in |
| 2470 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2471 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2472 | esac |
| 2473 | case " $ac_configure_args " in |
| 2474 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2475 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2476 | esac |
| 2477 | fi |
| 2478 | done |
| 2479 | if $ac_cache_corrupted; then |
| 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2483 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2484 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2485 | fi |
| 2486 | ## -------------------- ## |
| 2487 | ## Main body of script. ## |
| 2488 | ## -------------------- ## |
| 2489 | |
| 2490 | ac_ext=c |
| 2491 | ac_cpp='$CPP $CPPFLAGS' |
| 2492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2495 | |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | |
| 2500 | VERSION="1.8.1" |
| 2501 | LT_RELEASE="1.8" |
| 2502 | LT_VERSION="0:1" |
| 2503 | |
| 2504 | ac_ext=cpp |
| 2505 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2509 | |
| 2510 | |
| 2511 | # lsb build option |
| 2512 | |
| 2513 | ccincludedir="" |
| 2514 | ost_cv_thread_library="none" |
| 2515 | |
| 2516 | COMMON_FLAGS="-D_GNU_SOURCE" |
| 2517 | |
| 2518 | |
| 2519 | # Check whether --with-lsb was given. |
| 2520 | if test "${with_lsb+set}" = set; then : |
| 2521 | withval=$with_lsb; |
| 2522 | if test ! -d "$prefix" ; then |
| 2523 | prefix="/opt/$withval" ; fi |
| 2524 | if test ! -d "$sysconfdir" ; then |
| 2525 | sysconfdir="/etc$prefix" ; fi |
| 2526 | if test ! -d "$localstatedir" ; then |
| 2527 | localstatedir="/var$prefix" ; fi |
| 2528 | |
| 2529 | CC=/opt/lsbdev-cc/bin/lsbcc |
| 2530 | |
| 2531 | CXX=/opt/lsbdev-cc/bin/lsbc++ |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | fi |
| 2537 | |
| 2538 | |
| 2539 | case "$prefix" in |
| 2540 | /opt/*) |
| 2541 | if test "$datadir" == '${prefix}/share' ; then |
| 2542 | if test "$mandir" == '${datadir}/man' ; then |
| 2543 | mandir='${prefix}/man' ; fi |
| 2544 | if test "$infodir" == '${datadir}/info' ; then |
| 2545 | infodir='${prefix}/info' ; fi |
| 2546 | datadir='${prefix}' |
| 2547 | fi |
| 2548 | if test "$sysconfdir" == '${prefix}/etc' ; then |
| 2549 | sysconfdir=/etc${prefix} ; fi |
| 2550 | if test "$localstatedir" == '${prefix}/var' ; then |
| 2551 | localstatedir=/var${prefix} ; fi |
| 2552 | if test "$includedir" == '${prefix}/include' ; then |
| 2553 | ccincludedir="$includedir" ; fi |
| 2554 | |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | ;; |
| 2561 | esac |
| 2562 | |
| 2563 | if test -z "$ccincludedir" ; then |
| 2564 | case "$includedir" in |
| 2565 | */lib/*) |
| 2566 | ccincludedir='${includedir}' |
| 2567 | ;; |
| 2568 | *) |
| 2569 | ccincludedir='${includedir}/cc++2' |
| 2570 | ;; |
| 2571 | esac |
| 2572 | fi |
| 2573 | |
| 2574 | |
| 2575 | |
| 2576 | ac_aux_dir= |
| 2577 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2578 | if test -f "$ac_dir/install-sh"; then |
| 2579 | ac_aux_dir=$ac_dir |
| 2580 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2581 | break |
| 2582 | elif test -f "$ac_dir/install.sh"; then |
| 2583 | ac_aux_dir=$ac_dir |
| 2584 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2585 | break |
| 2586 | elif test -f "$ac_dir/shtool"; then |
| 2587 | ac_aux_dir=$ac_dir |
| 2588 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2589 | break |
| 2590 | fi |
| 2591 | done |
| 2592 | if test -z "$ac_aux_dir"; then |
| 2593 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 |
| 2594 | fi |
| 2595 | |
| 2596 | # These three variables are undocumented and unsupported, |
| 2597 | # and are intended to be withdrawn in a future Autoconf release. |
| 2598 | # They can cause serious problems if a builder's source tree is in a directory |
| 2599 | # whose full name contains unusual characters. |
| 2600 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2601 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2602 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2603 | |
| 2604 | |
| 2605 | # Make sure we can run config.sub. |
| 2606 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2607 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2608 | |
| 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2610 | $as_echo_n "checking build system type... " >&6; } |
| 2611 | if ${ac_cv_build+:} false; then : |
| 2612 | $as_echo_n "(cached) " >&6 |
| 2613 | else |
| 2614 | ac_build_alias=$build_alias |
| 2615 | test "x$ac_build_alias" = x && |
| 2616 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2617 | test "x$ac_build_alias" = x && |
| 2618 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2619 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2620 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2621 | |
| 2622 | fi |
| 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2624 | $as_echo "$ac_cv_build" >&6; } |
| 2625 | case $ac_cv_build in |
| 2626 | *-*-*) ;; |
| 2627 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2628 | esac |
| 2629 | build=$ac_cv_build |
| 2630 | ac_save_IFS=$IFS; IFS='-' |
| 2631 | set x $ac_cv_build |
| 2632 | shift |
| 2633 | build_cpu=$1 |
| 2634 | build_vendor=$2 |
| 2635 | shift; shift |
| 2636 | # Remember, the first character of IFS is used to create $*, |
| 2637 | # except with old shells: |
| 2638 | build_os=$* |
| 2639 | IFS=$ac_save_IFS |
| 2640 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2641 | |
| 2642 | |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2644 | $as_echo_n "checking host system type... " >&6; } |
| 2645 | if ${ac_cv_host+:} false; then : |
| 2646 | $as_echo_n "(cached) " >&6 |
| 2647 | else |
| 2648 | if test "x$host_alias" = x; then |
| 2649 | ac_cv_host=$ac_cv_build |
| 2650 | else |
| 2651 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2652 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2653 | fi |
| 2654 | |
| 2655 | fi |
| 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2657 | $as_echo "$ac_cv_host" >&6; } |
| 2658 | case $ac_cv_host in |
| 2659 | *-*-*) ;; |
| 2660 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2661 | esac |
| 2662 | host=$ac_cv_host |
| 2663 | ac_save_IFS=$IFS; IFS='-' |
| 2664 | set x $ac_cv_host |
| 2665 | shift |
| 2666 | host_cpu=$1 |
| 2667 | host_vendor=$2 |
| 2668 | shift; shift |
| 2669 | # Remember, the first character of IFS is used to create $*, |
| 2670 | # except with old shells: |
| 2671 | host_os=$* |
| 2672 | IFS=$ac_save_IFS |
| 2673 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2674 | |
| 2675 | |
| 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2677 | $as_echo_n "checking target system type... " >&6; } |
| 2678 | if ${ac_cv_target+:} false; then : |
| 2679 | $as_echo_n "(cached) " >&6 |
| 2680 | else |
| 2681 | if test "x$target_alias" = x; then |
| 2682 | ac_cv_target=$ac_cv_host |
| 2683 | else |
| 2684 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2685 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 2686 | fi |
| 2687 | |
| 2688 | fi |
| 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2690 | $as_echo "$ac_cv_target" >&6; } |
| 2691 | case $ac_cv_target in |
| 2692 | *-*-*) ;; |
| 2693 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 2694 | esac |
| 2695 | target=$ac_cv_target |
| 2696 | ac_save_IFS=$IFS; IFS='-' |
| 2697 | set x $ac_cv_target |
| 2698 | shift |
| 2699 | target_cpu=$1 |
| 2700 | target_vendor=$2 |
| 2701 | shift; shift |
| 2702 | # Remember, the first character of IFS is used to create $*, |
| 2703 | # except with old shells: |
| 2704 | target_os=$* |
| 2705 | IFS=$ac_save_IFS |
| 2706 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 2707 | |
| 2708 | |
| 2709 | # The aliases save the names the user supplied, while $host etc. |
| 2710 | # will get canonicalized. |
| 2711 | test -n "$target_alias" && |
| 2712 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2713 | NONENONEs,x,x, && |
| 2714 | program_prefix=${target_alias}- |
| 2715 | |
| 2716 | ac_ext=c |
| 2717 | ac_cpp='$CPP $CPPFLAGS' |
| 2718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2721 | if test -n "$ac_tool_prefix"; then |
| 2722 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2723 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2725 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2726 | if ${ac_cv_prog_CC+:} false; then : |
| 2727 | $as_echo_n "(cached) " >&6 |
| 2728 | else |
| 2729 | if test -n "$CC"; then |
| 2730 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2731 | else |
| 2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2733 | for as_dir in $PATH |
| 2734 | do |
| 2735 | IFS=$as_save_IFS |
| 2736 | test -z "$as_dir" && as_dir=. |
| 2737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2739 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2741 | break 2 |
| 2742 | fi |
| 2743 | done |
| 2744 | done |
| 2745 | IFS=$as_save_IFS |
| 2746 | |
| 2747 | fi |
| 2748 | fi |
| 2749 | CC=$ac_cv_prog_CC |
| 2750 | if test -n "$CC"; then |
| 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2752 | $as_echo "$CC" >&6; } |
| 2753 | else |
| 2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2755 | $as_echo "no" >&6; } |
| 2756 | fi |
| 2757 | |
| 2758 | |
| 2759 | fi |
| 2760 | if test -z "$ac_cv_prog_CC"; then |
| 2761 | ac_ct_CC=$CC |
| 2762 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2763 | set dummy gcc; ac_word=$2 |
| 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2765 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2766 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2767 | $as_echo_n "(cached) " >&6 |
| 2768 | else |
| 2769 | if test -n "$ac_ct_CC"; then |
| 2770 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2771 | else |
| 2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2773 | for as_dir in $PATH |
| 2774 | do |
| 2775 | IFS=$as_save_IFS |
| 2776 | test -z "$as_dir" && as_dir=. |
| 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2779 | ac_cv_prog_ac_ct_CC="gcc" |
| 2780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2781 | break 2 |
| 2782 | fi |
| 2783 | done |
| 2784 | done |
| 2785 | IFS=$as_save_IFS |
| 2786 | |
| 2787 | fi |
| 2788 | fi |
| 2789 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2790 | if test -n "$ac_ct_CC"; then |
| 2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2792 | $as_echo "$ac_ct_CC" >&6; } |
| 2793 | else |
| 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2795 | $as_echo "no" >&6; } |
| 2796 | fi |
| 2797 | |
| 2798 | if test "x$ac_ct_CC" = x; then |
| 2799 | CC="" |
| 2800 | else |
| 2801 | case $cross_compiling:$ac_tool_warned in |
| 2802 | yes:) |
| 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2805 | ac_tool_warned=yes ;; |
| 2806 | esac |
| 2807 | CC=$ac_ct_CC |
| 2808 | fi |
| 2809 | else |
| 2810 | CC="$ac_cv_prog_CC" |
| 2811 | fi |
| 2812 | |
| 2813 | if test -z "$CC"; then |
| 2814 | if test -n "$ac_tool_prefix"; then |
| 2815 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2816 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2818 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2819 | if ${ac_cv_prog_CC+:} false; then : |
| 2820 | $as_echo_n "(cached) " >&6 |
| 2821 | else |
| 2822 | if test -n "$CC"; then |
| 2823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2824 | else |
| 2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2826 | for as_dir in $PATH |
| 2827 | do |
| 2828 | IFS=$as_save_IFS |
| 2829 | test -z "$as_dir" && as_dir=. |
| 2830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2832 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2834 | break 2 |
| 2835 | fi |
| 2836 | done |
| 2837 | done |
| 2838 | IFS=$as_save_IFS |
| 2839 | |
| 2840 | fi |
| 2841 | fi |
| 2842 | CC=$ac_cv_prog_CC |
| 2843 | if test -n "$CC"; then |
| 2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2845 | $as_echo "$CC" >&6; } |
| 2846 | else |
| 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2848 | $as_echo "no" >&6; } |
| 2849 | fi |
| 2850 | |
| 2851 | |
| 2852 | fi |
| 2853 | fi |
| 2854 | if test -z "$CC"; then |
| 2855 | # Extract the first word of "cc", so it can be a program name with args. |
| 2856 | set dummy cc; ac_word=$2 |
| 2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2858 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2859 | if ${ac_cv_prog_CC+:} false; then : |
| 2860 | $as_echo_n "(cached) " >&6 |
| 2861 | else |
| 2862 | if test -n "$CC"; then |
| 2863 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2864 | else |
| 2865 | ac_prog_rejected=no |
| 2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2867 | for as_dir in $PATH |
| 2868 | do |
| 2869 | IFS=$as_save_IFS |
| 2870 | test -z "$as_dir" && as_dir=. |
| 2871 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2873 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2874 | ac_prog_rejected=yes |
| 2875 | continue |
| 2876 | fi |
| 2877 | ac_cv_prog_CC="cc" |
| 2878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2879 | break 2 |
| 2880 | fi |
| 2881 | done |
| 2882 | done |
| 2883 | IFS=$as_save_IFS |
| 2884 | |
| 2885 | if test $ac_prog_rejected = yes; then |
| 2886 | # We found a bogon in the path, so make sure we never use it. |
| 2887 | set dummy $ac_cv_prog_CC |
| 2888 | shift |
| 2889 | if test $# != 0; then |
| 2890 | # We chose a different compiler from the bogus one. |
| 2891 | # However, it has the same basename, so the bogon will be chosen |
| 2892 | # first if we set CC to just the basename; use the full file name. |
| 2893 | shift |
| 2894 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2895 | fi |
| 2896 | fi |
| 2897 | fi |
| 2898 | fi |
| 2899 | CC=$ac_cv_prog_CC |
| 2900 | if test -n "$CC"; then |
| 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2902 | $as_echo "$CC" >&6; } |
| 2903 | else |
| 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2905 | $as_echo "no" >&6; } |
| 2906 | fi |
| 2907 | |
| 2908 | |
| 2909 | fi |
| 2910 | if test -z "$CC"; then |
| 2911 | if test -n "$ac_tool_prefix"; then |
| 2912 | for ac_prog in cl.exe |
| 2913 | do |
| 2914 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2915 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2917 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2918 | if ${ac_cv_prog_CC+:} false; then : |
| 2919 | $as_echo_n "(cached) " >&6 |
| 2920 | else |
| 2921 | if test -n "$CC"; then |
| 2922 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2923 | else |
| 2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2925 | for as_dir in $PATH |
| 2926 | do |
| 2927 | IFS=$as_save_IFS |
| 2928 | test -z "$as_dir" && as_dir=. |
| 2929 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2931 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2933 | break 2 |
| 2934 | fi |
| 2935 | done |
| 2936 | done |
| 2937 | IFS=$as_save_IFS |
| 2938 | |
| 2939 | fi |
| 2940 | fi |
| 2941 | CC=$ac_cv_prog_CC |
| 2942 | if test -n "$CC"; then |
| 2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2944 | $as_echo "$CC" >&6; } |
| 2945 | else |
| 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2947 | $as_echo "no" >&6; } |
| 2948 | fi |
| 2949 | |
| 2950 | |
| 2951 | test -n "$CC" && break |
| 2952 | done |
| 2953 | fi |
| 2954 | if test -z "$CC"; then |
| 2955 | ac_ct_CC=$CC |
| 2956 | for ac_prog in cl.exe |
| 2957 | do |
| 2958 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2959 | set dummy $ac_prog; ac_word=$2 |
| 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2961 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2962 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2963 | $as_echo_n "(cached) " >&6 |
| 2964 | else |
| 2965 | if test -n "$ac_ct_CC"; then |
| 2966 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2967 | else |
| 2968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2969 | for as_dir in $PATH |
| 2970 | do |
| 2971 | IFS=$as_save_IFS |
| 2972 | test -z "$as_dir" && as_dir=. |
| 2973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2975 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2977 | break 2 |
| 2978 | fi |
| 2979 | done |
| 2980 | done |
| 2981 | IFS=$as_save_IFS |
| 2982 | |
| 2983 | fi |
| 2984 | fi |
| 2985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2986 | if test -n "$ac_ct_CC"; then |
| 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2988 | $as_echo "$ac_ct_CC" >&6; } |
| 2989 | else |
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2991 | $as_echo "no" >&6; } |
| 2992 | fi |
| 2993 | |
| 2994 | |
| 2995 | test -n "$ac_ct_CC" && break |
| 2996 | done |
| 2997 | |
| 2998 | if test "x$ac_ct_CC" = x; then |
| 2999 | CC="" |
| 3000 | else |
| 3001 | case $cross_compiling:$ac_tool_warned in |
| 3002 | yes:) |
| 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3005 | ac_tool_warned=yes ;; |
| 3006 | esac |
| 3007 | CC=$ac_ct_CC |
| 3008 | fi |
| 3009 | fi |
| 3010 | |
| 3011 | fi |
| 3012 | |
| 3013 | |
| 3014 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3016 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3017 | See \`config.log' for more details" "$LINENO" 5; } |
| 3018 | |
| 3019 | # Provide some information about the compiler. |
| 3020 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3021 | set X $ac_compile |
| 3022 | ac_compiler=$2 |
| 3023 | for ac_option in --version -v -V -qversion; do |
| 3024 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3025 | case "(($ac_try" in |
| 3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3027 | *) ac_try_echo=$ac_try;; |
| 3028 | esac |
| 3029 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3030 | $as_echo "$ac_try_echo"; } >&5 |
| 3031 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3032 | ac_status=$? |
| 3033 | if test -s conftest.err; then |
| 3034 | sed '10a\ |
| 3035 | ... rest of stderr output deleted ... |
| 3036 | 10q' conftest.err >conftest.er1 |
| 3037 | cat conftest.er1 >&5 |
| 3038 | fi |
| 3039 | rm -f conftest.er1 conftest.err |
| 3040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3041 | test $ac_status = 0; } |
| 3042 | done |
| 3043 | |
| 3044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3045 | /* end confdefs.h. */ |
| 3046 | |
| 3047 | int |
| 3048 | main () |
| 3049 | { |
| 3050 | |
| 3051 | ; |
| 3052 | return 0; |
| 3053 | } |
| 3054 | _ACEOF |
| 3055 | ac_clean_files_save=$ac_clean_files |
| 3056 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3057 | # Try to create an executable without -o first, disregard a.out. |
| 3058 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3059 | # of exeext. |
| 3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3061 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3062 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3063 | |
| 3064 | # The possible output files: |
| 3065 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3066 | |
| 3067 | ac_rmfiles= |
| 3068 | for ac_file in $ac_files |
| 3069 | do |
| 3070 | case $ac_file in |
| 3071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3072 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3073 | esac |
| 3074 | done |
| 3075 | rm -f $ac_rmfiles |
| 3076 | |
| 3077 | if { { ac_try="$ac_link_default" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
| 3082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3083 | $as_echo "$ac_try_echo"; } >&5 |
| 3084 | (eval "$ac_link_default") 2>&5 |
| 3085 | ac_status=$? |
| 3086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3087 | test $ac_status = 0; }; then : |
| 3088 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3089 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3090 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3091 | # so that the user can short-circuit this test for compilers unknown to |
| 3092 | # Autoconf. |
| 3093 | for ac_file in $ac_files '' |
| 3094 | do |
| 3095 | test -f "$ac_file" || continue |
| 3096 | case $ac_file in |
| 3097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3098 | ;; |
| 3099 | [ab].out ) |
| 3100 | # We found the default executable, but exeext='' is most |
| 3101 | # certainly right. |
| 3102 | break;; |
| 3103 | *.* ) |
| 3104 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3105 | then :; else |
| 3106 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3107 | fi |
| 3108 | # We set ac_cv_exeext here because the later test for it is not |
| 3109 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3110 | # argument, so we may need to know it at that point already. |
| 3111 | # Even if this section looks crufty: it has the advantage of |
| 3112 | # actually working. |
| 3113 | break;; |
| 3114 | * ) |
| 3115 | break;; |
| 3116 | esac |
| 3117 | done |
| 3118 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3119 | |
| 3120 | else |
| 3121 | ac_file='' |
| 3122 | fi |
| 3123 | if test -z "$ac_file"; then : |
| 3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3125 | $as_echo "no" >&6; } |
| 3126 | $as_echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3131 | as_fn_error 77 "C compiler cannot create executables |
| 3132 | See \`config.log' for more details" "$LINENO" 5; } |
| 3133 | else |
| 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3135 | $as_echo "yes" >&6; } |
| 3136 | fi |
| 3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3138 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3140 | $as_echo "$ac_file" >&6; } |
| 3141 | ac_exeext=$ac_cv_exeext |
| 3142 | |
| 3143 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3144 | ac_clean_files=$ac_clean_files_save |
| 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3146 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3147 | if { { ac_try="$ac_link" |
| 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3153 | $as_echo "$ac_try_echo"; } >&5 |
| 3154 | (eval "$ac_link") 2>&5 |
| 3155 | ac_status=$? |
| 3156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3157 | test $ac_status = 0; }; then : |
| 3158 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3159 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3160 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3161 | # `rm'. |
| 3162 | for ac_file in conftest.exe conftest conftest.*; do |
| 3163 | test -f "$ac_file" || continue |
| 3164 | case $ac_file in |
| 3165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3166 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3167 | break;; |
| 3168 | * ) break;; |
| 3169 | esac |
| 3170 | done |
| 3171 | else |
| 3172 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3173 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3174 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3175 | See \`config.log' for more details" "$LINENO" 5; } |
| 3176 | fi |
| 3177 | rm -f conftest conftest$ac_cv_exeext |
| 3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3179 | $as_echo "$ac_cv_exeext" >&6; } |
| 3180 | |
| 3181 | rm -f conftest.$ac_ext |
| 3182 | EXEEXT=$ac_cv_exeext |
| 3183 | ac_exeext=$EXEEXT |
| 3184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3185 | /* end confdefs.h. */ |
| 3186 | #include <stdio.h> |
| 3187 | int |
| 3188 | main () |
| 3189 | { |
| 3190 | FILE *f = fopen ("conftest.out", "w"); |
| 3191 | return ferror (f) || fclose (f) != 0; |
| 3192 | |
| 3193 | ; |
| 3194 | return 0; |
| 3195 | } |
| 3196 | _ACEOF |
| 3197 | ac_clean_files="$ac_clean_files conftest.out" |
| 3198 | # Check that the compiler produces executables we can run. If not, either |
| 3199 | # the compiler is broken, or we cross compile. |
| 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3201 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3202 | if test "$cross_compiling" != yes; then |
| 3203 | { { ac_try="$ac_link" |
| 3204 | case "(($ac_try" in |
| 3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3206 | *) ac_try_echo=$ac_try;; |
| 3207 | esac |
| 3208 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3209 | $as_echo "$ac_try_echo"; } >&5 |
| 3210 | (eval "$ac_link") 2>&5 |
| 3211 | ac_status=$? |
| 3212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3213 | test $ac_status = 0; } |
| 3214 | if { ac_try='./conftest$ac_cv_exeext' |
| 3215 | { { case "(($ac_try" in |
| 3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3217 | *) ac_try_echo=$ac_try;; |
| 3218 | esac |
| 3219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3220 | $as_echo "$ac_try_echo"; } >&5 |
| 3221 | (eval "$ac_try") 2>&5 |
| 3222 | ac_status=$? |
| 3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3224 | test $ac_status = 0; }; }; then |
| 3225 | cross_compiling=no |
| 3226 | else |
| 3227 | if test "$cross_compiling" = maybe; then |
| 3228 | cross_compiling=yes |
| 3229 | else |
| 3230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3232 | as_fn_error $? "cannot run C compiled programs. |
| 3233 | If you meant to cross compile, use \`--host'. |
| 3234 | See \`config.log' for more details" "$LINENO" 5; } |
| 3235 | fi |
| 3236 | fi |
| 3237 | fi |
| 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3239 | $as_echo "$cross_compiling" >&6; } |
| 3240 | |
| 3241 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3242 | ac_clean_files=$ac_clean_files_save |
| 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3244 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3245 | if ${ac_cv_objext+:} false; then : |
| 3246 | $as_echo_n "(cached) " >&6 |
| 3247 | else |
| 3248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3249 | /* end confdefs.h. */ |
| 3250 | |
| 3251 | int |
| 3252 | main () |
| 3253 | { |
| 3254 | |
| 3255 | ; |
| 3256 | return 0; |
| 3257 | } |
| 3258 | _ACEOF |
| 3259 | rm -f conftest.o conftest.obj |
| 3260 | if { { ac_try="$ac_compile" |
| 3261 | case "(($ac_try" in |
| 3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3263 | *) ac_try_echo=$ac_try;; |
| 3264 | esac |
| 3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3266 | $as_echo "$ac_try_echo"; } >&5 |
| 3267 | (eval "$ac_compile") 2>&5 |
| 3268 | ac_status=$? |
| 3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3270 | test $ac_status = 0; }; then : |
| 3271 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3272 | test -f "$ac_file" || continue; |
| 3273 | case $ac_file in |
| 3274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3275 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3276 | break;; |
| 3277 | esac |
| 3278 | done |
| 3279 | else |
| 3280 | $as_echo "$as_me: failed program was:" >&5 |
| 3281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3282 | |
| 3283 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3284 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3285 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3286 | See \`config.log' for more details" "$LINENO" 5; } |
| 3287 | fi |
| 3288 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3289 | fi |
| 3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3291 | $as_echo "$ac_cv_objext" >&6; } |
| 3292 | OBJEXT=$ac_cv_objext |
| 3293 | ac_objext=$OBJEXT |
| 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3295 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3296 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3297 | $as_echo_n "(cached) " >&6 |
| 3298 | else |
| 3299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3300 | /* end confdefs.h. */ |
| 3301 | |
| 3302 | int |
| 3303 | main () |
| 3304 | { |
| 3305 | #ifndef __GNUC__ |
| 3306 | choke me |
| 3307 | #endif |
| 3308 | |
| 3309 | ; |
| 3310 | return 0; |
| 3311 | } |
| 3312 | _ACEOF |
| 3313 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3314 | ac_compiler_gnu=yes |
| 3315 | else |
| 3316 | ac_compiler_gnu=no |
| 3317 | fi |
| 3318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3319 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3320 | |
| 3321 | fi |
| 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3323 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3324 | if test $ac_compiler_gnu = yes; then |
| 3325 | GCC=yes |
| 3326 | else |
| 3327 | GCC= |
| 3328 | fi |
| 3329 | ac_test_CFLAGS=${CFLAGS+set} |
| 3330 | ac_save_CFLAGS=$CFLAGS |
| 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3332 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3333 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3334 | $as_echo_n "(cached) " >&6 |
| 3335 | else |
| 3336 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3337 | ac_c_werror_flag=yes |
| 3338 | ac_cv_prog_cc_g=no |
| 3339 | CFLAGS="-g" |
| 3340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3341 | /* end confdefs.h. */ |
| 3342 | |
| 3343 | int |
| 3344 | main () |
| 3345 | { |
| 3346 | |
| 3347 | ; |
| 3348 | return 0; |
| 3349 | } |
| 3350 | _ACEOF |
| 3351 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3352 | ac_cv_prog_cc_g=yes |
| 3353 | else |
| 3354 | CFLAGS="" |
| 3355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3356 | /* end confdefs.h. */ |
| 3357 | |
| 3358 | int |
| 3359 | main () |
| 3360 | { |
| 3361 | |
| 3362 | ; |
| 3363 | return 0; |
| 3364 | } |
| 3365 | _ACEOF |
| 3366 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3367 | |
| 3368 | else |
| 3369 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3370 | CFLAGS="-g" |
| 3371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3372 | /* end confdefs.h. */ |
| 3373 | |
| 3374 | int |
| 3375 | main () |
| 3376 | { |
| 3377 | |
| 3378 | ; |
| 3379 | return 0; |
| 3380 | } |
| 3381 | _ACEOF |
| 3382 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3383 | ac_cv_prog_cc_g=yes |
| 3384 | fi |
| 3385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3386 | fi |
| 3387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3388 | fi |
| 3389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3390 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3391 | fi |
| 3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3393 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3394 | if test "$ac_test_CFLAGS" = set; then |
| 3395 | CFLAGS=$ac_save_CFLAGS |
| 3396 | elif test $ac_cv_prog_cc_g = yes; then |
| 3397 | if test "$GCC" = yes; then |
| 3398 | CFLAGS="-g -O2" |
| 3399 | else |
| 3400 | CFLAGS="-g" |
| 3401 | fi |
| 3402 | else |
| 3403 | if test "$GCC" = yes; then |
| 3404 | CFLAGS="-O2" |
| 3405 | else |
| 3406 | CFLAGS= |
| 3407 | fi |
| 3408 | fi |
| 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3410 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3411 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3412 | $as_echo_n "(cached) " >&6 |
| 3413 | else |
| 3414 | ac_cv_prog_cc_c89=no |
| 3415 | ac_save_CC=$CC |
| 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3417 | /* end confdefs.h. */ |
| 3418 | #include <stdarg.h> |
| 3419 | #include <stdio.h> |
| 3420 | #include <sys/types.h> |
| 3421 | #include <sys/stat.h> |
| 3422 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3423 | struct buf { int x; }; |
| 3424 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3425 | static char *e (p, i) |
| 3426 | char **p; |
| 3427 | int i; |
| 3428 | { |
| 3429 | return p[i]; |
| 3430 | } |
| 3431 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3432 | { |
| 3433 | char *s; |
| 3434 | va_list v; |
| 3435 | va_start (v,p); |
| 3436 | s = g (p, va_arg (v,int)); |
| 3437 | va_end (v); |
| 3438 | return s; |
| 3439 | } |
| 3440 | |
| 3441 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3442 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3443 | These don't provoke an error unfortunately, instead are silently treated |
| 3444 | as 'x'. The following induces an error, until -std is added to get |
| 3445 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3446 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3447 | that's true only with -std. */ |
| 3448 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3449 | |
| 3450 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3451 | inside strings and character constants. */ |
| 3452 | #define FOO(x) 'x' |
| 3453 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3454 | |
| 3455 | int test (int i, double x); |
| 3456 | struct s1 {int (*f) (int a);}; |
| 3457 | struct s2 {int (*f) (double a);}; |
| 3458 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3459 | int argc; |
| 3460 | char **argv; |
| 3461 | int |
| 3462 | main () |
| 3463 | { |
| 3464 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3465 | ; |
| 3466 | return 0; |
| 3467 | } |
| 3468 | _ACEOF |
| 3469 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3470 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3471 | do |
| 3472 | CC="$ac_save_CC $ac_arg" |
| 3473 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3474 | ac_cv_prog_cc_c89=$ac_arg |
| 3475 | fi |
| 3476 | rm -f core conftest.err conftest.$ac_objext |
| 3477 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3478 | done |
| 3479 | rm -f conftest.$ac_ext |
| 3480 | CC=$ac_save_CC |
| 3481 | |
| 3482 | fi |
| 3483 | # AC_CACHE_VAL |
| 3484 | case "x$ac_cv_prog_cc_c89" in |
| 3485 | x) |
| 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3487 | $as_echo "none needed" >&6; } ;; |
| 3488 | xno) |
| 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3490 | $as_echo "unsupported" >&6; } ;; |
| 3491 | *) |
| 3492 | CC="$CC $ac_cv_prog_cc_c89" |
| 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3494 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3495 | esac |
| 3496 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3497 | |
| 3498 | fi |
| 3499 | |
| 3500 | ac_ext=cpp |
| 3501 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3502 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3503 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3504 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3505 | |
| 3506 | ac_ext=c |
| 3507 | ac_cpp='$CPP $CPPFLAGS' |
| 3508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3512 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3513 | # On Suns, sometimes $CPP names a directory. |
| 3514 | if test -n "$CPP" && test -d "$CPP"; then |
| 3515 | CPP= |
| 3516 | fi |
| 3517 | if test -z "$CPP"; then |
| 3518 | if ${ac_cv_prog_CPP+:} false; then : |
| 3519 | $as_echo_n "(cached) " >&6 |
| 3520 | else |
| 3521 | # Double quotes because CPP needs to be expanded |
| 3522 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3523 | do |
| 3524 | ac_preproc_ok=false |
| 3525 | for ac_c_preproc_warn_flag in '' yes |
| 3526 | do |
| 3527 | # Use a header file that comes with gcc, so configuring glibc |
| 3528 | # with a fresh cross-compiler works. |
| 3529 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3530 | # <limits.h> exists even on freestanding compilers. |
| 3531 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3532 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3534 | /* end confdefs.h. */ |
| 3535 | #ifdef __STDC__ |
| 3536 | # include <limits.h> |
| 3537 | #else |
| 3538 | # include <assert.h> |
| 3539 | #endif |
| 3540 | Syntax error |
| 3541 | _ACEOF |
| 3542 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3543 | |
| 3544 | else |
| 3545 | # Broken: fails on valid input. |
| 3546 | continue |
| 3547 | fi |
| 3548 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3549 | |
| 3550 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3551 | # can be detected and how. |
| 3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3553 | /* end confdefs.h. */ |
| 3554 | #include <ac_nonexistent.h> |
| 3555 | _ACEOF |
| 3556 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3557 | # Broken: success on invalid input. |
| 3558 | continue |
| 3559 | else |
| 3560 | # Passes both tests. |
| 3561 | ac_preproc_ok=: |
| 3562 | break |
| 3563 | fi |
| 3564 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3565 | |
| 3566 | done |
| 3567 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3568 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3569 | if $ac_preproc_ok; then : |
| 3570 | break |
| 3571 | fi |
| 3572 | |
| 3573 | done |
| 3574 | ac_cv_prog_CPP=$CPP |
| 3575 | |
| 3576 | fi |
| 3577 | CPP=$ac_cv_prog_CPP |
| 3578 | else |
| 3579 | ac_cv_prog_CPP=$CPP |
| 3580 | fi |
| 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3582 | $as_echo "$CPP" >&6; } |
| 3583 | ac_preproc_ok=false |
| 3584 | for ac_c_preproc_warn_flag in '' yes |
| 3585 | do |
| 3586 | # Use a header file that comes with gcc, so configuring glibc |
| 3587 | # with a fresh cross-compiler works. |
| 3588 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3589 | # <limits.h> exists even on freestanding compilers. |
| 3590 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3591 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3593 | /* end confdefs.h. */ |
| 3594 | #ifdef __STDC__ |
| 3595 | # include <limits.h> |
| 3596 | #else |
| 3597 | # include <assert.h> |
| 3598 | #endif |
| 3599 | Syntax error |
| 3600 | _ACEOF |
| 3601 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3602 | |
| 3603 | else |
| 3604 | # Broken: fails on valid input. |
| 3605 | continue |
| 3606 | fi |
| 3607 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3608 | |
| 3609 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3610 | # can be detected and how. |
| 3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3612 | /* end confdefs.h. */ |
| 3613 | #include <ac_nonexistent.h> |
| 3614 | _ACEOF |
| 3615 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3616 | # Broken: success on invalid input. |
| 3617 | continue |
| 3618 | else |
| 3619 | # Passes both tests. |
| 3620 | ac_preproc_ok=: |
| 3621 | break |
| 3622 | fi |
| 3623 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3624 | |
| 3625 | done |
| 3626 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3627 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3628 | if $ac_preproc_ok; then : |
| 3629 | |
| 3630 | else |
| 3631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3632 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3633 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3634 | See \`config.log' for more details" "$LINENO" 5; } |
| 3635 | fi |
| 3636 | |
| 3637 | ac_ext=cpp |
| 3638 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3639 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3640 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3641 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3642 | |
| 3643 | ac_ext=c |
| 3644 | ac_cpp='$CPP $CPPFLAGS' |
| 3645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3648 | if test -n "$ac_tool_prefix"; then |
| 3649 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3650 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3652 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3653 | if ${ac_cv_prog_CC+:} false; then : |
| 3654 | $as_echo_n "(cached) " >&6 |
| 3655 | else |
| 3656 | if test -n "$CC"; then |
| 3657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3658 | else |
| 3659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3660 | for as_dir in $PATH |
| 3661 | do |
| 3662 | IFS=$as_save_IFS |
| 3663 | test -z "$as_dir" && as_dir=. |
| 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3666 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3668 | break 2 |
| 3669 | fi |
| 3670 | done |
| 3671 | done |
| 3672 | IFS=$as_save_IFS |
| 3673 | |
| 3674 | fi |
| 3675 | fi |
| 3676 | CC=$ac_cv_prog_CC |
| 3677 | if test -n "$CC"; then |
| 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3679 | $as_echo "$CC" >&6; } |
| 3680 | else |
| 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3682 | $as_echo "no" >&6; } |
| 3683 | fi |
| 3684 | |
| 3685 | |
| 3686 | fi |
| 3687 | if test -z "$ac_cv_prog_CC"; then |
| 3688 | ac_ct_CC=$CC |
| 3689 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3690 | set dummy gcc; ac_word=$2 |
| 3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3692 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3693 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3694 | $as_echo_n "(cached) " >&6 |
| 3695 | else |
| 3696 | if test -n "$ac_ct_CC"; then |
| 3697 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3698 | else |
| 3699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3700 | for as_dir in $PATH |
| 3701 | do |
| 3702 | IFS=$as_save_IFS |
| 3703 | test -z "$as_dir" && as_dir=. |
| 3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3706 | ac_cv_prog_ac_ct_CC="gcc" |
| 3707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3708 | break 2 |
| 3709 | fi |
| 3710 | done |
| 3711 | done |
| 3712 | IFS=$as_save_IFS |
| 3713 | |
| 3714 | fi |
| 3715 | fi |
| 3716 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3717 | if test -n "$ac_ct_CC"; then |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3719 | $as_echo "$ac_ct_CC" >&6; } |
| 3720 | else |
| 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3722 | $as_echo "no" >&6; } |
| 3723 | fi |
| 3724 | |
| 3725 | if test "x$ac_ct_CC" = x; then |
| 3726 | CC="" |
| 3727 | else |
| 3728 | case $cross_compiling:$ac_tool_warned in |
| 3729 | yes:) |
| 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3731 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3732 | ac_tool_warned=yes ;; |
| 3733 | esac |
| 3734 | CC=$ac_ct_CC |
| 3735 | fi |
| 3736 | else |
| 3737 | CC="$ac_cv_prog_CC" |
| 3738 | fi |
| 3739 | |
| 3740 | if test -z "$CC"; then |
| 3741 | if test -n "$ac_tool_prefix"; then |
| 3742 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3743 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3745 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3746 | if ${ac_cv_prog_CC+:} false; then : |
| 3747 | $as_echo_n "(cached) " >&6 |
| 3748 | else |
| 3749 | if test -n "$CC"; then |
| 3750 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3751 | else |
| 3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3753 | for as_dir in $PATH |
| 3754 | do |
| 3755 | IFS=$as_save_IFS |
| 3756 | test -z "$as_dir" && as_dir=. |
| 3757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3759 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3761 | break 2 |
| 3762 | fi |
| 3763 | done |
| 3764 | done |
| 3765 | IFS=$as_save_IFS |
| 3766 | |
| 3767 | fi |
| 3768 | fi |
| 3769 | CC=$ac_cv_prog_CC |
| 3770 | if test -n "$CC"; then |
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3772 | $as_echo "$CC" >&6; } |
| 3773 | else |
| 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3775 | $as_echo "no" >&6; } |
| 3776 | fi |
| 3777 | |
| 3778 | |
| 3779 | fi |
| 3780 | fi |
| 3781 | if test -z "$CC"; then |
| 3782 | # Extract the first word of "cc", so it can be a program name with args. |
| 3783 | set dummy cc; ac_word=$2 |
| 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3785 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3786 | if ${ac_cv_prog_CC+:} false; then : |
| 3787 | $as_echo_n "(cached) " >&6 |
| 3788 | else |
| 3789 | if test -n "$CC"; then |
| 3790 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3791 | else |
| 3792 | ac_prog_rejected=no |
| 3793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3794 | for as_dir in $PATH |
| 3795 | do |
| 3796 | IFS=$as_save_IFS |
| 3797 | test -z "$as_dir" && as_dir=. |
| 3798 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3800 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3801 | ac_prog_rejected=yes |
| 3802 | continue |
| 3803 | fi |
| 3804 | ac_cv_prog_CC="cc" |
| 3805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3806 | break 2 |
| 3807 | fi |
| 3808 | done |
| 3809 | done |
| 3810 | IFS=$as_save_IFS |
| 3811 | |
| 3812 | if test $ac_prog_rejected = yes; then |
| 3813 | # We found a bogon in the path, so make sure we never use it. |
| 3814 | set dummy $ac_cv_prog_CC |
| 3815 | shift |
| 3816 | if test $# != 0; then |
| 3817 | # We chose a different compiler from the bogus one. |
| 3818 | # However, it has the same basename, so the bogon will be chosen |
| 3819 | # first if we set CC to just the basename; use the full file name. |
| 3820 | shift |
| 3821 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3822 | fi |
| 3823 | fi |
| 3824 | fi |
| 3825 | fi |
| 3826 | CC=$ac_cv_prog_CC |
| 3827 | if test -n "$CC"; then |
| 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3829 | $as_echo "$CC" >&6; } |
| 3830 | else |
| 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3832 | $as_echo "no" >&6; } |
| 3833 | fi |
| 3834 | |
| 3835 | |
| 3836 | fi |
| 3837 | if test -z "$CC"; then |
| 3838 | if test -n "$ac_tool_prefix"; then |
| 3839 | for ac_prog in cl.exe |
| 3840 | do |
| 3841 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3842 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3844 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3845 | if ${ac_cv_prog_CC+:} false; then : |
| 3846 | $as_echo_n "(cached) " >&6 |
| 3847 | else |
| 3848 | if test -n "$CC"; then |
| 3849 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3850 | else |
| 3851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3852 | for as_dir in $PATH |
| 3853 | do |
| 3854 | IFS=$as_save_IFS |
| 3855 | test -z "$as_dir" && as_dir=. |
| 3856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3858 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3860 | break 2 |
| 3861 | fi |
| 3862 | done |
| 3863 | done |
| 3864 | IFS=$as_save_IFS |
| 3865 | |
| 3866 | fi |
| 3867 | fi |
| 3868 | CC=$ac_cv_prog_CC |
| 3869 | if test -n "$CC"; then |
| 3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3871 | $as_echo "$CC" >&6; } |
| 3872 | else |
| 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3874 | $as_echo "no" >&6; } |
| 3875 | fi |
| 3876 | |
| 3877 | |
| 3878 | test -n "$CC" && break |
| 3879 | done |
| 3880 | fi |
| 3881 | if test -z "$CC"; then |
| 3882 | ac_ct_CC=$CC |
| 3883 | for ac_prog in cl.exe |
| 3884 | do |
| 3885 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3886 | set dummy $ac_prog; ac_word=$2 |
| 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3888 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3889 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3890 | $as_echo_n "(cached) " >&6 |
| 3891 | else |
| 3892 | if test -n "$ac_ct_CC"; then |
| 3893 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3894 | else |
| 3895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3896 | for as_dir in $PATH |
| 3897 | do |
| 3898 | IFS=$as_save_IFS |
| 3899 | test -z "$as_dir" && as_dir=. |
| 3900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3902 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3904 | break 2 |
| 3905 | fi |
| 3906 | done |
| 3907 | done |
| 3908 | IFS=$as_save_IFS |
| 3909 | |
| 3910 | fi |
| 3911 | fi |
| 3912 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3913 | if test -n "$ac_ct_CC"; then |
| 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3915 | $as_echo "$ac_ct_CC" >&6; } |
| 3916 | else |
| 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3918 | $as_echo "no" >&6; } |
| 3919 | fi |
| 3920 | |
| 3921 | |
| 3922 | test -n "$ac_ct_CC" && break |
| 3923 | done |
| 3924 | |
| 3925 | if test "x$ac_ct_CC" = x; then |
| 3926 | CC="" |
| 3927 | else |
| 3928 | case $cross_compiling:$ac_tool_warned in |
| 3929 | yes:) |
| 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3931 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3932 | ac_tool_warned=yes ;; |
| 3933 | esac |
| 3934 | CC=$ac_ct_CC |
| 3935 | fi |
| 3936 | fi |
| 3937 | |
| 3938 | fi |
| 3939 | |
| 3940 | |
| 3941 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3943 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3944 | See \`config.log' for more details" "$LINENO" 5; } |
| 3945 | |
| 3946 | # Provide some information about the compiler. |
| 3947 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3948 | set X $ac_compile |
| 3949 | ac_compiler=$2 |
| 3950 | for ac_option in --version -v -V -qversion; do |
| 3951 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3952 | case "(($ac_try" in |
| 3953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3954 | *) ac_try_echo=$ac_try;; |
| 3955 | esac |
| 3956 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3957 | $as_echo "$ac_try_echo"; } >&5 |
| 3958 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3959 | ac_status=$? |
| 3960 | if test -s conftest.err; then |
| 3961 | sed '10a\ |
| 3962 | ... rest of stderr output deleted ... |
| 3963 | 10q' conftest.err >conftest.er1 |
| 3964 | cat conftest.er1 >&5 |
| 3965 | fi |
| 3966 | rm -f conftest.er1 conftest.err |
| 3967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3968 | test $ac_status = 0; } |
| 3969 | done |
| 3970 | |
| 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3972 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3973 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3974 | $as_echo_n "(cached) " >&6 |
| 3975 | else |
| 3976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3977 | /* end confdefs.h. */ |
| 3978 | |
| 3979 | int |
| 3980 | main () |
| 3981 | { |
| 3982 | #ifndef __GNUC__ |
| 3983 | choke me |
| 3984 | #endif |
| 3985 | |
| 3986 | ; |
| 3987 | return 0; |
| 3988 | } |
| 3989 | _ACEOF |
| 3990 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3991 | ac_compiler_gnu=yes |
| 3992 | else |
| 3993 | ac_compiler_gnu=no |
| 3994 | fi |
| 3995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3996 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3997 | |
| 3998 | fi |
| 3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4000 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4001 | if test $ac_compiler_gnu = yes; then |
| 4002 | GCC=yes |
| 4003 | else |
| 4004 | GCC= |
| 4005 | fi |
| 4006 | ac_test_CFLAGS=${CFLAGS+set} |
| 4007 | ac_save_CFLAGS=$CFLAGS |
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4009 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4010 | if ${ac_cv_prog_cc_g+:} false; then : |
| 4011 | $as_echo_n "(cached) " >&6 |
| 4012 | else |
| 4013 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4014 | ac_c_werror_flag=yes |
| 4015 | ac_cv_prog_cc_g=no |
| 4016 | CFLAGS="-g" |
| 4017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4018 | /* end confdefs.h. */ |
| 4019 | |
| 4020 | int |
| 4021 | main () |
| 4022 | { |
| 4023 | |
| 4024 | ; |
| 4025 | return 0; |
| 4026 | } |
| 4027 | _ACEOF |
| 4028 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4029 | ac_cv_prog_cc_g=yes |
| 4030 | else |
| 4031 | CFLAGS="" |
| 4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4033 | /* end confdefs.h. */ |
| 4034 | |
| 4035 | int |
| 4036 | main () |
| 4037 | { |
| 4038 | |
| 4039 | ; |
| 4040 | return 0; |
| 4041 | } |
| 4042 | _ACEOF |
| 4043 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4044 | |
| 4045 | else |
| 4046 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4047 | CFLAGS="-g" |
| 4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4049 | /* end confdefs.h. */ |
| 4050 | |
| 4051 | int |
| 4052 | main () |
| 4053 | { |
| 4054 | |
| 4055 | ; |
| 4056 | return 0; |
| 4057 | } |
| 4058 | _ACEOF |
| 4059 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4060 | ac_cv_prog_cc_g=yes |
| 4061 | fi |
| 4062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4063 | fi |
| 4064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4065 | fi |
| 4066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4067 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4068 | fi |
| 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4070 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4071 | if test "$ac_test_CFLAGS" = set; then |
| 4072 | CFLAGS=$ac_save_CFLAGS |
| 4073 | elif test $ac_cv_prog_cc_g = yes; then |
| 4074 | if test "$GCC" = yes; then |
| 4075 | CFLAGS="-g -O2" |
| 4076 | else |
| 4077 | CFLAGS="-g" |
| 4078 | fi |
| 4079 | else |
| 4080 | if test "$GCC" = yes; then |
| 4081 | CFLAGS="-O2" |
| 4082 | else |
| 4083 | CFLAGS= |
| 4084 | fi |
| 4085 | fi |
| 4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4087 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4088 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4089 | $as_echo_n "(cached) " >&6 |
| 4090 | else |
| 4091 | ac_cv_prog_cc_c89=no |
| 4092 | ac_save_CC=$CC |
| 4093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4094 | /* end confdefs.h. */ |
| 4095 | #include <stdarg.h> |
| 4096 | #include <stdio.h> |
| 4097 | #include <sys/types.h> |
| 4098 | #include <sys/stat.h> |
| 4099 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4100 | struct buf { int x; }; |
| 4101 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4102 | static char *e (p, i) |
| 4103 | char **p; |
| 4104 | int i; |
| 4105 | { |
| 4106 | return p[i]; |
| 4107 | } |
| 4108 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4109 | { |
| 4110 | char *s; |
| 4111 | va_list v; |
| 4112 | va_start (v,p); |
| 4113 | s = g (p, va_arg (v,int)); |
| 4114 | va_end (v); |
| 4115 | return s; |
| 4116 | } |
| 4117 | |
| 4118 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4119 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4120 | These don't provoke an error unfortunately, instead are silently treated |
| 4121 | as 'x'. The following induces an error, until -std is added to get |
| 4122 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4123 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4124 | that's true only with -std. */ |
| 4125 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4126 | |
| 4127 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4128 | inside strings and character constants. */ |
| 4129 | #define FOO(x) 'x' |
| 4130 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4131 | |
| 4132 | int test (int i, double x); |
| 4133 | struct s1 {int (*f) (int a);}; |
| 4134 | struct s2 {int (*f) (double a);}; |
| 4135 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4136 | int argc; |
| 4137 | char **argv; |
| 4138 | int |
| 4139 | main () |
| 4140 | { |
| 4141 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4142 | ; |
| 4143 | return 0; |
| 4144 | } |
| 4145 | _ACEOF |
| 4146 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4147 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4148 | do |
| 4149 | CC="$ac_save_CC $ac_arg" |
| 4150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4151 | ac_cv_prog_cc_c89=$ac_arg |
| 4152 | fi |
| 4153 | rm -f core conftest.err conftest.$ac_objext |
| 4154 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4155 | done |
| 4156 | rm -f conftest.$ac_ext |
| 4157 | CC=$ac_save_CC |
| 4158 | |
| 4159 | fi |
| 4160 | # AC_CACHE_VAL |
| 4161 | case "x$ac_cv_prog_cc_c89" in |
| 4162 | x) |
| 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4164 | $as_echo "none needed" >&6; } ;; |
| 4165 | xno) |
| 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4167 | $as_echo "unsupported" >&6; } ;; |
| 4168 | *) |
| 4169 | CC="$CC $ac_cv_prog_cc_c89" |
| 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4171 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4172 | esac |
| 4173 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4174 | |
| 4175 | fi |
| 4176 | |
| 4177 | ac_ext=cpp |
| 4178 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4179 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4180 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4181 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4182 | |
| 4183 | ac_ext=cpp |
| 4184 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4185 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4186 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4187 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4188 | if test -z "$CXX"; then |
| 4189 | if test -n "$CCC"; then |
| 4190 | CXX=$CCC |
| 4191 | else |
| 4192 | if test -n "$ac_tool_prefix"; then |
| 4193 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4194 | do |
| 4195 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4196 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4198 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4199 | if ${ac_cv_prog_CXX+:} false; then : |
| 4200 | $as_echo_n "(cached) " >&6 |
| 4201 | else |
| 4202 | if test -n "$CXX"; then |
| 4203 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4204 | else |
| 4205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4206 | for as_dir in $PATH |
| 4207 | do |
| 4208 | IFS=$as_save_IFS |
| 4209 | test -z "$as_dir" && as_dir=. |
| 4210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4212 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4214 | break 2 |
| 4215 | fi |
| 4216 | done |
| 4217 | done |
| 4218 | IFS=$as_save_IFS |
| 4219 | |
| 4220 | fi |
| 4221 | fi |
| 4222 | CXX=$ac_cv_prog_CXX |
| 4223 | if test -n "$CXX"; then |
| 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4225 | $as_echo "$CXX" >&6; } |
| 4226 | else |
| 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4228 | $as_echo "no" >&6; } |
| 4229 | fi |
| 4230 | |
| 4231 | |
| 4232 | test -n "$CXX" && break |
| 4233 | done |
| 4234 | fi |
| 4235 | if test -z "$CXX"; then |
| 4236 | ac_ct_CXX=$CXX |
| 4237 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4238 | do |
| 4239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4240 | set dummy $ac_prog; ac_word=$2 |
| 4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4242 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4243 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 4244 | $as_echo_n "(cached) " >&6 |
| 4245 | else |
| 4246 | if test -n "$ac_ct_CXX"; then |
| 4247 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4248 | else |
| 4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4250 | for as_dir in $PATH |
| 4251 | do |
| 4252 | IFS=$as_save_IFS |
| 4253 | test -z "$as_dir" && as_dir=. |
| 4254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4256 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4258 | break 2 |
| 4259 | fi |
| 4260 | done |
| 4261 | done |
| 4262 | IFS=$as_save_IFS |
| 4263 | |
| 4264 | fi |
| 4265 | fi |
| 4266 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4267 | if test -n "$ac_ct_CXX"; then |
| 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4269 | $as_echo "$ac_ct_CXX" >&6; } |
| 4270 | else |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4272 | $as_echo "no" >&6; } |
| 4273 | fi |
| 4274 | |
| 4275 | |
| 4276 | test -n "$ac_ct_CXX" && break |
| 4277 | done |
| 4278 | |
| 4279 | if test "x$ac_ct_CXX" = x; then |
| 4280 | CXX="g++" |
| 4281 | else |
| 4282 | case $cross_compiling:$ac_tool_warned in |
| 4283 | yes:) |
| 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4286 | ac_tool_warned=yes ;; |
| 4287 | esac |
| 4288 | CXX=$ac_ct_CXX |
| 4289 | fi |
| 4290 | fi |
| 4291 | |
| 4292 | fi |
| 4293 | fi |
| 4294 | # Provide some information about the compiler. |
| 4295 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4296 | set X $ac_compile |
| 4297 | ac_compiler=$2 |
| 4298 | for ac_option in --version -v -V -qversion; do |
| 4299 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4300 | case "(($ac_try" in |
| 4301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4302 | *) ac_try_echo=$ac_try;; |
| 4303 | esac |
| 4304 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4305 | $as_echo "$ac_try_echo"; } >&5 |
| 4306 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4307 | ac_status=$? |
| 4308 | if test -s conftest.err; then |
| 4309 | sed '10a\ |
| 4310 | ... rest of stderr output deleted ... |
| 4311 | 10q' conftest.err >conftest.er1 |
| 4312 | cat conftest.er1 >&5 |
| 4313 | fi |
| 4314 | rm -f conftest.er1 conftest.err |
| 4315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4316 | test $ac_status = 0; } |
| 4317 | done |
| 4318 | |
| 4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4320 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4321 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 4322 | $as_echo_n "(cached) " >&6 |
| 4323 | else |
| 4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4325 | /* end confdefs.h. */ |
| 4326 | |
| 4327 | int |
| 4328 | main () |
| 4329 | { |
| 4330 | #ifndef __GNUC__ |
| 4331 | choke me |
| 4332 | #endif |
| 4333 | |
| 4334 | ; |
| 4335 | return 0; |
| 4336 | } |
| 4337 | _ACEOF |
| 4338 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4339 | ac_compiler_gnu=yes |
| 4340 | else |
| 4341 | ac_compiler_gnu=no |
| 4342 | fi |
| 4343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4344 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4345 | |
| 4346 | fi |
| 4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4348 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4349 | if test $ac_compiler_gnu = yes; then |
| 4350 | GXX=yes |
| 4351 | else |
| 4352 | GXX= |
| 4353 | fi |
| 4354 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4355 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4357 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4358 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 4359 | $as_echo_n "(cached) " >&6 |
| 4360 | else |
| 4361 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4362 | ac_cxx_werror_flag=yes |
| 4363 | ac_cv_prog_cxx_g=no |
| 4364 | CXXFLAGS="-g" |
| 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4366 | /* end confdefs.h. */ |
| 4367 | |
| 4368 | int |
| 4369 | main () |
| 4370 | { |
| 4371 | |
| 4372 | ; |
| 4373 | return 0; |
| 4374 | } |
| 4375 | _ACEOF |
| 4376 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4377 | ac_cv_prog_cxx_g=yes |
| 4378 | else |
| 4379 | CXXFLAGS="" |
| 4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4381 | /* end confdefs.h. */ |
| 4382 | |
| 4383 | int |
| 4384 | main () |
| 4385 | { |
| 4386 | |
| 4387 | ; |
| 4388 | return 0; |
| 4389 | } |
| 4390 | _ACEOF |
| 4391 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4392 | |
| 4393 | else |
| 4394 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4395 | CXXFLAGS="-g" |
| 4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4397 | /* end confdefs.h. */ |
| 4398 | |
| 4399 | int |
| 4400 | main () |
| 4401 | { |
| 4402 | |
| 4403 | ; |
| 4404 | return 0; |
| 4405 | } |
| 4406 | _ACEOF |
| 4407 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4408 | ac_cv_prog_cxx_g=yes |
| 4409 | fi |
| 4410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4411 | fi |
| 4412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4413 | fi |
| 4414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4415 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4416 | fi |
| 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4418 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 4419 | if test "$ac_test_CXXFLAGS" = set; then |
| 4420 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4421 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4422 | if test "$GXX" = yes; then |
| 4423 | CXXFLAGS="-g -O2" |
| 4424 | else |
| 4425 | CXXFLAGS="-g" |
| 4426 | fi |
| 4427 | else |
| 4428 | if test "$GXX" = yes; then |
| 4429 | CXXFLAGS="-O2" |
| 4430 | else |
| 4431 | CXXFLAGS= |
| 4432 | fi |
| 4433 | fi |
| 4434 | ac_ext=cpp |
| 4435 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4436 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4437 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4438 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4439 | |
| 4440 | ac_ext=cpp |
| 4441 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4442 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4443 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4444 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 4446 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 4447 | if test -z "$CXXCPP"; then |
| 4448 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 4449 | $as_echo_n "(cached) " >&6 |
| 4450 | else |
| 4451 | # Double quotes because CXXCPP needs to be expanded |
| 4452 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4453 | do |
| 4454 | ac_preproc_ok=false |
| 4455 | for ac_cxx_preproc_warn_flag in '' yes |
| 4456 | do |
| 4457 | # Use a header file that comes with gcc, so configuring glibc |
| 4458 | # with a fresh cross-compiler works. |
| 4459 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4460 | # <limits.h> exists even on freestanding compilers. |
| 4461 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4462 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4464 | /* end confdefs.h. */ |
| 4465 | #ifdef __STDC__ |
| 4466 | # include <limits.h> |
| 4467 | #else |
| 4468 | # include <assert.h> |
| 4469 | #endif |
| 4470 | Syntax error |
| 4471 | _ACEOF |
| 4472 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 4473 | |
| 4474 | else |
| 4475 | # Broken: fails on valid input. |
| 4476 | continue |
| 4477 | fi |
| 4478 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4479 | |
| 4480 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4481 | # can be detected and how. |
| 4482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4483 | /* end confdefs.h. */ |
| 4484 | #include <ac_nonexistent.h> |
| 4485 | _ACEOF |
| 4486 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 4487 | # Broken: success on invalid input. |
| 4488 | continue |
| 4489 | else |
| 4490 | # Passes both tests. |
| 4491 | ac_preproc_ok=: |
| 4492 | break |
| 4493 | fi |
| 4494 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4495 | |
| 4496 | done |
| 4497 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4498 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4499 | if $ac_preproc_ok; then : |
| 4500 | break |
| 4501 | fi |
| 4502 | |
| 4503 | done |
| 4504 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4505 | |
| 4506 | fi |
| 4507 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4508 | else |
| 4509 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4510 | fi |
| 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 4512 | $as_echo "$CXXCPP" >&6; } |
| 4513 | ac_preproc_ok=false |
| 4514 | for ac_cxx_preproc_warn_flag in '' yes |
| 4515 | do |
| 4516 | # Use a header file that comes with gcc, so configuring glibc |
| 4517 | # with a fresh cross-compiler works. |
| 4518 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4519 | # <limits.h> exists even on freestanding compilers. |
| 4520 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4521 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4523 | /* end confdefs.h. */ |
| 4524 | #ifdef __STDC__ |
| 4525 | # include <limits.h> |
| 4526 | #else |
| 4527 | # include <assert.h> |
| 4528 | #endif |
| 4529 | Syntax error |
| 4530 | _ACEOF |
| 4531 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 4532 | |
| 4533 | else |
| 4534 | # Broken: fails on valid input. |
| 4535 | continue |
| 4536 | fi |
| 4537 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4538 | |
| 4539 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4540 | # can be detected and how. |
| 4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4542 | /* end confdefs.h. */ |
| 4543 | #include <ac_nonexistent.h> |
| 4544 | _ACEOF |
| 4545 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 4546 | # Broken: success on invalid input. |
| 4547 | continue |
| 4548 | else |
| 4549 | # Passes both tests. |
| 4550 | ac_preproc_ok=: |
| 4551 | break |
| 4552 | fi |
| 4553 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4554 | |
| 4555 | done |
| 4556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4557 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4558 | if $ac_preproc_ok; then : |
| 4559 | |
| 4560 | else |
| 4561 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4562 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4563 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4564 | See \`config.log' for more details" "$LINENO" 5; } |
| 4565 | fi |
| 4566 | |
| 4567 | ac_ext=cpp |
| 4568 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4572 | |
| 4573 | ac_ext=cpp |
| 4574 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4575 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4576 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4577 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4578 | if test -z "$CXX"; then |
| 4579 | if test -n "$CCC"; then |
| 4580 | CXX=$CCC |
| 4581 | else |
| 4582 | if test -n "$ac_tool_prefix"; then |
| 4583 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4584 | do |
| 4585 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4586 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4588 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4589 | if ${ac_cv_prog_CXX+:} false; then : |
| 4590 | $as_echo_n "(cached) " >&6 |
| 4591 | else |
| 4592 | if test -n "$CXX"; then |
| 4593 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4594 | else |
| 4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4596 | for as_dir in $PATH |
| 4597 | do |
| 4598 | IFS=$as_save_IFS |
| 4599 | test -z "$as_dir" && as_dir=. |
| 4600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4602 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4604 | break 2 |
| 4605 | fi |
| 4606 | done |
| 4607 | done |
| 4608 | IFS=$as_save_IFS |
| 4609 | |
| 4610 | fi |
| 4611 | fi |
| 4612 | CXX=$ac_cv_prog_CXX |
| 4613 | if test -n "$CXX"; then |
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4615 | $as_echo "$CXX" >&6; } |
| 4616 | else |
| 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4618 | $as_echo "no" >&6; } |
| 4619 | fi |
| 4620 | |
| 4621 | |
| 4622 | test -n "$CXX" && break |
| 4623 | done |
| 4624 | fi |
| 4625 | if test -z "$CXX"; then |
| 4626 | ac_ct_CXX=$CXX |
| 4627 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4628 | do |
| 4629 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4630 | set dummy $ac_prog; ac_word=$2 |
| 4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4632 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4633 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 4634 | $as_echo_n "(cached) " >&6 |
| 4635 | else |
| 4636 | if test -n "$ac_ct_CXX"; then |
| 4637 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4638 | else |
| 4639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4640 | for as_dir in $PATH |
| 4641 | do |
| 4642 | IFS=$as_save_IFS |
| 4643 | test -z "$as_dir" && as_dir=. |
| 4644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4646 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4648 | break 2 |
| 4649 | fi |
| 4650 | done |
| 4651 | done |
| 4652 | IFS=$as_save_IFS |
| 4653 | |
| 4654 | fi |
| 4655 | fi |
| 4656 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4657 | if test -n "$ac_ct_CXX"; then |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4659 | $as_echo "$ac_ct_CXX" >&6; } |
| 4660 | else |
| 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4662 | $as_echo "no" >&6; } |
| 4663 | fi |
| 4664 | |
| 4665 | |
| 4666 | test -n "$ac_ct_CXX" && break |
| 4667 | done |
| 4668 | |
| 4669 | if test "x$ac_ct_CXX" = x; then |
| 4670 | CXX="g++" |
| 4671 | else |
| 4672 | case $cross_compiling:$ac_tool_warned in |
| 4673 | yes:) |
| 4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4675 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4676 | ac_tool_warned=yes ;; |
| 4677 | esac |
| 4678 | CXX=$ac_ct_CXX |
| 4679 | fi |
| 4680 | fi |
| 4681 | |
| 4682 | fi |
| 4683 | fi |
| 4684 | # Provide some information about the compiler. |
| 4685 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4686 | set X $ac_compile |
| 4687 | ac_compiler=$2 |
| 4688 | for ac_option in --version -v -V -qversion; do |
| 4689 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4690 | case "(($ac_try" in |
| 4691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4692 | *) ac_try_echo=$ac_try;; |
| 4693 | esac |
| 4694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4695 | $as_echo "$ac_try_echo"; } >&5 |
| 4696 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4697 | ac_status=$? |
| 4698 | if test -s conftest.err; then |
| 4699 | sed '10a\ |
| 4700 | ... rest of stderr output deleted ... |
| 4701 | 10q' conftest.err >conftest.er1 |
| 4702 | cat conftest.er1 >&5 |
| 4703 | fi |
| 4704 | rm -f conftest.er1 conftest.err |
| 4705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4706 | test $ac_status = 0; } |
| 4707 | done |
| 4708 | |
| 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4710 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4711 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 4712 | $as_echo_n "(cached) " >&6 |
| 4713 | else |
| 4714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4715 | /* end confdefs.h. */ |
| 4716 | |
| 4717 | int |
| 4718 | main () |
| 4719 | { |
| 4720 | #ifndef __GNUC__ |
| 4721 | choke me |
| 4722 | #endif |
| 4723 | |
| 4724 | ; |
| 4725 | return 0; |
| 4726 | } |
| 4727 | _ACEOF |
| 4728 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4729 | ac_compiler_gnu=yes |
| 4730 | else |
| 4731 | ac_compiler_gnu=no |
| 4732 | fi |
| 4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4734 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4735 | |
| 4736 | fi |
| 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4738 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4739 | if test $ac_compiler_gnu = yes; then |
| 4740 | GXX=yes |
| 4741 | else |
| 4742 | GXX= |
| 4743 | fi |
| 4744 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4745 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4747 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4748 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 4749 | $as_echo_n "(cached) " >&6 |
| 4750 | else |
| 4751 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4752 | ac_cxx_werror_flag=yes |
| 4753 | ac_cv_prog_cxx_g=no |
| 4754 | CXXFLAGS="-g" |
| 4755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4756 | /* end confdefs.h. */ |
| 4757 | |
| 4758 | int |
| 4759 | main () |
| 4760 | { |
| 4761 | |
| 4762 | ; |
| 4763 | return 0; |
| 4764 | } |
| 4765 | _ACEOF |
| 4766 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4767 | ac_cv_prog_cxx_g=yes |
| 4768 | else |
| 4769 | CXXFLAGS="" |
| 4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4771 | /* end confdefs.h. */ |
| 4772 | |
| 4773 | int |
| 4774 | main () |
| 4775 | { |
| 4776 | |
| 4777 | ; |
| 4778 | return 0; |
| 4779 | } |
| 4780 | _ACEOF |
| 4781 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4782 | |
| 4783 | else |
| 4784 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4785 | CXXFLAGS="-g" |
| 4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4787 | /* end confdefs.h. */ |
| 4788 | |
| 4789 | int |
| 4790 | main () |
| 4791 | { |
| 4792 | |
| 4793 | ; |
| 4794 | return 0; |
| 4795 | } |
| 4796 | _ACEOF |
| 4797 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4798 | ac_cv_prog_cxx_g=yes |
| 4799 | fi |
| 4800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4801 | fi |
| 4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4803 | fi |
| 4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4805 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4806 | fi |
| 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4808 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 4809 | if test "$ac_test_CXXFLAGS" = set; then |
| 4810 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4811 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4812 | if test "$GXX" = yes; then |
| 4813 | CXXFLAGS="-g -O2" |
| 4814 | else |
| 4815 | CXXFLAGS="-g" |
| 4816 | fi |
| 4817 | else |
| 4818 | if test "$GXX" = yes; then |
| 4819 | CXXFLAGS="-O2" |
| 4820 | else |
| 4821 | CXXFLAGS= |
| 4822 | fi |
| 4823 | fi |
| 4824 | ac_ext=cpp |
| 4825 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4833 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4834 | if ${ac_cv_path_GREP+:} false; then : |
| 4835 | $as_echo_n "(cached) " >&6 |
| 4836 | else |
| 4837 | if test -z "$GREP"; then |
| 4838 | ac_path_GREP_found=false |
| 4839 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4841 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4842 | do |
| 4843 | IFS=$as_save_IFS |
| 4844 | test -z "$as_dir" && as_dir=. |
| 4845 | for ac_prog in grep ggrep; do |
| 4846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4847 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4848 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4849 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4850 | # Check for GNU $ac_path_GREP |
| 4851 | case `"$ac_path_GREP" --version 2>&1` in |
| 4852 | *GNU*) |
| 4853 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4854 | *) |
| 4855 | ac_count=0 |
| 4856 | $as_echo_n 0123456789 >"conftest.in" |
| 4857 | while : |
| 4858 | do |
| 4859 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4860 | mv "conftest.tmp" "conftest.in" |
| 4861 | cp "conftest.in" "conftest.nl" |
| 4862 | $as_echo 'GREP' >> "conftest.nl" |
| 4863 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4864 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4865 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4866 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4867 | # Best one so far, save it but keep looking for a better one |
| 4868 | ac_cv_path_GREP="$ac_path_GREP" |
| 4869 | ac_path_GREP_max=$ac_count |
| 4870 | fi |
| 4871 | # 10*(2^10) chars as input seems more than enough |
| 4872 | test $ac_count -gt 10 && break |
| 4873 | done |
| 4874 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4875 | esac |
| 4876 | |
| 4877 | $ac_path_GREP_found && break 3 |
| 4878 | done |
| 4879 | done |
| 4880 | done |
| 4881 | IFS=$as_save_IFS |
| 4882 | if test -z "$ac_cv_path_GREP"; then |
| 4883 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4884 | fi |
| 4885 | else |
| 4886 | ac_cv_path_GREP=$GREP |
| 4887 | fi |
| 4888 | |
| 4889 | fi |
| 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4891 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4892 | GREP="$ac_cv_path_GREP" |
| 4893 | |
| 4894 | |
| 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4896 | $as_echo_n "checking for egrep... " >&6; } |
| 4897 | if ${ac_cv_path_EGREP+:} false; then : |
| 4898 | $as_echo_n "(cached) " >&6 |
| 4899 | else |
| 4900 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4901 | then ac_cv_path_EGREP="$GREP -E" |
| 4902 | else |
| 4903 | if test -z "$EGREP"; then |
| 4904 | ac_path_EGREP_found=false |
| 4905 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4907 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4908 | do |
| 4909 | IFS=$as_save_IFS |
| 4910 | test -z "$as_dir" && as_dir=. |
| 4911 | for ac_prog in egrep; do |
| 4912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4913 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4914 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4915 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4916 | # Check for GNU $ac_path_EGREP |
| 4917 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4918 | *GNU*) |
| 4919 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4920 | *) |
| 4921 | ac_count=0 |
| 4922 | $as_echo_n 0123456789 >"conftest.in" |
| 4923 | while : |
| 4924 | do |
| 4925 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4926 | mv "conftest.tmp" "conftest.in" |
| 4927 | cp "conftest.in" "conftest.nl" |
| 4928 | $as_echo 'EGREP' >> "conftest.nl" |
| 4929 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4931 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4932 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4933 | # Best one so far, save it but keep looking for a better one |
| 4934 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4935 | ac_path_EGREP_max=$ac_count |
| 4936 | fi |
| 4937 | # 10*(2^10) chars as input seems more than enough |
| 4938 | test $ac_count -gt 10 && break |
| 4939 | done |
| 4940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4941 | esac |
| 4942 | |
| 4943 | $ac_path_EGREP_found && break 3 |
| 4944 | done |
| 4945 | done |
| 4946 | done |
| 4947 | IFS=$as_save_IFS |
| 4948 | if test -z "$ac_cv_path_EGREP"; then |
| 4949 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4950 | fi |
| 4951 | else |
| 4952 | ac_cv_path_EGREP=$EGREP |
| 4953 | fi |
| 4954 | |
| 4955 | fi |
| 4956 | fi |
| 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4958 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4959 | EGREP="$ac_cv_path_EGREP" |
| 4960 | |
| 4961 | |
| 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4963 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4964 | if ${ac_cv_header_stdc+:} false; then : |
| 4965 | $as_echo_n "(cached) " >&6 |
| 4966 | else |
| 4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4968 | /* end confdefs.h. */ |
| 4969 | #include <stdlib.h> |
| 4970 | #include <stdarg.h> |
| 4971 | #include <string.h> |
| 4972 | #include <float.h> |
| 4973 | |
| 4974 | int |
| 4975 | main () |
| 4976 | { |
| 4977 | |
| 4978 | ; |
| 4979 | return 0; |
| 4980 | } |
| 4981 | _ACEOF |
| 4982 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4983 | ac_cv_header_stdc=yes |
| 4984 | else |
| 4985 | ac_cv_header_stdc=no |
| 4986 | fi |
| 4987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4988 | |
| 4989 | if test $ac_cv_header_stdc = yes; then |
| 4990 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4992 | /* end confdefs.h. */ |
| 4993 | #include <string.h> |
| 4994 | |
| 4995 | _ACEOF |
| 4996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4997 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4998 | |
| 4999 | else |
| 5000 | ac_cv_header_stdc=no |
| 5001 | fi |
| 5002 | rm -f conftest* |
| 5003 | |
| 5004 | fi |
| 5005 | |
| 5006 | if test $ac_cv_header_stdc = yes; then |
| 5007 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5009 | /* end confdefs.h. */ |
| 5010 | #include <stdlib.h> |
| 5011 | |
| 5012 | _ACEOF |
| 5013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5014 | $EGREP "free" >/dev/null 2>&1; then : |
| 5015 | |
| 5016 | else |
| 5017 | ac_cv_header_stdc=no |
| 5018 | fi |
| 5019 | rm -f conftest* |
| 5020 | |
| 5021 | fi |
| 5022 | |
| 5023 | if test $ac_cv_header_stdc = yes; then |
| 5024 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5025 | if test "$cross_compiling" = yes; then : |
| 5026 | : |
| 5027 | else |
| 5028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5029 | /* end confdefs.h. */ |
| 5030 | #include <ctype.h> |
| 5031 | #include <stdlib.h> |
| 5032 | #if ((' ' & 0x0FF) == 0x020) |
| 5033 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5034 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5035 | #else |
| 5036 | # define ISLOWER(c) \ |
| 5037 | (('a' <= (c) && (c) <= 'i') \ |
| 5038 | || ('j' <= (c) && (c) <= 'r') \ |
| 5039 | || ('s' <= (c) && (c) <= 'z')) |
| 5040 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5041 | #endif |
| 5042 | |
| 5043 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5044 | int |
| 5045 | main () |
| 5046 | { |
| 5047 | int i; |
| 5048 | for (i = 0; i < 256; i++) |
| 5049 | if (XOR (islower (i), ISLOWER (i)) |
| 5050 | || toupper (i) != TOUPPER (i)) |
| 5051 | return 2; |
| 5052 | return 0; |
| 5053 | } |
| 5054 | _ACEOF |
| 5055 | if ac_fn_cxx_try_run "$LINENO"; then : |
| 5056 | |
| 5057 | else |
| 5058 | ac_cv_header_stdc=no |
| 5059 | fi |
| 5060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5061 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5062 | fi |
| 5063 | |
| 5064 | fi |
| 5065 | fi |
| 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5067 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5068 | if test $ac_cv_header_stdc = yes; then |
| 5069 | |
| 5070 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5071 | |
| 5072 | fi |
| 5073 | |
| 5074 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5075 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5076 | inttypes.h stdint.h unistd.h |
| 5077 | do : |
| 5078 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5079 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5080 | " |
| 5081 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5082 | cat >>confdefs.h <<_ACEOF |
| 5083 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5084 | _ACEOF |
| 5085 | |
| 5086 | fi |
| 5087 | |
| 5088 | done |
| 5089 | |
| 5090 | |
| 5091 | |
| 5092 | ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 5093 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 5094 | MINIX=yes |
| 5095 | else |
| 5096 | MINIX= |
| 5097 | fi |
| 5098 | |
| 5099 | |
| 5100 | if test "$MINIX" = yes; then |
| 5101 | |
| 5102 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5103 | |
| 5104 | |
| 5105 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5106 | |
| 5107 | |
| 5108 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5109 | |
| 5110 | fi |
| 5111 | |
| 5112 | |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5114 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5115 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5119 | /* end confdefs.h. */ |
| 5120 | |
| 5121 | # define __EXTENSIONS__ 1 |
| 5122 | $ac_includes_default |
| 5123 | int |
| 5124 | main () |
| 5125 | { |
| 5126 | |
| 5127 | ; |
| 5128 | return 0; |
| 5129 | } |
| 5130 | _ACEOF |
| 5131 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5132 | ac_cv_safe_to_define___extensions__=yes |
| 5133 | else |
| 5134 | ac_cv_safe_to_define___extensions__=no |
| 5135 | fi |
| 5136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5137 | fi |
| 5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5139 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5140 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5141 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5142 | |
| 5143 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5144 | |
| 5145 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5146 | |
| 5147 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5148 | |
| 5149 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | ac_ext=c |
| 5154 | ac_cpp='$CPP $CPPFLAGS' |
| 5155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5158 | if test -n "$ac_tool_prefix"; then |
| 5159 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5160 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5162 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5163 | if ${ac_cv_prog_CC+:} false; then : |
| 5164 | $as_echo_n "(cached) " >&6 |
| 5165 | else |
| 5166 | if test -n "$CC"; then |
| 5167 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5168 | else |
| 5169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5170 | for as_dir in $PATH |
| 5171 | do |
| 5172 | IFS=$as_save_IFS |
| 5173 | test -z "$as_dir" && as_dir=. |
| 5174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5176 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5178 | break 2 |
| 5179 | fi |
| 5180 | done |
| 5181 | done |
| 5182 | IFS=$as_save_IFS |
| 5183 | |
| 5184 | fi |
| 5185 | fi |
| 5186 | CC=$ac_cv_prog_CC |
| 5187 | if test -n "$CC"; then |
| 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5189 | $as_echo "$CC" >&6; } |
| 5190 | else |
| 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5192 | $as_echo "no" >&6; } |
| 5193 | fi |
| 5194 | |
| 5195 | |
| 5196 | fi |
| 5197 | if test -z "$ac_cv_prog_CC"; then |
| 5198 | ac_ct_CC=$CC |
| 5199 | # Extract the first word of "gcc", so it can be a program name with args. |
| 5200 | set dummy gcc; ac_word=$2 |
| 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5202 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5203 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5204 | $as_echo_n "(cached) " >&6 |
| 5205 | else |
| 5206 | if test -n "$ac_ct_CC"; then |
| 5207 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5208 | else |
| 5209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5210 | for as_dir in $PATH |
| 5211 | do |
| 5212 | IFS=$as_save_IFS |
| 5213 | test -z "$as_dir" && as_dir=. |
| 5214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5216 | ac_cv_prog_ac_ct_CC="gcc" |
| 5217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5218 | break 2 |
| 5219 | fi |
| 5220 | done |
| 5221 | done |
| 5222 | IFS=$as_save_IFS |
| 5223 | |
| 5224 | fi |
| 5225 | fi |
| 5226 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5227 | if test -n "$ac_ct_CC"; then |
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5229 | $as_echo "$ac_ct_CC" >&6; } |
| 5230 | else |
| 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5232 | $as_echo "no" >&6; } |
| 5233 | fi |
| 5234 | |
| 5235 | if test "x$ac_ct_CC" = x; then |
| 5236 | CC="" |
| 5237 | else |
| 5238 | case $cross_compiling:$ac_tool_warned in |
| 5239 | yes:) |
| 5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5242 | ac_tool_warned=yes ;; |
| 5243 | esac |
| 5244 | CC=$ac_ct_CC |
| 5245 | fi |
| 5246 | else |
| 5247 | CC="$ac_cv_prog_CC" |
| 5248 | fi |
| 5249 | |
| 5250 | if test -z "$CC"; then |
| 5251 | if test -n "$ac_tool_prefix"; then |
| 5252 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5253 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5255 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5256 | if ${ac_cv_prog_CC+:} false; then : |
| 5257 | $as_echo_n "(cached) " >&6 |
| 5258 | else |
| 5259 | if test -n "$CC"; then |
| 5260 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5261 | else |
| 5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5263 | for as_dir in $PATH |
| 5264 | do |
| 5265 | IFS=$as_save_IFS |
| 5266 | test -z "$as_dir" && as_dir=. |
| 5267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5269 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5271 | break 2 |
| 5272 | fi |
| 5273 | done |
| 5274 | done |
| 5275 | IFS=$as_save_IFS |
| 5276 | |
| 5277 | fi |
| 5278 | fi |
| 5279 | CC=$ac_cv_prog_CC |
| 5280 | if test -n "$CC"; then |
| 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5282 | $as_echo "$CC" >&6; } |
| 5283 | else |
| 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5285 | $as_echo "no" >&6; } |
| 5286 | fi |
| 5287 | |
| 5288 | |
| 5289 | fi |
| 5290 | fi |
| 5291 | if test -z "$CC"; then |
| 5292 | # Extract the first word of "cc", so it can be a program name with args. |
| 5293 | set dummy cc; 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_CC+:} false; then : |
| 5297 | $as_echo_n "(cached) " >&6 |
| 5298 | else |
| 5299 | if test -n "$CC"; then |
| 5300 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5301 | else |
| 5302 | ac_prog_rejected=no |
| 5303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5304 | for as_dir in $PATH |
| 5305 | do |
| 5306 | IFS=$as_save_IFS |
| 5307 | test -z "$as_dir" && as_dir=. |
| 5308 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5310 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5311 | ac_prog_rejected=yes |
| 5312 | continue |
| 5313 | fi |
| 5314 | ac_cv_prog_CC="cc" |
| 5315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5316 | break 2 |
| 5317 | fi |
| 5318 | done |
| 5319 | done |
| 5320 | IFS=$as_save_IFS |
| 5321 | |
| 5322 | if test $ac_prog_rejected = yes; then |
| 5323 | # We found a bogon in the path, so make sure we never use it. |
| 5324 | set dummy $ac_cv_prog_CC |
| 5325 | shift |
| 5326 | if test $# != 0; then |
| 5327 | # We chose a different compiler from the bogus one. |
| 5328 | # However, it has the same basename, so the bogon will be chosen |
| 5329 | # first if we set CC to just the basename; use the full file name. |
| 5330 | shift |
| 5331 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 5332 | fi |
| 5333 | fi |
| 5334 | fi |
| 5335 | fi |
| 5336 | CC=$ac_cv_prog_CC |
| 5337 | if test -n "$CC"; then |
| 5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5339 | $as_echo "$CC" >&6; } |
| 5340 | else |
| 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5342 | $as_echo "no" >&6; } |
| 5343 | fi |
| 5344 | |
| 5345 | |
| 5346 | fi |
| 5347 | if test -z "$CC"; then |
| 5348 | if test -n "$ac_tool_prefix"; then |
| 5349 | for ac_prog in cl.exe |
| 5350 | do |
| 5351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5355 | if ${ac_cv_prog_CC+:} false; then : |
| 5356 | $as_echo_n "(cached) " >&6 |
| 5357 | else |
| 5358 | if test -n "$CC"; then |
| 5359 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5360 | else |
| 5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5362 | for as_dir in $PATH |
| 5363 | do |
| 5364 | IFS=$as_save_IFS |
| 5365 | test -z "$as_dir" && as_dir=. |
| 5366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5368 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5370 | break 2 |
| 5371 | fi |
| 5372 | done |
| 5373 | done |
| 5374 | IFS=$as_save_IFS |
| 5375 | |
| 5376 | fi |
| 5377 | fi |
| 5378 | CC=$ac_cv_prog_CC |
| 5379 | if test -n "$CC"; then |
| 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5381 | $as_echo "$CC" >&6; } |
| 5382 | else |
| 5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5384 | $as_echo "no" >&6; } |
| 5385 | fi |
| 5386 | |
| 5387 | |
| 5388 | test -n "$CC" && break |
| 5389 | done |
| 5390 | fi |
| 5391 | if test -z "$CC"; then |
| 5392 | ac_ct_CC=$CC |
| 5393 | for ac_prog in cl.exe |
| 5394 | do |
| 5395 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5396 | set dummy $ac_prog; ac_word=$2 |
| 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5398 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5399 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5400 | $as_echo_n "(cached) " >&6 |
| 5401 | else |
| 5402 | if test -n "$ac_ct_CC"; then |
| 5403 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5404 | else |
| 5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5406 | for as_dir in $PATH |
| 5407 | do |
| 5408 | IFS=$as_save_IFS |
| 5409 | test -z "$as_dir" && as_dir=. |
| 5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5412 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5414 | break 2 |
| 5415 | fi |
| 5416 | done |
| 5417 | done |
| 5418 | IFS=$as_save_IFS |
| 5419 | |
| 5420 | fi |
| 5421 | fi |
| 5422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5423 | if test -n "$ac_ct_CC"; then |
| 5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5425 | $as_echo "$ac_ct_CC" >&6; } |
| 5426 | else |
| 5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5428 | $as_echo "no" >&6; } |
| 5429 | fi |
| 5430 | |
| 5431 | |
| 5432 | test -n "$ac_ct_CC" && break |
| 5433 | done |
| 5434 | |
| 5435 | if test "x$ac_ct_CC" = x; then |
| 5436 | CC="" |
| 5437 | else |
| 5438 | case $cross_compiling:$ac_tool_warned in |
| 5439 | yes:) |
| 5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5442 | ac_tool_warned=yes ;; |
| 5443 | esac |
| 5444 | CC=$ac_ct_CC |
| 5445 | fi |
| 5446 | fi |
| 5447 | |
| 5448 | fi |
| 5449 | |
| 5450 | |
| 5451 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5453 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5454 | See \`config.log' for more details" "$LINENO" 5; } |
| 5455 | |
| 5456 | # Provide some information about the compiler. |
| 5457 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5458 | set X $ac_compile |
| 5459 | ac_compiler=$2 |
| 5460 | for ac_option in --version -v -V -qversion; do |
| 5461 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5462 | case "(($ac_try" in |
| 5463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5464 | *) ac_try_echo=$ac_try;; |
| 5465 | esac |
| 5466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5467 | $as_echo "$ac_try_echo"; } >&5 |
| 5468 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5469 | ac_status=$? |
| 5470 | if test -s conftest.err; then |
| 5471 | sed '10a\ |
| 5472 | ... rest of stderr output deleted ... |
| 5473 | 10q' conftest.err >conftest.er1 |
| 5474 | cat conftest.er1 >&5 |
| 5475 | fi |
| 5476 | rm -f conftest.er1 conftest.err |
| 5477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5478 | test $ac_status = 0; } |
| 5479 | done |
| 5480 | |
| 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5482 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5483 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 5484 | $as_echo_n "(cached) " >&6 |
| 5485 | else |
| 5486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5487 | /* end confdefs.h. */ |
| 5488 | |
| 5489 | int |
| 5490 | main () |
| 5491 | { |
| 5492 | #ifndef __GNUC__ |
| 5493 | choke me |
| 5494 | #endif |
| 5495 | |
| 5496 | ; |
| 5497 | return 0; |
| 5498 | } |
| 5499 | _ACEOF |
| 5500 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5501 | ac_compiler_gnu=yes |
| 5502 | else |
| 5503 | ac_compiler_gnu=no |
| 5504 | fi |
| 5505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5506 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5507 | |
| 5508 | fi |
| 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5510 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5511 | if test $ac_compiler_gnu = yes; then |
| 5512 | GCC=yes |
| 5513 | else |
| 5514 | GCC= |
| 5515 | fi |
| 5516 | ac_test_CFLAGS=${CFLAGS+set} |
| 5517 | ac_save_CFLAGS=$CFLAGS |
| 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5519 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5520 | if ${ac_cv_prog_cc_g+:} false; then : |
| 5521 | $as_echo_n "(cached) " >&6 |
| 5522 | else |
| 5523 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5524 | ac_c_werror_flag=yes |
| 5525 | ac_cv_prog_cc_g=no |
| 5526 | CFLAGS="-g" |
| 5527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5528 | /* end confdefs.h. */ |
| 5529 | |
| 5530 | int |
| 5531 | main () |
| 5532 | { |
| 5533 | |
| 5534 | ; |
| 5535 | return 0; |
| 5536 | } |
| 5537 | _ACEOF |
| 5538 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5539 | ac_cv_prog_cc_g=yes |
| 5540 | else |
| 5541 | CFLAGS="" |
| 5542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5543 | /* end confdefs.h. */ |
| 5544 | |
| 5545 | int |
| 5546 | main () |
| 5547 | { |
| 5548 | |
| 5549 | ; |
| 5550 | return 0; |
| 5551 | } |
| 5552 | _ACEOF |
| 5553 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5554 | |
| 5555 | else |
| 5556 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5557 | CFLAGS="-g" |
| 5558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5559 | /* end confdefs.h. */ |
| 5560 | |
| 5561 | int |
| 5562 | main () |
| 5563 | { |
| 5564 | |
| 5565 | ; |
| 5566 | return 0; |
| 5567 | } |
| 5568 | _ACEOF |
| 5569 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5570 | ac_cv_prog_cc_g=yes |
| 5571 | fi |
| 5572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5573 | fi |
| 5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5575 | fi |
| 5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5577 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5578 | fi |
| 5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5580 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5581 | if test "$ac_test_CFLAGS" = set; then |
| 5582 | CFLAGS=$ac_save_CFLAGS |
| 5583 | elif test $ac_cv_prog_cc_g = yes; then |
| 5584 | if test "$GCC" = yes; then |
| 5585 | CFLAGS="-g -O2" |
| 5586 | else |
| 5587 | CFLAGS="-g" |
| 5588 | fi |
| 5589 | else |
| 5590 | if test "$GCC" = yes; then |
| 5591 | CFLAGS="-O2" |
| 5592 | else |
| 5593 | CFLAGS= |
| 5594 | fi |
| 5595 | fi |
| 5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5597 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5598 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 5599 | $as_echo_n "(cached) " >&6 |
| 5600 | else |
| 5601 | ac_cv_prog_cc_c89=no |
| 5602 | ac_save_CC=$CC |
| 5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5604 | /* end confdefs.h. */ |
| 5605 | #include <stdarg.h> |
| 5606 | #include <stdio.h> |
| 5607 | #include <sys/types.h> |
| 5608 | #include <sys/stat.h> |
| 5609 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5610 | struct buf { int x; }; |
| 5611 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5612 | static char *e (p, i) |
| 5613 | char **p; |
| 5614 | int i; |
| 5615 | { |
| 5616 | return p[i]; |
| 5617 | } |
| 5618 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5619 | { |
| 5620 | char *s; |
| 5621 | va_list v; |
| 5622 | va_start (v,p); |
| 5623 | s = g (p, va_arg (v,int)); |
| 5624 | va_end (v); |
| 5625 | return s; |
| 5626 | } |
| 5627 | |
| 5628 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5629 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5630 | These don't provoke an error unfortunately, instead are silently treated |
| 5631 | as 'x'. The following induces an error, until -std is added to get |
| 5632 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5633 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5634 | that's true only with -std. */ |
| 5635 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5636 | |
| 5637 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5638 | inside strings and character constants. */ |
| 5639 | #define FOO(x) 'x' |
| 5640 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5641 | |
| 5642 | int test (int i, double x); |
| 5643 | struct s1 {int (*f) (int a);}; |
| 5644 | struct s2 {int (*f) (double a);}; |
| 5645 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5646 | int argc; |
| 5647 | char **argv; |
| 5648 | int |
| 5649 | main () |
| 5650 | { |
| 5651 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5652 | ; |
| 5653 | return 0; |
| 5654 | } |
| 5655 | _ACEOF |
| 5656 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5657 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5658 | do |
| 5659 | CC="$ac_save_CC $ac_arg" |
| 5660 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5661 | ac_cv_prog_cc_c89=$ac_arg |
| 5662 | fi |
| 5663 | rm -f core conftest.err conftest.$ac_objext |
| 5664 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5665 | done |
| 5666 | rm -f conftest.$ac_ext |
| 5667 | CC=$ac_save_CC |
| 5668 | |
| 5669 | fi |
| 5670 | # AC_CACHE_VAL |
| 5671 | case "x$ac_cv_prog_cc_c89" in |
| 5672 | x) |
| 5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5674 | $as_echo "none needed" >&6; } ;; |
| 5675 | xno) |
| 5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5677 | $as_echo "unsupported" >&6; } ;; |
| 5678 | *) |
| 5679 | CC="$CC $ac_cv_prog_cc_c89" |
| 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5681 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5682 | esac |
| 5683 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5684 | |
| 5685 | fi |
| 5686 | |
| 5687 | ac_ext=cpp |
| 5688 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5692 | |
| 5693 | ac_ext=c |
| 5694 | ac_cpp='$CPP $CPPFLAGS' |
| 5695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5699 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5700 | # On Suns, sometimes $CPP names a directory. |
| 5701 | if test -n "$CPP" && test -d "$CPP"; then |
| 5702 | CPP= |
| 5703 | fi |
| 5704 | if test -z "$CPP"; then |
| 5705 | if ${ac_cv_prog_CPP+:} false; then : |
| 5706 | $as_echo_n "(cached) " >&6 |
| 5707 | else |
| 5708 | # Double quotes because CPP needs to be expanded |
| 5709 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5710 | do |
| 5711 | ac_preproc_ok=false |
| 5712 | for ac_c_preproc_warn_flag in '' yes |
| 5713 | do |
| 5714 | # Use a header file that comes with gcc, so configuring glibc |
| 5715 | # with a fresh cross-compiler works. |
| 5716 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5717 | # <limits.h> exists even on freestanding compilers. |
| 5718 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5719 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5721 | /* end confdefs.h. */ |
| 5722 | #ifdef __STDC__ |
| 5723 | # include <limits.h> |
| 5724 | #else |
| 5725 | # include <assert.h> |
| 5726 | #endif |
| 5727 | Syntax error |
| 5728 | _ACEOF |
| 5729 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5730 | |
| 5731 | else |
| 5732 | # Broken: fails on valid input. |
| 5733 | continue |
| 5734 | fi |
| 5735 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5736 | |
| 5737 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5738 | # can be detected and how. |
| 5739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5740 | /* end confdefs.h. */ |
| 5741 | #include <ac_nonexistent.h> |
| 5742 | _ACEOF |
| 5743 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5744 | # Broken: success on invalid input. |
| 5745 | continue |
| 5746 | else |
| 5747 | # Passes both tests. |
| 5748 | ac_preproc_ok=: |
| 5749 | break |
| 5750 | fi |
| 5751 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5752 | |
| 5753 | done |
| 5754 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5755 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5756 | if $ac_preproc_ok; then : |
| 5757 | break |
| 5758 | fi |
| 5759 | |
| 5760 | done |
| 5761 | ac_cv_prog_CPP=$CPP |
| 5762 | |
| 5763 | fi |
| 5764 | CPP=$ac_cv_prog_CPP |
| 5765 | else |
| 5766 | ac_cv_prog_CPP=$CPP |
| 5767 | fi |
| 5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5769 | $as_echo "$CPP" >&6; } |
| 5770 | ac_preproc_ok=false |
| 5771 | for ac_c_preproc_warn_flag in '' yes |
| 5772 | do |
| 5773 | # Use a header file that comes with gcc, so configuring glibc |
| 5774 | # with a fresh cross-compiler works. |
| 5775 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5776 | # <limits.h> exists even on freestanding compilers. |
| 5777 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5778 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5780 | /* end confdefs.h. */ |
| 5781 | #ifdef __STDC__ |
| 5782 | # include <limits.h> |
| 5783 | #else |
| 5784 | # include <assert.h> |
| 5785 | #endif |
| 5786 | Syntax error |
| 5787 | _ACEOF |
| 5788 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5789 | |
| 5790 | else |
| 5791 | # Broken: fails on valid input. |
| 5792 | continue |
| 5793 | fi |
| 5794 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5795 | |
| 5796 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5797 | # can be detected and how. |
| 5798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5799 | /* end confdefs.h. */ |
| 5800 | #include <ac_nonexistent.h> |
| 5801 | _ACEOF |
| 5802 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5803 | # Broken: success on invalid input. |
| 5804 | continue |
| 5805 | else |
| 5806 | # Passes both tests. |
| 5807 | ac_preproc_ok=: |
| 5808 | break |
| 5809 | fi |
| 5810 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5811 | |
| 5812 | done |
| 5813 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5814 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5815 | if $ac_preproc_ok; then : |
| 5816 | |
| 5817 | else |
| 5818 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5819 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5820 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5821 | See \`config.log' for more details" "$LINENO" 5; } |
| 5822 | fi |
| 5823 | |
| 5824 | ac_ext=cpp |
| 5825 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5829 | |
| 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
| 5831 | $as_echo_n "checking for library containing strerror... " >&6; } |
| 5832 | if ${ac_cv_search_strerror+:} false; then : |
| 5833 | $as_echo_n "(cached) " >&6 |
| 5834 | else |
| 5835 | ac_func_search_save_LIBS=$LIBS |
| 5836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5837 | /* end confdefs.h. */ |
| 5838 | |
| 5839 | /* Override any GCC internal prototype to avoid an error. |
| 5840 | Use char because int might match the return type of a GCC |
| 5841 | builtin and then its argument prototype would still apply. */ |
| 5842 | #ifdef __cplusplus |
| 5843 | extern "C" |
| 5844 | #endif |
| 5845 | char strerror (); |
| 5846 | int |
| 5847 | main () |
| 5848 | { |
| 5849 | return strerror (); |
| 5850 | ; |
| 5851 | return 0; |
| 5852 | } |
| 5853 | _ACEOF |
| 5854 | for ac_lib in '' cposix; do |
| 5855 | if test -z "$ac_lib"; then |
| 5856 | ac_res="none required" |
| 5857 | else |
| 5858 | ac_res=-l$ac_lib |
| 5859 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5860 | fi |
| 5861 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 5862 | ac_cv_search_strerror=$ac_res |
| 5863 | fi |
| 5864 | rm -f core conftest.err conftest.$ac_objext \ |
| 5865 | conftest$ac_exeext |
| 5866 | if ${ac_cv_search_strerror+:} false; then : |
| 5867 | break |
| 5868 | fi |
| 5869 | done |
| 5870 | if ${ac_cv_search_strerror+:} false; then : |
| 5871 | |
| 5872 | else |
| 5873 | ac_cv_search_strerror=no |
| 5874 | fi |
| 5875 | rm conftest.$ac_ext |
| 5876 | LIBS=$ac_func_search_save_LIBS |
| 5877 | fi |
| 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
| 5879 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 5880 | ac_res=$ac_cv_search_strerror |
| 5881 | if test "$ac_res" != no; then : |
| 5882 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 5883 | |
| 5884 | fi |
| 5885 | |
| 5886 | |
| 5887 | |
| 5888 | |
| 5889 | |
| 5890 | # Check whether --with-wininc was given. |
| 5891 | if test "${with_wininc+set}" = set; then : |
| 5892 | withval=$with_wininc; win32inc="$withval" |
| 5893 | else |
| 5894 | win32inc=no |
| 5895 | |
| 5896 | fi |
| 5897 | |
| 5898 | |
| 5899 | # Check whether --with-winlib was given. |
| 5900 | if test "${with_winlib+set}" = set; then : |
| 5901 | withval=$with_winlib; win32lib="$withval" |
| 5902 | else |
| 5903 | win32lib=no |
| 5904 | |
| 5905 | fi |
| 5906 | |
| 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSC environment" >&5 |
| 5908 | $as_echo_n "checking for MSC environment... " >&6; } |
| 5909 | if ${np_cv_prog_msc+:} false; then : |
| 5910 | $as_echo_n "(cached) " >&6 |
| 5911 | else |
| 5912 | |
| 5913 | np_cv_prog_msc=no |
| 5914 | cat > conftest.c <<EOF |
| 5915 | #ifndef _MSC_VER |
| 5916 | #error NOMSC |
| 5917 | #endif |
| 5918 | int main() {} |
| 5919 | EOF |
| 5920 | RET=`cl -nologo -c conftest.c 2>&1` |
| 5921 | case "$RET" in |
| 5922 | conftest.c?) |
| 5923 | np_cv_prog_msc=yes |
| 5924 | ;; |
| 5925 | *) |
| 5926 | ;; |
| 5927 | esac |
| 5928 | |
| 5929 | fi |
| 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $np_cv_prog_msc" >&5 |
| 5931 | $as_echo "$np_cv_prog_msc" >&6; } |
| 5932 | if test "x$np_cv_prog_msc" = "xyes" ; then |
| 5933 | if test "$win32inc" = "no" ; then |
| 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 include dir" >&5 |
| 5935 | $as_echo_n "checking for Win32 include dir... " >&6; } |
| 5936 | |
| 5937 | save_IFS="$IFS" |
| 5938 | win32inc=no |
| 5939 | IFS="," |
| 5940 | ENVVAR=`echo $INCLUDE | tr ';' ','` |
| 5941 | for i in $ENVVAR ; do |
| 5942 | f=`cygpath -u "$i"` |
| 5943 | if test -r "$f/ras.h" ; then |
| 5944 | win32inc="$f" |
| 5945 | break |
| 5946 | fi |
| 5947 | done |
| 5948 | IFS="$save_IFS" |
| 5949 | |
| 5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$win32inc\"" >&5 |
| 5951 | $as_echo "\"$win32inc\"" >&6; } |
| 5952 | fi |
| 5953 | if test "$win32inc" = "no" ; then |
| 5954 | as_fn_error $? "Unable to get Win32 include dir from environment." "$LINENO" 5 |
| 5955 | as_fn_error $? "use --with-wininc=DIR to set it manually" "$LINENO" 5 |
| 5956 | fi |
| 5957 | if test "$win32lib" = "no" ; then |
| 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 lib dir" >&5 |
| 5959 | $as_echo_n "checking for Win32 lib dir... " >&6; } |
| 5960 | |
| 5961 | save_IFS="$IFS" |
| 5962 | win32lib=no |
| 5963 | IFS="," |
| 5964 | ENVVAR=`echo $LIB | tr ';' ','` |
| 5965 | for i in $ENVVAR ; do |
| 5966 | f=`cygpath -u "$i"` |
| 5967 | if test -r "$f/wsock32.lib" ; then |
| 5968 | win32lib="$f" |
| 5969 | break |
| 5970 | fi |
| 5971 | done |
| 5972 | IFS="$save_IFS" |
| 5973 | |
| 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$win32lib\"" >&5 |
| 5975 | $as_echo "\"$win32lib\"" >&6; } |
| 5976 | fi |
| 5977 | if test "$win32lib" = "no" ; then |
| 5978 | as_fn_error $? "Unable to get Win32 lib dir from environment." "$LINENO" 5 |
| 5979 | as_fn_error $? "use --with-winlib=DIR to set it manually" "$LINENO" 5 |
| 5980 | fi |
| 5981 | CC="cl -nologo -GX -D__WIN32__ -D_MT -D_WIN32_WINNT=0x0400 -I$win32inc" |
| 5982 | CXX="cl -nologo -GX -D__WIN32__ -D_MT -D_WIN32_WINNT=0x0400 -I$win32inc" |
| 5983 | LD="link /libpath:$win32lib" |
| 5984 | AS=masm |
| 5985 | fi |
| 5986 | if test $np_cv_prog_msc = yes; then |
| 5987 | MSWIN32_TRUE= |
| 5988 | MSWIN32_FALSE='#' |
| 5989 | else |
| 5990 | MSWIN32_TRUE='#' |
| 5991 | MSWIN32_FALSE= |
| 5992 | fi |
| 5993 | |
| 5994 | |
| 5995 | enable_win32_dll=yes |
| 5996 | |
| 5997 | case $host in |
| 5998 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| 5999 | if test -n "$ac_tool_prefix"; then |
| 6000 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 6001 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6003 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6004 | if ${ac_cv_prog_AS+:} false; then : |
| 6005 | $as_echo_n "(cached) " >&6 |
| 6006 | else |
| 6007 | if test -n "$AS"; then |
| 6008 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 6009 | else |
| 6010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6011 | for as_dir in $PATH |
| 6012 | do |
| 6013 | IFS=$as_save_IFS |
| 6014 | test -z "$as_dir" && as_dir=. |
| 6015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6017 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 6018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6019 | break 2 |
| 6020 | fi |
| 6021 | done |
| 6022 | done |
| 6023 | IFS=$as_save_IFS |
| 6024 | |
| 6025 | fi |
| 6026 | fi |
| 6027 | AS=$ac_cv_prog_AS |
| 6028 | if test -n "$AS"; then |
| 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 6030 | $as_echo "$AS" >&6; } |
| 6031 | else |
| 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6033 | $as_echo "no" >&6; } |
| 6034 | fi |
| 6035 | |
| 6036 | |
| 6037 | fi |
| 6038 | if test -z "$ac_cv_prog_AS"; then |
| 6039 | ac_ct_AS=$AS |
| 6040 | # Extract the first word of "as", so it can be a program name with args. |
| 6041 | set dummy as; ac_word=$2 |
| 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6043 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6044 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
| 6045 | $as_echo_n "(cached) " >&6 |
| 6046 | else |
| 6047 | if test -n "$ac_ct_AS"; then |
| 6048 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 6049 | else |
| 6050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6051 | for as_dir in $PATH |
| 6052 | do |
| 6053 | IFS=$as_save_IFS |
| 6054 | test -z "$as_dir" && as_dir=. |
| 6055 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6057 | ac_cv_prog_ac_ct_AS="as" |
| 6058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6059 | break 2 |
| 6060 | fi |
| 6061 | done |
| 6062 | done |
| 6063 | IFS=$as_save_IFS |
| 6064 | |
| 6065 | fi |
| 6066 | fi |
| 6067 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 6068 | if test -n "$ac_ct_AS"; then |
| 6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 6070 | $as_echo "$ac_ct_AS" >&6; } |
| 6071 | else |
| 6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6073 | $as_echo "no" >&6; } |
| 6074 | fi |
| 6075 | |
| 6076 | if test "x$ac_ct_AS" = x; then |
| 6077 | AS="false" |
| 6078 | else |
| 6079 | case $cross_compiling:$ac_tool_warned in |
| 6080 | yes:) |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6082 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6083 | ac_tool_warned=yes ;; |
| 6084 | esac |
| 6085 | AS=$ac_ct_AS |
| 6086 | fi |
| 6087 | else |
| 6088 | AS="$ac_cv_prog_AS" |
| 6089 | fi |
| 6090 | |
| 6091 | if test -n "$ac_tool_prefix"; then |
| 6092 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6093 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6095 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6096 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 6097 | $as_echo_n "(cached) " >&6 |
| 6098 | else |
| 6099 | if test -n "$DLLTOOL"; then |
| 6100 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6101 | else |
| 6102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6103 | for as_dir in $PATH |
| 6104 | do |
| 6105 | IFS=$as_save_IFS |
| 6106 | test -z "$as_dir" && as_dir=. |
| 6107 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6109 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 6110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6111 | break 2 |
| 6112 | fi |
| 6113 | done |
| 6114 | done |
| 6115 | IFS=$as_save_IFS |
| 6116 | |
| 6117 | fi |
| 6118 | fi |
| 6119 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6120 | if test -n "$DLLTOOL"; then |
| 6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 6122 | $as_echo "$DLLTOOL" >&6; } |
| 6123 | else |
| 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6125 | $as_echo "no" >&6; } |
| 6126 | fi |
| 6127 | |
| 6128 | |
| 6129 | fi |
| 6130 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6131 | ac_ct_DLLTOOL=$DLLTOOL |
| 6132 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6133 | set dummy dlltool; ac_word=$2 |
| 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6135 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6136 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 6137 | $as_echo_n "(cached) " >&6 |
| 6138 | else |
| 6139 | if test -n "$ac_ct_DLLTOOL"; then |
| 6140 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6141 | else |
| 6142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6143 | for as_dir in $PATH |
| 6144 | do |
| 6145 | IFS=$as_save_IFS |
| 6146 | test -z "$as_dir" && as_dir=. |
| 6147 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6149 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 6150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6151 | break 2 |
| 6152 | fi |
| 6153 | done |
| 6154 | done |
| 6155 | IFS=$as_save_IFS |
| 6156 | |
| 6157 | fi |
| 6158 | fi |
| 6159 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6160 | if test -n "$ac_ct_DLLTOOL"; then |
| 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 6162 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 6163 | else |
| 6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6165 | $as_echo "no" >&6; } |
| 6166 | fi |
| 6167 | |
| 6168 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6169 | DLLTOOL="false" |
| 6170 | else |
| 6171 | case $cross_compiling:$ac_tool_warned in |
| 6172 | yes:) |
| 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6174 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6175 | ac_tool_warned=yes ;; |
| 6176 | esac |
| 6177 | DLLTOOL=$ac_ct_DLLTOOL |
| 6178 | fi |
| 6179 | else |
| 6180 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6181 | fi |
| 6182 | |
| 6183 | if test -n "$ac_tool_prefix"; then |
| 6184 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 6185 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6187 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6188 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 6189 | $as_echo_n "(cached) " >&6 |
| 6190 | else |
| 6191 | if test -n "$OBJDUMP"; then |
| 6192 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 6193 | else |
| 6194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6195 | for as_dir in $PATH |
| 6196 | do |
| 6197 | IFS=$as_save_IFS |
| 6198 | test -z "$as_dir" && as_dir=. |
| 6199 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6201 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 6202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6203 | break 2 |
| 6204 | fi |
| 6205 | done |
| 6206 | done |
| 6207 | IFS=$as_save_IFS |
| 6208 | |
| 6209 | fi |
| 6210 | fi |
| 6211 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 6212 | if test -n "$OBJDUMP"; then |
| 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 6214 | $as_echo "$OBJDUMP" >&6; } |
| 6215 | else |
| 6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6217 | $as_echo "no" >&6; } |
| 6218 | fi |
| 6219 | |
| 6220 | |
| 6221 | fi |
| 6222 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 6223 | ac_ct_OBJDUMP=$OBJDUMP |
| 6224 | # Extract the first word of "objdump", so it can be a program name with args. |
| 6225 | set dummy objdump; ac_word=$2 |
| 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6227 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6228 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 6229 | $as_echo_n "(cached) " >&6 |
| 6230 | else |
| 6231 | if test -n "$ac_ct_OBJDUMP"; then |
| 6232 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 6233 | else |
| 6234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6235 | for as_dir in $PATH |
| 6236 | do |
| 6237 | IFS=$as_save_IFS |
| 6238 | test -z "$as_dir" && as_dir=. |
| 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6241 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 6242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6243 | break 2 |
| 6244 | fi |
| 6245 | done |
| 6246 | done |
| 6247 | IFS=$as_save_IFS |
| 6248 | |
| 6249 | fi |
| 6250 | fi |
| 6251 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 6252 | if test -n "$ac_ct_OBJDUMP"; then |
| 6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 6254 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 6255 | else |
| 6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6257 | $as_echo "no" >&6; } |
| 6258 | fi |
| 6259 | |
| 6260 | if test "x$ac_ct_OBJDUMP" = x; then |
| 6261 | OBJDUMP="false" |
| 6262 | else |
| 6263 | case $cross_compiling:$ac_tool_warned in |
| 6264 | yes:) |
| 6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6266 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6267 | ac_tool_warned=yes ;; |
| 6268 | esac |
| 6269 | OBJDUMP=$ac_ct_OBJDUMP |
| 6270 | fi |
| 6271 | else |
| 6272 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 6273 | fi |
| 6274 | |
| 6275 | ;; |
| 6276 | esac |
| 6277 | |
| 6278 | test -z "$AS" && AS=as |
| 6279 | |
| 6280 | |
| 6281 | |
| 6282 | |
| 6283 | |
| 6284 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | case `pwd` in |
| 6299 | *\ * | *\ *) |
| 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 6301 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 6302 | esac |
| 6303 | |
| 6304 | |
| 6305 | |
| 6306 | macro_version='2.4' |
| 6307 | macro_revision='1.3293' |
| 6308 | |
| 6309 | |
| 6310 | |
| 6311 | |
| 6312 | |
| 6313 | |
| 6314 | |
| 6315 | |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | |
| 6320 | |
| 6321 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6322 | |
| 6323 | # Backslashify metacharacters that are still active within |
| 6324 | # double-quoted strings. |
| 6325 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6326 | |
| 6327 | # Same as above, but do not quote variable references. |
| 6328 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6329 | |
| 6330 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6331 | # double_quote_subst'ed string. |
| 6332 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6333 | |
| 6334 | # Sed substitution to delay expansion of an escaped single quote. |
| 6335 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6336 | |
| 6337 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6338 | no_glob_subst='s/\*/\\\*/g' |
| 6339 | |
| 6340 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6341 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6342 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6343 | |
| 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 6345 | $as_echo_n "checking how to print strings... " >&6; } |
| 6346 | # Test print first, because it will be a builtin if present. |
| 6347 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 6348 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6349 | ECHO='print -r --' |
| 6350 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6351 | ECHO='printf %s\n' |
| 6352 | else |
| 6353 | # Use this function as a fallback that always works. |
| 6354 | func_fallback_echo () |
| 6355 | { |
| 6356 | eval 'cat <<_LTECHO_EOF |
| 6357 | $1 |
| 6358 | _LTECHO_EOF' |
| 6359 | } |
| 6360 | ECHO='func_fallback_echo' |
| 6361 | fi |
| 6362 | |
| 6363 | # func_echo_all arg... |
| 6364 | # Invoke $ECHO with all args, space-separated. |
| 6365 | func_echo_all () |
| 6366 | { |
| 6367 | $ECHO "" |
| 6368 | } |
| 6369 | |
| 6370 | case "$ECHO" in |
| 6371 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 6372 | $as_echo "printf" >&6; } ;; |
| 6373 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 6374 | $as_echo "print -r" >&6; } ;; |
| 6375 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 6376 | $as_echo "cat" >&6; } ;; |
| 6377 | esac |
| 6378 | |
| 6379 | |
| 6380 | |
| 6381 | |
| 6382 | |
| 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6393 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6394 | if ${ac_cv_path_SED+:} false; then : |
| 6395 | $as_echo_n "(cached) " >&6 |
| 6396 | else |
| 6397 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6398 | for ac_i in 1 2 3 4 5 6 7; do |
| 6399 | ac_script="$ac_script$as_nl$ac_script" |
| 6400 | done |
| 6401 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6402 | { ac_script=; unset ac_script;} |
| 6403 | if test -z "$SED"; then |
| 6404 | ac_path_SED_found=false |
| 6405 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6407 | for as_dir in $PATH |
| 6408 | do |
| 6409 | IFS=$as_save_IFS |
| 6410 | test -z "$as_dir" && as_dir=. |
| 6411 | for ac_prog in sed gsed; do |
| 6412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6413 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6414 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 6415 | # Check for GNU ac_path_SED and select it if it is found. |
| 6416 | # Check for GNU $ac_path_SED |
| 6417 | case `"$ac_path_SED" --version 2>&1` in |
| 6418 | *GNU*) |
| 6419 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6420 | *) |
| 6421 | ac_count=0 |
| 6422 | $as_echo_n 0123456789 >"conftest.in" |
| 6423 | while : |
| 6424 | do |
| 6425 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6426 | mv "conftest.tmp" "conftest.in" |
| 6427 | cp "conftest.in" "conftest.nl" |
| 6428 | $as_echo '' >> "conftest.nl" |
| 6429 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6430 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6431 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6432 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6433 | # Best one so far, save it but keep looking for a better one |
| 6434 | ac_cv_path_SED="$ac_path_SED" |
| 6435 | ac_path_SED_max=$ac_count |
| 6436 | fi |
| 6437 | # 10*(2^10) chars as input seems more than enough |
| 6438 | test $ac_count -gt 10 && break |
| 6439 | done |
| 6440 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6441 | esac |
| 6442 | |
| 6443 | $ac_path_SED_found && break 3 |
| 6444 | done |
| 6445 | done |
| 6446 | done |
| 6447 | IFS=$as_save_IFS |
| 6448 | if test -z "$ac_cv_path_SED"; then |
| 6449 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6450 | fi |
| 6451 | else |
| 6452 | ac_cv_path_SED=$SED |
| 6453 | fi |
| 6454 | |
| 6455 | fi |
| 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6457 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6458 | SED="$ac_cv_path_SED" |
| 6459 | rm -f conftest.sed |
| 6460 | |
| 6461 | test -z "$SED" && SED=sed |
| 6462 | Xsed="$SED -e 1s/^X//" |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 6475 | $as_echo_n "checking for fgrep... " >&6; } |
| 6476 | if ${ac_cv_path_FGREP+:} false; then : |
| 6477 | $as_echo_n "(cached) " >&6 |
| 6478 | else |
| 6479 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6480 | then ac_cv_path_FGREP="$GREP -F" |
| 6481 | else |
| 6482 | if test -z "$FGREP"; then |
| 6483 | ac_path_FGREP_found=false |
| 6484 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6486 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6487 | do |
| 6488 | IFS=$as_save_IFS |
| 6489 | test -z "$as_dir" && as_dir=. |
| 6490 | for ac_prog in fgrep; do |
| 6491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6492 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6493 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 6494 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 6495 | # Check for GNU $ac_path_FGREP |
| 6496 | case `"$ac_path_FGREP" --version 2>&1` in |
| 6497 | *GNU*) |
| 6498 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6499 | *) |
| 6500 | ac_count=0 |
| 6501 | $as_echo_n 0123456789 >"conftest.in" |
| 6502 | while : |
| 6503 | do |
| 6504 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6505 | mv "conftest.tmp" "conftest.in" |
| 6506 | cp "conftest.in" "conftest.nl" |
| 6507 | $as_echo 'FGREP' >> "conftest.nl" |
| 6508 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6509 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6510 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6511 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6512 | # Best one so far, save it but keep looking for a better one |
| 6513 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 6514 | ac_path_FGREP_max=$ac_count |
| 6515 | fi |
| 6516 | # 10*(2^10) chars as input seems more than enough |
| 6517 | test $ac_count -gt 10 && break |
| 6518 | done |
| 6519 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6520 | esac |
| 6521 | |
| 6522 | $ac_path_FGREP_found && break 3 |
| 6523 | done |
| 6524 | done |
| 6525 | done |
| 6526 | IFS=$as_save_IFS |
| 6527 | if test -z "$ac_cv_path_FGREP"; then |
| 6528 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6529 | fi |
| 6530 | else |
| 6531 | ac_cv_path_FGREP=$FGREP |
| 6532 | fi |
| 6533 | |
| 6534 | fi |
| 6535 | fi |
| 6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 6537 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 6538 | FGREP="$ac_cv_path_FGREP" |
| 6539 | |
| 6540 | |
| 6541 | test -z "$GREP" && GREP=grep |
| 6542 | |
| 6543 | |
| 6544 | |
| 6545 | |
| 6546 | |
| 6547 | |
| 6548 | |
| 6549 | |
| 6550 | |
| 6551 | |
| 6552 | |
| 6553 | |
| 6554 | |
| 6555 | |
| 6556 | |
| 6557 | |
| 6558 | |
| 6559 | |
| 6560 | |
| 6561 | # Check whether --with-gnu-ld was given. |
| 6562 | if test "${with_gnu_ld+set}" = set; then : |
| 6563 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 6564 | else |
| 6565 | with_gnu_ld=no |
| 6566 | fi |
| 6567 | |
| 6568 | ac_prog=ld |
| 6569 | if test "$GCC" = yes; then |
| 6570 | # Check if gcc -print-prog-name=ld gives a path. |
| 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 6572 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 6573 | case $host in |
| 6574 | *-*-mingw*) |
| 6575 | # gcc leaves a trailing carriage return which upsets mingw |
| 6576 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6577 | *) |
| 6578 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6579 | esac |
| 6580 | case $ac_prog in |
| 6581 | # Accept absolute paths. |
| 6582 | [\\/]* | ?:[\\/]*) |
| 6583 | re_direlt='/[^/][^/]*/\.\./' |
| 6584 | # Canonicalize the pathname of ld |
| 6585 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6586 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6587 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6588 | done |
| 6589 | test -z "$LD" && LD="$ac_prog" |
| 6590 | ;; |
| 6591 | "") |
| 6592 | # If it fails, then pretend we aren't using GCC. |
| 6593 | ac_prog=ld |
| 6594 | ;; |
| 6595 | *) |
| 6596 | # If it is relative, then search for the first ld in PATH. |
| 6597 | with_gnu_ld=unknown |
| 6598 | ;; |
| 6599 | esac |
| 6600 | elif test "$with_gnu_ld" = yes; then |
| 6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 6602 | $as_echo_n "checking for GNU ld... " >&6; } |
| 6603 | else |
| 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 6605 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 6606 | fi |
| 6607 | if ${lt_cv_path_LD+:} false; then : |
| 6608 | $as_echo_n "(cached) " >&6 |
| 6609 | else |
| 6610 | if test -z "$LD"; then |
| 6611 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6612 | for ac_dir in $PATH; do |
| 6613 | IFS="$lt_save_ifs" |
| 6614 | test -z "$ac_dir" && ac_dir=. |
| 6615 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6616 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 6617 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6618 | # but apparently some variants of GNU ld only accept -v. |
| 6619 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6620 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6621 | *GNU* | *'with BFD'*) |
| 6622 | test "$with_gnu_ld" != no && break |
| 6623 | ;; |
| 6624 | *) |
| 6625 | test "$with_gnu_ld" != yes && break |
| 6626 | ;; |
| 6627 | esac |
| 6628 | fi |
| 6629 | done |
| 6630 | IFS="$lt_save_ifs" |
| 6631 | else |
| 6632 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 6633 | fi |
| 6634 | fi |
| 6635 | |
| 6636 | LD="$lt_cv_path_LD" |
| 6637 | if test -n "$LD"; then |
| 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 6639 | $as_echo "$LD" >&6; } |
| 6640 | else |
| 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6642 | $as_echo "no" >&6; } |
| 6643 | fi |
| 6644 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 6646 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 6647 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 6648 | $as_echo_n "(cached) " >&6 |
| 6649 | else |
| 6650 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6651 | case `$LD -v 2>&1 </dev/null` in |
| 6652 | *GNU* | *'with BFD'*) |
| 6653 | lt_cv_prog_gnu_ld=yes |
| 6654 | ;; |
| 6655 | *) |
| 6656 | lt_cv_prog_gnu_ld=no |
| 6657 | ;; |
| 6658 | esac |
| 6659 | fi |
| 6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 6661 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 6662 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6663 | |
| 6664 | |
| 6665 | |
| 6666 | |
| 6667 | |
| 6668 | |
| 6669 | |
| 6670 | |
| 6671 | |
| 6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 6673 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 6674 | if ${lt_cv_path_NM+:} false; then : |
| 6675 | $as_echo_n "(cached) " >&6 |
| 6676 | else |
| 6677 | if test -n "$NM"; then |
| 6678 | # Let the user override the test. |
| 6679 | lt_cv_path_NM="$NM" |
| 6680 | else |
| 6681 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6682 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6683 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6684 | fi |
| 6685 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6686 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6687 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6688 | IFS="$lt_save_ifs" |
| 6689 | test -z "$ac_dir" && ac_dir=. |
| 6690 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6691 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6692 | # Check to see if the nm accepts a BSD-compat flag. |
| 6693 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6694 | # nm: unknown option "B" ignored |
| 6695 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6696 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6697 | */dev/null* | *'Invalid file or object type'*) |
| 6698 | lt_cv_path_NM="$tmp_nm -B" |
| 6699 | break |
| 6700 | ;; |
| 6701 | *) |
| 6702 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6703 | */dev/null*) |
| 6704 | lt_cv_path_NM="$tmp_nm -p" |
| 6705 | break |
| 6706 | ;; |
| 6707 | *) |
| 6708 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6709 | continue # so that we can try to find one that supports BSD flags |
| 6710 | ;; |
| 6711 | esac |
| 6712 | ;; |
| 6713 | esac |
| 6714 | fi |
| 6715 | done |
| 6716 | IFS="$lt_save_ifs" |
| 6717 | done |
| 6718 | : ${lt_cv_path_NM=no} |
| 6719 | fi |
| 6720 | fi |
| 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 6722 | $as_echo "$lt_cv_path_NM" >&6; } |
| 6723 | if test "$lt_cv_path_NM" != "no"; then |
| 6724 | NM="$lt_cv_path_NM" |
| 6725 | else |
| 6726 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6727 | if test -n "$DUMPBIN"; then : |
| 6728 | # Let the user override the test. |
| 6729 | else |
| 6730 | if test -n "$ac_tool_prefix"; then |
| 6731 | for ac_prog in dumpbin "link -dump" |
| 6732 | do |
| 6733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6736 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6737 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 6738 | $as_echo_n "(cached) " >&6 |
| 6739 | else |
| 6740 | if test -n "$DUMPBIN"; then |
| 6741 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 6742 | else |
| 6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6744 | for as_dir in $PATH |
| 6745 | do |
| 6746 | IFS=$as_save_IFS |
| 6747 | test -z "$as_dir" && as_dir=. |
| 6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6750 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 6751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6752 | break 2 |
| 6753 | fi |
| 6754 | done |
| 6755 | done |
| 6756 | IFS=$as_save_IFS |
| 6757 | |
| 6758 | fi |
| 6759 | fi |
| 6760 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 6761 | if test -n "$DUMPBIN"; then |
| 6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 6763 | $as_echo "$DUMPBIN" >&6; } |
| 6764 | else |
| 6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6766 | $as_echo "no" >&6; } |
| 6767 | fi |
| 6768 | |
| 6769 | |
| 6770 | test -n "$DUMPBIN" && break |
| 6771 | done |
| 6772 | fi |
| 6773 | if test -z "$DUMPBIN"; then |
| 6774 | ac_ct_DUMPBIN=$DUMPBIN |
| 6775 | for ac_prog in dumpbin "link -dump" |
| 6776 | do |
| 6777 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6778 | set dummy $ac_prog; ac_word=$2 |
| 6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6780 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6781 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 6782 | $as_echo_n "(cached) " >&6 |
| 6783 | else |
| 6784 | if test -n "$ac_ct_DUMPBIN"; then |
| 6785 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6786 | else |
| 6787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6788 | for as_dir in $PATH |
| 6789 | do |
| 6790 | IFS=$as_save_IFS |
| 6791 | test -z "$as_dir" && as_dir=. |
| 6792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6794 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6796 | break 2 |
| 6797 | fi |
| 6798 | done |
| 6799 | done |
| 6800 | IFS=$as_save_IFS |
| 6801 | |
| 6802 | fi |
| 6803 | fi |
| 6804 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6805 | if test -n "$ac_ct_DUMPBIN"; then |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6807 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 6808 | else |
| 6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6810 | $as_echo "no" >&6; } |
| 6811 | fi |
| 6812 | |
| 6813 | |
| 6814 | test -n "$ac_ct_DUMPBIN" && break |
| 6815 | done |
| 6816 | |
| 6817 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6818 | DUMPBIN=":" |
| 6819 | else |
| 6820 | case $cross_compiling:$ac_tool_warned in |
| 6821 | yes:) |
| 6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6824 | ac_tool_warned=yes ;; |
| 6825 | esac |
| 6826 | DUMPBIN=$ac_ct_DUMPBIN |
| 6827 | fi |
| 6828 | fi |
| 6829 | |
| 6830 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 6831 | *COFF*) |
| 6832 | DUMPBIN="$DUMPBIN -symbols" |
| 6833 | ;; |
| 6834 | *) |
| 6835 | DUMPBIN=: |
| 6836 | ;; |
| 6837 | esac |
| 6838 | fi |
| 6839 | |
| 6840 | if test "$DUMPBIN" != ":"; then |
| 6841 | NM="$DUMPBIN" |
| 6842 | fi |
| 6843 | fi |
| 6844 | test -z "$NM" && NM=nm |
| 6845 | |
| 6846 | |
| 6847 | |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6852 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 6853 | if ${lt_cv_nm_interface+:} false; then : |
| 6854 | $as_echo_n "(cached) " >&6 |
| 6855 | else |
| 6856 | lt_cv_nm_interface="BSD nm" |
| 6857 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6858 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6859 | (eval "$ac_compile" 2>conftest.err) |
| 6860 | cat conftest.err >&5 |
| 6861 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6862 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6863 | cat conftest.err >&5 |
| 6864 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6865 | cat conftest.out >&5 |
| 6866 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6867 | lt_cv_nm_interface="MS dumpbin" |
| 6868 | fi |
| 6869 | rm -f conftest* |
| 6870 | fi |
| 6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6872 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 6873 | |
| 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6875 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6876 | LN_S=$as_ln_s |
| 6877 | if test "$LN_S" = "ln -s"; then |
| 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6879 | $as_echo "yes" >&6; } |
| 6880 | else |
| 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6882 | $as_echo "no, using $LN_S" >&6; } |
| 6883 | fi |
| 6884 | |
| 6885 | # find the maximum length of command line arguments |
| 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6887 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 6888 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 6889 | $as_echo_n "(cached) " >&6 |
| 6890 | else |
| 6891 | i=0 |
| 6892 | teststring="ABCD" |
| 6893 | |
| 6894 | case $build_os in |
| 6895 | msdosdjgpp*) |
| 6896 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6897 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6898 | # during glob expansion). Even if it were fixed, the result of this |
| 6899 | # check would be larger than it should be. |
| 6900 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6901 | ;; |
| 6902 | |
| 6903 | gnu*) |
| 6904 | # Under GNU Hurd, this test is not required because there is |
| 6905 | # no limit to the length of command line arguments. |
| 6906 | # Libtool will interpret -1 as no limit whatsoever |
| 6907 | lt_cv_sys_max_cmd_len=-1; |
| 6908 | ;; |
| 6909 | |
| 6910 | cygwin* | mingw* | cegcc*) |
| 6911 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6912 | # about 5 minutes as the teststring grows exponentially. |
| 6913 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6914 | # you end up with a "frozen" computer, even though with patience |
| 6915 | # the test eventually succeeds (with a max line length of 256k). |
| 6916 | # Instead, let's just punt: use the minimum linelength reported by |
| 6917 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6918 | lt_cv_sys_max_cmd_len=8192; |
| 6919 | ;; |
| 6920 | |
| 6921 | mint*) |
| 6922 | # On MiNT this can take a long time and run out of memory. |
| 6923 | lt_cv_sys_max_cmd_len=8192; |
| 6924 | ;; |
| 6925 | |
| 6926 | amigaos*) |
| 6927 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6928 | # So we just punt and use a minimum line length of 8192. |
| 6929 | lt_cv_sys_max_cmd_len=8192; |
| 6930 | ;; |
| 6931 | |
| 6932 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6933 | # This has been around since 386BSD, at least. Likely further. |
| 6934 | if test -x /sbin/sysctl; then |
| 6935 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6936 | elif test -x /usr/sbin/sysctl; then |
| 6937 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6938 | else |
| 6939 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6940 | fi |
| 6941 | # And add a safety zone |
| 6942 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6943 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6944 | ;; |
| 6945 | |
| 6946 | interix*) |
| 6947 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6948 | lt_cv_sys_max_cmd_len=196608 |
| 6949 | ;; |
| 6950 | |
| 6951 | osf*) |
| 6952 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6953 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6954 | # nice to cause kernel panics so lets avoid the loop below. |
| 6955 | # First set a reasonable default. |
| 6956 | lt_cv_sys_max_cmd_len=16384 |
| 6957 | # |
| 6958 | if test -x /sbin/sysconfig; then |
| 6959 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6960 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6961 | esac |
| 6962 | fi |
| 6963 | ;; |
| 6964 | sco3.2v5*) |
| 6965 | lt_cv_sys_max_cmd_len=102400 |
| 6966 | ;; |
| 6967 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6968 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6969 | if test -n "$kargmax"; then |
| 6970 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6971 | else |
| 6972 | lt_cv_sys_max_cmd_len=32768 |
| 6973 | fi |
| 6974 | ;; |
| 6975 | *) |
| 6976 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6977 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6978 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6979 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6980 | else |
| 6981 | # Make teststring a little bigger before we do anything with it. |
| 6982 | # a 1K string should be a reasonable start. |
| 6983 | for i in 1 2 3 4 5 6 7 8 ; do |
| 6984 | teststring=$teststring$teststring |
| 6985 | done |
| 6986 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6987 | # If test is not a shell built-in, we'll probably end up computing a |
| 6988 | # maximum length that is only half of the actual maximum length, but |
| 6989 | # we can't tell. |
| 6990 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 6991 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6992 | test $i != 17 # 1/2 MB should be enough |
| 6993 | do |
| 6994 | i=`expr $i + 1` |
| 6995 | teststring=$teststring$teststring |
| 6996 | done |
| 6997 | # Only check the string length outside the loop. |
| 6998 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6999 | teststring= |
| 7000 | # Add a significant safety factor because C++ compilers can tack on |
| 7001 | # massive amounts of additional arguments before passing them to the |
| 7002 | # linker. It appears as though 1/2 is a usable value. |
| 7003 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 7004 | fi |
| 7005 | ;; |
| 7006 | esac |
| 7007 | |
| 7008 | fi |
| 7009 | |
| 7010 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7012 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 7013 | else |
| 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7015 | $as_echo "none" >&6; } |
| 7016 | fi |
| 7017 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 7018 | |
| 7019 | |
| 7020 | |
| 7021 | |
| 7022 | |
| 7023 | |
| 7024 | : ${CP="cp -f"} |
| 7025 | : ${MV="mv -f"} |
| 7026 | : ${RM="rm -f"} |
| 7027 | |
| 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 7029 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 7030 | # Try some XSI features |
| 7031 | xsi_shell=no |
| 7032 | ( _lt_dummy="a/b/c" |
| 7033 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 7034 | = c,a/b,b/c, \ |
| 7035 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 7036 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 7037 | && xsi_shell=yes |
| 7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 7039 | $as_echo "$xsi_shell" >&6; } |
| 7040 | |
| 7041 | |
| 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 7043 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 7044 | lt_shell_append=no |
| 7045 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 7046 | >/dev/null 2>&1 \ |
| 7047 | && lt_shell_append=yes |
| 7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 7049 | $as_echo "$lt_shell_append" >&6; } |
| 7050 | |
| 7051 | |
| 7052 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 7053 | lt_unset=unset |
| 7054 | else |
| 7055 | lt_unset=false |
| 7056 | fi |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | |
| 7061 | |
| 7062 | # test EBCDIC or ASCII |
| 7063 | case `echo X|tr X '\101'` in |
| 7064 | A) # ASCII based system |
| 7065 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 7066 | lt_SP2NL='tr \040 \012' |
| 7067 | lt_NL2SP='tr \015\012 \040\040' |
| 7068 | ;; |
| 7069 | *) # EBCDIC based system |
| 7070 | lt_SP2NL='tr \100 \n' |
| 7071 | lt_NL2SP='tr \r\n \100\100' |
| 7072 | ;; |
| 7073 | esac |
| 7074 | |
| 7075 | |
| 7076 | |
| 7077 | |
| 7078 | |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | |
| 7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 7084 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 7085 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 7086 | $as_echo_n "(cached) " >&6 |
| 7087 | else |
| 7088 | case $host in |
| 7089 | *-*-mingw* ) |
| 7090 | case $build in |
| 7091 | *-*-mingw* ) # actually msys |
| 7092 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 7093 | ;; |
| 7094 | *-*-cygwin* ) |
| 7095 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 7096 | ;; |
| 7097 | * ) # otherwise, assume *nix |
| 7098 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 7099 | ;; |
| 7100 | esac |
| 7101 | ;; |
| 7102 | *-*-cygwin* ) |
| 7103 | case $build in |
| 7104 | *-*-mingw* ) # actually msys |
| 7105 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 7106 | ;; |
| 7107 | *-*-cygwin* ) |
| 7108 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7109 | ;; |
| 7110 | * ) # otherwise, assume *nix |
| 7111 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 7112 | ;; |
| 7113 | esac |
| 7114 | ;; |
| 7115 | * ) # unhandled hosts (and "normal" native builds) |
| 7116 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7117 | ;; |
| 7118 | esac |
| 7119 | |
| 7120 | fi |
| 7121 | |
| 7122 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 7124 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 7125 | |
| 7126 | |
| 7127 | |
| 7128 | |
| 7129 | |
| 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 7131 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 7132 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 7133 | $as_echo_n "(cached) " >&6 |
| 7134 | else |
| 7135 | #assume ordinary cross tools, or native build. |
| 7136 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7137 | case $host in |
| 7138 | *-*-mingw* ) |
| 7139 | case $build in |
| 7140 | *-*-mingw* ) # actually msys |
| 7141 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7142 | ;; |
| 7143 | esac |
| 7144 | ;; |
| 7145 | esac |
| 7146 | |
| 7147 | fi |
| 7148 | |
| 7149 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 7151 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 7152 | |
| 7153 | |
| 7154 | |
| 7155 | |
| 7156 | |
| 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 7158 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 7159 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 7160 | $as_echo_n "(cached) " >&6 |
| 7161 | else |
| 7162 | lt_cv_ld_reload_flag='-r' |
| 7163 | fi |
| 7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 7165 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 7166 | reload_flag=$lt_cv_ld_reload_flag |
| 7167 | case $reload_flag in |
| 7168 | "" | " "*) ;; |
| 7169 | *) reload_flag=" $reload_flag" ;; |
| 7170 | esac |
| 7171 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7172 | case $host_os in |
| 7173 | cygwin* | mingw* | pw32* | cegcc*) |
| 7174 | if test "$GCC" != yes; then |
| 7175 | reload_cmds=false |
| 7176 | fi |
| 7177 | ;; |
| 7178 | darwin*) |
| 7179 | if test "$GCC" = yes; then |
| 7180 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 7181 | else |
| 7182 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7183 | fi |
| 7184 | ;; |
| 7185 | esac |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | |
| 7191 | |
| 7192 | |
| 7193 | |
| 7194 | |
| 7195 | if test -n "$ac_tool_prefix"; then |
| 7196 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7197 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7199 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7200 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 7201 | $as_echo_n "(cached) " >&6 |
| 7202 | else |
| 7203 | if test -n "$OBJDUMP"; then |
| 7204 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7205 | else |
| 7206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7207 | for as_dir in $PATH |
| 7208 | do |
| 7209 | IFS=$as_save_IFS |
| 7210 | test -z "$as_dir" && as_dir=. |
| 7211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7213 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7215 | break 2 |
| 7216 | fi |
| 7217 | done |
| 7218 | done |
| 7219 | IFS=$as_save_IFS |
| 7220 | |
| 7221 | fi |
| 7222 | fi |
| 7223 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7224 | if test -n "$OBJDUMP"; then |
| 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7226 | $as_echo "$OBJDUMP" >&6; } |
| 7227 | else |
| 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7229 | $as_echo "no" >&6; } |
| 7230 | fi |
| 7231 | |
| 7232 | |
| 7233 | fi |
| 7234 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7235 | ac_ct_OBJDUMP=$OBJDUMP |
| 7236 | # Extract the first word of "objdump", so it can be a program name with args. |
| 7237 | set dummy objdump; ac_word=$2 |
| 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7239 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7240 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 7241 | $as_echo_n "(cached) " >&6 |
| 7242 | else |
| 7243 | if test -n "$ac_ct_OBJDUMP"; then |
| 7244 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7245 | else |
| 7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7247 | for as_dir in $PATH |
| 7248 | do |
| 7249 | IFS=$as_save_IFS |
| 7250 | test -z "$as_dir" && as_dir=. |
| 7251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7253 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7255 | break 2 |
| 7256 | fi |
| 7257 | done |
| 7258 | done |
| 7259 | IFS=$as_save_IFS |
| 7260 | |
| 7261 | fi |
| 7262 | fi |
| 7263 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7264 | if test -n "$ac_ct_OBJDUMP"; then |
| 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7266 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 7267 | else |
| 7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7269 | $as_echo "no" >&6; } |
| 7270 | fi |
| 7271 | |
| 7272 | if test "x$ac_ct_OBJDUMP" = x; then |
| 7273 | OBJDUMP="false" |
| 7274 | else |
| 7275 | case $cross_compiling:$ac_tool_warned in |
| 7276 | yes:) |
| 7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7278 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7279 | ac_tool_warned=yes ;; |
| 7280 | esac |
| 7281 | OBJDUMP=$ac_ct_OBJDUMP |
| 7282 | fi |
| 7283 | else |
| 7284 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7285 | fi |
| 7286 | |
| 7287 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7288 | |
| 7289 | |
| 7290 | |
| 7291 | |
| 7292 | |
| 7293 | |
| 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7295 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 7296 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 7297 | $as_echo_n "(cached) " >&6 |
| 7298 | else |
| 7299 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7300 | lt_cv_file_magic_test_file= |
| 7301 | lt_cv_deplibs_check_method='unknown' |
| 7302 | # Need to set the preceding variable on all platforms that support |
| 7303 | # interlibrary dependencies. |
| 7304 | # 'none' -- dependencies not supported. |
| 7305 | # `unknown' -- same as none, but documents that we really don't know. |
| 7306 | # 'pass_all' -- all dependencies passed with no checks. |
| 7307 | # 'test_compile' -- check by making test program. |
| 7308 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 7309 | # which responds to the $file_magic_cmd with a given extended regex. |
| 7310 | # If you have `file' or equivalent on your system and you're not sure |
| 7311 | # whether `pass_all' will *always* work, you probably want this one. |
| 7312 | |
| 7313 | case $host_os in |
| 7314 | aix[4-9]*) |
| 7315 | lt_cv_deplibs_check_method=pass_all |
| 7316 | ;; |
| 7317 | |
| 7318 | beos*) |
| 7319 | lt_cv_deplibs_check_method=pass_all |
| 7320 | ;; |
| 7321 | |
| 7322 | bsdi[45]*) |
| 7323 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7324 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 7325 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 7326 | ;; |
| 7327 | |
| 7328 | cygwin*) |
| 7329 | # func_win32_libid is a shell function defined in ltmain.sh |
| 7330 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7331 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7332 | ;; |
| 7333 | |
| 7334 | mingw* | pw32*) |
| 7335 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 7336 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7337 | # unless we find 'file', for example because we are cross-compiling. |
| 7338 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 7339 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 7340 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7341 | lt_cv_file_magic_cmd='func_win32_libid' |
| 7342 | else |
| 7343 | # Keep this pattern in sync with the one in func_win32_libid. |
| 7344 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 7345 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7346 | fi |
| 7347 | ;; |
| 7348 | |
| 7349 | cegcc*) |
| 7350 | # use the weaker test based on 'objdump'. See mingw*. |
| 7351 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7352 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7353 | ;; |
| 7354 | |
| 7355 | darwin* | rhapsody*) |
| 7356 | lt_cv_deplibs_check_method=pass_all |
| 7357 | ;; |
| 7358 | |
| 7359 | freebsd* | dragonfly*) |
| 7360 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7361 | case $host_cpu in |
| 7362 | i*86 ) |
| 7363 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 7364 | # Let's accept both of them until this is cleared up. |
| 7365 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7366 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7367 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7368 | ;; |
| 7369 | esac |
| 7370 | else |
| 7371 | lt_cv_deplibs_check_method=pass_all |
| 7372 | fi |
| 7373 | ;; |
| 7374 | |
| 7375 | gnu*) |
| 7376 | lt_cv_deplibs_check_method=pass_all |
| 7377 | ;; |
| 7378 | |
| 7379 | haiku*) |
| 7380 | lt_cv_deplibs_check_method=pass_all |
| 7381 | ;; |
| 7382 | |
| 7383 | hpux10.20* | hpux11*) |
| 7384 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7385 | case $host_cpu in |
| 7386 | ia64*) |
| 7387 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7388 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7389 | ;; |
| 7390 | hppa*64*) |
| 7391 | 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]' |
| 7392 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7393 | ;; |
| 7394 | *) |
| 7395 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7396 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7397 | ;; |
| 7398 | esac |
| 7399 | ;; |
| 7400 | |
| 7401 | interix[3-9]*) |
| 7402 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 7403 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 7404 | ;; |
| 7405 | |
| 7406 | irix5* | irix6* | nonstopux*) |
| 7407 | case $LD in |
| 7408 | *-32|*"-32 ") libmagic=32-bit;; |
| 7409 | *-n32|*"-n32 ") libmagic=N32;; |
| 7410 | *-64|*"-64 ") libmagic=64-bit;; |
| 7411 | *) libmagic=never-match;; |
| 7412 | esac |
| 7413 | lt_cv_deplibs_check_method=pass_all |
| 7414 | ;; |
| 7415 | |
| 7416 | # This must be Linux ELF. |
| 7417 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 7418 | lt_cv_deplibs_check_method=pass_all |
| 7419 | ;; |
| 7420 | |
| 7421 | netbsd* | netbsdelf*-gnu) |
| 7422 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7423 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7424 | else |
| 7425 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 7426 | fi |
| 7427 | ;; |
| 7428 | |
| 7429 | newos6*) |
| 7430 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 7431 | lt_cv_file_magic_cmd=/usr/bin/file |
| 7432 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 7433 | ;; |
| 7434 | |
| 7435 | *nto* | *qnx*) |
| 7436 | lt_cv_deplibs_check_method=pass_all |
| 7437 | ;; |
| 7438 | |
| 7439 | openbsd*) |
| 7440 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7441 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 7442 | else |
| 7443 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 7444 | fi |
| 7445 | ;; |
| 7446 | |
| 7447 | osf3* | osf4* | osf5*) |
| 7448 | lt_cv_deplibs_check_method=pass_all |
| 7449 | ;; |
| 7450 | |
| 7451 | rdos*) |
| 7452 | lt_cv_deplibs_check_method=pass_all |
| 7453 | ;; |
| 7454 | |
| 7455 | solaris*) |
| 7456 | lt_cv_deplibs_check_method=pass_all |
| 7457 | ;; |
| 7458 | |
| 7459 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 7460 | lt_cv_deplibs_check_method=pass_all |
| 7461 | ;; |
| 7462 | |
| 7463 | sysv4 | sysv4.3*) |
| 7464 | case $host_vendor in |
| 7465 | motorola) |
| 7466 | 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]' |
| 7467 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 7468 | ;; |
| 7469 | ncr) |
| 7470 | lt_cv_deplibs_check_method=pass_all |
| 7471 | ;; |
| 7472 | sequent) |
| 7473 | lt_cv_file_magic_cmd='/bin/file' |
| 7474 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 7475 | ;; |
| 7476 | sni) |
| 7477 | lt_cv_file_magic_cmd='/bin/file' |
| 7478 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 7479 | lt_cv_file_magic_test_file=/lib/libc.so |
| 7480 | ;; |
| 7481 | siemens) |
| 7482 | lt_cv_deplibs_check_method=pass_all |
| 7483 | ;; |
| 7484 | pc) |
| 7485 | lt_cv_deplibs_check_method=pass_all |
| 7486 | ;; |
| 7487 | esac |
| 7488 | ;; |
| 7489 | |
| 7490 | tpf*) |
| 7491 | lt_cv_deplibs_check_method=pass_all |
| 7492 | ;; |
| 7493 | esac |
| 7494 | |
| 7495 | fi |
| 7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 7497 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 7498 | |
| 7499 | file_magic_glob= |
| 7500 | want_nocaseglob=no |
| 7501 | if test "$build" = "$host"; then |
| 7502 | case $host_os in |
| 7503 | mingw* | pw32*) |
| 7504 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 7505 | want_nocaseglob=yes |
| 7506 | else |
| 7507 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 7508 | fi |
| 7509 | ;; |
| 7510 | esac |
| 7511 | fi |
| 7512 | |
| 7513 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 7514 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 7515 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 7516 | |
| 7517 | |
| 7518 | |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | |
| 7525 | |
| 7526 | |
| 7527 | |
| 7528 | |
| 7529 | |
| 7530 | |
| 7531 | |
| 7532 | |
| 7533 | |
| 7534 | |
| 7535 | |
| 7536 | |
| 7537 | |
| 7538 | if test -n "$ac_tool_prefix"; then |
| 7539 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 7540 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7542 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7543 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 7544 | $as_echo_n "(cached) " >&6 |
| 7545 | else |
| 7546 | if test -n "$DLLTOOL"; then |
| 7547 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 7548 | else |
| 7549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7550 | for as_dir in $PATH |
| 7551 | do |
| 7552 | IFS=$as_save_IFS |
| 7553 | test -z "$as_dir" && as_dir=. |
| 7554 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7556 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 7557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7558 | break 2 |
| 7559 | fi |
| 7560 | done |
| 7561 | done |
| 7562 | IFS=$as_save_IFS |
| 7563 | |
| 7564 | fi |
| 7565 | fi |
| 7566 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 7567 | if test -n "$DLLTOOL"; then |
| 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 7569 | $as_echo "$DLLTOOL" >&6; } |
| 7570 | else |
| 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7572 | $as_echo "no" >&6; } |
| 7573 | fi |
| 7574 | |
| 7575 | |
| 7576 | fi |
| 7577 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 7578 | ac_ct_DLLTOOL=$DLLTOOL |
| 7579 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 7580 | set dummy dlltool; ac_word=$2 |
| 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7582 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7583 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 7584 | $as_echo_n "(cached) " >&6 |
| 7585 | else |
| 7586 | if test -n "$ac_ct_DLLTOOL"; then |
| 7587 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 7588 | else |
| 7589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7590 | for as_dir in $PATH |
| 7591 | do |
| 7592 | IFS=$as_save_IFS |
| 7593 | test -z "$as_dir" && as_dir=. |
| 7594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7596 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 7597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7598 | break 2 |
| 7599 | fi |
| 7600 | done |
| 7601 | done |
| 7602 | IFS=$as_save_IFS |
| 7603 | |
| 7604 | fi |
| 7605 | fi |
| 7606 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 7607 | if test -n "$ac_ct_DLLTOOL"; then |
| 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 7609 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 7610 | else |
| 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7612 | $as_echo "no" >&6; } |
| 7613 | fi |
| 7614 | |
| 7615 | if test "x$ac_ct_DLLTOOL" = x; then |
| 7616 | DLLTOOL="false" |
| 7617 | else |
| 7618 | case $cross_compiling:$ac_tool_warned in |
| 7619 | yes:) |
| 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7621 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7622 | ac_tool_warned=yes ;; |
| 7623 | esac |
| 7624 | DLLTOOL=$ac_ct_DLLTOOL |
| 7625 | fi |
| 7626 | else |
| 7627 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 7628 | fi |
| 7629 | |
| 7630 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 7639 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 7640 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 7641 | $as_echo_n "(cached) " >&6 |
| 7642 | else |
| 7643 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 7644 | |
| 7645 | case $host_os in |
| 7646 | cygwin* | mingw* | pw32* | cegcc*) |
| 7647 | # two different shell functions defined in ltmain.sh |
| 7648 | # decide which to use based on capabilities of $DLLTOOL |
| 7649 | case `$DLLTOOL --help 2>&1` in |
| 7650 | *--identify-strict*) |
| 7651 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 7652 | ;; |
| 7653 | *) |
| 7654 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 7655 | ;; |
| 7656 | esac |
| 7657 | ;; |
| 7658 | *) |
| 7659 | # fallback: assume linklib IS sharedlib |
| 7660 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 7661 | ;; |
| 7662 | esac |
| 7663 | |
| 7664 | fi |
| 7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 7666 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 7667 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 7668 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 7669 | |
| 7670 | |
| 7671 | |
| 7672 | |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | if test -n "$ac_tool_prefix"; then |
| 7677 | for ac_prog in ar |
| 7678 | do |
| 7679 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7680 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7682 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7683 | if ${ac_cv_prog_AR+:} false; then : |
| 7684 | $as_echo_n "(cached) " >&6 |
| 7685 | else |
| 7686 | if test -n "$AR"; then |
| 7687 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7688 | else |
| 7689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7690 | for as_dir in $PATH |
| 7691 | do |
| 7692 | IFS=$as_save_IFS |
| 7693 | test -z "$as_dir" && as_dir=. |
| 7694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7696 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7698 | break 2 |
| 7699 | fi |
| 7700 | done |
| 7701 | done |
| 7702 | IFS=$as_save_IFS |
| 7703 | |
| 7704 | fi |
| 7705 | fi |
| 7706 | AR=$ac_cv_prog_AR |
| 7707 | if test -n "$AR"; then |
| 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7709 | $as_echo "$AR" >&6; } |
| 7710 | else |
| 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7712 | $as_echo "no" >&6; } |
| 7713 | fi |
| 7714 | |
| 7715 | |
| 7716 | test -n "$AR" && break |
| 7717 | done |
| 7718 | fi |
| 7719 | if test -z "$AR"; then |
| 7720 | ac_ct_AR=$AR |
| 7721 | for ac_prog in ar |
| 7722 | do |
| 7723 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7724 | set dummy $ac_prog; ac_word=$2 |
| 7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7726 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7727 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 7728 | $as_echo_n "(cached) " >&6 |
| 7729 | else |
| 7730 | if test -n "$ac_ct_AR"; then |
| 7731 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7732 | else |
| 7733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7734 | for as_dir in $PATH |
| 7735 | do |
| 7736 | IFS=$as_save_IFS |
| 7737 | test -z "$as_dir" && as_dir=. |
| 7738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7740 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7742 | break 2 |
| 7743 | fi |
| 7744 | done |
| 7745 | done |
| 7746 | IFS=$as_save_IFS |
| 7747 | |
| 7748 | fi |
| 7749 | fi |
| 7750 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7751 | if test -n "$ac_ct_AR"; then |
| 7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7753 | $as_echo "$ac_ct_AR" >&6; } |
| 7754 | else |
| 7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7756 | $as_echo "no" >&6; } |
| 7757 | fi |
| 7758 | |
| 7759 | |
| 7760 | test -n "$ac_ct_AR" && break |
| 7761 | done |
| 7762 | |
| 7763 | if test "x$ac_ct_AR" = x; then |
| 7764 | AR="false" |
| 7765 | else |
| 7766 | case $cross_compiling:$ac_tool_warned in |
| 7767 | yes:) |
| 7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7769 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7770 | ac_tool_warned=yes ;; |
| 7771 | esac |
| 7772 | AR=$ac_ct_AR |
| 7773 | fi |
| 7774 | fi |
| 7775 | |
| 7776 | : ${AR=ar} |
| 7777 | : ${AR_FLAGS=cru} |
| 7778 | |
| 7779 | |
| 7780 | |
| 7781 | |
| 7782 | |
| 7783 | |
| 7784 | |
| 7785 | |
| 7786 | |
| 7787 | |
| 7788 | |
| 7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7790 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 7791 | if ${lt_cv_ar_at_file+:} false; then : |
| 7792 | $as_echo_n "(cached) " >&6 |
| 7793 | else |
| 7794 | lt_cv_ar_at_file=no |
| 7795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7796 | /* end confdefs.h. */ |
| 7797 | |
| 7798 | int |
| 7799 | main () |
| 7800 | { |
| 7801 | |
| 7802 | ; |
| 7803 | return 0; |
| 7804 | } |
| 7805 | _ACEOF |
| 7806 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7807 | echo conftest.$ac_objext > conftest.lst |
| 7808 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7809 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7810 | (eval $lt_ar_try) 2>&5 |
| 7811 | ac_status=$? |
| 7812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7813 | test $ac_status = 0; } |
| 7814 | if test "$ac_status" -eq 0; then |
| 7815 | # Ensure the archiver fails upon bogus file names. |
| 7816 | rm -f conftest.$ac_objext libconftest.a |
| 7817 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7818 | (eval $lt_ar_try) 2>&5 |
| 7819 | ac_status=$? |
| 7820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7821 | test $ac_status = 0; } |
| 7822 | if test "$ac_status" -ne 0; then |
| 7823 | lt_cv_ar_at_file=@ |
| 7824 | fi |
| 7825 | fi |
| 7826 | rm -f conftest.* libconftest.a |
| 7827 | |
| 7828 | fi |
| 7829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7830 | |
| 7831 | fi |
| 7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7833 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 7834 | |
| 7835 | if test "x$lt_cv_ar_at_file" = xno; then |
| 7836 | archiver_list_spec= |
| 7837 | else |
| 7838 | archiver_list_spec=$lt_cv_ar_at_file |
| 7839 | fi |
| 7840 | |
| 7841 | |
| 7842 | |
| 7843 | |
| 7844 | |
| 7845 | |
| 7846 | |
| 7847 | if test -n "$ac_tool_prefix"; then |
| 7848 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7849 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7851 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7852 | if ${ac_cv_prog_STRIP+:} false; then : |
| 7853 | $as_echo_n "(cached) " >&6 |
| 7854 | else |
| 7855 | if test -n "$STRIP"; then |
| 7856 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7857 | else |
| 7858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7859 | for as_dir in $PATH |
| 7860 | do |
| 7861 | IFS=$as_save_IFS |
| 7862 | test -z "$as_dir" && as_dir=. |
| 7863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7865 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7867 | break 2 |
| 7868 | fi |
| 7869 | done |
| 7870 | done |
| 7871 | IFS=$as_save_IFS |
| 7872 | |
| 7873 | fi |
| 7874 | fi |
| 7875 | STRIP=$ac_cv_prog_STRIP |
| 7876 | if test -n "$STRIP"; then |
| 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7878 | $as_echo "$STRIP" >&6; } |
| 7879 | else |
| 7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7881 | $as_echo "no" >&6; } |
| 7882 | fi |
| 7883 | |
| 7884 | |
| 7885 | fi |
| 7886 | if test -z "$ac_cv_prog_STRIP"; then |
| 7887 | ac_ct_STRIP=$STRIP |
| 7888 | # Extract the first word of "strip", so it can be a program name with args. |
| 7889 | set dummy strip; ac_word=$2 |
| 7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7891 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7892 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 7893 | $as_echo_n "(cached) " >&6 |
| 7894 | else |
| 7895 | if test -n "$ac_ct_STRIP"; then |
| 7896 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7897 | else |
| 7898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7899 | for as_dir in $PATH |
| 7900 | do |
| 7901 | IFS=$as_save_IFS |
| 7902 | test -z "$as_dir" && as_dir=. |
| 7903 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7905 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7907 | break 2 |
| 7908 | fi |
| 7909 | done |
| 7910 | done |
| 7911 | IFS=$as_save_IFS |
| 7912 | |
| 7913 | fi |
| 7914 | fi |
| 7915 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7916 | if test -n "$ac_ct_STRIP"; then |
| 7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7918 | $as_echo "$ac_ct_STRIP" >&6; } |
| 7919 | else |
| 7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7921 | $as_echo "no" >&6; } |
| 7922 | fi |
| 7923 | |
| 7924 | if test "x$ac_ct_STRIP" = x; then |
| 7925 | STRIP=":" |
| 7926 | else |
| 7927 | case $cross_compiling:$ac_tool_warned in |
| 7928 | yes:) |
| 7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7930 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7931 | ac_tool_warned=yes ;; |
| 7932 | esac |
| 7933 | STRIP=$ac_ct_STRIP |
| 7934 | fi |
| 7935 | else |
| 7936 | STRIP="$ac_cv_prog_STRIP" |
| 7937 | fi |
| 7938 | |
| 7939 | test -z "$STRIP" && STRIP=: |
| 7940 | |
| 7941 | |
| 7942 | |
| 7943 | |
| 7944 | |
| 7945 | |
| 7946 | if test -n "$ac_tool_prefix"; then |
| 7947 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7948 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7950 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7951 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 7952 | $as_echo_n "(cached) " >&6 |
| 7953 | else |
| 7954 | if test -n "$RANLIB"; then |
| 7955 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7956 | else |
| 7957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7958 | for as_dir in $PATH |
| 7959 | do |
| 7960 | IFS=$as_save_IFS |
| 7961 | test -z "$as_dir" && as_dir=. |
| 7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7964 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7966 | break 2 |
| 7967 | fi |
| 7968 | done |
| 7969 | done |
| 7970 | IFS=$as_save_IFS |
| 7971 | |
| 7972 | fi |
| 7973 | fi |
| 7974 | RANLIB=$ac_cv_prog_RANLIB |
| 7975 | if test -n "$RANLIB"; then |
| 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7977 | $as_echo "$RANLIB" >&6; } |
| 7978 | else |
| 7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7980 | $as_echo "no" >&6; } |
| 7981 | fi |
| 7982 | |
| 7983 | |
| 7984 | fi |
| 7985 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7986 | ac_ct_RANLIB=$RANLIB |
| 7987 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7988 | set dummy ranlib; ac_word=$2 |
| 7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7990 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7991 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 7992 | $as_echo_n "(cached) " >&6 |
| 7993 | else |
| 7994 | if test -n "$ac_ct_RANLIB"; then |
| 7995 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7996 | else |
| 7997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7998 | for as_dir in $PATH |
| 7999 | do |
| 8000 | IFS=$as_save_IFS |
| 8001 | test -z "$as_dir" && as_dir=. |
| 8002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8004 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8006 | break 2 |
| 8007 | fi |
| 8008 | done |
| 8009 | done |
| 8010 | IFS=$as_save_IFS |
| 8011 | |
| 8012 | fi |
| 8013 | fi |
| 8014 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8015 | if test -n "$ac_ct_RANLIB"; then |
| 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 8017 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 8018 | else |
| 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8020 | $as_echo "no" >&6; } |
| 8021 | fi |
| 8022 | |
| 8023 | if test "x$ac_ct_RANLIB" = x; then |
| 8024 | RANLIB=":" |
| 8025 | else |
| 8026 | case $cross_compiling:$ac_tool_warned in |
| 8027 | yes:) |
| 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8029 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8030 | ac_tool_warned=yes ;; |
| 8031 | esac |
| 8032 | RANLIB=$ac_ct_RANLIB |
| 8033 | fi |
| 8034 | else |
| 8035 | RANLIB="$ac_cv_prog_RANLIB" |
| 8036 | fi |
| 8037 | |
| 8038 | test -z "$RANLIB" && RANLIB=: |
| 8039 | |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | |
| 8044 | |
| 8045 | # Determine commands to create old-style static archives. |
| 8046 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 8047 | old_postinstall_cmds='chmod 644 $oldlib' |
| 8048 | old_postuninstall_cmds= |
| 8049 | |
| 8050 | if test -n "$RANLIB"; then |
| 8051 | case $host_os in |
| 8052 | openbsd*) |
| 8053 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 8054 | ;; |
| 8055 | *) |
| 8056 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 8057 | ;; |
| 8058 | esac |
| 8059 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 8060 | fi |
| 8061 | |
| 8062 | case $host_os in |
| 8063 | darwin*) |
| 8064 | lock_old_archive_extraction=yes ;; |
| 8065 | *) |
| 8066 | lock_old_archive_extraction=no ;; |
| 8067 | esac |
| 8068 | |
| 8069 | |
| 8070 | |
| 8071 | |
| 8072 | |
| 8073 | |
| 8074 | |
| 8075 | |
| 8076 | |
| 8077 | |
| 8078 | |
| 8079 | |
| 8080 | |
| 8081 | |
| 8082 | |
| 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | for ac_prog in gawk mawk nawk awk |
| 8090 | do |
| 8091 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8092 | set dummy $ac_prog; ac_word=$2 |
| 8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8094 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8095 | if ${ac_cv_prog_AWK+:} false; then : |
| 8096 | $as_echo_n "(cached) " >&6 |
| 8097 | else |
| 8098 | if test -n "$AWK"; then |
| 8099 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 8100 | else |
| 8101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8102 | for as_dir in $PATH |
| 8103 | do |
| 8104 | IFS=$as_save_IFS |
| 8105 | test -z "$as_dir" && as_dir=. |
| 8106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8108 | ac_cv_prog_AWK="$ac_prog" |
| 8109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8110 | break 2 |
| 8111 | fi |
| 8112 | done |
| 8113 | done |
| 8114 | IFS=$as_save_IFS |
| 8115 | |
| 8116 | fi |
| 8117 | fi |
| 8118 | AWK=$ac_cv_prog_AWK |
| 8119 | if test -n "$AWK"; then |
| 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 8121 | $as_echo "$AWK" >&6; } |
| 8122 | else |
| 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8124 | $as_echo "no" >&6; } |
| 8125 | fi |
| 8126 | |
| 8127 | |
| 8128 | test -n "$AWK" && break |
| 8129 | done |
| 8130 | |
| 8131 | |
| 8132 | |
| 8133 | |
| 8134 | |
| 8135 | |
| 8136 | |
| 8137 | |
| 8138 | |
| 8139 | |
| 8140 | |
| 8141 | |
| 8142 | |
| 8143 | |
| 8144 | |
| 8145 | |
| 8146 | |
| 8147 | |
| 8148 | |
| 8149 | # If no C compiler was specified, use CC. |
| 8150 | LTCC=${LTCC-"$CC"} |
| 8151 | |
| 8152 | # If no C compiler flags were specified, use CFLAGS. |
| 8153 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8154 | |
| 8155 | # Allow CC to be a program name with arguments. |
| 8156 | compiler=$CC |
| 8157 | |
| 8158 | |
| 8159 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8161 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 8162 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 8163 | $as_echo_n "(cached) " >&6 |
| 8164 | else |
| 8165 | |
| 8166 | # These are sane defaults that work on at least a few old systems. |
| 8167 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8168 | |
| 8169 | # Character class describing NM global symbol codes. |
| 8170 | symcode='[BCDEGRST]' |
| 8171 | |
| 8172 | # Regexp to match symbols that can be accessed directly from C. |
| 8173 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8174 | |
| 8175 | # Define system-specific variables. |
| 8176 | case $host_os in |
| 8177 | aix*) |
| 8178 | symcode='[BCDT]' |
| 8179 | ;; |
| 8180 | cygwin* | mingw* | pw32* | cegcc*) |
| 8181 | symcode='[ABCDGISTW]' |
| 8182 | ;; |
| 8183 | hpux*) |
| 8184 | if test "$host_cpu" = ia64; then |
| 8185 | symcode='[ABCDEGRST]' |
| 8186 | fi |
| 8187 | ;; |
| 8188 | irix* | nonstopux*) |
| 8189 | symcode='[BCDEGRST]' |
| 8190 | ;; |
| 8191 | osf*) |
| 8192 | symcode='[BCDEGQRST]' |
| 8193 | ;; |
| 8194 | solaris*) |
| 8195 | symcode='[BDRT]' |
| 8196 | ;; |
| 8197 | sco3.2v5*) |
| 8198 | symcode='[DT]' |
| 8199 | ;; |
| 8200 | sysv4.2uw2*) |
| 8201 | symcode='[DT]' |
| 8202 | ;; |
| 8203 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8204 | symcode='[ABDT]' |
| 8205 | ;; |
| 8206 | sysv4) |
| 8207 | symcode='[DFNSTU]' |
| 8208 | ;; |
| 8209 | esac |
| 8210 | |
| 8211 | # If we're using GNU nm, then use its standard symbol codes. |
| 8212 | case `$NM -V 2>&1` in |
| 8213 | *GNU* | *'with BFD'*) |
| 8214 | symcode='[ABCDGIRSTW]' ;; |
| 8215 | esac |
| 8216 | |
| 8217 | # Transform an extracted symbol line into a proper C declaration. |
| 8218 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 8219 | # so use this general approach. |
| 8220 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8221 | |
| 8222 | # Transform an extracted symbol line into symbol name and symbol address |
| 8223 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 8224 | 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'" |
| 8225 | |
| 8226 | # Handle CRLF in mingw tool chain |
| 8227 | opt_cr= |
| 8228 | case $build_os in |
| 8229 | mingw*) |
| 8230 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8231 | ;; |
| 8232 | esac |
| 8233 | |
| 8234 | # Try without a prefix underscore, then with it. |
| 8235 | for ac_symprfx in "" "_"; do |
| 8236 | |
| 8237 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8238 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8239 | |
| 8240 | # Write the raw and C identifiers. |
| 8241 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8242 | # Fake it for dumpbin and say T for any non-static function |
| 8243 | # and D for any global variable. |
| 8244 | # Also find C++ and __fastcall symbols from MSVC++, |
| 8245 | # which start with @ or ?. |
| 8246 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8247 | " {last_section=section; section=\$ 3};"\ |
| 8248 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8249 | " \$ 0!~/External *\|/{next};"\ |
| 8250 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8251 | " {if(hide[section]) next};"\ |
| 8252 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 8253 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 8254 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 8255 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 8256 | " ' prfx=^$ac_symprfx" |
| 8257 | else |
| 8258 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8259 | fi |
| 8260 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 8261 | |
| 8262 | # Check to see that the pipe works correctly. |
| 8263 | pipe_works=no |
| 8264 | |
| 8265 | rm -f conftest* |
| 8266 | cat > conftest.$ac_ext <<_LT_EOF |
| 8267 | #ifdef __cplusplus |
| 8268 | extern "C" { |
| 8269 | #endif |
| 8270 | char nm_test_var; |
| 8271 | void nm_test_func(void); |
| 8272 | void nm_test_func(void){} |
| 8273 | #ifdef __cplusplus |
| 8274 | } |
| 8275 | #endif |
| 8276 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 8277 | _LT_EOF |
| 8278 | |
| 8279 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8280 | (eval $ac_compile) 2>&5 |
| 8281 | ac_status=$? |
| 8282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8283 | test $ac_status = 0; }; then |
| 8284 | # Now try to grab the symbols. |
| 8285 | nlist=conftest.nm |
| 8286 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 8287 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 8288 | ac_status=$? |
| 8289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8290 | test $ac_status = 0; } && test -s "$nlist"; then |
| 8291 | # Try sorting and uniquifying the output. |
| 8292 | if sort "$nlist" | uniq > "$nlist"T; then |
| 8293 | mv -f "$nlist"T "$nlist" |
| 8294 | else |
| 8295 | rm -f "$nlist"T |
| 8296 | fi |
| 8297 | |
| 8298 | # Make sure that we snagged all the symbols we need. |
| 8299 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8300 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8301 | cat <<_LT_EOF > conftest.$ac_ext |
| 8302 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8303 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 8304 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 8305 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8306 | # define LT_DLSYM_CONST |
| 8307 | #elif defined(__osf__) |
| 8308 | /* This system does not cope well with relocations in const data. */ |
| 8309 | # define LT_DLSYM_CONST |
| 8310 | #else |
| 8311 | # define LT_DLSYM_CONST const |
| 8312 | #endif |
| 8313 | |
| 8314 | #ifdef __cplusplus |
| 8315 | extern "C" { |
| 8316 | #endif |
| 8317 | |
| 8318 | _LT_EOF |
| 8319 | # Now generate the symbol file. |
| 8320 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8321 | |
| 8322 | cat <<_LT_EOF >> conftest.$ac_ext |
| 8323 | |
| 8324 | /* The mapping between symbol names and symbols. */ |
| 8325 | LT_DLSYM_CONST struct { |
| 8326 | const char *name; |
| 8327 | void *address; |
| 8328 | } |
| 8329 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8330 | { |
| 8331 | { "@PROGRAM@", (void *) 0 }, |
| 8332 | _LT_EOF |
| 8333 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8334 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 8335 | {0, (void *) 0} |
| 8336 | }; |
| 8337 | |
| 8338 | /* This works around a problem in FreeBSD linker */ |
| 8339 | #ifdef FREEBSD_WORKAROUND |
| 8340 | static const void *lt_preloaded_setup() { |
| 8341 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 8342 | } |
| 8343 | #endif |
| 8344 | |
| 8345 | #ifdef __cplusplus |
| 8346 | } |
| 8347 | #endif |
| 8348 | _LT_EOF |
| 8349 | # Now try linking the two files. |
| 8350 | mv conftest.$ac_objext conftstm.$ac_objext |
| 8351 | lt_globsym_save_LIBS=$LIBS |
| 8352 | lt_globsym_save_CFLAGS=$CFLAGS |
| 8353 | LIBS="conftstm.$ac_objext" |
| 8354 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8355 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8356 | (eval $ac_link) 2>&5 |
| 8357 | ac_status=$? |
| 8358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8359 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 8360 | pipe_works=yes |
| 8361 | fi |
| 8362 | LIBS=$lt_globsym_save_LIBS |
| 8363 | CFLAGS=$lt_globsym_save_CFLAGS |
| 8364 | else |
| 8365 | echo "cannot find nm_test_func in $nlist" >&5 |
| 8366 | fi |
| 8367 | else |
| 8368 | echo "cannot find nm_test_var in $nlist" >&5 |
| 8369 | fi |
| 8370 | else |
| 8371 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8372 | fi |
| 8373 | else |
| 8374 | echo "$progname: failed program was:" >&5 |
| 8375 | cat conftest.$ac_ext >&5 |
| 8376 | fi |
| 8377 | rm -rf conftest* conftst* |
| 8378 | |
| 8379 | # Do not use the global_symbol_pipe unless it works. |
| 8380 | if test "$pipe_works" = yes; then |
| 8381 | break |
| 8382 | else |
| 8383 | lt_cv_sys_global_symbol_pipe= |
| 8384 | fi |
| 8385 | done |
| 8386 | |
| 8387 | fi |
| 8388 | |
| 8389 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8390 | lt_cv_sys_global_symbol_to_cdecl= |
| 8391 | fi |
| 8392 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8394 | $as_echo "failed" >&6; } |
| 8395 | else |
| 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8397 | $as_echo "ok" >&6; } |
| 8398 | fi |
| 8399 | |
| 8400 | # Response file support. |
| 8401 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8402 | nm_file_list_spec='@' |
| 8403 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8404 | nm_file_list_spec='@' |
| 8405 | fi |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8434 | $as_echo_n "checking for sysroot... " >&6; } |
| 8435 | |
| 8436 | # Check whether --with-sysroot was given. |
| 8437 | if test "${with_sysroot+set}" = set; then : |
| 8438 | withval=$with_sysroot; |
| 8439 | else |
| 8440 | with_sysroot=no |
| 8441 | fi |
| 8442 | |
| 8443 | |
| 8444 | lt_sysroot= |
| 8445 | case ${with_sysroot} in #( |
| 8446 | yes) |
| 8447 | if test "$GCC" = yes; then |
| 8448 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 8449 | fi |
| 8450 | ;; #( |
| 8451 | /*) |
| 8452 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 8453 | ;; #( |
| 8454 | no|'') |
| 8455 | ;; #( |
| 8456 | *) |
| 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 8458 | $as_echo "${with_sysroot}" >&6; } |
| 8459 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 8460 | ;; |
| 8461 | esac |
| 8462 | |
| 8463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 8464 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 8465 | |
| 8466 | |
| 8467 | |
| 8468 | |
| 8469 | |
| 8470 | |
| 8471 | # Check whether --enable-libtool-lock was given. |
| 8472 | if test "${enable_libtool_lock+set}" = set; then : |
| 8473 | enableval=$enable_libtool_lock; |
| 8474 | fi |
| 8475 | |
| 8476 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 8477 | |
| 8478 | # Some flags need to be propagated to the compiler or linker for good |
| 8479 | # libtool support. |
| 8480 | case $host in |
| 8481 | ia64-*-hpux*) |
| 8482 | # Find out which ABI we are using. |
| 8483 | echo 'int i;' > conftest.$ac_ext |
| 8484 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8485 | (eval $ac_compile) 2>&5 |
| 8486 | ac_status=$? |
| 8487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8488 | test $ac_status = 0; }; then |
| 8489 | case `/usr/bin/file conftest.$ac_objext` in |
| 8490 | *ELF-32*) |
| 8491 | HPUX_IA64_MODE="32" |
| 8492 | ;; |
| 8493 | *ELF-64*) |
| 8494 | HPUX_IA64_MODE="64" |
| 8495 | ;; |
| 8496 | esac |
| 8497 | fi |
| 8498 | rm -rf conftest* |
| 8499 | ;; |
| 8500 | *-*-irix6*) |
| 8501 | # Find out which ABI we are using. |
| 8502 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 8503 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8504 | (eval $ac_compile) 2>&5 |
| 8505 | ac_status=$? |
| 8506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8507 | test $ac_status = 0; }; then |
| 8508 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8509 | case `/usr/bin/file conftest.$ac_objext` in |
| 8510 | *32-bit*) |
| 8511 | LD="${LD-ld} -melf32bsmip" |
| 8512 | ;; |
| 8513 | *N32*) |
| 8514 | LD="${LD-ld} -melf32bmipn32" |
| 8515 | ;; |
| 8516 | *64-bit*) |
| 8517 | LD="${LD-ld} -melf64bmip" |
| 8518 | ;; |
| 8519 | esac |
| 8520 | else |
| 8521 | case `/usr/bin/file conftest.$ac_objext` in |
| 8522 | *32-bit*) |
| 8523 | LD="${LD-ld} -32" |
| 8524 | ;; |
| 8525 | *N32*) |
| 8526 | LD="${LD-ld} -n32" |
| 8527 | ;; |
| 8528 | *64-bit*) |
| 8529 | LD="${LD-ld} -64" |
| 8530 | ;; |
| 8531 | esac |
| 8532 | fi |
| 8533 | fi |
| 8534 | rm -rf conftest* |
| 8535 | ;; |
| 8536 | |
| 8537 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 8538 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 8539 | # Find out which ABI we are using. |
| 8540 | echo 'int i;' > conftest.$ac_ext |
| 8541 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8542 | (eval $ac_compile) 2>&5 |
| 8543 | ac_status=$? |
| 8544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8545 | test $ac_status = 0; }; then |
| 8546 | case `/usr/bin/file conftest.o` in |
| 8547 | *32-bit*) |
| 8548 | case $host in |
| 8549 | x86_64-*kfreebsd*-gnu) |
| 8550 | LD="${LD-ld} -m elf_i386_fbsd" |
| 8551 | ;; |
| 8552 | x86_64-*linux*) |
| 8553 | LD="${LD-ld} -m elf_i386" |
| 8554 | ;; |
| 8555 | ppc64-*linux*|powerpc64-*linux*) |
| 8556 | LD="${LD-ld} -m elf32ppclinux" |
| 8557 | ;; |
| 8558 | s390x-*linux*) |
| 8559 | LD="${LD-ld} -m elf_s390" |
| 8560 | ;; |
| 8561 | sparc64-*linux*) |
| 8562 | LD="${LD-ld} -m elf32_sparc" |
| 8563 | ;; |
| 8564 | esac |
| 8565 | ;; |
| 8566 | *64-bit*) |
| 8567 | case $host in |
| 8568 | x86_64-*kfreebsd*-gnu) |
| 8569 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 8570 | ;; |
| 8571 | x86_64-*linux*) |
| 8572 | LD="${LD-ld} -m elf_x86_64" |
| 8573 | ;; |
| 8574 | ppc*-*linux*|powerpc*-*linux*) |
| 8575 | LD="${LD-ld} -m elf64ppc" |
| 8576 | ;; |
| 8577 | s390*-*linux*|s390*-*tpf*) |
| 8578 | LD="${LD-ld} -m elf64_s390" |
| 8579 | ;; |
| 8580 | sparc*-*linux*) |
| 8581 | LD="${LD-ld} -m elf64_sparc" |
| 8582 | ;; |
| 8583 | esac |
| 8584 | ;; |
| 8585 | esac |
| 8586 | fi |
| 8587 | rm -rf conftest* |
| 8588 | ;; |
| 8589 | |
| 8590 | *-*-sco3.2v5*) |
| 8591 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 8592 | SAVE_CFLAGS="$CFLAGS" |
| 8593 | CFLAGS="$CFLAGS -belf" |
| 8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 8595 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 8596 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 8597 | $as_echo_n "(cached) " >&6 |
| 8598 | else |
| 8599 | ac_ext=c |
| 8600 | ac_cpp='$CPP $CPPFLAGS' |
| 8601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8604 | |
| 8605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8606 | /* end confdefs.h. */ |
| 8607 | |
| 8608 | int |
| 8609 | main () |
| 8610 | { |
| 8611 | |
| 8612 | ; |
| 8613 | return 0; |
| 8614 | } |
| 8615 | _ACEOF |
| 8616 | if ac_fn_c_try_link "$LINENO"; then : |
| 8617 | lt_cv_cc_needs_belf=yes |
| 8618 | else |
| 8619 | lt_cv_cc_needs_belf=no |
| 8620 | fi |
| 8621 | rm -f core conftest.err conftest.$ac_objext \ |
| 8622 | conftest$ac_exeext conftest.$ac_ext |
| 8623 | ac_ext=c |
| 8624 | ac_cpp='$CPP $CPPFLAGS' |
| 8625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8628 | |
| 8629 | fi |
| 8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 8631 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 8632 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 8633 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 8634 | CFLAGS="$SAVE_CFLAGS" |
| 8635 | fi |
| 8636 | ;; |
| 8637 | sparc*-*solaris*) |
| 8638 | # Find out which ABI we are using. |
| 8639 | echo 'int i;' > conftest.$ac_ext |
| 8640 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8641 | (eval $ac_compile) 2>&5 |
| 8642 | ac_status=$? |
| 8643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8644 | test $ac_status = 0; }; then |
| 8645 | case `/usr/bin/file conftest.o` in |
| 8646 | *64-bit*) |
| 8647 | case $lt_cv_prog_gnu_ld in |
| 8648 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 8649 | *) |
| 8650 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8651 | LD="${LD-ld} -64" |
| 8652 | fi |
| 8653 | ;; |
| 8654 | esac |
| 8655 | ;; |
| 8656 | esac |
| 8657 | fi |
| 8658 | rm -rf conftest* |
| 8659 | ;; |
| 8660 | esac |
| 8661 | |
| 8662 | need_locks="$enable_libtool_lock" |
| 8663 | |
| 8664 | if test -n "$ac_tool_prefix"; then |
| 8665 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8666 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8668 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8669 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 8670 | $as_echo_n "(cached) " >&6 |
| 8671 | else |
| 8672 | if test -n "$MANIFEST_TOOL"; then |
| 8673 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8674 | else |
| 8675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8676 | for as_dir in $PATH |
| 8677 | do |
| 8678 | IFS=$as_save_IFS |
| 8679 | test -z "$as_dir" && as_dir=. |
| 8680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8682 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8684 | break 2 |
| 8685 | fi |
| 8686 | done |
| 8687 | done |
| 8688 | IFS=$as_save_IFS |
| 8689 | |
| 8690 | fi |
| 8691 | fi |
| 8692 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8693 | if test -n "$MANIFEST_TOOL"; then |
| 8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8695 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 8696 | else |
| 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8698 | $as_echo "no" >&6; } |
| 8699 | fi |
| 8700 | |
| 8701 | |
| 8702 | fi |
| 8703 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8704 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8705 | # Extract the first word of "mt", so it can be a program name with args. |
| 8706 | set dummy mt; ac_word=$2 |
| 8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8708 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8709 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 8710 | $as_echo_n "(cached) " >&6 |
| 8711 | else |
| 8712 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8713 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8714 | else |
| 8715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8716 | for as_dir in $PATH |
| 8717 | do |
| 8718 | IFS=$as_save_IFS |
| 8719 | test -z "$as_dir" && as_dir=. |
| 8720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8722 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8724 | break 2 |
| 8725 | fi |
| 8726 | done |
| 8727 | done |
| 8728 | IFS=$as_save_IFS |
| 8729 | |
| 8730 | fi |
| 8731 | fi |
| 8732 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8733 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8735 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8736 | else |
| 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8738 | $as_echo "no" >&6; } |
| 8739 | fi |
| 8740 | |
| 8741 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8742 | MANIFEST_TOOL=":" |
| 8743 | else |
| 8744 | case $cross_compiling:$ac_tool_warned in |
| 8745 | yes:) |
| 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8747 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8748 | ac_tool_warned=yes ;; |
| 8749 | esac |
| 8750 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8751 | fi |
| 8752 | else |
| 8753 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8754 | fi |
| 8755 | |
| 8756 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8758 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8759 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 8760 | $as_echo_n "(cached) " >&6 |
| 8761 | else |
| 8762 | lt_cv_path_mainfest_tool=no |
| 8763 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8764 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8765 | cat conftest.err >&5 |
| 8766 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8767 | lt_cv_path_mainfest_tool=yes |
| 8768 | fi |
| 8769 | rm -f conftest* |
| 8770 | fi |
| 8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8772 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 8773 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 8774 | MANIFEST_TOOL=: |
| 8775 | fi |
| 8776 | |
| 8777 | |
| 8778 | |
| 8779 | |
| 8780 | |
| 8781 | |
| 8782 | case $host_os in |
| 8783 | rhapsody* | darwin*) |
| 8784 | if test -n "$ac_tool_prefix"; then |
| 8785 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8786 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8788 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8789 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 8790 | $as_echo_n "(cached) " >&6 |
| 8791 | else |
| 8792 | if test -n "$DSYMUTIL"; then |
| 8793 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8794 | else |
| 8795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8796 | for as_dir in $PATH |
| 8797 | do |
| 8798 | IFS=$as_save_IFS |
| 8799 | test -z "$as_dir" && as_dir=. |
| 8800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8802 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8804 | break 2 |
| 8805 | fi |
| 8806 | done |
| 8807 | done |
| 8808 | IFS=$as_save_IFS |
| 8809 | |
| 8810 | fi |
| 8811 | fi |
| 8812 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8813 | if test -n "$DSYMUTIL"; then |
| 8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8815 | $as_echo "$DSYMUTIL" >&6; } |
| 8816 | else |
| 8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8818 | $as_echo "no" >&6; } |
| 8819 | fi |
| 8820 | |
| 8821 | |
| 8822 | fi |
| 8823 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8824 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8825 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8826 | set dummy dsymutil; ac_word=$2 |
| 8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8828 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8829 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 8830 | $as_echo_n "(cached) " >&6 |
| 8831 | else |
| 8832 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8833 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8834 | else |
| 8835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8836 | for as_dir in $PATH |
| 8837 | do |
| 8838 | IFS=$as_save_IFS |
| 8839 | test -z "$as_dir" && as_dir=. |
| 8840 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8842 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8844 | break 2 |
| 8845 | fi |
| 8846 | done |
| 8847 | done |
| 8848 | IFS=$as_save_IFS |
| 8849 | |
| 8850 | fi |
| 8851 | fi |
| 8852 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8853 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8855 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 8856 | else |
| 8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8858 | $as_echo "no" >&6; } |
| 8859 | fi |
| 8860 | |
| 8861 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 8862 | DSYMUTIL=":" |
| 8863 | else |
| 8864 | case $cross_compiling:$ac_tool_warned in |
| 8865 | yes:) |
| 8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8868 | ac_tool_warned=yes ;; |
| 8869 | esac |
| 8870 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 8871 | fi |
| 8872 | else |
| 8873 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 8874 | fi |
| 8875 | |
| 8876 | if test -n "$ac_tool_prefix"; then |
| 8877 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 8878 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8880 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8881 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 8882 | $as_echo_n "(cached) " >&6 |
| 8883 | else |
| 8884 | if test -n "$NMEDIT"; then |
| 8885 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 8886 | else |
| 8887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8888 | for as_dir in $PATH |
| 8889 | do |
| 8890 | IFS=$as_save_IFS |
| 8891 | test -z "$as_dir" && as_dir=. |
| 8892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8894 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 8895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8896 | break 2 |
| 8897 | fi |
| 8898 | done |
| 8899 | done |
| 8900 | IFS=$as_save_IFS |
| 8901 | |
| 8902 | fi |
| 8903 | fi |
| 8904 | NMEDIT=$ac_cv_prog_NMEDIT |
| 8905 | if test -n "$NMEDIT"; then |
| 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 8907 | $as_echo "$NMEDIT" >&6; } |
| 8908 | else |
| 8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8910 | $as_echo "no" >&6; } |
| 8911 | fi |
| 8912 | |
| 8913 | |
| 8914 | fi |
| 8915 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 8916 | ac_ct_NMEDIT=$NMEDIT |
| 8917 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 8918 | set dummy nmedit; ac_word=$2 |
| 8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8920 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8921 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 8922 | $as_echo_n "(cached) " >&6 |
| 8923 | else |
| 8924 | if test -n "$ac_ct_NMEDIT"; then |
| 8925 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 8926 | else |
| 8927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8928 | for as_dir in $PATH |
| 8929 | do |
| 8930 | IFS=$as_save_IFS |
| 8931 | test -z "$as_dir" && as_dir=. |
| 8932 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8934 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 8935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8936 | break 2 |
| 8937 | fi |
| 8938 | done |
| 8939 | done |
| 8940 | IFS=$as_save_IFS |
| 8941 | |
| 8942 | fi |
| 8943 | fi |
| 8944 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 8945 | if test -n "$ac_ct_NMEDIT"; then |
| 8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 8947 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 8948 | else |
| 8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8950 | $as_echo "no" >&6; } |
| 8951 | fi |
| 8952 | |
| 8953 | if test "x$ac_ct_NMEDIT" = x; then |
| 8954 | NMEDIT=":" |
| 8955 | else |
| 8956 | case $cross_compiling:$ac_tool_warned in |
| 8957 | yes:) |
| 8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8959 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8960 | ac_tool_warned=yes ;; |
| 8961 | esac |
| 8962 | NMEDIT=$ac_ct_NMEDIT |
| 8963 | fi |
| 8964 | else |
| 8965 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 8966 | fi |
| 8967 | |
| 8968 | if test -n "$ac_tool_prefix"; then |
| 8969 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 8970 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8972 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8973 | if ${ac_cv_prog_LIPO+:} false; then : |
| 8974 | $as_echo_n "(cached) " >&6 |
| 8975 | else |
| 8976 | if test -n "$LIPO"; then |
| 8977 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 8978 | else |
| 8979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8980 | for as_dir in $PATH |
| 8981 | do |
| 8982 | IFS=$as_save_IFS |
| 8983 | test -z "$as_dir" && as_dir=. |
| 8984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8986 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 8987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8988 | break 2 |
| 8989 | fi |
| 8990 | done |
| 8991 | done |
| 8992 | IFS=$as_save_IFS |
| 8993 | |
| 8994 | fi |
| 8995 | fi |
| 8996 | LIPO=$ac_cv_prog_LIPO |
| 8997 | if test -n "$LIPO"; then |
| 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 8999 | $as_echo "$LIPO" >&6; } |
| 9000 | else |
| 9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9002 | $as_echo "no" >&6; } |
| 9003 | fi |
| 9004 | |
| 9005 | |
| 9006 | fi |
| 9007 | if test -z "$ac_cv_prog_LIPO"; then |
| 9008 | ac_ct_LIPO=$LIPO |
| 9009 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9010 | set dummy lipo; ac_word=$2 |
| 9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9012 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9013 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 9014 | $as_echo_n "(cached) " >&6 |
| 9015 | else |
| 9016 | if test -n "$ac_ct_LIPO"; then |
| 9017 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9018 | else |
| 9019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9020 | for as_dir in $PATH |
| 9021 | do |
| 9022 | IFS=$as_save_IFS |
| 9023 | test -z "$as_dir" && as_dir=. |
| 9024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9026 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 9027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9028 | break 2 |
| 9029 | fi |
| 9030 | done |
| 9031 | done |
| 9032 | IFS=$as_save_IFS |
| 9033 | |
| 9034 | fi |
| 9035 | fi |
| 9036 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9037 | if test -n "$ac_ct_LIPO"; then |
| 9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9039 | $as_echo "$ac_ct_LIPO" >&6; } |
| 9040 | else |
| 9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9042 | $as_echo "no" >&6; } |
| 9043 | fi |
| 9044 | |
| 9045 | if test "x$ac_ct_LIPO" = x; then |
| 9046 | LIPO=":" |
| 9047 | else |
| 9048 | case $cross_compiling:$ac_tool_warned in |
| 9049 | yes:) |
| 9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9051 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9052 | ac_tool_warned=yes ;; |
| 9053 | esac |
| 9054 | LIPO=$ac_ct_LIPO |
| 9055 | fi |
| 9056 | else |
| 9057 | LIPO="$ac_cv_prog_LIPO" |
| 9058 | fi |
| 9059 | |
| 9060 | if test -n "$ac_tool_prefix"; then |
| 9061 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9062 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9064 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9065 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 9066 | $as_echo_n "(cached) " >&6 |
| 9067 | else |
| 9068 | if test -n "$OTOOL"; then |
| 9069 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9070 | else |
| 9071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9072 | for as_dir in $PATH |
| 9073 | do |
| 9074 | IFS=$as_save_IFS |
| 9075 | test -z "$as_dir" && as_dir=. |
| 9076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9078 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9080 | break 2 |
| 9081 | fi |
| 9082 | done |
| 9083 | done |
| 9084 | IFS=$as_save_IFS |
| 9085 | |
| 9086 | fi |
| 9087 | fi |
| 9088 | OTOOL=$ac_cv_prog_OTOOL |
| 9089 | if test -n "$OTOOL"; then |
| 9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9091 | $as_echo "$OTOOL" >&6; } |
| 9092 | else |
| 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9094 | $as_echo "no" >&6; } |
| 9095 | fi |
| 9096 | |
| 9097 | |
| 9098 | fi |
| 9099 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9100 | ac_ct_OTOOL=$OTOOL |
| 9101 | # Extract the first word of "otool", so it can be a program name with args. |
| 9102 | set dummy otool; ac_word=$2 |
| 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9104 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9105 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 9106 | $as_echo_n "(cached) " >&6 |
| 9107 | else |
| 9108 | if test -n "$ac_ct_OTOOL"; then |
| 9109 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9110 | else |
| 9111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9112 | for as_dir in $PATH |
| 9113 | do |
| 9114 | IFS=$as_save_IFS |
| 9115 | test -z "$as_dir" && as_dir=. |
| 9116 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9118 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 9119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9120 | break 2 |
| 9121 | fi |
| 9122 | done |
| 9123 | done |
| 9124 | IFS=$as_save_IFS |
| 9125 | |
| 9126 | fi |
| 9127 | fi |
| 9128 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9129 | if test -n "$ac_ct_OTOOL"; then |
| 9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9131 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 9132 | else |
| 9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9134 | $as_echo "no" >&6; } |
| 9135 | fi |
| 9136 | |
| 9137 | if test "x$ac_ct_OTOOL" = x; then |
| 9138 | OTOOL=":" |
| 9139 | else |
| 9140 | case $cross_compiling:$ac_tool_warned in |
| 9141 | yes:) |
| 9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9143 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9144 | ac_tool_warned=yes ;; |
| 9145 | esac |
| 9146 | OTOOL=$ac_ct_OTOOL |
| 9147 | fi |
| 9148 | else |
| 9149 | OTOOL="$ac_cv_prog_OTOOL" |
| 9150 | fi |
| 9151 | |
| 9152 | if test -n "$ac_tool_prefix"; then |
| 9153 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9154 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9156 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9157 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 9158 | $as_echo_n "(cached) " >&6 |
| 9159 | else |
| 9160 | if test -n "$OTOOL64"; then |
| 9161 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9162 | else |
| 9163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9164 | for as_dir in $PATH |
| 9165 | do |
| 9166 | IFS=$as_save_IFS |
| 9167 | test -z "$as_dir" && as_dir=. |
| 9168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9170 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9172 | break 2 |
| 9173 | fi |
| 9174 | done |
| 9175 | done |
| 9176 | IFS=$as_save_IFS |
| 9177 | |
| 9178 | fi |
| 9179 | fi |
| 9180 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 9181 | if test -n "$OTOOL64"; then |
| 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9183 | $as_echo "$OTOOL64" >&6; } |
| 9184 | else |
| 9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9186 | $as_echo "no" >&6; } |
| 9187 | fi |
| 9188 | |
| 9189 | |
| 9190 | fi |
| 9191 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 9192 | ac_ct_OTOOL64=$OTOOL64 |
| 9193 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9194 | set dummy otool64; ac_word=$2 |
| 9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9196 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9197 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 9198 | $as_echo_n "(cached) " >&6 |
| 9199 | else |
| 9200 | if test -n "$ac_ct_OTOOL64"; then |
| 9201 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9202 | else |
| 9203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9204 | for as_dir in $PATH |
| 9205 | do |
| 9206 | IFS=$as_save_IFS |
| 9207 | test -z "$as_dir" && as_dir=. |
| 9208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9210 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9212 | break 2 |
| 9213 | fi |
| 9214 | done |
| 9215 | done |
| 9216 | IFS=$as_save_IFS |
| 9217 | |
| 9218 | fi |
| 9219 | fi |
| 9220 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9221 | if test -n "$ac_ct_OTOOL64"; then |
| 9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9223 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 9224 | else |
| 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9226 | $as_echo "no" >&6; } |
| 9227 | fi |
| 9228 | |
| 9229 | if test "x$ac_ct_OTOOL64" = x; then |
| 9230 | OTOOL64=":" |
| 9231 | else |
| 9232 | case $cross_compiling:$ac_tool_warned in |
| 9233 | yes:) |
| 9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9236 | ac_tool_warned=yes ;; |
| 9237 | esac |
| 9238 | OTOOL64=$ac_ct_OTOOL64 |
| 9239 | fi |
| 9240 | else |
| 9241 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 9242 | fi |
| 9243 | |
| 9244 | |
| 9245 | |
| 9246 | |
| 9247 | |
| 9248 | |
| 9249 | |
| 9250 | |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9271 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 9272 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 9273 | $as_echo_n "(cached) " >&6 |
| 9274 | else |
| 9275 | lt_cv_apple_cc_single_mod=no |
| 9276 | if test -z "${LT_MULTI_MODULE}"; then |
| 9277 | # By default we will add the -single_module flag. You can override |
| 9278 | # by either setting the environment variable LT_MULTI_MODULE |
| 9279 | # non-empty at configure time, or by adding -multi_module to the |
| 9280 | # link flags. |
| 9281 | rm -rf libconftest.dylib* |
| 9282 | echo "int foo(void){return 1;}" > conftest.c |
| 9283 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9284 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9285 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9286 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9287 | _lt_result=$? |
| 9288 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 9289 | lt_cv_apple_cc_single_mod=yes |
| 9290 | else |
| 9291 | cat conftest.err >&5 |
| 9292 | fi |
| 9293 | rm -rf libconftest.dylib* |
| 9294 | rm -f conftest.* |
| 9295 | fi |
| 9296 | fi |
| 9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9298 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9300 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 9301 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 9302 | $as_echo_n "(cached) " >&6 |
| 9303 | else |
| 9304 | lt_cv_ld_exported_symbols_list=no |
| 9305 | save_LDFLAGS=$LDFLAGS |
| 9306 | echo "_main" > conftest.sym |
| 9307 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9309 | /* end confdefs.h. */ |
| 9310 | |
| 9311 | int |
| 9312 | main () |
| 9313 | { |
| 9314 | |
| 9315 | ; |
| 9316 | return 0; |
| 9317 | } |
| 9318 | _ACEOF |
| 9319 | if ac_fn_c_try_link "$LINENO"; then : |
| 9320 | lt_cv_ld_exported_symbols_list=yes |
| 9321 | else |
| 9322 | lt_cv_ld_exported_symbols_list=no |
| 9323 | fi |
| 9324 | rm -f core conftest.err conftest.$ac_objext \ |
| 9325 | conftest$ac_exeext conftest.$ac_ext |
| 9326 | LDFLAGS="$save_LDFLAGS" |
| 9327 | |
| 9328 | fi |
| 9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9330 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9332 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 9333 | if ${lt_cv_ld_force_load+:} false; then : |
| 9334 | $as_echo_n "(cached) " >&6 |
| 9335 | else |
| 9336 | lt_cv_ld_force_load=no |
| 9337 | cat > conftest.c << _LT_EOF |
| 9338 | int forced_loaded() { return 2;} |
| 9339 | _LT_EOF |
| 9340 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9341 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9342 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 9343 | $AR cru libconftest.a conftest.o 2>&5 |
| 9344 | echo "$RANLIB libconftest.a" >&5 |
| 9345 | $RANLIB libconftest.a 2>&5 |
| 9346 | cat > conftest.c << _LT_EOF |
| 9347 | int main() { return 0;} |
| 9348 | _LT_EOF |
| 9349 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9350 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9351 | _lt_result=$? |
| 9352 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 9353 | lt_cv_ld_force_load=yes |
| 9354 | else |
| 9355 | cat conftest.err >&5 |
| 9356 | fi |
| 9357 | rm -f conftest.err libconftest.a conftest conftest.c |
| 9358 | rm -rf conftest.dSYM |
| 9359 | |
| 9360 | fi |
| 9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9362 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 9363 | case $host_os in |
| 9364 | rhapsody* | darwin1.[012]) |
| 9365 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 9366 | darwin1.*) |
| 9367 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 9368 | darwin*) # darwin 5.x on |
| 9369 | # if running on 10.5 or later, the deployment target defaults |
| 9370 | # to the OS version, if on x86, and 10.4, the deployment |
| 9371 | # target defaults to 10.4. Don't you love it? |
| 9372 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9373 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 9374 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 9375 | 10.[012]*) |
| 9376 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 9377 | 10.*) |
| 9378 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 9379 | esac |
| 9380 | ;; |
| 9381 | esac |
| 9382 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 9383 | _lt_dar_single_mod='$single_module' |
| 9384 | fi |
| 9385 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 9386 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 9387 | else |
| 9388 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9389 | fi |
| 9390 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 9391 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9392 | else |
| 9393 | _lt_dsymutil= |
| 9394 | fi |
| 9395 | ;; |
| 9396 | esac |
| 9397 | |
| 9398 | for ac_header in dlfcn.h |
| 9399 | do : |
| 9400 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9401 | " |
| 9402 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 9403 | cat >>confdefs.h <<_ACEOF |
| 9404 | #define HAVE_DLFCN_H 1 |
| 9405 | _ACEOF |
| 9406 | |
| 9407 | fi |
| 9408 | |
| 9409 | done |
| 9410 | |
| 9411 | |
| 9412 | |
| 9413 | func_stripname_cnf () |
| 9414 | { |
| 9415 | case ${2} in |
| 9416 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 9417 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 9418 | esac |
| 9419 | } # func_stripname_cnf |
| 9420 | |
| 9421 | |
| 9422 | |
| 9423 | |
| 9424 | |
| 9425 | # Set options |
| 9426 | |
| 9427 | |
| 9428 | |
| 9429 | enable_dlopen=no |
| 9430 | |
| 9431 | |
| 9432 | |
| 9433 | # Check whether --enable-shared was given. |
| 9434 | if test "${enable_shared+set}" = set; then : |
| 9435 | enableval=$enable_shared; p=${PACKAGE-default} |
| 9436 | case $enableval in |
| 9437 | yes) enable_shared=yes ;; |
| 9438 | no) enable_shared=no ;; |
| 9439 | *) |
| 9440 | enable_shared=no |
| 9441 | # Look at the argument we got. We use all the common list separators. |
| 9442 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9443 | for pkg in $enableval; do |
| 9444 | IFS="$lt_save_ifs" |
| 9445 | if test "X$pkg" = "X$p"; then |
| 9446 | enable_shared=yes |
| 9447 | fi |
| 9448 | done |
| 9449 | IFS="$lt_save_ifs" |
| 9450 | ;; |
| 9451 | esac |
| 9452 | else |
| 9453 | enable_shared=yes |
| 9454 | fi |
| 9455 | |
| 9456 | |
| 9457 | |
| 9458 | |
| 9459 | |
| 9460 | |
| 9461 | |
| 9462 | |
| 9463 | |
| 9464 | # Check whether --enable-static was given. |
| 9465 | if test "${enable_static+set}" = set; then : |
| 9466 | enableval=$enable_static; p=${PACKAGE-default} |
| 9467 | case $enableval in |
| 9468 | yes) enable_static=yes ;; |
| 9469 | no) enable_static=no ;; |
| 9470 | *) |
| 9471 | enable_static=no |
| 9472 | # Look at the argument we got. We use all the common list separators. |
| 9473 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9474 | for pkg in $enableval; do |
| 9475 | IFS="$lt_save_ifs" |
| 9476 | if test "X$pkg" = "X$p"; then |
| 9477 | enable_static=yes |
| 9478 | fi |
| 9479 | done |
| 9480 | IFS="$lt_save_ifs" |
| 9481 | ;; |
| 9482 | esac |
| 9483 | else |
| 9484 | enable_static=yes |
| 9485 | fi |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | |
| 9490 | |
| 9491 | |
| 9492 | |
| 9493 | |
| 9494 | |
| 9495 | |
| 9496 | # Check whether --with-pic was given. |
| 9497 | if test "${with_pic+set}" = set; then : |
| 9498 | withval=$with_pic; pic_mode="$withval" |
| 9499 | else |
| 9500 | pic_mode=default |
| 9501 | fi |
| 9502 | |
| 9503 | |
| 9504 | test -z "$pic_mode" && pic_mode=default |
| 9505 | |
| 9506 | |
| 9507 | |
| 9508 | |
| 9509 | |
| 9510 | |
| 9511 | |
| 9512 | # Check whether --enable-fast-install was given. |
| 9513 | if test "${enable_fast_install+set}" = set; then : |
| 9514 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 9515 | case $enableval in |
| 9516 | yes) enable_fast_install=yes ;; |
| 9517 | no) enable_fast_install=no ;; |
| 9518 | *) |
| 9519 | enable_fast_install=no |
| 9520 | # Look at the argument we got. We use all the common list separators. |
| 9521 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9522 | for pkg in $enableval; do |
| 9523 | IFS="$lt_save_ifs" |
| 9524 | if test "X$pkg" = "X$p"; then |
| 9525 | enable_fast_install=yes |
| 9526 | fi |
| 9527 | done |
| 9528 | IFS="$lt_save_ifs" |
| 9529 | ;; |
| 9530 | esac |
| 9531 | else |
| 9532 | enable_fast_install=yes |
| 9533 | fi |
| 9534 | |
| 9535 | |
| 9536 | |
| 9537 | |
| 9538 | |
| 9539 | |
| 9540 | |
| 9541 | |
| 9542 | |
| 9543 | |
| 9544 | |
| 9545 | # This can be used to rebuild libtool when needed |
| 9546 | LIBTOOL_DEPS="$ltmain" |
| 9547 | |
| 9548 | # Always use our own libtool. |
| 9549 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 9550 | |
| 9551 | |
| 9552 | |
| 9553 | |
| 9554 | |
| 9555 | |
| 9556 | |
| 9557 | |
| 9558 | |
| 9559 | |
| 9560 | |
| 9561 | |
| 9562 | |
| 9563 | |
| 9564 | |
| 9565 | |
| 9566 | |
| 9567 | |
| 9568 | |
| 9569 | |
| 9570 | |
| 9571 | |
| 9572 | |
| 9573 | |
| 9574 | |
| 9575 | |
| 9576 | test -z "$LN_S" && LN_S="ln -s" |
| 9577 | |
| 9578 | |
| 9579 | |
| 9580 | |
| 9581 | |
| 9582 | |
| 9583 | |
| 9584 | |
| 9585 | |
| 9586 | |
| 9587 | |
| 9588 | |
| 9589 | |
| 9590 | |
| 9591 | if test -n "${ZSH_VERSION+set}" ; then |
| 9592 | setopt NO_GLOB_SUBST |
| 9593 | fi |
| 9594 | |
| 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 9596 | $as_echo_n "checking for objdir... " >&6; } |
| 9597 | if ${lt_cv_objdir+:} false; then : |
| 9598 | $as_echo_n "(cached) " >&6 |
| 9599 | else |
| 9600 | rm -f .libs 2>/dev/null |
| 9601 | mkdir .libs 2>/dev/null |
| 9602 | if test -d .libs; then |
| 9603 | lt_cv_objdir=.libs |
| 9604 | else |
| 9605 | # MS-DOS does not allow filenames that begin with a dot. |
| 9606 | lt_cv_objdir=_libs |
| 9607 | fi |
| 9608 | rmdir .libs 2>/dev/null |
| 9609 | fi |
| 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 9611 | $as_echo "$lt_cv_objdir" >&6; } |
| 9612 | objdir=$lt_cv_objdir |
| 9613 | |
| 9614 | |
| 9615 | |
| 9616 | |
| 9617 | |
| 9618 | cat >>confdefs.h <<_ACEOF |
| 9619 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 9620 | _ACEOF |
| 9621 | |
| 9622 | |
| 9623 | |
| 9624 | |
| 9625 | case $host_os in |
| 9626 | aix3*) |
| 9627 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9628 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9629 | # vanish in a puff of smoke. |
| 9630 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9631 | COLLECT_NAMES= |
| 9632 | export COLLECT_NAMES |
| 9633 | fi |
| 9634 | ;; |
| 9635 | esac |
| 9636 | |
| 9637 | # Global variables: |
| 9638 | ofile=libtool |
| 9639 | can_build_shared=yes |
| 9640 | |
| 9641 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 9642 | # which needs '.lib'). |
| 9643 | libext=a |
| 9644 | |
| 9645 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 9646 | |
| 9647 | old_CC="$CC" |
| 9648 | old_CFLAGS="$CFLAGS" |
| 9649 | |
| 9650 | # Set sane defaults for various variables |
| 9651 | test -z "$CC" && CC=cc |
| 9652 | test -z "$LTCC" && LTCC=$CC |
| 9653 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 9654 | test -z "$LD" && LD=ld |
| 9655 | test -z "$ac_objext" && ac_objext=o |
| 9656 | |
| 9657 | for cc_temp in $compiler""; do |
| 9658 | case $cc_temp in |
| 9659 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 9660 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 9661 | \-*) ;; |
| 9662 | *) break;; |
| 9663 | esac |
| 9664 | done |
| 9665 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 9666 | |
| 9667 | |
| 9668 | # Only perform the check for file, if the check method requires it |
| 9669 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 9670 | case $deplibs_check_method in |
| 9671 | file_magic*) |
| 9672 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 9674 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 9675 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 9676 | $as_echo_n "(cached) " >&6 |
| 9677 | else |
| 9678 | case $MAGIC_CMD in |
| 9679 | [\\/*] | ?:[\\/]*) |
| 9680 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 9681 | ;; |
| 9682 | *) |
| 9683 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 9684 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9685 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9686 | for ac_dir in $ac_dummy; do |
| 9687 | IFS="$lt_save_ifs" |
| 9688 | test -z "$ac_dir" && ac_dir=. |
| 9689 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 9690 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 9691 | if test -n "$file_magic_test_file"; then |
| 9692 | case $deplibs_check_method in |
| 9693 | "file_magic "*) |
| 9694 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9695 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 9696 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9697 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9698 | : |
| 9699 | else |
| 9700 | cat <<_LT_EOF 1>&2 |
| 9701 | |
| 9702 | *** Warning: the command libtool uses to detect shared libraries, |
| 9703 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9704 | *** The result is that libtool may fail to recognize shared libraries |
| 9705 | *** as such. This will affect the creation of libtool libraries that |
| 9706 | *** depend on shared libraries, but programs linked with such libtool |
| 9707 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9708 | *** may want to report the problem to your system manager and/or to |
| 9709 | *** bug-libtool@gnu.org |
| 9710 | |
| 9711 | _LT_EOF |
| 9712 | fi ;; |
| 9713 | esac |
| 9714 | fi |
| 9715 | break |
| 9716 | fi |
| 9717 | done |
| 9718 | IFS="$lt_save_ifs" |
| 9719 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 9720 | ;; |
| 9721 | esac |
| 9722 | fi |
| 9723 | |
| 9724 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 9725 | if test -n "$MAGIC_CMD"; then |
| 9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9727 | $as_echo "$MAGIC_CMD" >&6; } |
| 9728 | else |
| 9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9730 | $as_echo "no" >&6; } |
| 9731 | fi |
| 9732 | |
| 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 9738 | if test -n "$ac_tool_prefix"; then |
| 9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 9740 | $as_echo_n "checking for file... " >&6; } |
| 9741 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 9742 | $as_echo_n "(cached) " >&6 |
| 9743 | else |
| 9744 | case $MAGIC_CMD in |
| 9745 | [\\/*] | ?:[\\/]*) |
| 9746 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 9747 | ;; |
| 9748 | *) |
| 9749 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 9750 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9751 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9752 | for ac_dir in $ac_dummy; do |
| 9753 | IFS="$lt_save_ifs" |
| 9754 | test -z "$ac_dir" && ac_dir=. |
| 9755 | if test -f $ac_dir/file; then |
| 9756 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 9757 | if test -n "$file_magic_test_file"; then |
| 9758 | case $deplibs_check_method in |
| 9759 | "file_magic "*) |
| 9760 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9761 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 9762 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9763 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9764 | : |
| 9765 | else |
| 9766 | cat <<_LT_EOF 1>&2 |
| 9767 | |
| 9768 | *** Warning: the command libtool uses to detect shared libraries, |
| 9769 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9770 | *** The result is that libtool may fail to recognize shared libraries |
| 9771 | *** as such. This will affect the creation of libtool libraries that |
| 9772 | *** depend on shared libraries, but programs linked with such libtool |
| 9773 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9774 | *** may want to report the problem to your system manager and/or to |
| 9775 | *** bug-libtool@gnu.org |
| 9776 | |
| 9777 | _LT_EOF |
| 9778 | fi ;; |
| 9779 | esac |
| 9780 | fi |
| 9781 | break |
| 9782 | fi |
| 9783 | done |
| 9784 | IFS="$lt_save_ifs" |
| 9785 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 9786 | ;; |
| 9787 | esac |
| 9788 | fi |
| 9789 | |
| 9790 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 9791 | if test -n "$MAGIC_CMD"; then |
| 9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9793 | $as_echo "$MAGIC_CMD" >&6; } |
| 9794 | else |
| 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9796 | $as_echo "no" >&6; } |
| 9797 | fi |
| 9798 | |
| 9799 | |
| 9800 | else |
| 9801 | MAGIC_CMD=: |
| 9802 | fi |
| 9803 | fi |
| 9804 | |
| 9805 | fi |
| 9806 | ;; |
| 9807 | esac |
| 9808 | |
| 9809 | # Use C for the default configuration in the libtool script |
| 9810 | |
| 9811 | lt_save_CC="$CC" |
| 9812 | ac_ext=c |
| 9813 | ac_cpp='$CPP $CPPFLAGS' |
| 9814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9817 | |
| 9818 | |
| 9819 | # Source file extension for C test sources. |
| 9820 | ac_ext=c |
| 9821 | |
| 9822 | # Object file extension for compiled C test sources. |
| 9823 | objext=o |
| 9824 | objext=$objext |
| 9825 | |
| 9826 | # Code to be used in simple compile tests |
| 9827 | lt_simple_compile_test_code="int some_variable = 0;" |
| 9828 | |
| 9829 | # Code to be used in simple link tests |
| 9830 | lt_simple_link_test_code='int main(){return(0);}' |
| 9831 | |
| 9832 | |
| 9833 | |
| 9834 | |
| 9835 | |
| 9836 | |
| 9837 | |
| 9838 | # If no C compiler was specified, use CC. |
| 9839 | LTCC=${LTCC-"$CC"} |
| 9840 | |
| 9841 | # If no C compiler flags were specified, use CFLAGS. |
| 9842 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9843 | |
| 9844 | # Allow CC to be a program name with arguments. |
| 9845 | compiler=$CC |
| 9846 | |
| 9847 | # Save the default compiler, since it gets overwritten when the other |
| 9848 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 9849 | compiler_DEFAULT=$CC |
| 9850 | |
| 9851 | # save warnings/boilerplate of simple test code |
| 9852 | ac_outfile=conftest.$ac_objext |
| 9853 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 9854 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9855 | _lt_compiler_boilerplate=`cat conftest.err` |
| 9856 | $RM conftest* |
| 9857 | |
| 9858 | ac_outfile=conftest.$ac_objext |
| 9859 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 9860 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9861 | _lt_linker_boilerplate=`cat conftest.err` |
| 9862 | $RM -r conftest* |
| 9863 | |
| 9864 | |
| 9865 | ## CAVEAT EMPTOR: |
| 9866 | ## There is no encapsulation within the following macros, do not change |
| 9867 | ## the running order or otherwise move them around unless you know exactly |
| 9868 | ## what you are doing... |
| 9869 | if test -n "$compiler"; then |
| 9870 | |
| 9871 | lt_prog_compiler_no_builtin_flag= |
| 9872 | |
| 9873 | if test "$GCC" = yes; then |
| 9874 | case $cc_basename in |
| 9875 | nvcc*) |
| 9876 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 9877 | *) |
| 9878 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 9879 | esac |
| 9880 | |
| 9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 9882 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 9883 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 9884 | $as_echo_n "(cached) " >&6 |
| 9885 | else |
| 9886 | lt_cv_prog_compiler_rtti_exceptions=no |
| 9887 | ac_outfile=conftest.$ac_objext |
| 9888 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9889 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 9890 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9891 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9892 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9893 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9894 | # The option is referenced via a variable to avoid confusing sed. |
| 9895 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9896 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9897 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9898 | -e 's:$: $lt_compiler_flag:'` |
| 9899 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9900 | (eval "$lt_compile" 2>conftest.err) |
| 9901 | ac_status=$? |
| 9902 | cat conftest.err >&5 |
| 9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9904 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9905 | # The compiler can only warn and ignore the option if not recognized |
| 9906 | # So say no if there are warnings other than the usual output. |
| 9907 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9908 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9909 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9910 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 9911 | fi |
| 9912 | fi |
| 9913 | $RM conftest* |
| 9914 | |
| 9915 | fi |
| 9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 9917 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 9918 | |
| 9919 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 9920 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 9921 | else |
| 9922 | : |
| 9923 | fi |
| 9924 | |
| 9925 | fi |
| 9926 | |
| 9927 | |
| 9928 | |
| 9929 | |
| 9930 | |
| 9931 | |
| 9932 | lt_prog_compiler_wl= |
| 9933 | lt_prog_compiler_pic= |
| 9934 | lt_prog_compiler_static= |
| 9935 | |
| 9936 | |
| 9937 | if test "$GCC" = yes; then |
| 9938 | lt_prog_compiler_wl='-Wl,' |
| 9939 | lt_prog_compiler_static='-static' |
| 9940 | |
| 9941 | case $host_os in |
| 9942 | aix*) |
| 9943 | # All AIX code is PIC. |
| 9944 | if test "$host_cpu" = ia64; then |
| 9945 | # AIX 5 now supports IA64 processor |
| 9946 | lt_prog_compiler_static='-Bstatic' |
| 9947 | fi |
| 9948 | ;; |
| 9949 | |
| 9950 | amigaos*) |
| 9951 | case $host_cpu in |
| 9952 | powerpc) |
| 9953 | # see comment about AmigaOS4 .so support |
| 9954 | lt_prog_compiler_pic='-fPIC' |
| 9955 | ;; |
| 9956 | m68k) |
| 9957 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 9958 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 9959 | # like `-m68040'. |
| 9960 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 9961 | ;; |
| 9962 | esac |
| 9963 | ;; |
| 9964 | |
| 9965 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 9966 | # PIC is the default for these OSes. |
| 9967 | ;; |
| 9968 | |
| 9969 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 9970 | # This hack is so that the source file can tell whether it is being |
| 9971 | # built for inclusion in a dll (and should export symbols for example). |
| 9972 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 9973 | # (--disable-auto-import) libraries |
| 9974 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 9975 | ;; |
| 9976 | |
| 9977 | darwin* | rhapsody*) |
| 9978 | # PIC is the default on this platform |
| 9979 | # Common symbols not allowed in MH_DYLIB files |
| 9980 | lt_prog_compiler_pic='-fno-common' |
| 9981 | ;; |
| 9982 | |
| 9983 | haiku*) |
| 9984 | # PIC is the default for Haiku. |
| 9985 | # The "-static" flag exists, but is broken. |
| 9986 | lt_prog_compiler_static= |
| 9987 | ;; |
| 9988 | |
| 9989 | hpux*) |
| 9990 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 9991 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 9992 | # sets the default TLS model and affects inlining. |
| 9993 | case $host_cpu in |
| 9994 | hppa*64*) |
| 9995 | # +Z the default |
| 9996 | ;; |
| 9997 | *) |
| 9998 | lt_prog_compiler_pic='-fPIC' |
| 9999 | ;; |
| 10000 | esac |
| 10001 | ;; |
| 10002 | |
| 10003 | interix[3-9]*) |
| 10004 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10005 | # Instead, we relocate shared libraries at runtime. |
| 10006 | ;; |
| 10007 | |
| 10008 | msdosdjgpp*) |
| 10009 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10010 | # on systems that don't support them. |
| 10011 | lt_prog_compiler_can_build_shared=no |
| 10012 | enable_shared=no |
| 10013 | ;; |
| 10014 | |
| 10015 | *nto* | *qnx*) |
| 10016 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10017 | # it will coredump. |
| 10018 | lt_prog_compiler_pic='-fPIC -shared' |
| 10019 | ;; |
| 10020 | |
| 10021 | sysv4*MP*) |
| 10022 | if test -d /usr/nec; then |
| 10023 | lt_prog_compiler_pic=-Kconform_pic |
| 10024 | fi |
| 10025 | ;; |
| 10026 | |
| 10027 | *) |
| 10028 | lt_prog_compiler_pic='-fPIC' |
| 10029 | ;; |
| 10030 | esac |
| 10031 | |
| 10032 | case $cc_basename in |
| 10033 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10034 | lt_prog_compiler_wl='-Xlinker ' |
| 10035 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 10036 | ;; |
| 10037 | esac |
| 10038 | else |
| 10039 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 10040 | case $host_os in |
| 10041 | aix*) |
| 10042 | lt_prog_compiler_wl='-Wl,' |
| 10043 | if test "$host_cpu" = ia64; then |
| 10044 | # AIX 5 now supports IA64 processor |
| 10045 | lt_prog_compiler_static='-Bstatic' |
| 10046 | else |
| 10047 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 10048 | fi |
| 10049 | ;; |
| 10050 | |
| 10051 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10052 | # This hack is so that the source file can tell whether it is being |
| 10053 | # built for inclusion in a dll (and should export symbols for example). |
| 10054 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10055 | ;; |
| 10056 | |
| 10057 | hpux9* | hpux10* | hpux11*) |
| 10058 | lt_prog_compiler_wl='-Wl,' |
| 10059 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10060 | # not for PA HP-UX. |
| 10061 | case $host_cpu in |
| 10062 | hppa*64*|ia64*) |
| 10063 | # +Z the default |
| 10064 | ;; |
| 10065 | *) |
| 10066 | lt_prog_compiler_pic='+Z' |
| 10067 | ;; |
| 10068 | esac |
| 10069 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10070 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 10071 | ;; |
| 10072 | |
| 10073 | irix5* | irix6* | nonstopux*) |
| 10074 | lt_prog_compiler_wl='-Wl,' |
| 10075 | # PIC (with -KPIC) is the default. |
| 10076 | lt_prog_compiler_static='-non_shared' |
| 10077 | ;; |
| 10078 | |
| 10079 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10080 | case $cc_basename in |
| 10081 | # old Intel for x86_64 which still supported -KPIC. |
| 10082 | ecc*) |
| 10083 | lt_prog_compiler_wl='-Wl,' |
| 10084 | lt_prog_compiler_pic='-KPIC' |
| 10085 | lt_prog_compiler_static='-static' |
| 10086 | ;; |
| 10087 | # icc used to be incompatible with GCC. |
| 10088 | # ICC 10 doesn't accept -KPIC any more. |
| 10089 | icc* | ifort*) |
| 10090 | lt_prog_compiler_wl='-Wl,' |
| 10091 | lt_prog_compiler_pic='-fPIC' |
| 10092 | lt_prog_compiler_static='-static' |
| 10093 | ;; |
| 10094 | # Lahey Fortran 8.1. |
| 10095 | lf95*) |
| 10096 | lt_prog_compiler_wl='-Wl,' |
| 10097 | lt_prog_compiler_pic='--shared' |
| 10098 | lt_prog_compiler_static='--static' |
| 10099 | ;; |
| 10100 | nagfor*) |
| 10101 | # NAG Fortran compiler |
| 10102 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10103 | lt_prog_compiler_pic='-PIC' |
| 10104 | lt_prog_compiler_static='-Bstatic' |
| 10105 | ;; |
| 10106 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10107 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 10108 | # which looks to be a dead project) |
| 10109 | lt_prog_compiler_wl='-Wl,' |
| 10110 | lt_prog_compiler_pic='-fpic' |
| 10111 | lt_prog_compiler_static='-Bstatic' |
| 10112 | ;; |
| 10113 | ccc*) |
| 10114 | lt_prog_compiler_wl='-Wl,' |
| 10115 | # All Alpha code is PIC. |
| 10116 | lt_prog_compiler_static='-non_shared' |
| 10117 | ;; |
| 10118 | xl* | bgxl* | bgf* | mpixl*) |
| 10119 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10120 | lt_prog_compiler_wl='-Wl,' |
| 10121 | lt_prog_compiler_pic='-qpic' |
| 10122 | lt_prog_compiler_static='-qstaticlink' |
| 10123 | ;; |
| 10124 | *) |
| 10125 | case `$CC -V 2>&1 | sed 5q` in |
| 10126 | *Sun\ F* | *Sun*Fortran*) |
| 10127 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10128 | lt_prog_compiler_pic='-KPIC' |
| 10129 | lt_prog_compiler_static='-Bstatic' |
| 10130 | lt_prog_compiler_wl='' |
| 10131 | ;; |
| 10132 | *Sun\ C*) |
| 10133 | # Sun C 5.9 |
| 10134 | lt_prog_compiler_pic='-KPIC' |
| 10135 | lt_prog_compiler_static='-Bstatic' |
| 10136 | lt_prog_compiler_wl='-Wl,' |
| 10137 | ;; |
| 10138 | esac |
| 10139 | ;; |
| 10140 | esac |
| 10141 | ;; |
| 10142 | |
| 10143 | newsos6) |
| 10144 | lt_prog_compiler_pic='-KPIC' |
| 10145 | lt_prog_compiler_static='-Bstatic' |
| 10146 | ;; |
| 10147 | |
| 10148 | *nto* | *qnx*) |
| 10149 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10150 | # it will coredump. |
| 10151 | lt_prog_compiler_pic='-fPIC -shared' |
| 10152 | ;; |
| 10153 | |
| 10154 | osf3* | osf4* | osf5*) |
| 10155 | lt_prog_compiler_wl='-Wl,' |
| 10156 | # All OSF/1 code is PIC. |
| 10157 | lt_prog_compiler_static='-non_shared' |
| 10158 | ;; |
| 10159 | |
| 10160 | rdos*) |
| 10161 | lt_prog_compiler_static='-non_shared' |
| 10162 | ;; |
| 10163 | |
| 10164 | solaris*) |
| 10165 | lt_prog_compiler_pic='-KPIC' |
| 10166 | lt_prog_compiler_static='-Bstatic' |
| 10167 | case $cc_basename in |
| 10168 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10169 | lt_prog_compiler_wl='-Qoption ld ';; |
| 10170 | *) |
| 10171 | lt_prog_compiler_wl='-Wl,';; |
| 10172 | esac |
| 10173 | ;; |
| 10174 | |
| 10175 | sunos4*) |
| 10176 | lt_prog_compiler_wl='-Qoption ld ' |
| 10177 | lt_prog_compiler_pic='-PIC' |
| 10178 | lt_prog_compiler_static='-Bstatic' |
| 10179 | ;; |
| 10180 | |
| 10181 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10182 | lt_prog_compiler_wl='-Wl,' |
| 10183 | lt_prog_compiler_pic='-KPIC' |
| 10184 | lt_prog_compiler_static='-Bstatic' |
| 10185 | ;; |
| 10186 | |
| 10187 | sysv4*MP*) |
| 10188 | if test -d /usr/nec ;then |
| 10189 | lt_prog_compiler_pic='-Kconform_pic' |
| 10190 | lt_prog_compiler_static='-Bstatic' |
| 10191 | fi |
| 10192 | ;; |
| 10193 | |
| 10194 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10195 | lt_prog_compiler_wl='-Wl,' |
| 10196 | lt_prog_compiler_pic='-KPIC' |
| 10197 | lt_prog_compiler_static='-Bstatic' |
| 10198 | ;; |
| 10199 | |
| 10200 | unicos*) |
| 10201 | lt_prog_compiler_wl='-Wl,' |
| 10202 | lt_prog_compiler_can_build_shared=no |
| 10203 | ;; |
| 10204 | |
| 10205 | uts4*) |
| 10206 | lt_prog_compiler_pic='-pic' |
| 10207 | lt_prog_compiler_static='-Bstatic' |
| 10208 | ;; |
| 10209 | |
| 10210 | *) |
| 10211 | lt_prog_compiler_can_build_shared=no |
| 10212 | ;; |
| 10213 | esac |
| 10214 | fi |
| 10215 | |
| 10216 | case $host_os in |
| 10217 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10218 | *djgpp*) |
| 10219 | lt_prog_compiler_pic= |
| 10220 | ;; |
| 10221 | *) |
| 10222 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10223 | ;; |
| 10224 | esac |
| 10225 | |
| 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10227 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 10228 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 10229 | $as_echo_n "(cached) " >&6 |
| 10230 | else |
| 10231 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10232 | fi |
| 10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10234 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 10235 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10236 | |
| 10237 | # |
| 10238 | # Check to make sure the PIC flag actually works. |
| 10239 | # |
| 10240 | if test -n "$lt_prog_compiler_pic"; then |
| 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10242 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10243 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 10244 | $as_echo_n "(cached) " >&6 |
| 10245 | else |
| 10246 | lt_cv_prog_compiler_pic_works=no |
| 10247 | ac_outfile=conftest.$ac_objext |
| 10248 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10249 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 10250 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10251 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10252 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10253 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10254 | # The option is referenced via a variable to avoid confusing sed. |
| 10255 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10256 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10257 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10258 | -e 's:$: $lt_compiler_flag:'` |
| 10259 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10260 | (eval "$lt_compile" 2>conftest.err) |
| 10261 | ac_status=$? |
| 10262 | cat conftest.err >&5 |
| 10263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10264 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10265 | # The compiler can only warn and ignore the option if not recognized |
| 10266 | # So say no if there are warnings other than the usual output. |
| 10267 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10268 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10269 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10270 | lt_cv_prog_compiler_pic_works=yes |
| 10271 | fi |
| 10272 | fi |
| 10273 | $RM conftest* |
| 10274 | |
| 10275 | fi |
| 10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10277 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10278 | |
| 10279 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 10280 | case $lt_prog_compiler_pic in |
| 10281 | "" | " "*) ;; |
| 10282 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10283 | esac |
| 10284 | else |
| 10285 | lt_prog_compiler_pic= |
| 10286 | lt_prog_compiler_can_build_shared=no |
| 10287 | fi |
| 10288 | |
| 10289 | fi |
| 10290 | |
| 10291 | |
| 10292 | |
| 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
| 10297 | |
| 10298 | |
| 10299 | |
| 10300 | |
| 10301 | # |
| 10302 | # Check to make sure the static flag actually works. |
| 10303 | # |
| 10304 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10306 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10307 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 10308 | $as_echo_n "(cached) " >&6 |
| 10309 | else |
| 10310 | lt_cv_prog_compiler_static_works=no |
| 10311 | save_LDFLAGS="$LDFLAGS" |
| 10312 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10313 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10314 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10315 | # The linker can only warn and ignore the option if not recognized |
| 10316 | # So say no if there are warnings |
| 10317 | if test -s conftest.err; then |
| 10318 | # Append any errors to the config.log. |
| 10319 | cat conftest.err 1>&5 |
| 10320 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10321 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10322 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10323 | lt_cv_prog_compiler_static_works=yes |
| 10324 | fi |
| 10325 | else |
| 10326 | lt_cv_prog_compiler_static_works=yes |
| 10327 | fi |
| 10328 | fi |
| 10329 | $RM -r conftest* |
| 10330 | LDFLAGS="$save_LDFLAGS" |
| 10331 | |
| 10332 | fi |
| 10333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10334 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 10335 | |
| 10336 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 10337 | : |
| 10338 | else |
| 10339 | lt_prog_compiler_static= |
| 10340 | fi |
| 10341 | |
| 10342 | |
| 10343 | |
| 10344 | |
| 10345 | |
| 10346 | |
| 10347 | |
| 10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10349 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10350 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10351 | $as_echo_n "(cached) " >&6 |
| 10352 | else |
| 10353 | lt_cv_prog_compiler_c_o=no |
| 10354 | $RM -r conftest 2>/dev/null |
| 10355 | mkdir conftest |
| 10356 | cd conftest |
| 10357 | mkdir out |
| 10358 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10359 | |
| 10360 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10361 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10362 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10363 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10365 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10366 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10367 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10368 | -e 's:$: $lt_compiler_flag:'` |
| 10369 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10370 | (eval "$lt_compile" 2>out/conftest.err) |
| 10371 | ac_status=$? |
| 10372 | cat out/conftest.err >&5 |
| 10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10374 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10375 | then |
| 10376 | # The compiler can only warn and ignore the option if not recognized |
| 10377 | # So say no if there are warnings |
| 10378 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10379 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10380 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10381 | lt_cv_prog_compiler_c_o=yes |
| 10382 | fi |
| 10383 | fi |
| 10384 | chmod u+w . 2>&5 |
| 10385 | $RM conftest* |
| 10386 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10387 | # template instantiation |
| 10388 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10389 | $RM out/* && rmdir out |
| 10390 | cd .. |
| 10391 | $RM -r conftest |
| 10392 | $RM conftest* |
| 10393 | |
| 10394 | fi |
| 10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10396 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10404 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10405 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10406 | $as_echo_n "(cached) " >&6 |
| 10407 | else |
| 10408 | lt_cv_prog_compiler_c_o=no |
| 10409 | $RM -r conftest 2>/dev/null |
| 10410 | mkdir conftest |
| 10411 | cd conftest |
| 10412 | mkdir out |
| 10413 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10414 | |
| 10415 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10416 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10417 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10418 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10419 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10420 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10421 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10423 | -e 's:$: $lt_compiler_flag:'` |
| 10424 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10425 | (eval "$lt_compile" 2>out/conftest.err) |
| 10426 | ac_status=$? |
| 10427 | cat out/conftest.err >&5 |
| 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10429 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10430 | then |
| 10431 | # The compiler can only warn and ignore the option if not recognized |
| 10432 | # So say no if there are warnings |
| 10433 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10434 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10435 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10436 | lt_cv_prog_compiler_c_o=yes |
| 10437 | fi |
| 10438 | fi |
| 10439 | chmod u+w . 2>&5 |
| 10440 | $RM conftest* |
| 10441 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10442 | # template instantiation |
| 10443 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10444 | $RM out/* && rmdir out |
| 10445 | cd .. |
| 10446 | $RM -r conftest |
| 10447 | $RM conftest* |
| 10448 | |
| 10449 | fi |
| 10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10451 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 10452 | |
| 10453 | |
| 10454 | |
| 10455 | |
| 10456 | hard_links="nottested" |
| 10457 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 10458 | # do not overwrite the value of need_locks provided by the user |
| 10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 10460 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 10461 | hard_links=yes |
| 10462 | $RM conftest* |
| 10463 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10464 | touch conftest.a |
| 10465 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10466 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 10468 | $as_echo "$hard_links" >&6; } |
| 10469 | if test "$hard_links" = no; then |
| 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10471 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10472 | need_locks=warn |
| 10473 | fi |
| 10474 | else |
| 10475 | need_locks=no |
| 10476 | fi |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10484 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 10485 | |
| 10486 | runpath_var= |
| 10487 | allow_undefined_flag= |
| 10488 | always_export_symbols=no |
| 10489 | archive_cmds= |
| 10490 | archive_expsym_cmds= |
| 10491 | compiler_needs_object=no |
| 10492 | enable_shared_with_static_runtimes=no |
| 10493 | export_dynamic_flag_spec= |
| 10494 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10495 | hardcode_automatic=no |
| 10496 | hardcode_direct=no |
| 10497 | hardcode_direct_absolute=no |
| 10498 | hardcode_libdir_flag_spec= |
| 10499 | hardcode_libdir_flag_spec_ld= |
| 10500 | hardcode_libdir_separator= |
| 10501 | hardcode_minus_L=no |
| 10502 | hardcode_shlibpath_var=unsupported |
| 10503 | inherit_rpath=no |
| 10504 | link_all_deplibs=unknown |
| 10505 | module_cmds= |
| 10506 | module_expsym_cmds= |
| 10507 | old_archive_from_new_cmds= |
| 10508 | old_archive_from_expsyms_cmds= |
| 10509 | thread_safe_flag_spec= |
| 10510 | whole_archive_flag_spec= |
| 10511 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 10512 | # included in the symbol list |
| 10513 | include_expsyms= |
| 10514 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 10515 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 10516 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 10517 | # as well as any symbol that contains `d'. |
| 10518 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 10519 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 10520 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 10521 | # the symbol is explicitly referenced. Since portable code cannot |
| 10522 | # rely on this symbol name, it's probably fine to never include it in |
| 10523 | # preloaded symbol tables. |
| 10524 | # Exclude shared library initialization/finalization symbols. |
| 10525 | extract_expsyms_cmds= |
| 10526 | |
| 10527 | case $host_os in |
| 10528 | cygwin* | mingw* | pw32* | cegcc*) |
| 10529 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 10530 | # When not using gcc, we currently assume that we are using |
| 10531 | # Microsoft Visual C++. |
| 10532 | if test "$GCC" != yes; then |
| 10533 | with_gnu_ld=no |
| 10534 | fi |
| 10535 | ;; |
| 10536 | interix*) |
| 10537 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 10538 | with_gnu_ld=yes |
| 10539 | ;; |
| 10540 | openbsd*) |
| 10541 | with_gnu_ld=no |
| 10542 | ;; |
| 10543 | linux* | k*bsd*-gnu | gnu*) |
| 10544 | link_all_deplibs=no |
| 10545 | ;; |
| 10546 | esac |
| 10547 | |
| 10548 | ld_shlibs=yes |
| 10549 | |
| 10550 | # On some targets, GNU ld is compatible enough with the native linker |
| 10551 | # that we're better off using the native interface for both. |
| 10552 | lt_use_gnu_ld_interface=no |
| 10553 | if test "$with_gnu_ld" = yes; then |
| 10554 | case $host_os in |
| 10555 | aix*) |
| 10556 | # The AIX port of GNU ld has always aspired to compatibility |
| 10557 | # with the native linker. However, as the warning in the GNU ld |
| 10558 | # block says, versions before 2.19.5* couldn't really create working |
| 10559 | # shared libraries, regardless of the interface used. |
| 10560 | case `$LD -v 2>&1` in |
| 10561 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 10562 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 10563 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 10564 | *) |
| 10565 | lt_use_gnu_ld_interface=yes |
| 10566 | ;; |
| 10567 | esac |
| 10568 | ;; |
| 10569 | *) |
| 10570 | lt_use_gnu_ld_interface=yes |
| 10571 | ;; |
| 10572 | esac |
| 10573 | fi |
| 10574 | |
| 10575 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 10576 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10577 | wlarc='${wl}' |
| 10578 | |
| 10579 | # Set some defaults for GNU ld with shared library support. These |
| 10580 | # are reset later if shared libraries are not supported. Putting them |
| 10581 | # here allows them to be overridden if necessary. |
| 10582 | runpath_var=LD_RUN_PATH |
| 10583 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10584 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 10585 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10586 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 10587 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10588 | else |
| 10589 | whole_archive_flag_spec= |
| 10590 | fi |
| 10591 | supports_anon_versioning=no |
| 10592 | case `$LD -v 2>&1` in |
| 10593 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 10594 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 10595 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 10596 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 10597 | *\ 2.11.*) ;; # other 2.11 versions |
| 10598 | *) supports_anon_versioning=yes ;; |
| 10599 | esac |
| 10600 | |
| 10601 | # See if GNU ld supports shared libraries. |
| 10602 | case $host_os in |
| 10603 | aix[3-9]*) |
| 10604 | # On AIX/PPC, the GNU linker is very broken |
| 10605 | if test "$host_cpu" != ia64; then |
| 10606 | ld_shlibs=no |
| 10607 | cat <<_LT_EOF 1>&2 |
| 10608 | |
| 10609 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 10610 | *** to be unable to reliably create shared libraries on AIX. |
| 10611 | *** Therefore, libtool is disabling shared libraries support. If you |
| 10612 | *** really care for shared libraries, you may want to install binutils |
| 10613 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 10614 | *** You will then need to restart the configuration process. |
| 10615 | |
| 10616 | _LT_EOF |
| 10617 | fi |
| 10618 | ;; |
| 10619 | |
| 10620 | amigaos*) |
| 10621 | case $host_cpu in |
| 10622 | powerpc) |
| 10623 | # see comment about AmigaOS4 .so support |
| 10624 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10625 | archive_expsym_cmds='' |
| 10626 | ;; |
| 10627 | m68k) |
| 10628 | 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)' |
| 10629 | hardcode_libdir_flag_spec='-L$libdir' |
| 10630 | hardcode_minus_L=yes |
| 10631 | ;; |
| 10632 | esac |
| 10633 | ;; |
| 10634 | |
| 10635 | beos*) |
| 10636 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10637 | allow_undefined_flag=unsupported |
| 10638 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 10639 | # support --undefined. This deserves some investigation. FIXME |
| 10640 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10641 | else |
| 10642 | ld_shlibs=no |
| 10643 | fi |
| 10644 | ;; |
| 10645 | |
| 10646 | cygwin* | mingw* | pw32* | cegcc*) |
| 10647 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 10648 | # as there is no search path for DLLs. |
| 10649 | hardcode_libdir_flag_spec='-L$libdir' |
| 10650 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 10651 | allow_undefined_flag=unsupported |
| 10652 | always_export_symbols=no |
| 10653 | enable_shared_with_static_runtimes=yes |
| 10654 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 10655 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 10656 | |
| 10657 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 10658 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10659 | # If the export-symbols file already is a .def file (1st line |
| 10660 | # is EXPORTS), use it as is; otherwise, prepend... |
| 10661 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10662 | cp $export_symbols $output_objdir/$soname.def; |
| 10663 | else |
| 10664 | echo EXPORTS > $output_objdir/$soname.def; |
| 10665 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10666 | fi~ |
| 10667 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10668 | else |
| 10669 | ld_shlibs=no |
| 10670 | fi |
| 10671 | ;; |
| 10672 | |
| 10673 | haiku*) |
| 10674 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10675 | link_all_deplibs=yes |
| 10676 | ;; |
| 10677 | |
| 10678 | interix[3-9]*) |
| 10679 | hardcode_direct=no |
| 10680 | hardcode_shlibpath_var=no |
| 10681 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10682 | export_dynamic_flag_spec='${wl}-E' |
| 10683 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10684 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10685 | # default) and relocated if they conflict, which is a slow very memory |
| 10686 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 10687 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10688 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10689 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 10690 | 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' |
| 10691 | ;; |
| 10692 | |
| 10693 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10694 | tmp_diet=no |
| 10695 | if test "$host_os" = linux-dietlibc; then |
| 10696 | case $cc_basename in |
| 10697 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 10698 | esac |
| 10699 | fi |
| 10700 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 10701 | && test "$tmp_diet" = no |
| 10702 | then |
| 10703 | tmp_addflag=' $pic_flag' |
| 10704 | tmp_sharedflag='-shared' |
| 10705 | case $cc_basename,$host_cpu in |
| 10706 | pgcc*) # Portland Group C compiler |
| 10707 | 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' |
| 10708 | tmp_addflag=' $pic_flag' |
| 10709 | ;; |
| 10710 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10711 | # Portland Group f77 and f90 compilers |
| 10712 | 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' |
| 10713 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 10714 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 10715 | tmp_addflag=' -i_dynamic' ;; |
| 10716 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 10717 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 10718 | ifc* | ifort*) # Intel Fortran compiler |
| 10719 | tmp_addflag=' -nofor_main' ;; |
| 10720 | lf95*) # Lahey Fortran 8.1 |
| 10721 | whole_archive_flag_spec= |
| 10722 | tmp_sharedflag='--shared' ;; |
| 10723 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 10724 | tmp_sharedflag='-qmkshrobj' |
| 10725 | tmp_addflag= ;; |
| 10726 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10727 | 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' |
| 10728 | compiler_needs_object=yes |
| 10729 | ;; |
| 10730 | esac |
| 10731 | case `$CC -V 2>&1 | sed 5q` in |
| 10732 | *Sun\ C*) # Sun C 5.9 |
| 10733 | 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' |
| 10734 | compiler_needs_object=yes |
| 10735 | tmp_sharedflag='-G' ;; |
| 10736 | *Sun\ F*) # Sun Fortran 8.3 |
| 10737 | tmp_sharedflag='-G' ;; |
| 10738 | esac |
| 10739 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10740 | |
| 10741 | if test "x$supports_anon_versioning" = xyes; then |
| 10742 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10743 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10744 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10745 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 10746 | fi |
| 10747 | |
| 10748 | case $cc_basename in |
| 10749 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 10750 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 10751 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 10752 | hardcode_libdir_flag_spec= |
| 10753 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 10754 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 10755 | if test "x$supports_anon_versioning" = xyes; then |
| 10756 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10757 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10758 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10759 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 10760 | fi |
| 10761 | ;; |
| 10762 | esac |
| 10763 | else |
| 10764 | ld_shlibs=no |
| 10765 | fi |
| 10766 | ;; |
| 10767 | |
| 10768 | netbsd* | netbsdelf*-gnu) |
| 10769 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10770 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 10771 | wlarc= |
| 10772 | else |
| 10773 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10774 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10775 | fi |
| 10776 | ;; |
| 10777 | |
| 10778 | solaris*) |
| 10779 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 10780 | ld_shlibs=no |
| 10781 | cat <<_LT_EOF 1>&2 |
| 10782 | |
| 10783 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 10784 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 10785 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10786 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 10787 | *** your PATH or compiler configuration so that the native linker is |
| 10788 | *** used, and then restart. |
| 10789 | |
| 10790 | _LT_EOF |
| 10791 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10792 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10793 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10794 | else |
| 10795 | ld_shlibs=no |
| 10796 | fi |
| 10797 | ;; |
| 10798 | |
| 10799 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 10800 | case `$LD -v 2>&1` in |
| 10801 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 10802 | ld_shlibs=no |
| 10803 | cat <<_LT_EOF 1>&2 |
| 10804 | |
| 10805 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 10806 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 10807 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10808 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 10809 | *** your PATH or compiler configuration so that the native linker is |
| 10810 | *** used, and then restart. |
| 10811 | |
| 10812 | _LT_EOF |
| 10813 | ;; |
| 10814 | *) |
| 10815 | # For security reasons, it is highly recommended that you always |
| 10816 | # use absolute paths for naming shared libraries, and exclude the |
| 10817 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 10818 | # requires that you compile everything twice, which is a pain. |
| 10819 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10820 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10821 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10822 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10823 | else |
| 10824 | ld_shlibs=no |
| 10825 | fi |
| 10826 | ;; |
| 10827 | esac |
| 10828 | ;; |
| 10829 | |
| 10830 | sunos4*) |
| 10831 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10832 | wlarc= |
| 10833 | hardcode_direct=yes |
| 10834 | hardcode_shlibpath_var=no |
| 10835 | ;; |
| 10836 | |
| 10837 | *) |
| 10838 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10839 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10840 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10841 | else |
| 10842 | ld_shlibs=no |
| 10843 | fi |
| 10844 | ;; |
| 10845 | esac |
| 10846 | |
| 10847 | if test "$ld_shlibs" = no; then |
| 10848 | runpath_var= |
| 10849 | hardcode_libdir_flag_spec= |
| 10850 | export_dynamic_flag_spec= |
| 10851 | whole_archive_flag_spec= |
| 10852 | fi |
| 10853 | else |
| 10854 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 10855 | case $host_os in |
| 10856 | aix3*) |
| 10857 | allow_undefined_flag=unsupported |
| 10858 | always_export_symbols=yes |
| 10859 | 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' |
| 10860 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 10861 | # are no directories specified by -L. |
| 10862 | hardcode_minus_L=yes |
| 10863 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 10864 | # Neither direct hardcoding nor static linking is supported with a |
| 10865 | # broken collect2. |
| 10866 | hardcode_direct=unsupported |
| 10867 | fi |
| 10868 | ;; |
| 10869 | |
| 10870 | aix[4-9]*) |
| 10871 | if test "$host_cpu" = ia64; then |
| 10872 | # On IA64, the linker does run time linking by default, so we don't |
| 10873 | # have to do anything special. |
| 10874 | aix_use_runtimelinking=no |
| 10875 | exp_sym_flag='-Bexport' |
| 10876 | no_entry_flag="" |
| 10877 | else |
| 10878 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10879 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10880 | # Also, AIX nm treats weak defined symbols like other global |
| 10881 | # defined symbols, whereas GNU nm marks them as "W". |
| 10882 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 10883 | 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' |
| 10884 | else |
| 10885 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 10886 | fi |
| 10887 | aix_use_runtimelinking=no |
| 10888 | |
| 10889 | # Test if we are trying to use run time linking or normal |
| 10890 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10891 | # need to do runtime linking. |
| 10892 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 10893 | for ld_flag in $LDFLAGS; do |
| 10894 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 10895 | aix_use_runtimelinking=yes |
| 10896 | break |
| 10897 | fi |
| 10898 | done |
| 10899 | ;; |
| 10900 | esac |
| 10901 | |
| 10902 | exp_sym_flag='-bexport' |
| 10903 | no_entry_flag='-bnoentry' |
| 10904 | fi |
| 10905 | |
| 10906 | # When large executables or shared objects are built, AIX ld can |
| 10907 | # have problems creating the table of contents. If linking a library |
| 10908 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10909 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10910 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10911 | |
| 10912 | archive_cmds='' |
| 10913 | hardcode_direct=yes |
| 10914 | hardcode_direct_absolute=yes |
| 10915 | hardcode_libdir_separator=':' |
| 10916 | link_all_deplibs=yes |
| 10917 | file_list_spec='${wl}-f,' |
| 10918 | |
| 10919 | if test "$GCC" = yes; then |
| 10920 | case $host_os in aix4.[012]|aix4.[012].*) |
| 10921 | # We only want to do this on AIX 4.2 and lower, the check |
| 10922 | # below for broken collect2 doesn't work under 4.3+ |
| 10923 | collect2name=`${CC} -print-prog-name=collect2` |
| 10924 | if test -f "$collect2name" && |
| 10925 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 10926 | then |
| 10927 | # We have reworked collect2 |
| 10928 | : |
| 10929 | else |
| 10930 | # We have old collect2 |
| 10931 | hardcode_direct=unsupported |
| 10932 | # It fails to find uninstalled libraries when the uninstalled |
| 10933 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10934 | # to unsupported forces relinking |
| 10935 | hardcode_minus_L=yes |
| 10936 | hardcode_libdir_flag_spec='-L$libdir' |
| 10937 | hardcode_libdir_separator= |
| 10938 | fi |
| 10939 | ;; |
| 10940 | esac |
| 10941 | shared_flag='-shared' |
| 10942 | if test "$aix_use_runtimelinking" = yes; then |
| 10943 | shared_flag="$shared_flag "'${wl}-G' |
| 10944 | fi |
| 10945 | link_all_deplibs=no |
| 10946 | else |
| 10947 | # not using gcc |
| 10948 | if test "$host_cpu" = ia64; then |
| 10949 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10950 | # chokes on -Wl,-G. The following line is correct: |
| 10951 | shared_flag='-G' |
| 10952 | else |
| 10953 | if test "$aix_use_runtimelinking" = yes; then |
| 10954 | shared_flag='${wl}-G' |
| 10955 | else |
| 10956 | shared_flag='${wl}-bM:SRE' |
| 10957 | fi |
| 10958 | fi |
| 10959 | fi |
| 10960 | |
| 10961 | export_dynamic_flag_spec='${wl}-bexpall' |
| 10962 | # It seems that -bexpall does not export symbols beginning with |
| 10963 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10964 | always_export_symbols=yes |
| 10965 | if test "$aix_use_runtimelinking" = yes; then |
| 10966 | # Warning - without using the other runtime loading flags (-brtl), |
| 10967 | # -berok will link without error, but may produce a broken library. |
| 10968 | allow_undefined_flag='-berok' |
| 10969 | # Determine the default libpath from the value encoded in an |
| 10970 | # empty executable. |
| 10971 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 10972 | aix_libpath=$lt_cv_aix_libpath |
| 10973 | else |
| 10974 | if ${lt_cv_aix_libpath_+:} false; then : |
| 10975 | $as_echo_n "(cached) " >&6 |
| 10976 | else |
| 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10978 | /* end confdefs.h. */ |
| 10979 | |
| 10980 | int |
| 10981 | main () |
| 10982 | { |
| 10983 | |
| 10984 | ; |
| 10985 | return 0; |
| 10986 | } |
| 10987 | _ACEOF |
| 10988 | if ac_fn_c_try_link "$LINENO"; then : |
| 10989 | |
| 10990 | lt_aix_libpath_sed=' |
| 10991 | /Import File Strings/,/^$/ { |
| 10992 | /^0/ { |
| 10993 | s/^0 *\([^ ]*\) *$/\1/ |
| 10994 | p |
| 10995 | } |
| 10996 | }' |
| 10997 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 10998 | # Check for a 64-bit object if we didn't find anything. |
| 10999 | if test -z "$lt_cv_aix_libpath_"; then |
| 11000 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11001 | fi |
| 11002 | fi |
| 11003 | rm -f core conftest.err conftest.$ac_objext \ |
| 11004 | conftest$ac_exeext conftest.$ac_ext |
| 11005 | if test -z "$lt_cv_aix_libpath_"; then |
| 11006 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 11007 | fi |
| 11008 | |
| 11009 | fi |
| 11010 | |
| 11011 | aix_libpath=$lt_cv_aix_libpath_ |
| 11012 | fi |
| 11013 | |
| 11014 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11015 | 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" |
| 11016 | else |
| 11017 | if test "$host_cpu" = ia64; then |
| 11018 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 11019 | allow_undefined_flag="-z nodefs" |
| 11020 | 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" |
| 11021 | else |
| 11022 | # Determine the default libpath from the value encoded in an |
| 11023 | # empty executable. |
| 11024 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 11025 | aix_libpath=$lt_cv_aix_libpath |
| 11026 | else |
| 11027 | if ${lt_cv_aix_libpath_+:} false; then : |
| 11028 | $as_echo_n "(cached) " >&6 |
| 11029 | else |
| 11030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11031 | /* end confdefs.h. */ |
| 11032 | |
| 11033 | int |
| 11034 | main () |
| 11035 | { |
| 11036 | |
| 11037 | ; |
| 11038 | return 0; |
| 11039 | } |
| 11040 | _ACEOF |
| 11041 | if ac_fn_c_try_link "$LINENO"; then : |
| 11042 | |
| 11043 | lt_aix_libpath_sed=' |
| 11044 | /Import File Strings/,/^$/ { |
| 11045 | /^0/ { |
| 11046 | s/^0 *\([^ ]*\) *$/\1/ |
| 11047 | p |
| 11048 | } |
| 11049 | }' |
| 11050 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11051 | # Check for a 64-bit object if we didn't find anything. |
| 11052 | if test -z "$lt_cv_aix_libpath_"; then |
| 11053 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11054 | fi |
| 11055 | fi |
| 11056 | rm -f core conftest.err conftest.$ac_objext \ |
| 11057 | conftest$ac_exeext conftest.$ac_ext |
| 11058 | if test -z "$lt_cv_aix_libpath_"; then |
| 11059 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 11060 | fi |
| 11061 | |
| 11062 | fi |
| 11063 | |
| 11064 | aix_libpath=$lt_cv_aix_libpath_ |
| 11065 | fi |
| 11066 | |
| 11067 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11068 | # Warning - without using the other run time loading flags, |
| 11069 | # -berok will link without error, but may produce a broken library. |
| 11070 | no_undefined_flag=' ${wl}-bernotok' |
| 11071 | allow_undefined_flag=' ${wl}-berok' |
| 11072 | if test "$with_gnu_ld" = yes; then |
| 11073 | # We only use this code for GNU lds that support --whole-archive. |
| 11074 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11075 | else |
| 11076 | # Exported symbols can be pulled into shared objects from archives |
| 11077 | whole_archive_flag_spec='$convenience' |
| 11078 | fi |
| 11079 | archive_cmds_need_lc=yes |
| 11080 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11081 | 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' |
| 11082 | fi |
| 11083 | fi |
| 11084 | ;; |
| 11085 | |
| 11086 | amigaos*) |
| 11087 | case $host_cpu in |
| 11088 | powerpc) |
| 11089 | # see comment about AmigaOS4 .so support |
| 11090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11091 | archive_expsym_cmds='' |
| 11092 | ;; |
| 11093 | m68k) |
| 11094 | 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)' |
| 11095 | hardcode_libdir_flag_spec='-L$libdir' |
| 11096 | hardcode_minus_L=yes |
| 11097 | ;; |
| 11098 | esac |
| 11099 | ;; |
| 11100 | |
| 11101 | bsdi[45]*) |
| 11102 | export_dynamic_flag_spec=-rdynamic |
| 11103 | ;; |
| 11104 | |
| 11105 | cygwin* | mingw* | pw32* | cegcc*) |
| 11106 | # When not using gcc, we currently assume that we are using |
| 11107 | # Microsoft Visual C++. |
| 11108 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11109 | # no search path for DLLs. |
| 11110 | case $cc_basename in |
| 11111 | cl*) |
| 11112 | # Native MSVC |
| 11113 | hardcode_libdir_flag_spec=' ' |
| 11114 | allow_undefined_flag=unsupported |
| 11115 | always_export_symbols=yes |
| 11116 | file_list_spec='@' |
| 11117 | # Tell ltmain to make .lib files, not .a files. |
| 11118 | libext=lib |
| 11119 | # Tell ltmain to make .dll files, not .so files. |
| 11120 | shrext_cmds=".dll" |
| 11121 | # FIXME: Setting linknames here is a bad hack. |
| 11122 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 11123 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11124 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 11125 | else |
| 11126 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 11127 | fi~ |
| 11128 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11129 | linknames=' |
| 11130 | # The linker will not automatically build a static lib if we build a DLL. |
| 11131 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11132 | enable_shared_with_static_runtimes=yes |
| 11133 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11134 | # Don't use ranlib |
| 11135 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11136 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11137 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11138 | case $lt_outputfile in |
| 11139 | *.exe|*.EXE) ;; |
| 11140 | *) |
| 11141 | lt_outputfile="$lt_outputfile.exe" |
| 11142 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 11143 | ;; |
| 11144 | esac~ |
| 11145 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 11146 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11147 | $RM "$lt_outputfile.manifest"; |
| 11148 | fi' |
| 11149 | ;; |
| 11150 | *) |
| 11151 | # Assume MSVC wrapper |
| 11152 | hardcode_libdir_flag_spec=' ' |
| 11153 | allow_undefined_flag=unsupported |
| 11154 | # Tell ltmain to make .lib files, not .a files. |
| 11155 | libext=lib |
| 11156 | # Tell ltmain to make .dll files, not .so files. |
| 11157 | shrext_cmds=".dll" |
| 11158 | # FIXME: Setting linknames here is a bad hack. |
| 11159 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11160 | # The linker will automatically build a .lib file if we build a DLL. |
| 11161 | old_archive_from_new_cmds='true' |
| 11162 | # FIXME: Should let the user specify the lib program. |
| 11163 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11164 | enable_shared_with_static_runtimes=yes |
| 11165 | ;; |
| 11166 | esac |
| 11167 | ;; |
| 11168 | |
| 11169 | darwin* | rhapsody*) |
| 11170 | |
| 11171 | |
| 11172 | archive_cmds_need_lc=no |
| 11173 | hardcode_direct=no |
| 11174 | hardcode_automatic=yes |
| 11175 | hardcode_shlibpath_var=unsupported |
| 11176 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 11177 | 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\"`' |
| 11178 | else |
| 11179 | whole_archive_flag_spec='' |
| 11180 | fi |
| 11181 | link_all_deplibs=yes |
| 11182 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 11183 | case $cc_basename in |
| 11184 | ifort*) _lt_dar_can_shared=yes ;; |
| 11185 | *) _lt_dar_can_shared=$GCC ;; |
| 11186 | esac |
| 11187 | if test "$_lt_dar_can_shared" = "yes"; then |
| 11188 | output_verbose_link_cmd=func_echo_all |
| 11189 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 11190 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 11191 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 11192 | 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}" |
| 11193 | |
| 11194 | else |
| 11195 | ld_shlibs=no |
| 11196 | fi |
| 11197 | |
| 11198 | ;; |
| 11199 | |
| 11200 | dgux*) |
| 11201 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11202 | hardcode_libdir_flag_spec='-L$libdir' |
| 11203 | hardcode_shlibpath_var=no |
| 11204 | ;; |
| 11205 | |
| 11206 | freebsd1*) |
| 11207 | ld_shlibs=no |
| 11208 | ;; |
| 11209 | |
| 11210 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11211 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 11212 | # does not break anything, and helps significantly (at the cost of a little |
| 11213 | # extra space). |
| 11214 | freebsd2.2*) |
| 11215 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11216 | hardcode_libdir_flag_spec='-R$libdir' |
| 11217 | hardcode_direct=yes |
| 11218 | hardcode_shlibpath_var=no |
| 11219 | ;; |
| 11220 | |
| 11221 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11222 | freebsd2*) |
| 11223 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11224 | hardcode_direct=yes |
| 11225 | hardcode_minus_L=yes |
| 11226 | hardcode_shlibpath_var=no |
| 11227 | ;; |
| 11228 | |
| 11229 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11230 | freebsd* | dragonfly*) |
| 11231 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11232 | hardcode_libdir_flag_spec='-R$libdir' |
| 11233 | hardcode_direct=yes |
| 11234 | hardcode_shlibpath_var=no |
| 11235 | ;; |
| 11236 | |
| 11237 | hpux9*) |
| 11238 | if test "$GCC" = yes; then |
| 11239 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 11240 | else |
| 11241 | 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' |
| 11242 | fi |
| 11243 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11244 | hardcode_libdir_separator=: |
| 11245 | hardcode_direct=yes |
| 11246 | |
| 11247 | # hardcode_minus_L: Not really in the search PATH, |
| 11248 | # but as the default location of the library. |
| 11249 | hardcode_minus_L=yes |
| 11250 | export_dynamic_flag_spec='${wl}-E' |
| 11251 | ;; |
| 11252 | |
| 11253 | hpux10*) |
| 11254 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 11255 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11256 | else |
| 11257 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11258 | fi |
| 11259 | if test "$with_gnu_ld" = no; then |
| 11260 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11261 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 11262 | hardcode_libdir_separator=: |
| 11263 | hardcode_direct=yes |
| 11264 | hardcode_direct_absolute=yes |
| 11265 | export_dynamic_flag_spec='${wl}-E' |
| 11266 | # hardcode_minus_L: Not really in the search PATH, |
| 11267 | # but as the default location of the library. |
| 11268 | hardcode_minus_L=yes |
| 11269 | fi |
| 11270 | ;; |
| 11271 | |
| 11272 | hpux11*) |
| 11273 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 11274 | case $host_cpu in |
| 11275 | hppa*64*) |
| 11276 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11277 | ;; |
| 11278 | ia64*) |
| 11279 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11280 | ;; |
| 11281 | *) |
| 11282 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11283 | ;; |
| 11284 | esac |
| 11285 | else |
| 11286 | case $host_cpu in |
| 11287 | hppa*64*) |
| 11288 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11289 | ;; |
| 11290 | ia64*) |
| 11291 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11292 | ;; |
| 11293 | *) |
| 11294 | |
| 11295 | # Older versions of the 11.00 compiler do not understand -b yet |
| 11296 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 11298 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 11299 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 11300 | $as_echo_n "(cached) " >&6 |
| 11301 | else |
| 11302 | lt_cv_prog_compiler__b=no |
| 11303 | save_LDFLAGS="$LDFLAGS" |
| 11304 | LDFLAGS="$LDFLAGS -b" |
| 11305 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11306 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11307 | # The linker can only warn and ignore the option if not recognized |
| 11308 | # So say no if there are warnings |
| 11309 | if test -s conftest.err; then |
| 11310 | # Append any errors to the config.log. |
| 11311 | cat conftest.err 1>&5 |
| 11312 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 11313 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11314 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11315 | lt_cv_prog_compiler__b=yes |
| 11316 | fi |
| 11317 | else |
| 11318 | lt_cv_prog_compiler__b=yes |
| 11319 | fi |
| 11320 | fi |
| 11321 | $RM -r conftest* |
| 11322 | LDFLAGS="$save_LDFLAGS" |
| 11323 | |
| 11324 | fi |
| 11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 11326 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 11327 | |
| 11328 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 11329 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11330 | else |
| 11331 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11332 | fi |
| 11333 | |
| 11334 | ;; |
| 11335 | esac |
| 11336 | fi |
| 11337 | if test "$with_gnu_ld" = no; then |
| 11338 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11339 | hardcode_libdir_separator=: |
| 11340 | |
| 11341 | case $host_cpu in |
| 11342 | hppa*64*|ia64*) |
| 11343 | hardcode_direct=no |
| 11344 | hardcode_shlibpath_var=no |
| 11345 | ;; |
| 11346 | *) |
| 11347 | hardcode_direct=yes |
| 11348 | hardcode_direct_absolute=yes |
| 11349 | export_dynamic_flag_spec='${wl}-E' |
| 11350 | |
| 11351 | # hardcode_minus_L: Not really in the search PATH, |
| 11352 | # but as the default location of the library. |
| 11353 | hardcode_minus_L=yes |
| 11354 | ;; |
| 11355 | esac |
| 11356 | fi |
| 11357 | ;; |
| 11358 | |
| 11359 | irix5* | irix6* | nonstopux*) |
| 11360 | if test "$GCC" = yes; then |
| 11361 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 11362 | # Try to use the -exported_symbol ld option, if it does not |
| 11363 | # work, assume that -exports_file does not work either and |
| 11364 | # implicitly export all symbols. |
| 11365 | # This should be the same for all languages, so no per-tag cache variable. |
| 11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 11367 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 11368 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 11369 | $as_echo_n "(cached) " >&6 |
| 11370 | else |
| 11371 | save_LDFLAGS="$LDFLAGS" |
| 11372 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 11373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11374 | /* end confdefs.h. */ |
| 11375 | int foo (void) { return 0; } |
| 11376 | _ACEOF |
| 11377 | if ac_fn_c_try_link "$LINENO"; then : |
| 11378 | lt_cv_irix_exported_symbol=yes |
| 11379 | else |
| 11380 | lt_cv_irix_exported_symbol=no |
| 11381 | fi |
| 11382 | rm -f core conftest.err conftest.$ac_objext \ |
| 11383 | conftest$ac_exeext conftest.$ac_ext |
| 11384 | LDFLAGS="$save_LDFLAGS" |
| 11385 | fi |
| 11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 11387 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 11388 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 11389 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 11390 | fi |
| 11391 | else |
| 11392 | 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' |
| 11393 | 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' |
| 11394 | fi |
| 11395 | archive_cmds_need_lc='no' |
| 11396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11397 | hardcode_libdir_separator=: |
| 11398 | inherit_rpath=yes |
| 11399 | link_all_deplibs=yes |
| 11400 | ;; |
| 11401 | |
| 11402 | netbsd* | netbsdelf*-gnu) |
| 11403 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11404 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 11405 | else |
| 11406 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 11407 | fi |
| 11408 | hardcode_libdir_flag_spec='-R$libdir' |
| 11409 | hardcode_direct=yes |
| 11410 | hardcode_shlibpath_var=no |
| 11411 | ;; |
| 11412 | |
| 11413 | newsos6) |
| 11414 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11415 | hardcode_direct=yes |
| 11416 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11417 | hardcode_libdir_separator=: |
| 11418 | hardcode_shlibpath_var=no |
| 11419 | ;; |
| 11420 | |
| 11421 | *nto* | *qnx*) |
| 11422 | ;; |
| 11423 | |
| 11424 | openbsd*) |
| 11425 | if test -f /usr/libexec/ld.so; then |
| 11426 | hardcode_direct=yes |
| 11427 | hardcode_shlibpath_var=no |
| 11428 | hardcode_direct_absolute=yes |
| 11429 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11430 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11431 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 11432 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 11433 | export_dynamic_flag_spec='${wl}-E' |
| 11434 | else |
| 11435 | case $host_os in |
| 11436 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 11437 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11438 | hardcode_libdir_flag_spec='-R$libdir' |
| 11439 | ;; |
| 11440 | *) |
| 11441 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11442 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 11443 | ;; |
| 11444 | esac |
| 11445 | fi |
| 11446 | else |
| 11447 | ld_shlibs=no |
| 11448 | fi |
| 11449 | ;; |
| 11450 | |
| 11451 | os2*) |
| 11452 | hardcode_libdir_flag_spec='-L$libdir' |
| 11453 | hardcode_minus_L=yes |
| 11454 | allow_undefined_flag=unsupported |
| 11455 | 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' |
| 11456 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 11457 | ;; |
| 11458 | |
| 11459 | osf3*) |
| 11460 | if test "$GCC" = yes; then |
| 11461 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 11462 | 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' |
| 11463 | else |
| 11464 | allow_undefined_flag=' -expect_unresolved \*' |
| 11465 | 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' |
| 11466 | fi |
| 11467 | archive_cmds_need_lc='no' |
| 11468 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11469 | hardcode_libdir_separator=: |
| 11470 | ;; |
| 11471 | |
| 11472 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 11473 | if test "$GCC" = yes; then |
| 11474 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 11475 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 11476 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11477 | else |
| 11478 | allow_undefined_flag=' -expect_unresolved \*' |
| 11479 | 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' |
| 11480 | 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~ |
| 11481 | $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' |
| 11482 | |
| 11483 | # Both c and cxx compiler support -rpath directly |
| 11484 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 11485 | fi |
| 11486 | archive_cmds_need_lc='no' |
| 11487 | hardcode_libdir_separator=: |
| 11488 | ;; |
| 11489 | |
| 11490 | solaris*) |
| 11491 | no_undefined_flag=' -z defs' |
| 11492 | if test "$GCC" = yes; then |
| 11493 | wlarc='${wl}' |
| 11494 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11495 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11496 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 11497 | else |
| 11498 | case `$CC -V 2>&1` in |
| 11499 | *"Compilers 5.0"*) |
| 11500 | wlarc='' |
| 11501 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11502 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11503 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 11504 | ;; |
| 11505 | *) |
| 11506 | wlarc='${wl}' |
| 11507 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11508 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 11509 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 11510 | ;; |
| 11511 | esac |
| 11512 | fi |
| 11513 | hardcode_libdir_flag_spec='-R$libdir' |
| 11514 | hardcode_shlibpath_var=no |
| 11515 | case $host_os in |
| 11516 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 11517 | *) |
| 11518 | # The compiler driver will combine and reorder linker options, |
| 11519 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 11520 | # but is careful enough not to reorder. |
| 11521 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 11522 | if test "$GCC" = yes; then |
| 11523 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 11524 | else |
| 11525 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 11526 | fi |
| 11527 | ;; |
| 11528 | esac |
| 11529 | link_all_deplibs=yes |
| 11530 | ;; |
| 11531 | |
| 11532 | sunos4*) |
| 11533 | if test "x$host_vendor" = xsequent; then |
| 11534 | # Use $CC to link under sequent, because it throws in some extra .o |
| 11535 | # files that make .init and .fini sections work. |
| 11536 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11537 | else |
| 11538 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 11539 | fi |
| 11540 | hardcode_libdir_flag_spec='-L$libdir' |
| 11541 | hardcode_direct=yes |
| 11542 | hardcode_minus_L=yes |
| 11543 | hardcode_shlibpath_var=no |
| 11544 | ;; |
| 11545 | |
| 11546 | sysv4) |
| 11547 | case $host_vendor in |
| 11548 | sni) |
| 11549 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11550 | hardcode_direct=yes # is this really true??? |
| 11551 | ;; |
| 11552 | siemens) |
| 11553 | ## LD is ld it makes a PLAMLIB |
| 11554 | ## CC just makes a GrossModule. |
| 11555 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 11556 | reload_cmds='$CC -r -o $output$reload_objs' |
| 11557 | hardcode_direct=no |
| 11558 | ;; |
| 11559 | motorola) |
| 11560 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11561 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 11562 | ;; |
| 11563 | esac |
| 11564 | runpath_var='LD_RUN_PATH' |
| 11565 | hardcode_shlibpath_var=no |
| 11566 | ;; |
| 11567 | |
| 11568 | sysv4.3*) |
| 11569 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11570 | hardcode_shlibpath_var=no |
| 11571 | export_dynamic_flag_spec='-Bexport' |
| 11572 | ;; |
| 11573 | |
| 11574 | sysv4*MP*) |
| 11575 | if test -d /usr/nec; then |
| 11576 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11577 | hardcode_shlibpath_var=no |
| 11578 | runpath_var=LD_RUN_PATH |
| 11579 | hardcode_runpath_var=yes |
| 11580 | ld_shlibs=yes |
| 11581 | fi |
| 11582 | ;; |
| 11583 | |
| 11584 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 11585 | no_undefined_flag='${wl}-z,text' |
| 11586 | archive_cmds_need_lc=no |
| 11587 | hardcode_shlibpath_var=no |
| 11588 | runpath_var='LD_RUN_PATH' |
| 11589 | |
| 11590 | if test "$GCC" = yes; then |
| 11591 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11592 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11593 | else |
| 11594 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11595 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11596 | fi |
| 11597 | ;; |
| 11598 | |
| 11599 | sysv5* | sco3.2v5* | sco5v6*) |
| 11600 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 11601 | # link with -lc, and that would cause any symbols used from libc to |
| 11602 | # always be unresolved, which means just about no library would |
| 11603 | # ever link correctly. If we're not using GNU ld we use -z text |
| 11604 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 11605 | # as -z defs. |
| 11606 | no_undefined_flag='${wl}-z,text' |
| 11607 | allow_undefined_flag='${wl}-z,nodefs' |
| 11608 | archive_cmds_need_lc=no |
| 11609 | hardcode_shlibpath_var=no |
| 11610 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 11611 | hardcode_libdir_separator=':' |
| 11612 | link_all_deplibs=yes |
| 11613 | export_dynamic_flag_spec='${wl}-Bexport' |
| 11614 | runpath_var='LD_RUN_PATH' |
| 11615 | |
| 11616 | if test "$GCC" = yes; then |
| 11617 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11618 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11619 | else |
| 11620 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11621 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11622 | fi |
| 11623 | ;; |
| 11624 | |
| 11625 | uts4*) |
| 11626 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11627 | hardcode_libdir_flag_spec='-L$libdir' |
| 11628 | hardcode_shlibpath_var=no |
| 11629 | ;; |
| 11630 | |
| 11631 | *) |
| 11632 | ld_shlibs=no |
| 11633 | ;; |
| 11634 | esac |
| 11635 | |
| 11636 | if test x$host_vendor = xsni; then |
| 11637 | case $host in |
| 11638 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11639 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11640 | ;; |
| 11641 | esac |
| 11642 | fi |
| 11643 | fi |
| 11644 | |
| 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 11646 | $as_echo "$ld_shlibs" >&6; } |
| 11647 | test "$ld_shlibs" = no && can_build_shared=no |
| 11648 | |
| 11649 | with_gnu_ld=$with_gnu_ld |
| 11650 | |
| 11651 | |
| 11652 | |
| 11653 | |
| 11654 | |
| 11655 | |
| 11656 | |
| 11657 | |
| 11658 | |
| 11659 | |
| 11660 | |
| 11661 | |
| 11662 | |
| 11663 | |
| 11664 | |
| 11665 | # |
| 11666 | # Do we need to explicitly link libc? |
| 11667 | # |
| 11668 | case "x$archive_cmds_need_lc" in |
| 11669 | x|xyes) |
| 11670 | # Assume -lc should be added |
| 11671 | archive_cmds_need_lc=yes |
| 11672 | |
| 11673 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11674 | case $archive_cmds in |
| 11675 | *'~'*) |
| 11676 | # FIXME: we may have to deal with multi-command sequences. |
| 11677 | ;; |
| 11678 | '$CC '*) |
| 11679 | # Test whether the compiler implicitly links with -lc since on some |
| 11680 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11681 | # to ld, don't add -lc before -lgcc. |
| 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 11683 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 11684 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 11685 | $as_echo_n "(cached) " >&6 |
| 11686 | else |
| 11687 | $RM conftest* |
| 11688 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11689 | |
| 11690 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11691 | (eval $ac_compile) 2>&5 |
| 11692 | ac_status=$? |
| 11693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11694 | test $ac_status = 0; } 2>conftest.err; then |
| 11695 | soname=conftest |
| 11696 | lib=conftest |
| 11697 | libobjs=conftest.$ac_objext |
| 11698 | deplibs= |
| 11699 | wl=$lt_prog_compiler_wl |
| 11700 | pic_flag=$lt_prog_compiler_pic |
| 11701 | compiler_flags=-v |
| 11702 | linker_flags=-v |
| 11703 | verstring= |
| 11704 | output_objdir=. |
| 11705 | libname=conftest |
| 11706 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 11707 | allow_undefined_flag= |
| 11708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 11709 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11710 | ac_status=$? |
| 11711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11712 | test $ac_status = 0; } |
| 11713 | then |
| 11714 | lt_cv_archive_cmds_need_lc=no |
| 11715 | else |
| 11716 | lt_cv_archive_cmds_need_lc=yes |
| 11717 | fi |
| 11718 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 11719 | else |
| 11720 | cat conftest.err 1>&5 |
| 11721 | fi |
| 11722 | $RM conftest* |
| 11723 | |
| 11724 | fi |
| 11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 11726 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 11727 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 11728 | ;; |
| 11729 | esac |
| 11730 | fi |
| 11731 | ;; |
| 11732 | esac |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
| 11748 | |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
| 11756 | |
| 11757 | |
| 11758 | |
| 11759 | |
| 11760 | |
| 11761 | |
| 11762 | |
| 11763 | |
| 11764 | |
| 11765 | |
| 11766 | |
| 11767 | |
| 11768 | |
| 11769 | |
| 11770 | |
| 11771 | |
| 11772 | |
| 11773 | |
| 11774 | |
| 11775 | |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | |
| 11780 | |
| 11781 | |
| 11782 | |
| 11783 | |
| 11784 | |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | |
| 11789 | |
| 11790 | |
| 11791 | |
| 11792 | |
| 11793 | |
| 11794 | |
| 11795 | |
| 11796 | |
| 11797 | |
| 11798 | |
| 11799 | |
| 11800 | |
| 11801 | |
| 11802 | |
| 11803 | |
| 11804 | |
| 11805 | |
| 11806 | |
| 11807 | |
| 11808 | |
| 11809 | |
| 11810 | |
| 11811 | |
| 11812 | |
| 11813 | |
| 11814 | |
| 11815 | |
| 11816 | |
| 11817 | |
| 11818 | |
| 11819 | |
| 11820 | |
| 11821 | |
| 11822 | |
| 11823 | |
| 11824 | |
| 11825 | |
| 11826 | |
| 11827 | |
| 11828 | |
| 11829 | |
| 11830 | |
| 11831 | |
| 11832 | |
| 11833 | |
| 11834 | |
| 11835 | |
| 11836 | |
| 11837 | |
| 11838 | |
| 11839 | |
| 11840 | |
| 11841 | |
| 11842 | |
| 11843 | |
| 11844 | |
| 11845 | |
| 11846 | |
| 11847 | |
| 11848 | |
| 11849 | |
| 11850 | |
| 11851 | |
| 11852 | |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
| 11857 | |
| 11858 | |
| 11859 | |
| 11860 | |
| 11861 | |
| 11862 | |
| 11863 | |
| 11864 | |
| 11865 | |
| 11866 | |
| 11867 | |
| 11868 | |
| 11869 | |
| 11870 | |
| 11871 | |
| 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 11891 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 11892 | |
| 11893 | if test "$GCC" = yes; then |
| 11894 | case $host_os in |
| 11895 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 11896 | *) lt_awk_arg="/^libraries:/" ;; |
| 11897 | esac |
| 11898 | case $host_os in |
| 11899 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 11900 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 11901 | esac |
| 11902 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 11903 | case $lt_search_path_spec in |
| 11904 | *\;*) |
| 11905 | # if the path contains ";" then we assume it to be the separator |
| 11906 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11907 | # assumed that no part of a normal pathname contains ";" but that should |
| 11908 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11909 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 11910 | ;; |
| 11911 | *) |
| 11912 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 11913 | ;; |
| 11914 | esac |
| 11915 | # Ok, now we have the path, separated by spaces, we can step through it |
| 11916 | # and add multilib dir if necessary. |
| 11917 | lt_tmp_lt_search_path_spec= |
| 11918 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 11919 | for lt_sys_path in $lt_search_path_spec; do |
| 11920 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 11921 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 11922 | else |
| 11923 | test -d "$lt_sys_path" && \ |
| 11924 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 11925 | fi |
| 11926 | done |
| 11927 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 11928 | BEGIN {RS=" "; FS="/|\n";} { |
| 11929 | lt_foo=""; |
| 11930 | lt_count=0; |
| 11931 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 11932 | if ($lt_i != "" && $lt_i != ".") { |
| 11933 | if ($lt_i == "..") { |
| 11934 | lt_count++; |
| 11935 | } else { |
| 11936 | if (lt_count == 0) { |
| 11937 | lt_foo="/" $lt_i lt_foo; |
| 11938 | } else { |
| 11939 | lt_count--; |
| 11940 | } |
| 11941 | } |
| 11942 | } |
| 11943 | } |
| 11944 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 11945 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 11946 | }'` |
| 11947 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 11948 | # for these hosts. |
| 11949 | case $host_os in |
| 11950 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 11951 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 11952 | esac |
| 11953 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 11954 | else |
| 11955 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11956 | fi |
| 11957 | library_names_spec= |
| 11958 | libname_spec='lib$name' |
| 11959 | soname_spec= |
| 11960 | shrext_cmds=".so" |
| 11961 | postinstall_cmds= |
| 11962 | postuninstall_cmds= |
| 11963 | finish_cmds= |
| 11964 | finish_eval= |
| 11965 | shlibpath_var= |
| 11966 | shlibpath_overrides_runpath=unknown |
| 11967 | version_type=none |
| 11968 | dynamic_linker="$host_os ld.so" |
| 11969 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11970 | need_lib_prefix=unknown |
| 11971 | hardcode_into_libs=no |
| 11972 | |
| 11973 | # when you set need_version to no, make sure it does not cause -set_version |
| 11974 | # flags to be left without arguments |
| 11975 | need_version=unknown |
| 11976 | |
| 11977 | case $host_os in |
| 11978 | aix3*) |
| 11979 | version_type=linux |
| 11980 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11981 | shlibpath_var=LIBPATH |
| 11982 | |
| 11983 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11985 | ;; |
| 11986 | |
| 11987 | aix[4-9]*) |
| 11988 | version_type=linux |
| 11989 | need_lib_prefix=no |
| 11990 | need_version=no |
| 11991 | hardcode_into_libs=yes |
| 11992 | if test "$host_cpu" = ia64; then |
| 11993 | # AIX 5 supports IA64 |
| 11994 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11995 | shlibpath_var=LD_LIBRARY_PATH |
| 11996 | else |
| 11997 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11998 | # for dependence libraries. The import file would start with |
| 11999 | # the line `#! .'. This would cause the generated library to |
| 12000 | # depend on `.', always an invalid library. This was fixed in |
| 12001 | # development snapshots of GCC prior to 3.0. |
| 12002 | case $host_os in |
| 12003 | aix4 | aix4.[01] | aix4.[01].*) |
| 12004 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12005 | echo ' yes ' |
| 12006 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 12007 | : |
| 12008 | else |
| 12009 | can_build_shared=no |
| 12010 | fi |
| 12011 | ;; |
| 12012 | esac |
| 12013 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12014 | # soname into executable. Probably we can add versioning support to |
| 12015 | # collect2, so additional links can be useful in future. |
| 12016 | if test "$aix_use_runtimelinking" = yes; then |
| 12017 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12018 | # instead of lib<name>.a to let people know that these are not |
| 12019 | # typical AIX shared libraries. |
| 12020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12021 | else |
| 12022 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12023 | # and later when we are not doing run time linking. |
| 12024 | library_names_spec='${libname}${release}.a $libname.a' |
| 12025 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12026 | fi |
| 12027 | shlibpath_var=LIBPATH |
| 12028 | fi |
| 12029 | ;; |
| 12030 | |
| 12031 | amigaos*) |
| 12032 | case $host_cpu in |
| 12033 | powerpc) |
| 12034 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12035 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12037 | ;; |
| 12038 | m68k) |
| 12039 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12040 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12041 | 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' |
| 12042 | ;; |
| 12043 | esac |
| 12044 | ;; |
| 12045 | |
| 12046 | beos*) |
| 12047 | library_names_spec='${libname}${shared_ext}' |
| 12048 | dynamic_linker="$host_os ld.so" |
| 12049 | shlibpath_var=LIBRARY_PATH |
| 12050 | ;; |
| 12051 | |
| 12052 | bsdi[45]*) |
| 12053 | version_type=linux |
| 12054 | need_version=no |
| 12055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12056 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12057 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12058 | shlibpath_var=LD_LIBRARY_PATH |
| 12059 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12060 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12061 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12062 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12063 | # libtool to hard-code these into programs |
| 12064 | ;; |
| 12065 | |
| 12066 | cygwin* | mingw* | pw32* | cegcc*) |
| 12067 | version_type=windows |
| 12068 | shrext_cmds=".dll" |
| 12069 | need_version=no |
| 12070 | need_lib_prefix=no |
| 12071 | |
| 12072 | case $GCC,$cc_basename in |
| 12073 | yes,*) |
| 12074 | # gcc |
| 12075 | library_names_spec='$libname.dll.a' |
| 12076 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12077 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12078 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 12079 | dldir=$destdir/`dirname \$dlpath`~ |
| 12080 | test -d \$dldir || mkdir -p \$dldir~ |
| 12081 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12082 | chmod a+x \$dldir/$dlname~ |
| 12083 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12084 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12085 | fi' |
| 12086 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12087 | dlpath=$dir/\$dldll~ |
| 12088 | $RM \$dlpath' |
| 12089 | shlibpath_overrides_runpath=yes |
| 12090 | |
| 12091 | case $host_os in |
| 12092 | cygwin*) |
| 12093 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12094 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12095 | |
| 12096 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12097 | ;; |
| 12098 | mingw* | cegcc*) |
| 12099 | # MinGW DLLs use traditional 'lib' prefix |
| 12100 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12101 | ;; |
| 12102 | pw32*) |
| 12103 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12104 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12105 | ;; |
| 12106 | esac |
| 12107 | dynamic_linker='Win32 ld.exe' |
| 12108 | ;; |
| 12109 | |
| 12110 | *,cl*) |
| 12111 | # Native MSVC |
| 12112 | libname_spec='$name' |
| 12113 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12114 | library_names_spec='${libname}.dll.lib' |
| 12115 | |
| 12116 | case $build_os in |
| 12117 | mingw*) |
| 12118 | sys_lib_search_path_spec= |
| 12119 | lt_save_ifs=$IFS |
| 12120 | IFS=';' |
| 12121 | for lt_path in $LIB |
| 12122 | do |
| 12123 | IFS=$lt_save_ifs |
| 12124 | # Let DOS variable expansion print the short 8.3 style file name. |
| 12125 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12126 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12127 | done |
| 12128 | IFS=$lt_save_ifs |
| 12129 | # Convert to MSYS style. |
| 12130 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12131 | ;; |
| 12132 | cygwin*) |
| 12133 | # Convert to unix form, then to dos form, then back to unix form |
| 12134 | # but this time dos style (no spaces!) so that the unix form looks |
| 12135 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 12136 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12137 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12138 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12139 | ;; |
| 12140 | *) |
| 12141 | sys_lib_search_path_spec="$LIB" |
| 12142 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12143 | # It is most probably a Windows format PATH. |
| 12144 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12145 | else |
| 12146 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12147 | fi |
| 12148 | # FIXME: find the short name or the path components, as spaces are |
| 12149 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 12150 | ;; |
| 12151 | esac |
| 12152 | |
| 12153 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12154 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12155 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 12156 | dldir=$destdir/`dirname \$dlpath`~ |
| 12157 | test -d \$dldir || mkdir -p \$dldir~ |
| 12158 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 12159 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12160 | dlpath=$dir/\$dldll~ |
| 12161 | $RM \$dlpath' |
| 12162 | shlibpath_overrides_runpath=yes |
| 12163 | dynamic_linker='Win32 link.exe' |
| 12164 | ;; |
| 12165 | |
| 12166 | *) |
| 12167 | # Assume MSVC wrapper |
| 12168 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12169 | dynamic_linker='Win32 ld.exe' |
| 12170 | ;; |
| 12171 | esac |
| 12172 | # FIXME: first we should search . and the directory the executable is in |
| 12173 | shlibpath_var=PATH |
| 12174 | ;; |
| 12175 | |
| 12176 | darwin* | rhapsody*) |
| 12177 | dynamic_linker="$host_os dyld" |
| 12178 | version_type=darwin |
| 12179 | need_lib_prefix=no |
| 12180 | need_version=no |
| 12181 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 12182 | soname_spec='${libname}${release}${major}$shared_ext' |
| 12183 | shlibpath_overrides_runpath=yes |
| 12184 | shlibpath_var=DYLD_LIBRARY_PATH |
| 12185 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12186 | |
| 12187 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 12188 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12189 | ;; |
| 12190 | |
| 12191 | dgux*) |
| 12192 | version_type=linux |
| 12193 | need_lib_prefix=no |
| 12194 | need_version=no |
| 12195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12197 | shlibpath_var=LD_LIBRARY_PATH |
| 12198 | ;; |
| 12199 | |
| 12200 | freebsd1*) |
| 12201 | dynamic_linker=no |
| 12202 | ;; |
| 12203 | |
| 12204 | freebsd* | dragonfly*) |
| 12205 | # DragonFly does not have aout. When/if they implement a new |
| 12206 | # versioning mechanism, adjust this. |
| 12207 | if test -x /usr/bin/objformat; then |
| 12208 | objformat=`/usr/bin/objformat` |
| 12209 | else |
| 12210 | case $host_os in |
| 12211 | freebsd[123]*) objformat=aout ;; |
| 12212 | *) objformat=elf ;; |
| 12213 | esac |
| 12214 | fi |
| 12215 | version_type=freebsd-$objformat |
| 12216 | case $version_type in |
| 12217 | freebsd-elf*) |
| 12218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12219 | need_version=no |
| 12220 | need_lib_prefix=no |
| 12221 | ;; |
| 12222 | freebsd-*) |
| 12223 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12224 | need_version=yes |
| 12225 | ;; |
| 12226 | esac |
| 12227 | shlibpath_var=LD_LIBRARY_PATH |
| 12228 | case $host_os in |
| 12229 | freebsd2*) |
| 12230 | shlibpath_overrides_runpath=yes |
| 12231 | ;; |
| 12232 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 12233 | shlibpath_overrides_runpath=yes |
| 12234 | hardcode_into_libs=yes |
| 12235 | ;; |
| 12236 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12237 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 12238 | shlibpath_overrides_runpath=no |
| 12239 | hardcode_into_libs=yes |
| 12240 | ;; |
| 12241 | *) # from 4.6 on, and DragonFly |
| 12242 | shlibpath_overrides_runpath=yes |
| 12243 | hardcode_into_libs=yes |
| 12244 | ;; |
| 12245 | esac |
| 12246 | ;; |
| 12247 | |
| 12248 | gnu*) |
| 12249 | version_type=linux |
| 12250 | need_lib_prefix=no |
| 12251 | need_version=no |
| 12252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12254 | shlibpath_var=LD_LIBRARY_PATH |
| 12255 | shlibpath_overrides_runpath=no |
| 12256 | hardcode_into_libs=yes |
| 12257 | ;; |
| 12258 | |
| 12259 | haiku*) |
| 12260 | version_type=linux |
| 12261 | need_lib_prefix=no |
| 12262 | need_version=no |
| 12263 | dynamic_linker="$host_os runtime_loader" |
| 12264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12265 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12266 | shlibpath_var=LIBRARY_PATH |
| 12267 | shlibpath_overrides_runpath=yes |
| 12268 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 12269 | hardcode_into_libs=yes |
| 12270 | ;; |
| 12271 | |
| 12272 | hpux9* | hpux10* | hpux11*) |
| 12273 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12274 | # link against other versions. |
| 12275 | version_type=sunos |
| 12276 | need_lib_prefix=no |
| 12277 | need_version=no |
| 12278 | case $host_cpu in |
| 12279 | ia64*) |
| 12280 | shrext_cmds='.so' |
| 12281 | hardcode_into_libs=yes |
| 12282 | dynamic_linker="$host_os dld.so" |
| 12283 | shlibpath_var=LD_LIBRARY_PATH |
| 12284 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12287 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12288 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12289 | else |
| 12290 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12291 | fi |
| 12292 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12293 | ;; |
| 12294 | hppa*64*) |
| 12295 | shrext_cmds='.sl' |
| 12296 | hardcode_into_libs=yes |
| 12297 | dynamic_linker="$host_os dld.sl" |
| 12298 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12299 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12302 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12303 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12304 | ;; |
| 12305 | *) |
| 12306 | shrext_cmds='.sl' |
| 12307 | dynamic_linker="$host_os dld.sl" |
| 12308 | shlibpath_var=SHLIB_PATH |
| 12309 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12312 | ;; |
| 12313 | esac |
| 12314 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 12315 | postinstall_cmds='chmod 555 $lib' |
| 12316 | # or fails outright, so override atomically: |
| 12317 | install_override_mode=555 |
| 12318 | ;; |
| 12319 | |
| 12320 | interix[3-9]*) |
| 12321 | version_type=linux |
| 12322 | need_lib_prefix=no |
| 12323 | need_version=no |
| 12324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12325 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12326 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12327 | shlibpath_var=LD_LIBRARY_PATH |
| 12328 | shlibpath_overrides_runpath=no |
| 12329 | hardcode_into_libs=yes |
| 12330 | ;; |
| 12331 | |
| 12332 | irix5* | irix6* | nonstopux*) |
| 12333 | case $host_os in |
| 12334 | nonstopux*) version_type=nonstopux ;; |
| 12335 | *) |
| 12336 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12337 | version_type=linux |
| 12338 | else |
| 12339 | version_type=irix |
| 12340 | fi ;; |
| 12341 | esac |
| 12342 | need_lib_prefix=no |
| 12343 | need_version=no |
| 12344 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12346 | case $host_os in |
| 12347 | irix5* | nonstopux*) |
| 12348 | libsuff= shlibsuff= |
| 12349 | ;; |
| 12350 | *) |
| 12351 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12352 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12353 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12354 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12355 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12356 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12357 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12358 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12359 | esac |
| 12360 | ;; |
| 12361 | esac |
| 12362 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12363 | shlibpath_overrides_runpath=no |
| 12364 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12365 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12366 | hardcode_into_libs=yes |
| 12367 | ;; |
| 12368 | |
| 12369 | # No shared lib support for Linux oldld, aout, or coff. |
| 12370 | linux*oldld* | linux*aout* | linux*coff*) |
| 12371 | dynamic_linker=no |
| 12372 | ;; |
| 12373 | |
| 12374 | # This must be Linux ELF. |
| 12375 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 12376 | version_type=linux |
| 12377 | need_lib_prefix=no |
| 12378 | need_version=no |
| 12379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12380 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12382 | shlibpath_var=LD_LIBRARY_PATH |
| 12383 | shlibpath_overrides_runpath=no |
| 12384 | |
| 12385 | # Some binutils ld are patched to set DT_RUNPATH |
| 12386 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 12387 | $as_echo_n "(cached) " >&6 |
| 12388 | else |
| 12389 | lt_cv_shlibpath_overrides_runpath=no |
| 12390 | save_LDFLAGS=$LDFLAGS |
| 12391 | save_libdir=$libdir |
| 12392 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 12393 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 12394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12395 | /* end confdefs.h. */ |
| 12396 | |
| 12397 | int |
| 12398 | main () |
| 12399 | { |
| 12400 | |
| 12401 | ; |
| 12402 | return 0; |
| 12403 | } |
| 12404 | _ACEOF |
| 12405 | if ac_fn_c_try_link "$LINENO"; then : |
| 12406 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 12407 | lt_cv_shlibpath_overrides_runpath=yes |
| 12408 | fi |
| 12409 | fi |
| 12410 | rm -f core conftest.err conftest.$ac_objext \ |
| 12411 | conftest$ac_exeext conftest.$ac_ext |
| 12412 | LDFLAGS=$save_LDFLAGS |
| 12413 | libdir=$save_libdir |
| 12414 | |
| 12415 | fi |
| 12416 | |
| 12417 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 12418 | |
| 12419 | # This implies no fast_install, which is unacceptable. |
| 12420 | # Some rework will be needed to allow for fast_install |
| 12421 | # before this can be enabled. |
| 12422 | hardcode_into_libs=yes |
| 12423 | |
| 12424 | # Append ld.so.conf contents to the search path |
| 12425 | if test -f /etc/ld.so.conf; then |
| 12426 | 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' ' '` |
| 12427 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 12428 | fi |
| 12429 | |
| 12430 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12431 | # powerpc, because MkLinux only supported shared libraries with the |
| 12432 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12433 | # most powerpc-linux boxes support dynamic linking these days and |
| 12434 | # people can always --disable-shared, the test was removed, and we |
| 12435 | # assume the GNU/Linux dynamic linker is in use. |
| 12436 | dynamic_linker='GNU/Linux ld.so' |
| 12437 | ;; |
| 12438 | |
| 12439 | netbsdelf*-gnu) |
| 12440 | version_type=linux |
| 12441 | need_lib_prefix=no |
| 12442 | need_version=no |
| 12443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12444 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12445 | shlibpath_var=LD_LIBRARY_PATH |
| 12446 | shlibpath_overrides_runpath=no |
| 12447 | hardcode_into_libs=yes |
| 12448 | dynamic_linker='NetBSD ld.elf_so' |
| 12449 | ;; |
| 12450 | |
| 12451 | netbsd*) |
| 12452 | version_type=sunos |
| 12453 | need_lib_prefix=no |
| 12454 | need_version=no |
| 12455 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12458 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12459 | else |
| 12460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12462 | dynamic_linker='NetBSD ld.elf_so' |
| 12463 | fi |
| 12464 | shlibpath_var=LD_LIBRARY_PATH |
| 12465 | shlibpath_overrides_runpath=yes |
| 12466 | hardcode_into_libs=yes |
| 12467 | ;; |
| 12468 | |
| 12469 | newsos6) |
| 12470 | version_type=linux |
| 12471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12472 | shlibpath_var=LD_LIBRARY_PATH |
| 12473 | shlibpath_overrides_runpath=yes |
| 12474 | ;; |
| 12475 | |
| 12476 | *nto* | *qnx*) |
| 12477 | version_type=qnx |
| 12478 | need_lib_prefix=no |
| 12479 | need_version=no |
| 12480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12482 | shlibpath_var=LD_LIBRARY_PATH |
| 12483 | shlibpath_overrides_runpath=no |
| 12484 | hardcode_into_libs=yes |
| 12485 | dynamic_linker='ldqnx.so' |
| 12486 | ;; |
| 12487 | |
| 12488 | openbsd*) |
| 12489 | version_type=sunos |
| 12490 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 12491 | need_lib_prefix=no |
| 12492 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 12493 | case $host_os in |
| 12494 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 12495 | *) need_version=no ;; |
| 12496 | esac |
| 12497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12498 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12499 | shlibpath_var=LD_LIBRARY_PATH |
| 12500 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12501 | case $host_os in |
| 12502 | openbsd2.[89] | openbsd2.[89].*) |
| 12503 | shlibpath_overrides_runpath=no |
| 12504 | ;; |
| 12505 | *) |
| 12506 | shlibpath_overrides_runpath=yes |
| 12507 | ;; |
| 12508 | esac |
| 12509 | else |
| 12510 | shlibpath_overrides_runpath=yes |
| 12511 | fi |
| 12512 | ;; |
| 12513 | |
| 12514 | os2*) |
| 12515 | libname_spec='$name' |
| 12516 | shrext_cmds=".dll" |
| 12517 | need_lib_prefix=no |
| 12518 | library_names_spec='$libname${shared_ext} $libname.a' |
| 12519 | dynamic_linker='OS/2 ld.exe' |
| 12520 | shlibpath_var=LIBPATH |
| 12521 | ;; |
| 12522 | |
| 12523 | osf3* | osf4* | osf5*) |
| 12524 | version_type=osf |
| 12525 | need_lib_prefix=no |
| 12526 | need_version=no |
| 12527 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12529 | shlibpath_var=LD_LIBRARY_PATH |
| 12530 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12531 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12532 | ;; |
| 12533 | |
| 12534 | rdos*) |
| 12535 | dynamic_linker=no |
| 12536 | ;; |
| 12537 | |
| 12538 | solaris*) |
| 12539 | version_type=linux |
| 12540 | need_lib_prefix=no |
| 12541 | need_version=no |
| 12542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12543 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12544 | shlibpath_var=LD_LIBRARY_PATH |
| 12545 | shlibpath_overrides_runpath=yes |
| 12546 | hardcode_into_libs=yes |
| 12547 | # ldd complains unless libraries are executable |
| 12548 | postinstall_cmds='chmod +x $lib' |
| 12549 | ;; |
| 12550 | |
| 12551 | sunos4*) |
| 12552 | version_type=sunos |
| 12553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12554 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 12555 | shlibpath_var=LD_LIBRARY_PATH |
| 12556 | shlibpath_overrides_runpath=yes |
| 12557 | if test "$with_gnu_ld" = yes; then |
| 12558 | need_lib_prefix=no |
| 12559 | fi |
| 12560 | need_version=yes |
| 12561 | ;; |
| 12562 | |
| 12563 | sysv4 | sysv4.3*) |
| 12564 | version_type=linux |
| 12565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12567 | shlibpath_var=LD_LIBRARY_PATH |
| 12568 | case $host_vendor in |
| 12569 | sni) |
| 12570 | shlibpath_overrides_runpath=no |
| 12571 | need_lib_prefix=no |
| 12572 | runpath_var=LD_RUN_PATH |
| 12573 | ;; |
| 12574 | siemens) |
| 12575 | need_lib_prefix=no |
| 12576 | ;; |
| 12577 | motorola) |
| 12578 | need_lib_prefix=no |
| 12579 | need_version=no |
| 12580 | shlibpath_overrides_runpath=no |
| 12581 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 12582 | ;; |
| 12583 | esac |
| 12584 | ;; |
| 12585 | |
| 12586 | sysv4*MP*) |
| 12587 | if test -d /usr/nec ;then |
| 12588 | version_type=linux |
| 12589 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 12590 | soname_spec='$libname${shared_ext}.$major' |
| 12591 | shlibpath_var=LD_LIBRARY_PATH |
| 12592 | fi |
| 12593 | ;; |
| 12594 | |
| 12595 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 12596 | version_type=freebsd-elf |
| 12597 | need_lib_prefix=no |
| 12598 | need_version=no |
| 12599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12601 | shlibpath_var=LD_LIBRARY_PATH |
| 12602 | shlibpath_overrides_runpath=yes |
| 12603 | hardcode_into_libs=yes |
| 12604 | if test "$with_gnu_ld" = yes; then |
| 12605 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 12606 | else |
| 12607 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 12608 | case $host_os in |
| 12609 | sco3.2v5*) |
| 12610 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 12611 | ;; |
| 12612 | esac |
| 12613 | fi |
| 12614 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 12615 | ;; |
| 12616 | |
| 12617 | tpf*) |
| 12618 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 12619 | version_type=linux |
| 12620 | need_lib_prefix=no |
| 12621 | need_version=no |
| 12622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12623 | shlibpath_var=LD_LIBRARY_PATH |
| 12624 | shlibpath_overrides_runpath=no |
| 12625 | hardcode_into_libs=yes |
| 12626 | ;; |
| 12627 | |
| 12628 | uts4*) |
| 12629 | version_type=linux |
| 12630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12631 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12632 | shlibpath_var=LD_LIBRARY_PATH |
| 12633 | ;; |
| 12634 | |
| 12635 | *) |
| 12636 | dynamic_linker=no |
| 12637 | ;; |
| 12638 | esac |
| 12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 12640 | $as_echo "$dynamic_linker" >&6; } |
| 12641 | test "$dynamic_linker" = no && can_build_shared=no |
| 12642 | |
| 12643 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12644 | if test "$GCC" = yes; then |
| 12645 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12646 | fi |
| 12647 | |
| 12648 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 12649 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 12650 | fi |
| 12651 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 12652 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 12653 | fi |
| 12654 | |
| 12655 | |
| 12656 | |
| 12657 | |
| 12658 | |
| 12659 | |
| 12660 | |
| 12661 | |
| 12662 | |
| 12663 | |
| 12664 | |
| 12665 | |
| 12666 | |
| 12667 | |
| 12668 | |
| 12669 | |
| 12670 | |
| 12671 | |
| 12672 | |
| 12673 | |
| 12674 | |
| 12675 | |
| 12676 | |
| 12677 | |
| 12678 | |
| 12679 | |
| 12680 | |
| 12681 | |
| 12682 | |
| 12683 | |
| 12684 | |
| 12685 | |
| 12686 | |
| 12687 | |
| 12688 | |
| 12689 | |
| 12690 | |
| 12691 | |
| 12692 | |
| 12693 | |
| 12694 | |
| 12695 | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 | |
| 12700 | |
| 12701 | |
| 12702 | |
| 12703 | |
| 12704 | |
| 12705 | |
| 12706 | |
| 12707 | |
| 12708 | |
| 12709 | |
| 12710 | |
| 12711 | |
| 12712 | |
| 12713 | |
| 12714 | |
| 12715 | |
| 12716 | |
| 12717 | |
| 12718 | |
| 12719 | |
| 12720 | |
| 12721 | |
| 12722 | |
| 12723 | |
| 12724 | |
| 12725 | |
| 12726 | |
| 12727 | |
| 12728 | |
| 12729 | |
| 12730 | |
| 12731 | |
| 12732 | |
| 12733 | |
| 12734 | |
| 12735 | |
| 12736 | |
| 12737 | |
| 12738 | |
| 12739 | |
| 12740 | |
| 12741 | |
| 12742 | |
| 12743 | |
| 12744 | |
| 12745 | |
| 12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 12747 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 12748 | hardcode_action= |
| 12749 | if test -n "$hardcode_libdir_flag_spec" || |
| 12750 | test -n "$runpath_var" || |
| 12751 | test "X$hardcode_automatic" = "Xyes" ; then |
| 12752 | |
| 12753 | # We can hardcode non-existent directories. |
| 12754 | if test "$hardcode_direct" != no && |
| 12755 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 12756 | # have to relink, otherwise we might link with an installed library |
| 12757 | # when we should be linking with a yet-to-be-installed one |
| 12758 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 12759 | test "$hardcode_minus_L" != no; then |
| 12760 | # Linking always hardcodes the temporary library directory. |
| 12761 | hardcode_action=relink |
| 12762 | else |
| 12763 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 12764 | hardcode_action=immediate |
| 12765 | fi |
| 12766 | else |
| 12767 | # We cannot hardcode anything, or else we can only hardcode existing |
| 12768 | # directories. |
| 12769 | hardcode_action=unsupported |
| 12770 | fi |
| 12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 12772 | $as_echo "$hardcode_action" >&6; } |
| 12773 | |
| 12774 | if test "$hardcode_action" = relink || |
| 12775 | test "$inherit_rpath" = yes; then |
| 12776 | # Fast installation is not supported |
| 12777 | enable_fast_install=no |
| 12778 | elif test "$shlibpath_overrides_runpath" = yes || |
| 12779 | test "$enable_shared" = no; then |
| 12780 | # Fast installation is not necessary |
| 12781 | enable_fast_install=needless |
| 12782 | fi |
| 12783 | |
| 12784 | |
| 12785 | |
| 12786 | |
| 12787 | |
| 12788 | |
| 12789 | if test "x$enable_dlopen" != xyes; then |
| 12790 | enable_dlopen=unknown |
| 12791 | enable_dlopen_self=unknown |
| 12792 | enable_dlopen_self_static=unknown |
| 12793 | else |
| 12794 | lt_cv_dlopen=no |
| 12795 | lt_cv_dlopen_libs= |
| 12796 | |
| 12797 | case $host_os in |
| 12798 | beos*) |
| 12799 | lt_cv_dlopen="load_add_on" |
| 12800 | lt_cv_dlopen_libs= |
| 12801 | lt_cv_dlopen_self=yes |
| 12802 | ;; |
| 12803 | |
| 12804 | mingw* | pw32* | cegcc*) |
| 12805 | lt_cv_dlopen="LoadLibrary" |
| 12806 | lt_cv_dlopen_libs= |
| 12807 | ;; |
| 12808 | |
| 12809 | cygwin*) |
| 12810 | lt_cv_dlopen="dlopen" |
| 12811 | lt_cv_dlopen_libs= |
| 12812 | ;; |
| 12813 | |
| 12814 | darwin*) |
| 12815 | # if libdl is installed we need to link against it |
| 12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 12817 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 12818 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 12819 | $as_echo_n "(cached) " >&6 |
| 12820 | else |
| 12821 | ac_check_lib_save_LIBS=$LIBS |
| 12822 | LIBS="-ldl $LIBS" |
| 12823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12824 | /* end confdefs.h. */ |
| 12825 | |
| 12826 | /* Override any GCC internal prototype to avoid an error. |
| 12827 | Use char because int might match the return type of a GCC |
| 12828 | builtin and then its argument prototype would still apply. */ |
| 12829 | #ifdef __cplusplus |
| 12830 | extern "C" |
| 12831 | #endif |
| 12832 | char dlopen (); |
| 12833 | int |
| 12834 | main () |
| 12835 | { |
| 12836 | return dlopen (); |
| 12837 | ; |
| 12838 | return 0; |
| 12839 | } |
| 12840 | _ACEOF |
| 12841 | if ac_fn_c_try_link "$LINENO"; then : |
| 12842 | ac_cv_lib_dl_dlopen=yes |
| 12843 | else |
| 12844 | ac_cv_lib_dl_dlopen=no |
| 12845 | fi |
| 12846 | rm -f core conftest.err conftest.$ac_objext \ |
| 12847 | conftest$ac_exeext conftest.$ac_ext |
| 12848 | LIBS=$ac_check_lib_save_LIBS |
| 12849 | fi |
| 12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12851 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 12852 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 12853 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12854 | else |
| 12855 | |
| 12856 | lt_cv_dlopen="dyld" |
| 12857 | lt_cv_dlopen_libs= |
| 12858 | lt_cv_dlopen_self=yes |
| 12859 | |
| 12860 | fi |
| 12861 | |
| 12862 | ;; |
| 12863 | |
| 12864 | *) |
| 12865 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 12866 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 12867 | lt_cv_dlopen="shl_load" |
| 12868 | else |
| 12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 12870 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 12871 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 12872 | $as_echo_n "(cached) " >&6 |
| 12873 | else |
| 12874 | ac_check_lib_save_LIBS=$LIBS |
| 12875 | LIBS="-ldld $LIBS" |
| 12876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12877 | /* end confdefs.h. */ |
| 12878 | |
| 12879 | /* Override any GCC internal prototype to avoid an error. |
| 12880 | Use char because int might match the return type of a GCC |
| 12881 | builtin and then its argument prototype would still apply. */ |
| 12882 | #ifdef __cplusplus |
| 12883 | extern "C" |
| 12884 | #endif |
| 12885 | char shl_load (); |
| 12886 | int |
| 12887 | main () |
| 12888 | { |
| 12889 | return shl_load (); |
| 12890 | ; |
| 12891 | return 0; |
| 12892 | } |
| 12893 | _ACEOF |
| 12894 | if ac_fn_c_try_link "$LINENO"; then : |
| 12895 | ac_cv_lib_dld_shl_load=yes |
| 12896 | else |
| 12897 | ac_cv_lib_dld_shl_load=no |
| 12898 | fi |
| 12899 | rm -f core conftest.err conftest.$ac_objext \ |
| 12900 | conftest$ac_exeext conftest.$ac_ext |
| 12901 | LIBS=$ac_check_lib_save_LIBS |
| 12902 | fi |
| 12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12904 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 12905 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 12906 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 12907 | else |
| 12908 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 12909 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 12910 | lt_cv_dlopen="dlopen" |
| 12911 | else |
| 12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 12913 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 12914 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 12915 | $as_echo_n "(cached) " >&6 |
| 12916 | else |
| 12917 | ac_check_lib_save_LIBS=$LIBS |
| 12918 | LIBS="-ldl $LIBS" |
| 12919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12920 | /* end confdefs.h. */ |
| 12921 | |
| 12922 | /* Override any GCC internal prototype to avoid an error. |
| 12923 | Use char because int might match the return type of a GCC |
| 12924 | builtin and then its argument prototype would still apply. */ |
| 12925 | #ifdef __cplusplus |
| 12926 | extern "C" |
| 12927 | #endif |
| 12928 | char dlopen (); |
| 12929 | int |
| 12930 | main () |
| 12931 | { |
| 12932 | return dlopen (); |
| 12933 | ; |
| 12934 | return 0; |
| 12935 | } |
| 12936 | _ACEOF |
| 12937 | if ac_fn_c_try_link "$LINENO"; then : |
| 12938 | ac_cv_lib_dl_dlopen=yes |
| 12939 | else |
| 12940 | ac_cv_lib_dl_dlopen=no |
| 12941 | fi |
| 12942 | rm -f core conftest.err conftest.$ac_objext \ |
| 12943 | conftest$ac_exeext conftest.$ac_ext |
| 12944 | LIBS=$ac_check_lib_save_LIBS |
| 12945 | fi |
| 12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12947 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 12948 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 12949 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12950 | else |
| 12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12952 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 12953 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 12954 | $as_echo_n "(cached) " >&6 |
| 12955 | else |
| 12956 | ac_check_lib_save_LIBS=$LIBS |
| 12957 | LIBS="-lsvld $LIBS" |
| 12958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12959 | /* end confdefs.h. */ |
| 12960 | |
| 12961 | /* Override any GCC internal prototype to avoid an error. |
| 12962 | Use char because int might match the return type of a GCC |
| 12963 | builtin and then its argument prototype would still apply. */ |
| 12964 | #ifdef __cplusplus |
| 12965 | extern "C" |
| 12966 | #endif |
| 12967 | char dlopen (); |
| 12968 | int |
| 12969 | main () |
| 12970 | { |
| 12971 | return dlopen (); |
| 12972 | ; |
| 12973 | return 0; |
| 12974 | } |
| 12975 | _ACEOF |
| 12976 | if ac_fn_c_try_link "$LINENO"; then : |
| 12977 | ac_cv_lib_svld_dlopen=yes |
| 12978 | else |
| 12979 | ac_cv_lib_svld_dlopen=no |
| 12980 | fi |
| 12981 | rm -f core conftest.err conftest.$ac_objext \ |
| 12982 | conftest$ac_exeext conftest.$ac_ext |
| 12983 | LIBS=$ac_check_lib_save_LIBS |
| 12984 | fi |
| 12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12986 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 12987 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 12988 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12989 | else |
| 12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 12991 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 12992 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 12993 | $as_echo_n "(cached) " >&6 |
| 12994 | else |
| 12995 | ac_check_lib_save_LIBS=$LIBS |
| 12996 | LIBS="-ldld $LIBS" |
| 12997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12998 | /* end confdefs.h. */ |
| 12999 | |
| 13000 | /* Override any GCC internal prototype to avoid an error. |
| 13001 | Use char because int might match the return type of a GCC |
| 13002 | builtin and then its argument prototype would still apply. */ |
| 13003 | #ifdef __cplusplus |
| 13004 | extern "C" |
| 13005 | #endif |
| 13006 | char dld_link (); |
| 13007 | int |
| 13008 | main () |
| 13009 | { |
| 13010 | return dld_link (); |
| 13011 | ; |
| 13012 | return 0; |
| 13013 | } |
| 13014 | _ACEOF |
| 13015 | if ac_fn_c_try_link "$LINENO"; then : |
| 13016 | ac_cv_lib_dld_dld_link=yes |
| 13017 | else |
| 13018 | ac_cv_lib_dld_dld_link=no |
| 13019 | fi |
| 13020 | rm -f core conftest.err conftest.$ac_objext \ |
| 13021 | conftest$ac_exeext conftest.$ac_ext |
| 13022 | LIBS=$ac_check_lib_save_LIBS |
| 13023 | fi |
| 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13025 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 13026 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 13027 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 13028 | fi |
| 13029 | |
| 13030 | |
| 13031 | fi |
| 13032 | |
| 13033 | |
| 13034 | fi |
| 13035 | |
| 13036 | |
| 13037 | fi |
| 13038 | |
| 13039 | |
| 13040 | fi |
| 13041 | |
| 13042 | |
| 13043 | fi |
| 13044 | |
| 13045 | ;; |
| 13046 | esac |
| 13047 | |
| 13048 | if test "x$lt_cv_dlopen" != xno; then |
| 13049 | enable_dlopen=yes |
| 13050 | else |
| 13051 | enable_dlopen=no |
| 13052 | fi |
| 13053 | |
| 13054 | case $lt_cv_dlopen in |
| 13055 | dlopen) |
| 13056 | save_CPPFLAGS="$CPPFLAGS" |
| 13057 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13058 | |
| 13059 | save_LDFLAGS="$LDFLAGS" |
| 13060 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13061 | |
| 13062 | save_LIBS="$LIBS" |
| 13063 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13064 | |
| 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13066 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 13067 | if ${lt_cv_dlopen_self+:} false; then : |
| 13068 | $as_echo_n "(cached) " >&6 |
| 13069 | else |
| 13070 | if test "$cross_compiling" = yes; then : |
| 13071 | lt_cv_dlopen_self=cross |
| 13072 | else |
| 13073 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13074 | lt_status=$lt_dlunknown |
| 13075 | cat > conftest.$ac_ext <<_LT_EOF |
| 13076 | #line $LINENO "configure" |
| 13077 | #include "confdefs.h" |
| 13078 | |
| 13079 | #if HAVE_DLFCN_H |
| 13080 | #include <dlfcn.h> |
| 13081 | #endif |
| 13082 | |
| 13083 | #include <stdio.h> |
| 13084 | |
| 13085 | #ifdef RTLD_GLOBAL |
| 13086 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13087 | #else |
| 13088 | # ifdef DL_GLOBAL |
| 13089 | # define LT_DLGLOBAL DL_GLOBAL |
| 13090 | # else |
| 13091 | # define LT_DLGLOBAL 0 |
| 13092 | # endif |
| 13093 | #endif |
| 13094 | |
| 13095 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13096 | find out it does not work in some platform. */ |
| 13097 | #ifndef LT_DLLAZY_OR_NOW |
| 13098 | # ifdef RTLD_LAZY |
| 13099 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13100 | # else |
| 13101 | # ifdef DL_LAZY |
| 13102 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13103 | # else |
| 13104 | # ifdef RTLD_NOW |
| 13105 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13106 | # else |
| 13107 | # ifdef DL_NOW |
| 13108 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13109 | # else |
| 13110 | # define LT_DLLAZY_OR_NOW 0 |
| 13111 | # endif |
| 13112 | # endif |
| 13113 | # endif |
| 13114 | # endif |
| 13115 | #endif |
| 13116 | |
| 13117 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 13118 | correspondingly for the symbols needed. */ |
| 13119 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13120 | int fnord () __attribute__((visibility("default"))); |
| 13121 | #endif |
| 13122 | |
| 13123 | int fnord () { return 42; } |
| 13124 | int main () |
| 13125 | { |
| 13126 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13127 | int status = $lt_dlunknown; |
| 13128 | |
| 13129 | if (self) |
| 13130 | { |
| 13131 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13132 | else |
| 13133 | { |
| 13134 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13135 | else puts (dlerror ()); |
| 13136 | } |
| 13137 | /* dlclose (self); */ |
| 13138 | } |
| 13139 | else |
| 13140 | puts (dlerror ()); |
| 13141 | |
| 13142 | return status; |
| 13143 | } |
| 13144 | _LT_EOF |
| 13145 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13146 | (eval $ac_link) 2>&5 |
| 13147 | ac_status=$? |
| 13148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13149 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13150 | (./conftest; exit; ) >&5 2>/dev/null |
| 13151 | lt_status=$? |
| 13152 | case x$lt_status in |
| 13153 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13154 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13155 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 13156 | esac |
| 13157 | else : |
| 13158 | # compilation failed |
| 13159 | lt_cv_dlopen_self=no |
| 13160 | fi |
| 13161 | fi |
| 13162 | rm -fr conftest* |
| 13163 | |
| 13164 | |
| 13165 | fi |
| 13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 13167 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 13168 | |
| 13169 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 13170 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 13172 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 13173 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 13174 | $as_echo_n "(cached) " >&6 |
| 13175 | else |
| 13176 | if test "$cross_compiling" = yes; then : |
| 13177 | lt_cv_dlopen_self_static=cross |
| 13178 | else |
| 13179 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13180 | lt_status=$lt_dlunknown |
| 13181 | cat > conftest.$ac_ext <<_LT_EOF |
| 13182 | #line $LINENO "configure" |
| 13183 | #include "confdefs.h" |
| 13184 | |
| 13185 | #if HAVE_DLFCN_H |
| 13186 | #include <dlfcn.h> |
| 13187 | #endif |
| 13188 | |
| 13189 | #include <stdio.h> |
| 13190 | |
| 13191 | #ifdef RTLD_GLOBAL |
| 13192 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13193 | #else |
| 13194 | # ifdef DL_GLOBAL |
| 13195 | # define LT_DLGLOBAL DL_GLOBAL |
| 13196 | # else |
| 13197 | # define LT_DLGLOBAL 0 |
| 13198 | # endif |
| 13199 | #endif |
| 13200 | |
| 13201 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13202 | find out it does not work in some platform. */ |
| 13203 | #ifndef LT_DLLAZY_OR_NOW |
| 13204 | # ifdef RTLD_LAZY |
| 13205 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13206 | # else |
| 13207 | # ifdef DL_LAZY |
| 13208 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13209 | # else |
| 13210 | # ifdef RTLD_NOW |
| 13211 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13212 | # else |
| 13213 | # ifdef DL_NOW |
| 13214 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13215 | # else |
| 13216 | # define LT_DLLAZY_OR_NOW 0 |
| 13217 | # endif |
| 13218 | # endif |
| 13219 | # endif |
| 13220 | # endif |
| 13221 | #endif |
| 13222 | |
| 13223 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 13224 | correspondingly for the symbols needed. */ |
| 13225 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13226 | int fnord () __attribute__((visibility("default"))); |
| 13227 | #endif |
| 13228 | |
| 13229 | int fnord () { return 42; } |
| 13230 | int main () |
| 13231 | { |
| 13232 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13233 | int status = $lt_dlunknown; |
| 13234 | |
| 13235 | if (self) |
| 13236 | { |
| 13237 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13238 | else |
| 13239 | { |
| 13240 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13241 | else puts (dlerror ()); |
| 13242 | } |
| 13243 | /* dlclose (self); */ |
| 13244 | } |
| 13245 | else |
| 13246 | puts (dlerror ()); |
| 13247 | |
| 13248 | return status; |
| 13249 | } |
| 13250 | _LT_EOF |
| 13251 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13252 | (eval $ac_link) 2>&5 |
| 13253 | ac_status=$? |
| 13254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13255 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13256 | (./conftest; exit; ) >&5 2>/dev/null |
| 13257 | lt_status=$? |
| 13258 | case x$lt_status in |
| 13259 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13260 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13261 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 13262 | esac |
| 13263 | else : |
| 13264 | # compilation failed |
| 13265 | lt_cv_dlopen_self_static=no |
| 13266 | fi |
| 13267 | fi |
| 13268 | rm -fr conftest* |
| 13269 | |
| 13270 | |
| 13271 | fi |
| 13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 13273 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 13274 | fi |
| 13275 | |
| 13276 | CPPFLAGS="$save_CPPFLAGS" |
| 13277 | LDFLAGS="$save_LDFLAGS" |
| 13278 | LIBS="$save_LIBS" |
| 13279 | ;; |
| 13280 | esac |
| 13281 | |
| 13282 | case $lt_cv_dlopen_self in |
| 13283 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 13284 | *) enable_dlopen_self=unknown ;; |
| 13285 | esac |
| 13286 | |
| 13287 | case $lt_cv_dlopen_self_static in |
| 13288 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 13289 | *) enable_dlopen_self_static=unknown ;; |
| 13290 | esac |
| 13291 | fi |
| 13292 | |
| 13293 | |
| 13294 | |
| 13295 | |
| 13296 | |
| 13297 | |
| 13298 | |
| 13299 | |
| 13300 | |
| 13301 | |
| 13302 | |
| 13303 | |
| 13304 | |
| 13305 | |
| 13306 | |
| 13307 | |
| 13308 | |
| 13309 | striplib= |
| 13310 | old_striplib= |
| 13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 13312 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 13313 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 13314 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13315 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13317 | $as_echo "yes" >&6; } |
| 13318 | else |
| 13319 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13320 | case $host_os in |
| 13321 | darwin*) |
| 13322 | if test -n "$STRIP" ; then |
| 13323 | striplib="$STRIP -x" |
| 13324 | old_striplib="$STRIP -S" |
| 13325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13326 | $as_echo "yes" >&6; } |
| 13327 | else |
| 13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13329 | $as_echo "no" >&6; } |
| 13330 | fi |
| 13331 | ;; |
| 13332 | *) |
| 13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13334 | $as_echo "no" >&6; } |
| 13335 | ;; |
| 13336 | esac |
| 13337 | fi |
| 13338 | |
| 13339 | |
| 13340 | |
| 13341 | |
| 13342 | |
| 13343 | |
| 13344 | |
| 13345 | |
| 13346 | |
| 13347 | |
| 13348 | |
| 13349 | |
| 13350 | # Report which library types will actually be built |
| 13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 13352 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 13354 | $as_echo "$can_build_shared" >&6; } |
| 13355 | |
| 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 13357 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 13358 | test "$can_build_shared" = "no" && enable_shared=no |
| 13359 | |
| 13360 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13361 | # are all built from PIC. |
| 13362 | case $host_os in |
| 13363 | aix3*) |
| 13364 | test "$enable_shared" = yes && enable_static=no |
| 13365 | if test -n "$RANLIB"; then |
| 13366 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13367 | postinstall_cmds='$RANLIB $lib' |
| 13368 | fi |
| 13369 | ;; |
| 13370 | |
| 13371 | aix[4-9]*) |
| 13372 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 13373 | test "$enable_shared" = yes && enable_static=no |
| 13374 | fi |
| 13375 | ;; |
| 13376 | esac |
| 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 13378 | $as_echo "$enable_shared" >&6; } |
| 13379 | |
| 13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 13381 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 13382 | # Make sure either enable_shared or enable_static is yes. |
| 13383 | test "$enable_shared" = yes || enable_static=yes |
| 13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 13385 | $as_echo "$enable_static" >&6; } |
| 13386 | |
| 13387 | |
| 13388 | |
| 13389 | |
| 13390 | fi |
| 13391 | ac_ext=cpp |
| 13392 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13393 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13394 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13395 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13396 | |
| 13397 | CC="$lt_save_CC" |
| 13398 | |
| 13399 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13400 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13401 | (test "X$CXX" != "Xg++"))) ; then |
| 13402 | ac_ext=cpp |
| 13403 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 13408 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 13409 | if test -z "$CXXCPP"; then |
| 13410 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 13411 | $as_echo_n "(cached) " >&6 |
| 13412 | else |
| 13413 | # Double quotes because CXXCPP needs to be expanded |
| 13414 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13415 | do |
| 13416 | ac_preproc_ok=false |
| 13417 | for ac_cxx_preproc_warn_flag in '' yes |
| 13418 | do |
| 13419 | # Use a header file that comes with gcc, so configuring glibc |
| 13420 | # with a fresh cross-compiler works. |
| 13421 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13422 | # <limits.h> exists even on freestanding compilers. |
| 13423 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13424 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13426 | /* end confdefs.h. */ |
| 13427 | #ifdef __STDC__ |
| 13428 | # include <limits.h> |
| 13429 | #else |
| 13430 | # include <assert.h> |
| 13431 | #endif |
| 13432 | Syntax error |
| 13433 | _ACEOF |
| 13434 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 13435 | |
| 13436 | else |
| 13437 | # Broken: fails on valid input. |
| 13438 | continue |
| 13439 | fi |
| 13440 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13441 | |
| 13442 | # OK, works on sane cases. Now check whether nonexistent headers |
| 13443 | # can be detected and how. |
| 13444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13445 | /* end confdefs.h. */ |
| 13446 | #include <ac_nonexistent.h> |
| 13447 | _ACEOF |
| 13448 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 13449 | # Broken: success on invalid input. |
| 13450 | continue |
| 13451 | else |
| 13452 | # Passes both tests. |
| 13453 | ac_preproc_ok=: |
| 13454 | break |
| 13455 | fi |
| 13456 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13457 | |
| 13458 | done |
| 13459 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13460 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 13461 | if $ac_preproc_ok; then : |
| 13462 | break |
| 13463 | fi |
| 13464 | |
| 13465 | done |
| 13466 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13467 | |
| 13468 | fi |
| 13469 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13470 | else |
| 13471 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13472 | fi |
| 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 13474 | $as_echo "$CXXCPP" >&6; } |
| 13475 | ac_preproc_ok=false |
| 13476 | for ac_cxx_preproc_warn_flag in '' yes |
| 13477 | do |
| 13478 | # Use a header file that comes with gcc, so configuring glibc |
| 13479 | # with a fresh cross-compiler works. |
| 13480 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13481 | # <limits.h> exists even on freestanding compilers. |
| 13482 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13483 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13485 | /* end confdefs.h. */ |
| 13486 | #ifdef __STDC__ |
| 13487 | # include <limits.h> |
| 13488 | #else |
| 13489 | # include <assert.h> |
| 13490 | #endif |
| 13491 | Syntax error |
| 13492 | _ACEOF |
| 13493 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 13494 | |
| 13495 | else |
| 13496 | # Broken: fails on valid input. |
| 13497 | continue |
| 13498 | fi |
| 13499 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13500 | |
| 13501 | # OK, works on sane cases. Now check whether nonexistent headers |
| 13502 | # can be detected and how. |
| 13503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13504 | /* end confdefs.h. */ |
| 13505 | #include <ac_nonexistent.h> |
| 13506 | _ACEOF |
| 13507 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 13508 | # Broken: success on invalid input. |
| 13509 | continue |
| 13510 | else |
| 13511 | # Passes both tests. |
| 13512 | ac_preproc_ok=: |
| 13513 | break |
| 13514 | fi |
| 13515 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13516 | |
| 13517 | done |
| 13518 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13519 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 13520 | if $ac_preproc_ok; then : |
| 13521 | |
| 13522 | else |
| 13523 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13525 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13526 | See \`config.log' for more details" "$LINENO" 5; } |
| 13527 | fi |
| 13528 | |
| 13529 | ac_ext=cpp |
| 13530 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13531 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13532 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13533 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13534 | |
| 13535 | else |
| 13536 | _lt_caught_CXX_error=yes |
| 13537 | fi |
| 13538 | |
| 13539 | ac_ext=cpp |
| 13540 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13541 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13542 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13543 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13544 | |
| 13545 | archive_cmds_need_lc_CXX=no |
| 13546 | allow_undefined_flag_CXX= |
| 13547 | always_export_symbols_CXX=no |
| 13548 | archive_expsym_cmds_CXX= |
| 13549 | compiler_needs_object_CXX=no |
| 13550 | export_dynamic_flag_spec_CXX= |
| 13551 | hardcode_direct_CXX=no |
| 13552 | hardcode_direct_absolute_CXX=no |
| 13553 | hardcode_libdir_flag_spec_CXX= |
| 13554 | hardcode_libdir_flag_spec_ld_CXX= |
| 13555 | hardcode_libdir_separator_CXX= |
| 13556 | hardcode_minus_L_CXX=no |
| 13557 | hardcode_shlibpath_var_CXX=unsupported |
| 13558 | hardcode_automatic_CXX=no |
| 13559 | inherit_rpath_CXX=no |
| 13560 | module_cmds_CXX= |
| 13561 | module_expsym_cmds_CXX= |
| 13562 | link_all_deplibs_CXX=unknown |
| 13563 | old_archive_cmds_CXX=$old_archive_cmds |
| 13564 | reload_flag_CXX=$reload_flag |
| 13565 | reload_cmds_CXX=$reload_cmds |
| 13566 | no_undefined_flag_CXX= |
| 13567 | whole_archive_flag_spec_CXX= |
| 13568 | enable_shared_with_static_runtimes_CXX=no |
| 13569 | |
| 13570 | # Source file extension for C++ test sources. |
| 13571 | ac_ext=cpp |
| 13572 | |
| 13573 | # Object file extension for compiled C++ test sources. |
| 13574 | objext=o |
| 13575 | objext_CXX=$objext |
| 13576 | |
| 13577 | # No sense in running all these tests if we already determined that |
| 13578 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 13579 | # are currently assumed to apply to all compilers on this platform, |
| 13580 | # and will be corrupted by setting them based on a non-working compiler. |
| 13581 | if test "$_lt_caught_CXX_error" != yes; then |
| 13582 | # Code to be used in simple compile tests |
| 13583 | lt_simple_compile_test_code="int some_variable = 0;" |
| 13584 | |
| 13585 | # Code to be used in simple link tests |
| 13586 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 13587 | |
| 13588 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | # If no C compiler was specified, use CC. |
| 13596 | LTCC=${LTCC-"$CC"} |
| 13597 | |
| 13598 | # If no C compiler flags were specified, use CFLAGS. |
| 13599 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13600 | |
| 13601 | # Allow CC to be a program name with arguments. |
| 13602 | compiler=$CC |
| 13603 | |
| 13604 | |
| 13605 | # save warnings/boilerplate of simple test code |
| 13606 | ac_outfile=conftest.$ac_objext |
| 13607 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13608 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13609 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13610 | $RM conftest* |
| 13611 | |
| 13612 | ac_outfile=conftest.$ac_objext |
| 13613 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13614 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13615 | _lt_linker_boilerplate=`cat conftest.err` |
| 13616 | $RM -r conftest* |
| 13617 | |
| 13618 | |
| 13619 | # Allow CC to be a program name with arguments. |
| 13620 | lt_save_CC=$CC |
| 13621 | lt_save_CFLAGS=$CFLAGS |
| 13622 | lt_save_LD=$LD |
| 13623 | lt_save_GCC=$GCC |
| 13624 | GCC=$GXX |
| 13625 | lt_save_with_gnu_ld=$with_gnu_ld |
| 13626 | lt_save_path_LD=$lt_cv_path_LD |
| 13627 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 13628 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 13629 | else |
| 13630 | $as_unset lt_cv_prog_gnu_ld |
| 13631 | fi |
| 13632 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 13633 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 13634 | else |
| 13635 | $as_unset lt_cv_path_LD |
| 13636 | fi |
| 13637 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 13638 | CC=${CXX-"c++"} |
| 13639 | CFLAGS=$CXXFLAGS |
| 13640 | compiler=$CC |
| 13641 | compiler_CXX=$CC |
| 13642 | for cc_temp in $compiler""; do |
| 13643 | case $cc_temp in |
| 13644 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13645 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13646 | \-*) ;; |
| 13647 | *) break;; |
| 13648 | esac |
| 13649 | done |
| 13650 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 13651 | |
| 13652 | |
| 13653 | if test -n "$compiler"; then |
| 13654 | # We don't want -fno-exception when compiling C++ code, so set the |
| 13655 | # no_builtin_flag separately |
| 13656 | if test "$GXX" = yes; then |
| 13657 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 13658 | else |
| 13659 | lt_prog_compiler_no_builtin_flag_CXX= |
| 13660 | fi |
| 13661 | |
| 13662 | if test "$GXX" = yes; then |
| 13663 | # Set up default GNU C++ configuration |
| 13664 | |
| 13665 | |
| 13666 | |
| 13667 | # Check whether --with-gnu-ld was given. |
| 13668 | if test "${with_gnu_ld+set}" = set; then : |
| 13669 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 13670 | else |
| 13671 | with_gnu_ld=no |
| 13672 | fi |
| 13673 | |
| 13674 | ac_prog=ld |
| 13675 | if test "$GCC" = yes; then |
| 13676 | # Check if gcc -print-prog-name=ld gives a path. |
| 13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 13678 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 13679 | case $host in |
| 13680 | *-*-mingw*) |
| 13681 | # gcc leaves a trailing carriage return which upsets mingw |
| 13682 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 13683 | *) |
| 13684 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 13685 | esac |
| 13686 | case $ac_prog in |
| 13687 | # Accept absolute paths. |
| 13688 | [\\/]* | ?:[\\/]*) |
| 13689 | re_direlt='/[^/][^/]*/\.\./' |
| 13690 | # Canonicalize the pathname of ld |
| 13691 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 13692 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 13693 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 13694 | done |
| 13695 | test -z "$LD" && LD="$ac_prog" |
| 13696 | ;; |
| 13697 | "") |
| 13698 | # If it fails, then pretend we aren't using GCC. |
| 13699 | ac_prog=ld |
| 13700 | ;; |
| 13701 | *) |
| 13702 | # If it is relative, then search for the first ld in PATH. |
| 13703 | with_gnu_ld=unknown |
| 13704 | ;; |
| 13705 | esac |
| 13706 | elif test "$with_gnu_ld" = yes; then |
| 13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 13708 | $as_echo_n "checking for GNU ld... " >&6; } |
| 13709 | else |
| 13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 13711 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 13712 | fi |
| 13713 | if ${lt_cv_path_LD+:} false; then : |
| 13714 | $as_echo_n "(cached) " >&6 |
| 13715 | else |
| 13716 | if test -z "$LD"; then |
| 13717 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13718 | for ac_dir in $PATH; do |
| 13719 | IFS="$lt_save_ifs" |
| 13720 | test -z "$ac_dir" && ac_dir=. |
| 13721 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 13722 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 13723 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 13724 | # but apparently some variants of GNU ld only accept -v. |
| 13725 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 13726 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 13727 | *GNU* | *'with BFD'*) |
| 13728 | test "$with_gnu_ld" != no && break |
| 13729 | ;; |
| 13730 | *) |
| 13731 | test "$with_gnu_ld" != yes && break |
| 13732 | ;; |
| 13733 | esac |
| 13734 | fi |
| 13735 | done |
| 13736 | IFS="$lt_save_ifs" |
| 13737 | else |
| 13738 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 13739 | fi |
| 13740 | fi |
| 13741 | |
| 13742 | LD="$lt_cv_path_LD" |
| 13743 | if test -n "$LD"; then |
| 13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 13745 | $as_echo "$LD" >&6; } |
| 13746 | else |
| 13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13748 | $as_echo "no" >&6; } |
| 13749 | fi |
| 13750 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 13752 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 13753 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 13754 | $as_echo_n "(cached) " >&6 |
| 13755 | else |
| 13756 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 13757 | case `$LD -v 2>&1 </dev/null` in |
| 13758 | *GNU* | *'with BFD'*) |
| 13759 | lt_cv_prog_gnu_ld=yes |
| 13760 | ;; |
| 13761 | *) |
| 13762 | lt_cv_prog_gnu_ld=no |
| 13763 | ;; |
| 13764 | esac |
| 13765 | fi |
| 13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 13767 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 13768 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 13769 | |
| 13770 | |
| 13771 | |
| 13772 | |
| 13773 | |
| 13774 | |
| 13775 | |
| 13776 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 13777 | # archiving commands below assume that GNU ld is being used. |
| 13778 | if test "$with_gnu_ld" = yes; then |
| 13779 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13780 | 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' |
| 13781 | |
| 13782 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13783 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13784 | |
| 13785 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13786 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 13787 | # investigate it a little bit more. (MM) |
| 13788 | wlarc='${wl}' |
| 13789 | |
| 13790 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13791 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 13792 | $GREP 'no-whole-archive' > /dev/null; then |
| 13793 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13794 | else |
| 13795 | whole_archive_flag_spec_CXX= |
| 13796 | fi |
| 13797 | else |
| 13798 | with_gnu_ld=no |
| 13799 | wlarc= |
| 13800 | |
| 13801 | # A generic and very simple default shared library creation |
| 13802 | # command for GNU C++ for the case where it uses the native |
| 13803 | # linker, instead of GNU ld. If possible, this setting should |
| 13804 | # overridden to take advantage of the native linker features on |
| 13805 | # the platform it is being used on. |
| 13806 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13807 | fi |
| 13808 | |
| 13809 | # Commands to make compiler produce verbose output that lists |
| 13810 | # what "hidden" libraries, object files and flags are used when |
| 13811 | # linking a shared library. |
| 13812 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13813 | |
| 13814 | else |
| 13815 | GXX=no |
| 13816 | with_gnu_ld=no |
| 13817 | wlarc= |
| 13818 | fi |
| 13819 | |
| 13820 | # PORTME: fill in a description of your system's C++ link characteristics |
| 13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13822 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 13823 | ld_shlibs_CXX=yes |
| 13824 | case $host_os in |
| 13825 | aix3*) |
| 13826 | # FIXME: insert proper C++ library support |
| 13827 | ld_shlibs_CXX=no |
| 13828 | ;; |
| 13829 | aix[4-9]*) |
| 13830 | if test "$host_cpu" = ia64; then |
| 13831 | # On IA64, the linker does run time linking by default, so we don't |
| 13832 | # have to do anything special. |
| 13833 | aix_use_runtimelinking=no |
| 13834 | exp_sym_flag='-Bexport' |
| 13835 | no_entry_flag="" |
| 13836 | else |
| 13837 | aix_use_runtimelinking=no |
| 13838 | |
| 13839 | # Test if we are trying to use run time linking or normal |
| 13840 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13841 | # need to do runtime linking. |
| 13842 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 13843 | for ld_flag in $LDFLAGS; do |
| 13844 | case $ld_flag in |
| 13845 | *-brtl*) |
| 13846 | aix_use_runtimelinking=yes |
| 13847 | break |
| 13848 | ;; |
| 13849 | esac |
| 13850 | done |
| 13851 | ;; |
| 13852 | esac |
| 13853 | |
| 13854 | exp_sym_flag='-bexport' |
| 13855 | no_entry_flag='-bnoentry' |
| 13856 | fi |
| 13857 | |
| 13858 | # When large executables or shared objects are built, AIX ld can |
| 13859 | # have problems creating the table of contents. If linking a library |
| 13860 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13861 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13862 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13863 | |
| 13864 | archive_cmds_CXX='' |
| 13865 | hardcode_direct_CXX=yes |
| 13866 | hardcode_direct_absolute_CXX=yes |
| 13867 | hardcode_libdir_separator_CXX=':' |
| 13868 | link_all_deplibs_CXX=yes |
| 13869 | file_list_spec_CXX='${wl}-f,' |
| 13870 | |
| 13871 | if test "$GXX" = yes; then |
| 13872 | case $host_os in aix4.[012]|aix4.[012].*) |
| 13873 | # We only want to do this on AIX 4.2 and lower, the check |
| 13874 | # below for broken collect2 doesn't work under 4.3+ |
| 13875 | collect2name=`${CC} -print-prog-name=collect2` |
| 13876 | if test -f "$collect2name" && |
| 13877 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 13878 | then |
| 13879 | # We have reworked collect2 |
| 13880 | : |
| 13881 | else |
| 13882 | # We have old collect2 |
| 13883 | hardcode_direct_CXX=unsupported |
| 13884 | # It fails to find uninstalled libraries when the uninstalled |
| 13885 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13886 | # to unsupported forces relinking |
| 13887 | hardcode_minus_L_CXX=yes |
| 13888 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13889 | hardcode_libdir_separator_CXX= |
| 13890 | fi |
| 13891 | esac |
| 13892 | shared_flag='-shared' |
| 13893 | if test "$aix_use_runtimelinking" = yes; then |
| 13894 | shared_flag="$shared_flag "'${wl}-G' |
| 13895 | fi |
| 13896 | else |
| 13897 | # not using gcc |
| 13898 | if test "$host_cpu" = ia64; then |
| 13899 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13900 | # chokes on -Wl,-G. The following line is correct: |
| 13901 | shared_flag='-G' |
| 13902 | else |
| 13903 | if test "$aix_use_runtimelinking" = yes; then |
| 13904 | shared_flag='${wl}-G' |
| 13905 | else |
| 13906 | shared_flag='${wl}-bM:SRE' |
| 13907 | fi |
| 13908 | fi |
| 13909 | fi |
| 13910 | |
| 13911 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 13912 | # It seems that -bexpall does not export symbols beginning with |
| 13913 | # underscore (_), so it is better to generate a list of symbols to |
| 13914 | # export. |
| 13915 | always_export_symbols_CXX=yes |
| 13916 | if test "$aix_use_runtimelinking" = yes; then |
| 13917 | # Warning - without using the other runtime loading flags (-brtl), |
| 13918 | # -berok will link without error, but may produce a broken library. |
| 13919 | allow_undefined_flag_CXX='-berok' |
| 13920 | # Determine the default libpath from the value encoded in an empty |
| 13921 | # executable. |
| 13922 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13923 | aix_libpath=$lt_cv_aix_libpath |
| 13924 | else |
| 13925 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13926 | $as_echo_n "(cached) " >&6 |
| 13927 | else |
| 13928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13929 | /* end confdefs.h. */ |
| 13930 | |
| 13931 | int |
| 13932 | main () |
| 13933 | { |
| 13934 | |
| 13935 | ; |
| 13936 | return 0; |
| 13937 | } |
| 13938 | _ACEOF |
| 13939 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13940 | |
| 13941 | lt_aix_libpath_sed=' |
| 13942 | /Import File Strings/,/^$/ { |
| 13943 | /^0/ { |
| 13944 | s/^0 *\([^ ]*\) *$/\1/ |
| 13945 | p |
| 13946 | } |
| 13947 | }' |
| 13948 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13949 | # Check for a 64-bit object if we didn't find anything. |
| 13950 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13951 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13952 | fi |
| 13953 | fi |
| 13954 | rm -f core conftest.err conftest.$ac_objext \ |
| 13955 | conftest$ac_exeext conftest.$ac_ext |
| 13956 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13957 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13958 | fi |
| 13959 | |
| 13960 | fi |
| 13961 | |
| 13962 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13963 | fi |
| 13964 | |
| 13965 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13966 | |
| 13967 | 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" |
| 13968 | else |
| 13969 | if test "$host_cpu" = ia64; then |
| 13970 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 13971 | allow_undefined_flag_CXX="-z nodefs" |
| 13972 | 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" |
| 13973 | else |
| 13974 | # Determine the default libpath from the value encoded in an |
| 13975 | # empty executable. |
| 13976 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13977 | aix_libpath=$lt_cv_aix_libpath |
| 13978 | else |
| 13979 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13980 | $as_echo_n "(cached) " >&6 |
| 13981 | else |
| 13982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13983 | /* end confdefs.h. */ |
| 13984 | |
| 13985 | int |
| 13986 | main () |
| 13987 | { |
| 13988 | |
| 13989 | ; |
| 13990 | return 0; |
| 13991 | } |
| 13992 | _ACEOF |
| 13993 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13994 | |
| 13995 | lt_aix_libpath_sed=' |
| 13996 | /Import File Strings/,/^$/ { |
| 13997 | /^0/ { |
| 13998 | s/^0 *\([^ ]*\) *$/\1/ |
| 13999 | p |
| 14000 | } |
| 14001 | }' |
| 14002 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14003 | # Check for a 64-bit object if we didn't find anything. |
| 14004 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14005 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14006 | fi |
| 14007 | fi |
| 14008 | rm -f core conftest.err conftest.$ac_objext \ |
| 14009 | conftest$ac_exeext conftest.$ac_ext |
| 14010 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 14011 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 14012 | fi |
| 14013 | |
| 14014 | fi |
| 14015 | |
| 14016 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 14017 | fi |
| 14018 | |
| 14019 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14020 | # Warning - without using the other run time loading flags, |
| 14021 | # -berok will link without error, but may produce a broken library. |
| 14022 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 14023 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 14024 | if test "$with_gnu_ld" = yes; then |
| 14025 | # We only use this code for GNU lds that support --whole-archive. |
| 14026 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 14027 | else |
| 14028 | # Exported symbols can be pulled into shared objects from archives |
| 14029 | whole_archive_flag_spec_CXX='$convenience' |
| 14030 | fi |
| 14031 | archive_cmds_need_lc_CXX=yes |
| 14032 | # This is similar to how AIX traditionally builds its shared |
| 14033 | # libraries. |
| 14034 | 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' |
| 14035 | fi |
| 14036 | fi |
| 14037 | ;; |
| 14038 | |
| 14039 | beos*) |
| 14040 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14041 | allow_undefined_flag_CXX=unsupported |
| 14042 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14043 | # support --undefined. This deserves some investigation. FIXME |
| 14044 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14045 | else |
| 14046 | ld_shlibs_CXX=no |
| 14047 | fi |
| 14048 | ;; |
| 14049 | |
| 14050 | chorus*) |
| 14051 | case $cc_basename in |
| 14052 | *) |
| 14053 | # FIXME: insert proper C++ library support |
| 14054 | ld_shlibs_CXX=no |
| 14055 | ;; |
| 14056 | esac |
| 14057 | ;; |
| 14058 | |
| 14059 | cygwin* | mingw* | pw32* | cegcc*) |
| 14060 | case $GXX,$cc_basename in |
| 14061 | ,cl* | no,cl*) |
| 14062 | # Native MSVC |
| 14063 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14064 | # no search path for DLLs. |
| 14065 | hardcode_libdir_flag_spec_CXX=' ' |
| 14066 | allow_undefined_flag_CXX=unsupported |
| 14067 | always_export_symbols_CXX=yes |
| 14068 | file_list_spec_CXX='@' |
| 14069 | # Tell ltmain to make .lib files, not .a files. |
| 14070 | libext=lib |
| 14071 | # Tell ltmain to make .dll files, not .so files. |
| 14072 | shrext_cmds=".dll" |
| 14073 | # FIXME: Setting linknames here is a bad hack. |
| 14074 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 14075 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14076 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 14077 | else |
| 14078 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 14079 | fi~ |
| 14080 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 14081 | linknames=' |
| 14082 | # The linker will not automatically build a static lib if we build a DLL. |
| 14083 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 14084 | enable_shared_with_static_runtimes_CXX=yes |
| 14085 | # Don't use ranlib |
| 14086 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 14087 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 14088 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 14089 | case $lt_outputfile in |
| 14090 | *.exe|*.EXE) ;; |
| 14091 | *) |
| 14092 | lt_outputfile="$lt_outputfile.exe" |
| 14093 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 14094 | ;; |
| 14095 | esac~ |
| 14096 | func_to_tool_file "$lt_outputfile"~ |
| 14097 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 14098 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 14099 | $RM "$lt_outputfile.manifest"; |
| 14100 | fi' |
| 14101 | ;; |
| 14102 | *) |
| 14103 | # g++ |
| 14104 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 14105 | # as there is no search path for DLLs. |
| 14106 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 14107 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 14108 | allow_undefined_flag_CXX=unsupported |
| 14109 | always_export_symbols_CXX=no |
| 14110 | enable_shared_with_static_runtimes_CXX=yes |
| 14111 | |
| 14112 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 14113 | 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' |
| 14114 | # If the export-symbols file already is a .def file (1st line |
| 14115 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14116 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14117 | cp $export_symbols $output_objdir/$soname.def; |
| 14118 | else |
| 14119 | echo EXPORTS > $output_objdir/$soname.def; |
| 14120 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14121 | fi~ |
| 14122 | $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' |
| 14123 | else |
| 14124 | ld_shlibs_CXX=no |
| 14125 | fi |
| 14126 | ;; |
| 14127 | esac |
| 14128 | ;; |
| 14129 | darwin* | rhapsody*) |
| 14130 | |
| 14131 | |
| 14132 | archive_cmds_need_lc_CXX=no |
| 14133 | hardcode_direct_CXX=no |
| 14134 | hardcode_automatic_CXX=yes |
| 14135 | hardcode_shlibpath_var_CXX=unsupported |
| 14136 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 14137 | 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\"`' |
| 14138 | else |
| 14139 | whole_archive_flag_spec_CXX='' |
| 14140 | fi |
| 14141 | link_all_deplibs_CXX=yes |
| 14142 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 14143 | case $cc_basename in |
| 14144 | ifort*) _lt_dar_can_shared=yes ;; |
| 14145 | *) _lt_dar_can_shared=$GCC ;; |
| 14146 | esac |
| 14147 | if test "$_lt_dar_can_shared" = "yes"; then |
| 14148 | output_verbose_link_cmd=func_echo_all |
| 14149 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 14150 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 14151 | 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 \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 14152 | 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}" |
| 14153 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 14154 | 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 \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 14155 | 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}" |
| 14156 | fi |
| 14157 | |
| 14158 | else |
| 14159 | ld_shlibs_CXX=no |
| 14160 | fi |
| 14161 | |
| 14162 | ;; |
| 14163 | |
| 14164 | dgux*) |
| 14165 | case $cc_basename in |
| 14166 | ec++*) |
| 14167 | # FIXME: insert proper C++ library support |
| 14168 | ld_shlibs_CXX=no |
| 14169 | ;; |
| 14170 | ghcx*) |
| 14171 | # Green Hills C++ Compiler |
| 14172 | # FIXME: insert proper C++ library support |
| 14173 | ld_shlibs_CXX=no |
| 14174 | ;; |
| 14175 | *) |
| 14176 | # FIXME: insert proper C++ library support |
| 14177 | ld_shlibs_CXX=no |
| 14178 | ;; |
| 14179 | esac |
| 14180 | ;; |
| 14181 | |
| 14182 | freebsd[12]*) |
| 14183 | # C++ shared libraries reported to be fairly broken before |
| 14184 | # switch to ELF |
| 14185 | ld_shlibs_CXX=no |
| 14186 | ;; |
| 14187 | |
| 14188 | freebsd-elf*) |
| 14189 | archive_cmds_need_lc_CXX=no |
| 14190 | ;; |
| 14191 | |
| 14192 | freebsd* | dragonfly*) |
| 14193 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 14194 | # conventions |
| 14195 | ld_shlibs_CXX=yes |
| 14196 | ;; |
| 14197 | |
| 14198 | gnu*) |
| 14199 | ;; |
| 14200 | |
| 14201 | haiku*) |
| 14202 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14203 | link_all_deplibs_CXX=yes |
| 14204 | ;; |
| 14205 | |
| 14206 | hpux9*) |
| 14207 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 14208 | hardcode_libdir_separator_CXX=: |
| 14209 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 14210 | hardcode_direct_CXX=yes |
| 14211 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 14212 | # but as the default |
| 14213 | # location of the library. |
| 14214 | |
| 14215 | case $cc_basename in |
| 14216 | CC*) |
| 14217 | # FIXME: insert proper C++ library support |
| 14218 | ld_shlibs_CXX=no |
| 14219 | ;; |
| 14220 | aCC*) |
| 14221 | 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' |
| 14222 | # Commands to make compiler produce verbose output that lists |
| 14223 | # what "hidden" libraries, object files and flags are used when |
| 14224 | # linking a shared library. |
| 14225 | # |
| 14226 | # There doesn't appear to be a way to prevent this compiler from |
| 14227 | # explicitly linking system object files so we need to strip them |
| 14228 | # from the output so that they don't get included in the library |
| 14229 | # dependencies. |
| 14230 | 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"' |
| 14231 | ;; |
| 14232 | *) |
| 14233 | if test "$GXX" = yes; then |
| 14234 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' |
| 14235 | else |
| 14236 | # FIXME: insert proper C++ library support |
| 14237 | ld_shlibs_CXX=no |
| 14238 | fi |
| 14239 | ;; |
| 14240 | esac |
| 14241 | ;; |
| 14242 | |
| 14243 | hpux10*|hpux11*) |
| 14244 | if test $with_gnu_ld = no; then |
| 14245 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 14246 | hardcode_libdir_separator_CXX=: |
| 14247 | |
| 14248 | case $host_cpu in |
| 14249 | hppa*64*|ia64*) |
| 14250 | ;; |
| 14251 | *) |
| 14252 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 14253 | ;; |
| 14254 | esac |
| 14255 | fi |
| 14256 | case $host_cpu in |
| 14257 | hppa*64*|ia64*) |
| 14258 | hardcode_direct_CXX=no |
| 14259 | hardcode_shlibpath_var_CXX=no |
| 14260 | ;; |
| 14261 | *) |
| 14262 | hardcode_direct_CXX=yes |
| 14263 | hardcode_direct_absolute_CXX=yes |
| 14264 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 14265 | # but as the default |
| 14266 | # location of the library. |
| 14267 | ;; |
| 14268 | esac |
| 14269 | |
| 14270 | case $cc_basename in |
| 14271 | CC*) |
| 14272 | # FIXME: insert proper C++ library support |
| 14273 | ld_shlibs_CXX=no |
| 14274 | ;; |
| 14275 | aCC*) |
| 14276 | case $host_cpu in |
| 14277 | hppa*64*) |
| 14278 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14279 | ;; |
| 14280 | ia64*) |
| 14281 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14282 | ;; |
| 14283 | *) |
| 14284 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14285 | ;; |
| 14286 | esac |
| 14287 | # Commands to make compiler produce verbose output that lists |
| 14288 | # what "hidden" libraries, object files and flags are used when |
| 14289 | # linking a shared library. |
| 14290 | # |
| 14291 | # There doesn't appear to be a way to prevent this compiler from |
| 14292 | # explicitly linking system object files so we need to strip them |
| 14293 | # from the output so that they don't get included in the library |
| 14294 | # dependencies. |
| 14295 | 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"' |
| 14296 | ;; |
| 14297 | *) |
| 14298 | if test "$GXX" = yes; then |
| 14299 | if test $with_gnu_ld = no; then |
| 14300 | case $host_cpu in |
| 14301 | hppa*64*) |
| 14302 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14303 | ;; |
| 14304 | ia64*) |
| 14305 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14306 | ;; |
| 14307 | *) |
| 14308 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14309 | ;; |
| 14310 | esac |
| 14311 | fi |
| 14312 | else |
| 14313 | # FIXME: insert proper C++ library support |
| 14314 | ld_shlibs_CXX=no |
| 14315 | fi |
| 14316 | ;; |
| 14317 | esac |
| 14318 | ;; |
| 14319 | |
| 14320 | interix[3-9]*) |
| 14321 | hardcode_direct_CXX=no |
| 14322 | hardcode_shlibpath_var_CXX=no |
| 14323 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 14324 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 14325 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14326 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14327 | # default) and relocated if they conflict, which is a slow very memory |
| 14328 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14329 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14330 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14331 | 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' |
| 14332 | 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' |
| 14333 | ;; |
| 14334 | irix5* | irix6*) |
| 14335 | case $cc_basename in |
| 14336 | CC*) |
| 14337 | # SGI C++ |
| 14338 | 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' |
| 14339 | |
| 14340 | # Archives containing C++ object files must be created using |
| 14341 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 14342 | # necessary to make sure instantiated templates are included |
| 14343 | # in the archive. |
| 14344 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 14345 | ;; |
| 14346 | *) |
| 14347 | if test "$GXX" = yes; then |
| 14348 | if test "$with_gnu_ld" = no; then |
| 14349 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
| 14350 | else |
| 14351 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
| 14352 | fi |
| 14353 | fi |
| 14354 | link_all_deplibs_CXX=yes |
| 14355 | ;; |
| 14356 | esac |
| 14357 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14358 | hardcode_libdir_separator_CXX=: |
| 14359 | inherit_rpath_CXX=yes |
| 14360 | ;; |
| 14361 | |
| 14362 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14363 | case $cc_basename in |
| 14364 | KCC*) |
| 14365 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 14366 | |
| 14367 | # KCC will only create a shared library if the output file |
| 14368 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 14369 | # to its proper name (with version) after linking. |
| 14370 | 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' |
| 14371 | 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' |
| 14372 | # Commands to make compiler produce verbose output that lists |
| 14373 | # what "hidden" libraries, object files and flags are used when |
| 14374 | # linking a shared library. |
| 14375 | # |
| 14376 | # There doesn't appear to be a way to prevent this compiler from |
| 14377 | # explicitly linking system object files so we need to strip them |
| 14378 | # from the output so that they don't get included in the library |
| 14379 | # dependencies. |
| 14380 | 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"' |
| 14381 | |
| 14382 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 14383 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14384 | |
| 14385 | # Archives containing C++ object files must be created using |
| 14386 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 14387 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 14388 | ;; |
| 14389 | icpc* | ecpc* ) |
| 14390 | # Intel C++ |
| 14391 | with_gnu_ld=yes |
| 14392 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 14393 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 14394 | # earlier do not add the objects themselves. |
| 14395 | case `$CC -V 2>&1` in |
| 14396 | *"Version 7."*) |
| 14397 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14398 | 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' |
| 14399 | ;; |
| 14400 | *) # Version 8.0 or newer |
| 14401 | tmp_idyn= |
| 14402 | case $host_cpu in |
| 14403 | ia64*) tmp_idyn=' -i_dynamic';; |
| 14404 | esac |
| 14405 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14406 | 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' |
| 14407 | ;; |
| 14408 | esac |
| 14409 | archive_cmds_need_lc_CXX=no |
| 14410 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 14411 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14412 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 14413 | ;; |
| 14414 | pgCC* | pgcpp*) |
| 14415 | # Portland Group C++ compiler |
| 14416 | case `$CC -V` in |
| 14417 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 14418 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 14419 | rm -rf $tpldir~ |
| 14420 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 14421 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 14422 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 14423 | rm -rf $tpldir~ |
| 14424 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 14425 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 14426 | $RANLIB $oldlib' |
| 14427 | archive_cmds_CXX='tpldir=Template.dir~ |
| 14428 | rm -rf $tpldir~ |
| 14429 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 14430 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 14431 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 14432 | rm -rf $tpldir~ |
| 14433 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 14434 | $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' |
| 14435 | ;; |
| 14436 | *) # Version 6 and above use weak symbols |
| 14437 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 14438 | 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' |
| 14439 | ;; |
| 14440 | esac |
| 14441 | |
| 14442 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 14443 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14444 | 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' |
| 14445 | ;; |
| 14446 | cxx*) |
| 14447 | # Compaq C++ |
| 14448 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14449 | 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' |
| 14450 | |
| 14451 | runpath_var=LD_RUN_PATH |
| 14452 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 14453 | hardcode_libdir_separator_CXX=: |
| 14454 | |
| 14455 | # Commands to make compiler produce verbose output that lists |
| 14456 | # what "hidden" libraries, object files and flags are used when |
| 14457 | # linking a shared library. |
| 14458 | # |
| 14459 | # There doesn't appear to be a way to prevent this compiler from |
| 14460 | # explicitly linking system object files so we need to strip them |
| 14461 | # from the output so that they don't get included in the library |
| 14462 | # dependencies. |
| 14463 | 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' |
| 14464 | ;; |
| 14465 | xl* | mpixl* | bgxl*) |
| 14466 | # IBM XL 8.0 on PPC, with GNU ld |
| 14467 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14468 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14469 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14470 | if test "x$supports_anon_versioning" = xyes; then |
| 14471 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 14472 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14473 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14474 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14475 | fi |
| 14476 | ;; |
| 14477 | *) |
| 14478 | case `$CC -V 2>&1 | sed 5q` in |
| 14479 | *Sun\ C*) |
| 14480 | # Sun C++ 5.9 |
| 14481 | no_undefined_flag_CXX=' -zdefs' |
| 14482 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14483 | 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' |
| 14484 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 14485 | 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' |
| 14486 | compiler_needs_object_CXX=yes |
| 14487 | |
| 14488 | # Not sure whether something based on |
| 14489 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 14490 | # would be better. |
| 14491 | output_verbose_link_cmd='func_echo_all' |
| 14492 | |
| 14493 | # Archives containing C++ object files must be created using |
| 14494 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 14495 | # necessary to make sure instantiated templates are included |
| 14496 | # in the archive. |
| 14497 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 14498 | ;; |
| 14499 | esac |
| 14500 | ;; |
| 14501 | esac |
| 14502 | ;; |
| 14503 | |
| 14504 | lynxos*) |
| 14505 | # FIXME: insert proper C++ library support |
| 14506 | ld_shlibs_CXX=no |
| 14507 | ;; |
| 14508 | |
| 14509 | m88k*) |
| 14510 | # FIXME: insert proper C++ library support |
| 14511 | ld_shlibs_CXX=no |
| 14512 | ;; |
| 14513 | |
| 14514 | mvs*) |
| 14515 | case $cc_basename in |
| 14516 | cxx*) |
| 14517 | # FIXME: insert proper C++ library support |
| 14518 | ld_shlibs_CXX=no |
| 14519 | ;; |
| 14520 | *) |
| 14521 | # FIXME: insert proper C++ library support |
| 14522 | ld_shlibs_CXX=no |
| 14523 | ;; |
| 14524 | esac |
| 14525 | ;; |
| 14526 | |
| 14527 | netbsd*) |
| 14528 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14529 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 14530 | wlarc= |
| 14531 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 14532 | hardcode_direct_CXX=yes |
| 14533 | hardcode_shlibpath_var_CXX=no |
| 14534 | fi |
| 14535 | # Workaround some broken pre-1.5 toolchains |
| 14536 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 14537 | ;; |
| 14538 | |
| 14539 | *nto* | *qnx*) |
| 14540 | ld_shlibs_CXX=yes |
| 14541 | ;; |
| 14542 | |
| 14543 | openbsd2*) |
| 14544 | # C++ shared libraries are fairly broken |
| 14545 | ld_shlibs_CXX=no |
| 14546 | ;; |
| 14547 | |
| 14548 | openbsd*) |
| 14549 | if test -f /usr/libexec/ld.so; then |
| 14550 | hardcode_direct_CXX=yes |
| 14551 | hardcode_shlibpath_var_CXX=no |
| 14552 | hardcode_direct_absolute_CXX=yes |
| 14553 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 14554 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 14555 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14556 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 14557 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 14558 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14559 | fi |
| 14560 | output_verbose_link_cmd=func_echo_all |
| 14561 | else |
| 14562 | ld_shlibs_CXX=no |
| 14563 | fi |
| 14564 | ;; |
| 14565 | |
| 14566 | osf3* | osf4* | osf5*) |
| 14567 | case $cc_basename in |
| 14568 | KCC*) |
| 14569 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 14570 | |
| 14571 | # KCC will only create a shared library if the output file |
| 14572 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 14573 | # to its proper name (with version) after linking. |
| 14574 | 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' |
| 14575 | |
| 14576 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 14577 | hardcode_libdir_separator_CXX=: |
| 14578 | |
| 14579 | # Archives containing C++ object files must be created using |
| 14580 | # the KAI C++ compiler. |
| 14581 | case $host in |
| 14582 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 14583 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 14584 | esac |
| 14585 | ;; |
| 14586 | RCC*) |
| 14587 | # Rational C++ 2.4.1 |
| 14588 | # FIXME: insert proper C++ library support |
| 14589 | ld_shlibs_CXX=no |
| 14590 | ;; |
| 14591 | cxx*) |
| 14592 | case $host in |
| 14593 | osf3*) |
| 14594 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 14595 | 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' |
| 14596 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14597 | ;; |
| 14598 | *) |
| 14599 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 14600 | 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' |
| 14601 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 14602 | echo "-hidden">> $lib.exp~ |
| 14603 | $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~ |
| 14604 | $RM $lib.exp' |
| 14605 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 14606 | ;; |
| 14607 | esac |
| 14608 | |
| 14609 | hardcode_libdir_separator_CXX=: |
| 14610 | |
| 14611 | # Commands to make compiler produce verbose output that lists |
| 14612 | # what "hidden" libraries, object files and flags are used when |
| 14613 | # linking a shared library. |
| 14614 | # |
| 14615 | # There doesn't appear to be a way to prevent this compiler from |
| 14616 | # explicitly linking system object files so we need to strip them |
| 14617 | # from the output so that they don't get included in the library |
| 14618 | # dependencies. |
| 14619 | 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"' |
| 14620 | ;; |
| 14621 | *) |
| 14622 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 14623 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 14624 | case $host in |
| 14625 | osf3*) |
| 14626 | 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' |
| 14627 | ;; |
| 14628 | *) |
| 14629 | archive_cmds_CXX='$CC -shared $pic_flag -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' |
| 14630 | ;; |
| 14631 | esac |
| 14632 | |
| 14633 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14634 | hardcode_libdir_separator_CXX=: |
| 14635 | |
| 14636 | # Commands to make compiler produce verbose output that lists |
| 14637 | # what "hidden" libraries, object files and flags are used when |
| 14638 | # linking a shared library. |
| 14639 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 14640 | |
| 14641 | else |
| 14642 | # FIXME: insert proper C++ library support |
| 14643 | ld_shlibs_CXX=no |
| 14644 | fi |
| 14645 | ;; |
| 14646 | esac |
| 14647 | ;; |
| 14648 | |
| 14649 | psos*) |
| 14650 | # FIXME: insert proper C++ library support |
| 14651 | ld_shlibs_CXX=no |
| 14652 | ;; |
| 14653 | |
| 14654 | sunos4*) |
| 14655 | case $cc_basename in |
| 14656 | CC*) |
| 14657 | # Sun C++ 4.x |
| 14658 | # FIXME: insert proper C++ library support |
| 14659 | ld_shlibs_CXX=no |
| 14660 | ;; |
| 14661 | lcc*) |
| 14662 | # Lucid |
| 14663 | # FIXME: insert proper C++ library support |
| 14664 | ld_shlibs_CXX=no |
| 14665 | ;; |
| 14666 | *) |
| 14667 | # FIXME: insert proper C++ library support |
| 14668 | ld_shlibs_CXX=no |
| 14669 | ;; |
| 14670 | esac |
| 14671 | ;; |
| 14672 | |
| 14673 | solaris*) |
| 14674 | case $cc_basename in |
| 14675 | CC* | sunCC*) |
| 14676 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14677 | archive_cmds_need_lc_CXX=yes |
| 14678 | no_undefined_flag_CXX=' -zdefs' |
| 14679 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 14680 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14681 | $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' |
| 14682 | |
| 14683 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 14684 | hardcode_shlibpath_var_CXX=no |
| 14685 | case $host_os in |
| 14686 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14687 | *) |
| 14688 | # The compiler driver will combine and reorder linker options, |
| 14689 | # but understands `-z linker_flag'. |
| 14690 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14691 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 14692 | ;; |
| 14693 | esac |
| 14694 | link_all_deplibs_CXX=yes |
| 14695 | |
| 14696 | output_verbose_link_cmd='func_echo_all' |
| 14697 | |
| 14698 | # Archives containing C++ object files must be created using |
| 14699 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 14700 | # necessary to make sure instantiated templates are included |
| 14701 | # in the archive. |
| 14702 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 14703 | ;; |
| 14704 | gcx*) |
| 14705 | # Green Hills C++ Compiler |
| 14706 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14707 | |
| 14708 | # The C++ compiler must be used to create the archive. |
| 14709 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 14710 | ;; |
| 14711 | *) |
| 14712 | # GNU C++ compiler with Solaris linker |
| 14713 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 14714 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 14715 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 14716 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14717 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14718 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 14719 | |
| 14720 | # Commands to make compiler produce verbose output that lists |
| 14721 | # what "hidden" libraries, object files and flags are used when |
| 14722 | # linking a shared library. |
| 14723 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 14724 | else |
| 14725 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 14726 | # platform. |
| 14727 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 14728 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14729 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 14730 | |
| 14731 | # Commands to make compiler produce verbose output that lists |
| 14732 | # what "hidden" libraries, object files and flags are used when |
| 14733 | # linking a shared library. |
| 14734 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 14735 | fi |
| 14736 | |
| 14737 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 14738 | case $host_os in |
| 14739 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14740 | *) |
| 14741 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 14742 | ;; |
| 14743 | esac |
| 14744 | fi |
| 14745 | ;; |
| 14746 | esac |
| 14747 | ;; |
| 14748 | |
| 14749 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 14750 | no_undefined_flag_CXX='${wl}-z,text' |
| 14751 | archive_cmds_need_lc_CXX=no |
| 14752 | hardcode_shlibpath_var_CXX=no |
| 14753 | runpath_var='LD_RUN_PATH' |
| 14754 | |
| 14755 | case $cc_basename in |
| 14756 | CC*) |
| 14757 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14758 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14759 | ;; |
| 14760 | *) |
| 14761 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14762 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14763 | ;; |
| 14764 | esac |
| 14765 | ;; |
| 14766 | |
| 14767 | sysv5* | sco3.2v5* | sco5v6*) |
| 14768 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14769 | # link with -lc, and that would cause any symbols used from libc to |
| 14770 | # always be unresolved, which means just about no library would |
| 14771 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14772 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14773 | # as -z defs. |
| 14774 | no_undefined_flag_CXX='${wl}-z,text' |
| 14775 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 14776 | archive_cmds_need_lc_CXX=no |
| 14777 | hardcode_shlibpath_var_CXX=no |
| 14778 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 14779 | hardcode_libdir_separator_CXX=':' |
| 14780 | link_all_deplibs_CXX=yes |
| 14781 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 14782 | runpath_var='LD_RUN_PATH' |
| 14783 | |
| 14784 | case $cc_basename in |
| 14785 | CC*) |
| 14786 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14787 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14788 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 14789 | '"$old_archive_cmds_CXX" |
| 14790 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 14791 | '"$reload_cmds_CXX" |
| 14792 | ;; |
| 14793 | *) |
| 14794 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14795 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14796 | ;; |
| 14797 | esac |
| 14798 | ;; |
| 14799 | |
| 14800 | tandem*) |
| 14801 | case $cc_basename in |
| 14802 | NCC*) |
| 14803 | # NonStop-UX NCC 3.20 |
| 14804 | # FIXME: insert proper C++ library support |
| 14805 | ld_shlibs_CXX=no |
| 14806 | ;; |
| 14807 | *) |
| 14808 | # FIXME: insert proper C++ library support |
| 14809 | ld_shlibs_CXX=no |
| 14810 | ;; |
| 14811 | esac |
| 14812 | ;; |
| 14813 | |
| 14814 | vxworks*) |
| 14815 | # FIXME: insert proper C++ library support |
| 14816 | ld_shlibs_CXX=no |
| 14817 | ;; |
| 14818 | |
| 14819 | *) |
| 14820 | # FIXME: insert proper C++ library support |
| 14821 | ld_shlibs_CXX=no |
| 14822 | ;; |
| 14823 | esac |
| 14824 | |
| 14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14826 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14827 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14828 | |
| 14829 | GCC_CXX="$GXX" |
| 14830 | LD_CXX="$LD" |
| 14831 | |
| 14832 | ## CAVEAT EMPTOR: |
| 14833 | ## There is no encapsulation within the following macros, do not change |
| 14834 | ## the running order or otherwise move them around unless you know exactly |
| 14835 | ## what you are doing... |
| 14836 | # Dependencies to place before and after the object being linked: |
| 14837 | predep_objects_CXX= |
| 14838 | postdep_objects_CXX= |
| 14839 | predeps_CXX= |
| 14840 | postdeps_CXX= |
| 14841 | compiler_lib_search_path_CXX= |
| 14842 | |
| 14843 | cat > conftest.$ac_ext <<_LT_EOF |
| 14844 | class Foo |
| 14845 | { |
| 14846 | public: |
| 14847 | Foo (void) { a = 0; } |
| 14848 | private: |
| 14849 | int a; |
| 14850 | }; |
| 14851 | _LT_EOF |
| 14852 | |
| 14853 | |
| 14854 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 14855 | case "$CC $CFLAGS " in #( |
| 14856 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 14857 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 14858 | esac |
| 14859 | |
| 14860 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14861 | (eval $ac_compile) 2>&5 |
| 14862 | ac_status=$? |
| 14863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14864 | test $ac_status = 0; }; then |
| 14865 | # Parse the compiler output and extract the necessary |
| 14866 | # objects, libraries and library flags. |
| 14867 | |
| 14868 | # Sentinel used to keep track of whether or not we are before |
| 14869 | # the conftest object file. |
| 14870 | pre_test_object_deps_done=no |
| 14871 | |
| 14872 | for p in `eval "$output_verbose_link_cmd"`; do |
| 14873 | case ${prev}${p} in |
| 14874 | |
| 14875 | -L* | -R* | -l*) |
| 14876 | # Some compilers place space between "-{L,R}" and the path. |
| 14877 | # Remove the space. |
| 14878 | if test $p = "-L" || |
| 14879 | test $p = "-R"; then |
| 14880 | prev=$p |
| 14881 | continue |
| 14882 | fi |
| 14883 | |
| 14884 | # Expand the sysroot to ease extracting the directories later. |
| 14885 | if test -z "$prev"; then |
| 14886 | case $p in |
| 14887 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 14888 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 14889 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 14890 | esac |
| 14891 | fi |
| 14892 | case $p in |
| 14893 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 14894 | esac |
| 14895 | if test "$pre_test_object_deps_done" = no; then |
| 14896 | case ${prev} in |
| 14897 | -L | -R) |
| 14898 | # Internal compiler library paths should come after those |
| 14899 | # provided the user. The postdeps already come after the |
| 14900 | # user supplied libs so there is no need to process them. |
| 14901 | if test -z "$compiler_lib_search_path_CXX"; then |
| 14902 | compiler_lib_search_path_CXX="${prev}${p}" |
| 14903 | else |
| 14904 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 14905 | fi |
| 14906 | ;; |
| 14907 | # The "-l" case would never come before the object being |
| 14908 | # linked, so don't bother handling this case. |
| 14909 | esac |
| 14910 | else |
| 14911 | if test -z "$postdeps_CXX"; then |
| 14912 | postdeps_CXX="${prev}${p}" |
| 14913 | else |
| 14914 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 14915 | fi |
| 14916 | fi |
| 14917 | prev= |
| 14918 | ;; |
| 14919 | |
| 14920 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 14921 | *.$objext) |
| 14922 | # This assumes that the test object file only shows up |
| 14923 | # once in the compiler output. |
| 14924 | if test "$p" = "conftest.$objext"; then |
| 14925 | pre_test_object_deps_done=yes |
| 14926 | continue |
| 14927 | fi |
| 14928 | |
| 14929 | if test "$pre_test_object_deps_done" = no; then |
| 14930 | if test -z "$predep_objects_CXX"; then |
| 14931 | predep_objects_CXX="$p" |
| 14932 | else |
| 14933 | predep_objects_CXX="$predep_objects_CXX $p" |
| 14934 | fi |
| 14935 | else |
| 14936 | if test -z "$postdep_objects_CXX"; then |
| 14937 | postdep_objects_CXX="$p" |
| 14938 | else |
| 14939 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 14940 | fi |
| 14941 | fi |
| 14942 | ;; |
| 14943 | |
| 14944 | *) ;; # Ignore the rest. |
| 14945 | |
| 14946 | esac |
| 14947 | done |
| 14948 | |
| 14949 | # Clean up. |
| 14950 | rm -f a.out a.exe |
| 14951 | else |
| 14952 | echo "libtool.m4: error: problem compiling CXX test program" |
| 14953 | fi |
| 14954 | |
| 14955 | $RM -f confest.$objext |
| 14956 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 14957 | |
| 14958 | # PORTME: override above test on systems where it is broken |
| 14959 | case $host_os in |
| 14960 | interix[3-9]*) |
| 14961 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 14962 | # hack all around it, let's just trust "g++" to DTRT. |
| 14963 | predep_objects_CXX= |
| 14964 | postdep_objects_CXX= |
| 14965 | postdeps_CXX= |
| 14966 | ;; |
| 14967 | |
| 14968 | linux*) |
| 14969 | case `$CC -V 2>&1 | sed 5q` in |
| 14970 | *Sun\ C*) |
| 14971 | # Sun C++ 5.9 |
| 14972 | |
| 14973 | # The more standards-conforming stlport4 library is |
| 14974 | # incompatible with the Cstd library. Avoid specifying |
| 14975 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14976 | # -library=stlport4 depends on it. |
| 14977 | case " $CXX $CXXFLAGS " in |
| 14978 | *" -library=stlport4 "*) |
| 14979 | solaris_use_stlport4=yes |
| 14980 | ;; |
| 14981 | esac |
| 14982 | |
| 14983 | if test "$solaris_use_stlport4" != yes; then |
| 14984 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14985 | fi |
| 14986 | ;; |
| 14987 | esac |
| 14988 | ;; |
| 14989 | |
| 14990 | solaris*) |
| 14991 | case $cc_basename in |
| 14992 | CC* | sunCC*) |
| 14993 | # The more standards-conforming stlport4 library is |
| 14994 | # incompatible with the Cstd library. Avoid specifying |
| 14995 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14996 | # -library=stlport4 depends on it. |
| 14997 | case " $CXX $CXXFLAGS " in |
| 14998 | *" -library=stlport4 "*) |
| 14999 | solaris_use_stlport4=yes |
| 15000 | ;; |
| 15001 | esac |
| 15002 | |
| 15003 | # Adding this requires a known-good setup of shared libraries for |
| 15004 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 15005 | # archive will be linked into the output, leading to subtle bugs. |
| 15006 | if test "$solaris_use_stlport4" != yes; then |
| 15007 | postdeps_CXX='-library=Cstd -library=Crun' |
| 15008 | fi |
| 15009 | ;; |
| 15010 | esac |
| 15011 | ;; |
| 15012 | esac |
| 15013 | |
| 15014 | |
| 15015 | case " $postdeps_CXX " in |
| 15016 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 15017 | esac |
| 15018 | compiler_lib_search_dirs_CXX= |
| 15019 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 15020 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 15021 | fi |
| 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 | lt_prog_compiler_wl_CXX= |
| 15054 | lt_prog_compiler_pic_CXX= |
| 15055 | lt_prog_compiler_static_CXX= |
| 15056 | |
| 15057 | |
| 15058 | # C++ specific cases for pic, static, wl, etc. |
| 15059 | if test "$GXX" = yes; then |
| 15060 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15061 | lt_prog_compiler_static_CXX='-static' |
| 15062 | |
| 15063 | case $host_os in |
| 15064 | aix*) |
| 15065 | # All AIX code is PIC. |
| 15066 | if test "$host_cpu" = ia64; then |
| 15067 | # AIX 5 now supports IA64 processor |
| 15068 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15069 | fi |
| 15070 | ;; |
| 15071 | |
| 15072 | amigaos*) |
| 15073 | case $host_cpu in |
| 15074 | powerpc) |
| 15075 | # see comment about AmigaOS4 .so support |
| 15076 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15077 | ;; |
| 15078 | m68k) |
| 15079 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15080 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15081 | # like `-m68040'. |
| 15082 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 15083 | ;; |
| 15084 | esac |
| 15085 | ;; |
| 15086 | |
| 15087 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15088 | # PIC is the default for these OSes. |
| 15089 | ;; |
| 15090 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 15091 | # This hack is so that the source file can tell whether it is being |
| 15092 | # built for inclusion in a dll (and should export symbols for example). |
| 15093 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 15094 | # (--disable-auto-import) libraries |
| 15095 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 15096 | ;; |
| 15097 | darwin* | rhapsody*) |
| 15098 | # PIC is the default on this platform |
| 15099 | # Common symbols not allowed in MH_DYLIB files |
| 15100 | lt_prog_compiler_pic_CXX='-fno-common' |
| 15101 | ;; |
| 15102 | *djgpp*) |
| 15103 | # DJGPP does not support shared libraries at all |
| 15104 | lt_prog_compiler_pic_CXX= |
| 15105 | ;; |
| 15106 | haiku*) |
| 15107 | # PIC is the default for Haiku. |
| 15108 | # The "-static" flag exists, but is broken. |
| 15109 | lt_prog_compiler_static_CXX= |
| 15110 | ;; |
| 15111 | interix[3-9]*) |
| 15112 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 15113 | # Instead, we relocate shared libraries at runtime. |
| 15114 | ;; |
| 15115 | sysv4*MP*) |
| 15116 | if test -d /usr/nec; then |
| 15117 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 15118 | fi |
| 15119 | ;; |
| 15120 | hpux*) |
| 15121 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 15122 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 15123 | # sets the default TLS model and affects inlining. |
| 15124 | case $host_cpu in |
| 15125 | hppa*64*) |
| 15126 | ;; |
| 15127 | *) |
| 15128 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15129 | ;; |
| 15130 | esac |
| 15131 | ;; |
| 15132 | *qnx* | *nto*) |
| 15133 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 15134 | # it will coredump. |
| 15135 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 15136 | ;; |
| 15137 | *) |
| 15138 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15139 | ;; |
| 15140 | esac |
| 15141 | else |
| 15142 | case $host_os in |
| 15143 | aix[4-9]*) |
| 15144 | # All AIX code is PIC. |
| 15145 | if test "$host_cpu" = ia64; then |
| 15146 | # AIX 5 now supports IA64 processor |
| 15147 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15148 | else |
| 15149 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 15150 | fi |
| 15151 | ;; |
| 15152 | chorus*) |
| 15153 | case $cc_basename in |
| 15154 | cxch68*) |
| 15155 | # Green Hills C++ Compiler |
| 15156 | # _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" |
| 15157 | ;; |
| 15158 | esac |
| 15159 | ;; |
| 15160 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 15161 | # This hack is so that the source file can tell whether it is being |
| 15162 | # built for inclusion in a dll (and should export symbols for example). |
| 15163 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 15164 | ;; |
| 15165 | dgux*) |
| 15166 | case $cc_basename in |
| 15167 | ec++*) |
| 15168 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15169 | ;; |
| 15170 | ghcx*) |
| 15171 | # Green Hills C++ Compiler |
| 15172 | lt_prog_compiler_pic_CXX='-pic' |
| 15173 | ;; |
| 15174 | *) |
| 15175 | ;; |
| 15176 | esac |
| 15177 | ;; |
| 15178 | freebsd* | dragonfly*) |
| 15179 | # FreeBSD uses GNU C++ |
| 15180 | ;; |
| 15181 | hpux9* | hpux10* | hpux11*) |
| 15182 | case $cc_basename in |
| 15183 | CC*) |
| 15184 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15185 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 15186 | if test "$host_cpu" != ia64; then |
| 15187 | lt_prog_compiler_pic_CXX='+Z' |
| 15188 | fi |
| 15189 | ;; |
| 15190 | aCC*) |
| 15191 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15192 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 15193 | case $host_cpu in |
| 15194 | hppa*64*|ia64*) |
| 15195 | # +Z the default |
| 15196 | ;; |
| 15197 | *) |
| 15198 | lt_prog_compiler_pic_CXX='+Z' |
| 15199 | ;; |
| 15200 | esac |
| 15201 | ;; |
| 15202 | *) |
| 15203 | ;; |
| 15204 | esac |
| 15205 | ;; |
| 15206 | interix*) |
| 15207 | # This is c89, which is MS Visual C++ (no shared libs) |
| 15208 | # Anyone wants to do a port? |
| 15209 | ;; |
| 15210 | irix5* | irix6* | nonstopux*) |
| 15211 | case $cc_basename in |
| 15212 | CC*) |
| 15213 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15214 | lt_prog_compiler_static_CXX='-non_shared' |
| 15215 | # CC pic flag -KPIC is the default. |
| 15216 | ;; |
| 15217 | *) |
| 15218 | ;; |
| 15219 | esac |
| 15220 | ;; |
| 15221 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 15222 | case $cc_basename in |
| 15223 | KCC*) |
| 15224 | # KAI C++ Compiler |
| 15225 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 15226 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15227 | ;; |
| 15228 | ecpc* ) |
| 15229 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 15230 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15231 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15232 | lt_prog_compiler_static_CXX='-static' |
| 15233 | ;; |
| 15234 | icpc* ) |
| 15235 | # Intel C++, used to be incompatible with GCC. |
| 15236 | # ICC 10 doesn't accept -KPIC any more. |
| 15237 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15238 | lt_prog_compiler_pic_CXX='-fPIC' |
| 15239 | lt_prog_compiler_static_CXX='-static' |
| 15240 | ;; |
| 15241 | pgCC* | pgcpp*) |
| 15242 | # Portland Group C++ compiler |
| 15243 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15244 | lt_prog_compiler_pic_CXX='-fpic' |
| 15245 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15246 | ;; |
| 15247 | cxx*) |
| 15248 | # Compaq C++ |
| 15249 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 15250 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 15251 | lt_prog_compiler_pic_CXX= |
| 15252 | lt_prog_compiler_static_CXX='-non_shared' |
| 15253 | ;; |
| 15254 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 15255 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 15256 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15257 | lt_prog_compiler_pic_CXX='-qpic' |
| 15258 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 15259 | ;; |
| 15260 | *) |
| 15261 | case `$CC -V 2>&1 | sed 5q` in |
| 15262 | *Sun\ C*) |
| 15263 | # Sun C++ 5.9 |
| 15264 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15265 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15266 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 15267 | ;; |
| 15268 | esac |
| 15269 | ;; |
| 15270 | esac |
| 15271 | ;; |
| 15272 | lynxos*) |
| 15273 | ;; |
| 15274 | m88k*) |
| 15275 | ;; |
| 15276 | mvs*) |
| 15277 | case $cc_basename in |
| 15278 | cxx*) |
| 15279 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 15280 | ;; |
| 15281 | *) |
| 15282 | ;; |
| 15283 | esac |
| 15284 | ;; |
| 15285 | netbsd* | netbsdelf*-gnu) |
| 15286 | ;; |
| 15287 | *qnx* | *nto*) |
| 15288 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 15289 | # it will coredump. |
| 15290 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 15291 | ;; |
| 15292 | osf3* | osf4* | osf5*) |
| 15293 | case $cc_basename in |
| 15294 | KCC*) |
| 15295 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 15296 | ;; |
| 15297 | RCC*) |
| 15298 | # Rational C++ 2.4.1 |
| 15299 | lt_prog_compiler_pic_CXX='-pic' |
| 15300 | ;; |
| 15301 | cxx*) |
| 15302 | # Digital/Compaq C++ |
| 15303 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15304 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 15305 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 15306 | lt_prog_compiler_pic_CXX= |
| 15307 | lt_prog_compiler_static_CXX='-non_shared' |
| 15308 | ;; |
| 15309 | *) |
| 15310 | ;; |
| 15311 | esac |
| 15312 | ;; |
| 15313 | psos*) |
| 15314 | ;; |
| 15315 | solaris*) |
| 15316 | case $cc_basename in |
| 15317 | CC* | sunCC*) |
| 15318 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 15319 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15320 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15321 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 15322 | ;; |
| 15323 | gcx*) |
| 15324 | # Green Hills C++ Compiler |
| 15325 | lt_prog_compiler_pic_CXX='-PIC' |
| 15326 | ;; |
| 15327 | *) |
| 15328 | ;; |
| 15329 | esac |
| 15330 | ;; |
| 15331 | sunos4*) |
| 15332 | case $cc_basename in |
| 15333 | CC*) |
| 15334 | # Sun C++ 4.x |
| 15335 | lt_prog_compiler_pic_CXX='-pic' |
| 15336 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15337 | ;; |
| 15338 | lcc*) |
| 15339 | # Lucid |
| 15340 | lt_prog_compiler_pic_CXX='-pic' |
| 15341 | ;; |
| 15342 | *) |
| 15343 | ;; |
| 15344 | esac |
| 15345 | ;; |
| 15346 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15347 | case $cc_basename in |
| 15348 | CC*) |
| 15349 | lt_prog_compiler_wl_CXX='-Wl,' |
| 15350 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15351 | lt_prog_compiler_static_CXX='-Bstatic' |
| 15352 | ;; |
| 15353 | esac |
| 15354 | ;; |
| 15355 | tandem*) |
| 15356 | case $cc_basename in |
| 15357 | NCC*) |
| 15358 | # NonStop-UX NCC 3.20 |
| 15359 | lt_prog_compiler_pic_CXX='-KPIC' |
| 15360 | ;; |
| 15361 | *) |
| 15362 | ;; |
| 15363 | esac |
| 15364 | ;; |
| 15365 | vxworks*) |
| 15366 | ;; |
| 15367 | *) |
| 15368 | lt_prog_compiler_can_build_shared_CXX=no |
| 15369 | ;; |
| 15370 | esac |
| 15371 | fi |
| 15372 | |
| 15373 | case $host_os in |
| 15374 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15375 | *djgpp*) |
| 15376 | lt_prog_compiler_pic_CXX= |
| 15377 | ;; |
| 15378 | *) |
| 15379 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 15380 | ;; |
| 15381 | esac |
| 15382 | |
| 15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 15384 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 15385 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 15386 | $as_echo_n "(cached) " >&6 |
| 15387 | else |
| 15388 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 15389 | fi |
| 15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 15391 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 15392 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 15393 | |
| 15394 | # |
| 15395 | # Check to make sure the PIC flag actually works. |
| 15396 | # |
| 15397 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 15399 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 15400 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 15401 | $as_echo_n "(cached) " >&6 |
| 15402 | else |
| 15403 | lt_cv_prog_compiler_pic_works_CXX=no |
| 15404 | ac_outfile=conftest.$ac_objext |
| 15405 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15406 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 15407 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15408 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15409 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15410 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15411 | # The option is referenced via a variable to avoid confusing sed. |
| 15412 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15413 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15414 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15415 | -e 's:$: $lt_compiler_flag:'` |
| 15416 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15417 | (eval "$lt_compile" 2>conftest.err) |
| 15418 | ac_status=$? |
| 15419 | cat conftest.err >&5 |
| 15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15421 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15422 | # The compiler can only warn and ignore the option if not recognized |
| 15423 | # So say no if there are warnings other than the usual output. |
| 15424 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 15425 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15426 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 15427 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 15428 | fi |
| 15429 | fi |
| 15430 | $RM conftest* |
| 15431 | |
| 15432 | fi |
| 15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 15434 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 15435 | |
| 15436 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 15437 | case $lt_prog_compiler_pic_CXX in |
| 15438 | "" | " "*) ;; |
| 15439 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 15440 | esac |
| 15441 | else |
| 15442 | lt_prog_compiler_pic_CXX= |
| 15443 | lt_prog_compiler_can_build_shared_CXX=no |
| 15444 | fi |
| 15445 | |
| 15446 | fi |
| 15447 | |
| 15448 | |
| 15449 | |
| 15450 | |
| 15451 | |
| 15452 | # |
| 15453 | # Check to make sure the static flag actually works. |
| 15454 | # |
| 15455 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 15456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15457 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 15458 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 15459 | $as_echo_n "(cached) " >&6 |
| 15460 | else |
| 15461 | lt_cv_prog_compiler_static_works_CXX=no |
| 15462 | save_LDFLAGS="$LDFLAGS" |
| 15463 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15464 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15465 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15466 | # The linker can only warn and ignore the option if not recognized |
| 15467 | # So say no if there are warnings |
| 15468 | if test -s conftest.err; then |
| 15469 | # Append any errors to the config.log. |
| 15470 | cat conftest.err 1>&5 |
| 15471 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 15472 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15473 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15474 | lt_cv_prog_compiler_static_works_CXX=yes |
| 15475 | fi |
| 15476 | else |
| 15477 | lt_cv_prog_compiler_static_works_CXX=yes |
| 15478 | fi |
| 15479 | fi |
| 15480 | $RM -r conftest* |
| 15481 | LDFLAGS="$save_LDFLAGS" |
| 15482 | |
| 15483 | fi |
| 15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 15485 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 15486 | |
| 15487 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 15488 | : |
| 15489 | else |
| 15490 | lt_prog_compiler_static_CXX= |
| 15491 | fi |
| 15492 | |
| 15493 | |
| 15494 | |
| 15495 | |
| 15496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15497 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 15498 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 15499 | $as_echo_n "(cached) " >&6 |
| 15500 | else |
| 15501 | lt_cv_prog_compiler_c_o_CXX=no |
| 15502 | $RM -r conftest 2>/dev/null |
| 15503 | mkdir conftest |
| 15504 | cd conftest |
| 15505 | mkdir out |
| 15506 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15507 | |
| 15508 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15509 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15510 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15511 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15512 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15513 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15514 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15515 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15516 | -e 's:$: $lt_compiler_flag:'` |
| 15517 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15518 | (eval "$lt_compile" 2>out/conftest.err) |
| 15519 | ac_status=$? |
| 15520 | cat out/conftest.err >&5 |
| 15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15522 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15523 | then |
| 15524 | # The compiler can only warn and ignore the option if not recognized |
| 15525 | # So say no if there are warnings |
| 15526 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 15527 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15528 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 15529 | lt_cv_prog_compiler_c_o_CXX=yes |
| 15530 | fi |
| 15531 | fi |
| 15532 | chmod u+w . 2>&5 |
| 15533 | $RM conftest* |
| 15534 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15535 | # template instantiation |
| 15536 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 15537 | $RM out/* && rmdir out |
| 15538 | cd .. |
| 15539 | $RM -r conftest |
| 15540 | $RM conftest* |
| 15541 | |
| 15542 | fi |
| 15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 15544 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 15545 | |
| 15546 | |
| 15547 | |
| 15548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15549 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 15550 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 15551 | $as_echo_n "(cached) " >&6 |
| 15552 | else |
| 15553 | lt_cv_prog_compiler_c_o_CXX=no |
| 15554 | $RM -r conftest 2>/dev/null |
| 15555 | mkdir conftest |
| 15556 | cd conftest |
| 15557 | mkdir out |
| 15558 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15559 | |
| 15560 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15561 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15562 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15563 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15564 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15565 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15566 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15567 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15568 | -e 's:$: $lt_compiler_flag:'` |
| 15569 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15570 | (eval "$lt_compile" 2>out/conftest.err) |
| 15571 | ac_status=$? |
| 15572 | cat out/conftest.err >&5 |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15575 | then |
| 15576 | # The compiler can only warn and ignore the option if not recognized |
| 15577 | # So say no if there are warnings |
| 15578 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 15579 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15580 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 15581 | lt_cv_prog_compiler_c_o_CXX=yes |
| 15582 | fi |
| 15583 | fi |
| 15584 | chmod u+w . 2>&5 |
| 15585 | $RM conftest* |
| 15586 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15587 | # template instantiation |
| 15588 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 15589 | $RM out/* && rmdir out |
| 15590 | cd .. |
| 15591 | $RM -r conftest |
| 15592 | $RM conftest* |
| 15593 | |
| 15594 | fi |
| 15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 15596 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 15597 | |
| 15598 | |
| 15599 | |
| 15600 | |
| 15601 | hard_links="nottested" |
| 15602 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 15603 | # do not overwrite the value of need_locks provided by the user |
| 15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 15605 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 15606 | hard_links=yes |
| 15607 | $RM conftest* |
| 15608 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15609 | touch conftest.a |
| 15610 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15611 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 15613 | $as_echo "$hard_links" >&6; } |
| 15614 | if test "$hard_links" = no; then |
| 15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15616 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15617 | need_locks=warn |
| 15618 | fi |
| 15619 | else |
| 15620 | need_locks=no |
| 15621 | fi |
| 15622 | |
| 15623 | |
| 15624 | |
| 15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15626 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 15627 | |
| 15628 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15629 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 15630 | case $host_os in |
| 15631 | aix[4-9]*) |
| 15632 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15633 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15634 | # Also, AIX nm treats weak defined symbols like other global defined |
| 15635 | # symbols, whereas GNU nm marks them as "W". |
| 15636 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 15637 | 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' |
| 15638 | else |
| 15639 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 15640 | fi |
| 15641 | ;; |
| 15642 | pw32*) |
| 15643 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 15644 | ;; |
| 15645 | cygwin* | mingw* | cegcc*) |
| 15646 | case $cc_basename in |
| 15647 | cl*) ;; |
| 15648 | *) |
| 15649 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 15650 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 15651 | ;; |
| 15652 | esac |
| 15653 | ;; |
| 15654 | linux* | k*bsd*-gnu | gnu*) |
| 15655 | link_all_deplibs_CXX=no |
| 15656 | ;; |
| 15657 | *) |
| 15658 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15659 | ;; |
| 15660 | esac |
| 15661 | |
| 15662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 15663 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 15664 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 15665 | |
| 15666 | with_gnu_ld_CXX=$with_gnu_ld |
| 15667 | |
| 15668 | |
| 15669 | |
| 15670 | |
| 15671 | |
| 15672 | |
| 15673 | # |
| 15674 | # Do we need to explicitly link libc? |
| 15675 | # |
| 15676 | case "x$archive_cmds_need_lc_CXX" in |
| 15677 | x|xyes) |
| 15678 | # Assume -lc should be added |
| 15679 | archive_cmds_need_lc_CXX=yes |
| 15680 | |
| 15681 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15682 | case $archive_cmds_CXX in |
| 15683 | *'~'*) |
| 15684 | # FIXME: we may have to deal with multi-command sequences. |
| 15685 | ;; |
| 15686 | '$CC '*) |
| 15687 | # Test whether the compiler implicitly links with -lc since on some |
| 15688 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15689 | # to ld, don't add -lc before -lgcc. |
| 15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 15691 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 15692 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 15693 | $as_echo_n "(cached) " >&6 |
| 15694 | else |
| 15695 | $RM conftest* |
| 15696 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15697 | |
| 15698 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 15699 | (eval $ac_compile) 2>&5 |
| 15700 | ac_status=$? |
| 15701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15702 | test $ac_status = 0; } 2>conftest.err; then |
| 15703 | soname=conftest |
| 15704 | lib=conftest |
| 15705 | libobjs=conftest.$ac_objext |
| 15706 | deplibs= |
| 15707 | wl=$lt_prog_compiler_wl_CXX |
| 15708 | pic_flag=$lt_prog_compiler_pic_CXX |
| 15709 | compiler_flags=-v |
| 15710 | linker_flags=-v |
| 15711 | verstring= |
| 15712 | output_objdir=. |
| 15713 | libname=conftest |
| 15714 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 15715 | allow_undefined_flag_CXX= |
| 15716 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 15717 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15718 | ac_status=$? |
| 15719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15720 | test $ac_status = 0; } |
| 15721 | then |
| 15722 | lt_cv_archive_cmds_need_lc_CXX=no |
| 15723 | else |
| 15724 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 15725 | fi |
| 15726 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 15727 | else |
| 15728 | cat conftest.err 1>&5 |
| 15729 | fi |
| 15730 | $RM conftest* |
| 15731 | |
| 15732 | fi |
| 15733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 15734 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 15735 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 15736 | ;; |
| 15737 | esac |
| 15738 | fi |
| 15739 | ;; |
| 15740 | esac |
| 15741 | |
| 15742 | |
| 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | |
| 15750 | |
| 15751 | |
| 15752 | |
| 15753 | |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
| 15758 | |
| 15759 | |
| 15760 | |
| 15761 | |
| 15762 | |
| 15763 | |
| 15764 | |
| 15765 | |
| 15766 | |
| 15767 | |
| 15768 | |
| 15769 | |
| 15770 | |
| 15771 | |
| 15772 | |
| 15773 | |
| 15774 | |
| 15775 | |
| 15776 | |
| 15777 | |
| 15778 | |
| 15779 | |
| 15780 | |
| 15781 | |
| 15782 | |
| 15783 | |
| 15784 | |
| 15785 | |
| 15786 | |
| 15787 | |
| 15788 | |
| 15789 | |
| 15790 | |
| 15791 | |
| 15792 | |
| 15793 | |
| 15794 | |
| 15795 | |
| 15796 | |
| 15797 | |
| 15798 | |
| 15799 | |
| 15800 | |
| 15801 | |
| 15802 | |
| 15803 | |
| 15804 | |
| 15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 15806 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 15807 | |
| 15808 | library_names_spec= |
| 15809 | libname_spec='lib$name' |
| 15810 | soname_spec= |
| 15811 | shrext_cmds=".so" |
| 15812 | postinstall_cmds= |
| 15813 | postuninstall_cmds= |
| 15814 | finish_cmds= |
| 15815 | finish_eval= |
| 15816 | shlibpath_var= |
| 15817 | shlibpath_overrides_runpath=unknown |
| 15818 | version_type=none |
| 15819 | dynamic_linker="$host_os ld.so" |
| 15820 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15821 | need_lib_prefix=unknown |
| 15822 | hardcode_into_libs=no |
| 15823 | |
| 15824 | # when you set need_version to no, make sure it does not cause -set_version |
| 15825 | # flags to be left without arguments |
| 15826 | need_version=unknown |
| 15827 | |
| 15828 | case $host_os in |
| 15829 | aix3*) |
| 15830 | version_type=linux |
| 15831 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15832 | shlibpath_var=LIBPATH |
| 15833 | |
| 15834 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15835 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15836 | ;; |
| 15837 | |
| 15838 | aix[4-9]*) |
| 15839 | version_type=linux |
| 15840 | need_lib_prefix=no |
| 15841 | need_version=no |
| 15842 | hardcode_into_libs=yes |
| 15843 | if test "$host_cpu" = ia64; then |
| 15844 | # AIX 5 supports IA64 |
| 15845 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15846 | shlibpath_var=LD_LIBRARY_PATH |
| 15847 | else |
| 15848 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15849 | # for dependence libraries. The import file would start with |
| 15850 | # the line `#! .'. This would cause the generated library to |
| 15851 | # depend on `.', always an invalid library. This was fixed in |
| 15852 | # development snapshots of GCC prior to 3.0. |
| 15853 | case $host_os in |
| 15854 | aix4 | aix4.[01] | aix4.[01].*) |
| 15855 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15856 | echo ' yes ' |
| 15857 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 15858 | : |
| 15859 | else |
| 15860 | can_build_shared=no |
| 15861 | fi |
| 15862 | ;; |
| 15863 | esac |
| 15864 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15865 | # soname into executable. Probably we can add versioning support to |
| 15866 | # collect2, so additional links can be useful in future. |
| 15867 | if test "$aix_use_runtimelinking" = yes; then |
| 15868 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15869 | # instead of lib<name>.a to let people know that these are not |
| 15870 | # typical AIX shared libraries. |
| 15871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15872 | else |
| 15873 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15874 | # and later when we are not doing run time linking. |
| 15875 | library_names_spec='${libname}${release}.a $libname.a' |
| 15876 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15877 | fi |
| 15878 | shlibpath_var=LIBPATH |
| 15879 | fi |
| 15880 | ;; |
| 15881 | |
| 15882 | amigaos*) |
| 15883 | case $host_cpu in |
| 15884 | powerpc) |
| 15885 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 15886 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 15887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15888 | ;; |
| 15889 | m68k) |
| 15890 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15891 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15892 | 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' |
| 15893 | ;; |
| 15894 | esac |
| 15895 | ;; |
| 15896 | |
| 15897 | beos*) |
| 15898 | library_names_spec='${libname}${shared_ext}' |
| 15899 | dynamic_linker="$host_os ld.so" |
| 15900 | shlibpath_var=LIBRARY_PATH |
| 15901 | ;; |
| 15902 | |
| 15903 | bsdi[45]*) |
| 15904 | version_type=linux |
| 15905 | need_version=no |
| 15906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15907 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15908 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15909 | shlibpath_var=LD_LIBRARY_PATH |
| 15910 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15911 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15912 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15913 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15914 | # libtool to hard-code these into programs |
| 15915 | ;; |
| 15916 | |
| 15917 | cygwin* | mingw* | pw32* | cegcc*) |
| 15918 | version_type=windows |
| 15919 | shrext_cmds=".dll" |
| 15920 | need_version=no |
| 15921 | need_lib_prefix=no |
| 15922 | |
| 15923 | case $GCC,$cc_basename in |
| 15924 | yes,*) |
| 15925 | # gcc |
| 15926 | library_names_spec='$libname.dll.a' |
| 15927 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15928 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15929 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15930 | dldir=$destdir/`dirname \$dlpath`~ |
| 15931 | test -d \$dldir || mkdir -p \$dldir~ |
| 15932 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15933 | chmod a+x \$dldir/$dlname~ |
| 15934 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15935 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15936 | fi' |
| 15937 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15938 | dlpath=$dir/\$dldll~ |
| 15939 | $RM \$dlpath' |
| 15940 | shlibpath_overrides_runpath=yes |
| 15941 | |
| 15942 | case $host_os in |
| 15943 | cygwin*) |
| 15944 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15945 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15946 | |
| 15947 | ;; |
| 15948 | mingw* | cegcc*) |
| 15949 | # MinGW DLLs use traditional 'lib' prefix |
| 15950 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15951 | ;; |
| 15952 | pw32*) |
| 15953 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15954 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15955 | ;; |
| 15956 | esac |
| 15957 | dynamic_linker='Win32 ld.exe' |
| 15958 | ;; |
| 15959 | |
| 15960 | *,cl*) |
| 15961 | # Native MSVC |
| 15962 | libname_spec='$name' |
| 15963 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15964 | library_names_spec='${libname}.dll.lib' |
| 15965 | |
| 15966 | case $build_os in |
| 15967 | mingw*) |
| 15968 | sys_lib_search_path_spec= |
| 15969 | lt_save_ifs=$IFS |
| 15970 | IFS=';' |
| 15971 | for lt_path in $LIB |
| 15972 | do |
| 15973 | IFS=$lt_save_ifs |
| 15974 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15975 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15976 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15977 | done |
| 15978 | IFS=$lt_save_ifs |
| 15979 | # Convert to MSYS style. |
| 15980 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15981 | ;; |
| 15982 | cygwin*) |
| 15983 | # Convert to unix form, then to dos form, then back to unix form |
| 15984 | # but this time dos style (no spaces!) so that the unix form looks |
| 15985 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15986 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15987 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15988 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15989 | ;; |
| 15990 | *) |
| 15991 | sys_lib_search_path_spec="$LIB" |
| 15992 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15993 | # It is most probably a Windows format PATH. |
| 15994 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15995 | else |
| 15996 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15997 | fi |
| 15998 | # FIXME: find the short name or the path components, as spaces are |
| 15999 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 16000 | ;; |
| 16001 | esac |
| 16002 | |
| 16003 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16004 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16005 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 16006 | dldir=$destdir/`dirname \$dlpath`~ |
| 16007 | test -d \$dldir || mkdir -p \$dldir~ |
| 16008 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16009 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16010 | dlpath=$dir/\$dldll~ |
| 16011 | $RM \$dlpath' |
| 16012 | shlibpath_overrides_runpath=yes |
| 16013 | dynamic_linker='Win32 link.exe' |
| 16014 | ;; |
| 16015 | |
| 16016 | *) |
| 16017 | # Assume MSVC wrapper |
| 16018 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16019 | dynamic_linker='Win32 ld.exe' |
| 16020 | ;; |
| 16021 | esac |
| 16022 | # FIXME: first we should search . and the directory the executable is in |
| 16023 | shlibpath_var=PATH |
| 16024 | ;; |
| 16025 | |
| 16026 | darwin* | rhapsody*) |
| 16027 | dynamic_linker="$host_os dyld" |
| 16028 | version_type=darwin |
| 16029 | need_lib_prefix=no |
| 16030 | need_version=no |
| 16031 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16032 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16033 | shlibpath_overrides_runpath=yes |
| 16034 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16035 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16036 | |
| 16037 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16038 | ;; |
| 16039 | |
| 16040 | dgux*) |
| 16041 | version_type=linux |
| 16042 | need_lib_prefix=no |
| 16043 | need_version=no |
| 16044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16046 | shlibpath_var=LD_LIBRARY_PATH |
| 16047 | ;; |
| 16048 | |
| 16049 | freebsd1*) |
| 16050 | dynamic_linker=no |
| 16051 | ;; |
| 16052 | |
| 16053 | freebsd* | dragonfly*) |
| 16054 | # DragonFly does not have aout. When/if they implement a new |
| 16055 | # versioning mechanism, adjust this. |
| 16056 | if test -x /usr/bin/objformat; then |
| 16057 | objformat=`/usr/bin/objformat` |
| 16058 | else |
| 16059 | case $host_os in |
| 16060 | freebsd[123]*) objformat=aout ;; |
| 16061 | *) objformat=elf ;; |
| 16062 | esac |
| 16063 | fi |
| 16064 | version_type=freebsd-$objformat |
| 16065 | case $version_type in |
| 16066 | freebsd-elf*) |
| 16067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16068 | need_version=no |
| 16069 | need_lib_prefix=no |
| 16070 | ;; |
| 16071 | freebsd-*) |
| 16072 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16073 | need_version=yes |
| 16074 | ;; |
| 16075 | esac |
| 16076 | shlibpath_var=LD_LIBRARY_PATH |
| 16077 | case $host_os in |
| 16078 | freebsd2*) |
| 16079 | shlibpath_overrides_runpath=yes |
| 16080 | ;; |
| 16081 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 16082 | shlibpath_overrides_runpath=yes |
| 16083 | hardcode_into_libs=yes |
| 16084 | ;; |
| 16085 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16086 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16087 | shlibpath_overrides_runpath=no |
| 16088 | hardcode_into_libs=yes |
| 16089 | ;; |
| 16090 | *) # from 4.6 on, and DragonFly |
| 16091 | shlibpath_overrides_runpath=yes |
| 16092 | hardcode_into_libs=yes |
| 16093 | ;; |
| 16094 | esac |
| 16095 | ;; |
| 16096 | |
| 16097 | gnu*) |
| 16098 | version_type=linux |
| 16099 | need_lib_prefix=no |
| 16100 | need_version=no |
| 16101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16103 | shlibpath_var=LD_LIBRARY_PATH |
| 16104 | shlibpath_overrides_runpath=no |
| 16105 | hardcode_into_libs=yes |
| 16106 | ;; |
| 16107 | |
| 16108 | haiku*) |
| 16109 | version_type=linux |
| 16110 | need_lib_prefix=no |
| 16111 | need_version=no |
| 16112 | dynamic_linker="$host_os runtime_loader" |
| 16113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16114 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16115 | shlibpath_var=LIBRARY_PATH |
| 16116 | shlibpath_overrides_runpath=yes |
| 16117 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 16118 | hardcode_into_libs=yes |
| 16119 | ;; |
| 16120 | |
| 16121 | hpux9* | hpux10* | hpux11*) |
| 16122 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16123 | # link against other versions. |
| 16124 | version_type=sunos |
| 16125 | need_lib_prefix=no |
| 16126 | need_version=no |
| 16127 | case $host_cpu in |
| 16128 | ia64*) |
| 16129 | shrext_cmds='.so' |
| 16130 | hardcode_into_libs=yes |
| 16131 | dynamic_linker="$host_os dld.so" |
| 16132 | shlibpath_var=LD_LIBRARY_PATH |
| 16133 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16136 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16137 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16138 | else |
| 16139 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16140 | fi |
| 16141 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16142 | ;; |
| 16143 | hppa*64*) |
| 16144 | shrext_cmds='.sl' |
| 16145 | hardcode_into_libs=yes |
| 16146 | dynamic_linker="$host_os dld.sl" |
| 16147 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16148 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16150 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16151 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16152 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16153 | ;; |
| 16154 | *) |
| 16155 | shrext_cmds='.sl' |
| 16156 | dynamic_linker="$host_os dld.sl" |
| 16157 | shlibpath_var=SHLIB_PATH |
| 16158 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16160 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16161 | ;; |
| 16162 | esac |
| 16163 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 16164 | postinstall_cmds='chmod 555 $lib' |
| 16165 | # or fails outright, so override atomically: |
| 16166 | install_override_mode=555 |
| 16167 | ;; |
| 16168 | |
| 16169 | interix[3-9]*) |
| 16170 | version_type=linux |
| 16171 | need_lib_prefix=no |
| 16172 | need_version=no |
| 16173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16175 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16176 | shlibpath_var=LD_LIBRARY_PATH |
| 16177 | shlibpath_overrides_runpath=no |
| 16178 | hardcode_into_libs=yes |
| 16179 | ;; |
| 16180 | |
| 16181 | irix5* | irix6* | nonstopux*) |
| 16182 | case $host_os in |
| 16183 | nonstopux*) version_type=nonstopux ;; |
| 16184 | *) |
| 16185 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16186 | version_type=linux |
| 16187 | else |
| 16188 | version_type=irix |
| 16189 | fi ;; |
| 16190 | esac |
| 16191 | need_lib_prefix=no |
| 16192 | need_version=no |
| 16193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16195 | case $host_os in |
| 16196 | irix5* | nonstopux*) |
| 16197 | libsuff= shlibsuff= |
| 16198 | ;; |
| 16199 | *) |
| 16200 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16201 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16202 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16203 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16204 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16205 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16206 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16207 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16208 | esac |
| 16209 | ;; |
| 16210 | esac |
| 16211 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16212 | shlibpath_overrides_runpath=no |
| 16213 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16214 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16215 | hardcode_into_libs=yes |
| 16216 | ;; |
| 16217 | |
| 16218 | # No shared lib support for Linux oldld, aout, or coff. |
| 16219 | linux*oldld* | linux*aout* | linux*coff*) |
| 16220 | dynamic_linker=no |
| 16221 | ;; |
| 16222 | |
| 16223 | # This must be Linux ELF. |
| 16224 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 16225 | version_type=linux |
| 16226 | need_lib_prefix=no |
| 16227 | need_version=no |
| 16228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16229 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16230 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16231 | shlibpath_var=LD_LIBRARY_PATH |
| 16232 | shlibpath_overrides_runpath=no |
| 16233 | |
| 16234 | # Some binutils ld are patched to set DT_RUNPATH |
| 16235 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 16236 | $as_echo_n "(cached) " >&6 |
| 16237 | else |
| 16238 | lt_cv_shlibpath_overrides_runpath=no |
| 16239 | save_LDFLAGS=$LDFLAGS |
| 16240 | save_libdir=$libdir |
| 16241 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 16242 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 16243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16244 | /* end confdefs.h. */ |
| 16245 | |
| 16246 | int |
| 16247 | main () |
| 16248 | { |
| 16249 | |
| 16250 | ; |
| 16251 | return 0; |
| 16252 | } |
| 16253 | _ACEOF |
| 16254 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16255 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 16256 | lt_cv_shlibpath_overrides_runpath=yes |
| 16257 | fi |
| 16258 | fi |
| 16259 | rm -f core conftest.err conftest.$ac_objext \ |
| 16260 | conftest$ac_exeext conftest.$ac_ext |
| 16261 | LDFLAGS=$save_LDFLAGS |
| 16262 | libdir=$save_libdir |
| 16263 | |
| 16264 | fi |
| 16265 | |
| 16266 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 16267 | |
| 16268 | # This implies no fast_install, which is unacceptable. |
| 16269 | # Some rework will be needed to allow for fast_install |
| 16270 | # before this can be enabled. |
| 16271 | hardcode_into_libs=yes |
| 16272 | |
| 16273 | # Append ld.so.conf contents to the search path |
| 16274 | if test -f /etc/ld.so.conf; then |
| 16275 | 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' ' '` |
| 16276 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16277 | fi |
| 16278 | |
| 16279 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16280 | # powerpc, because MkLinux only supported shared libraries with the |
| 16281 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16282 | # most powerpc-linux boxes support dynamic linking these days and |
| 16283 | # people can always --disable-shared, the test was removed, and we |
| 16284 | # assume the GNU/Linux dynamic linker is in use. |
| 16285 | dynamic_linker='GNU/Linux ld.so' |
| 16286 | ;; |
| 16287 | |
| 16288 | netbsdelf*-gnu) |
| 16289 | version_type=linux |
| 16290 | need_lib_prefix=no |
| 16291 | need_version=no |
| 16292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16293 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16294 | shlibpath_var=LD_LIBRARY_PATH |
| 16295 | shlibpath_overrides_runpath=no |
| 16296 | hardcode_into_libs=yes |
| 16297 | dynamic_linker='NetBSD ld.elf_so' |
| 16298 | ;; |
| 16299 | |
| 16300 | netbsd*) |
| 16301 | version_type=sunos |
| 16302 | need_lib_prefix=no |
| 16303 | need_version=no |
| 16304 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 16305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16306 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16307 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16308 | else |
| 16309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16310 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16311 | dynamic_linker='NetBSD ld.elf_so' |
| 16312 | fi |
| 16313 | shlibpath_var=LD_LIBRARY_PATH |
| 16314 | shlibpath_overrides_runpath=yes |
| 16315 | hardcode_into_libs=yes |
| 16316 | ;; |
| 16317 | |
| 16318 | newsos6) |
| 16319 | version_type=linux |
| 16320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16321 | shlibpath_var=LD_LIBRARY_PATH |
| 16322 | shlibpath_overrides_runpath=yes |
| 16323 | ;; |
| 16324 | |
| 16325 | *nto* | *qnx*) |
| 16326 | version_type=qnx |
| 16327 | need_lib_prefix=no |
| 16328 | need_version=no |
| 16329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16330 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16331 | shlibpath_var=LD_LIBRARY_PATH |
| 16332 | shlibpath_overrides_runpath=no |
| 16333 | hardcode_into_libs=yes |
| 16334 | dynamic_linker='ldqnx.so' |
| 16335 | ;; |
| 16336 | |
| 16337 | openbsd*) |
| 16338 | version_type=sunos |
| 16339 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 16340 | need_lib_prefix=no |
| 16341 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16342 | case $host_os in |
| 16343 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16344 | *) need_version=no ;; |
| 16345 | esac |
| 16346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16347 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16348 | shlibpath_var=LD_LIBRARY_PATH |
| 16349 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16350 | case $host_os in |
| 16351 | openbsd2.[89] | openbsd2.[89].*) |
| 16352 | shlibpath_overrides_runpath=no |
| 16353 | ;; |
| 16354 | *) |
| 16355 | shlibpath_overrides_runpath=yes |
| 16356 | ;; |
| 16357 | esac |
| 16358 | else |
| 16359 | shlibpath_overrides_runpath=yes |
| 16360 | fi |
| 16361 | ;; |
| 16362 | |
| 16363 | os2*) |
| 16364 | libname_spec='$name' |
| 16365 | shrext_cmds=".dll" |
| 16366 | need_lib_prefix=no |
| 16367 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16368 | dynamic_linker='OS/2 ld.exe' |
| 16369 | shlibpath_var=LIBPATH |
| 16370 | ;; |
| 16371 | |
| 16372 | osf3* | osf4* | osf5*) |
| 16373 | version_type=osf |
| 16374 | need_lib_prefix=no |
| 16375 | need_version=no |
| 16376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16378 | shlibpath_var=LD_LIBRARY_PATH |
| 16379 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16380 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16381 | ;; |
| 16382 | |
| 16383 | rdos*) |
| 16384 | dynamic_linker=no |
| 16385 | ;; |
| 16386 | |
| 16387 | solaris*) |
| 16388 | version_type=linux |
| 16389 | need_lib_prefix=no |
| 16390 | need_version=no |
| 16391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16393 | shlibpath_var=LD_LIBRARY_PATH |
| 16394 | shlibpath_overrides_runpath=yes |
| 16395 | hardcode_into_libs=yes |
| 16396 | # ldd complains unless libraries are executable |
| 16397 | postinstall_cmds='chmod +x $lib' |
| 16398 | ;; |
| 16399 | |
| 16400 | sunos4*) |
| 16401 | version_type=sunos |
| 16402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16403 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16404 | shlibpath_var=LD_LIBRARY_PATH |
| 16405 | shlibpath_overrides_runpath=yes |
| 16406 | if test "$with_gnu_ld" = yes; then |
| 16407 | need_lib_prefix=no |
| 16408 | fi |
| 16409 | need_version=yes |
| 16410 | ;; |
| 16411 | |
| 16412 | sysv4 | sysv4.3*) |
| 16413 | version_type=linux |
| 16414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16415 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16416 | shlibpath_var=LD_LIBRARY_PATH |
| 16417 | case $host_vendor in |
| 16418 | sni) |
| 16419 | shlibpath_overrides_runpath=no |
| 16420 | need_lib_prefix=no |
| 16421 | runpath_var=LD_RUN_PATH |
| 16422 | ;; |
| 16423 | siemens) |
| 16424 | need_lib_prefix=no |
| 16425 | ;; |
| 16426 | motorola) |
| 16427 | need_lib_prefix=no |
| 16428 | need_version=no |
| 16429 | shlibpath_overrides_runpath=no |
| 16430 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16431 | ;; |
| 16432 | esac |
| 16433 | ;; |
| 16434 | |
| 16435 | sysv4*MP*) |
| 16436 | if test -d /usr/nec ;then |
| 16437 | version_type=linux |
| 16438 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16439 | soname_spec='$libname${shared_ext}.$major' |
| 16440 | shlibpath_var=LD_LIBRARY_PATH |
| 16441 | fi |
| 16442 | ;; |
| 16443 | |
| 16444 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16445 | version_type=freebsd-elf |
| 16446 | need_lib_prefix=no |
| 16447 | need_version=no |
| 16448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16450 | shlibpath_var=LD_LIBRARY_PATH |
| 16451 | shlibpath_overrides_runpath=yes |
| 16452 | hardcode_into_libs=yes |
| 16453 | if test "$with_gnu_ld" = yes; then |
| 16454 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16455 | else |
| 16456 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16457 | case $host_os in |
| 16458 | sco3.2v5*) |
| 16459 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16460 | ;; |
| 16461 | esac |
| 16462 | fi |
| 16463 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16464 | ;; |
| 16465 | |
| 16466 | tpf*) |
| 16467 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 16468 | version_type=linux |
| 16469 | need_lib_prefix=no |
| 16470 | need_version=no |
| 16471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16472 | shlibpath_var=LD_LIBRARY_PATH |
| 16473 | shlibpath_overrides_runpath=no |
| 16474 | hardcode_into_libs=yes |
| 16475 | ;; |
| 16476 | |
| 16477 | uts4*) |
| 16478 | version_type=linux |
| 16479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16480 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16481 | shlibpath_var=LD_LIBRARY_PATH |
| 16482 | ;; |
| 16483 | |
| 16484 | *) |
| 16485 | dynamic_linker=no |
| 16486 | ;; |
| 16487 | esac |
| 16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 16489 | $as_echo "$dynamic_linker" >&6; } |
| 16490 | test "$dynamic_linker" = no && can_build_shared=no |
| 16491 | |
| 16492 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16493 | if test "$GCC" = yes; then |
| 16494 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16495 | fi |
| 16496 | |
| 16497 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 16498 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 16499 | fi |
| 16500 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 16501 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 16502 | fi |
| 16503 | |
| 16504 | |
| 16505 | |
| 16506 | |
| 16507 | |
| 16508 | |
| 16509 | |
| 16510 | |
| 16511 | |
| 16512 | |
| 16513 | |
| 16514 | |
| 16515 | |
| 16516 | |
| 16517 | |
| 16518 | |
| 16519 | |
| 16520 | |
| 16521 | |
| 16522 | |
| 16523 | |
| 16524 | |
| 16525 | |
| 16526 | |
| 16527 | |
| 16528 | |
| 16529 | |
| 16530 | |
| 16531 | |
| 16532 | |
| 16533 | |
| 16534 | |
| 16535 | |
| 16536 | |
| 16537 | |
| 16538 | |
| 16539 | |
| 16540 | |
| 16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 16542 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 16543 | hardcode_action_CXX= |
| 16544 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 16545 | test -n "$runpath_var_CXX" || |
| 16546 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 16547 | |
| 16548 | # We can hardcode non-existent directories. |
| 16549 | if test "$hardcode_direct_CXX" != no && |
| 16550 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16551 | # have to relink, otherwise we might link with an installed library |
| 16552 | # when we should be linking with a yet-to-be-installed one |
| 16553 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 16554 | test "$hardcode_minus_L_CXX" != no; then |
| 16555 | # Linking always hardcodes the temporary library directory. |
| 16556 | hardcode_action_CXX=relink |
| 16557 | else |
| 16558 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16559 | hardcode_action_CXX=immediate |
| 16560 | fi |
| 16561 | else |
| 16562 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16563 | # directories. |
| 16564 | hardcode_action_CXX=unsupported |
| 16565 | fi |
| 16566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 16567 | $as_echo "$hardcode_action_CXX" >&6; } |
| 16568 | |
| 16569 | if test "$hardcode_action_CXX" = relink || |
| 16570 | test "$inherit_rpath_CXX" = yes; then |
| 16571 | # Fast installation is not supported |
| 16572 | enable_fast_install=no |
| 16573 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16574 | test "$enable_shared" = no; then |
| 16575 | # Fast installation is not necessary |
| 16576 | enable_fast_install=needless |
| 16577 | fi |
| 16578 | |
| 16579 | |
| 16580 | |
| 16581 | |
| 16582 | |
| 16583 | |
| 16584 | |
| 16585 | fi # test -n "$compiler" |
| 16586 | |
| 16587 | CC=$lt_save_CC |
| 16588 | CFLAGS=$lt_save_CFLAGS |
| 16589 | LDCXX=$LD |
| 16590 | LD=$lt_save_LD |
| 16591 | GCC=$lt_save_GCC |
| 16592 | with_gnu_ld=$lt_save_with_gnu_ld |
| 16593 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 16594 | lt_cv_path_LD=$lt_save_path_LD |
| 16595 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 16596 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 16597 | fi # test "$_lt_caught_CXX_error" != yes |
| 16598 | |
| 16599 | ac_ext=cpp |
| 16600 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16601 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16602 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16603 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16604 | |
| 16605 | |
| 16606 | |
| 16607 | |
| 16608 | |
| 16609 | |
| 16610 | |
| 16611 | |
| 16612 | |
| 16613 | |
| 16614 | |
| 16615 | |
| 16616 | |
| 16617 | ac_config_commands="$ac_config_commands libtool" |
| 16618 | |
| 16619 | |
| 16620 | |
| 16621 | |
| 16622 | # Only expand once: |
| 16623 | |
| 16624 | |
| 16625 | am__api_version='1.11' |
| 16626 | |
| 16627 | # Find a good install program. We prefer a C program (faster), |
| 16628 | # so one script is as good as another. But avoid the broken or |
| 16629 | # incompatible versions: |
| 16630 | # SysV /etc/install, /usr/sbin/install |
| 16631 | # SunOS /usr/etc/install |
| 16632 | # IRIX /sbin/install |
| 16633 | # AIX /bin/install |
| 16634 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 16635 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 16636 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 16637 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 16638 | # OS/2's system install, which has a completely different semantic |
| 16639 | # ./install, which can be erroneously created by make from ./install.sh. |
| 16640 | # Reject install programs that cannot install multiple files. |
| 16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 16642 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 16643 | if test -z "$INSTALL"; then |
| 16644 | if ${ac_cv_path_install+:} false; then : |
| 16645 | $as_echo_n "(cached) " >&6 |
| 16646 | else |
| 16647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16648 | for as_dir in $PATH |
| 16649 | do |
| 16650 | IFS=$as_save_IFS |
| 16651 | test -z "$as_dir" && as_dir=. |
| 16652 | # Account for people who put trailing slashes in PATH elements. |
| 16653 | case $as_dir/ in #(( |
| 16654 | ./ | .// | /[cC]/* | \ |
| 16655 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 16656 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 16657 | /usr/ucb/* ) ;; |
| 16658 | *) |
| 16659 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 16660 | # Don't use installbsd from OSF since it installs stuff as root |
| 16661 | # by default. |
| 16662 | for ac_prog in ginstall scoinst install; do |
| 16663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16664 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 16665 | if test $ac_prog = install && |
| 16666 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 16667 | # AIX install. It has an incompatible calling convention. |
| 16668 | : |
| 16669 | elif test $ac_prog = install && |
| 16670 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 16671 | # program-specific install script used by HP pwplus--don't use. |
| 16672 | : |
| 16673 | else |
| 16674 | rm -rf conftest.one conftest.two conftest.dir |
| 16675 | echo one > conftest.one |
| 16676 | echo two > conftest.two |
| 16677 | mkdir conftest.dir |
| 16678 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 16679 | test -s conftest.one && test -s conftest.two && |
| 16680 | test -s conftest.dir/conftest.one && |
| 16681 | test -s conftest.dir/conftest.two |
| 16682 | then |
| 16683 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 16684 | break 3 |
| 16685 | fi |
| 16686 | fi |
| 16687 | fi |
| 16688 | done |
| 16689 | done |
| 16690 | ;; |
| 16691 | esac |
| 16692 | |
| 16693 | done |
| 16694 | IFS=$as_save_IFS |
| 16695 | |
| 16696 | rm -rf conftest.one conftest.two conftest.dir |
| 16697 | |
| 16698 | fi |
| 16699 | if test "${ac_cv_path_install+set}" = set; then |
| 16700 | INSTALL=$ac_cv_path_install |
| 16701 | else |
| 16702 | # As a last resort, use the slow shell script. Don't cache a |
| 16703 | # value for INSTALL within a source directory, because that will |
| 16704 | # break other packages using the cache if that directory is |
| 16705 | # removed, or if the value is a relative name. |
| 16706 | INSTALL=$ac_install_sh |
| 16707 | fi |
| 16708 | fi |
| 16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 16710 | $as_echo "$INSTALL" >&6; } |
| 16711 | |
| 16712 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 16713 | # It thinks the first close brace ends the variable substitution. |
| 16714 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 16715 | |
| 16716 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 16717 | |
| 16718 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 16719 | |
| 16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 16721 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 16722 | # Just in case |
| 16723 | sleep 1 |
| 16724 | echo timestamp > conftest.file |
| 16725 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 16726 | # name. Accept space and tab only in the latter. |
| 16727 | am_lf=' |
| 16728 | ' |
| 16729 | case `pwd` in |
| 16730 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 16731 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 16732 | esac |
| 16733 | case $srcdir in |
| 16734 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 16735 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 16736 | esac |
| 16737 | |
| 16738 | # Do `set' in a subshell so we don't clobber the current shell's |
| 16739 | # arguments. Must try -L first in case configure is actually a |
| 16740 | # symlink; some systems play weird games with the mod time of symlinks |
| 16741 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 16742 | # directory). |
| 16743 | if ( |
| 16744 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 16745 | if test "$*" = "X"; then |
| 16746 | # -L didn't work. |
| 16747 | set X `ls -t "$srcdir/configure" conftest.file` |
| 16748 | fi |
| 16749 | rm -f conftest.file |
| 16750 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 16751 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 16752 | |
| 16753 | # If neither matched, then we have a broken ls. This can happen |
| 16754 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 16755 | # broken ls alias from the environment. This has actually |
| 16756 | # happened. Such a system could not be considered "sane". |
| 16757 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 16758 | alias in your environment" "$LINENO" 5 |
| 16759 | fi |
| 16760 | |
| 16761 | test "$2" = conftest.file |
| 16762 | ) |
| 16763 | then |
| 16764 | # Ok. |
| 16765 | : |
| 16766 | else |
| 16767 | as_fn_error $? "newly created file is older than distributed files! |
| 16768 | Check your system clock" "$LINENO" 5 |
| 16769 | fi |
| 16770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16771 | $as_echo "yes" >&6; } |
| 16772 | test "$program_prefix" != NONE && |
| 16773 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 16774 | # Use a double $ so make ignores it. |
| 16775 | test "$program_suffix" != NONE && |
| 16776 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 16777 | # Double any \ or $. |
| 16778 | # By default was `s,x,x', remove it if useless. |
| 16779 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 16780 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 16781 | |
| 16782 | # expand $ac_aux_dir to an absolute path |
| 16783 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 16784 | |
| 16785 | if test x"${MISSING+set}" != xset; then |
| 16786 | case $am_aux_dir in |
| 16787 | *\ * | *\ *) |
| 16788 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 16789 | *) |
| 16790 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 16791 | esac |
| 16792 | fi |
| 16793 | # Use eval to expand $SHELL |
| 16794 | if eval "$MISSING --run true"; then |
| 16795 | am_missing_run="$MISSING --run " |
| 16796 | else |
| 16797 | am_missing_run= |
| 16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 16799 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 16800 | fi |
| 16801 | |
| 16802 | if test x"${install_sh}" != xset; then |
| 16803 | case $am_aux_dir in |
| 16804 | *\ * | *\ *) |
| 16805 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 16806 | *) |
| 16807 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 16808 | esac |
| 16809 | fi |
| 16810 | |
| 16811 | # Installed binaries are usually stripped using `strip' when the user |
| 16812 | # run `make install-strip'. However `strip' might not be the right |
| 16813 | # tool to use in cross-compilation environments, therefore Automake |
| 16814 | # will honor the `STRIP' environment variable to overrule this program. |
| 16815 | if test "$cross_compiling" != no; then |
| 16816 | if test -n "$ac_tool_prefix"; then |
| 16817 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 16818 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16820 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16821 | if ${ac_cv_prog_STRIP+:} false; then : |
| 16822 | $as_echo_n "(cached) " >&6 |
| 16823 | else |
| 16824 | if test -n "$STRIP"; then |
| 16825 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 16826 | else |
| 16827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16828 | for as_dir in $PATH |
| 16829 | do |
| 16830 | IFS=$as_save_IFS |
| 16831 | test -z "$as_dir" && as_dir=. |
| 16832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16834 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 16835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16836 | break 2 |
| 16837 | fi |
| 16838 | done |
| 16839 | done |
| 16840 | IFS=$as_save_IFS |
| 16841 | |
| 16842 | fi |
| 16843 | fi |
| 16844 | STRIP=$ac_cv_prog_STRIP |
| 16845 | if test -n "$STRIP"; then |
| 16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 16847 | $as_echo "$STRIP" >&6; } |
| 16848 | else |
| 16849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16850 | $as_echo "no" >&6; } |
| 16851 | fi |
| 16852 | |
| 16853 | |
| 16854 | fi |
| 16855 | if test -z "$ac_cv_prog_STRIP"; then |
| 16856 | ac_ct_STRIP=$STRIP |
| 16857 | # Extract the first word of "strip", so it can be a program name with args. |
| 16858 | set dummy strip; ac_word=$2 |
| 16859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16860 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16861 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 16862 | $as_echo_n "(cached) " >&6 |
| 16863 | else |
| 16864 | if test -n "$ac_ct_STRIP"; then |
| 16865 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 16866 | else |
| 16867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16868 | for as_dir in $PATH |
| 16869 | do |
| 16870 | IFS=$as_save_IFS |
| 16871 | test -z "$as_dir" && as_dir=. |
| 16872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16874 | ac_cv_prog_ac_ct_STRIP="strip" |
| 16875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16876 | break 2 |
| 16877 | fi |
| 16878 | done |
| 16879 | done |
| 16880 | IFS=$as_save_IFS |
| 16881 | |
| 16882 | fi |
| 16883 | fi |
| 16884 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 16885 | if test -n "$ac_ct_STRIP"; then |
| 16886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 16887 | $as_echo "$ac_ct_STRIP" >&6; } |
| 16888 | else |
| 16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16890 | $as_echo "no" >&6; } |
| 16891 | fi |
| 16892 | |
| 16893 | if test "x$ac_ct_STRIP" = x; then |
| 16894 | STRIP=":" |
| 16895 | else |
| 16896 | case $cross_compiling:$ac_tool_warned in |
| 16897 | yes:) |
| 16898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16900 | ac_tool_warned=yes ;; |
| 16901 | esac |
| 16902 | STRIP=$ac_ct_STRIP |
| 16903 | fi |
| 16904 | else |
| 16905 | STRIP="$ac_cv_prog_STRIP" |
| 16906 | fi |
| 16907 | |
| 16908 | fi |
| 16909 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 16910 | |
| 16911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 16912 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 16913 | if test -z "$MKDIR_P"; then |
| 16914 | if ${ac_cv_path_mkdir+:} false; then : |
| 16915 | $as_echo_n "(cached) " >&6 |
| 16916 | else |
| 16917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16918 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 16919 | do |
| 16920 | IFS=$as_save_IFS |
| 16921 | test -z "$as_dir" && as_dir=. |
| 16922 | for ac_prog in mkdir gmkdir; do |
| 16923 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16924 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 16925 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 16926 | 'mkdir (GNU coreutils) '* | \ |
| 16927 | 'mkdir (coreutils) '* | \ |
| 16928 | 'mkdir (fileutils) '4.1*) |
| 16929 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 16930 | break 3;; |
| 16931 | esac |
| 16932 | done |
| 16933 | done |
| 16934 | done |
| 16935 | IFS=$as_save_IFS |
| 16936 | |
| 16937 | fi |
| 16938 | |
| 16939 | test -d ./--version && rmdir ./--version |
| 16940 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 16941 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 16942 | else |
| 16943 | # As a last resort, use the slow shell script. Don't cache a |
| 16944 | # value for MKDIR_P within a source directory, because that will |
| 16945 | # break other packages using the cache if that directory is |
| 16946 | # removed, or if the value is a relative name. |
| 16947 | MKDIR_P="$ac_install_sh -d" |
| 16948 | fi |
| 16949 | fi |
| 16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 16951 | $as_echo "$MKDIR_P" >&6; } |
| 16952 | |
| 16953 | mkdir_p="$MKDIR_P" |
| 16954 | case $mkdir_p in |
| 16955 | [\\/$]* | ?:[\\/]*) ;; |
| 16956 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 16957 | esac |
| 16958 | |
| 16959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 16960 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 16961 | set x ${MAKE-make} |
| 16962 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 16963 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 16964 | $as_echo_n "(cached) " >&6 |
| 16965 | else |
| 16966 | cat >conftest.make <<\_ACEOF |
| 16967 | SHELL = /bin/sh |
| 16968 | all: |
| 16969 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 16970 | _ACEOF |
| 16971 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 16972 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 16973 | *@@@%%%=?*=@@@%%%*) |
| 16974 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 16975 | *) |
| 16976 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 16977 | esac |
| 16978 | rm -f conftest.make |
| 16979 | fi |
| 16980 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16982 | $as_echo "yes" >&6; } |
| 16983 | SET_MAKE= |
| 16984 | else |
| 16985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16986 | $as_echo "no" >&6; } |
| 16987 | SET_MAKE="MAKE=${MAKE-make}" |
| 16988 | fi |
| 16989 | |
| 16990 | rm -rf .tst 2>/dev/null |
| 16991 | mkdir .tst 2>/dev/null |
| 16992 | if test -d .tst; then |
| 16993 | am__leading_dot=. |
| 16994 | else |
| 16995 | am__leading_dot=_ |
| 16996 | fi |
| 16997 | rmdir .tst 2>/dev/null |
| 16998 | |
| 16999 | DEPDIR="${am__leading_dot}deps" |
| 17000 | |
| 17001 | ac_config_commands="$ac_config_commands depfiles" |
| 17002 | |
| 17003 | |
| 17004 | am_make=${MAKE-make} |
| 17005 | cat > confinc << 'END' |
| 17006 | am__doit: |
| 17007 | @echo this is the am__doit target |
| 17008 | .PHONY: am__doit |
| 17009 | END |
| 17010 | # If we don't find an include directive, just comment out the code. |
| 17011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 17012 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 17013 | am__include="#" |
| 17014 | am__quote= |
| 17015 | _am_result=none |
| 17016 | # First try GNU make style include. |
| 17017 | echo "include confinc" > confmf |
| 17018 | # Ignore all kinds of additional output from `make'. |
| 17019 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 17020 | *the\ am__doit\ target*) |
| 17021 | am__include=include |
| 17022 | am__quote= |
| 17023 | _am_result=GNU |
| 17024 | ;; |
| 17025 | esac |
| 17026 | # Now try BSD make style include. |
| 17027 | if test "$am__include" = "#"; then |
| 17028 | echo '.include "confinc"' > confmf |
| 17029 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 17030 | *the\ am__doit\ target*) |
| 17031 | am__include=.include |
| 17032 | am__quote="\"" |
| 17033 | _am_result=BSD |
| 17034 | ;; |
| 17035 | esac |
| 17036 | fi |
| 17037 | |
| 17038 | |
| 17039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 17040 | $as_echo "$_am_result" >&6; } |
| 17041 | rm -f confinc confmf |
| 17042 | |
| 17043 | # Check whether --enable-dependency-tracking was given. |
| 17044 | if test "${enable_dependency_tracking+set}" = set; then : |
| 17045 | enableval=$enable_dependency_tracking; |
| 17046 | fi |
| 17047 | |
| 17048 | if test "x$enable_dependency_tracking" != xno; then |
| 17049 | am_depcomp="$ac_aux_dir/depcomp" |
| 17050 | AMDEPBACKSLASH='\' |
| 17051 | fi |
| 17052 | if test "x$enable_dependency_tracking" != xno; then |
| 17053 | AMDEP_TRUE= |
| 17054 | AMDEP_FALSE='#' |
| 17055 | else |
| 17056 | AMDEP_TRUE='#' |
| 17057 | AMDEP_FALSE= |
| 17058 | fi |
| 17059 | |
| 17060 | |
| 17061 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 17062 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 17063 | # is not polluted with repeated "-I." |
| 17064 | am__isrc=' -I$(srcdir)' |
| 17065 | # test to see if srcdir already configured |
| 17066 | if test -f $srcdir/config.status; then |
| 17067 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 17068 | fi |
| 17069 | fi |
| 17070 | |
| 17071 | # test whether we have cygpath |
| 17072 | if test -z "$CYGPATH_W"; then |
| 17073 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 17074 | CYGPATH_W='cygpath -w' |
| 17075 | else |
| 17076 | CYGPATH_W=echo |
| 17077 | fi |
| 17078 | fi |
| 17079 | |
| 17080 | |
| 17081 | # Define the identity of the package. |
| 17082 | PACKAGE=commoncpp2 |
| 17083 | VERSION=$VERSION |
| 17084 | |
| 17085 | |
| 17086 | cat >>confdefs.h <<_ACEOF |
| 17087 | #define PACKAGE "$PACKAGE" |
| 17088 | _ACEOF |
| 17089 | |
| 17090 | |
| 17091 | cat >>confdefs.h <<_ACEOF |
| 17092 | #define VERSION "$VERSION" |
| 17093 | _ACEOF |
| 17094 | |
| 17095 | # Some tools Automake needs. |
| 17096 | |
| 17097 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 17098 | |
| 17099 | |
| 17100 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 17101 | |
| 17102 | |
| 17103 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 17104 | |
| 17105 | |
| 17106 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 17107 | |
| 17108 | |
| 17109 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 17110 | |
| 17111 | # We need awk for the "check" target. The system "awk" is bad on |
| 17112 | # some platforms. |
| 17113 | # Always define AMTAR for backward compatibility. |
| 17114 | |
| 17115 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 17116 | |
| 17117 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 17118 | |
| 17119 | |
| 17120 | |
| 17121 | |
| 17122 | depcc="$CC" am_compiler_list= |
| 17123 | |
| 17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 17125 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 17126 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 17127 | $as_echo_n "(cached) " >&6 |
| 17128 | else |
| 17129 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 17130 | # We make a subdir and do the tests there. Otherwise we can end up |
| 17131 | # making bogus files that we don't know about and never remove. For |
| 17132 | # instance it was reported that on HP-UX the gcc test will end up |
| 17133 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 17134 | # in D'. |
| 17135 | mkdir conftest.dir |
| 17136 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 17137 | # using a relative directory. |
| 17138 | cp "$am_depcomp" conftest.dir |
| 17139 | cd conftest.dir |
| 17140 | # We will build objects and dependencies in a subdirectory because |
| 17141 | # it helps to detect inapplicable dependency modes. For instance |
| 17142 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 17143 | # side effect of compilation, but ICC will put the dependencies in |
| 17144 | # the current directory while Tru64 will put them in the object |
| 17145 | # directory. |
| 17146 | mkdir sub |
| 17147 | |
| 17148 | am_cv_CC_dependencies_compiler_type=none |
| 17149 | if test "$am_compiler_list" = ""; then |
| 17150 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 17151 | fi |
| 17152 | am__universal=false |
| 17153 | case " $depcc " in #( |
| 17154 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 17155 | esac |
| 17156 | |
| 17157 | for depmode in $am_compiler_list; do |
| 17158 | # Setup a source with many dependencies, because some compilers |
| 17159 | # like to wrap large dependency lists on column 80 (with \), and |
| 17160 | # we should not choose a depcomp mode which is confused by this. |
| 17161 | # |
| 17162 | # We need to recreate these files for each test, as the compiler may |
| 17163 | # overwrite some of them when testing with obscure command lines. |
| 17164 | # This happens at least with the AIX C compiler. |
| 17165 | : > sub/conftest.c |
| 17166 | for i in 1 2 3 4 5 6; do |
| 17167 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 17168 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 17169 | # Solaris 8's {/usr,}/bin/sh. |
| 17170 | touch sub/conftst$i.h |
| 17171 | done |
| 17172 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 17173 | |
| 17174 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 17175 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 17176 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 17177 | # versions had trouble with output in subdirs |
| 17178 | am__obj=sub/conftest.${OBJEXT-o} |
| 17179 | am__minus_obj="-o $am__obj" |
| 17180 | case $depmode in |
| 17181 | gcc) |
| 17182 | # This depmode causes a compiler race in universal mode. |
| 17183 | test "$am__universal" = false || continue |
| 17184 | ;; |
| 17185 | nosideeffect) |
| 17186 | # after this tag, mechanisms are not by side-effect, so they'll |
| 17187 | # only be used when explicitly requested |
| 17188 | if test "x$enable_dependency_tracking" = xyes; then |
| 17189 | continue |
| 17190 | else |
| 17191 | break |
| 17192 | fi |
| 17193 | ;; |
| 17194 | msvisualcpp | msvcmsys) |
| 17195 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 17196 | # not run yet. These depmodes are late enough in the game, and |
| 17197 | # so weak that their functioning should not be impacted. |
| 17198 | am__obj=conftest.${OBJEXT-o} |
| 17199 | am__minus_obj= |
| 17200 | ;; |
| 17201 | none) break ;; |
| 17202 | esac |
| 17203 | if depmode=$depmode \ |
| 17204 | source=sub/conftest.c object=$am__obj \ |
| 17205 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 17206 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 17207 | >/dev/null 2>conftest.err && |
| 17208 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 17209 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 17210 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 17211 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 17212 | # icc doesn't choke on unknown options, it will just issue warnings |
| 17213 | # or remarks (even with -Werror). So we grep stderr for any message |
| 17214 | # that says an option was ignored or not supported. |
| 17215 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 17216 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 17217 | # The diagnosis changed in icc 8.0: |
| 17218 | # icc: Command line remark: option '-MP' not supported |
| 17219 | if (grep 'ignoring option' conftest.err || |
| 17220 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 17221 | am_cv_CC_dependencies_compiler_type=$depmode |
| 17222 | break |
| 17223 | fi |
| 17224 | fi |
| 17225 | done |
| 17226 | |
| 17227 | cd .. |
| 17228 | rm -rf conftest.dir |
| 17229 | else |
| 17230 | am_cv_CC_dependencies_compiler_type=none |
| 17231 | fi |
| 17232 | |
| 17233 | fi |
| 17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 17235 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 17236 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 17237 | |
| 17238 | if |
| 17239 | test "x$enable_dependency_tracking" != xno \ |
| 17240 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 17241 | am__fastdepCC_TRUE= |
| 17242 | am__fastdepCC_FALSE='#' |
| 17243 | else |
| 17244 | am__fastdepCC_TRUE='#' |
| 17245 | am__fastdepCC_FALSE= |
| 17246 | fi |
| 17247 | |
| 17248 | |
| 17249 | depcc="$CXX" am_compiler_list= |
| 17250 | |
| 17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 17252 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 17253 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 17254 | $as_echo_n "(cached) " >&6 |
| 17255 | else |
| 17256 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 17257 | # We make a subdir and do the tests there. Otherwise we can end up |
| 17258 | # making bogus files that we don't know about and never remove. For |
| 17259 | # instance it was reported that on HP-UX the gcc test will end up |
| 17260 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 17261 | # in D'. |
| 17262 | mkdir conftest.dir |
| 17263 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 17264 | # using a relative directory. |
| 17265 | cp "$am_depcomp" conftest.dir |
| 17266 | cd conftest.dir |
| 17267 | # We will build objects and dependencies in a subdirectory because |
| 17268 | # it helps to detect inapplicable dependency modes. For instance |
| 17269 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 17270 | # side effect of compilation, but ICC will put the dependencies in |
| 17271 | # the current directory while Tru64 will put them in the object |
| 17272 | # directory. |
| 17273 | mkdir sub |
| 17274 | |
| 17275 | am_cv_CXX_dependencies_compiler_type=none |
| 17276 | if test "$am_compiler_list" = ""; then |
| 17277 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 17278 | fi |
| 17279 | am__universal=false |
| 17280 | case " $depcc " in #( |
| 17281 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 17282 | esac |
| 17283 | |
| 17284 | for depmode in $am_compiler_list; do |
| 17285 | # Setup a source with many dependencies, because some compilers |
| 17286 | # like to wrap large dependency lists on column 80 (with \), and |
| 17287 | # we should not choose a depcomp mode which is confused by this. |
| 17288 | # |
| 17289 | # We need to recreate these files for each test, as the compiler may |
| 17290 | # overwrite some of them when testing with obscure command lines. |
| 17291 | # This happens at least with the AIX C compiler. |
| 17292 | : > sub/conftest.c |
| 17293 | for i in 1 2 3 4 5 6; do |
| 17294 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 17295 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 17296 | # Solaris 8's {/usr,}/bin/sh. |
| 17297 | touch sub/conftst$i.h |
| 17298 | done |
| 17299 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 17300 | |
| 17301 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 17302 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 17303 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 17304 | # versions had trouble with output in subdirs |
| 17305 | am__obj=sub/conftest.${OBJEXT-o} |
| 17306 | am__minus_obj="-o $am__obj" |
| 17307 | case $depmode in |
| 17308 | gcc) |
| 17309 | # This depmode causes a compiler race in universal mode. |
| 17310 | test "$am__universal" = false || continue |
| 17311 | ;; |
| 17312 | nosideeffect) |
| 17313 | # after this tag, mechanisms are not by side-effect, so they'll |
| 17314 | # only be used when explicitly requested |
| 17315 | if test "x$enable_dependency_tracking" = xyes; then |
| 17316 | continue |
| 17317 | else |
| 17318 | break |
| 17319 | fi |
| 17320 | ;; |
| 17321 | msvisualcpp | msvcmsys) |
| 17322 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 17323 | # not run yet. These depmodes are late enough in the game, and |
| 17324 | # so weak that their functioning should not be impacted. |
| 17325 | am__obj=conftest.${OBJEXT-o} |
| 17326 | am__minus_obj= |
| 17327 | ;; |
| 17328 | none) break ;; |
| 17329 | esac |
| 17330 | if depmode=$depmode \ |
| 17331 | source=sub/conftest.c object=$am__obj \ |
| 17332 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 17333 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 17334 | >/dev/null 2>conftest.err && |
| 17335 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 17336 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 17337 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 17338 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 17339 | # icc doesn't choke on unknown options, it will just issue warnings |
| 17340 | # or remarks (even with -Werror). So we grep stderr for any message |
| 17341 | # that says an option was ignored or not supported. |
| 17342 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 17343 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 17344 | # The diagnosis changed in icc 8.0: |
| 17345 | # icc: Command line remark: option '-MP' not supported |
| 17346 | if (grep 'ignoring option' conftest.err || |
| 17347 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 17348 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 17349 | break |
| 17350 | fi |
| 17351 | fi |
| 17352 | done |
| 17353 | |
| 17354 | cd .. |
| 17355 | rm -rf conftest.dir |
| 17356 | else |
| 17357 | am_cv_CXX_dependencies_compiler_type=none |
| 17358 | fi |
| 17359 | |
| 17360 | fi |
| 17361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 17362 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 17363 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 17364 | |
| 17365 | if |
| 17366 | test "x$enable_dependency_tracking" != xno \ |
| 17367 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 17368 | am__fastdepCXX_TRUE= |
| 17369 | am__fastdepCXX_FALSE='#' |
| 17370 | else |
| 17371 | am__fastdepCXX_TRUE='#' |
| 17372 | am__fastdepCXX_FALSE= |
| 17373 | fi |
| 17374 | |
| 17375 | |
| 17376 | |
| 17377 | ac_config_headers="$ac_config_headers config.h" |
| 17378 | |
| 17379 | |
| 17380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 17381 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 17382 | if ${ac_cv_c_restrict+:} false; then : |
| 17383 | $as_echo_n "(cached) " >&6 |
| 17384 | else |
| 17385 | ac_cv_c_restrict=no |
| 17386 | # The order here caters to the fact that C++ does not require restrict. |
| 17387 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 17388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17389 | /* end confdefs.h. */ |
| 17390 | typedef int * int_ptr; |
| 17391 | int foo (int_ptr $ac_kw ip) { |
| 17392 | return ip[0]; |
| 17393 | } |
| 17394 | int |
| 17395 | main () |
| 17396 | { |
| 17397 | int s[1]; |
| 17398 | int * $ac_kw t = s; |
| 17399 | t[0] = 0; |
| 17400 | return foo(t) |
| 17401 | ; |
| 17402 | return 0; |
| 17403 | } |
| 17404 | _ACEOF |
| 17405 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17406 | ac_cv_c_restrict=$ac_kw |
| 17407 | fi |
| 17408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17409 | test "$ac_cv_c_restrict" != no && break |
| 17410 | done |
| 17411 | |
| 17412 | fi |
| 17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 17414 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 17415 | |
| 17416 | case $ac_cv_c_restrict in |
| 17417 | restrict) ;; |
| 17418 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| 17419 | ;; |
| 17420 | *) cat >>confdefs.h <<_ACEOF |
| 17421 | #define restrict $ac_cv_c_restrict |
| 17422 | _ACEOF |
| 17423 | ;; |
| 17424 | esac |
| 17425 | |
| 17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 17427 | $as_echo_n "checking for working volatile... " >&6; } |
| 17428 | if ${ac_cv_c_volatile+:} false; then : |
| 17429 | $as_echo_n "(cached) " >&6 |
| 17430 | else |
| 17431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17432 | /* end confdefs.h. */ |
| 17433 | |
| 17434 | int |
| 17435 | main () |
| 17436 | { |
| 17437 | |
| 17438 | volatile int x; |
| 17439 | int * volatile y = (int *) 0; |
| 17440 | return !x && !y; |
| 17441 | ; |
| 17442 | return 0; |
| 17443 | } |
| 17444 | _ACEOF |
| 17445 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17446 | ac_cv_c_volatile=yes |
| 17447 | else |
| 17448 | ac_cv_c_volatile=no |
| 17449 | fi |
| 17450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17451 | fi |
| 17452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 17453 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 17454 | if test $ac_cv_c_volatile = no; then |
| 17455 | |
| 17456 | $as_echo "#define volatile /**/" >>confdefs.h |
| 17457 | |
| 17458 | fi |
| 17459 | |
| 17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 17461 | $as_echo_n "checking for inline... " >&6; } |
| 17462 | if ${ac_cv_c_inline+:} false; then : |
| 17463 | $as_echo_n "(cached) " >&6 |
| 17464 | else |
| 17465 | ac_cv_c_inline=no |
| 17466 | for ac_kw in inline __inline__ __inline; do |
| 17467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17468 | /* end confdefs.h. */ |
| 17469 | #ifndef __cplusplus |
| 17470 | typedef int foo_t; |
| 17471 | static $ac_kw foo_t static_foo () {return 0; } |
| 17472 | $ac_kw foo_t foo () {return 0; } |
| 17473 | #endif |
| 17474 | |
| 17475 | _ACEOF |
| 17476 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17477 | ac_cv_c_inline=$ac_kw |
| 17478 | fi |
| 17479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17480 | test "$ac_cv_c_inline" != no && break |
| 17481 | done |
| 17482 | |
| 17483 | fi |
| 17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 17485 | $as_echo "$ac_cv_c_inline" >&6; } |
| 17486 | |
| 17487 | case $ac_cv_c_inline in |
| 17488 | inline | yes) ;; |
| 17489 | *) |
| 17490 | case $ac_cv_c_inline in |
| 17491 | no) ac_val=;; |
| 17492 | *) ac_val=$ac_cv_c_inline;; |
| 17493 | esac |
| 17494 | cat >>confdefs.h <<_ACEOF |
| 17495 | #ifndef __cplusplus |
| 17496 | #define inline $ac_val |
| 17497 | #endif |
| 17498 | _ACEOF |
| 17499 | ;; |
| 17500 | esac |
| 17501 | |
| 17502 | |
| 17503 | |
| 17504 | |
| 17505 | if test "$prefix" != "/usr" ; then |
| 17506 | if test -d "$prefix" ; then |
| 17507 | bprefix="$prefix" |
| 17508 | else if test "$GCC" = "no" ; then |
| 17509 | bprefix=/usr/local ; fi |
| 17510 | fi |
| 17511 | if test -d $bprefix/include ; then |
| 17512 | COMMON_FLAGS="$COMMON_FLAGS -I$bprefix/include" |
| 17513 | fi |
| 17514 | if test -d $bprefix/lib ; then |
| 17515 | LIBS="$LIBS -L$bprefix/lib" |
| 17516 | fi |
| 17517 | fi |
| 17518 | |
| 17519 | |
| 17520 | |
| 17521 | |
| 17522 | |
| 17523 | |
| 17524 | LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`" |
| 17525 | LT_MINOR="`echo $LT_VERSION | sed s/.*://`" |
| 17526 | LT_SUBVER="$LT_MAJOR.$LT_MINOR" |
| 17527 | |
| 17528 | |
| 17529 | |
| 17530 | |
| 17531 | |
| 17532 | if test -n "$ac_tool_prefix"; then |
| 17533 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 17534 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17536 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17537 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 17538 | $as_echo_n "(cached) " >&6 |
| 17539 | else |
| 17540 | if test -n "$RANLIB"; then |
| 17541 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 17542 | else |
| 17543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17544 | for as_dir in $PATH |
| 17545 | do |
| 17546 | IFS=$as_save_IFS |
| 17547 | test -z "$as_dir" && as_dir=. |
| 17548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17550 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 17551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17552 | break 2 |
| 17553 | fi |
| 17554 | done |
| 17555 | done |
| 17556 | IFS=$as_save_IFS |
| 17557 | |
| 17558 | fi |
| 17559 | fi |
| 17560 | RANLIB=$ac_cv_prog_RANLIB |
| 17561 | if test -n "$RANLIB"; then |
| 17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 17563 | $as_echo "$RANLIB" >&6; } |
| 17564 | else |
| 17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17566 | $as_echo "no" >&6; } |
| 17567 | fi |
| 17568 | |
| 17569 | |
| 17570 | fi |
| 17571 | if test -z "$ac_cv_prog_RANLIB"; then |
| 17572 | ac_ct_RANLIB=$RANLIB |
| 17573 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 17574 | set dummy ranlib; ac_word=$2 |
| 17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17576 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17577 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 17578 | $as_echo_n "(cached) " >&6 |
| 17579 | else |
| 17580 | if test -n "$ac_ct_RANLIB"; then |
| 17581 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 17582 | else |
| 17583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17584 | for as_dir in $PATH |
| 17585 | do |
| 17586 | IFS=$as_save_IFS |
| 17587 | test -z "$as_dir" && as_dir=. |
| 17588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17590 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 17591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17592 | break 2 |
| 17593 | fi |
| 17594 | done |
| 17595 | done |
| 17596 | IFS=$as_save_IFS |
| 17597 | |
| 17598 | fi |
| 17599 | fi |
| 17600 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 17601 | if test -n "$ac_ct_RANLIB"; then |
| 17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 17603 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 17604 | else |
| 17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17606 | $as_echo "no" >&6; } |
| 17607 | fi |
| 17608 | |
| 17609 | if test "x$ac_ct_RANLIB" = x; then |
| 17610 | RANLIB=":" |
| 17611 | else |
| 17612 | case $cross_compiling:$ac_tool_warned in |
| 17613 | yes:) |
| 17614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17616 | ac_tool_warned=yes ;; |
| 17617 | esac |
| 17618 | RANLIB=$ac_ct_RANLIB |
| 17619 | fi |
| 17620 | else |
| 17621 | RANLIB="$ac_cv_prog_RANLIB" |
| 17622 | fi |
| 17623 | |
| 17624 | |
| 17625 | |
| 17626 | |
| 17627 | if test ! -z "$LT_VERSION" ; then |
| 17628 | LT_CCXX_VERSION="-version-info $LT_VERSION" |
| 17629 | |
| 17630 | fi |
| 17631 | |
| 17632 | |
| 17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genorated automake files" >&5 |
| 17634 | $as_echo_n "checking for genorated automake files... " >&6; } |
| 17635 | if test -z "" ; then |
| 17636 | ost_AUTOMAKE_TEST=Makefile.in |
| 17637 | else |
| 17638 | ost_AUTOMAKE_TEST= |
| 17639 | fi |
| 17640 | if test ! -f $ost_AUTOMAKE_TEST ; then |
| 17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
| 17642 | $as_echo "missing" >&6; } |
| 17643 | automake -a |
| 17644 | else |
| 17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 17646 | $as_echo "found" >&6; } |
| 17647 | fi |
| 17648 | |
| 17649 | |
| 17650 | |
| 17651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 17652 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 17653 | # Check whether --enable-maintainer-mode was given. |
| 17654 | if test "${enable_maintainer_mode+set}" = set; then : |
| 17655 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 17656 | else |
| 17657 | USE_MAINTAINER_MODE=no |
| 17658 | fi |
| 17659 | |
| 17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 17661 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 17662 | if test $USE_MAINTAINER_MODE = yes; then |
| 17663 | MAINTAINER_MODE_TRUE= |
| 17664 | MAINTAINER_MODE_FALSE='#' |
| 17665 | else |
| 17666 | MAINTAINER_MODE_TRUE='#' |
| 17667 | MAINTAINER_MODE_FALSE= |
| 17668 | fi |
| 17669 | |
| 17670 | MAINT=$MAINTAINER_MODE_TRUE |
| 17671 | |
| 17672 | |
| 17673 | if test -z "$MAINT" ; then |
| 17674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maintainer ftp distribution directory" >&5 |
| 17675 | $as_echo_n "checking for maintainer ftp distribution directory... " >&6; } |
| 17676 | if test -d ~ftp/pub ; then |
| 17677 | FTPDIR=~ftp/pub |
| 17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 17679 | $as_echo "found" >&6; } |
| 17680 | else |
| 17681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
| 17682 | $as_echo "missing" >&6; } |
| 17683 | fi |
| 17684 | fi |
| 17685 | |
| 17686 | |
| 17687 | |
| 17688 | WINVERSION="`echo $VERSION | sed 's/\./,/g'`,0" |
| 17689 | |
| 17690 | |
| 17691 | |
| 17692 | |
| 17693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 gnu environment" >&5 |
| 17694 | $as_echo_n "checking for Win32 gnu environment... " >&6; } |
| 17695 | if ${ost_cv_gnuwin32+:} false; then : |
| 17696 | $as_echo_n "(cached) " >&6 |
| 17697 | else |
| 17698 | |
| 17699 | ac_save_CFLAGS="$CFLAGS" |
| 17700 | CFLAGS="" |
| 17701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17702 | /* end confdefs.h. */ |
| 17703 | |
| 17704 | #ifdef __WIN32__ |
| 17705 | #ifdef __MINGW32__ |
| 17706 | #define __RETURN_WIN32__ __MINGW32__ |
| 17707 | #endif |
| 17708 | #ifdef __CYGWIN32__ |
| 17709 | #define __RETURN_WIN32__ __CYGWIN32__ |
| 17710 | #endif |
| 17711 | #endif |
| 17712 | |
| 17713 | int |
| 17714 | main () |
| 17715 | { |
| 17716 | return __RETURN_WIN32__; |
| 17717 | ; |
| 17718 | return 0; |
| 17719 | } |
| 17720 | _ACEOF |
| 17721 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17722 | ost_cv_gnuwin32=yes |
| 17723 | |
| 17724 | else |
| 17725 | ost_cv_gnuwin32=no |
| 17726 | fi |
| 17727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17728 | rm -f conftest* |
| 17729 | CFLAGS="$ac_save_CFLAGS" |
| 17730 | |
| 17731 | fi |
| 17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gnuwin32" >&5 |
| 17733 | $as_echo "$ost_cv_gnuwin32" >&6; } |
| 17734 | |
| 17735 | |
| 17736 | |
| 17737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system meets Posix.1" >&5 |
| 17738 | $as_echo_n "checking whether system meets Posix.1... " >&6; } |
| 17739 | if ${ost_cv_sys_posix1+:} false; then : |
| 17740 | $as_echo_n "(cached) " >&6 |
| 17741 | else |
| 17742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17743 | /* end confdefs.h. */ |
| 17744 | |
| 17745 | #include <sys/types.h> |
| 17746 | #include <unistd.h> |
| 17747 | |
| 17748 | int |
| 17749 | main () |
| 17750 | { |
| 17751 | |
| 17752 | #ifndef _POSIX_VERSION |
| 17753 | fatal |
| 17754 | #endif |
| 17755 | |
| 17756 | ; |
| 17757 | return 0; |
| 17758 | } |
| 17759 | _ACEOF |
| 17760 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17761 | ost_cv_sys_posix1=yes |
| 17762 | else |
| 17763 | ost_cv_sys_posix1=no |
| 17764 | |
| 17765 | fi |
| 17766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17767 | |
| 17768 | fi |
| 17769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_sys_posix1" >&5 |
| 17770 | $as_echo "$ost_cv_sys_posix1" >&6; } |
| 17771 | if test $ost_cv_sys_posix1 = no ; then |
| 17772 | for ac_header in unistd.h |
| 17773 | do : |
| 17774 | ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 17775 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 17776 | cat >>confdefs.h <<_ACEOF |
| 17777 | #define HAVE_UNISTD_H 1 |
| 17778 | _ACEOF |
| 17779 | |
| 17780 | fi |
| 17781 | |
| 17782 | done |
| 17783 | |
| 17784 | else |
| 17785 | |
| 17786 | $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 17787 | |
| 17788 | fi |
| 17789 | for ac_header in features.h |
| 17790 | do : |
| 17791 | ac_fn_cxx_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" |
| 17792 | if test "x$ac_cv_header_features_h" = xyes; then : |
| 17793 | cat >>confdefs.h <<_ACEOF |
| 17794 | #define HAVE_FEATURES_H 1 |
| 17795 | _ACEOF |
| 17796 | |
| 17797 | fi |
| 17798 | |
| 17799 | done |
| 17800 | |
| 17801 | |
| 17802 | |
| 17803 | |
| 17804 | |
| 17805 | for ac_header in fcntl.h sys/fcntl.h |
| 17806 | do : |
| 17807 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17808 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17809 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17810 | cat >>confdefs.h <<_ACEOF |
| 17811 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17812 | _ACEOF |
| 17813 | |
| 17814 | fi |
| 17815 | |
| 17816 | done |
| 17817 | |
| 17818 | |
| 17819 | |
| 17820 | |
| 17821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 17822 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 17823 | if ${ac_cv_header_time+:} false; then : |
| 17824 | $as_echo_n "(cached) " >&6 |
| 17825 | else |
| 17826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17827 | /* end confdefs.h. */ |
| 17828 | #include <sys/types.h> |
| 17829 | #include <sys/time.h> |
| 17830 | #include <time.h> |
| 17831 | |
| 17832 | int |
| 17833 | main () |
| 17834 | { |
| 17835 | if ((struct tm *) 0) |
| 17836 | return 0; |
| 17837 | ; |
| 17838 | return 0; |
| 17839 | } |
| 17840 | _ACEOF |
| 17841 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 17842 | ac_cv_header_time=yes |
| 17843 | else |
| 17844 | ac_cv_header_time=no |
| 17845 | fi |
| 17846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17847 | fi |
| 17848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 17849 | $as_echo "$ac_cv_header_time" >&6; } |
| 17850 | if test $ac_cv_header_time = yes; then |
| 17851 | |
| 17852 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 17853 | |
| 17854 | fi |
| 17855 | |
| 17856 | for ac_header in sys/time.h |
| 17857 | do : |
| 17858 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 17859 | if test "x$ac_cv_header_sys_time_h" = xyes; then : |
| 17860 | cat >>confdefs.h <<_ACEOF |
| 17861 | #define HAVE_SYS_TIME_H 1 |
| 17862 | _ACEOF |
| 17863 | |
| 17864 | fi |
| 17865 | |
| 17866 | done |
| 17867 | |
| 17868 | |
| 17869 | |
| 17870 | |
| 17871 | |
| 17872 | |
| 17873 | for ac_header in sys/types.h bits/wordsize.h |
| 17874 | do : |
| 17875 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17876 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17877 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17878 | cat >>confdefs.h <<_ACEOF |
| 17879 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17880 | _ACEOF |
| 17881 | |
| 17882 | fi |
| 17883 | |
| 17884 | done |
| 17885 | |
| 17886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17887 | /* end confdefs.h. */ |
| 17888 | #include <sys/types.h> |
| 17889 | |
| 17890 | _ACEOF |
| 17891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17892 | $EGREP "u_int8_t" >/dev/null 2>&1; then : |
| 17893 | |
| 17894 | |
| 17895 | $as_echo "#define HAVE_SYS_TYPES_STD 1" >>confdefs.h |
| 17896 | |
| 17897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17898 | /* end confdefs.h. */ |
| 17899 | #include <sys/types.h> |
| 17900 | |
| 17901 | _ACEOF |
| 17902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17903 | $EGREP "u_int64_t" >/dev/null 2>&1; then : |
| 17904 | |
| 17905 | |
| 17906 | $as_echo "#define HAVE_SYS_TYPES_64 1" >>confdefs.h |
| 17907 | |
| 17908 | |
| 17909 | fi |
| 17910 | rm -f conftest* |
| 17911 | |
| 17912 | |
| 17913 | fi |
| 17914 | rm -f conftest* |
| 17915 | |
| 17916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17917 | /* end confdefs.h. */ |
| 17918 | #include <sys/types.h> |
| 17919 | |
| 17920 | _ACEOF |
| 17921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17922 | $EGREP "long long" >/dev/null 2>&1; then : |
| 17923 | |
| 17924 | |
| 17925 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
| 17926 | |
| 17927 | |
| 17928 | fi |
| 17929 | rm -f conftest* |
| 17930 | |
| 17931 | |
| 17932 | |
| 17933 | |
| 17934 | |
| 17935 | |
| 17936 | ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| 17937 | if test "x$ac_cv_header_endian_h" = xyes; then : |
| 17938 | |
| 17939 | |
| 17940 | $as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 17941 | |
| 17942 | |
| 17943 | else |
| 17944 | |
| 17945 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default" |
| 17946 | if test "x$ac_cv_header_sys_isa_defs_h" = xyes; then : |
| 17947 | |
| 17948 | |
| 17949 | $as_echo "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h |
| 17950 | |
| 17951 | |
| 17952 | else |
| 17953 | |
| 17954 | case "$target_cpu" in |
| 17955 | alpha* | i?86) |
| 17956 | |
| 17957 | $as_echo "#define __BYTE_ORDER 1234" >>confdefs.h |
| 17958 | |
| 17959 | ;; |
| 17960 | hppa* | m68* | mips* | powerpc* | sparc*) |
| 17961 | $as_echo "#define __BYTE_ORDER 4321" >>confdefs.h |
| 17962 | |
| 17963 | ;; |
| 17964 | esac |
| 17965 | |
| 17966 | fi |
| 17967 | |
| 17968 | |
| 17969 | |
| 17970 | fi |
| 17971 | |
| 17972 | |
| 17973 | |
| 17974 | |
| 17975 | |
| 17976 | |
| 17977 | for ac_func in sigaction |
| 17978 | do : |
| 17979 | ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 17980 | if test "x$ac_cv_func_sigaction" = xyes; then : |
| 17981 | cat >>confdefs.h <<_ACEOF |
| 17982 | #define HAVE_SIGACTION 1 |
| 17983 | _ACEOF |
| 17984 | |
| 17985 | fi |
| 17986 | done |
| 17987 | |
| 17988 | for ac_func in setitimer |
| 17989 | do : |
| 17990 | ac_fn_cxx_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" |
| 17991 | if test "x$ac_cv_func_setitimer" = xyes; then : |
| 17992 | cat >>confdefs.h <<_ACEOF |
| 17993 | #define HAVE_SETITIMER 1 |
| 17994 | _ACEOF |
| 17995 | |
| 17996 | fi |
| 17997 | done |
| 17998 | |
| 17999 | for ac_func in sigwait |
| 18000 | do : |
| 18001 | ac_fn_cxx_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" |
| 18002 | if test "x$ac_cv_func_sigwait" = xyes; then : |
| 18003 | cat >>confdefs.h <<_ACEOF |
| 18004 | #define HAVE_SIGWAIT 1 |
| 18005 | _ACEOF |
| 18006 | |
| 18007 | fi |
| 18008 | done |
| 18009 | |
| 18010 | for ac_header in bsd/signal.h |
| 18011 | do : |
| 18012 | ac_fn_cxx_check_header_mongrel "$LINENO" "bsd/signal.h" "ac_cv_header_bsd_signal_h" "$ac_includes_default" |
| 18013 | if test "x$ac_cv_header_bsd_signal_h" = xyes; then : |
| 18014 | cat >>confdefs.h <<_ACEOF |
| 18015 | #define HAVE_BSD_SIGNAL_H 1 |
| 18016 | _ACEOF |
| 18017 | |
| 18018 | fi |
| 18019 | |
| 18020 | done |
| 18021 | |
| 18022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 18023 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| 18024 | if ${ac_cv_type_signal+:} false; then : |
| 18025 | $as_echo_n "(cached) " >&6 |
| 18026 | else |
| 18027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18028 | /* end confdefs.h. */ |
| 18029 | #include <sys/types.h> |
| 18030 | #include <signal.h> |
| 18031 | |
| 18032 | int |
| 18033 | main () |
| 18034 | { |
| 18035 | return *(signal (0, 0)) (0) == 1; |
| 18036 | ; |
| 18037 | return 0; |
| 18038 | } |
| 18039 | _ACEOF |
| 18040 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18041 | ac_cv_type_signal=int |
| 18042 | else |
| 18043 | ac_cv_type_signal=void |
| 18044 | fi |
| 18045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18046 | fi |
| 18047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 18048 | $as_echo "$ac_cv_type_signal" >&6; } |
| 18049 | |
| 18050 | cat >>confdefs.h <<_ACEOF |
| 18051 | #define RETSIGTYPE $ac_cv_type_signal |
| 18052 | _ACEOF |
| 18053 | |
| 18054 | |
| 18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait has 2 arguments" >&5 |
| 18056 | $as_echo_n "checking whether sigwait has 2 arguments... " >&6; } |
| 18057 | if ${ac_cv_ost_sigwait2+:} false; then : |
| 18058 | $as_echo_n "(cached) " >&6 |
| 18059 | else |
| 18060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18061 | /* end confdefs.h. */ |
| 18062 | |
| 18063 | #ifndef _POSIX_PTHREAD_SEMANTICS |
| 18064 | #define _POSIX_PTHREAD_SEMANTICS |
| 18065 | #endif |
| 18066 | #ifndef _GNU_SOURCE |
| 18067 | #define _GNU_SOURCE |
| 18068 | #endif |
| 18069 | #include <stdio.h> |
| 18070 | #include <signal.h> |
| 18071 | |
| 18072 | int |
| 18073 | main () |
| 18074 | { |
| 18075 | |
| 18076 | sigset_t sigs; int signo; sigwait(&sigs, &signo); |
| 18077 | ; |
| 18078 | return 0; |
| 18079 | } |
| 18080 | _ACEOF |
| 18081 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18082 | ac_cv_ost_sigwait2=yes |
| 18083 | else |
| 18084 | ac_cv_ost_sigwait2=no |
| 18085 | |
| 18086 | fi |
| 18087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18088 | |
| 18089 | fi |
| 18090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ost_sigwait2" >&5 |
| 18091 | $as_echo "$ac_cv_ost_sigwait2" >&6; } |
| 18092 | if test "$ac_cv_ost_sigwait2" = "yes" ; then |
| 18093 | |
| 18094 | $as_echo "#define HAVE_SIGWAIT2 1" >>confdefs.h |
| 18095 | |
| 18096 | fi |
| 18097 | |
| 18098 | |
| 18099 | |
| 18100 | |
| 18101 | for ac_func in strcasecmp |
| 18102 | do : |
| 18103 | ac_fn_cxx_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 18104 | if test "x$ac_cv_func_strcasecmp" = xyes; then : |
| 18105 | cat >>confdefs.h <<_ACEOF |
| 18106 | #define HAVE_STRCASECMP 1 |
| 18107 | _ACEOF |
| 18108 | |
| 18109 | fi |
| 18110 | done |
| 18111 | |
| 18112 | for ac_header in strings.h alloca.h |
| 18113 | do : |
| 18114 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18115 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 18116 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 18117 | cat >>confdefs.h <<_ACEOF |
| 18118 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18119 | _ACEOF |
| 18120 | |
| 18121 | fi |
| 18122 | |
| 18123 | done |
| 18124 | |
| 18125 | |
| 18126 | |
| 18127 | |
| 18128 | |
| 18129 | ost_cv_libgetopt_long=false |
| 18130 | GETOPT_LIBS="" |
| 18131 | LIBGETOPTOBJS="" |
| 18132 | |
| 18133 | for ac_func in getopt |
| 18134 | do : |
| 18135 | ac_fn_cxx_check_func "$LINENO" "getopt" "ac_cv_func_getopt" |
| 18136 | if test "x$ac_cv_func_getopt" = xyes; then : |
| 18137 | cat >>confdefs.h <<_ACEOF |
| 18138 | #define HAVE_GETOPT 1 |
| 18139 | _ACEOF |
| 18140 | |
| 18141 | |
| 18142 | $as_echo "#define HAVE_GETOPT 1" >>confdefs.h |
| 18143 | |
| 18144 | |
| 18145 | else |
| 18146 | |
| 18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in -lm" >&5 |
| 18148 | $as_echo_n "checking for getopt in -lm... " >&6; } |
| 18149 | if ${ac_cv_lib_m_getopt+:} false; then : |
| 18150 | $as_echo_n "(cached) " >&6 |
| 18151 | else |
| 18152 | ac_check_lib_save_LIBS=$LIBS |
| 18153 | LIBS="-lm $LIBS" |
| 18154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18155 | /* end confdefs.h. */ |
| 18156 | |
| 18157 | /* Override any GCC internal prototype to avoid an error. |
| 18158 | Use char because int might match the return type of a GCC |
| 18159 | builtin and then its argument prototype would still apply. */ |
| 18160 | #ifdef __cplusplus |
| 18161 | extern "C" |
| 18162 | #endif |
| 18163 | char getopt (); |
| 18164 | int |
| 18165 | main () |
| 18166 | { |
| 18167 | return getopt (); |
| 18168 | ; |
| 18169 | return 0; |
| 18170 | } |
| 18171 | _ACEOF |
| 18172 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18173 | ac_cv_lib_m_getopt=yes |
| 18174 | else |
| 18175 | ac_cv_lib_m_getopt=no |
| 18176 | fi |
| 18177 | rm -f core conftest.err conftest.$ac_objext \ |
| 18178 | conftest$ac_exeext conftest.$ac_ext |
| 18179 | LIBS=$ac_check_lib_save_LIBS |
| 18180 | fi |
| 18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_getopt" >&5 |
| 18182 | $as_echo "$ac_cv_lib_m_getopt" >&6; } |
| 18183 | if test "x$ac_cv_lib_m_getopt" = xyes; then : |
| 18184 | |
| 18185 | $as_echo "#define HAVE_GETOPT 1" >>confdefs.h |
| 18186 | |
| 18187 | GETOPT_LIBS="-lm" |
| 18188 | |
| 18189 | fi |
| 18190 | |
| 18191 | |
| 18192 | fi |
| 18193 | done |
| 18194 | |
| 18195 | for ac_header in getopt.h |
| 18196 | do : |
| 18197 | ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 18198 | if test "x$ac_cv_header_getopt_h" = xyes; then : |
| 18199 | cat >>confdefs.h <<_ACEOF |
| 18200 | #define HAVE_GETOPT_H 1 |
| 18201 | _ACEOF |
| 18202 | |
| 18203 | fi |
| 18204 | |
| 18205 | done |
| 18206 | |
| 18207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5 |
| 18208 | $as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; } |
| 18209 | if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then : |
| 18210 | $as_echo_n "(cached) " >&6 |
| 18211 | else |
| 18212 | ac_check_lib_save_LIBS=$LIBS |
| 18213 | LIBS="-lgnugetopt $LIBS" |
| 18214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18215 | /* end confdefs.h. */ |
| 18216 | |
| 18217 | /* Override any GCC internal prototype to avoid an error. |
| 18218 | Use char because int might match the return type of a GCC |
| 18219 | builtin and then its argument prototype would still apply. */ |
| 18220 | #ifdef __cplusplus |
| 18221 | extern "C" |
| 18222 | #endif |
| 18223 | char getopt_long (); |
| 18224 | int |
| 18225 | main () |
| 18226 | { |
| 18227 | return getopt_long (); |
| 18228 | ; |
| 18229 | return 0; |
| 18230 | } |
| 18231 | _ACEOF |
| 18232 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18233 | ac_cv_lib_gnugetopt_getopt_long=yes |
| 18234 | else |
| 18235 | ac_cv_lib_gnugetopt_getopt_long=no |
| 18236 | fi |
| 18237 | rm -f core conftest.err conftest.$ac_objext \ |
| 18238 | conftest$ac_exeext conftest.$ac_ext |
| 18239 | LIBS=$ac_check_lib_save_LIBS |
| 18240 | fi |
| 18241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 18242 | $as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; } |
| 18243 | if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then : |
| 18244 | |
| 18245 | |
| 18246 | $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h |
| 18247 | |
| 18248 | GETOPT_LIBS="-lgnugetopt $GETOPT_LIBS" |
| 18249 | LIBS="$LIBS -lgnugetopt" |
| 18250 | else |
| 18251 | |
| 18252 | for ac_func in getopt_long |
| 18253 | do : |
| 18254 | ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" |
| 18255 | if test "x$ac_cv_func_getopt_long" = xyes; then : |
| 18256 | cat >>confdefs.h <<_ACEOF |
| 18257 | #define HAVE_GETOPT_LONG 1 |
| 18258 | _ACEOF |
| 18259 | |
| 18260 | $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h |
| 18261 | |
| 18262 | |
| 18263 | else |
| 18264 | |
| 18265 | LIBGETOPTOBJS="getopt.c getopt1.c" |
| 18266 | |
| 18267 | fi |
| 18268 | done |
| 18269 | |
| 18270 | |
| 18271 | fi |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | DYN_LOADER='' |
| 18278 | ost_cv_dynloader=no |
| 18279 | |
| 18280 | for ac_header in dlfcn.h |
| 18281 | do : |
| 18282 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 18283 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 18284 | cat >>confdefs.h <<_ACEOF |
| 18285 | #define HAVE_DLFCN_H 1 |
| 18286 | _ACEOF |
| 18287 | |
| 18288 | fi |
| 18289 | |
| 18290 | done |
| 18291 | |
| 18292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 18293 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 18294 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 18295 | $as_echo_n "(cached) " >&6 |
| 18296 | else |
| 18297 | ac_check_lib_save_LIBS=$LIBS |
| 18298 | LIBS="-ldld $LIBS" |
| 18299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18300 | /* end confdefs.h. */ |
| 18301 | |
| 18302 | /* Override any GCC internal prototype to avoid an error. |
| 18303 | Use char because int might match the return type of a GCC |
| 18304 | builtin and then its argument prototype would still apply. */ |
| 18305 | #ifdef __cplusplus |
| 18306 | extern "C" |
| 18307 | #endif |
| 18308 | char shl_load (); |
| 18309 | int |
| 18310 | main () |
| 18311 | { |
| 18312 | return shl_load (); |
| 18313 | ; |
| 18314 | return 0; |
| 18315 | } |
| 18316 | _ACEOF |
| 18317 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18318 | ac_cv_lib_dld_shl_load=yes |
| 18319 | else |
| 18320 | ac_cv_lib_dld_shl_load=no |
| 18321 | fi |
| 18322 | rm -f core conftest.err conftest.$ac_objext \ |
| 18323 | conftest$ac_exeext conftest.$ac_ext |
| 18324 | LIBS=$ac_check_lib_save_LIBS |
| 18325 | fi |
| 18326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 18327 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 18328 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 18329 | DYN_LOADER=-ldld, |
| 18330 | |
| 18331 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 18332 | |
| 18333 | fi |
| 18334 | |
| 18335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 18336 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 18337 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 18338 | $as_echo_n "(cached) " >&6 |
| 18339 | else |
| 18340 | ac_check_lib_save_LIBS=$LIBS |
| 18341 | LIBS="-ldl $LIBS" |
| 18342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18343 | /* end confdefs.h. */ |
| 18344 | |
| 18345 | /* Override any GCC internal prototype to avoid an error. |
| 18346 | Use char because int might match the return type of a GCC |
| 18347 | builtin and then its argument prototype would still apply. */ |
| 18348 | #ifdef __cplusplus |
| 18349 | extern "C" |
| 18350 | #endif |
| 18351 | char dlopen (); |
| 18352 | int |
| 18353 | main () |
| 18354 | { |
| 18355 | return dlopen (); |
| 18356 | ; |
| 18357 | return 0; |
| 18358 | } |
| 18359 | _ACEOF |
| 18360 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18361 | ac_cv_lib_dl_dlopen=yes |
| 18362 | else |
| 18363 | ac_cv_lib_dl_dlopen=no |
| 18364 | fi |
| 18365 | rm -f core conftest.err conftest.$ac_objext \ |
| 18366 | conftest$ac_exeext conftest.$ac_ext |
| 18367 | LIBS=$ac_check_lib_save_LIBS |
| 18368 | fi |
| 18369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18370 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 18371 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 18372 | DYN_LOADER=-ldl |
| 18373 | fi |
| 18374 | |
| 18375 | if test ! -z "$DYN_LOADER" ; then |
| 18376 | ost_cv_dynloader=yes |
| 18377 | |
| 18378 | $as_echo "#define HAVE_MODULES 1" >>confdefs.h |
| 18379 | |
| 18380 | else |
| 18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
| 18382 | $as_echo_n "checking for dlopen in -lc... " >&6; } |
| 18383 | if ${ac_cv_lib_c_dlopen+:} false; then : |
| 18384 | $as_echo_n "(cached) " >&6 |
| 18385 | else |
| 18386 | ac_check_lib_save_LIBS=$LIBS |
| 18387 | LIBS="-lc $LIBS" |
| 18388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18389 | /* end confdefs.h. */ |
| 18390 | |
| 18391 | /* Override any GCC internal prototype to avoid an error. |
| 18392 | Use char because int might match the return type of a GCC |
| 18393 | builtin and then its argument prototype would still apply. */ |
| 18394 | #ifdef __cplusplus |
| 18395 | extern "C" |
| 18396 | #endif |
| 18397 | char dlopen (); |
| 18398 | int |
| 18399 | main () |
| 18400 | { |
| 18401 | return dlopen (); |
| 18402 | ; |
| 18403 | return 0; |
| 18404 | } |
| 18405 | _ACEOF |
| 18406 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18407 | ac_cv_lib_c_dlopen=yes |
| 18408 | else |
| 18409 | ac_cv_lib_c_dlopen=no |
| 18410 | fi |
| 18411 | rm -f core conftest.err conftest.$ac_objext \ |
| 18412 | conftest$ac_exeext conftest.$ac_ext |
| 18413 | LIBS=$ac_check_lib_save_LIBS |
| 18414 | fi |
| 18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
| 18416 | $as_echo "$ac_cv_lib_c_dlopen" >&6; } |
| 18417 | if test "x$ac_cv_lib_c_dlopen" = xyes; then : |
| 18418 | |
| 18419 | ost_cv_dynloader=yes |
| 18420 | $as_echo "#define HAVE_MODULES 1" >>confdefs.h |
| 18421 | |
| 18422 | |
| 18423 | else |
| 18424 | |
| 18425 | for ac_header in mach-o/dyld.h |
| 18426 | do : |
| 18427 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" |
| 18428 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
| 18429 | cat >>confdefs.h <<_ACEOF |
| 18430 | #define HAVE_MACH_O_DYLD_H 1 |
| 18431 | _ACEOF |
| 18432 | |
| 18433 | ost_cv_dynloader=yes |
| 18434 | $as_echo "#define HAVE_MODULES 1" >>confdefs.h |
| 18435 | |
| 18436 | |
| 18437 | $as_echo "#define HAVE_MACH_DYLD 1" >>confdefs.h |
| 18438 | |
| 18439 | |
| 18440 | fi |
| 18441 | |
| 18442 | done |
| 18443 | |
| 18444 | |
| 18445 | fi |
| 18446 | |
| 18447 | fi |
| 18448 | |
| 18449 | |
| 18450 | |
| 18451 | |
| 18452 | |
| 18453 | THREAD_FLAGS="" |
| 18454 | THREAD_LIBS="" |
| 18455 | ost_cv_thread_library="none" |
| 18456 | ost_cv_rt_library="none" |
| 18457 | ost_cv_cxx_mode=false |
| 18458 | |
| 18459 | |
| 18460 | # Check whether --with-pthread was given. |
| 18461 | if test "${with_pthread+set}" = set; then : |
| 18462 | withval=$with_pthread; if test "$withval" != "" ; then ost_cv_thread_library=$withval ; fi |
| 18463 | |
| 18464 | fi |
| 18465 | |
| 18466 | |
| 18467 | |
| 18468 | # Check whether --with-linuxthreads was given. |
| 18469 | if test "${with_linuxthreads+set}" = set; then : |
| 18470 | withval=$with_linuxthreads; |
| 18471 | ost_cv_thread_library=lthread |
| 18472 | |
| 18473 | $as_echo "#define WITH_LINUXTHREADS 1" >>confdefs.h |
| 18474 | |
| 18475 | if test "$withval" != "yes" ; then |
| 18476 | THREAD_FLAGS="-D__USE_GNU -D__USE_UNIX98 -I$withval $THREAD_FLAGS" |
| 18477 | CFLAGS="-D__USE_GNU -D__USE_UNIX98 -I$withval $CFLAGS" |
| 18478 | else |
| 18479 | THREAD_FLAGS="-D__USE_GNU -D__USE_UNIX98 -I/usr/local/include/pthread/linuxthreads $THREAD_FLAGS" |
| 18480 | CFLAGS="-D__USE_GNU -D__USE_UNIX98 -I/usr/local/include/pthread/linuxthreads $CFLAGS" |
| 18481 | fi |
| 18482 | |
| 18483 | fi |
| 18484 | |
| 18485 | |
| 18486 | for ac_header in pthread.h |
| 18487 | do : |
| 18488 | ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 18489 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 18490 | cat >>confdefs.h <<_ACEOF |
| 18491 | #define HAVE_PTHREAD_H 1 |
| 18492 | _ACEOF |
| 18493 | |
| 18494 | |
| 18495 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 18496 | |
| 18497 | ost_cv_posix_threads=yes |
| 18498 | else |
| 18499 | ost_cv_posix_threads=no |
| 18500 | fi |
| 18501 | |
| 18502 | done |
| 18503 | |
| 18504 | |
| 18505 | if test $ost_cv_posix_threads = no ; then |
| 18506 | |
| 18507 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 18508 | ac_ext=cpp |
| 18509 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18513 | |
| 18514 | CXXFLAGS="$CXXFLAGS -pthread" |
| 18515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18516 | /* end confdefs.h. */ |
| 18517 | #include <pthread.h> |
| 18518 | int |
| 18519 | main () |
| 18520 | { |
| 18521 | |
| 18522 | ; |
| 18523 | return 0; |
| 18524 | } |
| 18525 | _ACEOF |
| 18526 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18527 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 18528 | |
| 18529 | ost_cv_cxx_mode=true |
| 18530 | ost_cv_posix_threads=yes |
| 18531 | fi |
| 18532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18533 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 18534 | ac_ext=cpp |
| 18535 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18536 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18537 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18538 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18539 | |
| 18540 | fi |
| 18541 | |
| 18542 | |
| 18543 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 18544 | CXXFLAGS="" |
| 18545 | ac_ext=cpp |
| 18546 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18550 | |
| 18551 | |
| 18552 | ost_cv_posix_atomic=no |
| 18553 | for ac_header in sys/atomic_op.h |
| 18554 | do : |
| 18555 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" |
| 18556 | if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : |
| 18557 | cat >>confdefs.h <<_ACEOF |
| 18558 | #define HAVE_SYS_ATOMIC_OP_H 1 |
| 18559 | _ACEOF |
| 18560 | |
| 18561 | |
| 18562 | $as_echo "#define HAVE_ATOMIC_AIX 1" >>confdefs.h |
| 18563 | |
| 18564 | |
| 18565 | fi |
| 18566 | |
| 18567 | done |
| 18568 | |
| 18569 | for ac_header in sys/atomic.h |
| 18570 | do : |
| 18571 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/atomic.h" "ac_cv_header_sys_atomic_h" "$ac_includes_default" |
| 18572 | if test "x$ac_cv_header_sys_atomic_h" = xyes; then : |
| 18573 | cat >>confdefs.h <<_ACEOF |
| 18574 | #define HAVE_SYS_ATOMIC_H 1 |
| 18575 | _ACEOF |
| 18576 | ost_cv_posix_sys_atomic=yes |
| 18577 | else |
| 18578 | ost_cv_posix_sys_atomic=no |
| 18579 | fi |
| 18580 | |
| 18581 | done |
| 18582 | |
| 18583 | if test $ost_cv_posix_sys_atomic = yes ; then |
| 18584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_t" >&5 |
| 18585 | $as_echo_n "checking for atomic_t... " >&6; } |
| 18586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18587 | /* end confdefs.h. */ |
| 18588 | #include <sys/atomic.h> |
| 18589 | int |
| 18590 | main () |
| 18591 | { |
| 18592 | |
| 18593 | atomic_t at; at.counter = 1; |
| 18594 | atomic_dec_and_test(&at); |
| 18595 | atomic_sub(4, &at); |
| 18596 | atomic_inc(&at); |
| 18597 | atomic_add(3, &at); |
| 18598 | |
| 18599 | ; |
| 18600 | return 0; |
| 18601 | } |
| 18602 | _ACEOF |
| 18603 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18604 | |
| 18605 | ost_cv_posix_atomic=yes |
| 18606 | |
| 18607 | $as_echo "#define HAVE_WORKING_SYS_ATOMIC_H 1" >>confdefs.h |
| 18608 | |
| 18609 | else |
| 18610 | ost_cv_posix_atomic=no |
| 18611 | fi |
| 18612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_posix_atomic" >&5 |
| 18614 | $as_echo "$ost_cv_posix_atomic" >&6; } |
| 18615 | fi |
| 18616 | |
| 18617 | if test 0 = 1 ; then |
| 18618 | for ac_header in bits/atomicity.h |
| 18619 | do : |
| 18620 | ac_fn_cxx_check_header_mongrel "$LINENO" "bits/atomicity.h" "ac_cv_header_bits_atomicity_h" "$ac_includes_default" |
| 18621 | if test "x$ac_cv_header_bits_atomicity_h" = xyes; then : |
| 18622 | cat >>confdefs.h <<_ACEOF |
| 18623 | #define HAVE_BITS_ATOMICITY_H 1 |
| 18624 | _ACEOF |
| 18625 | ost_cv_bits_atomicity=yes |
| 18626 | else |
| 18627 | ost_cv_bits_atomicity=no |
| 18628 | fi |
| 18629 | |
| 18630 | done |
| 18631 | |
| 18632 | if test $ost_cv_bits_atomicity = yes ; then |
| 18633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Atomic_word" >&5 |
| 18634 | $as_echo_n "checking for _Atomic_word... " >&6; } |
| 18635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18636 | /* end confdefs.h. */ |
| 18637 | #include <bits/atomicity.h> |
| 18638 | int |
| 18639 | main () |
| 18640 | { |
| 18641 | |
| 18642 | _Atomic_word i = 0; |
| 18643 | __atomic_add(&i, 1); |
| 18644 | __exchange_and_add(&i, 1); |
| 18645 | |
| 18646 | ; |
| 18647 | return 0; |
| 18648 | } |
| 18649 | _ACEOF |
| 18650 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18651 | ost_cv_gcc_atomic=yes |
| 18652 | |
| 18653 | $as_echo "#define HAVE_GCC_BITS_ATOMIC 1" >>confdefs.h |
| 18654 | |
| 18655 | else |
| 18656 | ost_cv_gcc_atomic=no |
| 18657 | fi |
| 18658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gcc_atomic" >&5 |
| 18660 | $as_echo "$ost_cv_gcc_atomic" >&6; } |
| 18661 | |
| 18662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gnu_cxx::_Atomic_word" >&5 |
| 18663 | $as_echo_n "checking for __gnu_cxx::_Atomic_word... " >&6; } |
| 18664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18665 | /* end confdefs.h. */ |
| 18666 | #include <bits/atomicity.h> |
| 18667 | int |
| 18668 | main () |
| 18669 | { |
| 18670 | |
| 18671 | using namespace __gnu_cxx; |
| 18672 | _Atomic_word i = 0; |
| 18673 | __atomic_add(&i, 1); |
| 18674 | __exchange_and_add(&i, 1); |
| 18675 | |
| 18676 | ; |
| 18677 | return 0; |
| 18678 | } |
| 18679 | _ACEOF |
| 18680 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 18681 | |
| 18682 | ost_cv_gcc_cxx_atomic=yes |
| 18683 | |
| 18684 | $as_echo "#define HAVE_GCC_CXX_BITS_ATOMIC 1" >>confdefs.h |
| 18685 | |
| 18686 | |
| 18687 | else |
| 18688 | |
| 18689 | ost_cv_gcc_cxx_atomic=no |
| 18690 | |
| 18691 | fi |
| 18692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gcc_cxx_atomic" >&5 |
| 18694 | $as_echo "$ost_cv_gcc_cxx_atomic" >&6; } |
| 18695 | fi |
| 18696 | fi |
| 18697 | |
| 18698 | ac_ext=cpp |
| 18699 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18703 | |
| 18704 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 18705 | |
| 18706 | if test "$target" = NONE ; then |
| 18707 | targetdir="" |
| 18708 | else |
| 18709 | targetdir="$target" |
| 18710 | fi |
| 18711 | |
| 18712 | for ac_header in thread.h |
| 18713 | do : |
| 18714 | ac_fn_cxx_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default" |
| 18715 | if test "x$ac_cv_header_thread_h" = xyes; then : |
| 18716 | cat >>confdefs.h <<_ACEOF |
| 18717 | #define HAVE_THREAD_H 1 |
| 18718 | _ACEOF |
| 18719 | |
| 18720 | fi |
| 18721 | |
| 18722 | done |
| 18723 | |
| 18724 | if test "$prefix" = NONE ; then |
| 18725 | thrprefix="/usr/$targetdir/include" |
| 18726 | if test -d /usr/$targetdir/sys-include ; then |
| 18727 | thrprefix="$prefix/$targetdir/sys-include" ; fi |
| 18728 | else |
| 18729 | thrprefix="$prefix/$targetdir/include" |
| 18730 | if test -d "$prefix/$targetdir/sys-include" ; then |
| 18731 | thrprefix="$prefix/$targetdir/sys-include" ; fi |
| 18732 | fi |
| 18733 | |
| 18734 | if test ! -f $thrprefix/thread.h ; then |
| 18735 | thrprefix=/usr/include |
| 18736 | fi |
| 18737 | |
| 18738 | |
| 18739 | |
| 18740 | if test $ost_cv_posix_threads = yes ; then |
| 18741 | if test "$ost_cv_thread_library" = "none" ; then |
| 18742 | ost_cv_thread_flags="" |
| 18743 | for flags in -kthread -pthread -mthreads -pthreads -Kthread --threadsafe -mt ; do |
| 18744 | |
| 18745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts $flags" >&5 |
| 18746 | $as_echo_n "checking whether ${CC-cc} accepts $flags... " >&6; } |
| 18747 | echo 'void f(){}' >conftest.c |
| 18748 | if test -z "`${CC-cc} $flags -c conftest.c 2>&1`"; then |
| 18749 | ost_cv_thread_flags=$flags |
| 18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18751 | $as_echo "yes" >&6; } |
| 18752 | else |
| 18753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18754 | $as_echo "no" >&6; } |
| 18755 | fi |
| 18756 | rm -f conftest* |
| 18757 | if test ! -z "$ost_cv_thread_flags" ; then break ; fi |
| 18758 | done |
| 18759 | # if test "$ost_cv_prog_cc_pthread" = "no" ; then |
| 18760 | # AC_CACHE_CHECK(whether ${CC-cc} accepts -mthreads, |
| 18761 | # ost_cv_prog_cc_mthreads, |
| 18762 | # [echo 'void f(){}' >conftest.c |
| 18763 | # if test -z "`${CC-cc} -mthreads -c conftest.c 2>&1`"; then |
| 18764 | # ost_cv_prog_cc_mthreads=yes |
| 18765 | # else |
| 18766 | # ost_cv_prog_cc_mthreads=no |
| 18767 | # fi |
| 18768 | # rm -f conftest* |
| 18769 | # ]) |
| 18770 | # fi |
| 18771 | ost_cv_thread_library=none |
| 18772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 |
| 18773 | $as_echo_n "checking for pthread_self in -lpthread... " >&6; } |
| 18774 | if ${ac_cv_lib_pthread_pthread_self+:} false; then : |
| 18775 | $as_echo_n "(cached) " >&6 |
| 18776 | else |
| 18777 | ac_check_lib_save_LIBS=$LIBS |
| 18778 | LIBS="-lpthread $LIBS" |
| 18779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18780 | /* end confdefs.h. */ |
| 18781 | |
| 18782 | /* Override any GCC internal prototype to avoid an error. |
| 18783 | Use char because int might match the return type of a GCC |
| 18784 | builtin and then its argument prototype would still apply. */ |
| 18785 | #ifdef __cplusplus |
| 18786 | extern "C" |
| 18787 | #endif |
| 18788 | char pthread_self (); |
| 18789 | int |
| 18790 | main () |
| 18791 | { |
| 18792 | return pthread_self (); |
| 18793 | ; |
| 18794 | return 0; |
| 18795 | } |
| 18796 | _ACEOF |
| 18797 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18798 | ac_cv_lib_pthread_pthread_self=yes |
| 18799 | else |
| 18800 | ac_cv_lib_pthread_pthread_self=no |
| 18801 | fi |
| 18802 | rm -f core conftest.err conftest.$ac_objext \ |
| 18803 | conftest$ac_exeext conftest.$ac_ext |
| 18804 | LIBS=$ac_check_lib_save_LIBS |
| 18805 | fi |
| 18806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 |
| 18807 | $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } |
| 18808 | if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then : |
| 18809 | ost_cv_thread_library=pthread |
| 18810 | else |
| 18811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc_r" >&5 |
| 18812 | $as_echo_n "checking for pthread_self in -lc_r... " >&6; } |
| 18813 | if ${ac_cv_lib_c_r_pthread_self+:} false; then : |
| 18814 | $as_echo_n "(cached) " >&6 |
| 18815 | else |
| 18816 | ac_check_lib_save_LIBS=$LIBS |
| 18817 | LIBS="-lc_r $LIBS" |
| 18818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18819 | /* end confdefs.h. */ |
| 18820 | |
| 18821 | /* Override any GCC internal prototype to avoid an error. |
| 18822 | Use char because int might match the return type of a GCC |
| 18823 | builtin and then its argument prototype would still apply. */ |
| 18824 | #ifdef __cplusplus |
| 18825 | extern "C" |
| 18826 | #endif |
| 18827 | char pthread_self (); |
| 18828 | int |
| 18829 | main () |
| 18830 | { |
| 18831 | return pthread_self (); |
| 18832 | ; |
| 18833 | return 0; |
| 18834 | } |
| 18835 | _ACEOF |
| 18836 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18837 | ac_cv_lib_c_r_pthread_self=yes |
| 18838 | else |
| 18839 | ac_cv_lib_c_r_pthread_self=no |
| 18840 | fi |
| 18841 | rm -f core conftest.err conftest.$ac_objext \ |
| 18842 | conftest$ac_exeext conftest.$ac_ext |
| 18843 | LIBS=$ac_check_lib_save_LIBS |
| 18844 | fi |
| 18845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_self" >&5 |
| 18846 | $as_echo "$ac_cv_lib_c_r_pthread_self" >&6; } |
| 18847 | if test "x$ac_cv_lib_c_r_pthread_self" = xyes; then : |
| 18848 | ost_cv_thread_library=c_r |
| 18849 | else |
| 18850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 18851 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 18852 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 18853 | $as_echo_n "(cached) " >&6 |
| 18854 | else |
| 18855 | ac_check_lib_save_LIBS=$LIBS |
| 18856 | LIBS="-lpthread $LIBS" |
| 18857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18858 | /* end confdefs.h. */ |
| 18859 | |
| 18860 | /* Override any GCC internal prototype to avoid an error. |
| 18861 | Use char because int might match the return type of a GCC |
| 18862 | builtin and then its argument prototype would still apply. */ |
| 18863 | #ifdef __cplusplus |
| 18864 | extern "C" |
| 18865 | #endif |
| 18866 | char pthread_kill (); |
| 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | return pthread_kill (); |
| 18871 | ; |
| 18872 | return 0; |
| 18873 | } |
| 18874 | _ACEOF |
| 18875 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18876 | ac_cv_lib_pthread_pthread_kill=yes |
| 18877 | else |
| 18878 | ac_cv_lib_pthread_pthread_kill=no |
| 18879 | fi |
| 18880 | rm -f core conftest.err conftest.$ac_objext \ |
| 18881 | conftest$ac_exeext conftest.$ac_ext |
| 18882 | LIBS=$ac_check_lib_save_LIBS |
| 18883 | fi |
| 18884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 18885 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 18886 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 18887 | ost_cv_thread_library=pthread |
| 18888 | else |
| 18889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthreads" >&5 |
| 18890 | $as_echo_n "checking for pthread_self in -lpthreads... " >&6; } |
| 18891 | if ${ac_cv_lib_pthreads_pthread_self+:} false; then : |
| 18892 | $as_echo_n "(cached) " >&6 |
| 18893 | else |
| 18894 | ac_check_lib_save_LIBS=$LIBS |
| 18895 | LIBS="-lpthreads $LIBS" |
| 18896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18897 | /* end confdefs.h. */ |
| 18898 | |
| 18899 | /* Override any GCC internal prototype to avoid an error. |
| 18900 | Use char because int might match the return type of a GCC |
| 18901 | builtin and then its argument prototype would still apply. */ |
| 18902 | #ifdef __cplusplus |
| 18903 | extern "C" |
| 18904 | #endif |
| 18905 | char pthread_self (); |
| 18906 | int |
| 18907 | main () |
| 18908 | { |
| 18909 | return pthread_self (); |
| 18910 | ; |
| 18911 | return 0; |
| 18912 | } |
| 18913 | _ACEOF |
| 18914 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18915 | ac_cv_lib_pthreads_pthread_self=yes |
| 18916 | else |
| 18917 | ac_cv_lib_pthreads_pthread_self=no |
| 18918 | fi |
| 18919 | rm -f core conftest.err conftest.$ac_objext \ |
| 18920 | conftest$ac_exeext conftest.$ac_ext |
| 18921 | LIBS=$ac_check_lib_save_LIBS |
| 18922 | fi |
| 18923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_self" >&5 |
| 18924 | $as_echo "$ac_cv_lib_pthreads_pthread_self" >&6; } |
| 18925 | if test "x$ac_cv_lib_pthreads_pthread_self" = xyes; then : |
| 18926 | ost_cv_thread_library=pthreads |
| 18927 | else |
| 18928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lthread" >&5 |
| 18929 | $as_echo_n "checking for pthread_self in -lthread... " >&6; } |
| 18930 | if ${ac_cv_lib_thread_pthread_self+:} false; then : |
| 18931 | $as_echo_n "(cached) " >&6 |
| 18932 | else |
| 18933 | ac_check_lib_save_LIBS=$LIBS |
| 18934 | LIBS="-lthread $LIBS" |
| 18935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18936 | /* end confdefs.h. */ |
| 18937 | |
| 18938 | /* Override any GCC internal prototype to avoid an error. |
| 18939 | Use char because int might match the return type of a GCC |
| 18940 | builtin and then its argument prototype would still apply. */ |
| 18941 | #ifdef __cplusplus |
| 18942 | extern "C" |
| 18943 | #endif |
| 18944 | char pthread_self (); |
| 18945 | int |
| 18946 | main () |
| 18947 | { |
| 18948 | return pthread_self (); |
| 18949 | ; |
| 18950 | return 0; |
| 18951 | } |
| 18952 | _ACEOF |
| 18953 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18954 | ac_cv_lib_thread_pthread_self=yes |
| 18955 | else |
| 18956 | ac_cv_lib_thread_pthread_self=no |
| 18957 | fi |
| 18958 | rm -f core conftest.err conftest.$ac_objext \ |
| 18959 | conftest$ac_exeext conftest.$ac_ext |
| 18960 | LIBS=$ac_check_lib_save_LIBS |
| 18961 | fi |
| 18962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_pthread_self" >&5 |
| 18963 | $as_echo "$ac_cv_lib_thread_pthread_self" >&6; } |
| 18964 | if test "x$ac_cv_lib_thread_pthread_self" = xyes; then : |
| 18965 | ost_cv_thread_library=thread |
| 18966 | fi |
| 18967 | |
| 18968 | fi |
| 18969 | |
| 18970 | fi |
| 18971 | |
| 18972 | fi |
| 18973 | |
| 18974 | fi |
| 18975 | |
| 18976 | |
| 18977 | if test $ost_cv_thread_library = none ; then |
| 18978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lgthreads" >&5 |
| 18979 | $as_echo_n "checking for pthread_self in -lgthreads... " >&6; } |
| 18980 | if ${ac_cv_lib_gthreads_pthread_self+:} false; then : |
| 18981 | $as_echo_n "(cached) " >&6 |
| 18982 | else |
| 18983 | ac_check_lib_save_LIBS=$LIBS |
| 18984 | LIBS="-lgthreads $LIBS" |
| 18985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18986 | /* end confdefs.h. */ |
| 18987 | |
| 18988 | /* Override any GCC internal prototype to avoid an error. |
| 18989 | Use char because int might match the return type of a GCC |
| 18990 | builtin and then its argument prototype would still apply. */ |
| 18991 | #ifdef __cplusplus |
| 18992 | extern "C" |
| 18993 | #endif |
| 18994 | char pthread_self (); |
| 18995 | int |
| 18996 | main () |
| 18997 | { |
| 18998 | return pthread_self (); |
| 18999 | ; |
| 19000 | return 0; |
| 19001 | } |
| 19002 | _ACEOF |
| 19003 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19004 | ac_cv_lib_gthreads_pthread_self=yes |
| 19005 | else |
| 19006 | ac_cv_lib_gthreads_pthread_self=no |
| 19007 | fi |
| 19008 | rm -f core conftest.err conftest.$ac_objext \ |
| 19009 | conftest$ac_exeext conftest.$ac_ext |
| 19010 | LIBS=$ac_check_lib_save_LIBS |
| 19011 | fi |
| 19012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthreads_pthread_self" >&5 |
| 19013 | $as_echo "$ac_cv_lib_gthreads_pthread_self" >&6; } |
| 19014 | if test "x$ac_cv_lib_gthreads_pthread_self" = xyes; then : |
| 19015 | |
| 19016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lmalloc" >&5 |
| 19017 | $as_echo_n "checking for malloc in -lmalloc... " >&6; } |
| 19018 | if ${ac_cv_lib_malloc_malloc+:} false; then : |
| 19019 | $as_echo_n "(cached) " >&6 |
| 19020 | else |
| 19021 | ac_check_lib_save_LIBS=$LIBS |
| 19022 | LIBS="-lmalloc $LIBS" |
| 19023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19024 | /* end confdefs.h. */ |
| 19025 | |
| 19026 | /* Override any GCC internal prototype to avoid an error. |
| 19027 | Use char because int might match the return type of a GCC |
| 19028 | builtin and then its argument prototype would still apply. */ |
| 19029 | #ifdef __cplusplus |
| 19030 | extern "C" |
| 19031 | #endif |
| 19032 | char malloc (); |
| 19033 | int |
| 19034 | main () |
| 19035 | { |
| 19036 | return malloc (); |
| 19037 | ; |
| 19038 | return 0; |
| 19039 | } |
| 19040 | _ACEOF |
| 19041 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19042 | ac_cv_lib_malloc_malloc=yes |
| 19043 | else |
| 19044 | ac_cv_lib_malloc_malloc=no |
| 19045 | fi |
| 19046 | rm -f core conftest.err conftest.$ac_objext \ |
| 19047 | conftest$ac_exeext conftest.$ac_ext |
| 19048 | LIBS=$ac_check_lib_save_LIBS |
| 19049 | fi |
| 19050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_malloc_malloc" >&5 |
| 19051 | $as_echo "$ac_cv_lib_malloc_malloc" >&6; } |
| 19052 | if test "x$ac_cv_lib_malloc_malloc" = xyes; then : |
| 19053 | cat >>confdefs.h <<_ACEOF |
| 19054 | #define HAVE_LIBMALLOC 1 |
| 19055 | _ACEOF |
| 19056 | |
| 19057 | LIBS="-lmalloc $LIBS" |
| 19058 | |
| 19059 | fi |
| 19060 | |
| 19061 | ost_cv_thread_library=gthreads |
| 19062 | fi |
| 19063 | |
| 19064 | fi |
| 19065 | if test $ost_cv_thread_library = none ; then |
| 19066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lcma" >&5 |
| 19067 | $as_echo_n "checking for pthread_self in -lcma... " >&6; } |
| 19068 | if ${ac_cv_lib_cma_pthread_self+:} false; then : |
| 19069 | $as_echo_n "(cached) " >&6 |
| 19070 | else |
| 19071 | ac_check_lib_save_LIBS=$LIBS |
| 19072 | LIBS="-lcma $LIBS" |
| 19073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19074 | /* end confdefs.h. */ |
| 19075 | |
| 19076 | /* Override any GCC internal prototype to avoid an error. |
| 19077 | Use char because int might match the return type of a GCC |
| 19078 | builtin and then its argument prototype would still apply. */ |
| 19079 | #ifdef __cplusplus |
| 19080 | extern "C" |
| 19081 | #endif |
| 19082 | char pthread_self (); |
| 19083 | int |
| 19084 | main () |
| 19085 | { |
| 19086 | return pthread_self (); |
| 19087 | ; |
| 19088 | return 0; |
| 19089 | } |
| 19090 | _ACEOF |
| 19091 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19092 | ac_cv_lib_cma_pthread_self=yes |
| 19093 | else |
| 19094 | ac_cv_lib_cma_pthread_self=no |
| 19095 | fi |
| 19096 | rm -f core conftest.err conftest.$ac_objext \ |
| 19097 | conftest$ac_exeext conftest.$ac_ext |
| 19098 | LIBS=$ac_check_lib_save_LIBS |
| 19099 | fi |
| 19100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_self" >&5 |
| 19101 | $as_echo "$ac_cv_lib_cma_pthread_self" >&6; } |
| 19102 | if test "x$ac_cv_lib_cma_pthread_self" = xyes; then : |
| 19103 | ost_cv_thread_library=cma |
| 19104 | fi |
| 19105 | |
| 19106 | fi |
| 19107 | |
| 19108 | if test $ost_cv_thread_library = none ; then |
| 19109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 |
| 19110 | $as_echo_n "checking for pthread_self in -lc... " >&6; } |
| 19111 | if ${ac_cv_lib_c_pthread_self+:} false; then : |
| 19112 | $as_echo_n "(cached) " >&6 |
| 19113 | else |
| 19114 | ac_check_lib_save_LIBS=$LIBS |
| 19115 | LIBS="-lc $LIBS" |
| 19116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19117 | /* end confdefs.h. */ |
| 19118 | |
| 19119 | /* Override any GCC internal prototype to avoid an error. |
| 19120 | Use char because int might match the return type of a GCC |
| 19121 | builtin and then its argument prototype would still apply. */ |
| 19122 | #ifdef __cplusplus |
| 19123 | extern "C" |
| 19124 | #endif |
| 19125 | char pthread_self (); |
| 19126 | int |
| 19127 | main () |
| 19128 | { |
| 19129 | return pthread_self (); |
| 19130 | ; |
| 19131 | return 0; |
| 19132 | } |
| 19133 | _ACEOF |
| 19134 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19135 | ac_cv_lib_c_pthread_self=yes |
| 19136 | else |
| 19137 | ac_cv_lib_c_pthread_self=no |
| 19138 | fi |
| 19139 | rm -f core conftest.err conftest.$ac_objext \ |
| 19140 | conftest$ac_exeext conftest.$ac_ext |
| 19141 | LIBS=$ac_check_lib_save_LIBS |
| 19142 | fi |
| 19143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 |
| 19144 | $as_echo "$ac_cv_lib_c_pthread_self" >&6; } |
| 19145 | if test "x$ac_cv_lib_c_pthread_self" = xyes; then : |
| 19146 | ost_cv_thread_library=c |
| 19147 | fi |
| 19148 | |
| 19149 | fi |
| 19150 | |
| 19151 | if test $ost_cv_thread_library = none ; then |
| 19152 | as_fn_error $? "no library for posix threads found!" "$LINENO" 5 |
| 19153 | fi |
| 19154 | else |
| 19155 | # ost_cv_prog_cc_pthread=no |
| 19156 | # ost_cv_prog_cc_mthreads=no |
| 19157 | ost_cv_thread_flags="" |
| 19158 | fi |
| 19159 | |
| 19160 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mach_thread_np" | $as_tr_sh` |
| 19161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mach_thread_np in -l${ost_cv_thread_library}" >&5 |
| 19162 | $as_echo_n "checking for pthread_mach_thread_np in -l${ost_cv_thread_library}... " >&6; } |
| 19163 | if eval \${$as_ac_Lib+:} false; then : |
| 19164 | $as_echo_n "(cached) " >&6 |
| 19165 | else |
| 19166 | ac_check_lib_save_LIBS=$LIBS |
| 19167 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19169 | /* end confdefs.h. */ |
| 19170 | |
| 19171 | /* Override any GCC internal prototype to avoid an error. |
| 19172 | Use char because int might match the return type of a GCC |
| 19173 | builtin and then its argument prototype would still apply. */ |
| 19174 | #ifdef __cplusplus |
| 19175 | extern "C" |
| 19176 | #endif |
| 19177 | char pthread_mach_thread_np (); |
| 19178 | int |
| 19179 | main () |
| 19180 | { |
| 19181 | return pthread_mach_thread_np (); |
| 19182 | ; |
| 19183 | return 0; |
| 19184 | } |
| 19185 | _ACEOF |
| 19186 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19187 | eval "$as_ac_Lib=yes" |
| 19188 | else |
| 19189 | eval "$as_ac_Lib=no" |
| 19190 | fi |
| 19191 | rm -f core conftest.err conftest.$ac_objext \ |
| 19192 | conftest$ac_exeext conftest.$ac_ext |
| 19193 | LIBS=$ac_check_lib_save_LIBS |
| 19194 | fi |
| 19195 | eval ac_res=\$$as_ac_Lib |
| 19196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19197 | $as_echo "$ac_res" >&6; } |
| 19198 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19199 | |
| 19200 | $as_echo "#define HAVE_PTHREAD_MACH_THREAD_NP 1" >>confdefs.h |
| 19201 | |
| 19202 | |
| 19203 | fi |
| 19204 | |
| 19205 | |
| 19206 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_nanosleep" | $as_tr_sh` |
| 19207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -l${ost_cv_thread_library}" >&5 |
| 19208 | $as_echo_n "checking for nanosleep in -l${ost_cv_thread_library}... " >&6; } |
| 19209 | if eval \${$as_ac_Lib+:} false; then : |
| 19210 | $as_echo_n "(cached) " >&6 |
| 19211 | else |
| 19212 | ac_check_lib_save_LIBS=$LIBS |
| 19213 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19215 | /* end confdefs.h. */ |
| 19216 | |
| 19217 | /* Override any GCC internal prototype to avoid an error. |
| 19218 | Use char because int might match the return type of a GCC |
| 19219 | builtin and then its argument prototype would still apply. */ |
| 19220 | #ifdef __cplusplus |
| 19221 | extern "C" |
| 19222 | #endif |
| 19223 | char nanosleep (); |
| 19224 | int |
| 19225 | main () |
| 19226 | { |
| 19227 | return nanosleep (); |
| 19228 | ; |
| 19229 | return 0; |
| 19230 | } |
| 19231 | _ACEOF |
| 19232 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19233 | eval "$as_ac_Lib=yes" |
| 19234 | else |
| 19235 | eval "$as_ac_Lib=no" |
| 19236 | fi |
| 19237 | rm -f core conftest.err conftest.$ac_objext \ |
| 19238 | conftest$ac_exeext conftest.$ac_ext |
| 19239 | LIBS=$ac_check_lib_save_LIBS |
| 19240 | fi |
| 19241 | eval ac_res=\$$as_ac_Lib |
| 19242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19243 | $as_echo "$ac_res" >&6; } |
| 19244 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19245 | |
| 19246 | $as_echo "#define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h |
| 19247 | |
| 19248 | else |
| 19249 | |
| 19250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
| 19251 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } |
| 19252 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
| 19253 | $as_echo_n "(cached) " >&6 |
| 19254 | else |
| 19255 | ac_check_lib_save_LIBS=$LIBS |
| 19256 | LIBS="-lposix4 $LIBS" |
| 19257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19258 | /* end confdefs.h. */ |
| 19259 | |
| 19260 | /* Override any GCC internal prototype to avoid an error. |
| 19261 | Use char because int might match the return type of a GCC |
| 19262 | builtin and then its argument prototype would still apply. */ |
| 19263 | #ifdef __cplusplus |
| 19264 | extern "C" |
| 19265 | #endif |
| 19266 | char nanosleep (); |
| 19267 | int |
| 19268 | main () |
| 19269 | { |
| 19270 | return nanosleep (); |
| 19271 | ; |
| 19272 | return 0; |
| 19273 | } |
| 19274 | _ACEOF |
| 19275 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19276 | ac_cv_lib_posix4_nanosleep=yes |
| 19277 | else |
| 19278 | ac_cv_lib_posix4_nanosleep=no |
| 19279 | fi |
| 19280 | rm -f core conftest.err conftest.$ac_objext \ |
| 19281 | conftest$ac_exeext conftest.$ac_ext |
| 19282 | LIBS=$ac_check_lib_save_LIBS |
| 19283 | fi |
| 19284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
| 19285 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } |
| 19286 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
| 19287 | |
| 19288 | $as_echo "#define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h |
| 19289 | |
| 19290 | THREAD_LIBS="$THREAD_LIBS -lposix4" |
| 19291 | |
| 19292 | else |
| 19293 | |
| 19294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
| 19295 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } |
| 19296 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
| 19297 | $as_echo_n "(cached) " >&6 |
| 19298 | else |
| 19299 | ac_check_lib_save_LIBS=$LIBS |
| 19300 | LIBS="-lrt $LIBS" |
| 19301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19302 | /* end confdefs.h. */ |
| 19303 | |
| 19304 | /* Override any GCC internal prototype to avoid an error. |
| 19305 | Use char because int might match the return type of a GCC |
| 19306 | builtin and then its argument prototype would still apply. */ |
| 19307 | #ifdef __cplusplus |
| 19308 | extern "C" |
| 19309 | #endif |
| 19310 | char nanosleep (); |
| 19311 | int |
| 19312 | main () |
| 19313 | { |
| 19314 | return nanosleep (); |
| 19315 | ; |
| 19316 | return 0; |
| 19317 | } |
| 19318 | _ACEOF |
| 19319 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19320 | ac_cv_lib_rt_nanosleep=yes |
| 19321 | else |
| 19322 | ac_cv_lib_rt_nanosleep=no |
| 19323 | fi |
| 19324 | rm -f core conftest.err conftest.$ac_objext \ |
| 19325 | conftest$ac_exeext conftest.$ac_ext |
| 19326 | LIBS=$ac_check_lib_save_LIBS |
| 19327 | fi |
| 19328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
| 19329 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } |
| 19330 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
| 19331 | |
| 19332 | $as_echo "#define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h |
| 19333 | |
| 19334 | ost_cv_rt_library="-lrt" |
| 19335 | fi |
| 19336 | |
| 19337 | |
| 19338 | fi |
| 19339 | |
| 19340 | |
| 19341 | |
| 19342 | fi |
| 19343 | |
| 19344 | |
| 19345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 19346 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 19347 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 19348 | $as_echo_n "(cached) " >&6 |
| 19349 | else |
| 19350 | ac_check_lib_save_LIBS=$LIBS |
| 19351 | LIBS="-lrt $LIBS" |
| 19352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19353 | /* end confdefs.h. */ |
| 19354 | |
| 19355 | /* Override any GCC internal prototype to avoid an error. |
| 19356 | Use char because int might match the return type of a GCC |
| 19357 | builtin and then its argument prototype would still apply. */ |
| 19358 | #ifdef __cplusplus |
| 19359 | extern "C" |
| 19360 | #endif |
| 19361 | char clock_gettime (); |
| 19362 | int |
| 19363 | main () |
| 19364 | { |
| 19365 | return clock_gettime (); |
| 19366 | ; |
| 19367 | return 0; |
| 19368 | } |
| 19369 | _ACEOF |
| 19370 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19371 | ac_cv_lib_rt_clock_gettime=yes |
| 19372 | else |
| 19373 | ac_cv_lib_rt_clock_gettime=no |
| 19374 | fi |
| 19375 | rm -f core conftest.err conftest.$ac_objext \ |
| 19376 | conftest$ac_exeext conftest.$ac_ext |
| 19377 | LIBS=$ac_check_lib_save_LIBS |
| 19378 | fi |
| 19379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 19380 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 19381 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 19382 | |
| 19383 | ost_cv_rt_library="-lrt" |
| 19384 | |
| 19385 | $as_echo "#define HAVE_HIRES_TIMER 1" >>confdefs.h |
| 19386 | |
| 19387 | |
| 19388 | else |
| 19389 | |
| 19390 | for ac_func in clock_gettime |
| 19391 | do : |
| 19392 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 19393 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
| 19394 | cat >>confdefs.h <<_ACEOF |
| 19395 | #define HAVE_CLOCK_GETTIME 1 |
| 19396 | _ACEOF |
| 19397 | |
| 19398 | |
| 19399 | $as_echo "#define HAVE_HIRES_TIMER 1" >>confdefs.h |
| 19400 | |
| 19401 | |
| 19402 | fi |
| 19403 | done |
| 19404 | |
| 19405 | |
| 19406 | fi |
| 19407 | |
| 19408 | |
| 19409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mlockall in -lrt" >&5 |
| 19410 | $as_echo_n "checking for mlockall in -lrt... " >&6; } |
| 19411 | if ${ac_cv_lib_rt_mlockall+:} false; then : |
| 19412 | $as_echo_n "(cached) " >&6 |
| 19413 | else |
| 19414 | ac_check_lib_save_LIBS=$LIBS |
| 19415 | LIBS="-lrt $LIBS" |
| 19416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19417 | /* end confdefs.h. */ |
| 19418 | |
| 19419 | /* Override any GCC internal prototype to avoid an error. |
| 19420 | Use char because int might match the return type of a GCC |
| 19421 | builtin and then its argument prototype would still apply. */ |
| 19422 | #ifdef __cplusplus |
| 19423 | extern "C" |
| 19424 | #endif |
| 19425 | char mlockall (); |
| 19426 | int |
| 19427 | main () |
| 19428 | { |
| 19429 | return mlockall (); |
| 19430 | ; |
| 19431 | return 0; |
| 19432 | } |
| 19433 | _ACEOF |
| 19434 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19435 | ac_cv_lib_rt_mlockall=yes |
| 19436 | else |
| 19437 | ac_cv_lib_rt_mlockall=no |
| 19438 | fi |
| 19439 | rm -f core conftest.err conftest.$ac_objext \ |
| 19440 | conftest$ac_exeext conftest.$ac_ext |
| 19441 | LIBS=$ac_check_lib_save_LIBS |
| 19442 | fi |
| 19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mlockall" >&5 |
| 19444 | $as_echo "$ac_cv_lib_rt_mlockall" >&6; } |
| 19445 | if test "x$ac_cv_lib_rt_mlockall" = xyes; then : |
| 19446 | |
| 19447 | |
| 19448 | $as_echo "#define HAVE_MLOCK 1" >>confdefs.h |
| 19449 | |
| 19450 | |
| 19451 | $as_echo "#define HAVE_MLOCKALL 1" >>confdefs.h |
| 19452 | |
| 19453 | ost_cv_rt_library="-lrt" |
| 19454 | else |
| 19455 | |
| 19456 | for ac_func in mlock |
| 19457 | do : |
| 19458 | ac_fn_cxx_check_func "$LINENO" "mlock" "ac_cv_func_mlock" |
| 19459 | if test "x$ac_cv_func_mlock" = xyes; then : |
| 19460 | cat >>confdefs.h <<_ACEOF |
| 19461 | #define HAVE_MLOCK 1 |
| 19462 | _ACEOF |
| 19463 | |
| 19464 | fi |
| 19465 | done |
| 19466 | |
| 19467 | for ac_func in mlockall |
| 19468 | do : |
| 19469 | ac_fn_cxx_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" |
| 19470 | if test "x$ac_cv_func_mlockall" = xyes; then : |
| 19471 | cat >>confdefs.h <<_ACEOF |
| 19472 | #define HAVE_MLOCKALL 1 |
| 19473 | _ACEOF |
| 19474 | |
| 19475 | fi |
| 19476 | done |
| 19477 | |
| 19478 | |
| 19479 | fi |
| 19480 | |
| 19481 | |
| 19482 | if test "$ost_cv_rt_library" != "none" ; then |
| 19483 | THREAD_LIBS="$THREAD_LIBS $ost_cv_rt_library" ; fi |
| 19484 | |
| 19485 | if test ! -z "$ost_cv_thread_flags" ; then |
| 19486 | THREAD_LIBS="$THREAD_LIBS $ost_cv_thread_flags" ; fi |
| 19487 | if test "$ost_cv_thread_library" != "none" -a "$ost_cv_thread_library" != "c" ; then |
| 19488 | THREAD_LIBS="$THREAD_LIBS -l$ost_cv_thread_library" ; fi |
| 19489 | |
| 19490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 19491 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 19492 | flag=no |
| 19493 | case "${host_cpu}-${host_os}" in |
| 19494 | *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; |
| 19495 | *solaris* | alpha*-osf*) flag="-D_REENTRANT";; |
| 19496 | esac |
| 19497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 19498 | $as_echo "${flag}" >&6; } |
| 19499 | if test "x$flag" != xno; then |
| 19500 | THREAD_FLAGS="$flag" |
| 19501 | fi |
| 19502 | |
| 19503 | |
| 19504 | |
| 19505 | # LIBS="$THREAD_LIBS $LIBS" |
| 19506 | if test "$ost_cv_thread_library" != "lthread" ; then |
| 19507 | for ac_header in pthread_np.h |
| 19508 | do : |
| 19509 | ac_fn_cxx_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" |
| 19510 | if test "x$ac_cv_header_pthread_np_h" = xyes; then : |
| 19511 | cat >>confdefs.h <<_ACEOF |
| 19512 | #define HAVE_PTHREAD_NP_H 1 |
| 19513 | _ACEOF |
| 19514 | |
| 19515 | fi |
| 19516 | |
| 19517 | done |
| 19518 | |
| 19519 | fi |
| 19520 | for ac_header in semaphore.h |
| 19521 | do : |
| 19522 | ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 19523 | if test "x$ac_cv_header_semaphore_h" = xyes; then : |
| 19524 | cat >>confdefs.h <<_ACEOF |
| 19525 | #define HAVE_SEMAPHORE_H 1 |
| 19526 | _ACEOF |
| 19527 | |
| 19528 | fi |
| 19529 | |
| 19530 | done |
| 19531 | |
| 19532 | for ac_header in sched.h |
| 19533 | do : |
| 19534 | ac_fn_cxx_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" |
| 19535 | if test "x$ac_cv_header_sched_h" = xyes; then : |
| 19536 | cat >>confdefs.h <<_ACEOF |
| 19537 | #define HAVE_SCHED_H 1 |
| 19538 | _ACEOF |
| 19539 | |
| 19540 | fi |
| 19541 | |
| 19542 | done |
| 19543 | |
| 19544 | for ac_header in sys/sched.h |
| 19545 | do : |
| 19546 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" |
| 19547 | if test "x$ac_cv_header_sys_sched_h" = xyes; then : |
| 19548 | cat >>confdefs.h <<_ACEOF |
| 19549 | #define HAVE_SYS_SCHED_H 1 |
| 19550 | _ACEOF |
| 19551 | |
| 19552 | fi |
| 19553 | |
| 19554 | done |
| 19555 | |
| 19556 | for ac_func in sched_getscheduler |
| 19557 | do : |
| 19558 | ac_fn_cxx_check_func "$LINENO" "sched_getscheduler" "ac_cv_func_sched_getscheduler" |
| 19559 | if test "x$ac_cv_func_sched_getscheduler" = xyes; then : |
| 19560 | cat >>confdefs.h <<_ACEOF |
| 19561 | #define HAVE_SCHED_GETSCHEDULER 1 |
| 19562 | _ACEOF |
| 19563 | |
| 19564 | fi |
| 19565 | done |
| 19566 | |
| 19567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex type support" >&5 |
| 19568 | $as_echo_n "checking for recursive mutex type support... " >&6; } |
| 19569 | if ${ost_cv_mutex_recursive+:} false; then : |
| 19570 | $as_echo_n "(cached) " >&6 |
| 19571 | else |
| 19572 | |
| 19573 | ost_cv_mutex_recursive="none" |
| 19574 | |
| 19575 | if test "$ost_cv_cxx_mode" = true ; then |
| 19576 | |
| 19577 | ac_ext=cpp |
| 19578 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19582 | |
| 19583 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 19584 | CXXFLAGS="$CXXFLAGS -pthread" |
| 19585 | fi |
| 19586 | |
| 19587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19588 | /* end confdefs.h. */ |
| 19589 | #include <pthread.h> |
| 19590 | int |
| 19591 | main () |
| 19592 | { |
| 19593 | |
| 19594 | #ifndef PTHREAD_MUTEXTYPE_RECURSIVE |
| 19595 | #ifdef PTHREAD_MUTEX_RECURSIVE |
| 19596 | #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE |
| 19597 | #endif |
| 19598 | #endif |
| 19599 | return (int)PTHREAD_MUTEXTYPE_RECURSIVE; |
| 19600 | |
| 19601 | ; |
| 19602 | return 0; |
| 19603 | } |
| 19604 | _ACEOF |
| 19605 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 19606 | ost_cv_mutex_recursive="portable" |
| 19607 | else |
| 19608 | |
| 19609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19610 | /* end confdefs.h. */ |
| 19611 | #include <pthread.h> |
| 19612 | |
| 19613 | _ACEOF |
| 19614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19615 | $EGREP "PTHREAD_MUTEXTYPE_RECURSIVE_NP" >/dev/null 2>&1; then : |
| 19616 | ost_cv_mutex_recursive=non-portable |
| 19617 | fi |
| 19618 | rm -f conftest* |
| 19619 | |
| 19620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19621 | /* end confdefs.h. */ |
| 19622 | #include <pthread.h> |
| 19623 | |
| 19624 | _ACEOF |
| 19625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19626 | $EGREP "PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP" >/dev/null 2>&1; then : |
| 19627 | ost_cv_mutex_recursive=lthread |
| 19628 | fi |
| 19629 | rm -f conftest* |
| 19630 | |
| 19631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19632 | /* end confdefs.h. */ |
| 19633 | #include <pthread.h> |
| 19634 | |
| 19635 | _ACEOF |
| 19636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19637 | $EGREP "PTHREAD_MUTEX_RECURSIVE_NP" >/dev/null 2>&1; then : |
| 19638 | ost_cv_mutex_recursive=linux |
| 19639 | fi |
| 19640 | rm -f conftest* |
| 19641 | |
| 19642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19643 | /* end confdefs.h. */ |
| 19644 | #include <pthread.h> |
| 19645 | |
| 19646 | _ACEOF |
| 19647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19648 | $EGREP "MUTEX_TYPE_COUNTING_FAST" >/dev/null 2>&1; then : |
| 19649 | ost_cv_mutex_recursive=counting |
| 19650 | fi |
| 19651 | rm -f conftest* |
| 19652 | |
| 19653 | |
| 19654 | fi |
| 19655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19656 | if test $ost_cv_mutex_recursive = "none" ; then |
| 19657 | if test $ost_cv_thread_library = "lthread" ; then |
| 19658 | ost_cv_mutex_recursive=linux |
| 19659 | fi |
| 19660 | fi |
| 19661 | rm -f conftest* |
| 19662 | |
| 19663 | fi |
| 19664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_mutex_recursive" >&5 |
| 19665 | $as_echo "$ost_cv_mutex_recursive" >&6; } |
| 19666 | |
| 19667 | if test $ost_cv_mutex_recursive = "none" ; then |
| 19668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19669 | /* end confdefs.h. */ |
| 19670 | #include <pthread.h> |
| 19671 | int |
| 19672 | main () |
| 19673 | { |
| 19674 | return MUTEX_TYPE_COUNTING_FAST; |
| 19675 | ; |
| 19676 | return 0; |
| 19677 | } |
| 19678 | _ACEOF |
| 19679 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 19680 | ost_cv_mutex_recursive=counting |
| 19681 | fi |
| 19682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19683 | fi |
| 19684 | |
| 19685 | if test "$ost_cv_cxx_mode" = true ; then |
| 19686 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 19687 | ac_ext=cpp |
| 19688 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19692 | |
| 19693 | fi |
| 19694 | |
| 19695 | |
| 19696 | case $ost_cv_mutex_recursive in |
| 19697 | non-portable) |
| 19698 | |
| 19699 | $as_echo "#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEXTYPE_RECURSIVE_NP" >>confdefs.h |
| 19700 | |
| 19701 | ;; |
| 19702 | linux) |
| 19703 | $as_echo "#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP" >>confdefs.h |
| 19704 | |
| 19705 | ;; |
| 19706 | counting) |
| 19707 | $as_echo "#define PTHREAD_MUTEXTYPE_RECURSIVE MUTEX_TYPE_COUNTING_FAST" >>confdefs.h |
| 19708 | |
| 19709 | ;; |
| 19710 | esac |
| 19711 | |
| 19712 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_settype" | $as_tr_sh` |
| 19713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype in -l${ost_cv_thread_library}" >&5 |
| 19714 | $as_echo_n "checking for pthread_mutexattr_settype in -l${ost_cv_thread_library}... " >&6; } |
| 19715 | if eval \${$as_ac_Lib+:} false; then : |
| 19716 | $as_echo_n "(cached) " >&6 |
| 19717 | else |
| 19718 | ac_check_lib_save_LIBS=$LIBS |
| 19719 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19721 | /* end confdefs.h. */ |
| 19722 | |
| 19723 | /* Override any GCC internal prototype to avoid an error. |
| 19724 | Use char because int might match the return type of a GCC |
| 19725 | builtin and then its argument prototype would still apply. */ |
| 19726 | #ifdef __cplusplus |
| 19727 | extern "C" |
| 19728 | #endif |
| 19729 | char pthread_mutexattr_settype (); |
| 19730 | int |
| 19731 | main () |
| 19732 | { |
| 19733 | return pthread_mutexattr_settype (); |
| 19734 | ; |
| 19735 | return 0; |
| 19736 | } |
| 19737 | _ACEOF |
| 19738 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19739 | eval "$as_ac_Lib=yes" |
| 19740 | else |
| 19741 | eval "$as_ac_Lib=no" |
| 19742 | fi |
| 19743 | rm -f core conftest.err conftest.$ac_objext \ |
| 19744 | conftest$ac_exeext conftest.$ac_ext |
| 19745 | LIBS=$ac_check_lib_save_LIBS |
| 19746 | fi |
| 19747 | eval ac_res=\$$as_ac_Lib |
| 19748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19749 | $as_echo "$ac_res" >&6; } |
| 19750 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19751 | |
| 19752 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
| 19753 | |
| 19754 | else |
| 19755 | |
| 19756 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_settype_np" | $as_tr_sh` |
| 19757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype_np in -l${ost_cv_thread_library}" >&5 |
| 19758 | $as_echo_n "checking for pthread_mutexattr_settype_np in -l${ost_cv_thread_library}... " >&6; } |
| 19759 | if eval \${$as_ac_Lib+:} false; then : |
| 19760 | $as_echo_n "(cached) " >&6 |
| 19761 | else |
| 19762 | ac_check_lib_save_LIBS=$LIBS |
| 19763 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19765 | /* end confdefs.h. */ |
| 19766 | |
| 19767 | /* Override any GCC internal prototype to avoid an error. |
| 19768 | Use char because int might match the return type of a GCC |
| 19769 | builtin and then its argument prototype would still apply. */ |
| 19770 | #ifdef __cplusplus |
| 19771 | extern "C" |
| 19772 | #endif |
| 19773 | char pthread_mutexattr_settype_np (); |
| 19774 | int |
| 19775 | main () |
| 19776 | { |
| 19777 | return pthread_mutexattr_settype_np (); |
| 19778 | ; |
| 19779 | return 0; |
| 19780 | } |
| 19781 | _ACEOF |
| 19782 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19783 | eval "$as_ac_Lib=yes" |
| 19784 | else |
| 19785 | eval "$as_ac_Lib=no" |
| 19786 | fi |
| 19787 | rm -f core conftest.err conftest.$ac_objext \ |
| 19788 | conftest$ac_exeext conftest.$ac_ext |
| 19789 | LIBS=$ac_check_lib_save_LIBS |
| 19790 | fi |
| 19791 | eval ac_res=\$$as_ac_Lib |
| 19792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19793 | $as_echo "$ac_res" >&6; } |
| 19794 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19795 | |
| 19796 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP 1" >>confdefs.h |
| 19797 | |
| 19798 | fi |
| 19799 | |
| 19800 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_setkind_np" | $as_tr_sh` |
| 19801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_setkind_np in -l${ost_cv_thread_library}" >&5 |
| 19802 | $as_echo_n "checking for pthread_mutexattr_setkind_np in -l${ost_cv_thread_library}... " >&6; } |
| 19803 | if eval \${$as_ac_Lib+:} false; then : |
| 19804 | $as_echo_n "(cached) " >&6 |
| 19805 | else |
| 19806 | ac_check_lib_save_LIBS=$LIBS |
| 19807 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19809 | /* end confdefs.h. */ |
| 19810 | |
| 19811 | /* Override any GCC internal prototype to avoid an error. |
| 19812 | Use char because int might match the return type of a GCC |
| 19813 | builtin and then its argument prototype would still apply. */ |
| 19814 | #ifdef __cplusplus |
| 19815 | extern "C" |
| 19816 | #endif |
| 19817 | char pthread_mutexattr_setkind_np (); |
| 19818 | int |
| 19819 | main () |
| 19820 | { |
| 19821 | return pthread_mutexattr_setkind_np (); |
| 19822 | ; |
| 19823 | return 0; |
| 19824 | } |
| 19825 | _ACEOF |
| 19826 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19827 | eval "$as_ac_Lib=yes" |
| 19828 | else |
| 19829 | eval "$as_ac_Lib=no" |
| 19830 | fi |
| 19831 | rm -f core conftest.err conftest.$ac_objext \ |
| 19832 | conftest$ac_exeext conftest.$ac_ext |
| 19833 | LIBS=$ac_check_lib_save_LIBS |
| 19834 | fi |
| 19835 | eval ac_res=\$$as_ac_Lib |
| 19836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19837 | $as_echo "$ac_res" >&6; } |
| 19838 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19839 | |
| 19840 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_SETKIND_NP 1" >>confdefs.h |
| 19841 | |
| 19842 | fi |
| 19843 | |
| 19844 | |
| 19845 | |
| 19846 | fi |
| 19847 | |
| 19848 | |
| 19849 | ost_cv_thread_rwlock=false |
| 19850 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_rwlock_init" | $as_tr_sh` |
| 19851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -l${ost_cv_thread_library}" >&5 |
| 19852 | $as_echo_n "checking for pthread_rwlock_init in -l${ost_cv_thread_library}... " >&6; } |
| 19853 | if eval \${$as_ac_Lib+:} false; then : |
| 19854 | $as_echo_n "(cached) " >&6 |
| 19855 | else |
| 19856 | ac_check_lib_save_LIBS=$LIBS |
| 19857 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19859 | /* end confdefs.h. */ |
| 19860 | |
| 19861 | /* Override any GCC internal prototype to avoid an error. |
| 19862 | Use char because int might match the return type of a GCC |
| 19863 | builtin and then its argument prototype would still apply. */ |
| 19864 | #ifdef __cplusplus |
| 19865 | extern "C" |
| 19866 | #endif |
| 19867 | char pthread_rwlock_init (); |
| 19868 | int |
| 19869 | main () |
| 19870 | { |
| 19871 | return pthread_rwlock_init (); |
| 19872 | ; |
| 19873 | return 0; |
| 19874 | } |
| 19875 | _ACEOF |
| 19876 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19877 | eval "$as_ac_Lib=yes" |
| 19878 | else |
| 19879 | eval "$as_ac_Lib=no" |
| 19880 | fi |
| 19881 | rm -f core conftest.err conftest.$ac_objext \ |
| 19882 | conftest$ac_exeext conftest.$ac_ext |
| 19883 | LIBS=$ac_check_lib_save_LIBS |
| 19884 | fi |
| 19885 | eval ac_res=\$$as_ac_Lib |
| 19886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19887 | $as_echo "$ac_res" >&6; } |
| 19888 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19889 | |
| 19890 | ost_cv_thread_rwlock=true |
| 19891 | |
| 19892 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 19893 | |
| 19894 | fi |
| 19895 | |
| 19896 | |
| 19897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -lc" >&5 |
| 19898 | $as_echo_n "checking for pread in -lc... " >&6; } |
| 19899 | if ${ac_cv_lib_c_pread+:} false; then : |
| 19900 | $as_echo_n "(cached) " >&6 |
| 19901 | else |
| 19902 | ac_check_lib_save_LIBS=$LIBS |
| 19903 | LIBS="-lc $LIBS" |
| 19904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19905 | /* end confdefs.h. */ |
| 19906 | |
| 19907 | /* Override any GCC internal prototype to avoid an error. |
| 19908 | Use char because int might match the return type of a GCC |
| 19909 | builtin and then its argument prototype would still apply. */ |
| 19910 | #ifdef __cplusplus |
| 19911 | extern "C" |
| 19912 | #endif |
| 19913 | char pread (); |
| 19914 | int |
| 19915 | main () |
| 19916 | { |
| 19917 | return pread (); |
| 19918 | ; |
| 19919 | return 0; |
| 19920 | } |
| 19921 | _ACEOF |
| 19922 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19923 | ac_cv_lib_c_pread=yes |
| 19924 | else |
| 19925 | ac_cv_lib_c_pread=no |
| 19926 | fi |
| 19927 | rm -f core conftest.err conftest.$ac_objext \ |
| 19928 | conftest$ac_exeext conftest.$ac_ext |
| 19929 | LIBS=$ac_check_lib_save_LIBS |
| 19930 | fi |
| 19931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pread" >&5 |
| 19932 | $as_echo "$ac_cv_lib_c_pread" >&6; } |
| 19933 | if test "x$ac_cv_lib_c_pread" = xyes; then : |
| 19934 | |
| 19935 | |
| 19936 | $as_echo "#define HAVE_PREAD_PWRITE 1" >>confdefs.h |
| 19937 | |
| 19938 | else |
| 19939 | |
| 19940 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pread" | $as_tr_sh` |
| 19941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -l${ost_cv_thread_library}" >&5 |
| 19942 | $as_echo_n "checking for pread in -l${ost_cv_thread_library}... " >&6; } |
| 19943 | if eval \${$as_ac_Lib+:} false; then : |
| 19944 | $as_echo_n "(cached) " >&6 |
| 19945 | else |
| 19946 | ac_check_lib_save_LIBS=$LIBS |
| 19947 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 19948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19949 | /* end confdefs.h. */ |
| 19950 | |
| 19951 | /* Override any GCC internal prototype to avoid an error. |
| 19952 | Use char because int might match the return type of a GCC |
| 19953 | builtin and then its argument prototype would still apply. */ |
| 19954 | #ifdef __cplusplus |
| 19955 | extern "C" |
| 19956 | #endif |
| 19957 | char pread (); |
| 19958 | int |
| 19959 | main () |
| 19960 | { |
| 19961 | return pread (); |
| 19962 | ; |
| 19963 | return 0; |
| 19964 | } |
| 19965 | _ACEOF |
| 19966 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19967 | eval "$as_ac_Lib=yes" |
| 19968 | else |
| 19969 | eval "$as_ac_Lib=no" |
| 19970 | fi |
| 19971 | rm -f core conftest.err conftest.$ac_objext \ |
| 19972 | conftest$ac_exeext conftest.$ac_ext |
| 19973 | LIBS=$ac_check_lib_save_LIBS |
| 19974 | fi |
| 19975 | eval ac_res=\$$as_ac_Lib |
| 19976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19977 | $as_echo "$ac_res" >&6; } |
| 19978 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 19979 | |
| 19980 | $as_echo "#define HAVE_PREAD_PWRITE 1" >>confdefs.h |
| 19981 | |
| 19982 | else |
| 19983 | |
| 19984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -lc_r" >&5 |
| 19985 | $as_echo_n "checking for pread in -lc_r... " >&6; } |
| 19986 | if ${ac_cv_lib_c_r_pread+:} false; then : |
| 19987 | $as_echo_n "(cached) " >&6 |
| 19988 | else |
| 19989 | ac_check_lib_save_LIBS=$LIBS |
| 19990 | LIBS="-lc_r $LIBS" |
| 19991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19992 | /* end confdefs.h. */ |
| 19993 | |
| 19994 | /* Override any GCC internal prototype to avoid an error. |
| 19995 | Use char because int might match the return type of a GCC |
| 19996 | builtin and then its argument prototype would still apply. */ |
| 19997 | #ifdef __cplusplus |
| 19998 | extern "C" |
| 19999 | #endif |
| 20000 | char pread (); |
| 20001 | int |
| 20002 | main () |
| 20003 | { |
| 20004 | return pread (); |
| 20005 | ; |
| 20006 | return 0; |
| 20007 | } |
| 20008 | _ACEOF |
| 20009 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20010 | ac_cv_lib_c_r_pread=yes |
| 20011 | else |
| 20012 | ac_cv_lib_c_r_pread=no |
| 20013 | fi |
| 20014 | rm -f core conftest.err conftest.$ac_objext \ |
| 20015 | conftest$ac_exeext conftest.$ac_ext |
| 20016 | LIBS=$ac_check_lib_save_LIBS |
| 20017 | fi |
| 20018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pread" >&5 |
| 20019 | $as_echo "$ac_cv_lib_c_r_pread" >&6; } |
| 20020 | if test "x$ac_cv_lib_c_r_pread" = xyes; then : |
| 20021 | $as_echo "#define HAVE_PREAD_PWRITE 1" >>confdefs.h |
| 20022 | |
| 20023 | fi |
| 20024 | |
| 20025 | |
| 20026 | fi |
| 20027 | |
| 20028 | |
| 20029 | fi |
| 20030 | |
| 20031 | |
| 20032 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_suspend" | $as_tr_sh` |
| 20033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_suspend in -l${ost_cv_thread_library}" >&5 |
| 20034 | $as_echo_n "checking for pthread_suspend in -l${ost_cv_thread_library}... " >&6; } |
| 20035 | if eval \${$as_ac_Lib+:} false; then : |
| 20036 | $as_echo_n "(cached) " >&6 |
| 20037 | else |
| 20038 | ac_check_lib_save_LIBS=$LIBS |
| 20039 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20041 | /* end confdefs.h. */ |
| 20042 | |
| 20043 | /* Override any GCC internal prototype to avoid an error. |
| 20044 | Use char because int might match the return type of a GCC |
| 20045 | builtin and then its argument prototype would still apply. */ |
| 20046 | #ifdef __cplusplus |
| 20047 | extern "C" |
| 20048 | #endif |
| 20049 | char pthread_suspend (); |
| 20050 | int |
| 20051 | main () |
| 20052 | { |
| 20053 | return pthread_suspend (); |
| 20054 | ; |
| 20055 | return 0; |
| 20056 | } |
| 20057 | _ACEOF |
| 20058 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20059 | eval "$as_ac_Lib=yes" |
| 20060 | else |
| 20061 | eval "$as_ac_Lib=no" |
| 20062 | fi |
| 20063 | rm -f core conftest.err conftest.$ac_objext \ |
| 20064 | conftest$ac_exeext conftest.$ac_ext |
| 20065 | LIBS=$ac_check_lib_save_LIBS |
| 20066 | fi |
| 20067 | eval ac_res=\$$as_ac_Lib |
| 20068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20069 | $as_echo "$ac_res" >&6; } |
| 20070 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20071 | |
| 20072 | $as_echo "#define HAVE_PTHREAD_SUSPEND 1" >>confdefs.h |
| 20073 | |
| 20074 | fi |
| 20075 | |
| 20076 | |
| 20077 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_attr_setstacksize" | $as_tr_sh` |
| 20078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize in -l${ost_cv_thread_library}" >&5 |
| 20079 | $as_echo_n "checking for pthread_attr_setstacksize in -l${ost_cv_thread_library}... " >&6; } |
| 20080 | if eval \${$as_ac_Lib+:} false; then : |
| 20081 | $as_echo_n "(cached) " >&6 |
| 20082 | else |
| 20083 | ac_check_lib_save_LIBS=$LIBS |
| 20084 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20086 | /* end confdefs.h. */ |
| 20087 | |
| 20088 | /* Override any GCC internal prototype to avoid an error. |
| 20089 | Use char because int might match the return type of a GCC |
| 20090 | builtin and then its argument prototype would still apply. */ |
| 20091 | #ifdef __cplusplus |
| 20092 | extern "C" |
| 20093 | #endif |
| 20094 | char pthread_attr_setstacksize (); |
| 20095 | int |
| 20096 | main () |
| 20097 | { |
| 20098 | return pthread_attr_setstacksize (); |
| 20099 | ; |
| 20100 | return 0; |
| 20101 | } |
| 20102 | _ACEOF |
| 20103 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20104 | eval "$as_ac_Lib=yes" |
| 20105 | else |
| 20106 | eval "$as_ac_Lib=no" |
| 20107 | fi |
| 20108 | rm -f core conftest.err conftest.$ac_objext \ |
| 20109 | conftest$ac_exeext conftest.$ac_ext |
| 20110 | LIBS=$ac_check_lib_save_LIBS |
| 20111 | fi |
| 20112 | eval ac_res=\$$as_ac_Lib |
| 20113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20114 | $as_echo "$ac_res" >&6; } |
| 20115 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20116 | |
| 20117 | $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h |
| 20118 | |
| 20119 | fi |
| 20120 | |
| 20121 | |
| 20122 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_yield_np" | $as_tr_sh` |
| 20123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield_np in -l${ost_cv_thread_library}" >&5 |
| 20124 | $as_echo_n "checking for pthread_yield_np in -l${ost_cv_thread_library}... " >&6; } |
| 20125 | if eval \${$as_ac_Lib+:} false; then : |
| 20126 | $as_echo_n "(cached) " >&6 |
| 20127 | else |
| 20128 | ac_check_lib_save_LIBS=$LIBS |
| 20129 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20131 | /* end confdefs.h. */ |
| 20132 | |
| 20133 | /* Override any GCC internal prototype to avoid an error. |
| 20134 | Use char because int might match the return type of a GCC |
| 20135 | builtin and then its argument prototype would still apply. */ |
| 20136 | #ifdef __cplusplus |
| 20137 | extern "C" |
| 20138 | #endif |
| 20139 | char pthread_yield_np (); |
| 20140 | int |
| 20141 | main () |
| 20142 | { |
| 20143 | return pthread_yield_np (); |
| 20144 | ; |
| 20145 | return 0; |
| 20146 | } |
| 20147 | _ACEOF |
| 20148 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20149 | eval "$as_ac_Lib=yes" |
| 20150 | else |
| 20151 | eval "$as_ac_Lib=no" |
| 20152 | fi |
| 20153 | rm -f core conftest.err conftest.$ac_objext \ |
| 20154 | conftest$ac_exeext conftest.$ac_ext |
| 20155 | LIBS=$ac_check_lib_save_LIBS |
| 20156 | fi |
| 20157 | eval ac_res=\$$as_ac_Lib |
| 20158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20159 | $as_echo "$ac_res" >&6; } |
| 20160 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20161 | |
| 20162 | $as_echo "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h |
| 20163 | |
| 20164 | else |
| 20165 | |
| 20166 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_yield" | $as_tr_sh` |
| 20167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield in -l${ost_cv_thread_library}" >&5 |
| 20168 | $as_echo_n "checking for pthread_yield in -l${ost_cv_thread_library}... " >&6; } |
| 20169 | if eval \${$as_ac_Lib+:} false; then : |
| 20170 | $as_echo_n "(cached) " >&6 |
| 20171 | else |
| 20172 | ac_check_lib_save_LIBS=$LIBS |
| 20173 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20175 | /* end confdefs.h. */ |
| 20176 | |
| 20177 | /* Override any GCC internal prototype to avoid an error. |
| 20178 | Use char because int might match the return type of a GCC |
| 20179 | builtin and then its argument prototype would still apply. */ |
| 20180 | #ifdef __cplusplus |
| 20181 | extern "C" |
| 20182 | #endif |
| 20183 | char pthread_yield (); |
| 20184 | int |
| 20185 | main () |
| 20186 | { |
| 20187 | return pthread_yield (); |
| 20188 | ; |
| 20189 | return 0; |
| 20190 | } |
| 20191 | _ACEOF |
| 20192 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20193 | eval "$as_ac_Lib=yes" |
| 20194 | else |
| 20195 | eval "$as_ac_Lib=no" |
| 20196 | fi |
| 20197 | rm -f core conftest.err conftest.$ac_objext \ |
| 20198 | conftest$ac_exeext conftest.$ac_ext |
| 20199 | LIBS=$ac_check_lib_save_LIBS |
| 20200 | fi |
| 20201 | eval ac_res=\$$as_ac_Lib |
| 20202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20203 | $as_echo "$ac_res" >&6; } |
| 20204 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20205 | |
| 20206 | $as_echo "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h |
| 20207 | |
| 20208 | else |
| 20209 | |
| 20210 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_sched_yield" | $as_tr_sh` |
| 20211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -l${ost_cv_thread_library}" >&5 |
| 20212 | $as_echo_n "checking for sched_yield in -l${ost_cv_thread_library}... " >&6; } |
| 20213 | if eval \${$as_ac_Lib+:} false; then : |
| 20214 | $as_echo_n "(cached) " >&6 |
| 20215 | else |
| 20216 | ac_check_lib_save_LIBS=$LIBS |
| 20217 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20219 | /* end confdefs.h. */ |
| 20220 | |
| 20221 | /* Override any GCC internal prototype to avoid an error. |
| 20222 | Use char because int might match the return type of a GCC |
| 20223 | builtin and then its argument prototype would still apply. */ |
| 20224 | #ifdef __cplusplus |
| 20225 | extern "C" |
| 20226 | #endif |
| 20227 | char sched_yield (); |
| 20228 | int |
| 20229 | main () |
| 20230 | { |
| 20231 | return sched_yield (); |
| 20232 | ; |
| 20233 | return 0; |
| 20234 | } |
| 20235 | _ACEOF |
| 20236 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20237 | eval "$as_ac_Lib=yes" |
| 20238 | else |
| 20239 | eval "$as_ac_Lib=no" |
| 20240 | fi |
| 20241 | rm -f core conftest.err conftest.$ac_objext \ |
| 20242 | conftest$ac_exeext conftest.$ac_ext |
| 20243 | LIBS=$ac_check_lib_save_LIBS |
| 20244 | fi |
| 20245 | eval ac_res=\$$as_ac_Lib |
| 20246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20247 | $as_echo "$ac_res" >&6; } |
| 20248 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20249 | |
| 20250 | $as_echo "#define HAVE_PTHREAD_SCHED_YIELD 1" >>confdefs.h |
| 20251 | |
| 20252 | fi |
| 20253 | |
| 20254 | |
| 20255 | fi |
| 20256 | |
| 20257 | |
| 20258 | fi |
| 20259 | |
| 20260 | |
| 20261 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_cancel" | $as_tr_sh` |
| 20262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cancel in -l${ost_cv_thread_library}" >&5 |
| 20263 | $as_echo_n "checking for pthread_cancel in -l${ost_cv_thread_library}... " >&6; } |
| 20264 | if eval \${$as_ac_Lib+:} false; then : |
| 20265 | $as_echo_n "(cached) " >&6 |
| 20266 | else |
| 20267 | ac_check_lib_save_LIBS=$LIBS |
| 20268 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20270 | /* end confdefs.h. */ |
| 20271 | |
| 20272 | /* Override any GCC internal prototype to avoid an error. |
| 20273 | Use char because int might match the return type of a GCC |
| 20274 | builtin and then its argument prototype would still apply. */ |
| 20275 | #ifdef __cplusplus |
| 20276 | extern "C" |
| 20277 | #endif |
| 20278 | char pthread_cancel (); |
| 20279 | int |
| 20280 | main () |
| 20281 | { |
| 20282 | return pthread_cancel (); |
| 20283 | ; |
| 20284 | return 0; |
| 20285 | } |
| 20286 | _ACEOF |
| 20287 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20288 | eval "$as_ac_Lib=yes" |
| 20289 | else |
| 20290 | eval "$as_ac_Lib=no" |
| 20291 | fi |
| 20292 | rm -f core conftest.err conftest.$ac_objext \ |
| 20293 | conftest$ac_exeext conftest.$ac_ext |
| 20294 | LIBS=$ac_check_lib_save_LIBS |
| 20295 | fi |
| 20296 | eval ac_res=\$$as_ac_Lib |
| 20297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20298 | $as_echo "$ac_res" >&6; } |
| 20299 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20300 | |
| 20301 | |
| 20302 | $as_echo "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h |
| 20303 | |
| 20304 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_setcanceltype" | $as_tr_sh` |
| 20305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanceltype in -l${ost_cv_thread_library}" >&5 |
| 20306 | $as_echo_n "checking for pthread_setcanceltype in -l${ost_cv_thread_library}... " >&6; } |
| 20307 | if eval \${$as_ac_Lib+:} false; then : |
| 20308 | $as_echo_n "(cached) " >&6 |
| 20309 | else |
| 20310 | ac_check_lib_save_LIBS=$LIBS |
| 20311 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20313 | /* end confdefs.h. */ |
| 20314 | |
| 20315 | /* Override any GCC internal prototype to avoid an error. |
| 20316 | Use char because int might match the return type of a GCC |
| 20317 | builtin and then its argument prototype would still apply. */ |
| 20318 | #ifdef __cplusplus |
| 20319 | extern "C" |
| 20320 | #endif |
| 20321 | char pthread_setcanceltype (); |
| 20322 | int |
| 20323 | main () |
| 20324 | { |
| 20325 | return pthread_setcanceltype (); |
| 20326 | ; |
| 20327 | return 0; |
| 20328 | } |
| 20329 | _ACEOF |
| 20330 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20331 | eval "$as_ac_Lib=yes" |
| 20332 | else |
| 20333 | eval "$as_ac_Lib=no" |
| 20334 | fi |
| 20335 | rm -f core conftest.err conftest.$ac_objext \ |
| 20336 | conftest$ac_exeext conftest.$ac_ext |
| 20337 | LIBS=$ac_check_lib_save_LIBS |
| 20338 | fi |
| 20339 | eval ac_res=\$$as_ac_Lib |
| 20340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20341 | $as_echo "$ac_res" >&6; } |
| 20342 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20343 | |
| 20344 | $as_echo "#define HAVE_PTHREAD_SETCANCELTYPE 1" >>confdefs.h |
| 20345 | |
| 20346 | else |
| 20347 | as_ac_Lib=`$as_echo "ac_cv_lib_$ost_cv_thread_library''_pthread_setcanel" | $as_tr_sh` |
| 20348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanel in -l$ost_cv_thread_library" >&5 |
| 20349 | $as_echo_n "checking for pthread_setcanel in -l$ost_cv_thread_library... " >&6; } |
| 20350 | if eval \${$as_ac_Lib+:} false; then : |
| 20351 | $as_echo_n "(cached) " >&6 |
| 20352 | else |
| 20353 | ac_check_lib_save_LIBS=$LIBS |
| 20354 | LIBS="-l$ost_cv_thread_library $LIBS" |
| 20355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20356 | /* end confdefs.h. */ |
| 20357 | |
| 20358 | /* Override any GCC internal prototype to avoid an error. |
| 20359 | Use char because int might match the return type of a GCC |
| 20360 | builtin and then its argument prototype would still apply. */ |
| 20361 | #ifdef __cplusplus |
| 20362 | extern "C" |
| 20363 | #endif |
| 20364 | char pthread_setcanel (); |
| 20365 | int |
| 20366 | main () |
| 20367 | { |
| 20368 | return pthread_setcanel (); |
| 20369 | ; |
| 20370 | return 0; |
| 20371 | } |
| 20372 | _ACEOF |
| 20373 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20374 | eval "$as_ac_Lib=yes" |
| 20375 | else |
| 20376 | eval "$as_ac_Lib=no" |
| 20377 | fi |
| 20378 | rm -f core conftest.err conftest.$ac_objext \ |
| 20379 | conftest$ac_exeext conftest.$ac_ext |
| 20380 | LIBS=$ac_check_lib_save_LIBS |
| 20381 | fi |
| 20382 | eval ac_res=\$$as_ac_Lib |
| 20383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20384 | $as_echo "$ac_res" >&6; } |
| 20385 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20386 | |
| 20387 | $as_echo "#define HAVE_PTHREAD_SETCANCEL 1" >>confdefs.h |
| 20388 | |
| 20389 | fi |
| 20390 | |
| 20391 | fi |
| 20392 | |
| 20393 | |
| 20394 | else |
| 20395 | |
| 20396 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_setcanceltype" | $as_tr_sh` |
| 20397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanceltype in -l${ost_cv_thread_library}" >&5 |
| 20398 | $as_echo_n "checking for pthread_setcanceltype in -l${ost_cv_thread_library}... " >&6; } |
| 20399 | if eval \${$as_ac_Lib+:} false; then : |
| 20400 | $as_echo_n "(cached) " >&6 |
| 20401 | else |
| 20402 | ac_check_lib_save_LIBS=$LIBS |
| 20403 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20405 | /* end confdefs.h. */ |
| 20406 | |
| 20407 | /* Override any GCC internal prototype to avoid an error. |
| 20408 | Use char because int might match the return type of a GCC |
| 20409 | builtin and then its argument prototype would still apply. */ |
| 20410 | #ifdef __cplusplus |
| 20411 | extern "C" |
| 20412 | #endif |
| 20413 | char pthread_setcanceltype (); |
| 20414 | int |
| 20415 | main () |
| 20416 | { |
| 20417 | return pthread_setcanceltype (); |
| 20418 | ; |
| 20419 | return 0; |
| 20420 | } |
| 20421 | _ACEOF |
| 20422 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20423 | eval "$as_ac_Lib=yes" |
| 20424 | else |
| 20425 | eval "$as_ac_Lib=no" |
| 20426 | fi |
| 20427 | rm -f core conftest.err conftest.$ac_objext \ |
| 20428 | conftest$ac_exeext conftest.$ac_ext |
| 20429 | LIBS=$ac_check_lib_save_LIBS |
| 20430 | fi |
| 20431 | eval ac_res=\$$as_ac_Lib |
| 20432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20433 | $as_echo "$ac_res" >&6; } |
| 20434 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20435 | |
| 20436 | $as_echo "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h |
| 20437 | |
| 20438 | $as_echo "#define HAVE_PTHREAD_SETCANCELTYPE 1" >>confdefs.h |
| 20439 | |
| 20440 | fi |
| 20441 | |
| 20442 | |
| 20443 | |
| 20444 | fi |
| 20445 | |
| 20446 | |
| 20447 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_delay_np" | $as_tr_sh` |
| 20448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay_np in -l${ost_cv_thread_library}" >&5 |
| 20449 | $as_echo_n "checking for pthread_delay_np in -l${ost_cv_thread_library}... " >&6; } |
| 20450 | if eval \${$as_ac_Lib+:} false; then : |
| 20451 | $as_echo_n "(cached) " >&6 |
| 20452 | else |
| 20453 | ac_check_lib_save_LIBS=$LIBS |
| 20454 | LIBS="-l${ost_cv_thread_library} $LIBS" |
| 20455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20456 | /* end confdefs.h. */ |
| 20457 | |
| 20458 | /* Override any GCC internal prototype to avoid an error. |
| 20459 | Use char because int might match the return type of a GCC |
| 20460 | builtin and then its argument prototype would still apply. */ |
| 20461 | #ifdef __cplusplus |
| 20462 | extern "C" |
| 20463 | #endif |
| 20464 | char pthread_delay_np (); |
| 20465 | int |
| 20466 | main () |
| 20467 | { |
| 20468 | return pthread_delay_np (); |
| 20469 | ; |
| 20470 | return 0; |
| 20471 | } |
| 20472 | _ACEOF |
| 20473 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20474 | eval "$as_ac_Lib=yes" |
| 20475 | else |
| 20476 | eval "$as_ac_Lib=no" |
| 20477 | fi |
| 20478 | rm -f core conftest.err conftest.$ac_objext \ |
| 20479 | conftest$ac_exeext conftest.$ac_ext |
| 20480 | LIBS=$ac_check_lib_save_LIBS |
| 20481 | fi |
| 20482 | eval ac_res=\$$as_ac_Lib |
| 20483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20484 | $as_echo "$ac_res" >&6; } |
| 20485 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20486 | |
| 20487 | $as_echo "#define HAVE_PTHREAD_DELAY_NP 1" >>confdefs.h |
| 20488 | |
| 20489 | fi |
| 20490 | |
| 20491 | |
| 20492 | fi |
| 20493 | |
| 20494 | UNAME=`uname` |
| 20495 | if test "$UNAME" = "AIX" ; then |
| 20496 | # Extract the first word of "cc_r", so it can be a program name with args. |
| 20497 | set dummy cc_r; ac_word=$2 |
| 20498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 20499 | $as_echo_n "checking for $ac_word... " >&6; } |
| 20500 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| 20501 | $as_echo_n "(cached) " >&6 |
| 20502 | else |
| 20503 | if test -n "$PTHREAD_CC"; then |
| 20504 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 20505 | else |
| 20506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20507 | for as_dir in $PATH |
| 20508 | do |
| 20509 | IFS=$as_save_IFS |
| 20510 | test -z "$as_dir" && as_dir=. |
| 20511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 20513 | ac_cv_prog_PTHREAD_CC="cc_r" |
| 20514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20515 | break 2 |
| 20516 | fi |
| 20517 | done |
| 20518 | done |
| 20519 | IFS=$as_save_IFS |
| 20520 | |
| 20521 | test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" |
| 20522 | fi |
| 20523 | fi |
| 20524 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 20525 | if test -n "$PTHREAD_CC"; then |
| 20526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 20527 | $as_echo "$PTHREAD_CC" >&6; } |
| 20528 | else |
| 20529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20530 | $as_echo "no" >&6; } |
| 20531 | fi |
| 20532 | |
| 20533 | |
| 20534 | CC=$PTHREAD_CC |
| 20535 | |
| 20536 | $as_echo "#define COMMON_AIX_FIXES 1" >>confdefs.h |
| 20537 | |
| 20538 | fi |
| 20539 | |
| 20540 | |
| 20541 | |
| 20542 | |
| 20543 | |
| 20544 | reentrant_lib=${ost_cv_thread_library} |
| 20545 | if test -z "$reentrant_lib" ; then |
| 20546 | reentrant_lib=c_r |
| 20547 | fi |
| 20548 | if test "c" = "$reentrant_lib" ; then |
| 20549 | reentrant_lib=c_r |
| 20550 | fi |
| 20551 | if test "none" = "$reentrant_lib" ; then |
| 20552 | reentrant_lib=c_r |
| 20553 | fi |
| 20554 | |
| 20555 | for ac_func in setenv |
| 20556 | do : |
| 20557 | ac_fn_cxx_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 20558 | if test "x$ac_cv_func_setenv" = xyes; then : |
| 20559 | cat >>confdefs.h <<_ACEOF |
| 20560 | #define HAVE_SETENV 1 |
| 20561 | _ACEOF |
| 20562 | |
| 20563 | fi |
| 20564 | done |
| 20565 | |
| 20566 | as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_localtime_r" | $as_tr_sh` |
| 20567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r in -l$reentrant_lib" >&5 |
| 20568 | $as_echo_n "checking for localtime_r in -l$reentrant_lib... " >&6; } |
| 20569 | if eval \${$as_ac_Lib+:} false; then : |
| 20570 | $as_echo_n "(cached) " >&6 |
| 20571 | else |
| 20572 | ac_check_lib_save_LIBS=$LIBS |
| 20573 | LIBS="-l$reentrant_lib $LIBS" |
| 20574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20575 | /* end confdefs.h. */ |
| 20576 | |
| 20577 | /* Override any GCC internal prototype to avoid an error. |
| 20578 | Use char because int might match the return type of a GCC |
| 20579 | builtin and then its argument prototype would still apply. */ |
| 20580 | #ifdef __cplusplus |
| 20581 | extern "C" |
| 20582 | #endif |
| 20583 | char localtime_r (); |
| 20584 | int |
| 20585 | main () |
| 20586 | { |
| 20587 | return localtime_r (); |
| 20588 | ; |
| 20589 | return 0; |
| 20590 | } |
| 20591 | _ACEOF |
| 20592 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20593 | eval "$as_ac_Lib=yes" |
| 20594 | else |
| 20595 | eval "$as_ac_Lib=no" |
| 20596 | fi |
| 20597 | rm -f core conftest.err conftest.$ac_objext \ |
| 20598 | conftest$ac_exeext conftest.$ac_ext |
| 20599 | LIBS=$ac_check_lib_save_LIBS |
| 20600 | fi |
| 20601 | eval ac_res=\$$as_ac_Lib |
| 20602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20603 | $as_echo "$ac_res" >&6; } |
| 20604 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20605 | |
| 20606 | |
| 20607 | $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h |
| 20608 | |
| 20609 | |
| 20610 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
| 20611 | |
| 20612 | else |
| 20613 | |
| 20614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtok_r in -lc" >&5 |
| 20615 | $as_echo_n "checking for strtok_r in -lc... " >&6; } |
| 20616 | if ${ac_cv_lib_c_strtok_r+:} false; then : |
| 20617 | $as_echo_n "(cached) " >&6 |
| 20618 | else |
| 20619 | ac_check_lib_save_LIBS=$LIBS |
| 20620 | LIBS="-lc $LIBS" |
| 20621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20622 | /* end confdefs.h. */ |
| 20623 | |
| 20624 | /* Override any GCC internal prototype to avoid an error. |
| 20625 | Use char because int might match the return type of a GCC |
| 20626 | builtin and then its argument prototype would still apply. */ |
| 20627 | #ifdef __cplusplus |
| 20628 | extern "C" |
| 20629 | #endif |
| 20630 | char strtok_r (); |
| 20631 | int |
| 20632 | main () |
| 20633 | { |
| 20634 | return strtok_r (); |
| 20635 | ; |
| 20636 | return 0; |
| 20637 | } |
| 20638 | _ACEOF |
| 20639 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20640 | ac_cv_lib_c_strtok_r=yes |
| 20641 | else |
| 20642 | ac_cv_lib_c_strtok_r=no |
| 20643 | fi |
| 20644 | rm -f core conftest.err conftest.$ac_objext \ |
| 20645 | conftest$ac_exeext conftest.$ac_ext |
| 20646 | LIBS=$ac_check_lib_save_LIBS |
| 20647 | fi |
| 20648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtok_r" >&5 |
| 20649 | $as_echo "$ac_cv_lib_c_strtok_r" >&6; } |
| 20650 | if test "x$ac_cv_lib_c_strtok_r" = xyes; then : |
| 20651 | $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h |
| 20652 | |
| 20653 | fi |
| 20654 | |
| 20655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r in -lc" >&5 |
| 20656 | $as_echo_n "checking for localtime_r in -lc... " >&6; } |
| 20657 | if ${ac_cv_lib_c_localtime_r+:} false; then : |
| 20658 | $as_echo_n "(cached) " >&6 |
| 20659 | else |
| 20660 | ac_check_lib_save_LIBS=$LIBS |
| 20661 | LIBS="-lc $LIBS" |
| 20662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20663 | /* end confdefs.h. */ |
| 20664 | |
| 20665 | /* Override any GCC internal prototype to avoid an error. |
| 20666 | Use char because int might match the return type of a GCC |
| 20667 | builtin and then its argument prototype would still apply. */ |
| 20668 | #ifdef __cplusplus |
| 20669 | extern "C" |
| 20670 | #endif |
| 20671 | char localtime_r (); |
| 20672 | int |
| 20673 | main () |
| 20674 | { |
| 20675 | return localtime_r (); |
| 20676 | ; |
| 20677 | return 0; |
| 20678 | } |
| 20679 | _ACEOF |
| 20680 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20681 | ac_cv_lib_c_localtime_r=yes |
| 20682 | else |
| 20683 | ac_cv_lib_c_localtime_r=no |
| 20684 | fi |
| 20685 | rm -f core conftest.err conftest.$ac_objext \ |
| 20686 | conftest$ac_exeext conftest.$ac_ext |
| 20687 | LIBS=$ac_check_lib_save_LIBS |
| 20688 | fi |
| 20689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_localtime_r" >&5 |
| 20690 | $as_echo "$ac_cv_lib_c_localtime_r" >&6; } |
| 20691 | if test "x$ac_cv_lib_c_localtime_r" = xyes; then : |
| 20692 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
| 20693 | |
| 20694 | fi |
| 20695 | |
| 20696 | |
| 20697 | fi |
| 20698 | |
| 20699 | as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_readdir_r" | $as_tr_sh` |
| 20700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r in -l$reentrant_lib" >&5 |
| 20701 | $as_echo_n "checking for readdir_r in -l$reentrant_lib... " >&6; } |
| 20702 | if eval \${$as_ac_Lib+:} false; then : |
| 20703 | $as_echo_n "(cached) " >&6 |
| 20704 | else |
| 20705 | ac_check_lib_save_LIBS=$LIBS |
| 20706 | LIBS="-l$reentrant_lib $LIBS" |
| 20707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20708 | /* end confdefs.h. */ |
| 20709 | |
| 20710 | /* Override any GCC internal prototype to avoid an error. |
| 20711 | Use char because int might match the return type of a GCC |
| 20712 | builtin and then its argument prototype would still apply. */ |
| 20713 | #ifdef __cplusplus |
| 20714 | extern "C" |
| 20715 | #endif |
| 20716 | char readdir_r (); |
| 20717 | int |
| 20718 | main () |
| 20719 | { |
| 20720 | return readdir_r (); |
| 20721 | ; |
| 20722 | return 0; |
| 20723 | } |
| 20724 | _ACEOF |
| 20725 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20726 | eval "$as_ac_Lib=yes" |
| 20727 | else |
| 20728 | eval "$as_ac_Lib=no" |
| 20729 | fi |
| 20730 | rm -f core conftest.err conftest.$ac_objext \ |
| 20731 | conftest$ac_exeext conftest.$ac_ext |
| 20732 | LIBS=$ac_check_lib_save_LIBS |
| 20733 | fi |
| 20734 | eval ac_res=\$$as_ac_Lib |
| 20735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20736 | $as_echo "$ac_res" >&6; } |
| 20737 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20738 | |
| 20739 | |
| 20740 | $as_echo "#define HAVE_READDIR_R 1" >>confdefs.h |
| 20741 | |
| 20742 | else |
| 20743 | |
| 20744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r in -lc" >&5 |
| 20745 | $as_echo_n "checking for readdir_r in -lc... " >&6; } |
| 20746 | if ${ac_cv_lib_c_readdir_r+:} false; then : |
| 20747 | $as_echo_n "(cached) " >&6 |
| 20748 | else |
| 20749 | ac_check_lib_save_LIBS=$LIBS |
| 20750 | LIBS="-lc $LIBS" |
| 20751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20752 | /* end confdefs.h. */ |
| 20753 | |
| 20754 | /* Override any GCC internal prototype to avoid an error. |
| 20755 | Use char because int might match the return type of a GCC |
| 20756 | builtin and then its argument prototype would still apply. */ |
| 20757 | #ifdef __cplusplus |
| 20758 | extern "C" |
| 20759 | #endif |
| 20760 | char readdir_r (); |
| 20761 | int |
| 20762 | main () |
| 20763 | { |
| 20764 | return readdir_r (); |
| 20765 | ; |
| 20766 | return 0; |
| 20767 | } |
| 20768 | _ACEOF |
| 20769 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20770 | ac_cv_lib_c_readdir_r=yes |
| 20771 | else |
| 20772 | ac_cv_lib_c_readdir_r=no |
| 20773 | fi |
| 20774 | rm -f core conftest.err conftest.$ac_objext \ |
| 20775 | conftest$ac_exeext conftest.$ac_ext |
| 20776 | LIBS=$ac_check_lib_save_LIBS |
| 20777 | fi |
| 20778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_readdir_r" >&5 |
| 20779 | $as_echo "$ac_cv_lib_c_readdir_r" >&6; } |
| 20780 | if test "x$ac_cv_lib_c_readdir_r" = xyes; then : |
| 20781 | $as_echo "#define HAVE_READDIR_R 1" >>confdefs.h |
| 20782 | |
| 20783 | fi |
| 20784 | |
| 20785 | |
| 20786 | fi |
| 20787 | |
| 20788 | as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_strerror_r" | $as_tr_sh` |
| 20789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r in -l$reentrant_lib" >&5 |
| 20790 | $as_echo_n "checking for strerror_r in -l$reentrant_lib... " >&6; } |
| 20791 | if eval \${$as_ac_Lib+:} false; then : |
| 20792 | $as_echo_n "(cached) " >&6 |
| 20793 | else |
| 20794 | ac_check_lib_save_LIBS=$LIBS |
| 20795 | LIBS="-l$reentrant_lib $LIBS" |
| 20796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20797 | /* end confdefs.h. */ |
| 20798 | |
| 20799 | /* Override any GCC internal prototype to avoid an error. |
| 20800 | Use char because int might match the return type of a GCC |
| 20801 | builtin and then its argument prototype would still apply. */ |
| 20802 | #ifdef __cplusplus |
| 20803 | extern "C" |
| 20804 | #endif |
| 20805 | char strerror_r (); |
| 20806 | int |
| 20807 | main () |
| 20808 | { |
| 20809 | return strerror_r (); |
| 20810 | ; |
| 20811 | return 0; |
| 20812 | } |
| 20813 | _ACEOF |
| 20814 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20815 | eval "$as_ac_Lib=yes" |
| 20816 | else |
| 20817 | eval "$as_ac_Lib=no" |
| 20818 | fi |
| 20819 | rm -f core conftest.err conftest.$ac_objext \ |
| 20820 | conftest$ac_exeext conftest.$ac_ext |
| 20821 | LIBS=$ac_check_lib_save_LIBS |
| 20822 | fi |
| 20823 | eval ac_res=\$$as_ac_Lib |
| 20824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20825 | $as_echo "$ac_res" >&6; } |
| 20826 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20827 | |
| 20828 | |
| 20829 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h |
| 20830 | |
| 20831 | else |
| 20832 | |
| 20833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r in -lc" >&5 |
| 20834 | $as_echo_n "checking for strerror_r in -lc... " >&6; } |
| 20835 | if ${ac_cv_lib_c_strerror_r+:} false; then : |
| 20836 | $as_echo_n "(cached) " >&6 |
| 20837 | else |
| 20838 | ac_check_lib_save_LIBS=$LIBS |
| 20839 | LIBS="-lc $LIBS" |
| 20840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20841 | /* end confdefs.h. */ |
| 20842 | |
| 20843 | /* Override any GCC internal prototype to avoid an error. |
| 20844 | Use char because int might match the return type of a GCC |
| 20845 | builtin and then its argument prototype would still apply. */ |
| 20846 | #ifdef __cplusplus |
| 20847 | extern "C" |
| 20848 | #endif |
| 20849 | char strerror_r (); |
| 20850 | int |
| 20851 | main () |
| 20852 | { |
| 20853 | return strerror_r (); |
| 20854 | ; |
| 20855 | return 0; |
| 20856 | } |
| 20857 | _ACEOF |
| 20858 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20859 | ac_cv_lib_c_strerror_r=yes |
| 20860 | else |
| 20861 | ac_cv_lib_c_strerror_r=no |
| 20862 | fi |
| 20863 | rm -f core conftest.err conftest.$ac_objext \ |
| 20864 | conftest$ac_exeext conftest.$ac_ext |
| 20865 | LIBS=$ac_check_lib_save_LIBS |
| 20866 | fi |
| 20867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strerror_r" >&5 |
| 20868 | $as_echo "$ac_cv_lib_c_strerror_r" >&6; } |
| 20869 | if test "x$ac_cv_lib_c_strerror_r" = xyes; then : |
| 20870 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h |
| 20871 | |
| 20872 | fi |
| 20873 | |
| 20874 | |
| 20875 | fi |
| 20876 | |
| 20877 | as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_getpwuid_r" | $as_tr_sh` |
| 20878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -l$reentrant_lib" >&5 |
| 20879 | $as_echo_n "checking for getpwuid_r in -l$reentrant_lib... " >&6; } |
| 20880 | if eval \${$as_ac_Lib+:} false; then : |
| 20881 | $as_echo_n "(cached) " >&6 |
| 20882 | else |
| 20883 | ac_check_lib_save_LIBS=$LIBS |
| 20884 | LIBS="-l$reentrant_lib $LIBS" |
| 20885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20886 | /* end confdefs.h. */ |
| 20887 | |
| 20888 | /* Override any GCC internal prototype to avoid an error. |
| 20889 | Use char because int might match the return type of a GCC |
| 20890 | builtin and then its argument prototype would still apply. */ |
| 20891 | #ifdef __cplusplus |
| 20892 | extern "C" |
| 20893 | #endif |
| 20894 | char getpwuid_r (); |
| 20895 | int |
| 20896 | main () |
| 20897 | { |
| 20898 | return getpwuid_r (); |
| 20899 | ; |
| 20900 | return 0; |
| 20901 | } |
| 20902 | _ACEOF |
| 20903 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20904 | eval "$as_ac_Lib=yes" |
| 20905 | else |
| 20906 | eval "$as_ac_Lib=no" |
| 20907 | fi |
| 20908 | rm -f core conftest.err conftest.$ac_objext \ |
| 20909 | conftest$ac_exeext conftest.$ac_ext |
| 20910 | LIBS=$ac_check_lib_save_LIBS |
| 20911 | fi |
| 20912 | eval ac_res=\$$as_ac_Lib |
| 20913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20914 | $as_echo "$ac_res" >&6; } |
| 20915 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 20916 | |
| 20917 | |
| 20918 | $as_echo "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 20919 | |
| 20920 | |
| 20921 | $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 20922 | |
| 20923 | else |
| 20924 | |
| 20925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 |
| 20926 | $as_echo_n "checking for getpwuid_r in -lc... " >&6; } |
| 20927 | if ${ac_cv_lib_c_getpwuid_r+:} false; then : |
| 20928 | $as_echo_n "(cached) " >&6 |
| 20929 | else |
| 20930 | ac_check_lib_save_LIBS=$LIBS |
| 20931 | LIBS="-lc $LIBS" |
| 20932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20933 | /* end confdefs.h. */ |
| 20934 | |
| 20935 | /* Override any GCC internal prototype to avoid an error. |
| 20936 | Use char because int might match the return type of a GCC |
| 20937 | builtin and then its argument prototype would still apply. */ |
| 20938 | #ifdef __cplusplus |
| 20939 | extern "C" |
| 20940 | #endif |
| 20941 | char getpwuid_r (); |
| 20942 | int |
| 20943 | main () |
| 20944 | { |
| 20945 | return getpwuid_r (); |
| 20946 | ; |
| 20947 | return 0; |
| 20948 | } |
| 20949 | _ACEOF |
| 20950 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20951 | ac_cv_lib_c_getpwuid_r=yes |
| 20952 | else |
| 20953 | ac_cv_lib_c_getpwuid_r=no |
| 20954 | fi |
| 20955 | rm -f core conftest.err conftest.$ac_objext \ |
| 20956 | conftest$ac_exeext conftest.$ac_ext |
| 20957 | LIBS=$ac_check_lib_save_LIBS |
| 20958 | fi |
| 20959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 |
| 20960 | $as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } |
| 20961 | if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : |
| 20962 | $as_echo "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 20963 | |
| 20964 | fi |
| 20965 | |
| 20966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r in -lc" >&5 |
| 20967 | $as_echo_n "checking for getpwnam_r in -lc... " >&6; } |
| 20968 | if ${ac_cv_lib_c_getpwnam_r+:} false; then : |
| 20969 | $as_echo_n "(cached) " >&6 |
| 20970 | else |
| 20971 | ac_check_lib_save_LIBS=$LIBS |
| 20972 | LIBS="-lc $LIBS" |
| 20973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20974 | /* end confdefs.h. */ |
| 20975 | |
| 20976 | /* Override any GCC internal prototype to avoid an error. |
| 20977 | Use char because int might match the return type of a GCC |
| 20978 | builtin and then its argument prototype would still apply. */ |
| 20979 | #ifdef __cplusplus |
| 20980 | extern "C" |
| 20981 | #endif |
| 20982 | char getpwnam_r (); |
| 20983 | int |
| 20984 | main () |
| 20985 | { |
| 20986 | return getpwnam_r (); |
| 20987 | ; |
| 20988 | return 0; |
| 20989 | } |
| 20990 | _ACEOF |
| 20991 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20992 | ac_cv_lib_c_getpwnam_r=yes |
| 20993 | else |
| 20994 | ac_cv_lib_c_getpwnam_r=no |
| 20995 | fi |
| 20996 | rm -f core conftest.err conftest.$ac_objext \ |
| 20997 | conftest$ac_exeext conftest.$ac_ext |
| 20998 | LIBS=$ac_check_lib_save_LIBS |
| 20999 | fi |
| 21000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwnam_r" >&5 |
| 21001 | $as_echo "$ac_cv_lib_c_getpwnam_r" >&6; } |
| 21002 | if test "x$ac_cv_lib_c_getpwnam_r" = xyes; then : |
| 21003 | $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 21004 | |
| 21005 | fi |
| 21006 | |
| 21007 | |
| 21008 | fi |
| 21009 | |
| 21010 | as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_getgrnam_r" | $as_tr_sh` |
| 21011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r in -l$reentrant_lib" >&5 |
| 21012 | $as_echo_n "checking for getgrnam_r in -l$reentrant_lib... " >&6; } |
| 21013 | if eval \${$as_ac_Lib+:} false; then : |
| 21014 | $as_echo_n "(cached) " >&6 |
| 21015 | else |
| 21016 | ac_check_lib_save_LIBS=$LIBS |
| 21017 | LIBS="-l$reentrant_lib $LIBS" |
| 21018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21019 | /* end confdefs.h. */ |
| 21020 | |
| 21021 | /* Override any GCC internal prototype to avoid an error. |
| 21022 | Use char because int might match the return type of a GCC |
| 21023 | builtin and then its argument prototype would still apply. */ |
| 21024 | #ifdef __cplusplus |
| 21025 | extern "C" |
| 21026 | #endif |
| 21027 | char getgrnam_r (); |
| 21028 | int |
| 21029 | main () |
| 21030 | { |
| 21031 | return getgrnam_r (); |
| 21032 | ; |
| 21033 | return 0; |
| 21034 | } |
| 21035 | _ACEOF |
| 21036 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21037 | eval "$as_ac_Lib=yes" |
| 21038 | else |
| 21039 | eval "$as_ac_Lib=no" |
| 21040 | fi |
| 21041 | rm -f core conftest.err conftest.$ac_objext \ |
| 21042 | conftest$ac_exeext conftest.$ac_ext |
| 21043 | LIBS=$ac_check_lib_save_LIBS |
| 21044 | fi |
| 21045 | eval ac_res=\$$as_ac_Lib |
| 21046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21047 | $as_echo "$ac_res" >&6; } |
| 21048 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21049 | |
| 21050 | |
| 21051 | $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 21052 | |
| 21053 | else |
| 21054 | |
| 21055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r in -lc" >&5 |
| 21056 | $as_echo_n "checking for getgrnam_r in -lc... " >&6; } |
| 21057 | if ${ac_cv_lib_c_getgrnam_r+:} false; then : |
| 21058 | $as_echo_n "(cached) " >&6 |
| 21059 | else |
| 21060 | ac_check_lib_save_LIBS=$LIBS |
| 21061 | LIBS="-lc $LIBS" |
| 21062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21063 | /* end confdefs.h. */ |
| 21064 | |
| 21065 | /* Override any GCC internal prototype to avoid an error. |
| 21066 | Use char because int might match the return type of a GCC |
| 21067 | builtin and then its argument prototype would still apply. */ |
| 21068 | #ifdef __cplusplus |
| 21069 | extern "C" |
| 21070 | #endif |
| 21071 | char getgrnam_r (); |
| 21072 | int |
| 21073 | main () |
| 21074 | { |
| 21075 | return getgrnam_r (); |
| 21076 | ; |
| 21077 | return 0; |
| 21078 | } |
| 21079 | _ACEOF |
| 21080 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21081 | ac_cv_lib_c_getgrnam_r=yes |
| 21082 | else |
| 21083 | ac_cv_lib_c_getgrnam_r=no |
| 21084 | fi |
| 21085 | rm -f core conftest.err conftest.$ac_objext \ |
| 21086 | conftest$ac_exeext conftest.$ac_ext |
| 21087 | LIBS=$ac_check_lib_save_LIBS |
| 21088 | fi |
| 21089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgrnam_r" >&5 |
| 21090 | $as_echo "$ac_cv_lib_c_getgrnam_r" >&6; } |
| 21091 | if test "x$ac_cv_lib_c_getgrnam_r" = xyes; then : |
| 21092 | $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 21093 | |
| 21094 | fi |
| 21095 | |
| 21096 | |
| 21097 | fi |
| 21098 | |
| 21099 | |
| 21100 | |
| 21101 | |
| 21102 | |
| 21103 | for ac_header in poll.h sys/poll.h sys/stream.h |
| 21104 | do : |
| 21105 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21106 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21107 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21108 | cat >>confdefs.h <<_ACEOF |
| 21109 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21110 | _ACEOF |
| 21111 | |
| 21112 | fi |
| 21113 | |
| 21114 | done |
| 21115 | |
| 21116 | for ac_func in poll |
| 21117 | do : |
| 21118 | ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll" |
| 21119 | if test "x$ac_cv_func_poll" = xyes; then : |
| 21120 | cat >>confdefs.h <<_ACEOF |
| 21121 | #define HAVE_POLL 1 |
| 21122 | _ACEOF |
| 21123 | |
| 21124 | fi |
| 21125 | done |
| 21126 | |
| 21127 | |
| 21128 | |
| 21129 | |
| 21130 | |
| 21131 | |
| 21132 | ost_cv_inet_sockets=no |
| 21133 | ost_cv_unix_sockets=no |
| 21134 | ost_cv_lib_socket="c" |
| 21135 | ost_cv_ipv6=yes |
| 21136 | ost_cv_nat=yes |
| 21137 | ost_cv_nat_detected=no |
| 21138 | SOCKET_LIBS="" |
| 21139 | for ac_header in net/if.h |
| 21140 | do : |
| 21141 | ac_fn_cxx_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default" |
| 21142 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
| 21143 | cat >>confdefs.h <<_ACEOF |
| 21144 | #define HAVE_NET_IF_H 1 |
| 21145 | _ACEOF |
| 21146 | |
| 21147 | fi |
| 21148 | |
| 21149 | done |
| 21150 | |
| 21151 | for ac_header in sys/socket.h |
| 21152 | do : |
| 21153 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 21154 | if test "x$ac_cv_header_sys_socket_h" = xyes; then : |
| 21155 | cat >>confdefs.h <<_ACEOF |
| 21156 | #define HAVE_SYS_SOCKET_H 1 |
| 21157 | _ACEOF |
| 21158 | |
| 21159 | for ac_header in select.h sys/select.h netinet/in_systm.h netinet/ip.h |
| 21160 | do : |
| 21161 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21162 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21163 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21164 | cat >>confdefs.h <<_ACEOF |
| 21165 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21166 | _ACEOF |
| 21167 | |
| 21168 | fi |
| 21169 | |
| 21170 | done |
| 21171 | |
| 21172 | for ac_header in netinet/inet.h netinet/in.h |
| 21173 | do : |
| 21174 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21175 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21176 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21177 | cat >>confdefs.h <<_ACEOF |
| 21178 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21179 | _ACEOF |
| 21180 | |
| 21181 | fi |
| 21182 | |
| 21183 | done |
| 21184 | |
| 21185 | for ac_header in arpa/inet.h |
| 21186 | do : |
| 21187 | ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 21188 | if test "x$ac_cv_header_arpa_inet_h" = xyes; then : |
| 21189 | cat >>confdefs.h <<_ACEOF |
| 21190 | #define HAVE_ARPA_INET_H 1 |
| 21191 | _ACEOF |
| 21192 | ost_cv_inet_sockets=yes |
| 21193 | fi |
| 21194 | |
| 21195 | done |
| 21196 | |
| 21197 | for ac_header in sys/sockio.h |
| 21198 | do : |
| 21199 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 21200 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : |
| 21201 | cat >>confdefs.h <<_ACEOF |
| 21202 | #define HAVE_SYS_SOCKIO_H 1 |
| 21203 | _ACEOF |
| 21204 | |
| 21205 | fi |
| 21206 | |
| 21207 | done |
| 21208 | |
| 21209 | for ac_header in sys/un.h |
| 21210 | do : |
| 21211 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
| 21212 | if test "x$ac_cv_header_sys_un_h" = xyes; then : |
| 21213 | cat >>confdefs.h <<_ACEOF |
| 21214 | #define HAVE_SYS_UN_H 1 |
| 21215 | _ACEOF |
| 21216 | ost_cv_unix_sockets=yes |
| 21217 | fi |
| 21218 | |
| 21219 | done |
| 21220 | |
| 21221 | |
| 21222 | else |
| 21223 | |
| 21224 | for ac_header in winsock2.h winsock.h |
| 21225 | do : |
| 21226 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21227 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21228 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21229 | cat >>confdefs.h <<_ACEOF |
| 21230 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21231 | _ACEOF |
| 21232 | |
| 21233 | ost_cv_lib_socket="wsock32" |
| 21234 | SOCKET_LIBS="-lwsock32 -liberty -lws2_32" |
| 21235 | ost_cv_inet_sockets=yes |
| 21236 | |
| 21237 | fi |
| 21238 | |
| 21239 | done |
| 21240 | |
| 21241 | |
| 21242 | fi |
| 21243 | |
| 21244 | done |
| 21245 | |
| 21246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 21247 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 21248 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 21249 | $as_echo_n "(cached) " >&6 |
| 21250 | else |
| 21251 | ac_check_lib_save_LIBS=$LIBS |
| 21252 | LIBS="-lsocket $LIBS" |
| 21253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21254 | /* end confdefs.h. */ |
| 21255 | |
| 21256 | /* Override any GCC internal prototype to avoid an error. |
| 21257 | Use char because int might match the return type of a GCC |
| 21258 | builtin and then its argument prototype would still apply. */ |
| 21259 | #ifdef __cplusplus |
| 21260 | extern "C" |
| 21261 | #endif |
| 21262 | char socket (); |
| 21263 | int |
| 21264 | main () |
| 21265 | { |
| 21266 | return socket (); |
| 21267 | ; |
| 21268 | return 0; |
| 21269 | } |
| 21270 | _ACEOF |
| 21271 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21272 | ac_cv_lib_socket_socket=yes |
| 21273 | else |
| 21274 | ac_cv_lib_socket_socket=no |
| 21275 | fi |
| 21276 | rm -f core conftest.err conftest.$ac_objext \ |
| 21277 | conftest$ac_exeext conftest.$ac_ext |
| 21278 | LIBS=$ac_check_lib_save_LIBS |
| 21279 | fi |
| 21280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 21281 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 21282 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
| 21283 | |
| 21284 | ost_cv_lib_socket="socket" |
| 21285 | SOCKET_LIBS="-lsocket" |
| 21286 | |
| 21287 | fi |
| 21288 | |
| 21289 | |
| 21290 | if test $ost_cv_inet_sockets = yes ; then |
| 21291 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_getaddrinfo" | $as_tr_sh` |
| 21292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l${ost_cv_lib_socket}" >&5 |
| 21293 | $as_echo_n "checking for getaddrinfo in -l${ost_cv_lib_socket}... " >&6; } |
| 21294 | if eval \${$as_ac_Lib+:} false; then : |
| 21295 | $as_echo_n "(cached) " >&6 |
| 21296 | else |
| 21297 | ac_check_lib_save_LIBS=$LIBS |
| 21298 | LIBS="-l${ost_cv_lib_socket} $LIBS" |
| 21299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21300 | /* end confdefs.h. */ |
| 21301 | |
| 21302 | /* Override any GCC internal prototype to avoid an error. |
| 21303 | Use char because int might match the return type of a GCC |
| 21304 | builtin and then its argument prototype would still apply. */ |
| 21305 | #ifdef __cplusplus |
| 21306 | extern "C" |
| 21307 | #endif |
| 21308 | char getaddrinfo (); |
| 21309 | int |
| 21310 | main () |
| 21311 | { |
| 21312 | return getaddrinfo (); |
| 21313 | ; |
| 21314 | return 0; |
| 21315 | } |
| 21316 | _ACEOF |
| 21317 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21318 | eval "$as_ac_Lib=yes" |
| 21319 | else |
| 21320 | eval "$as_ac_Lib=no" |
| 21321 | fi |
| 21322 | rm -f core conftest.err conftest.$ac_objext \ |
| 21323 | conftest$ac_exeext conftest.$ac_ext |
| 21324 | LIBS=$ac_check_lib_save_LIBS |
| 21325 | fi |
| 21326 | eval ac_res=\$$as_ac_Lib |
| 21327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21328 | $as_echo "$ac_res" >&6; } |
| 21329 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21330 | |
| 21331 | |
| 21332 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
| 21333 | |
| 21334 | |
| 21335 | fi |
| 21336 | |
| 21337 | |
| 21338 | # Check whether --with-ipv6 was given. |
| 21339 | if test "${with_ipv6+set}" = set; then : |
| 21340 | withval=$with_ipv6; ost_cv_ipv6=no |
| 21341 | else |
| 21342 | |
| 21343 | for ac_header in netinet6/in6.h linux/in6.h |
| 21344 | do : |
| 21345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21346 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21347 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21348 | cat >>confdefs.h <<_ACEOF |
| 21349 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21350 | _ACEOF |
| 21351 | |
| 21352 | fi |
| 21353 | |
| 21354 | done |
| 21355 | |
| 21356 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_inet_pton" | $as_tr_sh` |
| 21357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -l${ost_cv_lib_socket}" >&5 |
| 21358 | $as_echo_n "checking for inet_pton in -l${ost_cv_lib_socket}... " >&6; } |
| 21359 | if eval \${$as_ac_Lib+:} false; then : |
| 21360 | $as_echo_n "(cached) " >&6 |
| 21361 | else |
| 21362 | ac_check_lib_save_LIBS=$LIBS |
| 21363 | LIBS="-l${ost_cv_lib_socket} $LIBS" |
| 21364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21365 | /* end confdefs.h. */ |
| 21366 | |
| 21367 | /* Override any GCC internal prototype to avoid an error. |
| 21368 | Use char because int might match the return type of a GCC |
| 21369 | builtin and then its argument prototype would still apply. */ |
| 21370 | #ifdef __cplusplus |
| 21371 | extern "C" |
| 21372 | #endif |
| 21373 | char inet_pton (); |
| 21374 | int |
| 21375 | main () |
| 21376 | { |
| 21377 | return inet_pton (); |
| 21378 | ; |
| 21379 | return 0; |
| 21380 | } |
| 21381 | _ACEOF |
| 21382 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21383 | eval "$as_ac_Lib=yes" |
| 21384 | else |
| 21385 | eval "$as_ac_Lib=no" |
| 21386 | fi |
| 21387 | rm -f core conftest.err conftest.$ac_objext \ |
| 21388 | conftest$ac_exeext conftest.$ac_ext |
| 21389 | LIBS=$ac_check_lib_save_LIBS |
| 21390 | fi |
| 21391 | eval ac_res=\$$as_ac_Lib |
| 21392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21393 | $as_echo "$ac_res" >&6; } |
| 21394 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21395 | |
| 21396 | |
| 21397 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
| 21398 | |
| 21399 | fi |
| 21400 | |
| 21401 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_gethostbyname2" | $as_tr_sh` |
| 21402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -l${ost_cv_lib_socket}" >&5 |
| 21403 | $as_echo_n "checking for gethostbyname2 in -l${ost_cv_lib_socket}... " >&6; } |
| 21404 | if eval \${$as_ac_Lib+:} false; then : |
| 21405 | $as_echo_n "(cached) " >&6 |
| 21406 | else |
| 21407 | ac_check_lib_save_LIBS=$LIBS |
| 21408 | LIBS="-l${ost_cv_lib_socket} $LIBS" |
| 21409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21410 | /* end confdefs.h. */ |
| 21411 | |
| 21412 | /* Override any GCC internal prototype to avoid an error. |
| 21413 | Use char because int might match the return type of a GCC |
| 21414 | builtin and then its argument prototype would still apply. */ |
| 21415 | #ifdef __cplusplus |
| 21416 | extern "C" |
| 21417 | #endif |
| 21418 | char gethostbyname2 (); |
| 21419 | int |
| 21420 | main () |
| 21421 | { |
| 21422 | return gethostbyname2 (); |
| 21423 | ; |
| 21424 | return 0; |
| 21425 | } |
| 21426 | _ACEOF |
| 21427 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21428 | eval "$as_ac_Lib=yes" |
| 21429 | else |
| 21430 | eval "$as_ac_Lib=no" |
| 21431 | fi |
| 21432 | rm -f core conftest.err conftest.$ac_objext \ |
| 21433 | conftest$ac_exeext conftest.$ac_ext |
| 21434 | LIBS=$ac_check_lib_save_LIBS |
| 21435 | fi |
| 21436 | eval ac_res=\$$as_ac_Lib |
| 21437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21438 | $as_echo "$ac_res" >&6; } |
| 21439 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21440 | |
| 21441 | |
| 21442 | $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h |
| 21443 | |
| 21444 | fi |
| 21445 | |
| 21446 | |
| 21447 | fi |
| 21448 | |
| 21449 | for ac_header in sys/libcsys.h |
| 21450 | do : |
| 21451 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/libcsys.h" "ac_cv_header_sys_libcsys_h" "$ac_includes_default" |
| 21452 | if test "x$ac_cv_header_sys_libcsys_h" = xyes; then : |
| 21453 | cat >>confdefs.h <<_ACEOF |
| 21454 | #define HAVE_SYS_LIBCSYS_H 1 |
| 21455 | _ACEOF |
| 21456 | |
| 21457 | fi |
| 21458 | |
| 21459 | done |
| 21460 | |
| 21461 | |
| 21462 | $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h |
| 21463 | |
| 21464 | as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_inet_aton" | $as_tr_sh` |
| 21465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -l${ost_cv_lib_socket}" >&5 |
| 21466 | $as_echo_n "checking for inet_aton in -l${ost_cv_lib_socket}... " >&6; } |
| 21467 | if eval \${$as_ac_Lib+:} false; then : |
| 21468 | $as_echo_n "(cached) " >&6 |
| 21469 | else |
| 21470 | ac_check_lib_save_LIBS=$LIBS |
| 21471 | LIBS="-l${ost_cv_lib_socket} $LIBS" |
| 21472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21473 | /* end confdefs.h. */ |
| 21474 | |
| 21475 | /* Override any GCC internal prototype to avoid an error. |
| 21476 | Use char because int might match the return type of a GCC |
| 21477 | builtin and then its argument prototype would still apply. */ |
| 21478 | #ifdef __cplusplus |
| 21479 | extern "C" |
| 21480 | #endif |
| 21481 | char inet_aton (); |
| 21482 | int |
| 21483 | main () |
| 21484 | { |
| 21485 | return inet_aton (); |
| 21486 | ; |
| 21487 | return 0; |
| 21488 | } |
| 21489 | _ACEOF |
| 21490 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21491 | eval "$as_ac_Lib=yes" |
| 21492 | else |
| 21493 | eval "$as_ac_Lib=no" |
| 21494 | fi |
| 21495 | rm -f core conftest.err conftest.$ac_objext \ |
| 21496 | conftest$ac_exeext conftest.$ac_ext |
| 21497 | LIBS=$ac_check_lib_save_LIBS |
| 21498 | fi |
| 21499 | eval ac_res=\$$as_ac_Lib |
| 21500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21501 | $as_echo "$ac_res" >&6; } |
| 21502 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21503 | |
| 21504 | |
| 21505 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
| 21506 | |
| 21507 | fi |
| 21508 | |
| 21509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t defined" >&5 |
| 21510 | $as_echo_n "checking for socklen_t defined... " >&6; } |
| 21511 | if ${ost_cv_socklen_t+:} false; then : |
| 21512 | $as_echo_n "(cached) " >&6 |
| 21513 | else |
| 21514 | |
| 21515 | ost_cv_socklen_t='no' |
| 21516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21517 | /* end confdefs.h. */ |
| 21518 | #include <sys/socket.h> |
| 21519 | |
| 21520 | _ACEOF |
| 21521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21522 | $EGREP "socklen_t" >/dev/null 2>&1; then : |
| 21523 | ost_cv_socklen_t='yes' |
| 21524 | else |
| 21525 | |
| 21526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21527 | /* end confdefs.h. */ |
| 21528 | #include <cygwin/socket.h> |
| 21529 | |
| 21530 | _ACEOF |
| 21531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21532 | $EGREP "socklen_t" >/dev/null 2>&1; then : |
| 21533 | ost_cv_socklen_t='yes' |
| 21534 | fi |
| 21535 | rm -f conftest* |
| 21536 | |
| 21537 | fi |
| 21538 | rm -f conftest* |
| 21539 | |
| 21540 | |
| 21541 | fi |
| 21542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_socklen_t" >&5 |
| 21543 | $as_echo "$ost_cv_socklen_t" >&6; } |
| 21544 | if test $ost_cv_socklen_t = yes ; then |
| 21545 | |
| 21546 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
| 21547 | |
| 21548 | fi |
| 21549 | |
| 21550 | |
| 21551 | # Check whether --with-nat was given. |
| 21552 | if test "${with_nat+set}" = set; then : |
| 21553 | withval=$with_nat; ost_cv_nat=no |
| 21554 | |
| 21555 | fi |
| 21556 | |
| 21557 | |
| 21558 | if test "$ost_cv_nat" = "yes" ; then |
| 21559 | |
| 21560 | for ac_header in errno.h limits.h sys/types.h sys/socket.h sys/ioctl.h unistd.h |
| 21561 | do : |
| 21562 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21563 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21564 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21565 | cat >>confdefs.h <<_ACEOF |
| 21566 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21567 | _ACEOF |
| 21568 | |
| 21569 | fi |
| 21570 | |
| 21571 | done |
| 21572 | |
| 21573 | for ac_header in net/if.h |
| 21574 | do : |
| 21575 | ac_fn_cxx_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H |
| 21576 | #include <sys/socket.h> |
| 21577 | #endif |
| 21578 | " |
| 21579 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
| 21580 | cat >>confdefs.h <<_ACEOF |
| 21581 | #define HAVE_NET_IF_H 1 |
| 21582 | _ACEOF |
| 21583 | |
| 21584 | fi |
| 21585 | |
| 21586 | done |
| 21587 | |
| 21588 | |
| 21589 | if test "$ost_cv_nat_detected" = "no" ; then |
| 21590 | for ac_header in linux/netfilter_ipv4.h linux/netfilter_ipv6.h |
| 21591 | do : |
| 21592 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21593 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIMITS_H |
| 21594 | #include <limits.h> |
| 21595 | #endif |
| 21596 | " |
| 21597 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21598 | cat >>confdefs.h <<_ACEOF |
| 21599 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21600 | _ACEOF |
| 21601 | |
| 21602 | fi |
| 21603 | |
| 21604 | done |
| 21605 | |
| 21606 | if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes" && |
| 21607 | test "$ac_cv_header_linux_netfilter_ipv6_h" = "yes" && |
| 21608 | test "$ost_cv_ipv6" = "yes" || |
| 21609 | test "$ost_cv_ipv6" = "no" ; then |
| 21610 | |
| 21611 | $as_echo "#define HAVE_NAT_NETFILTER 1" >>confdefs.h |
| 21612 | |
| 21613 | ost_cv_nat_detected="yes" |
| 21614 | fi |
| 21615 | fi |
| 21616 | |
| 21617 | if test "$ost_cv_nat_detected" = "no" ; then |
| 21618 | ip_filter_compat="no" |
| 21619 | for ac_header in netinet/ip_compat.h ip_compat.h netinet/ip_fil_compat.h ip_fil_compat.h |
| 21620 | do : |
| 21621 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21622 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H |
| 21623 | #include <sys/types.h> |
| 21624 | #endif |
| 21625 | #ifdef HAVE_SYS_SOCKET_H |
| 21626 | #include <sys/socket.h> |
| 21627 | #endif |
| 21628 | #ifdef HAVE_NETINET_IN_H |
| 21629 | #include <netinet/in.h> |
| 21630 | #endif |
| 21631 | " |
| 21632 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21633 | cat >>confdefs.h <<_ACEOF |
| 21634 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21635 | _ACEOF |
| 21636 | ip_filter_compat=$ac_header |
| 21637 | break |
| 21638 | fi |
| 21639 | |
| 21640 | done |
| 21641 | |
| 21642 | if test "$ip_filter_compat" != "no" ; then |
| 21643 | ip_filter_fil="no" |
| 21644 | for ac_header in netinet/ip_fil.h ip_fil.h |
| 21645 | do : |
| 21646 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21647 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H |
| 21648 | #include <sys/types.h> |
| 21649 | #endif |
| 21650 | #ifdef HAVE_SYS_SOCKET_H |
| 21651 | #include <sys/socket.h> |
| 21652 | #endif |
| 21653 | #ifdef HAVE_NETINET_IN_H |
| 21654 | #include <netinet/in.h> |
| 21655 | #endif |
| 21656 | #include <$ip_filter_compat> |
| 21657 | " |
| 21658 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21659 | cat >>confdefs.h <<_ACEOF |
| 21660 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21661 | _ACEOF |
| 21662 | ip_filter_fil=$ac_header |
| 21663 | break |
| 21664 | fi |
| 21665 | |
| 21666 | done |
| 21667 | |
| 21668 | ip_filter_nat="no" |
| 21669 | for ac_header in netinet/ip_nat.h ip_nat.h |
| 21670 | do : |
| 21671 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21672 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H |
| 21673 | #include <sys/types.h> |
| 21674 | #endif |
| 21675 | #ifdef HAVE_SYS_SOCKET_H |
| 21676 | #include <sys/socket.h> |
| 21677 | #endif |
| 21678 | #ifdef HAVE_NETINET_IN_H |
| 21679 | #include <netinet/in.h> |
| 21680 | #endif |
| 21681 | #include <$ip_filter_compat> |
| 21682 | #include <$ip_filter_fil> |
| 21683 | #ifdef HAVE_NET_IF_H |
| 21684 | #include <net/if.h> |
| 21685 | #endif |
| 21686 | " |
| 21687 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21688 | cat >>confdefs.h <<_ACEOF |
| 21689 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21690 | _ACEOF |
| 21691 | ip_filter_nat=$ac_header |
| 21692 | break |
| 21693 | fi |
| 21694 | |
| 21695 | done |
| 21696 | |
| 21697 | if test "$ip_filter_fil" != "no" && |
| 21698 | test "$ip_filter_nat" != "no" ; then |
| 21699 | |
| 21700 | $as_echo "#define HAVE_NAT_IPF 1" >>confdefs.h |
| 21701 | |
| 21702 | ost_cv_nat_detected="yes" |
| 21703 | fi |
| 21704 | fi |
| 21705 | fi |
| 21706 | |
| 21707 | if test "$ost_cv_nat_detected" = "no" ; then |
| 21708 | for ac_header in net/pfvar.h |
| 21709 | do : |
| 21710 | ac_fn_cxx_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#ifdef HAVE_SYS_TYPES_H |
| 21711 | #include <sys/types.h> |
| 21712 | #endif |
| 21713 | #ifdef HAVE_SYS_SOCKET_H |
| 21714 | #include <sys/socket.h> |
| 21715 | #endif |
| 21716 | #ifdef HAVE_NET_IF_H |
| 21717 | #include <net/if.h> |
| 21718 | #endif |
| 21719 | #ifdef HAVE_NETINET_IN_H |
| 21720 | #include <netinet/in.h> |
| 21721 | #endif |
| 21722 | " |
| 21723 | if test "x$ac_cv_header_net_pfvar_h" = xyes; then : |
| 21724 | cat >>confdefs.h <<_ACEOF |
| 21725 | #define HAVE_NET_PFVAR_H 1 |
| 21726 | _ACEOF |
| 21727 | |
| 21728 | fi |
| 21729 | |
| 21730 | done |
| 21731 | |
| 21732 | if test "$ac_cv_header_net_pfvar.h" = "yes" ; then |
| 21733 | |
| 21734 | $as_echo "#define HAVE_NAT_PF 1" >>confdefs.h |
| 21735 | |
| 21736 | ost_cv_nat_detected="yes" |
| 21737 | fi |
| 21738 | fi |
| 21739 | |
| 21740 | if test "$ost_cv_nat_detected" = "yes"; then |
| 21741 | |
| 21742 | $as_echo "#define CCXX_NAT 1" >>confdefs.h |
| 21743 | |
| 21744 | else |
| 21745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -------------------------------------------------------" >&5 |
| 21746 | $as_echo "$as_me: WARNING: -------------------------------------------------------" >&2;} |
| 21747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not autodetect NAT engine - pf, ipf or netfilter." >&5 |
| 21748 | $as_echo "$as_me: WARNING: Could not autodetect NAT engine - pf, ipf or netfilter." >&2;} |
| 21749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NAT engine c++ class interface support was disabled. " >&5 |
| 21750 | $as_echo "$as_me: WARNING: NAT engine c++ class interface support was disabled. " >&2;} |
| 21751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is not necessarilly a problem. If you do not plan " >&5 |
| 21752 | $as_echo "$as_me: WARNING: This is not necessarilly a problem. If you do not plan " >&2;} |
| 21753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to use or don't know what this is, than it is safe to " >&5 |
| 21754 | $as_echo "$as_me: WARNING: to use or don't know what this is, than it is safe to " >&2;} |
| 21755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assume that you don't need it. " >&5 |
| 21756 | $as_echo "$as_me: WARNING: assume that you don't need it. " >&2;} |
| 21757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -------------------------------------------------------" >&5 |
| 21758 | $as_echo "$as_me: WARNING: -------------------------------------------------------" >&2;} |
| 21759 | ost_cv_nat="no" |
| 21760 | fi |
| 21761 | fi |
| 21762 | fi |
| 21763 | |
| 21764 | if test $ost_cv_unix_sockets = yes ; then |
| 21765 | |
| 21766 | $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h |
| 21767 | |
| 21768 | fi |
| 21769 | THREAD_LIBS="$SOCKET_LIBS $THREAD_LIBS" |
| 21770 | |
| 21771 | |
| 21772 | |
| 21773 | |
| 21774 | ost_cv_ssl=no |
| 21775 | |
| 21776 | # Check whether --with-monotonic was given. |
| 21777 | if test "${with_monotonic+set}" = set; then : |
| 21778 | withval=$with_monotonic; |
| 21779 | else |
| 21780 | |
| 21781 | $as_echo "#define USE_MONOTONIC_TIMER 1" >>confdefs.h |
| 21782 | |
| 21783 | |
| 21784 | fi |
| 21785 | |
| 21786 | |
| 21787 | |
| 21788 | # Check whether --with-extras was given. |
| 21789 | if test "${with_extras+set}" = set; then : |
| 21790 | withval=$with_extras; |
| 21791 | |
| 21792 | ZSTREAM_LIBS="" |
| 21793 | ost_cv_lib_zlib=false |
| 21794 | |
| 21795 | |
| 21796 | OST_LIB_NOXML |
| 21797 | ost_cv_extras=no |
| 21798 | |
| 21799 | else |
| 21800 | |
| 21801 | ost_cv_extras=yes |
| 21802 | |
| 21803 | $as_echo "#define HAVE_EXTRAS 1" >>confdefs.h |
| 21804 | |
| 21805 | |
| 21806 | |
| 21807 | # Check whether --with-gnutls was given. |
| 21808 | if test "${with_gnutls+set}" = set; then : |
| 21809 | withval=$with_gnutls; |
| 21810 | ac_fn_cxx_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
| 21811 | if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
| 21812 | |
| 21813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5 |
| 21814 | $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; } |
| 21815 | if ${ac_cv_lib_gnutls_gnutls_init+:} false; then : |
| 21816 | $as_echo_n "(cached) " >&6 |
| 21817 | else |
| 21818 | ac_check_lib_save_LIBS=$LIBS |
| 21819 | LIBS="-lgnutls $LIBS" |
| 21820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21821 | /* end confdefs.h. */ |
| 21822 | |
| 21823 | /* Override any GCC internal prototype to avoid an error. |
| 21824 | Use char because int might match the return type of a GCC |
| 21825 | builtin and then its argument prototype would still apply. */ |
| 21826 | #ifdef __cplusplus |
| 21827 | extern "C" |
| 21828 | #endif |
| 21829 | char gnutls_init (); |
| 21830 | int |
| 21831 | main () |
| 21832 | { |
| 21833 | return gnutls_init (); |
| 21834 | ; |
| 21835 | return 0; |
| 21836 | } |
| 21837 | _ACEOF |
| 21838 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 21839 | ac_cv_lib_gnutls_gnutls_init=yes |
| 21840 | else |
| 21841 | ac_cv_lib_gnutls_gnutls_init=no |
| 21842 | fi |
| 21843 | rm -f core conftest.err conftest.$ac_objext \ |
| 21844 | conftest$ac_exeext conftest.$ac_ext |
| 21845 | LIBS=$ac_check_lib_save_LIBS |
| 21846 | fi |
| 21847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5 |
| 21848 | $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; } |
| 21849 | if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then : |
| 21850 | |
| 21851 | SSL_LIBS="-lgnutls -lgcrypt" |
| 21852 | ost_cv_ssl=true |
| 21853 | |
| 21854 | $as_echo "#define CCXX_SSL GNUTLS" >>confdefs.h |
| 21855 | |
| 21856 | |
| 21857 | $as_echo "#define CCXX_GNUTLS 1" >>confdefs.h |
| 21858 | |
| 21859 | |
| 21860 | fi |
| 21861 | |
| 21862 | |
| 21863 | fi |
| 21864 | |
| 21865 | |
| 21866 | |
| 21867 | else |
| 21868 | |
| 21869 | |
| 21870 | # Check whether --with-openssl was given. |
| 21871 | if test "${with_openssl+set}" = set; then : |
| 21872 | withval=$with_openssl; |
| 21873 | SSL_LIBS="" |
| 21874 | # |
| 21875 | # WE CANNOT YET USE GNUTLS BECAUSE GNUTLS OPENSSL EMULATION DOES |
| 21876 | # NOT SUPPORT THREAD SAFETY, SO ssl.cpp MUST BE REWRITTEN TO USE |
| 21877 | # NATIVE GNUTLS API. |
| 21878 | # |
| 21879 | # AC_CHECK_HEADER(gnutls/gnutls.h,[ |
| 21880 | # AC_CHECK_LIB(gnutls, gnutls_init, [ |
| 21881 | # SSL_LIBS="-lgnutls -lgcrypt -ltasn1" |
| 21882 | # ost_cv_ssl=true |
| 21883 | # AC_DEFINE(CCXX_SSL, [GNUTLS], [defines ssl]) |
| 21884 | # AC_DEFINE(CCXX_GNUTLS, [1], [define gnutls]) |
| 21885 | # ]) |
| 21886 | # ],[ |
| 21887 | ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 21888 | if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : |
| 21889 | |
| 21890 | SSL_LIBS="-lssl" |
| 21891 | ost_cv_ssl=true |
| 21892 | |
| 21893 | $as_echo "#define CCXX_OPENSSL 1" >>confdefs.h |
| 21894 | |
| 21895 | |
| 21896 | $as_echo "#define CCXX_SSL OPENSSL" >>confdefs.h |
| 21897 | |
| 21898 | |
| 21899 | fi |
| 21900 | |
| 21901 | |
| 21902 | # ]) |
| 21903 | |
| 21904 | |
| 21905 | else |
| 21906 | |
| 21907 | SSL_LIBS="" |
| 21908 | |
| 21909 | |
| 21910 | fi |
| 21911 | |
| 21912 | |
| 21913 | fi |
| 21914 | |
| 21915 | |
| 21916 | # Check whether --with-compression was given. |
| 21917 | if test "${with_compression+set}" = set; then : |
| 21918 | withval=$with_compression; |
| 21919 | ZSTREAM_LIBS="" |
| 21920 | ost_cv_lib_zlib=false |
| 21921 | |
| 21922 | |
| 21923 | else |
| 21924 | |
| 21925 | |
| 21926 | ZSTREAM_LIBS="" |
| 21927 | ost_cv_lib_zlib=false |
| 21928 | for ac_header in zlib.h |
| 21929 | do : |
| 21930 | ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 21931 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 21932 | cat >>confdefs.h <<_ACEOF |
| 21933 | #define HAVE_ZLIB_H 1 |
| 21934 | _ACEOF |
| 21935 | |
| 21936 | ZSTREAM_LIBS="-lz" |
| 21937 | |
| 21938 | $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h |
| 21939 | |
| 21940 | ost_cv_lib_zlib=true |
| 21941 | fi |
| 21942 | |
| 21943 | done |
| 21944 | |
| 21945 | |
| 21946 | |
| 21947 | fi |
| 21948 | |
| 21949 | |
| 21950 | fi |
| 21951 | |
| 21952 | |
| 21953 | |
| 21954 | # Check whether --with-memaudit was given. |
| 21955 | if test "${with_memaudit+set}" = set; then : |
| 21956 | withval=$with_memaudit; |
| 21957 | $as_echo "#define COMMON_MEMORY_AUDIT 1" >>confdefs.h |
| 21958 | |
| 21959 | fi |
| 21960 | |
| 21961 | |
| 21962 | |
| 21963 | # Check whether --with-cppunit was given. |
| 21964 | if test "${with_cppunit+set}" = set; then : |
| 21965 | withval=$with_cppunit; |
| 21966 | if test "$withval" != "yes"; then |
| 21967 | CPPUNIT_LIBS="-l$withval" |
| 21968 | else |
| 21969 | CPPUNIT_LIBS="-lcppunit" |
| 21970 | fi |
| 21971 | |
| 21972 | else |
| 21973 | |
| 21974 | CPPUNIT_LIBS=" " |
| 21975 | |
| 21976 | fi |
| 21977 | |
| 21978 | |
| 21979 | |
| 21980 | if test "$CPPUNIT_LIBS" != " "; then |
| 21981 | WITH_CPPUNIT_TESTS_TRUE= |
| 21982 | WITH_CPPUNIT_TESTS_FALSE='#' |
| 21983 | else |
| 21984 | WITH_CPPUNIT_TESTS_TRUE='#' |
| 21985 | WITH_CPPUNIT_TESTS_FALSE= |
| 21986 | fi |
| 21987 | |
| 21988 | |
| 21989 | for ac_header in sys/file.h sys/param.h sys/wait.h syslog.h syslog.hposix_evlog.h ss.h ioctl.h |
| 21990 | do : |
| 21991 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21992 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21993 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 21994 | cat >>confdefs.h <<_ACEOF |
| 21995 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21996 | _ACEOF |
| 21997 | |
| 21998 | fi |
| 21999 | |
| 22000 | done |
| 22001 | |
| 22002 | for ac_func in realpath lstat snprintf memmove strdup lockf waitpid wait4 gettimeofday |
| 22003 | do : |
| 22004 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22005 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 22006 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 22007 | cat >>confdefs.h <<_ACEOF |
| 22008 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22009 | _ACEOF |
| 22010 | |
| 22011 | fi |
| 22012 | done |
| 22013 | |
| 22014 | for ac_func in posix_memalign setegid setpgrp getpagesize |
| 22015 | do : |
| 22016 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22017 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 22018 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 22019 | cat >>confdefs.h <<_ACEOF |
| 22020 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22021 | _ACEOF |
| 22022 | |
| 22023 | fi |
| 22024 | done |
| 22025 | |
| 22026 | |
| 22027 | # C++ stuff must done after library and header |
| 22028 | # (some C++ define require some header) |
| 22029 | |
| 22030 | |
| 22031 | ac_ext=c |
| 22032 | ac_cpp='$CPP $CPPFLAGS' |
| 22033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 22037 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 22038 | # On Suns, sometimes $CPP names a directory. |
| 22039 | if test -n "$CPP" && test -d "$CPP"; then |
| 22040 | CPP= |
| 22041 | fi |
| 22042 | if test -z "$CPP"; then |
| 22043 | if ${ac_cv_prog_CPP+:} false; then : |
| 22044 | $as_echo_n "(cached) " >&6 |
| 22045 | else |
| 22046 | # Double quotes because CPP needs to be expanded |
| 22047 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 22048 | do |
| 22049 | ac_preproc_ok=false |
| 22050 | for ac_c_preproc_warn_flag in '' yes |
| 22051 | do |
| 22052 | # Use a header file that comes with gcc, so configuring glibc |
| 22053 | # with a fresh cross-compiler works. |
| 22054 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22055 | # <limits.h> exists even on freestanding compilers. |
| 22056 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22057 | # not just through cpp. "Syntax error" is here to catch this case. |
| 22058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22059 | /* end confdefs.h. */ |
| 22060 | #ifdef __STDC__ |
| 22061 | # include <limits.h> |
| 22062 | #else |
| 22063 | # include <assert.h> |
| 22064 | #endif |
| 22065 | Syntax error |
| 22066 | _ACEOF |
| 22067 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 22068 | |
| 22069 | else |
| 22070 | # Broken: fails on valid input. |
| 22071 | continue |
| 22072 | fi |
| 22073 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22074 | |
| 22075 | # OK, works on sane cases. Now check whether nonexistent headers |
| 22076 | # can be detected and how. |
| 22077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22078 | /* end confdefs.h. */ |
| 22079 | #include <ac_nonexistent.h> |
| 22080 | _ACEOF |
| 22081 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 22082 | # Broken: success on invalid input. |
| 22083 | continue |
| 22084 | else |
| 22085 | # Passes both tests. |
| 22086 | ac_preproc_ok=: |
| 22087 | break |
| 22088 | fi |
| 22089 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22090 | |
| 22091 | done |
| 22092 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22093 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 22094 | if $ac_preproc_ok; then : |
| 22095 | break |
| 22096 | fi |
| 22097 | |
| 22098 | done |
| 22099 | ac_cv_prog_CPP=$CPP |
| 22100 | |
| 22101 | fi |
| 22102 | CPP=$ac_cv_prog_CPP |
| 22103 | else |
| 22104 | ac_cv_prog_CPP=$CPP |
| 22105 | fi |
| 22106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 22107 | $as_echo "$CPP" >&6; } |
| 22108 | ac_preproc_ok=false |
| 22109 | for ac_c_preproc_warn_flag in '' yes |
| 22110 | do |
| 22111 | # Use a header file that comes with gcc, so configuring glibc |
| 22112 | # with a fresh cross-compiler works. |
| 22113 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22114 | # <limits.h> exists even on freestanding compilers. |
| 22115 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22116 | # not just through cpp. "Syntax error" is here to catch this case. |
| 22117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22118 | /* end confdefs.h. */ |
| 22119 | #ifdef __STDC__ |
| 22120 | # include <limits.h> |
| 22121 | #else |
| 22122 | # include <assert.h> |
| 22123 | #endif |
| 22124 | Syntax error |
| 22125 | _ACEOF |
| 22126 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 22127 | |
| 22128 | else |
| 22129 | # Broken: fails on valid input. |
| 22130 | continue |
| 22131 | fi |
| 22132 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22133 | |
| 22134 | # OK, works on sane cases. Now check whether nonexistent headers |
| 22135 | # can be detected and how. |
| 22136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22137 | /* end confdefs.h. */ |
| 22138 | #include <ac_nonexistent.h> |
| 22139 | _ACEOF |
| 22140 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 22141 | # Broken: success on invalid input. |
| 22142 | continue |
| 22143 | else |
| 22144 | # Passes both tests. |
| 22145 | ac_preproc_ok=: |
| 22146 | break |
| 22147 | fi |
| 22148 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22149 | |
| 22150 | done |
| 22151 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22152 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 22153 | if $ac_preproc_ok; then : |
| 22154 | |
| 22155 | else |
| 22156 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 22157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22158 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 22159 | See \`config.log' for more details" "$LINENO" 5; } |
| 22160 | fi |
| 22161 | |
| 22162 | ac_ext=cpp |
| 22163 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22167 | |
| 22168 | ac_ext=cpp |
| 22169 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22170 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22171 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22172 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22173 | if test -z "$CXX"; then |
| 22174 | if test -n "$CCC"; then |
| 22175 | CXX=$CCC |
| 22176 | else |
| 22177 | if test -n "$ac_tool_prefix"; then |
| 22178 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 22179 | do |
| 22180 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 22181 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 22182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22183 | $as_echo_n "checking for $ac_word... " >&6; } |
| 22184 | if ${ac_cv_prog_CXX+:} false; then : |
| 22185 | $as_echo_n "(cached) " >&6 |
| 22186 | else |
| 22187 | if test -n "$CXX"; then |
| 22188 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 22189 | else |
| 22190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22191 | for as_dir in $PATH |
| 22192 | do |
| 22193 | IFS=$as_save_IFS |
| 22194 | test -z "$as_dir" && as_dir=. |
| 22195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22197 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 22198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22199 | break 2 |
| 22200 | fi |
| 22201 | done |
| 22202 | done |
| 22203 | IFS=$as_save_IFS |
| 22204 | |
| 22205 | fi |
| 22206 | fi |
| 22207 | CXX=$ac_cv_prog_CXX |
| 22208 | if test -n "$CXX"; then |
| 22209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 22210 | $as_echo "$CXX" >&6; } |
| 22211 | else |
| 22212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22213 | $as_echo "no" >&6; } |
| 22214 | fi |
| 22215 | |
| 22216 | |
| 22217 | test -n "$CXX" && break |
| 22218 | done |
| 22219 | fi |
| 22220 | if test -z "$CXX"; then |
| 22221 | ac_ct_CXX=$CXX |
| 22222 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 22223 | do |
| 22224 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 22225 | set dummy $ac_prog; ac_word=$2 |
| 22226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22227 | $as_echo_n "checking for $ac_word... " >&6; } |
| 22228 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 22229 | $as_echo_n "(cached) " >&6 |
| 22230 | else |
| 22231 | if test -n "$ac_ct_CXX"; then |
| 22232 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 22233 | else |
| 22234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22235 | for as_dir in $PATH |
| 22236 | do |
| 22237 | IFS=$as_save_IFS |
| 22238 | test -z "$as_dir" && as_dir=. |
| 22239 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22241 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 22242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22243 | break 2 |
| 22244 | fi |
| 22245 | done |
| 22246 | done |
| 22247 | IFS=$as_save_IFS |
| 22248 | |
| 22249 | fi |
| 22250 | fi |
| 22251 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 22252 | if test -n "$ac_ct_CXX"; then |
| 22253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 22254 | $as_echo "$ac_ct_CXX" >&6; } |
| 22255 | else |
| 22256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22257 | $as_echo "no" >&6; } |
| 22258 | fi |
| 22259 | |
| 22260 | |
| 22261 | test -n "$ac_ct_CXX" && break |
| 22262 | done |
| 22263 | |
| 22264 | if test "x$ac_ct_CXX" = x; then |
| 22265 | CXX="g++" |
| 22266 | else |
| 22267 | case $cross_compiling:$ac_tool_warned in |
| 22268 | yes:) |
| 22269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22270 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22271 | ac_tool_warned=yes ;; |
| 22272 | esac |
| 22273 | CXX=$ac_ct_CXX |
| 22274 | fi |
| 22275 | fi |
| 22276 | |
| 22277 | fi |
| 22278 | fi |
| 22279 | # Provide some information about the compiler. |
| 22280 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 22281 | set X $ac_compile |
| 22282 | ac_compiler=$2 |
| 22283 | for ac_option in --version -v -V -qversion; do |
| 22284 | { { ac_try="$ac_compiler $ac_option >&5" |
| 22285 | case "(($ac_try" in |
| 22286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22287 | *) ac_try_echo=$ac_try;; |
| 22288 | esac |
| 22289 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 22290 | $as_echo "$ac_try_echo"; } >&5 |
| 22291 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 22292 | ac_status=$? |
| 22293 | if test -s conftest.err; then |
| 22294 | sed '10a\ |
| 22295 | ... rest of stderr output deleted ... |
| 22296 | 10q' conftest.err >conftest.er1 |
| 22297 | cat conftest.er1 >&5 |
| 22298 | fi |
| 22299 | rm -f conftest.er1 conftest.err |
| 22300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22301 | test $ac_status = 0; } |
| 22302 | done |
| 22303 | |
| 22304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 22305 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 22306 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 22307 | $as_echo_n "(cached) " >&6 |
| 22308 | else |
| 22309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22310 | /* end confdefs.h. */ |
| 22311 | |
| 22312 | int |
| 22313 | main () |
| 22314 | { |
| 22315 | #ifndef __GNUC__ |
| 22316 | choke me |
| 22317 | #endif |
| 22318 | |
| 22319 | ; |
| 22320 | return 0; |
| 22321 | } |
| 22322 | _ACEOF |
| 22323 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22324 | ac_compiler_gnu=yes |
| 22325 | else |
| 22326 | ac_compiler_gnu=no |
| 22327 | fi |
| 22328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22329 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 22330 | |
| 22331 | fi |
| 22332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 22333 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 22334 | if test $ac_compiler_gnu = yes; then |
| 22335 | GXX=yes |
| 22336 | else |
| 22337 | GXX= |
| 22338 | fi |
| 22339 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 22340 | ac_save_CXXFLAGS=$CXXFLAGS |
| 22341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 22342 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 22343 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 22344 | $as_echo_n "(cached) " >&6 |
| 22345 | else |
| 22346 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 22347 | ac_cxx_werror_flag=yes |
| 22348 | ac_cv_prog_cxx_g=no |
| 22349 | CXXFLAGS="-g" |
| 22350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22351 | /* end confdefs.h. */ |
| 22352 | |
| 22353 | int |
| 22354 | main () |
| 22355 | { |
| 22356 | |
| 22357 | ; |
| 22358 | return 0; |
| 22359 | } |
| 22360 | _ACEOF |
| 22361 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22362 | ac_cv_prog_cxx_g=yes |
| 22363 | else |
| 22364 | CXXFLAGS="" |
| 22365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22366 | /* end confdefs.h. */ |
| 22367 | |
| 22368 | int |
| 22369 | main () |
| 22370 | { |
| 22371 | |
| 22372 | ; |
| 22373 | return 0; |
| 22374 | } |
| 22375 | _ACEOF |
| 22376 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22377 | |
| 22378 | else |
| 22379 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 22380 | CXXFLAGS="-g" |
| 22381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22382 | /* end confdefs.h. */ |
| 22383 | |
| 22384 | int |
| 22385 | main () |
| 22386 | { |
| 22387 | |
| 22388 | ; |
| 22389 | return 0; |
| 22390 | } |
| 22391 | _ACEOF |
| 22392 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22393 | ac_cv_prog_cxx_g=yes |
| 22394 | fi |
| 22395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22396 | fi |
| 22397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22398 | fi |
| 22399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22400 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 22401 | fi |
| 22402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 22403 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 22404 | if test "$ac_test_CXXFLAGS" = set; then |
| 22405 | CXXFLAGS=$ac_save_CXXFLAGS |
| 22406 | elif test $ac_cv_prog_cxx_g = yes; then |
| 22407 | if test "$GXX" = yes; then |
| 22408 | CXXFLAGS="-g -O2" |
| 22409 | else |
| 22410 | CXXFLAGS="-g" |
| 22411 | fi |
| 22412 | else |
| 22413 | if test "$GXX" = yes; then |
| 22414 | CXXFLAGS="-O2" |
| 22415 | else |
| 22416 | CXXFLAGS= |
| 22417 | fi |
| 22418 | fi |
| 22419 | ac_ext=cpp |
| 22420 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22421 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22422 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22423 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22424 | |
| 22425 | ac_ext=cpp |
| 22426 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22427 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22428 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22429 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 22431 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 22432 | if test -z "$CXXCPP"; then |
| 22433 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 22434 | $as_echo_n "(cached) " >&6 |
| 22435 | else |
| 22436 | # Double quotes because CXXCPP needs to be expanded |
| 22437 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 22438 | do |
| 22439 | ac_preproc_ok=false |
| 22440 | for ac_cxx_preproc_warn_flag in '' yes |
| 22441 | do |
| 22442 | # Use a header file that comes with gcc, so configuring glibc |
| 22443 | # with a fresh cross-compiler works. |
| 22444 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22445 | # <limits.h> exists even on freestanding compilers. |
| 22446 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22447 | # not just through cpp. "Syntax error" is here to catch this case. |
| 22448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22449 | /* end confdefs.h. */ |
| 22450 | #ifdef __STDC__ |
| 22451 | # include <limits.h> |
| 22452 | #else |
| 22453 | # include <assert.h> |
| 22454 | #endif |
| 22455 | Syntax error |
| 22456 | _ACEOF |
| 22457 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 22458 | |
| 22459 | else |
| 22460 | # Broken: fails on valid input. |
| 22461 | continue |
| 22462 | fi |
| 22463 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22464 | |
| 22465 | # OK, works on sane cases. Now check whether nonexistent headers |
| 22466 | # can be detected and how. |
| 22467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22468 | /* end confdefs.h. */ |
| 22469 | #include <ac_nonexistent.h> |
| 22470 | _ACEOF |
| 22471 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 22472 | # Broken: success on invalid input. |
| 22473 | continue |
| 22474 | else |
| 22475 | # Passes both tests. |
| 22476 | ac_preproc_ok=: |
| 22477 | break |
| 22478 | fi |
| 22479 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22480 | |
| 22481 | done |
| 22482 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22483 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 22484 | if $ac_preproc_ok; then : |
| 22485 | break |
| 22486 | fi |
| 22487 | |
| 22488 | done |
| 22489 | ac_cv_prog_CXXCPP=$CXXCPP |
| 22490 | |
| 22491 | fi |
| 22492 | CXXCPP=$ac_cv_prog_CXXCPP |
| 22493 | else |
| 22494 | ac_cv_prog_CXXCPP=$CXXCPP |
| 22495 | fi |
| 22496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 22497 | $as_echo "$CXXCPP" >&6; } |
| 22498 | ac_preproc_ok=false |
| 22499 | for ac_cxx_preproc_warn_flag in '' yes |
| 22500 | do |
| 22501 | # Use a header file that comes with gcc, so configuring glibc |
| 22502 | # with a fresh cross-compiler works. |
| 22503 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22504 | # <limits.h> exists even on freestanding compilers. |
| 22505 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22506 | # not just through cpp. "Syntax error" is here to catch this case. |
| 22507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22508 | /* end confdefs.h. */ |
| 22509 | #ifdef __STDC__ |
| 22510 | # include <limits.h> |
| 22511 | #else |
| 22512 | # include <assert.h> |
| 22513 | #endif |
| 22514 | Syntax error |
| 22515 | _ACEOF |
| 22516 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 22517 | |
| 22518 | else |
| 22519 | # Broken: fails on valid input. |
| 22520 | continue |
| 22521 | fi |
| 22522 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22523 | |
| 22524 | # OK, works on sane cases. Now check whether nonexistent headers |
| 22525 | # can be detected and how. |
| 22526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22527 | /* end confdefs.h. */ |
| 22528 | #include <ac_nonexistent.h> |
| 22529 | _ACEOF |
| 22530 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 22531 | # Broken: success on invalid input. |
| 22532 | continue |
| 22533 | else |
| 22534 | # Passes both tests. |
| 22535 | ac_preproc_ok=: |
| 22536 | break |
| 22537 | fi |
| 22538 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 22539 | |
| 22540 | done |
| 22541 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22542 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 22543 | if $ac_preproc_ok; then : |
| 22544 | |
| 22545 | else |
| 22546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 22547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22548 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 22549 | See \`config.log' for more details" "$LINENO" 5; } |
| 22550 | fi |
| 22551 | |
| 22552 | ac_ext=cpp |
| 22553 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22554 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22555 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22556 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22557 | |
| 22558 | |
| 22559 | |
| 22560 | |
| 22561 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22562 | CXXFLAGS="" |
| 22563 | ac_ext=cpp |
| 22564 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22565 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22566 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22567 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22568 | |
| 22569 | |
| 22570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} has built-in bool type" >&5 |
| 22571 | $as_echo_n "checking whether ${CXX} has built-in bool type... " >&6; } |
| 22572 | if ${ac_cv_cxx_bool_type+:} false; then : |
| 22573 | $as_echo_n "(cached) " >&6 |
| 22574 | else |
| 22575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22576 | /* end confdefs.h. */ |
| 22577 | |
| 22578 | int |
| 22579 | main () |
| 22580 | { |
| 22581 | bool b1=true; bool b2=false; |
| 22582 | ; |
| 22583 | return 0; |
| 22584 | } |
| 22585 | _ACEOF |
| 22586 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22587 | ac_cv_cxx_bool_type=yes |
| 22588 | else |
| 22589 | ac_cv_cxx_bool_type=no |
| 22590 | |
| 22591 | fi |
| 22592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22593 | |
| 22594 | fi |
| 22595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool_type" >&5 |
| 22596 | $as_echo "$ac_cv_cxx_bool_type" >&6; } |
| 22597 | |
| 22598 | if test $ac_cv_cxx_bool_type = yes ; then |
| 22599 | |
| 22600 | $as_echo "#define HAVE_BOOL_TYPE 1" >>confdefs.h |
| 22601 | |
| 22602 | fi |
| 22603 | |
| 22604 | ac_ext=cpp |
| 22605 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22609 | |
| 22610 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 22611 | |
| 22612 | |
| 22613 | |
| 22614 | # allow build of library without exception handling, for use in |
| 22615 | # dedicated targets, etc... |
| 22616 | |
| 22617 | |
| 22618 | # Check whether --with-exceptions was given. |
| 22619 | if test "${with_exceptions+set}" = set; then : |
| 22620 | withval=$with_exceptions; |
| 22621 | |
| 22622 | |
| 22623 | |
| 22624 | |
| 22625 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22626 | CXXFLAGS="" |
| 22627 | ac_ext=cpp |
| 22628 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22632 | |
| 22633 | |
| 22634 | optflags=$CXXFLAGS |
| 22635 | if test ! -z "$optflags" ; then |
| 22636 | CXXFLAGS="" |
| 22637 | for opt in $optflags ; do |
| 22638 | case $opt in |
| 22639 | *rtti*) |
| 22640 | ;; |
| 22641 | *exceptions*) |
| 22642 | ;; |
| 22643 | *) |
| 22644 | CXXFLAGS="$CXXFLAGS $opt" |
| 22645 | ;; |
| 22646 | esac |
| 22647 | done |
| 22648 | fi |
| 22649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-exceptions" >&5 |
| 22650 | $as_echo_n "checking whether ${CXX} supports -fno-exceptions... " >&6; } |
| 22651 | if ${ac_cv_cxx_noexception_flag+:} false; then : |
| 22652 | $as_echo_n "(cached) " >&6 |
| 22653 | else |
| 22654 | |
| 22655 | echo 'void f(){}' >conftest.cpp |
| 22656 | if test -z "`${CXX} -fno-exceptions -c conftest.cpp 2>&1`"; then |
| 22657 | COMMON_FLAGS="$COMMON_FLAGS -fno-exceptions" |
| 22658 | ac_cv_cxx_noexception_flag=yes |
| 22659 | else |
| 22660 | ac_cv_cxx_noexception_flag=no |
| 22661 | fi |
| 22662 | rm -f conftest* |
| 22663 | |
| 22664 | fi |
| 22665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_noexception_flag" >&5 |
| 22666 | $as_echo "$ac_cv_cxx_noexception_flag" >&6; } |
| 22667 | |
| 22668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-rtti" >&5 |
| 22669 | $as_echo_n "checking whether ${CXX} supports -fno-rtti... " >&6; } |
| 22670 | if ${ac_cv_cxx_no_rtti_flag+:} false; then : |
| 22671 | $as_echo_n "(cached) " >&6 |
| 22672 | else |
| 22673 | |
| 22674 | echo '#include <sstream>' >conftest.cpp |
| 22675 | echo 'void f(){}' >>conftest.cpp |
| 22676 | if test -z "`${CXX} -fno-rtti -c conftest.cpp 2>&1`"; then |
| 22677 | COMMON_FLAGS="$COMMON_FLAGS -fno-rtti" |
| 22678 | ac_cv_cxx_no_rtti_flag=yes |
| 22679 | else |
| 22680 | ac_cv_cxx_no_rtti_flag=no |
| 22681 | fi |
| 22682 | rm -f conftest* |
| 22683 | |
| 22684 | fi |
| 22685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_no_rtti_flag" >&5 |
| 22686 | $as_echo "$ac_cv_cxx_no_rtti_flag" >&6; } |
| 22687 | |
| 22688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-check-new" >&5 |
| 22689 | $as_echo_n "checking whether ${CXX} supports -fno-check-new... " >&6; } |
| 22690 | if ${ac_cv_cxx_no_check_new_flag+:} false; then : |
| 22691 | $as_echo_n "(cached) " >&6 |
| 22692 | else |
| 22693 | |
| 22694 | echo 'void f(){}' >conftest.cpp |
| 22695 | if test -z "`${CXX} -fno-check-new -c conftest.cpp 2>&1`"; then |
| 22696 | COMMON_FLAGS="$COMMON_FLAGS -fno-check-new" |
| 22697 | ac_cv_cxx_no_check_new_flag=yes |
| 22698 | else |
| 22699 | ac_cv_cxx_no_check_new_flag=no |
| 22700 | fi |
| 22701 | rm -f conftest* |
| 22702 | |
| 22703 | fi |
| 22704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_no_check_new_flag" >&5 |
| 22705 | $as_echo "$ac_cv_cxx_no_check_new_flag" >&6; } |
| 22706 | |
| 22707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -finline" >&5 |
| 22708 | $as_echo_n "checking whether ${CXX} supports -finline... " >&6; } |
| 22709 | if ${ac_cv_cxx_inline_flag+:} false; then : |
| 22710 | $as_echo_n "(cached) " >&6 |
| 22711 | else |
| 22712 | |
| 22713 | echo 'void f(){}' >conftest.cpp |
| 22714 | if test -z "`${CXX} -finline -c conftest.cpp 2>&1`"; then |
| 22715 | COMMON_FLAGS="$COMMON_FLAGS -finline" |
| 22716 | ac_cv_cxx_inline_flag=yes |
| 22717 | else |
| 22718 | ac_cv_cxx_inline_flag=no |
| 22719 | fi |
| 22720 | rm -f conftest* |
| 22721 | |
| 22722 | fi |
| 22723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_inline_flag" >&5 |
| 22724 | $as_echo "$ac_cv_cxx_inline_flag" >&6; } |
| 22725 | |
| 22726 | |
| 22727 | ac_ext=cpp |
| 22728 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22729 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22730 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22731 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22732 | |
| 22733 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 22734 | |
| 22735 | else |
| 22736 | |
| 22737 | |
| 22738 | |
| 22739 | |
| 22740 | |
| 22741 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22742 | CXXFLAGS="" |
| 22743 | ac_ext=cpp |
| 22744 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22745 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22746 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22747 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22748 | |
| 22749 | |
| 22750 | optflags=$CXXFLAGS |
| 22751 | if test ! -z "$optflags" ; then |
| 22752 | CXXFLAGS="" |
| 22753 | for opt in $optflags ; do |
| 22754 | case $opt in |
| 22755 | *no-rtti*) |
| 22756 | ;; |
| 22757 | *omit-frame-pointer*) |
| 22758 | ;; |
| 22759 | *no-exceptions*) |
| 22760 | ;; |
| 22761 | *) |
| 22762 | CXXFLAGS="$CXXFLAGS $opt" |
| 22763 | ;; |
| 22764 | esac |
| 22765 | done |
| 22766 | fi |
| 22767 | |
| 22768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fhandle-exceptions" >&5 |
| 22769 | $as_echo_n "checking whether ${CXX} supports -fhandle-exceptions... " >&6; } |
| 22770 | if ${ac_cv_cxx_exception_flag+:} false; then : |
| 22771 | $as_echo_n "(cached) " >&6 |
| 22772 | else |
| 22773 | |
| 22774 | echo 'void f(){}' >conftest.cpp |
| 22775 | if test -z "`${CXX} -fhandle-exceptions -c conftest.cpp 2>&1`"; then |
| 22776 | ac_cv_cxx_exception_flag=yes |
| 22777 | COMMON_FLAGS="$COMMON_FLAGS -fhandle-exceptions" |
| 22778 | else |
| 22779 | ac_cv_cxx_exception_flag=no |
| 22780 | fi |
| 22781 | rm -f conftest* |
| 22782 | |
| 22783 | fi |
| 22784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exception_flag" >&5 |
| 22785 | $as_echo "$ac_cv_cxx_exception_flag" >&6; } |
| 22786 | |
| 22787 | if test $ac_cv_cxx_exception_flag = "yes" ; then |
| 22788 | ac_cv_cxx_exception_handling=yes |
| 22789 | else |
| 22790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports exception handling" >&5 |
| 22791 | $as_echo_n "checking whether ${CXX} supports exception handling... " >&6; } |
| 22792 | if ${ac_cv_cxx_exception_handling+:} false; then : |
| 22793 | $as_echo_n "(cached) " >&6 |
| 22794 | else |
| 22795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22796 | /* end confdefs.h. */ |
| 22797 | void f(void) |
| 22798 | { |
| 22799 | throw "abc"; |
| 22800 | } |
| 22801 | void g(void) |
| 22802 | { |
| 22803 | try { |
| 22804 | f(); |
| 22805 | } |
| 22806 | catch(char*){} |
| 22807 | } |
| 22808 | |
| 22809 | int |
| 22810 | main () |
| 22811 | { |
| 22812 | |
| 22813 | ; |
| 22814 | return 0; |
| 22815 | } |
| 22816 | _ACEOF |
| 22817 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22818 | ac_cv_cxx_exception_handling=yes |
| 22819 | else |
| 22820 | ac_cv_cxx_exception_handling=no |
| 22821 | |
| 22822 | fi |
| 22823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22824 | |
| 22825 | fi |
| 22826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exception_handling" >&5 |
| 22827 | $as_echo "$ac_cv_cxx_exception_handling" >&6; } |
| 22828 | fi |
| 22829 | |
| 22830 | if test $ac_cv_cxx_exception_handling = yes ; then |
| 22831 | |
| 22832 | $as_echo "#define CCXX_EXCEPTIONS 1" >>confdefs.h |
| 22833 | |
| 22834 | for ac_header in exception |
| 22835 | do : |
| 22836 | ac_fn_cxx_check_header_mongrel "$LINENO" "exception" "ac_cv_header_exception" "$ac_includes_default" |
| 22837 | if test "x$ac_cv_header_exception" = xyes; then : |
| 22838 | cat >>confdefs.h <<_ACEOF |
| 22839 | #define HAVE_EXCEPTION 1 |
| 22840 | _ACEOF |
| 22841 | |
| 22842 | fi |
| 22843 | |
| 22844 | done |
| 22845 | |
| 22846 | fi |
| 22847 | |
| 22848 | ac_ext=cpp |
| 22849 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22850 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22851 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22852 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22853 | |
| 22854 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 22855 | |
| 22856 | |
| 22857 | |
| 22858 | fi |
| 22859 | |
| 22860 | |
| 22861 | |
| 22862 | |
| 22863 | |
| 22864 | |
| 22865 | |
| 22866 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22867 | CXXFLAGS="" |
| 22868 | ac_ext=cpp |
| 22869 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22873 | |
| 22874 | |
| 22875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports mutable" >&5 |
| 22876 | $as_echo_n "checking whether ${CXX} supports mutable... " >&6; } |
| 22877 | if ${ost_cv_cxx_mutable+:} false; then : |
| 22878 | $as_echo_n "(cached) " >&6 |
| 22879 | else |
| 22880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22881 | /* end confdefs.h. */ |
| 22882 | |
| 22883 | class t {mutable int i;}; |
| 22884 | int |
| 22885 | main () |
| 22886 | { |
| 22887 | return 0; |
| 22888 | ; |
| 22889 | return 0; |
| 22890 | } |
| 22891 | _ACEOF |
| 22892 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22893 | ost_cv_cxx_mutable=yes |
| 22894 | else |
| 22895 | ost_cv_cxx_mutable=no |
| 22896 | |
| 22897 | fi |
| 22898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22899 | |
| 22900 | fi |
| 22901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_mutable" >&5 |
| 22902 | $as_echo "$ost_cv_cxx_mutable" >&6; } |
| 22903 | |
| 22904 | if test $ost_cv_cxx_mutable = no ; then |
| 22905 | COMMON_FLAGS="$COMMON_FLAGS -Dmutable" |
| 22906 | fi |
| 22907 | |
| 22908 | ac_ext=cpp |
| 22909 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22913 | |
| 22914 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 22915 | |
| 22916 | |
| 22917 | |
| 22918 | |
| 22919 | |
| 22920 | |
| 22921 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22922 | CXXFLAGS="" |
| 22923 | ac_ext=cpp |
| 22924 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22925 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22926 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22927 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22928 | |
| 22929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports namespace" >&5 |
| 22930 | $as_echo_n "checking whether ${CXX} supports namespace... " >&6; } |
| 22931 | if ${ost_cv_cxx_namespace+:} false; then : |
| 22932 | $as_echo_n "(cached) " >&6 |
| 22933 | else |
| 22934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22935 | /* end confdefs.h. */ |
| 22936 | |
| 22937 | #include <iostream> |
| 22938 | namespace Test { using namespace std; } |
| 22939 | int |
| 22940 | main () |
| 22941 | { |
| 22942 | return 0; |
| 22943 | ; |
| 22944 | return 0; |
| 22945 | } |
| 22946 | _ACEOF |
| 22947 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 22948 | ost_cv_cxx_namespace=yes |
| 22949 | else |
| 22950 | ost_cv_cxx_namespace=no |
| 22951 | |
| 22952 | fi |
| 22953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22954 | |
| 22955 | fi |
| 22956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_namespace" >&5 |
| 22957 | $as_echo "$ost_cv_cxx_namespace" >&6; } |
| 22958 | |
| 22959 | if test "$ost_cv_cxx_namespace" = yes ; then |
| 22960 | |
| 22961 | $as_echo "#define CCXX_NAMESPACES 1" >>confdefs.h |
| 22962 | |
| 22963 | fi |
| 22964 | |
| 22965 | ac_ext=cpp |
| 22966 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22967 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22968 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22969 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22970 | |
| 22971 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 22972 | |
| 22973 | |
| 22974 | |
| 22975 | |
| 22976 | |
| 22977 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 22978 | CXXFLAGS="" |
| 22979 | ac_ext=cpp |
| 22980 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22981 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22982 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22983 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22984 | |
| 22985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather old style iostreams" >&5 |
| 22986 | $as_echo_n "checking wheather old style iostreams... " >&6; } |
| 22987 | if ${ost_cv_cxx_iostream+:} false; then : |
| 22988 | $as_echo_n "(cached) " >&6 |
| 22989 | else |
| 22990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22991 | /* end confdefs.h. */ |
| 22992 | |
| 22993 | #include <iostream> |
| 22994 | using namespace std; |
| 22995 | |
| 22996 | class mystr : public streambuf, public iostream |
| 22997 | { |
| 22998 | mystr(); |
| 22999 | }; |
| 23000 | |
| 23001 | mystr::mystr() : streambuf(), iostream((streambuf *)this) |
| 23002 | { |
| 23003 | } |
| 23004 | |
| 23005 | int |
| 23006 | main () |
| 23007 | { |
| 23008 | return 0; |
| 23009 | ; |
| 23010 | return 0; |
| 23011 | } |
| 23012 | _ACEOF |
| 23013 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 23014 | ost_cv_cxx_iostream=no |
| 23015 | else |
| 23016 | ost_cv_cxx_iostream=yes |
| 23017 | |
| 23018 | fi |
| 23019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23020 | |
| 23021 | fi |
| 23022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_iostream" >&5 |
| 23023 | $as_echo "$ost_cv_cxx_iostream" >&6; } |
| 23024 | if test $ost_cv_cxx_iostream = yes ; then |
| 23025 | |
| 23026 | $as_echo "#define HAVE_OLD_IOSTREAM 1" >>confdefs.h |
| 23027 | |
| 23028 | fi |
| 23029 | for ac_header in sstream |
| 23030 | do : |
| 23031 | ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" |
| 23032 | if test "x$ac_cv_header_sstream" = xyes; then : |
| 23033 | cat >>confdefs.h <<_ACEOF |
| 23034 | #define HAVE_SSTREAM 1 |
| 23035 | _ACEOF |
| 23036 | |
| 23037 | fi |
| 23038 | |
| 23039 | done |
| 23040 | |
| 23041 | |
| 23042 | ac_ext=cpp |
| 23043 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23047 | |
| 23048 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 23049 | |
| 23050 | |
| 23051 | |
| 23052 | # AC_PROG_CPP |
| 23053 | # AC_PROG_CXX |
| 23054 | # AC_PROG_CXXCPP |
| 23055 | |
| 23056 | |
| 23057 | |
| 23058 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 23059 | CXXFLAGS="" |
| 23060 | ac_ext=cpp |
| 23061 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23065 | |
| 23066 | |
| 23067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} has new(size_t,void*)" >&5 |
| 23068 | $as_echo_n "checking whether ${CXX} has new(size_t,void*)... " >&6; } |
| 23069 | if ${ac_cv_cxx_new_init+:} false; then : |
| 23070 | $as_echo_n "(cached) " >&6 |
| 23071 | else |
| 23072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23073 | /* end confdefs.h. */ |
| 23074 | #include <new> |
| 23075 | #include <iostream> |
| 23076 | using namespace std; |
| 23077 | int |
| 23078 | main () |
| 23079 | { |
| 23080 | int* p1 = new int(); |
| 23081 | int* p2 = new (p1) int(); |
| 23082 | return 0; |
| 23083 | ; |
| 23084 | return 0; |
| 23085 | } |
| 23086 | _ACEOF |
| 23087 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 23088 | ac_cv_cxx_new_init=yes |
| 23089 | else |
| 23090 | ac_cv_cxx_new_init=no |
| 23091 | |
| 23092 | fi |
| 23093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23094 | |
| 23095 | fi |
| 23096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_new_init" >&5 |
| 23097 | $as_echo "$ac_cv_cxx_new_init" >&6; } |
| 23098 | |
| 23099 | if test $ac_cv_cxx_new_init = yes ; then |
| 23100 | |
| 23101 | $as_echo "#define CCXX_HAVE_NEW_INIT 1" >>confdefs.h |
| 23102 | |
| 23103 | fi |
| 23104 | |
| 23105 | ac_ext=cpp |
| 23106 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23110 | |
| 23111 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 23112 | |
| 23113 | |
| 23114 | |
| 23115 | |
| 23116 | |
| 23117 | |
| 23118 | |
| 23119 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 23120 | CXXFLAGS="" |
| 23121 | ac_ext=cpp |
| 23122 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23126 | |
| 23127 | |
| 23128 | |
| 23129 | # Check whether --with-stlport was given. |
| 23130 | if test "${with_stlport+set}" = set; then : |
| 23131 | withval=$with_stlport; |
| 23132 | if test "$withval" = "" ; then |
| 23133 | COMMON_FLAGS="-I$(includedir)/stlport $COMMON_FLAGS" |
| 23134 | else |
| 23135 | COMMON_FLAGS="-I$withval/include/stlport $COMMON_FLAGS" |
| 23136 | LIBS="-L$withval/lib $LIBS" |
| 23137 | fi |
| 23138 | |
| 23139 | |
| 23140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __stl_throw_invalid_argument" >&5 |
| 23141 | $as_echo_n "checking for library containing __stl_throw_invalid_argument... " >&6; } |
| 23142 | if ${ost_cv_search___stl_throw_invalid_argument+:} false; then : |
| 23143 | $as_echo_n "(cached) " >&6 |
| 23144 | else |
| 23145 | |
| 23146 | ac_func_search_save_LIBS="$LIBS" |
| 23147 | ost_cv_search___stl_throw_invalid_argument="no" |
| 23148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23149 | /* end confdefs.h. */ |
| 23150 | |
| 23151 | namespace _STL { void __stl_throw_invalid_argument(const char*); } |
| 23152 | |
| 23153 | int |
| 23154 | main () |
| 23155 | { |
| 23156 | _STL::__stl_throw_invalid_argument("x") |
| 23157 | ; |
| 23158 | return 0; |
| 23159 | } |
| 23160 | _ACEOF |
| 23161 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 23162 | ost_cv_search___stl_throw_invalid_argument="none required" |
| 23163 | fi |
| 23164 | rm -f core conftest.err conftest.$ac_objext \ |
| 23165 | conftest$ac_exeext conftest.$ac_ext |
| 23166 | test "$ost_cv_search___stl_throw_invalid_argument" = "no" && for i in stlport_gcc stlport_cygwin stlport_mingw32 stlport_sunpro stlport_watcom; do |
| 23167 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 23168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23169 | /* end confdefs.h. */ |
| 23170 | |
| 23171 | namespace _STL { void __stl_throw_invalid_argument(const char*); } |
| 23172 | |
| 23173 | int |
| 23174 | main () |
| 23175 | { |
| 23176 | _STL::__stl_throw_invalid_argument("x") |
| 23177 | ; |
| 23178 | return 0; |
| 23179 | } |
| 23180 | _ACEOF |
| 23181 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 23182 | |
| 23183 | ost_cv_search___stl_throw_invalid_argument="-l$i" |
| 23184 | break |
| 23185 | |
| 23186 | fi |
| 23187 | rm -f core conftest.err conftest.$ac_objext \ |
| 23188 | conftest$ac_exeext conftest.$ac_ext |
| 23189 | done |
| 23190 | LIBS="$ac_func_search_save_LIBS" |
| 23191 | |
| 23192 | fi |
| 23193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_search___stl_throw_invalid_argument" >&5 |
| 23194 | $as_echo "$ost_cv_search___stl_throw_invalid_argument" >&6; } |
| 23195 | if test "$ost_cv_search___stl_throw_invalid_argument" != "no"; then |
| 23196 | test "$ost_cv_search___stl_throw_invalid_argument" = "none required" || LIBS="$ost_cv_search___stl_throw_invalid_argument $LIBS" |
| 23197 | |
| 23198 | else : |
| 23199 | |
| 23200 | fi |
| 23201 | |
| 23202 | |
| 23203 | fi |
| 23204 | |
| 23205 | |
| 23206 | ac_ext=cpp |
| 23207 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23211 | |
| 23212 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 23213 | |
| 23214 | |
| 23215 | # Are we using the GNU compiler? |
| 23216 | if test "$GCC" = yes ; then |
| 23217 | WARN_FLAGS="-pedantic -Wall" |
| 23218 | else |
| 23219 | WARN_FLAGS="" |
| 23220 | fi |
| 23221 | |
| 23222 | |
| 23223 | |
| 23224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5 |
| 23225 | $as_echo_n "checking for debugging... " >&6; } |
| 23226 | # Check whether --enable-debug was given. |
| 23227 | if test "${enable_debug+set}" = set; then : |
| 23228 | enableval=$enable_debug; |
| 23229 | fi |
| 23230 | |
| 23231 | if test -z "$enable_debug" ; then |
| 23232 | enable_debug="no" |
| 23233 | elif test $enable_debug = "yes" ; then |
| 23234 | CXXFLAGS="${CXXFLAGS} -g -DDEBUG" |
| 23235 | # CXXFLAGS=`echo $CFLAGS | sed 's/-O.//'` |
| 23236 | fi |
| 23237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
| 23238 | $as_echo "$enable_debug" >&6; } |
| 23239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5 |
| 23240 | $as_echo_n "checking for profiling... " >&6; } |
| 23241 | # Check whether --enable-profiling was given. |
| 23242 | if test "${enable_profiling+set}" = set; then : |
| 23243 | enableval=$enable_profiling; |
| 23244 | fi |
| 23245 | |
| 23246 | if test -z "$enable_profiling" ; then |
| 23247 | enable_profiling="no" |
| 23248 | elif test "$enable_profiling" = "yes" ; then |
| 23249 | CXXFLAGS="${CXXFLAGS} -p" |
| 23250 | fi |
| 23251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 23252 | $as_echo "$enable_profiling" >&6; } |
| 23253 | |
| 23254 | |
| 23255 | if test $ost_cv_gnuwin32 = yes ; then |
| 23256 | CCXX_DIR="\$(top_srcdir)/w32" |
| 23257 | else |
| 23258 | if test $np_cv_prog_msc = yes ; then |
| 23259 | CCXX_DIR="\$(top_srcdir)/w32" |
| 23260 | else |
| 23261 | CCXX_DIR="\$(top_srcdir)/inc" |
| 23262 | fi |
| 23263 | fi |
| 23264 | KDOC_DIR="\$(top_srcdir)/doc" |
| 23265 | |
| 23266 | |
| 23267 | |
| 23268 | |
| 23269 | if test $ost_cv_gnuwin32 = yes; then |
| 23270 | WIN32_TRUE= |
| 23271 | WIN32_FALSE='#' |
| 23272 | else |
| 23273 | WIN32_TRUE='#' |
| 23274 | WIN32_FALSE= |
| 23275 | fi |
| 23276 | |
| 23277 | if test $ost_cv_extras = yes; then |
| 23278 | EXTRAS_TRUE= |
| 23279 | EXTRAS_FALSE='#' |
| 23280 | else |
| 23281 | EXTRAS_TRUE='#' |
| 23282 | EXTRAS_FALSE= |
| 23283 | fi |
| 23284 | |
| 23285 | |
| 23286 | |
| 23287 | # some peculiar things needed for cygwin dll builds and the currently broken toolchain... |
| 23288 | |
| 23289 | SHARED_FLAGS="" |
| 23290 | MODULE_FLAGS="-module -shared -avoid-version" |
| 23291 | STAGE2="" |
| 23292 | BASE_LIB="" |
| 23293 | case "$target_os" in |
| 23294 | osf*) |
| 23295 | COMMON_FLAGS="$COMMON_FLAGS -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1 -D__USE_STD_IOSTREAM" |
| 23296 | ;; |
| 23297 | cygwin*|mingw*) |
| 23298 | BASE_LIB="../src/libccgnu2.la $XML_LIBS $ZSTREAM_LIBS $SSL_LIBS" |
| 23299 | |
| 23300 | $as_echo "#define CYGWIN_IMPORTS 1" >>confdefs.h |
| 23301 | |
| 23302 | SHARED_FLAGS="-no-undefined" |
| 23303 | MODULE_FLAGS="-module -shared -avoid-version -no-undefined" |
| 23304 | ;; |
| 23305 | darwin6*) |
| 23306 | MODULE_FLAGS="-dynamic -bundle -undefined suppress -flat_namespace -read_only_relocs suppress" |
| 23307 | STAGE2="macosx" |
| 23308 | |
| 23309 | $as_echo "#define _DARWIN6_ 1" >>confdefs.h |
| 23310 | |
| 23311 | ;; |
| 23312 | darwin*) |
| 23313 | MODULE_FLAGS="-dynamic -bundle -undefined suppress -flat_namespace -read_only_relocs suppress" |
| 23314 | ;; |
| 23315 | linux*) |
| 23316 | BASE_LIB="../src/libccgnu2.la" |
| 23317 | ;; |
| 23318 | esac |
| 23319 | |
| 23320 | |
| 23321 | |
| 23322 | |
| 23323 | |
| 23324 | |
| 23325 | |
| 23326 | |
| 23327 | |
| 23328 | etc_confdir="$sysconfdir" |
| 23329 | result="***" |
| 23330 | prior="A" |
| 23331 | while test "$prior" != "$result" ; do |
| 23332 | prior=`(echo "$etc_confdir")` |
| 23333 | etc_confdir=`( |
| 23334 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 23335 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
| 23336 | eval echo \""$etc_confdir"\" |
| 23337 | )` |
| 23338 | result=`(echo "$etc_confdir")` |
| 23339 | done |
| 23340 | |
| 23341 | |
| 23342 | |
| 23343 | if test "$sysconfdir" != '${prefix}/etc' ; then |
| 23344 | |
| 23345 | cat >>confdefs.h <<_ACEOF |
| 23346 | #define ETC_PREFIX "$etc_confdir/" |
| 23347 | _ACEOF |
| 23348 | |
| 23349 | elif test "$sysconfdir" != '/etc' ; then |
| 23350 | |
| 23351 | cat >>confdefs.h <<_ACEOF |
| 23352 | #define ETC_CONFDIR "$etc_confdir/" |
| 23353 | _ACEOF |
| 23354 | |
| 23355 | fi |
| 23356 | |
| 23357 | |
| 23358 | |
| 23359 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 23360 | set dummy doxygen; ac_word=$2 |
| 23361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 23362 | $as_echo_n "checking for $ac_word... " >&6; } |
| 23363 | if ${ac_cv_path_DOXYGEN+:} false; then : |
| 23364 | $as_echo_n "(cached) " >&6 |
| 23365 | else |
| 23366 | case $DOXYGEN in |
| 23367 | [\\/]* | ?:[\\/]*) |
| 23368 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 23369 | ;; |
| 23370 | *) |
| 23371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23372 | for as_dir in $PATH |
| 23373 | do |
| 23374 | IFS=$as_save_IFS |
| 23375 | test -z "$as_dir" && as_dir=. |
| 23376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 23377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 23378 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 23379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 23380 | break 2 |
| 23381 | fi |
| 23382 | done |
| 23383 | done |
| 23384 | IFS=$as_save_IFS |
| 23385 | |
| 23386 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no" |
| 23387 | ;; |
| 23388 | esac |
| 23389 | fi |
| 23390 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 23391 | if test -n "$DOXYGEN"; then |
| 23392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
| 23393 | $as_echo "$DOXYGEN" >&6; } |
| 23394 | else |
| 23395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23396 | $as_echo "no" >&6; } |
| 23397 | fi |
| 23398 | |
| 23399 | |
| 23400 | |
| 23401 | if test "$DOXYGEN" != "no"; then |
| 23402 | DOXY_TRUE= |
| 23403 | DOXY_FALSE='#' |
| 23404 | else |
| 23405 | DOXY_TRUE='#' |
| 23406 | DOXY_FALSE= |
| 23407 | fi |
| 23408 | |
| 23409 | |
| 23410 | if test ! -z "$LIBGETOPTOBJS"; then |
| 23411 | GETOPT_LONG_TRUE= |
| 23412 | GETOPT_LONG_FALSE='#' |
| 23413 | else |
| 23414 | GETOPT_LONG_TRUE='#' |
| 23415 | GETOPT_LONG_FALSE= |
| 23416 | fi |
| 23417 | |
| 23418 | |
| 23419 | LIB_VERSION=`echo $LT_RELEASE | sed -e 's/\./_/'` |
| 23420 | LIB_MAJOR=`echo $LT_VERSION | sed -e 's/:.*$//'` |
| 23421 | |
| 23422 | |
| 23423 | |
| 23424 | |
| 23425 | ac_config_files="$ac_config_files src/ccgnu2-config src/libccext2.pc src/libccgnu2.pc src/Makefile w32/Makefile w32/vs2008/Makefile w32/vs2008/ccext2.vcproj w32/vs2008/ccgnu2.vcproj w32/vs2008/common.sln m4/Makefile doc/Doxyfile doc/Makefile demo/Makefile inc/Makefile inc/cc++/Makefile Makefile commoncpp2.spec tests/Makefile commoncpp2.list w32/ccgnu2.dsp w32/ccext2.dsp w32/ccgnu2.vcproj w32/ccext2.vcproj" |
| 23426 | |
| 23427 | cat >confcache <<\_ACEOF |
| 23428 | # This file is a shell script that caches the results of configure |
| 23429 | # tests run on this system so they can be shared between configure |
| 23430 | # scripts and configure runs, see configure's option --config-cache. |
| 23431 | # It is not useful on other systems. If it contains results you don't |
| 23432 | # want to keep, you may remove or edit it. |
| 23433 | # |
| 23434 | # config.status only pays attention to the cache file if you give it |
| 23435 | # the --recheck option to rerun configure. |
| 23436 | # |
| 23437 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 23438 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23439 | # following values. |
| 23440 | |
| 23441 | _ACEOF |
| 23442 | |
| 23443 | # The following way of writing the cache mishandles newlines in values, |
| 23444 | # but we know of no workaround that is simple, portable, and efficient. |
| 23445 | # So, we kill variables containing newlines. |
| 23446 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23447 | # and sets the high bit in the cache file unless we assign to the vars. |
| 23448 | ( |
| 23449 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 23450 | eval ac_val=\$$ac_var |
| 23451 | case $ac_val in #( |
| 23452 | *${as_nl}*) |
| 23453 | case $ac_var in #( |
| 23454 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 23455 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 23456 | esac |
| 23457 | case $ac_var in #( |
| 23458 | _ | IFS | as_nl) ;; #( |
| 23459 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 23460 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 23461 | esac ;; |
| 23462 | esac |
| 23463 | done |
| 23464 | |
| 23465 | (set) 2>&1 | |
| 23466 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23467 | *${as_nl}ac_space=\ *) |
| 23468 | # `set' does not quote correctly, so add quotes: double-quote |
| 23469 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 23470 | sed -n \ |
| 23471 | "s/'/'\\\\''/g; |
| 23472 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 23473 | ;; #( |
| 23474 | *) |
| 23475 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 23476 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 23477 | ;; |
| 23478 | esac | |
| 23479 | sort |
| 23480 | ) | |
| 23481 | sed ' |
| 23482 | /^ac_cv_env_/b end |
| 23483 | t clear |
| 23484 | :clear |
| 23485 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23486 | t end |
| 23487 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23488 | :end' >>confcache |
| 23489 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23490 | if test -w "$cache_file"; then |
| 23491 | if test "x$cache_file" != "x/dev/null"; then |
| 23492 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 23493 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 23494 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 23495 | cat confcache >"$cache_file" |
| 23496 | else |
| 23497 | case $cache_file in #( |
| 23498 | */* | ?:*) |
| 23499 | mv -f confcache "$cache_file"$$ && |
| 23500 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 23501 | *) |
| 23502 | mv -f confcache "$cache_file" ;; |
| 23503 | esac |
| 23504 | fi |
| 23505 | fi |
| 23506 | else |
| 23507 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 23508 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 23509 | fi |
| 23510 | fi |
| 23511 | rm -f confcache |
| 23512 | |
| 23513 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23514 | # Let make expand exec_prefix. |
| 23515 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23516 | |
| 23517 | DEFS=-DHAVE_CONFIG_H |
| 23518 | |
| 23519 | ac_libobjs= |
| 23520 | ac_ltlibobjs= |
| 23521 | U= |
| 23522 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23523 | # 1. Remove the extension, and $U if already installed. |
| 23524 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23525 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 23526 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23527 | # will be set to the directory where LIBOBJS objects are built. |
| 23528 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23529 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 23530 | done |
| 23531 | LIBOBJS=$ac_libobjs |
| 23532 | |
| 23533 | LTLIBOBJS=$ac_ltlibobjs |
| 23534 | |
| 23535 | |
| 23536 | if test -z "${MSWIN32_TRUE}" && test -z "${MSWIN32_FALSE}"; then |
| 23537 | as_fn_error $? "conditional \"MSWIN32\" was never defined. |
| 23538 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23539 | fi |
| 23540 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 23541 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 23542 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23543 | fi |
| 23544 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 23545 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 23546 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23547 | fi |
| 23548 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 23549 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 23550 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23551 | fi |
| 23552 | if test -n "$EXEEXT"; then |
| 23553 | am__EXEEXT_TRUE= |
| 23554 | am__EXEEXT_FALSE='#' |
| 23555 | else |
| 23556 | am__EXEEXT_TRUE='#' |
| 23557 | am__EXEEXT_FALSE= |
| 23558 | fi |
| 23559 | |
| 23560 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 23561 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 23562 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23563 | fi |
| 23564 | if test -z "${WITH_CPPUNIT_TESTS_TRUE}" && test -z "${WITH_CPPUNIT_TESTS_FALSE}"; then |
| 23565 | as_fn_error $? "conditional \"WITH_CPPUNIT_TESTS\" was never defined. |
| 23566 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23567 | fi |
| 23568 | if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then |
| 23569 | as_fn_error $? "conditional \"WIN32\" was never defined. |
| 23570 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23571 | fi |
| 23572 | if test -z "${EXTRAS_TRUE}" && test -z "${EXTRAS_FALSE}"; then |
| 23573 | as_fn_error $? "conditional \"EXTRAS\" was never defined. |
| 23574 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23575 | fi |
| 23576 | if test -z "${DOXY_TRUE}" && test -z "${DOXY_FALSE}"; then |
| 23577 | as_fn_error $? "conditional \"DOXY\" was never defined. |
| 23578 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23579 | fi |
| 23580 | if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then |
| 23581 | as_fn_error $? "conditional \"GETOPT_LONG\" was never defined. |
| 23582 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 23583 | fi |
| 23584 | |
| 23585 | : "${CONFIG_STATUS=./config.status}" |
| 23586 | ac_write_fail=0 |
| 23587 | ac_clean_files_save=$ac_clean_files |
| 23588 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23589 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 23590 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23591 | as_write_fail=0 |
| 23592 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 23593 | #! $SHELL |
| 23594 | # Generated by $as_me. |
| 23595 | # Run this file to recreate the current configuration. |
| 23596 | # Compiler output produced by configure, useful for debugging |
| 23597 | # configure, is in config.log if it exists. |
| 23598 | |
| 23599 | debug=false |
| 23600 | ac_cs_recheck=false |
| 23601 | ac_cs_silent=false |
| 23602 | |
| 23603 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23604 | export SHELL |
| 23605 | _ASEOF |
| 23606 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 23607 | ## -------------------- ## |
| 23608 | ## M4sh Initialization. ## |
| 23609 | ## -------------------- ## |
| 23610 | |
| 23611 | # Be more Bourne compatible |
| 23612 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23613 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 23614 | emulate sh |
| 23615 | NULLCMD=: |
| 23616 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23617 | # is contrary to our usage. Disable this feature. |
| 23618 | alias -g '${1+"$@"}'='"$@"' |
| 23619 | setopt NO_GLOB_SUBST |
| 23620 | else |
| 23621 | case `(set -o) 2>/dev/null` in #( |
| 23622 | *posix*) : |
| 23623 | set -o posix ;; #( |
| 23624 | *) : |
| 23625 | ;; |
| 23626 | esac |
| 23627 | fi |
| 23628 | |
| 23629 | |
| 23630 | as_nl=' |
| 23631 | ' |
| 23632 | export as_nl |
| 23633 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 23634 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 23635 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 23636 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 23637 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 23638 | # but without wasting forks for bash or zsh. |
| 23639 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 23640 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 23641 | as_echo='print -r --' |
| 23642 | as_echo_n='print -rn --' |
| 23643 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 23644 | as_echo='printf %s\n' |
| 23645 | as_echo_n='printf %s' |
| 23646 | else |
| 23647 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 23648 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 23649 | as_echo_n='/usr/ucb/echo -n' |
| 23650 | else |
| 23651 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 23652 | as_echo_n_body='eval |
| 23653 | arg=$1; |
| 23654 | case $arg in #( |
| 23655 | *"$as_nl"*) |
| 23656 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 23657 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 23658 | esac; |
| 23659 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 23660 | ' |
| 23661 | export as_echo_n_body |
| 23662 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 23663 | fi |
| 23664 | export as_echo_body |
| 23665 | as_echo='sh -c $as_echo_body as_echo' |
| 23666 | fi |
| 23667 | |
| 23668 | # The user is always right. |
| 23669 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23670 | PATH_SEPARATOR=: |
| 23671 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 23672 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 23673 | PATH_SEPARATOR=';' |
| 23674 | } |
| 23675 | fi |
| 23676 | |
| 23677 | |
| 23678 | # IFS |
| 23679 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23680 | # there to prevent editors from complaining about space-tab. |
| 23681 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23682 | # splitting by setting IFS to empty value.) |
| 23683 | IFS=" "" $as_nl" |
| 23684 | |
| 23685 | # Find who we are. Look in the path if we contain no directory separator. |
| 23686 | as_myself= |
| 23687 | case $0 in #(( |
| 23688 | *[\\/]* ) as_myself=$0 ;; |
| 23689 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23690 | for as_dir in $PATH |
| 23691 | do |
| 23692 | IFS=$as_save_IFS |
| 23693 | test -z "$as_dir" && as_dir=. |
| 23694 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23695 | done |
| 23696 | IFS=$as_save_IFS |
| 23697 | |
| 23698 | ;; |
| 23699 | esac |
| 23700 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23701 | # in which case we are not to be found in the path. |
| 23702 | if test "x$as_myself" = x; then |
| 23703 | as_myself=$0 |
| 23704 | fi |
| 23705 | if test ! -f "$as_myself"; then |
| 23706 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23707 | exit 1 |
| 23708 | fi |
| 23709 | |
| 23710 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 23711 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 23712 | # suppresses any "Segmentation fault" message there. '((' could |
| 23713 | # trigger a bug in pdksh 5.2.14. |
| 23714 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 23715 | do eval test x\${$as_var+set} = xset \ |
| 23716 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 23717 | done |
| 23718 | PS1='$ ' |
| 23719 | PS2='> ' |
| 23720 | PS4='+ ' |
| 23721 | |
| 23722 | # NLS nuisances. |
| 23723 | LC_ALL=C |
| 23724 | export LC_ALL |
| 23725 | LANGUAGE=C |
| 23726 | export LANGUAGE |
| 23727 | |
| 23728 | # CDPATH. |
| 23729 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 23730 | |
| 23731 | |
| 23732 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 23733 | # ---------------------------------------- |
| 23734 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 23735 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 23736 | # script with STATUS, using 1 if that was 0. |
| 23737 | as_fn_error () |
| 23738 | { |
| 23739 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 23740 | if test "$4"; then |
| 23741 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 23742 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 23743 | fi |
| 23744 | $as_echo "$as_me: error: $2" >&2 |
| 23745 | as_fn_exit $as_status |
| 23746 | } # as_fn_error |
| 23747 | |
| 23748 | |
| 23749 | # as_fn_set_status STATUS |
| 23750 | # ----------------------- |
| 23751 | # Set $? to STATUS, without forking. |
| 23752 | as_fn_set_status () |
| 23753 | { |
| 23754 | return $1 |
| 23755 | } # as_fn_set_status |
| 23756 | |
| 23757 | # as_fn_exit STATUS |
| 23758 | # ----------------- |
| 23759 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 23760 | as_fn_exit () |
| 23761 | { |
| 23762 | set +e |
| 23763 | as_fn_set_status $1 |
| 23764 | exit $1 |
| 23765 | } # as_fn_exit |
| 23766 | |
| 23767 | # as_fn_unset VAR |
| 23768 | # --------------- |
| 23769 | # Portably unset VAR. |
| 23770 | as_fn_unset () |
| 23771 | { |
| 23772 | { eval $1=; unset $1;} |
| 23773 | } |
| 23774 | as_unset=as_fn_unset |
| 23775 | # as_fn_append VAR VALUE |
| 23776 | # ---------------------- |
| 23777 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 23778 | # advantage of any shell optimizations that allow amortized linear growth over |
| 23779 | # repeated appends, instead of the typical quadratic growth present in naive |
| 23780 | # implementations. |
| 23781 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 23782 | eval 'as_fn_append () |
| 23783 | { |
| 23784 | eval $1+=\$2 |
| 23785 | }' |
| 23786 | else |
| 23787 | as_fn_append () |
| 23788 | { |
| 23789 | eval $1=\$$1\$2 |
| 23790 | } |
| 23791 | fi # as_fn_append |
| 23792 | |
| 23793 | # as_fn_arith ARG... |
| 23794 | # ------------------ |
| 23795 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 23796 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 23797 | # must be portable across $(()) and expr. |
| 23798 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 23799 | eval 'as_fn_arith () |
| 23800 | { |
| 23801 | as_val=$(( $* )) |
| 23802 | }' |
| 23803 | else |
| 23804 | as_fn_arith () |
| 23805 | { |
| 23806 | as_val=`expr "$@" || test $? -eq 1` |
| 23807 | } |
| 23808 | fi # as_fn_arith |
| 23809 | |
| 23810 | |
| 23811 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23812 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23813 | as_expr=expr |
| 23814 | else |
| 23815 | as_expr=false |
| 23816 | fi |
| 23817 | |
| 23818 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23819 | as_basename=basename |
| 23820 | else |
| 23821 | as_basename=false |
| 23822 | fi |
| 23823 | |
| 23824 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23825 | as_dirname=dirname |
| 23826 | else |
| 23827 | as_dirname=false |
| 23828 | fi |
| 23829 | |
| 23830 | as_me=`$as_basename -- "$0" || |
| 23831 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23832 | X"$0" : 'X\(//\)$' \| \ |
| 23833 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23834 | $as_echo X/"$0" | |
| 23835 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23836 | s//\1/ |
| 23837 | q |
| 23838 | } |
| 23839 | /^X\/\(\/\/\)$/{ |
| 23840 | s//\1/ |
| 23841 | q |
| 23842 | } |
| 23843 | /^X\/\(\/\).*/{ |
| 23844 | s//\1/ |
| 23845 | q |
| 23846 | } |
| 23847 | s/.*/./; q'` |
| 23848 | |
| 23849 | # Avoid depending upon Character Ranges. |
| 23850 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23851 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23852 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23853 | as_cr_digits='0123456789' |
| 23854 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23855 | |
| 23856 | ECHO_C= ECHO_N= ECHO_T= |
| 23857 | case `echo -n x` in #((((( |
| 23858 | -n*) |
| 23859 | case `echo 'xy\c'` in |
| 23860 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23861 | xy) ECHO_C='\c';; |
| 23862 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 23863 | ECHO_T=' ';; |
| 23864 | esac;; |
| 23865 | *) |
| 23866 | ECHO_N='-n';; |
| 23867 | esac |
| 23868 | |
| 23869 | rm -f conf$$ conf$$.exe conf$$.file |
| 23870 | if test -d conf$$.dir; then |
| 23871 | rm -f conf$$.dir/conf$$.file |
| 23872 | else |
| 23873 | rm -f conf$$.dir |
| 23874 | mkdir conf$$.dir 2>/dev/null |
| 23875 | fi |
| 23876 | if (echo >conf$$.file) 2>/dev/null; then |
| 23877 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23878 | as_ln_s='ln -s' |
| 23879 | # ... but there are two gotchas: |
| 23880 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23881 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23882 | # In both cases, we have to default to `cp -p'. |
| 23883 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 23884 | as_ln_s='cp -p' |
| 23885 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23886 | as_ln_s=ln |
| 23887 | else |
| 23888 | as_ln_s='cp -p' |
| 23889 | fi |
| 23890 | else |
| 23891 | as_ln_s='cp -p' |
| 23892 | fi |
| 23893 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23894 | rmdir conf$$.dir 2>/dev/null |
| 23895 | |
| 23896 | |
| 23897 | # as_fn_mkdir_p |
| 23898 | # ------------- |
| 23899 | # Create "$as_dir" as a directory, including parents if necessary. |
| 23900 | as_fn_mkdir_p () |
| 23901 | { |
| 23902 | |
| 23903 | case $as_dir in #( |
| 23904 | -*) as_dir=./$as_dir;; |
| 23905 | esac |
| 23906 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 23907 | as_dirs= |
| 23908 | while :; do |
| 23909 | case $as_dir in #( |
| 23910 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 23911 | *) as_qdir=$as_dir;; |
| 23912 | esac |
| 23913 | as_dirs="'$as_qdir' $as_dirs" |
| 23914 | as_dir=`$as_dirname -- "$as_dir" || |
| 23915 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23916 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23917 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23918 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 23919 | $as_echo X"$as_dir" | |
| 23920 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23921 | s//\1/ |
| 23922 | q |
| 23923 | } |
| 23924 | /^X\(\/\/\)[^/].*/{ |
| 23925 | s//\1/ |
| 23926 | q |
| 23927 | } |
| 23928 | /^X\(\/\/\)$/{ |
| 23929 | s//\1/ |
| 23930 | q |
| 23931 | } |
| 23932 | /^X\(\/\).*/{ |
| 23933 | s//\1/ |
| 23934 | q |
| 23935 | } |
| 23936 | s/.*/./; q'` |
| 23937 | test -d "$as_dir" && break |
| 23938 | done |
| 23939 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23940 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 23941 | |
| 23942 | |
| 23943 | } # as_fn_mkdir_p |
| 23944 | if mkdir -p . 2>/dev/null; then |
| 23945 | as_mkdir_p='mkdir -p "$as_dir"' |
| 23946 | else |
| 23947 | test -d ./-p && rmdir ./-p |
| 23948 | as_mkdir_p=false |
| 23949 | fi |
| 23950 | |
| 23951 | if test -x / >/dev/null 2>&1; then |
| 23952 | as_test_x='test -x' |
| 23953 | else |
| 23954 | if ls -dL / >/dev/null 2>&1; then |
| 23955 | as_ls_L_option=L |
| 23956 | else |
| 23957 | as_ls_L_option= |
| 23958 | fi |
| 23959 | as_test_x=' |
| 23960 | eval sh -c '\'' |
| 23961 | if test -d "$1"; then |
| 23962 | test -d "$1/."; |
| 23963 | else |
| 23964 | case $1 in #( |
| 23965 | -*)set "./$1";; |
| 23966 | esac; |
| 23967 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 23968 | ???[sx]*):;;*)false;;esac;fi |
| 23969 | '\'' sh |
| 23970 | ' |
| 23971 | fi |
| 23972 | as_executable_p=$as_test_x |
| 23973 | |
| 23974 | # Sed expression to map a string onto a valid CPP name. |
| 23975 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 23976 | |
| 23977 | # Sed expression to map a string onto a valid variable name. |
| 23978 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 23979 | |
| 23980 | |
| 23981 | exec 6>&1 |
| 23982 | ## ----------------------------------- ## |
| 23983 | ## Main body of $CONFIG_STATUS script. ## |
| 23984 | ## ----------------------------------- ## |
| 23985 | _ASEOF |
| 23986 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 23987 | |
| 23988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 23989 | # Save the log message, to keep $0 and so on meaningful, and to |
| 23990 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23991 | # values after options handling. |
| 23992 | ac_log=" |
| 23993 | This file was extended by $as_me, which was |
| 23994 | generated by GNU Autoconf 2.68. Invocation command line was |
| 23995 | |
| 23996 | CONFIG_FILES = $CONFIG_FILES |
| 23997 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23998 | CONFIG_LINKS = $CONFIG_LINKS |
| 23999 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24000 | $ $0 $@ |
| 24001 | |
| 24002 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24003 | " |
| 24004 | |
| 24005 | _ACEOF |
| 24006 | |
| 24007 | case $ac_config_files in *" |
| 24008 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 24009 | esac |
| 24010 | |
| 24011 | case $ac_config_headers in *" |
| 24012 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 24013 | esac |
| 24014 | |
| 24015 | |
| 24016 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24017 | # Files that config.status was made for. |
| 24018 | config_files="$ac_config_files" |
| 24019 | config_headers="$ac_config_headers" |
| 24020 | config_commands="$ac_config_commands" |
| 24021 | |
| 24022 | _ACEOF |
| 24023 | |
| 24024 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24025 | ac_cs_usage="\ |
| 24026 | \`$as_me' instantiates files and other configuration actions |
| 24027 | from templates according to the current configuration. Unless the files |
| 24028 | and actions are specified as TAGs, all are instantiated by default. |
| 24029 | |
| 24030 | Usage: $0 [OPTION]... [TAG]... |
| 24031 | |
| 24032 | -h, --help print this help, then exit |
| 24033 | -V, --version print version number and configuration settings, then exit |
| 24034 | --config print configuration, then exit |
| 24035 | -q, --quiet, --silent |
| 24036 | do not print progress messages |
| 24037 | -d, --debug don't remove temporary files |
| 24038 | --recheck update $as_me by reconfiguring in the same conditions |
| 24039 | --file=FILE[:TEMPLATE] |
| 24040 | instantiate the configuration file FILE |
| 24041 | --header=FILE[:TEMPLATE] |
| 24042 | instantiate the configuration header FILE |
| 24043 | |
| 24044 | Configuration files: |
| 24045 | $config_files |
| 24046 | |
| 24047 | Configuration headers: |
| 24048 | $config_headers |
| 24049 | |
| 24050 | Configuration commands: |
| 24051 | $config_commands |
| 24052 | |
| 24053 | Report bugs to the package provider." |
| 24054 | |
| 24055 | _ACEOF |
| 24056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24057 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 24058 | ac_cs_version="\\ |
| 24059 | config.status |
| 24060 | configured by $0, generated by GNU Autoconf 2.68, |
| 24061 | with options \\"\$ac_cs_config\\" |
| 24062 | |
| 24063 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 24064 | This config.status script is free software; the Free Software Foundation |
| 24065 | gives unlimited permission to copy, distribute and modify it." |
| 24066 | |
| 24067 | ac_pwd='$ac_pwd' |
| 24068 | srcdir='$srcdir' |
| 24069 | INSTALL='$INSTALL' |
| 24070 | MKDIR_P='$MKDIR_P' |
| 24071 | AWK='$AWK' |
| 24072 | test -n "\$AWK" || AWK=awk |
| 24073 | _ACEOF |
| 24074 | |
| 24075 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24076 | # The default lists apply if the user does not specify any file. |
| 24077 | ac_need_defaults=: |
| 24078 | while test $# != 0 |
| 24079 | do |
| 24080 | case $1 in |
| 24081 | --*=?*) |
| 24082 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24083 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 24084 | ac_shift=: |
| 24085 | ;; |
| 24086 | --*=) |
| 24087 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24088 | ac_optarg= |
| 24089 | ac_shift=: |
| 24090 | ;; |
| 24091 | *) |
| 24092 | ac_option=$1 |
| 24093 | ac_optarg=$2 |
| 24094 | ac_shift=shift |
| 24095 | ;; |
| 24096 | esac |
| 24097 | |
| 24098 | case $ac_option in |
| 24099 | # Handling of the options. |
| 24100 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24101 | ac_cs_recheck=: ;; |
| 24102 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24103 | $as_echo "$ac_cs_version"; exit ;; |
| 24104 | --config | --confi | --conf | --con | --co | --c ) |
| 24105 | $as_echo "$ac_cs_config"; exit ;; |
| 24106 | --debug | --debu | --deb | --de | --d | -d ) |
| 24107 | debug=: ;; |
| 24108 | --file | --fil | --fi | --f ) |
| 24109 | $ac_shift |
| 24110 | case $ac_optarg in |
| 24111 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 24112 | '') as_fn_error $? "missing file argument" ;; |
| 24113 | esac |
| 24114 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 24115 | ac_need_defaults=false;; |
| 24116 | --header | --heade | --head | --hea ) |
| 24117 | $ac_shift |
| 24118 | case $ac_optarg in |
| 24119 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 24120 | esac |
| 24121 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 24122 | ac_need_defaults=false;; |
| 24123 | --he | --h) |
| 24124 | # Conflict between --help and --header |
| 24125 | as_fn_error $? "ambiguous option: \`$1' |
| 24126 | Try \`$0 --help' for more information.";; |
| 24127 | --help | --hel | -h ) |
| 24128 | $as_echo "$ac_cs_usage"; exit ;; |
| 24129 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24130 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24131 | ac_cs_silent=: ;; |
| 24132 | |
| 24133 | # This is an error. |
| 24134 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 24135 | Try \`$0 --help' for more information." ;; |
| 24136 | |
| 24137 | *) as_fn_append ac_config_targets " $1" |
| 24138 | ac_need_defaults=false ;; |
| 24139 | |
| 24140 | esac |
| 24141 | shift |
| 24142 | done |
| 24143 | |
| 24144 | ac_configure_extra_args= |
| 24145 | |
| 24146 | if $ac_cs_silent; then |
| 24147 | exec 6>/dev/null |
| 24148 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24149 | fi |
| 24150 | |
| 24151 | _ACEOF |
| 24152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24153 | if \$ac_cs_recheck; then |
| 24154 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 24155 | shift |
| 24156 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 24157 | CONFIG_SHELL='$SHELL' |
| 24158 | export CONFIG_SHELL |
| 24159 | exec "\$@" |
| 24160 | fi |
| 24161 | |
| 24162 | _ACEOF |
| 24163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24164 | exec 5>>config.log |
| 24165 | { |
| 24166 | echo |
| 24167 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24168 | ## Running $as_me. ## |
| 24169 | _ASBOX |
| 24170 | $as_echo "$ac_log" |
| 24171 | } >&5 |
| 24172 | |
| 24173 | _ACEOF |
| 24174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24175 | # |
| 24176 | # INIT-COMMANDS |
| 24177 | # |
| 24178 | |
| 24179 | |
| 24180 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 24181 | # if CDPATH is set. |
| 24182 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 24183 | |
| 24184 | sed_quote_subst='$sed_quote_subst' |
| 24185 | double_quote_subst='$double_quote_subst' |
| 24186 | delay_variable_subst='$delay_variable_subst' |
| 24187 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 24188 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 24189 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 24190 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 24191 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 24192 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 24193 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 24194 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 24195 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 24196 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 24197 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 24198 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 24199 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 24200 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 24201 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 24202 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 24203 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 24204 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 24205 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 24206 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 24207 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 24208 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 24209 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 24210 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 24211 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 24212 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 24213 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 24214 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 24215 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 24216 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 24217 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 24218 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 24219 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 24220 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 24221 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 24222 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 24223 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 24224 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 24225 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 24226 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 24227 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 24228 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 24229 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 24230 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 24231 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 24232 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 24233 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 24234 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 24235 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 24236 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 24237 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 24238 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 24239 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 24240 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 24241 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 24242 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 24243 | 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"`' |
| 24244 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 24245 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 24246 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 24247 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 24248 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 24249 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 24250 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 24251 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 24252 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 24253 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 24254 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 24255 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 24256 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 24257 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 24258 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 24259 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 24260 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 24261 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 24262 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 24263 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 24264 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 24265 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 24266 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 24267 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 24268 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 24269 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 24270 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 24271 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 24272 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 24273 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 24274 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 24275 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 24276 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 24277 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 24278 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 24279 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 24280 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 24281 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 24282 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 24283 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 24284 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 24285 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 24286 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 24287 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 24288 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 24289 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 24290 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 24291 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 24292 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 24293 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 24294 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 24295 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 24296 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 24297 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 24298 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 24299 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 24300 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 24301 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 24302 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 24303 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 24304 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 24305 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 24306 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 24307 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 24308 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 24309 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 24310 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 24311 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 24312 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 24313 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 24314 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 24315 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 24316 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 24317 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 24318 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 24319 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 24320 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 24321 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 24322 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 24323 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 24324 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 24325 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 24326 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24327 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24328 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 24329 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 24330 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 24331 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 24332 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 24333 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 24334 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 24335 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 24336 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 24337 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 24338 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 24339 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 24340 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24341 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24342 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24343 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24344 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24345 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24346 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 24347 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 24348 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 24349 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 24350 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 24351 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 24352 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 24353 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 24354 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 24355 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 24356 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 24357 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 24358 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 24359 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 24360 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24361 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 24362 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 24363 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24364 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 24365 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 24366 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 24367 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 24368 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 24369 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 24370 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 24371 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 24372 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 24373 | |
| 24374 | LTCC='$LTCC' |
| 24375 | LTCFLAGS='$LTCFLAGS' |
| 24376 | compiler='$compiler_DEFAULT' |
| 24377 | |
| 24378 | # A function that is used when there is no print builtin or printf. |
| 24379 | func_fallback_echo () |
| 24380 | { |
| 24381 | eval 'cat <<_LTECHO_EOF |
| 24382 | \$1 |
| 24383 | _LTECHO_EOF' |
| 24384 | } |
| 24385 | |
| 24386 | # Quote evaled strings. |
| 24387 | for var in AS \ |
| 24388 | DLLTOOL \ |
| 24389 | OBJDUMP \ |
| 24390 | SHELL \ |
| 24391 | ECHO \ |
| 24392 | SED \ |
| 24393 | GREP \ |
| 24394 | EGREP \ |
| 24395 | FGREP \ |
| 24396 | LD \ |
| 24397 | NM \ |
| 24398 | LN_S \ |
| 24399 | lt_SP2NL \ |
| 24400 | lt_NL2SP \ |
| 24401 | reload_flag \ |
| 24402 | deplibs_check_method \ |
| 24403 | file_magic_cmd \ |
| 24404 | file_magic_glob \ |
| 24405 | want_nocaseglob \ |
| 24406 | sharedlib_from_linklib_cmd \ |
| 24407 | AR \ |
| 24408 | AR_FLAGS \ |
| 24409 | archiver_list_spec \ |
| 24410 | STRIP \ |
| 24411 | RANLIB \ |
| 24412 | CC \ |
| 24413 | CFLAGS \ |
| 24414 | compiler \ |
| 24415 | lt_cv_sys_global_symbol_pipe \ |
| 24416 | lt_cv_sys_global_symbol_to_cdecl \ |
| 24417 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24418 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 24419 | nm_file_list_spec \ |
| 24420 | lt_prog_compiler_no_builtin_flag \ |
| 24421 | lt_prog_compiler_pic \ |
| 24422 | lt_prog_compiler_wl \ |
| 24423 | lt_prog_compiler_static \ |
| 24424 | lt_cv_prog_compiler_c_o \ |
| 24425 | need_locks \ |
| 24426 | MANIFEST_TOOL \ |
| 24427 | DSYMUTIL \ |
| 24428 | NMEDIT \ |
| 24429 | LIPO \ |
| 24430 | OTOOL \ |
| 24431 | OTOOL64 \ |
| 24432 | shrext_cmds \ |
| 24433 | export_dynamic_flag_spec \ |
| 24434 | whole_archive_flag_spec \ |
| 24435 | compiler_needs_object \ |
| 24436 | with_gnu_ld \ |
| 24437 | allow_undefined_flag \ |
| 24438 | no_undefined_flag \ |
| 24439 | hardcode_libdir_flag_spec \ |
| 24440 | hardcode_libdir_flag_spec_ld \ |
| 24441 | hardcode_libdir_separator \ |
| 24442 | exclude_expsyms \ |
| 24443 | include_expsyms \ |
| 24444 | file_list_spec \ |
| 24445 | variables_saved_for_relink \ |
| 24446 | libname_spec \ |
| 24447 | library_names_spec \ |
| 24448 | soname_spec \ |
| 24449 | install_override_mode \ |
| 24450 | finish_eval \ |
| 24451 | old_striplib \ |
| 24452 | striplib \ |
| 24453 | compiler_lib_search_dirs \ |
| 24454 | predep_objects \ |
| 24455 | postdep_objects \ |
| 24456 | predeps \ |
| 24457 | postdeps \ |
| 24458 | compiler_lib_search_path \ |
| 24459 | LD_CXX \ |
| 24460 | reload_flag_CXX \ |
| 24461 | compiler_CXX \ |
| 24462 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 24463 | lt_prog_compiler_pic_CXX \ |
| 24464 | lt_prog_compiler_wl_CXX \ |
| 24465 | lt_prog_compiler_static_CXX \ |
| 24466 | lt_cv_prog_compiler_c_o_CXX \ |
| 24467 | export_dynamic_flag_spec_CXX \ |
| 24468 | whole_archive_flag_spec_CXX \ |
| 24469 | compiler_needs_object_CXX \ |
| 24470 | with_gnu_ld_CXX \ |
| 24471 | allow_undefined_flag_CXX \ |
| 24472 | no_undefined_flag_CXX \ |
| 24473 | hardcode_libdir_flag_spec_CXX \ |
| 24474 | hardcode_libdir_flag_spec_ld_CXX \ |
| 24475 | hardcode_libdir_separator_CXX \ |
| 24476 | exclude_expsyms_CXX \ |
| 24477 | include_expsyms_CXX \ |
| 24478 | file_list_spec_CXX \ |
| 24479 | compiler_lib_search_dirs_CXX \ |
| 24480 | predep_objects_CXX \ |
| 24481 | postdep_objects_CXX \ |
| 24482 | predeps_CXX \ |
| 24483 | postdeps_CXX \ |
| 24484 | compiler_lib_search_path_CXX; do |
| 24485 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 24486 | *[\\\\\\\`\\"\\\$]*) |
| 24487 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 24488 | ;; |
| 24489 | *) |
| 24490 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 24491 | ;; |
| 24492 | esac |
| 24493 | done |
| 24494 | |
| 24495 | # Double-quote double-evaled strings. |
| 24496 | for var in reload_cmds \ |
| 24497 | old_postinstall_cmds \ |
| 24498 | old_postuninstall_cmds \ |
| 24499 | old_archive_cmds \ |
| 24500 | extract_expsyms_cmds \ |
| 24501 | old_archive_from_new_cmds \ |
| 24502 | old_archive_from_expsyms_cmds \ |
| 24503 | archive_cmds \ |
| 24504 | archive_expsym_cmds \ |
| 24505 | module_cmds \ |
| 24506 | module_expsym_cmds \ |
| 24507 | export_symbols_cmds \ |
| 24508 | prelink_cmds \ |
| 24509 | postlink_cmds \ |
| 24510 | postinstall_cmds \ |
| 24511 | postuninstall_cmds \ |
| 24512 | finish_cmds \ |
| 24513 | sys_lib_search_path_spec \ |
| 24514 | sys_lib_dlsearch_path_spec \ |
| 24515 | reload_cmds_CXX \ |
| 24516 | old_archive_cmds_CXX \ |
| 24517 | old_archive_from_new_cmds_CXX \ |
| 24518 | old_archive_from_expsyms_cmds_CXX \ |
| 24519 | archive_cmds_CXX \ |
| 24520 | archive_expsym_cmds_CXX \ |
| 24521 | module_cmds_CXX \ |
| 24522 | module_expsym_cmds_CXX \ |
| 24523 | export_symbols_cmds_CXX \ |
| 24524 | prelink_cmds_CXX \ |
| 24525 | postlink_cmds_CXX; do |
| 24526 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 24527 | *[\\\\\\\`\\"\\\$]*) |
| 24528 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 24529 | ;; |
| 24530 | *) |
| 24531 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 24532 | ;; |
| 24533 | esac |
| 24534 | done |
| 24535 | |
| 24536 | ac_aux_dir='$ac_aux_dir' |
| 24537 | xsi_shell='$xsi_shell' |
| 24538 | lt_shell_append='$lt_shell_append' |
| 24539 | |
| 24540 | # See if we are running on zsh, and set the options which allow our |
| 24541 | # commands through without removal of \ escapes INIT. |
| 24542 | if test -n "\${ZSH_VERSION+set}" ; then |
| 24543 | setopt NO_GLOB_SUBST |
| 24544 | fi |
| 24545 | |
| 24546 | |
| 24547 | PACKAGE='$PACKAGE' |
| 24548 | VERSION='$VERSION' |
| 24549 | TIMESTAMP='$TIMESTAMP' |
| 24550 | RM='$RM' |
| 24551 | ofile='$ofile' |
| 24552 | |
| 24553 | |
| 24554 | |
| 24555 | |
| 24556 | |
| 24557 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 24558 | |
| 24559 | _ACEOF |
| 24560 | |
| 24561 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24562 | |
| 24563 | # Handling of arguments. |
| 24564 | for ac_config_target in $ac_config_targets |
| 24565 | do |
| 24566 | case $ac_config_target in |
| 24567 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 24568 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 24569 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 24570 | "src/ccgnu2-config") CONFIG_FILES="$CONFIG_FILES src/ccgnu2-config" ;; |
| 24571 | "src/libccext2.pc") CONFIG_FILES="$CONFIG_FILES src/libccext2.pc" ;; |
| 24572 | "src/libccgnu2.pc") CONFIG_FILES="$CONFIG_FILES src/libccgnu2.pc" ;; |
| 24573 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 24574 | "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;; |
| 24575 | "w32/vs2008/Makefile") CONFIG_FILES="$CONFIG_FILES w32/vs2008/Makefile" ;; |
| 24576 | "w32/vs2008/ccext2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/vs2008/ccext2.vcproj" ;; |
| 24577 | "w32/vs2008/ccgnu2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/vs2008/ccgnu2.vcproj" ;; |
| 24578 | "w32/vs2008/common.sln") CONFIG_FILES="$CONFIG_FILES w32/vs2008/common.sln" ;; |
| 24579 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 24580 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; |
| 24581 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 24582 | "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;; |
| 24583 | "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;; |
| 24584 | "inc/cc++/Makefile") CONFIG_FILES="$CONFIG_FILES inc/cc++/Makefile" ;; |
| 24585 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24586 | "commoncpp2.spec") CONFIG_FILES="$CONFIG_FILES commoncpp2.spec" ;; |
| 24587 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 24588 | "commoncpp2.list") CONFIG_FILES="$CONFIG_FILES commoncpp2.list" ;; |
| 24589 | "w32/ccgnu2.dsp") CONFIG_FILES="$CONFIG_FILES w32/ccgnu2.dsp" ;; |
| 24590 | "w32/ccext2.dsp") CONFIG_FILES="$CONFIG_FILES w32/ccext2.dsp" ;; |
| 24591 | "w32/ccgnu2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/ccgnu2.vcproj" ;; |
| 24592 | "w32/ccext2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/ccext2.vcproj" ;; |
| 24593 | |
| 24594 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 24595 | esac |
| 24596 | done |
| 24597 | |
| 24598 | |
| 24599 | # If the user did not use the arguments to specify the items to instantiate, |
| 24600 | # then the envvar interface is used. Set only those that are not. |
| 24601 | # We use the long form for the default assignment because of an extremely |
| 24602 | # bizarre bug on SunOS 4.1.3. |
| 24603 | if $ac_need_defaults; then |
| 24604 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24605 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24606 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 24607 | fi |
| 24608 | |
| 24609 | # Have a temporary directory for convenience. Make it in the build tree |
| 24610 | # simply because there is no reason against having it here, and in addition, |
| 24611 | # creating and moving files from /tmp can sometimes cause problems. |
| 24612 | # Hook for its removal unless debugging. |
| 24613 | # Note that there is a small window in which the directory will not be cleaned: |
| 24614 | # after its creation but before its name has been assigned to `$tmp'. |
| 24615 | $debug || |
| 24616 | { |
| 24617 | tmp= ac_tmp= |
| 24618 | trap 'exit_status=$? |
| 24619 | : "${ac_tmp:=$tmp}" |
| 24620 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 24621 | ' 0 |
| 24622 | trap 'as_fn_exit 1' 1 2 13 15 |
| 24623 | } |
| 24624 | # Create a (secure) tmp directory for tmp files. |
| 24625 | |
| 24626 | { |
| 24627 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 24628 | test -d "$tmp" |
| 24629 | } || |
| 24630 | { |
| 24631 | tmp=./conf$$-$RANDOM |
| 24632 | (umask 077 && mkdir "$tmp") |
| 24633 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 24634 | ac_tmp=$tmp |
| 24635 | |
| 24636 | # Set up the scripts for CONFIG_FILES section. |
| 24637 | # No need to generate them if there are no CONFIG_FILES. |
| 24638 | # This happens for instance with `./config.status config.h'. |
| 24639 | if test -n "$CONFIG_FILES"; then |
| 24640 | |
| 24641 | |
| 24642 | ac_cr=`echo X | tr X '\015'` |
| 24643 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 24644 | # But we know of no other shell where ac_cr would be empty at this |
| 24645 | # point, so we can use a bashism as a fallback. |
| 24646 | if test "x$ac_cr" = x; then |
| 24647 | eval ac_cr=\$\'\\r\' |
| 24648 | fi |
| 24649 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 24650 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 24651 | ac_cs_awk_cr='\\r' |
| 24652 | else |
| 24653 | ac_cs_awk_cr=$ac_cr |
| 24654 | fi |
| 24655 | |
| 24656 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 24657 | _ACEOF |
| 24658 | |
| 24659 | |
| 24660 | { |
| 24661 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 24662 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 24663 | echo "_ACEOF" |
| 24664 | } >conf$$subs.sh || |
| 24665 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24666 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 24667 | ac_delim='%!_!# ' |
| 24668 | for ac_last_try in false false false false false :; do |
| 24669 | . ./conf$$subs.sh || |
| 24670 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24671 | |
| 24672 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 24673 | if test $ac_delim_n = $ac_delim_num; then |
| 24674 | break |
| 24675 | elif $ac_last_try; then |
| 24676 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 24677 | else |
| 24678 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24679 | fi |
| 24680 | done |
| 24681 | rm -f conf$$subs.sh |
| 24682 | |
| 24683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24684 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 24685 | _ACEOF |
| 24686 | sed -n ' |
| 24687 | h |
| 24688 | s/^/S["/; s/!.*/"]=/ |
| 24689 | p |
| 24690 | g |
| 24691 | s/^[^!]*!// |
| 24692 | :repl |
| 24693 | t repl |
| 24694 | s/'"$ac_delim"'$// |
| 24695 | t delim |
| 24696 | :nl |
| 24697 | h |
| 24698 | s/\(.\{148\}\)..*/\1/ |
| 24699 | t more1 |
| 24700 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 24701 | p |
| 24702 | n |
| 24703 | b repl |
| 24704 | :more1 |
| 24705 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 24706 | p |
| 24707 | g |
| 24708 | s/.\{148\}// |
| 24709 | t nl |
| 24710 | :delim |
| 24711 | h |
| 24712 | s/\(.\{148\}\)..*/\1/ |
| 24713 | t more2 |
| 24714 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 24715 | p |
| 24716 | b |
| 24717 | :more2 |
| 24718 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 24719 | p |
| 24720 | g |
| 24721 | s/.\{148\}// |
| 24722 | t delim |
| 24723 | ' <conf$$subs.awk | sed ' |
| 24724 | /^[^""]/{ |
| 24725 | N |
| 24726 | s/\n// |
| 24727 | } |
| 24728 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 24729 | rm -f conf$$subs.awk |
| 24730 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24731 | _ACAWK |
| 24732 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 24733 | for (key in S) S_is_set[key] = 1 |
| 24734 | FS = "" |
| 24735 | |
| 24736 | } |
| 24737 | { |
| 24738 | line = $ 0 |
| 24739 | nfields = split(line, field, "@") |
| 24740 | substed = 0 |
| 24741 | len = length(field[1]) |
| 24742 | for (i = 2; i < nfields; i++) { |
| 24743 | key = field[i] |
| 24744 | keylen = length(key) |
| 24745 | if (S_is_set[key]) { |
| 24746 | value = S[key] |
| 24747 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 24748 | len += length(value) + length(field[++i]) |
| 24749 | substed = 1 |
| 24750 | } else |
| 24751 | len += 1 + keylen |
| 24752 | } |
| 24753 | |
| 24754 | print line |
| 24755 | } |
| 24756 | |
| 24757 | _ACAWK |
| 24758 | _ACEOF |
| 24759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24760 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 24761 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 24762 | else |
| 24763 | cat |
| 24764 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 24765 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 24766 | _ACEOF |
| 24767 | |
| 24768 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 24769 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 24770 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24771 | # (actually we leave an empty line to preserve line numbers). |
| 24772 | if test "x$srcdir" = x.; then |
| 24773 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 24774 | h |
| 24775 | s/// |
| 24776 | s/^/:/ |
| 24777 | s/[ ]*$/:/ |
| 24778 | s/:\$(srcdir):/:/g |
| 24779 | s/:\${srcdir}:/:/g |
| 24780 | s/:@srcdir@:/:/g |
| 24781 | s/^:*// |
| 24782 | s/:*$// |
| 24783 | x |
| 24784 | s/\(=[ ]*\).*/\1/ |
| 24785 | G |
| 24786 | s/\n// |
| 24787 | s/^[^=]*=[ ]*$// |
| 24788 | }' |
| 24789 | fi |
| 24790 | |
| 24791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24792 | fi # test -n "$CONFIG_FILES" |
| 24793 | |
| 24794 | # Set up the scripts for CONFIG_HEADERS section. |
| 24795 | # No need to generate them if there are no CONFIG_HEADERS. |
| 24796 | # This happens for instance with `./config.status Makefile'. |
| 24797 | if test -n "$CONFIG_HEADERS"; then |
| 24798 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 24799 | BEGIN { |
| 24800 | _ACEOF |
| 24801 | |
| 24802 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 24803 | # here-document in config.status, that substitutes the proper values into |
| 24804 | # config.h.in to produce config.h. |
| 24805 | |
| 24806 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 24807 | # handling of long lines. |
| 24808 | ac_delim='%!_!# ' |
| 24809 | for ac_last_try in false false :; do |
| 24810 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 24811 | if test -z "$ac_tt"; then |
| 24812 | break |
| 24813 | elif $ac_last_try; then |
| 24814 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 24815 | else |
| 24816 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24817 | fi |
| 24818 | done |
| 24819 | |
| 24820 | # For the awk script, D is an array of macro values keyed by name, |
| 24821 | # likewise P contains macro parameters if any. Preserve backslash |
| 24822 | # newline sequences. |
| 24823 | |
| 24824 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24825 | sed -n ' |
| 24826 | s/.\{148\}/&'"$ac_delim"'/g |
| 24827 | t rset |
| 24828 | :rset |
| 24829 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 24830 | t def |
| 24831 | d |
| 24832 | :def |
| 24833 | s/\\$// |
| 24834 | t bsnl |
| 24835 | s/["\\]/\\&/g |
| 24836 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 24837 | D["\1"]=" \3"/p |
| 24838 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 24839 | d |
| 24840 | :bsnl |
| 24841 | s/["\\]/\\&/g |
| 24842 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 24843 | D["\1"]=" \3\\\\\\n"\\/p |
| 24844 | t cont |
| 24845 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 24846 | t cont |
| 24847 | d |
| 24848 | :cont |
| 24849 | n |
| 24850 | s/.\{148\}/&'"$ac_delim"'/g |
| 24851 | t clear |
| 24852 | :clear |
| 24853 | s/\\$// |
| 24854 | t bsnlc |
| 24855 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 24856 | d |
| 24857 | :bsnlc |
| 24858 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 24859 | b cont |
| 24860 | ' <confdefs.h | sed ' |
| 24861 | s/'"$ac_delim"'/"\\\ |
| 24862 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 24863 | |
| 24864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 24865 | for (key in D) D_is_set[key] = 1 |
| 24866 | FS = "" |
| 24867 | } |
| 24868 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 24869 | line = \$ 0 |
| 24870 | split(line, arg, " ") |
| 24871 | if (arg[1] == "#") { |
| 24872 | defundef = arg[2] |
| 24873 | mac1 = arg[3] |
| 24874 | } else { |
| 24875 | defundef = substr(arg[1], 2) |
| 24876 | mac1 = arg[2] |
| 24877 | } |
| 24878 | split(mac1, mac2, "(") #) |
| 24879 | macro = mac2[1] |
| 24880 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 24881 | if (D_is_set[macro]) { |
| 24882 | # Preserve the white space surrounding the "#". |
| 24883 | print prefix "define", macro P[macro] D[macro] |
| 24884 | next |
| 24885 | } else { |
| 24886 | # Replace #undef with comments. This is necessary, for example, |
| 24887 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 24888 | # on some systems where configure will not decide to define it. |
| 24889 | if (defundef == "undef") { |
| 24890 | print "/*", prefix defundef, macro, "*/" |
| 24891 | next |
| 24892 | } |
| 24893 | } |
| 24894 | } |
| 24895 | { print } |
| 24896 | _ACAWK |
| 24897 | _ACEOF |
| 24898 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 24899 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 24900 | fi # test -n "$CONFIG_HEADERS" |
| 24901 | |
| 24902 | |
| 24903 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 24904 | shift |
| 24905 | for ac_tag |
| 24906 | do |
| 24907 | case $ac_tag in |
| 24908 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24909 | esac |
| 24910 | case $ac_mode$ac_tag in |
| 24911 | :[FHL]*:*);; |
| 24912 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 24913 | :[FH]-) ac_tag=-:-;; |
| 24914 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24915 | esac |
| 24916 | ac_save_IFS=$IFS |
| 24917 | IFS=: |
| 24918 | set x $ac_tag |
| 24919 | IFS=$ac_save_IFS |
| 24920 | shift |
| 24921 | ac_file=$1 |
| 24922 | shift |
| 24923 | |
| 24924 | case $ac_mode in |
| 24925 | :L) ac_source=$1;; |
| 24926 | :[FH]) |
| 24927 | ac_file_inputs= |
| 24928 | for ac_f |
| 24929 | do |
| 24930 | case $ac_f in |
| 24931 | -) ac_f="$ac_tmp/stdin";; |
| 24932 | *) # Look for the file first in the build tree, then in the source tree |
| 24933 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24934 | # because $ac_f cannot contain `:'. |
| 24935 | test -f "$ac_f" || |
| 24936 | case $ac_f in |
| 24937 | [\\/$]*) false;; |
| 24938 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24939 | esac || |
| 24940 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 24941 | esac |
| 24942 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 24943 | as_fn_append ac_file_inputs " '$ac_f'" |
| 24944 | done |
| 24945 | |
| 24946 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24947 | # use $as_me), people would be surprised to read: |
| 24948 | # /* config.h. Generated by config.status. */ |
| 24949 | configure_input='Generated from '` |
| 24950 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 24951 | `' by configure.' |
| 24952 | if test x"$ac_file" != x-; then |
| 24953 | configure_input="$ac_file. $configure_input" |
| 24954 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 24955 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 24956 | fi |
| 24957 | # Neutralize special characters interpreted by sed in replacement strings. |
| 24958 | case $configure_input in #( |
| 24959 | *\&* | *\|* | *\\* ) |
| 24960 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 24961 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 24962 | *) ac_sed_conf_input=$configure_input;; |
| 24963 | esac |
| 24964 | |
| 24965 | case $ac_tag in |
| 24966 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 24967 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 24968 | esac |
| 24969 | ;; |
| 24970 | esac |
| 24971 | |
| 24972 | ac_dir=`$as_dirname -- "$ac_file" || |
| 24973 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24974 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24975 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24976 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 24977 | $as_echo X"$ac_file" | |
| 24978 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24979 | s//\1/ |
| 24980 | q |
| 24981 | } |
| 24982 | /^X\(\/\/\)[^/].*/{ |
| 24983 | s//\1/ |
| 24984 | q |
| 24985 | } |
| 24986 | /^X\(\/\/\)$/{ |
| 24987 | s//\1/ |
| 24988 | q |
| 24989 | } |
| 24990 | /^X\(\/\).*/{ |
| 24991 | s//\1/ |
| 24992 | q |
| 24993 | } |
| 24994 | s/.*/./; q'` |
| 24995 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 24996 | ac_builddir=. |
| 24997 | |
| 24998 | case "$ac_dir" in |
| 24999 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25000 | *) |
| 25001 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 25002 | # A ".." for each directory in $ac_dir_suffix. |
| 25003 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 25004 | case $ac_top_builddir_sub in |
| 25005 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25006 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25007 | esac ;; |
| 25008 | esac |
| 25009 | ac_abs_top_builddir=$ac_pwd |
| 25010 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25011 | # for backward compatibility: |
| 25012 | ac_top_builddir=$ac_top_build_prefix |
| 25013 | |
| 25014 | case $srcdir in |
| 25015 | .) # We are building in place. |
| 25016 | ac_srcdir=. |
| 25017 | ac_top_srcdir=$ac_top_builddir_sub |
| 25018 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25019 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 25020 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25021 | ac_top_srcdir=$srcdir |
| 25022 | ac_abs_top_srcdir=$srcdir ;; |
| 25023 | *) # Relative name. |
| 25024 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25025 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25026 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 25027 | esac |
| 25028 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 25029 | |
| 25030 | |
| 25031 | case $ac_mode in |
| 25032 | :F) |
| 25033 | # |
| 25034 | # CONFIG_FILE |
| 25035 | # |
| 25036 | |
| 25037 | case $INSTALL in |
| 25038 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 25039 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 25040 | esac |
| 25041 | ac_MKDIR_P=$MKDIR_P |
| 25042 | case $MKDIR_P in |
| 25043 | [\\/$]* | ?:[\\/]* ) ;; |
| 25044 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 25045 | esac |
| 25046 | _ACEOF |
| 25047 | |
| 25048 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25049 | # If the template does not know about datarootdir, expand it. |
| 25050 | # FIXME: This hack should be removed a few years after 2.60. |
| 25051 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 25052 | ac_sed_dataroot=' |
| 25053 | /datarootdir/ { |
| 25054 | p |
| 25055 | q |
| 25056 | } |
| 25057 | /@datadir@/p |
| 25058 | /@docdir@/p |
| 25059 | /@infodir@/p |
| 25060 | /@localedir@/p |
| 25061 | /@mandir@/p' |
| 25062 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 25063 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 25064 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25066 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25067 | _ACEOF |
| 25068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25069 | ac_datarootdir_hack=' |
| 25070 | s&@datadir@&$datadir&g |
| 25071 | s&@docdir@&$docdir&g |
| 25072 | s&@infodir@&$infodir&g |
| 25073 | s&@localedir@&$localedir&g |
| 25074 | s&@mandir@&$mandir&g |
| 25075 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25076 | esac |
| 25077 | _ACEOF |
| 25078 | |
| 25079 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25080 | # Shell code in configure.ac might set extrasub. |
| 25081 | # FIXME: do we really want to maintain this feature? |
| 25082 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25083 | ac_sed_extra="$ac_vpsub |
| 25084 | $extrasub |
| 25085 | _ACEOF |
| 25086 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25087 | :t |
| 25088 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25089 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 25090 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25091 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 25092 | s&@srcdir@&$ac_srcdir&;t t |
| 25093 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25094 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25095 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25096 | s&@builddir@&$ac_builddir&;t t |
| 25097 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25098 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25099 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25100 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 25101 | $ac_datarootdir_hack |
| 25102 | " |
| 25103 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 25104 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 25105 | |
| 25106 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25107 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 25108 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 25109 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 25110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25111 | which seems to be undefined. Please make sure it is defined" >&5 |
| 25112 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25113 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 25114 | |
| 25115 | rm -f "$ac_tmp/stdin" |
| 25116 | case $ac_file in |
| 25117 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 25118 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 25119 | esac \ |
| 25120 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 25121 | ;; |
| 25122 | :H) |
| 25123 | # |
| 25124 | # CONFIG_HEADER |
| 25125 | # |
| 25126 | if test x"$ac_file" != x-; then |
| 25127 | { |
| 25128 | $as_echo "/* $configure_input */" \ |
| 25129 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 25130 | } >"$ac_tmp/config.h" \ |
| 25131 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 25132 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 25133 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 25134 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 25135 | else |
| 25136 | rm -f "$ac_file" |
| 25137 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 25138 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 25139 | fi |
| 25140 | else |
| 25141 | $as_echo "/* $configure_input */" \ |
| 25142 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 25143 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 25144 | fi |
| 25145 | # Compute "$ac_file"'s index in $config_headers. |
| 25146 | _am_arg="$ac_file" |
| 25147 | _am_stamp_count=1 |
| 25148 | for _am_header in $config_headers :; do |
| 25149 | case $_am_header in |
| 25150 | $_am_arg | $_am_arg:* ) |
| 25151 | break ;; |
| 25152 | * ) |
| 25153 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 25154 | esac |
| 25155 | done |
| 25156 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 25157 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25158 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 25159 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 25160 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 25161 | $as_echo X"$_am_arg" | |
| 25162 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25163 | s//\1/ |
| 25164 | q |
| 25165 | } |
| 25166 | /^X\(\/\/\)[^/].*/{ |
| 25167 | s//\1/ |
| 25168 | q |
| 25169 | } |
| 25170 | /^X\(\/\/\)$/{ |
| 25171 | s//\1/ |
| 25172 | q |
| 25173 | } |
| 25174 | /^X\(\/\).*/{ |
| 25175 | s//\1/ |
| 25176 | q |
| 25177 | } |
| 25178 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 25179 | ;; |
| 25180 | |
| 25181 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 25182 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 25183 | ;; |
| 25184 | esac |
| 25185 | |
| 25186 | |
| 25187 | case $ac_file$ac_mode in |
| 25188 | "libtool":C) |
| 25189 | |
| 25190 | # See if we are running on zsh, and set the options which allow our |
| 25191 | # commands through without removal of \ escapes. |
| 25192 | if test -n "${ZSH_VERSION+set}" ; then |
| 25193 | setopt NO_GLOB_SUBST |
| 25194 | fi |
| 25195 | |
| 25196 | cfgfile="${ofile}T" |
| 25197 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 25198 | $RM "$cfgfile" |
| 25199 | |
| 25200 | cat <<_LT_EOF >> "$cfgfile" |
| 25201 | #! $SHELL |
| 25202 | |
| 25203 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 25204 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 25205 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25206 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 25207 | # |
| 25208 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 25209 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 25210 | # Inc. |
| 25211 | # Written by Gordon Matzigkeit, 1996 |
| 25212 | # |
| 25213 | # This file is part of GNU Libtool. |
| 25214 | # |
| 25215 | # GNU Libtool is free software; you can redistribute it and/or |
| 25216 | # modify it under the terms of the GNU General Public License as |
| 25217 | # published by the Free Software Foundation; either version 2 of |
| 25218 | # the License, or (at your option) any later version. |
| 25219 | # |
| 25220 | # As a special exception to the GNU General Public License, |
| 25221 | # if you distribute this file as part of a program or library that |
| 25222 | # is built using GNU Libtool, you may include this file under the |
| 25223 | # same distribution terms that you use for the rest of that program. |
| 25224 | # |
| 25225 | # GNU Libtool is distributed in the hope that it will be useful, |
| 25226 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 25227 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25228 | # GNU General Public License for more details. |
| 25229 | # |
| 25230 | # You should have received a copy of the GNU General Public License |
| 25231 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 25232 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 25233 | # obtained by writing to the Free Software Foundation, Inc., |
| 25234 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 25235 | |
| 25236 | |
| 25237 | # The names of the tagged configurations supported by this script. |
| 25238 | available_tags="CXX " |
| 25239 | |
| 25240 | # ### BEGIN LIBTOOL CONFIG |
| 25241 | |
| 25242 | # Assembler program. |
| 25243 | AS=$lt_AS |
| 25244 | |
| 25245 | # DLL creation program. |
| 25246 | DLLTOOL=$lt_DLLTOOL |
| 25247 | |
| 25248 | # Object dumper program. |
| 25249 | OBJDUMP=$lt_OBJDUMP |
| 25250 | |
| 25251 | # Which release of libtool.m4 was used? |
| 25252 | macro_version=$macro_version |
| 25253 | macro_revision=$macro_revision |
| 25254 | |
| 25255 | # Whether or not to build shared libraries. |
| 25256 | build_libtool_libs=$enable_shared |
| 25257 | |
| 25258 | # Whether or not to build static libraries. |
| 25259 | build_old_libs=$enable_static |
| 25260 | |
| 25261 | # What type of objects to build. |
| 25262 | pic_mode=$pic_mode |
| 25263 | |
| 25264 | # Whether or not to optimize for fast installation. |
| 25265 | fast_install=$enable_fast_install |
| 25266 | |
| 25267 | # Shell to use when invoking shell scripts. |
| 25268 | SHELL=$lt_SHELL |
| 25269 | |
| 25270 | # An echo program that protects backslashes. |
| 25271 | ECHO=$lt_ECHO |
| 25272 | |
| 25273 | # The host system. |
| 25274 | host_alias=$host_alias |
| 25275 | host=$host |
| 25276 | host_os=$host_os |
| 25277 | |
| 25278 | # The build system. |
| 25279 | build_alias=$build_alias |
| 25280 | build=$build |
| 25281 | build_os=$build_os |
| 25282 | |
| 25283 | # A sed program that does not truncate output. |
| 25284 | SED=$lt_SED |
| 25285 | |
| 25286 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 25287 | Xsed="\$SED -e 1s/^X//" |
| 25288 | |
| 25289 | # A grep program that handles long lines. |
| 25290 | GREP=$lt_GREP |
| 25291 | |
| 25292 | # An ERE matcher. |
| 25293 | EGREP=$lt_EGREP |
| 25294 | |
| 25295 | # A literal string matcher. |
| 25296 | FGREP=$lt_FGREP |
| 25297 | |
| 25298 | # A BSD- or MS-compatible name lister. |
| 25299 | NM=$lt_NM |
| 25300 | |
| 25301 | # Whether we need soft or hard links. |
| 25302 | LN_S=$lt_LN_S |
| 25303 | |
| 25304 | # What is the maximum length of a command? |
| 25305 | max_cmd_len=$max_cmd_len |
| 25306 | |
| 25307 | # Object file suffix (normally "o"). |
| 25308 | objext=$ac_objext |
| 25309 | |
| 25310 | # Executable file suffix (normally ""). |
| 25311 | exeext=$exeext |
| 25312 | |
| 25313 | # whether the shell understands "unset". |
| 25314 | lt_unset=$lt_unset |
| 25315 | |
| 25316 | # turn spaces into newlines. |
| 25317 | SP2NL=$lt_lt_SP2NL |
| 25318 | |
| 25319 | # turn newlines into spaces. |
| 25320 | NL2SP=$lt_lt_NL2SP |
| 25321 | |
| 25322 | # convert \$build file names to \$host format. |
| 25323 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 25324 | |
| 25325 | # convert \$build files to toolchain format. |
| 25326 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 25327 | |
| 25328 | # Method to check whether dependent libraries are shared objects. |
| 25329 | deplibs_check_method=$lt_deplibs_check_method |
| 25330 | |
| 25331 | # Command to use when deplibs_check_method = "file_magic". |
| 25332 | file_magic_cmd=$lt_file_magic_cmd |
| 25333 | |
| 25334 | # How to find potential files when deplibs_check_method = "file_magic". |
| 25335 | file_magic_glob=$lt_file_magic_glob |
| 25336 | |
| 25337 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 25338 | want_nocaseglob=$lt_want_nocaseglob |
| 25339 | |
| 25340 | # Command to associate shared and link libraries. |
| 25341 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 25342 | |
| 25343 | # The archiver. |
| 25344 | AR=$lt_AR |
| 25345 | |
| 25346 | # Flags to create an archive. |
| 25347 | AR_FLAGS=$lt_AR_FLAGS |
| 25348 | |
| 25349 | # How to feed a file listing to the archiver. |
| 25350 | archiver_list_spec=$lt_archiver_list_spec |
| 25351 | |
| 25352 | # A symbol stripping program. |
| 25353 | STRIP=$lt_STRIP |
| 25354 | |
| 25355 | # Commands used to install an old-style archive. |
| 25356 | RANLIB=$lt_RANLIB |
| 25357 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25358 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25359 | |
| 25360 | # Whether to use a lock for old archive extraction. |
| 25361 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 25362 | |
| 25363 | # A C compiler. |
| 25364 | LTCC=$lt_CC |
| 25365 | |
| 25366 | # LTCC compiler flags. |
| 25367 | LTCFLAGS=$lt_CFLAGS |
| 25368 | |
| 25369 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25370 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25371 | |
| 25372 | # Transform the output of nm in a proper C declaration. |
| 25373 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25374 | |
| 25375 | # Transform the output of nm in a C name address pair. |
| 25376 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25377 | |
| 25378 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 25379 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 25380 | |
| 25381 | # Specify filename containing input files for \$NM. |
| 25382 | nm_file_list_spec=$lt_nm_file_list_spec |
| 25383 | |
| 25384 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 25385 | lt_sysroot=$lt_sysroot |
| 25386 | |
| 25387 | # The name of the directory that contains temporary libtool files. |
| 25388 | objdir=$objdir |
| 25389 | |
| 25390 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 25391 | MAGIC_CMD=$MAGIC_CMD |
| 25392 | |
| 25393 | # Must we lock files when doing compilation? |
| 25394 | need_locks=$lt_need_locks |
| 25395 | |
| 25396 | # Manifest tool. |
| 25397 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 25398 | |
| 25399 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 25400 | DSYMUTIL=$lt_DSYMUTIL |
| 25401 | |
| 25402 | # Tool to change global to local symbols on Mac OS X. |
| 25403 | NMEDIT=$lt_NMEDIT |
| 25404 | |
| 25405 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 25406 | LIPO=$lt_LIPO |
| 25407 | |
| 25408 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 25409 | OTOOL=$lt_OTOOL |
| 25410 | |
| 25411 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 25412 | OTOOL64=$lt_OTOOL64 |
| 25413 | |
| 25414 | # Old archive suffix (normally "a"). |
| 25415 | libext=$libext |
| 25416 | |
| 25417 | # Shared library suffix (normally ".so"). |
| 25418 | shrext_cmds=$lt_shrext_cmds |
| 25419 | |
| 25420 | # The commands to extract the exported symbol list from a shared archive. |
| 25421 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25422 | |
| 25423 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25424 | # restored at link time. |
| 25425 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 25426 | |
| 25427 | # Do we need the "lib" prefix for modules? |
| 25428 | need_lib_prefix=$need_lib_prefix |
| 25429 | |
| 25430 | # Do we need a version for libraries? |
| 25431 | need_version=$need_version |
| 25432 | |
| 25433 | # Library versioning type. |
| 25434 | version_type=$version_type |
| 25435 | |
| 25436 | # Shared library runtime path variable. |
| 25437 | runpath_var=$runpath_var |
| 25438 | |
| 25439 | # Shared library path variable. |
| 25440 | shlibpath_var=$shlibpath_var |
| 25441 | |
| 25442 | # Is shlibpath searched before the hard-coded library search path? |
| 25443 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25444 | |
| 25445 | # Format of library name prefix. |
| 25446 | libname_spec=$lt_libname_spec |
| 25447 | |
| 25448 | # List of archive names. First name is the real one, the rest are links. |
| 25449 | # The last name is the one that the linker finds with -lNAME |
| 25450 | library_names_spec=$lt_library_names_spec |
| 25451 | |
| 25452 | # The coded name of the library, if different from the real name. |
| 25453 | soname_spec=$lt_soname_spec |
| 25454 | |
| 25455 | # Permission mode override for installation of shared libraries. |
| 25456 | install_override_mode=$lt_install_override_mode |
| 25457 | |
| 25458 | # Command to use after installation of a shared archive. |
| 25459 | postinstall_cmds=$lt_postinstall_cmds |
| 25460 | |
| 25461 | # Command to use after uninstallation of a shared archive. |
| 25462 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25463 | |
| 25464 | # Commands used to finish a libtool library installation in a directory. |
| 25465 | finish_cmds=$lt_finish_cmds |
| 25466 | |
| 25467 | # As "finish_cmds", except a single script fragment to be evaled but |
| 25468 | # not shown. |
| 25469 | finish_eval=$lt_finish_eval |
| 25470 | |
| 25471 | # Whether we should hardcode library paths into libraries. |
| 25472 | hardcode_into_libs=$hardcode_into_libs |
| 25473 | |
| 25474 | # Compile-time system search path for libraries. |
| 25475 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25476 | |
| 25477 | # Run-time system search path for libraries. |
| 25478 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25479 | |
| 25480 | # Whether dlopen is supported. |
| 25481 | dlopen_support=$enable_dlopen |
| 25482 | |
| 25483 | # Whether dlopen of programs is supported. |
| 25484 | dlopen_self=$enable_dlopen_self |
| 25485 | |
| 25486 | # Whether dlopen of statically linked programs is supported. |
| 25487 | dlopen_self_static=$enable_dlopen_self_static |
| 25488 | |
| 25489 | # Commands to strip libraries. |
| 25490 | old_striplib=$lt_old_striplib |
| 25491 | striplib=$lt_striplib |
| 25492 | |
| 25493 | |
| 25494 | # The linker used to build libraries. |
| 25495 | LD=$lt_LD |
| 25496 | |
| 25497 | # How to create reloadable object files. |
| 25498 | reload_flag=$lt_reload_flag |
| 25499 | reload_cmds=$lt_reload_cmds |
| 25500 | |
| 25501 | # Commands used to build an old-style archive. |
| 25502 | old_archive_cmds=$lt_old_archive_cmds |
| 25503 | |
| 25504 | # A language specific compiler. |
| 25505 | CC=$lt_compiler |
| 25506 | |
| 25507 | # Is the compiler the GNU compiler? |
| 25508 | with_gcc=$GCC |
| 25509 | |
| 25510 | # Compiler flag to turn off builtin functions. |
| 25511 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 25512 | |
| 25513 | # Additional compiler flags for building library objects. |
| 25514 | pic_flag=$lt_lt_prog_compiler_pic |
| 25515 | |
| 25516 | # How to pass a linker flag through the compiler. |
| 25517 | wl=$lt_lt_prog_compiler_wl |
| 25518 | |
| 25519 | # Compiler flag to prevent dynamic linking. |
| 25520 | link_static_flag=$lt_lt_prog_compiler_static |
| 25521 | |
| 25522 | # Does compiler simultaneously support -c and -o options? |
| 25523 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 25524 | |
| 25525 | # Whether or not to add -lc for building shared libraries. |
| 25526 | build_libtool_need_lc=$archive_cmds_need_lc |
| 25527 | |
| 25528 | # Whether or not to disallow shared libs when runtime libs are static. |
| 25529 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 25530 | |
| 25531 | # Compiler flag to allow reflexive dlopens. |
| 25532 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 25533 | |
| 25534 | # Compiler flag to generate shared objects directly from archives. |
| 25535 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 25536 | |
| 25537 | # Whether the compiler copes with passing no objects directly. |
| 25538 | compiler_needs_object=$lt_compiler_needs_object |
| 25539 | |
| 25540 | # Create an old-style archive from a shared archive. |
| 25541 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 25542 | |
| 25543 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25544 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 25545 | |
| 25546 | # Commands used to build a shared archive. |
| 25547 | archive_cmds=$lt_archive_cmds |
| 25548 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 25549 | |
| 25550 | # Commands used to build a loadable module if different from building |
| 25551 | # a shared archive. |
| 25552 | module_cmds=$lt_module_cmds |
| 25553 | module_expsym_cmds=$lt_module_expsym_cmds |
| 25554 | |
| 25555 | # Whether we are building with GNU ld or not. |
| 25556 | with_gnu_ld=$lt_with_gnu_ld |
| 25557 | |
| 25558 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25559 | allow_undefined_flag=$lt_allow_undefined_flag |
| 25560 | |
| 25561 | # Flag that enforces no undefined symbols. |
| 25562 | no_undefined_flag=$lt_no_undefined_flag |
| 25563 | |
| 25564 | # Flag to hardcode \$libdir into a binary during linking. |
| 25565 | # This must work even if \$libdir does not exist |
| 25566 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 25567 | |
| 25568 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 25569 | # during linking. This must work even if \$libdir does not exist. |
| 25570 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 25571 | |
| 25572 | # Whether we need a single "-rpath" flag with a separated argument. |
| 25573 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 25574 | |
| 25575 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 25576 | # DIR into the resulting binary. |
| 25577 | hardcode_direct=$hardcode_direct |
| 25578 | |
| 25579 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 25580 | # DIR into the resulting binary and the resulting library dependency is |
| 25581 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 25582 | # library is relocated. |
| 25583 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 25584 | |
| 25585 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 25586 | # into the resulting binary. |
| 25587 | hardcode_minus_L=$hardcode_minus_L |
| 25588 | |
| 25589 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 25590 | # into the resulting binary. |
| 25591 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 25592 | |
| 25593 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 25594 | # into the library and all subsequent libraries and executables linked |
| 25595 | # against it. |
| 25596 | hardcode_automatic=$hardcode_automatic |
| 25597 | |
| 25598 | # Set to yes if linker adds runtime paths of dependent libraries |
| 25599 | # to runtime path list. |
| 25600 | inherit_rpath=$inherit_rpath |
| 25601 | |
| 25602 | # Whether libtool must link a program against all its dependency libraries. |
| 25603 | link_all_deplibs=$link_all_deplibs |
| 25604 | |
| 25605 | # Set to "yes" if exported symbols are required. |
| 25606 | always_export_symbols=$always_export_symbols |
| 25607 | |
| 25608 | # The commands to list exported symbols. |
| 25609 | export_symbols_cmds=$lt_export_symbols_cmds |
| 25610 | |
| 25611 | # Symbols that should not be listed in the preloaded symbols. |
| 25612 | exclude_expsyms=$lt_exclude_expsyms |
| 25613 | |
| 25614 | # Symbols that must always be exported. |
| 25615 | include_expsyms=$lt_include_expsyms |
| 25616 | |
| 25617 | # Commands necessary for linking programs (against libraries) with templates. |
| 25618 | prelink_cmds=$lt_prelink_cmds |
| 25619 | |
| 25620 | # Commands necessary for finishing linking programs. |
| 25621 | postlink_cmds=$lt_postlink_cmds |
| 25622 | |
| 25623 | # Specify filename containing input files. |
| 25624 | file_list_spec=$lt_file_list_spec |
| 25625 | |
| 25626 | # How to hardcode a shared library path into an executable. |
| 25627 | hardcode_action=$hardcode_action |
| 25628 | |
| 25629 | # The directories searched by this compiler when creating a shared library. |
| 25630 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 25631 | |
| 25632 | # Dependencies to place before and after the objects being linked to |
| 25633 | # create a shared library. |
| 25634 | predep_objects=$lt_predep_objects |
| 25635 | postdep_objects=$lt_postdep_objects |
| 25636 | predeps=$lt_predeps |
| 25637 | postdeps=$lt_postdeps |
| 25638 | |
| 25639 | # The library search path used internally by the compiler when linking |
| 25640 | # a shared library. |
| 25641 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 25642 | |
| 25643 | # ### END LIBTOOL CONFIG |
| 25644 | |
| 25645 | _LT_EOF |
| 25646 | |
| 25647 | case $host_os in |
| 25648 | aix3*) |
| 25649 | cat <<\_LT_EOF >> "$cfgfile" |
| 25650 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 25651 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 25652 | # vanish in a puff of smoke. |
| 25653 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 25654 | COLLECT_NAMES= |
| 25655 | export COLLECT_NAMES |
| 25656 | fi |
| 25657 | _LT_EOF |
| 25658 | ;; |
| 25659 | esac |
| 25660 | |
| 25661 | |
| 25662 | ltmain="$ac_aux_dir/ltmain.sh" |
| 25663 | |
| 25664 | |
| 25665 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 25666 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 25667 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 25668 | # is reportedly fixed, but why not run on old versions too? |
| 25669 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 25670 | || (rm -f "$cfgfile"; exit 1) |
| 25671 | |
| 25672 | if test x"$xsi_shell" = xyes; then |
| 25673 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 25674 | func_dirname ()\ |
| 25675 | {\ |
| 25676 | \ case ${1} in\ |
| 25677 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 25678 | \ * ) func_dirname_result="${3}" ;;\ |
| 25679 | \ esac\ |
| 25680 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25681 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25682 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25683 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25684 | |
| 25685 | |
| 25686 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 25687 | func_basename ()\ |
| 25688 | {\ |
| 25689 | \ func_basename_result="${1##*/}"\ |
| 25690 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25691 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25692 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25693 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25694 | |
| 25695 | |
| 25696 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 25697 | func_dirname_and_basename ()\ |
| 25698 | {\ |
| 25699 | \ case ${1} in\ |
| 25700 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 25701 | \ * ) func_dirname_result="${3}" ;;\ |
| 25702 | \ esac\ |
| 25703 | \ func_basename_result="${1##*/}"\ |
| 25704 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25705 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25706 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25707 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25708 | |
| 25709 | |
| 25710 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 25711 | func_stripname ()\ |
| 25712 | {\ |
| 25713 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 25714 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 25715 | \ func_stripname_result=${3}\ |
| 25716 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 25717 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 25718 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25719 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25720 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25721 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25722 | |
| 25723 | |
| 25724 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 25725 | func_split_long_opt ()\ |
| 25726 | {\ |
| 25727 | \ func_split_long_opt_name=${1%%=*}\ |
| 25728 | \ func_split_long_opt_arg=${1#*=}\ |
| 25729 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25730 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25731 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25732 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25733 | |
| 25734 | |
| 25735 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 25736 | func_split_short_opt ()\ |
| 25737 | {\ |
| 25738 | \ func_split_short_opt_arg=${1#??}\ |
| 25739 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 25740 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25741 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25742 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25743 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25744 | |
| 25745 | |
| 25746 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 25747 | func_lo2o ()\ |
| 25748 | {\ |
| 25749 | \ case ${1} in\ |
| 25750 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 25751 | \ *) func_lo2o_result=${1} ;;\ |
| 25752 | \ esac\ |
| 25753 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25754 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25755 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25756 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25757 | |
| 25758 | |
| 25759 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 25760 | func_xform ()\ |
| 25761 | {\ |
| 25762 | func_xform_result=${1%.*}.lo\ |
| 25763 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25764 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25765 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25766 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25767 | |
| 25768 | |
| 25769 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 25770 | func_arith ()\ |
| 25771 | {\ |
| 25772 | func_arith_result=$(( $* ))\ |
| 25773 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25774 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25775 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25776 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25777 | |
| 25778 | |
| 25779 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 25780 | func_len ()\ |
| 25781 | {\ |
| 25782 | func_len_result=${#1}\ |
| 25783 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25784 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25785 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25786 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25787 | |
| 25788 | fi |
| 25789 | |
| 25790 | if test x"$lt_shell_append" = xyes; then |
| 25791 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 25792 | func_append ()\ |
| 25793 | {\ |
| 25794 | eval "${1}+=\\${2}"\ |
| 25795 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25796 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25797 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25798 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25799 | |
| 25800 | |
| 25801 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 25802 | func_append_quoted ()\ |
| 25803 | {\ |
| 25804 | \ func_quote_for_eval "${2}"\ |
| 25805 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 25806 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 25807 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25808 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25809 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25810 | |
| 25811 | |
| 25812 | # Save a `func_append' function call where possible by direct use of '+=' |
| 25813 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 25814 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25815 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25816 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25817 | else |
| 25818 | # Save a `func_append' function call even when '+=' is not available |
| 25819 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 25820 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 25821 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 25822 | test 0 -eq $? || _lt_function_replace_fail=: |
| 25823 | fi |
| 25824 | |
| 25825 | if test x"$_lt_function_replace_fail" = x":"; then |
| 25826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 25827 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 25828 | fi |
| 25829 | |
| 25830 | |
| 25831 | mv -f "$cfgfile" "$ofile" || |
| 25832 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 25833 | chmod +x "$ofile" |
| 25834 | |
| 25835 | |
| 25836 | cat <<_LT_EOF >> "$ofile" |
| 25837 | |
| 25838 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 25839 | |
| 25840 | # The linker used to build libraries. |
| 25841 | LD=$lt_LD_CXX |
| 25842 | |
| 25843 | # How to create reloadable object files. |
| 25844 | reload_flag=$lt_reload_flag_CXX |
| 25845 | reload_cmds=$lt_reload_cmds_CXX |
| 25846 | |
| 25847 | # Commands used to build an old-style archive. |
| 25848 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 25849 | |
| 25850 | # A language specific compiler. |
| 25851 | CC=$lt_compiler_CXX |
| 25852 | |
| 25853 | # Is the compiler the GNU compiler? |
| 25854 | with_gcc=$GCC_CXX |
| 25855 | |
| 25856 | # Compiler flag to turn off builtin functions. |
| 25857 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 25858 | |
| 25859 | # Additional compiler flags for building library objects. |
| 25860 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 25861 | |
| 25862 | # How to pass a linker flag through the compiler. |
| 25863 | wl=$lt_lt_prog_compiler_wl_CXX |
| 25864 | |
| 25865 | # Compiler flag to prevent dynamic linking. |
| 25866 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 25867 | |
| 25868 | # Does compiler simultaneously support -c and -o options? |
| 25869 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 25870 | |
| 25871 | # Whether or not to add -lc for building shared libraries. |
| 25872 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 25873 | |
| 25874 | # Whether or not to disallow shared libs when runtime libs are static. |
| 25875 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 25876 | |
| 25877 | # Compiler flag to allow reflexive dlopens. |
| 25878 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 25879 | |
| 25880 | # Compiler flag to generate shared objects directly from archives. |
| 25881 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 25882 | |
| 25883 | # Whether the compiler copes with passing no objects directly. |
| 25884 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 25885 | |
| 25886 | # Create an old-style archive from a shared archive. |
| 25887 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 25888 | |
| 25889 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25890 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 25891 | |
| 25892 | # Commands used to build a shared archive. |
| 25893 | archive_cmds=$lt_archive_cmds_CXX |
| 25894 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 25895 | |
| 25896 | # Commands used to build a loadable module if different from building |
| 25897 | # a shared archive. |
| 25898 | module_cmds=$lt_module_cmds_CXX |
| 25899 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 25900 | |
| 25901 | # Whether we are building with GNU ld or not. |
| 25902 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 25903 | |
| 25904 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25905 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 25906 | |
| 25907 | # Flag that enforces no undefined symbols. |
| 25908 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 25909 | |
| 25910 | # Flag to hardcode \$libdir into a binary during linking. |
| 25911 | # This must work even if \$libdir does not exist |
| 25912 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 25913 | |
| 25914 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 25915 | # during linking. This must work even if \$libdir does not exist. |
| 25916 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 25917 | |
| 25918 | # Whether we need a single "-rpath" flag with a separated argument. |
| 25919 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 25920 | |
| 25921 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 25922 | # DIR into the resulting binary. |
| 25923 | hardcode_direct=$hardcode_direct_CXX |
| 25924 | |
| 25925 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 25926 | # DIR into the resulting binary and the resulting library dependency is |
| 25927 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 25928 | # library is relocated. |
| 25929 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 25930 | |
| 25931 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 25932 | # into the resulting binary. |
| 25933 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 25934 | |
| 25935 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 25936 | # into the resulting binary. |
| 25937 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 25938 | |
| 25939 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 25940 | # into the library and all subsequent libraries and executables linked |
| 25941 | # against it. |
| 25942 | hardcode_automatic=$hardcode_automatic_CXX |
| 25943 | |
| 25944 | # Set to yes if linker adds runtime paths of dependent libraries |
| 25945 | # to runtime path list. |
| 25946 | inherit_rpath=$inherit_rpath_CXX |
| 25947 | |
| 25948 | # Whether libtool must link a program against all its dependency libraries. |
| 25949 | link_all_deplibs=$link_all_deplibs_CXX |
| 25950 | |
| 25951 | # Set to "yes" if exported symbols are required. |
| 25952 | always_export_symbols=$always_export_symbols_CXX |
| 25953 | |
| 25954 | # The commands to list exported symbols. |
| 25955 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 25956 | |
| 25957 | # Symbols that should not be listed in the preloaded symbols. |
| 25958 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 25959 | |
| 25960 | # Symbols that must always be exported. |
| 25961 | include_expsyms=$lt_include_expsyms_CXX |
| 25962 | |
| 25963 | # Commands necessary for linking programs (against libraries) with templates. |
| 25964 | prelink_cmds=$lt_prelink_cmds_CXX |
| 25965 | |
| 25966 | # Commands necessary for finishing linking programs. |
| 25967 | postlink_cmds=$lt_postlink_cmds_CXX |
| 25968 | |
| 25969 | # Specify filename containing input files. |
| 25970 | file_list_spec=$lt_file_list_spec_CXX |
| 25971 | |
| 25972 | # How to hardcode a shared library path into an executable. |
| 25973 | hardcode_action=$hardcode_action_CXX |
| 25974 | |
| 25975 | # The directories searched by this compiler when creating a shared library. |
| 25976 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 25977 | |
| 25978 | # Dependencies to place before and after the objects being linked to |
| 25979 | # create a shared library. |
| 25980 | predep_objects=$lt_predep_objects_CXX |
| 25981 | postdep_objects=$lt_postdep_objects_CXX |
| 25982 | predeps=$lt_predeps_CXX |
| 25983 | postdeps=$lt_postdeps_CXX |
| 25984 | |
| 25985 | # The library search path used internally by the compiler when linking |
| 25986 | # a shared library. |
| 25987 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 25988 | |
| 25989 | # ### END LIBTOOL TAG CONFIG: CXX |
| 25990 | _LT_EOF |
| 25991 | |
| 25992 | ;; |
| 25993 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 25994 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 25995 | # are listed without --file. Let's play safe and only enable the eval |
| 25996 | # if we detect the quoting. |
| 25997 | case $CONFIG_FILES in |
| 25998 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 25999 | *) set x $CONFIG_FILES ;; |
| 26000 | esac |
| 26001 | shift |
| 26002 | for mf |
| 26003 | do |
| 26004 | # Strip MF so we end up with the name of the file. |
| 26005 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 26006 | # Check whether this is an Automake generated Makefile or not. |
| 26007 | # We used to match only the files named `Makefile.in', but |
| 26008 | # some people rename them; so instead we look at the file content. |
| 26009 | # Grep'ing the first line is not enough: some people post-process |
| 26010 | # each Makefile.in and add a new line on top of each file to say so. |
| 26011 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 26012 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 26013 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 26014 | dirpart=`$as_dirname -- "$mf" || |
| 26015 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26016 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 26017 | X"$mf" : 'X\(//\)$' \| \ |
| 26018 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 26019 | $as_echo X"$mf" | |
| 26020 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26021 | s//\1/ |
| 26022 | q |
| 26023 | } |
| 26024 | /^X\(\/\/\)[^/].*/{ |
| 26025 | s//\1/ |
| 26026 | q |
| 26027 | } |
| 26028 | /^X\(\/\/\)$/{ |
| 26029 | s//\1/ |
| 26030 | q |
| 26031 | } |
| 26032 | /^X\(\/\).*/{ |
| 26033 | s//\1/ |
| 26034 | q |
| 26035 | } |
| 26036 | s/.*/./; q'` |
| 26037 | else |
| 26038 | continue |
| 26039 | fi |
| 26040 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 26041 | # from the Makefile without running `make'. |
| 26042 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 26043 | test -z "$DEPDIR" && continue |
| 26044 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 26045 | test -z "am__include" && continue |
| 26046 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 26047 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 26048 | U=`sed -n 's/^U = //p' < "$mf"` |
| 26049 | # Find all dependency output files, they are included files with |
| 26050 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 26051 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 26052 | # expansion. |
| 26053 | for file in `sed -n " |
| 26054 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 26055 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 26056 | # Make sure the directory exists. |
| 26057 | test -f "$dirpart/$file" && continue |
| 26058 | fdir=`$as_dirname -- "$file" || |
| 26059 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26060 | X"$file" : 'X\(//\)[^/]' \| \ |
| 26061 | X"$file" : 'X\(//\)$' \| \ |
| 26062 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 26063 | $as_echo X"$file" | |
| 26064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26065 | s//\1/ |
| 26066 | q |
| 26067 | } |
| 26068 | /^X\(\/\/\)[^/].*/{ |
| 26069 | s//\1/ |
| 26070 | q |
| 26071 | } |
| 26072 | /^X\(\/\/\)$/{ |
| 26073 | s//\1/ |
| 26074 | q |
| 26075 | } |
| 26076 | /^X\(\/\).*/{ |
| 26077 | s//\1/ |
| 26078 | q |
| 26079 | } |
| 26080 | s/.*/./; q'` |
| 26081 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 26082 | # echo "creating $dirpart/$file" |
| 26083 | echo '# dummy' > "$dirpart/$file" |
| 26084 | done |
| 26085 | done |
| 26086 | } |
| 26087 | ;; |
| 26088 | |
| 26089 | esac |
| 26090 | done # for ac_tag |
| 26091 | |
| 26092 | |
| 26093 | as_fn_exit 0 |
| 26094 | _ACEOF |
| 26095 | ac_clean_files=$ac_clean_files_save |
| 26096 | |
| 26097 | test $ac_write_fail = 0 || |
| 26098 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 26099 | |
| 26100 | |
| 26101 | # configure is writing to config.log, and then calls config.status. |
| 26102 | # config.status does its own redirection, appending to config.log. |
| 26103 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26104 | # by configure, so config.status won't be able to write to it; its |
| 26105 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26106 | # effectively closing config.log, so it can be properly (re)opened and |
| 26107 | # appended to by config.status. When coming back to configure, we |
| 26108 | # need to make the FD available again. |
| 26109 | if test "$no_create" != yes; then |
| 26110 | ac_cs_success=: |
| 26111 | ac_config_status_args= |
| 26112 | test "$silent" = yes && |
| 26113 | ac_config_status_args="$ac_config_status_args --quiet" |
| 26114 | exec 5>/dev/null |
| 26115 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 26116 | exec 5>>config.log |
| 26117 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26118 | # would make configure fail if this is the last instruction. |
| 26119 | $ac_cs_success || as_fn_exit 1 |
| 26120 | fi |
| 26121 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 26122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 26123 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 26124 | fi |
| 26125 | |
| 26126 | |
| 26127 | # if test ! -f inc/cc++/thread.h ; then |
| 26128 | # cp ${srcdir}/inc/cc++/*.h inc/cc++ ; fi |
| 26129 | |
| 26130 | cd inc |
| 26131 | rm -f config.tmp |
| 26132 | cp ../config.h config.tmp |
| 26133 | sed -e s!"@thrprefix@"!"$thrprefix"! -e s!"@USR_PREFIX@"!"$prefix"! \ |
| 26134 | -e s!PACKAGE!CCXX_PACKAGE! -e s!VERSION!CCXX_VERSION! <config.tmp >cc++/config.h |
| 26135 | cd .. |
| 26136 | # |
| 26137 | # Visual Studio |
| 26138 | # |
| 26139 | DLLVERSION=`echo "$LT_RELEASE" | sed -e 's/\.//'g` |
| 26140 | # |
| 26141 | # Visual Studio 2008 |
| 26142 | # |
| 26143 | rm -f w32/vs2008/ccext2.vcproj.tmp w32/vs2008/ccgnu2.vcproj.tmp |
| 26144 | cp -p w32/vs2008/ccext2.vcproj w32/vs2008/ccext2.vcproj.tmp |
| 26145 | cp -p w32/vs2008/ccgnu2.vcproj w32/vs2008/ccgnu2.vcproj.tmp |
| 26146 | sed -e s/VCVERSION/$VERSION/g < w32/vs2008/ccext2.vcproj.tmp > w32/vs2008/ccext2.vcproj |
| 26147 | sed -e s/VCVERSION/$VERSION/g < w32/vs2008/ccgnu2.vcproj.tmp > w32/vs2008/ccgnu2.vcproj |
| 26148 | |
| 26149 | cp -p w32/vs2008/ccext2.vcproj w32/vs2008/ccext2.vcproj.tmp |
| 26150 | cp -p w32/vs2008/ccgnu2.vcproj w32/vs2008/ccgnu2.vcproj.tmp |
| 26151 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/vs2008/ccext2.vcproj.tmp > w32/vs2008/ccext2.vcproj |
| 26152 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/vs2008/ccgnu2.vcproj.tmp > w32/vs2008/ccgnu2.vcproj |
| 26153 | rm -f w32/vs2008/ccext2.vcproj.tmp w32/vs2008/ccgnu2.vcproj.tmp |
| 26154 | |
| 26155 | # |
| 26156 | # Visual Studio 2005 |
| 26157 | # |
| 26158 | rm -f w32/ccext2.vcproj.tmp w32/ccgnu2.vcproj.tmp |
| 26159 | cp -p w32/ccext2.vcproj w32/ccext2.vcproj.tmp |
| 26160 | cp -p w32/ccgnu2.vcproj w32/ccgnu2.vcproj.tmp |
| 26161 | sed -e s/VCVERSION/$VERSION/g < w32/ccext2.vcproj.tmp > w32/ccext2.vcproj |
| 26162 | sed -e s/VCVERSION/$VERSION/g < w32/ccgnu2.vcproj.tmp > w32/ccgnu2.vcproj |
| 26163 | |
| 26164 | cp -p w32/ccext2.vcproj w32/ccext2.vcproj.tmp |
| 26165 | cp -p w32/ccgnu2.vcproj w32/ccgnu2.vcproj.tmp |
| 26166 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccext2.vcproj.tmp > w32/ccext2.vcproj |
| 26167 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccgnu2.vcproj.tmp > w32/ccgnu2.vcproj |
| 26168 | rm -f w32/ccext2.vcproj.tmp w32/ccgnu2.vcproj.tmp |
| 26169 | |
| 26170 | # |
| 26171 | # Visual Studio 6 |
| 26172 | # |
| 26173 | rm -f w32/ccext2.dsp.tmp w32/ccgnu2.dsp.tmp |
| 26174 | cp -p w32/ccext2.dsp w32/ccext2.dsp.tmp |
| 26175 | cp -p w32/ccgnu2.dsp w32/ccgnu2.dsp.tmp |
| 26176 | sed -e s/VCVERSION/$VERSION/g < w32/ccext2.dsp.tmp > w32/ccext2.dsp |
| 26177 | sed -e s/VCVERSION/$VERSION/g < w32/ccgnu2.dsp.tmp > w32/ccgnu2.dsp |
| 26178 | |
| 26179 | cp -p w32/ccext2.dsp w32/ccext2.dsp.tmp |
| 26180 | cp -p w32/ccgnu2.dsp w32/ccgnu2.dsp.tmp |
| 26181 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccext2.dsp.tmp > w32/ccext2.dsp |
| 26182 | sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccgnu2.dsp.tmp > w32/ccgnu2.dsp |
| 26183 | rm -f w32/ccext2.dsp.tmp w32/ccgnu2.dsp.tmp |
| 26184 | |