Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.69 for ndn-cpp 0.2. |
| 4 | # |
| 5 | # Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software 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 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | |
| 202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 209 | test \$(( 1 + 1 )) = 2 || exit 1" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 210 | if (eval "$as_required") 2>/dev/null; then : |
| 211 | as_have_required=yes |
| 212 | else |
| 213 | as_have_required=no |
| 214 | fi |
| 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 216 | |
| 217 | else |
| 218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 219 | as_found=false |
| 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
| 224 | as_found=: |
| 225 | case $as_dir in #( |
| 226 | /*) |
| 227 | for as_base in sh bash ksh sh5; do |
| 228 | # Try only shells that exist, to save several forks. |
| 229 | as_shell=$as_dir/$as_base |
| 230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 234 | break 2 |
| 235 | fi |
| 236 | fi |
| 237 | done;; |
| 238 | esac |
| 239 | as_found=false |
| 240 | done |
| 241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 243 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 244 | fi; } |
| 245 | IFS=$as_save_IFS |
| 246 | |
| 247 | |
| 248 | if test "x$CONFIG_SHELL" != x; then : |
| 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno; then : |
| 271 | $as_echo "$0: This script requires a shell more modern than all" |
| 272 | $as_echo "$0: the shells that I found on your system." |
| 273 | if test x${ZSH_VERSION+set} = xset ; then |
| 274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 276 | else |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 278 | $0: ndn-lib@lists.cs.ucla.edu about your system, including |
| 279 | $0: any error possibly output before this message. Then |
| 280 | $0: install a modern shell, or manually run the script |
| 281 | $0: under such a shell if you do have one." |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 282 | fi |
| 283 | exit 1 |
| 284 | fi |
| 285 | fi |
| 286 | fi |
| 287 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 288 | export SHELL |
| 289 | # Unset more variables known to interfere with behavior of common tools. |
| 290 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 291 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 292 | |
| 293 | ## --------------------- ## |
| 294 | ## M4sh Shell Functions. ## |
| 295 | ## --------------------- ## |
| 296 | # as_fn_unset VAR |
| 297 | # --------------- |
| 298 | # Portably unset VAR. |
| 299 | as_fn_unset () |
| 300 | { |
| 301 | { eval $1=; unset $1;} |
| 302 | } |
| 303 | as_unset=as_fn_unset |
| 304 | |
| 305 | # as_fn_set_status STATUS |
| 306 | # ----------------------- |
| 307 | # Set $? to STATUS, without forking. |
| 308 | as_fn_set_status () |
| 309 | { |
| 310 | return $1 |
| 311 | } # as_fn_set_status |
| 312 | |
| 313 | # as_fn_exit STATUS |
| 314 | # ----------------- |
| 315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 316 | as_fn_exit () |
| 317 | { |
| 318 | set +e |
| 319 | as_fn_set_status $1 |
| 320 | exit $1 |
| 321 | } # as_fn_exit |
| 322 | |
| 323 | # as_fn_mkdir_p |
| 324 | # ------------- |
| 325 | # Create "$as_dir" as a directory, including parents if necessary. |
| 326 | as_fn_mkdir_p () |
| 327 | { |
| 328 | |
| 329 | case $as_dir in #( |
| 330 | -*) as_dir=./$as_dir;; |
| 331 | esac |
| 332 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 333 | as_dirs= |
| 334 | while :; do |
| 335 | case $as_dir in #( |
| 336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 337 | *) as_qdir=$as_dir;; |
| 338 | esac |
| 339 | as_dirs="'$as_qdir' $as_dirs" |
| 340 | as_dir=`$as_dirname -- "$as_dir" || |
| 341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 343 | X"$as_dir" : 'X\(//\)$' \| \ |
| 344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 345 | $as_echo X"$as_dir" | |
| 346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\/\)[^/].*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | /^X\(\/\/\)$/{ |
| 355 | s//\1/ |
| 356 | q |
| 357 | } |
| 358 | /^X\(\/\).*/{ |
| 359 | s//\1/ |
| 360 | q |
| 361 | } |
| 362 | s/.*/./; q'` |
| 363 | test -d "$as_dir" && break |
| 364 | done |
| 365 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 367 | |
| 368 | |
| 369 | } # as_fn_mkdir_p |
| 370 | |
| 371 | # as_fn_executable_p FILE |
| 372 | # ----------------------- |
| 373 | # Test if FILE is an executable regular file. |
| 374 | as_fn_executable_p () |
| 375 | { |
| 376 | test -f "$1" && test -x "$1" |
| 377 | } # as_fn_executable_p |
| 378 | # as_fn_append VAR VALUE |
| 379 | # ---------------------- |
| 380 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 381 | # advantage of any shell optimizations that allow amortized linear growth over |
| 382 | # repeated appends, instead of the typical quadratic growth present in naive |
| 383 | # implementations. |
| 384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 385 | eval 'as_fn_append () |
| 386 | { |
| 387 | eval $1+=\$2 |
| 388 | }' |
| 389 | else |
| 390 | as_fn_append () |
| 391 | { |
| 392 | eval $1=\$$1\$2 |
| 393 | } |
| 394 | fi # as_fn_append |
| 395 | |
| 396 | # as_fn_arith ARG... |
| 397 | # ------------------ |
| 398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 | # must be portable across $(()) and expr. |
| 401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 402 | eval 'as_fn_arith () |
| 403 | { |
| 404 | as_val=$(( $* )) |
| 405 | }' |
| 406 | else |
| 407 | as_fn_arith () |
| 408 | { |
| 409 | as_val=`expr "$@" || test $? -eq 1` |
| 410 | } |
| 411 | fi # as_fn_arith |
| 412 | |
| 413 | |
| 414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 | # ---------------------------------------- |
| 416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 418 | # script with STATUS, using 1 if that was 0. |
| 419 | as_fn_error () |
| 420 | { |
| 421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 422 | if test "$4"; then |
| 423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 425 | fi |
| 426 | $as_echo "$as_me: error: $2" >&2 |
| 427 | as_fn_exit $as_status |
| 428 | } # as_fn_error |
| 429 | |
| 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 432 | as_expr=expr |
| 433 | else |
| 434 | as_expr=false |
| 435 | fi |
| 436 | |
| 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 438 | as_basename=basename |
| 439 | else |
| 440 | as_basename=false |
| 441 | fi |
| 442 | |
| 443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 444 | as_dirname=dirname |
| 445 | else |
| 446 | as_dirname=false |
| 447 | fi |
| 448 | |
| 449 | as_me=`$as_basename -- "$0" || |
| 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 451 | X"$0" : 'X\(//\)$' \| \ |
| 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 453 | $as_echo X/"$0" | |
| 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | /^X\/\(\/\/\)$/{ |
| 459 | s//\1/ |
| 460 | q |
| 461 | } |
| 462 | /^X\/\(\/\).*/{ |
| 463 | s//\1/ |
| 464 | q |
| 465 | } |
| 466 | s/.*/./; q'` |
| 467 | |
| 468 | # Avoid depending upon Character Ranges. |
| 469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 472 | as_cr_digits='0123456789' |
| 473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 474 | |
| 475 | |
| 476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 481 | sed -n ' |
| 482 | p |
| 483 | /[$]LINENO/= |
| 484 | ' <$as_myself | |
| 485 | sed ' |
| 486 | s/[$]LINENO.*/&-/ |
| 487 | t lineno |
| 488 | b |
| 489 | :lineno |
| 490 | N |
| 491 | :loop |
| 492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 493 | t loop |
| 494 | s/-\n.*// |
| 495 | ' >$as_me.lineno && |
| 496 | chmod +x "$as_me.lineno" || |
| 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 498 | |
| 499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 500 | # already done that, so ensure we don't try to do so again and fall |
| 501 | # in an infinite loop. This has already happened in practice. |
| 502 | _as_can_reexec=no; export _as_can_reexec |
| 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 504 | # (the dirname of $[0] is not the place where we might find the |
| 505 | # original and so on. Autoconf is especially sensitive to this). |
| 506 | . "./$as_me.lineno" |
| 507 | # Exit status is that of the last command. |
| 508 | exit |
| 509 | } |
| 510 | |
| 511 | ECHO_C= ECHO_N= ECHO_T= |
| 512 | case `echo -n x` in #((((( |
| 513 | -n*) |
| 514 | case `echo 'xy\c'` in |
| 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 516 | xy) ECHO_C='\c';; |
| 517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 | ECHO_T=' ';; |
| 519 | esac;; |
| 520 | *) |
| 521 | ECHO_N='-n';; |
| 522 | esac |
| 523 | |
| 524 | rm -f conf$$ conf$$.exe conf$$.file |
| 525 | if test -d conf$$.dir; then |
| 526 | rm -f conf$$.dir/conf$$.file |
| 527 | else |
| 528 | rm -f conf$$.dir |
| 529 | mkdir conf$$.dir 2>/dev/null |
| 530 | fi |
| 531 | if (echo >conf$$.file) 2>/dev/null; then |
| 532 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s='ln -s' |
| 534 | # ... but there are two gotchas: |
| 535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 537 | # In both cases, we have to default to `cp -pR'. |
| 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 539 | as_ln_s='cp -pR' |
| 540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 | as_ln_s=ln |
| 542 | else |
| 543 | as_ln_s='cp -pR' |
| 544 | fi |
| 545 | else |
| 546 | as_ln_s='cp -pR' |
| 547 | fi |
| 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 549 | rmdir conf$$.dir 2>/dev/null |
| 550 | |
| 551 | if mkdir -p . 2>/dev/null; then |
| 552 | as_mkdir_p='mkdir -p "$as_dir"' |
| 553 | else |
| 554 | test -d ./-p && rmdir ./-p |
| 555 | as_mkdir_p=false |
| 556 | fi |
| 557 | |
| 558 | as_test_x='test -x' |
| 559 | as_executable_p=as_fn_executable_p |
| 560 | |
| 561 | # Sed expression to map a string onto a valid CPP name. |
| 562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 563 | |
| 564 | # Sed expression to map a string onto a valid variable name. |
| 565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 566 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 569 | |
| 570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 | exec 6>&1 |
| 572 | |
| 573 | # Name of the host. |
| 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 575 | # so uname gets run too. |
| 576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 577 | |
| 578 | # |
| 579 | # Initializations. |
| 580 | # |
| 581 | ac_default_prefix=/usr/local |
| 582 | ac_clean_files= |
| 583 | ac_config_libobj_dir=. |
| 584 | LIBOBJS= |
| 585 | cross_compiling=no |
| 586 | subdirs= |
| 587 | MFLAGS= |
| 588 | MAKEFLAGS= |
| 589 | |
| 590 | # Identity of this package. |
| 591 | PACKAGE_NAME='ndn-cpp' |
| 592 | PACKAGE_TARNAME='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 593 | PACKAGE_VERSION='0.2' |
| 594 | PACKAGE_STRING='ndn-cpp 0.2' |
| 595 | PACKAGE_BUGREPORT='ndn-lib@lists.cs.ucla.edu' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 596 | PACKAGE_URL='https://github.com/named-data/ndn-cpp' |
| 597 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 598 | ac_unique_file="config.h.in" |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 599 | # Factoring default headers for most tests. |
| 600 | ac_includes_default="\ |
| 601 | #include <stdio.h> |
| 602 | #ifdef HAVE_SYS_TYPES_H |
| 603 | # include <sys/types.h> |
| 604 | #endif |
| 605 | #ifdef HAVE_SYS_STAT_H |
| 606 | # include <sys/stat.h> |
| 607 | #endif |
| 608 | #ifdef STDC_HEADERS |
| 609 | # include <stdlib.h> |
| 610 | # include <stddef.h> |
| 611 | #else |
| 612 | # ifdef HAVE_STDLIB_H |
| 613 | # include <stdlib.h> |
| 614 | # endif |
| 615 | #endif |
| 616 | #ifdef HAVE_STRING_H |
| 617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 618 | # include <memory.h> |
| 619 | # endif |
| 620 | # include <string.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_STRINGS_H |
| 623 | # include <strings.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_INTTYPES_H |
| 626 | # include <inttypes.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STDINT_H |
| 629 | # include <stdint.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_UNISTD_H |
| 632 | # include <unistd.h> |
| 633 | #endif" |
| 634 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 635 | ac_subst_vars='am__EXEEXT_FALSE |
| 636 | am__EXEEXT_TRUE |
| 637 | LTLIBOBJS |
| 638 | LIBOBJS |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 639 | DOXYGEN_PAPER_SIZE |
| 640 | DX_COND_latex_FALSE |
| 641 | DX_COND_latex_TRUE |
| 642 | DX_COND_pdf_FALSE |
| 643 | DX_COND_pdf_TRUE |
| 644 | DX_PDFLATEX |
| 645 | DX_FLAG_pdf |
| 646 | DX_COND_ps_FALSE |
| 647 | DX_COND_ps_TRUE |
| 648 | DX_EGREP |
| 649 | DX_DVIPS |
| 650 | DX_MAKEINDEX |
| 651 | DX_LATEX |
| 652 | DX_FLAG_ps |
| 653 | DX_COND_html_FALSE |
| 654 | DX_COND_html_TRUE |
| 655 | DX_FLAG_html |
| 656 | DX_COND_chi_FALSE |
| 657 | DX_COND_chi_TRUE |
| 658 | DX_FLAG_chi |
| 659 | DX_COND_chm_FALSE |
| 660 | DX_COND_chm_TRUE |
| 661 | DX_HHC |
| 662 | DX_FLAG_chm |
| 663 | DX_COND_xml_FALSE |
| 664 | DX_COND_xml_TRUE |
| 665 | DX_FLAG_xml |
| 666 | DX_COND_rtf_FALSE |
| 667 | DX_COND_rtf_TRUE |
| 668 | DX_FLAG_rtf |
| 669 | DX_COND_man_FALSE |
| 670 | DX_COND_man_TRUE |
| 671 | DX_FLAG_man |
| 672 | DX_COND_dot_FALSE |
| 673 | DX_COND_dot_TRUE |
| 674 | DX_DOT |
| 675 | DX_FLAG_dot |
| 676 | DX_COND_doc_FALSE |
| 677 | DX_COND_doc_TRUE |
| 678 | DX_PERL |
| 679 | DX_DOXYGEN |
| 680 | DX_FLAG_doc |
| 681 | DX_ENV |
| 682 | DX_DOCDIR |
| 683 | DX_CONFIG |
| 684 | DX_PROJECT |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 685 | HAVE_CXX11 |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 686 | CXXCPP |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 687 | am__fastdepCXX_FALSE |
| 688 | am__fastdepCXX_TRUE |
| 689 | CXXDEPMODE |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 690 | ac_ct_CXX |
| 691 | CXXFLAGS |
| 692 | CXX |
| 693 | CPP |
| 694 | OTOOL64 |
| 695 | OTOOL |
| 696 | LIPO |
| 697 | NMEDIT |
| 698 | DSYMUTIL |
| 699 | MANIFEST_TOOL |
| 700 | RANLIB |
| 701 | DLLTOOL |
| 702 | OBJDUMP |
| 703 | LN_S |
| 704 | NM |
| 705 | ac_ct_DUMPBIN |
| 706 | DUMPBIN |
| 707 | LD |
| 708 | FGREP |
| 709 | EGREP |
| 710 | GREP |
| 711 | SED |
| 712 | host_os |
| 713 | host_vendor |
| 714 | host_cpu |
| 715 | host |
| 716 | build_os |
| 717 | build_vendor |
| 718 | build_cpu |
| 719 | build |
| 720 | LIBTOOL |
| 721 | am__fastdepCC_FALSE |
| 722 | am__fastdepCC_TRUE |
| 723 | CCDEPMODE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 724 | am__nodep |
| 725 | AMDEPBACKSLASH |
| 726 | AMDEP_FALSE |
| 727 | AMDEP_TRUE |
| 728 | am__quote |
| 729 | am__include |
| 730 | DEPDIR |
| 731 | OBJEXT |
| 732 | EXEEXT |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 733 | ac_ct_CC |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 734 | CPPFLAGS |
| 735 | LDFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 736 | CFLAGS |
| 737 | CC |
| 738 | ac_ct_AR |
| 739 | AR |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 740 | MAINT |
| 741 | MAINTAINER_MODE_FALSE |
| 742 | MAINTAINER_MODE_TRUE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 743 | AM_BACKSLASH |
| 744 | AM_DEFAULT_VERBOSITY |
| 745 | AM_DEFAULT_V |
| 746 | AM_V |
| 747 | am__untar |
| 748 | am__tar |
| 749 | AMTAR |
| 750 | am__leading_dot |
| 751 | SET_MAKE |
| 752 | AWK |
| 753 | mkdir_p |
| 754 | MKDIR_P |
| 755 | INSTALL_STRIP_PROGRAM |
| 756 | STRIP |
| 757 | install_sh |
| 758 | MAKEINFO |
| 759 | AUTOHEADER |
| 760 | AUTOMAKE |
| 761 | AUTOCONF |
| 762 | ACLOCAL |
| 763 | VERSION |
| 764 | PACKAGE |
| 765 | CYGPATH_W |
| 766 | am__isrc |
| 767 | INSTALL_DATA |
| 768 | INSTALL_SCRIPT |
| 769 | INSTALL_PROGRAM |
| 770 | target_alias |
| 771 | host_alias |
| 772 | build_alias |
| 773 | LIBS |
| 774 | ECHO_T |
| 775 | ECHO_N |
| 776 | ECHO_C |
| 777 | DEFS |
| 778 | mandir |
| 779 | localedir |
| 780 | libdir |
| 781 | psdir |
| 782 | pdfdir |
| 783 | dvidir |
| 784 | htmldir |
| 785 | infodir |
| 786 | docdir |
| 787 | oldincludedir |
| 788 | includedir |
| 789 | localstatedir |
| 790 | sharedstatedir |
| 791 | sysconfdir |
| 792 | datadir |
| 793 | datarootdir |
| 794 | libexecdir |
| 795 | sbindir |
| 796 | bindir |
| 797 | program_transform_name |
| 798 | prefix |
| 799 | exec_prefix |
| 800 | PACKAGE_URL |
| 801 | PACKAGE_BUGREPORT |
| 802 | PACKAGE_STRING |
| 803 | PACKAGE_VERSION |
| 804 | PACKAGE_TARNAME |
| 805 | PACKAGE_NAME |
| 806 | PATH_SEPARATOR |
| 807 | SHELL' |
| 808 | ac_subst_files='' |
| 809 | ac_user_opts=' |
| 810 | enable_option_checking |
| 811 | enable_silent_rules |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 812 | enable_maintainer_mode |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 813 | enable_dependency_tracking |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 814 | enable_shared |
| 815 | enable_static |
| 816 | with_pic |
| 817 | enable_fast_install |
| 818 | with_gnu_ld |
| 819 | with_sysroot |
| 820 | enable_libtool_lock |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 821 | enable_doxygen_doc |
| 822 | enable_doxygen_dot |
| 823 | enable_doxygen_man |
| 824 | enable_doxygen_rtf |
| 825 | enable_doxygen_xml |
| 826 | enable_doxygen_chm |
| 827 | enable_doxygen_chi |
| 828 | enable_doxygen_html |
| 829 | enable_doxygen_ps |
| 830 | enable_doxygen_pdf |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 831 | ' |
| 832 | ac_precious_vars='build_alias |
| 833 | host_alias |
| 834 | target_alias |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 835 | CC |
| 836 | CFLAGS |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 837 | LDFLAGS |
| 838 | LIBS |
| 839 | CPPFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 840 | CPP |
| 841 | CXX |
| 842 | CXXFLAGS |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 843 | CCC |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 844 | CXXCPP |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 845 | DOXYGEN_PAPER_SIZE' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 846 | |
| 847 | |
| 848 | # Initialize some variables set by options. |
| 849 | ac_init_help= |
| 850 | ac_init_version=false |
| 851 | ac_unrecognized_opts= |
| 852 | ac_unrecognized_sep= |
| 853 | # The variables have the same names as the options, with |
| 854 | # dashes changed to underlines. |
| 855 | cache_file=/dev/null |
| 856 | exec_prefix=NONE |
| 857 | no_create= |
| 858 | no_recursion= |
| 859 | prefix=NONE |
| 860 | program_prefix=NONE |
| 861 | program_suffix=NONE |
| 862 | program_transform_name=s,x,x, |
| 863 | silent= |
| 864 | site= |
| 865 | srcdir= |
| 866 | verbose= |
| 867 | x_includes=NONE |
| 868 | x_libraries=NONE |
| 869 | |
| 870 | # Installation directory options. |
| 871 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 872 | # and all the variables that are supposed to be based on exec_prefix |
| 873 | # by default will actually change. |
| 874 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 875 | # (The list follows the same order as the GNU Coding Standards.) |
| 876 | bindir='${exec_prefix}/bin' |
| 877 | sbindir='${exec_prefix}/sbin' |
| 878 | libexecdir='${exec_prefix}/libexec' |
| 879 | datarootdir='${prefix}/share' |
| 880 | datadir='${datarootdir}' |
| 881 | sysconfdir='${prefix}/etc' |
| 882 | sharedstatedir='${prefix}/com' |
| 883 | localstatedir='${prefix}/var' |
| 884 | includedir='${prefix}/include' |
| 885 | oldincludedir='/usr/include' |
| 886 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 887 | infodir='${datarootdir}/info' |
| 888 | htmldir='${docdir}' |
| 889 | dvidir='${docdir}' |
| 890 | pdfdir='${docdir}' |
| 891 | psdir='${docdir}' |
| 892 | libdir='${exec_prefix}/lib' |
| 893 | localedir='${datarootdir}/locale' |
| 894 | mandir='${datarootdir}/man' |
| 895 | |
| 896 | ac_prev= |
| 897 | ac_dashdash= |
| 898 | for ac_option |
| 899 | do |
| 900 | # If the previous option needs an argument, assign it. |
| 901 | if test -n "$ac_prev"; then |
| 902 | eval $ac_prev=\$ac_option |
| 903 | ac_prev= |
| 904 | continue |
| 905 | fi |
| 906 | |
| 907 | case $ac_option in |
| 908 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 909 | *=) ac_optarg= ;; |
| 910 | *) ac_optarg=yes ;; |
| 911 | esac |
| 912 | |
| 913 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 914 | |
| 915 | case $ac_dashdash$ac_option in |
| 916 | --) |
| 917 | ac_dashdash=yes ;; |
| 918 | |
| 919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 920 | ac_prev=bindir ;; |
| 921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 922 | bindir=$ac_optarg ;; |
| 923 | |
| 924 | -build | --build | --buil | --bui | --bu) |
| 925 | ac_prev=build_alias ;; |
| 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 927 | build_alias=$ac_optarg ;; |
| 928 | |
| 929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 931 | ac_prev=cache_file ;; |
| 932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 934 | cache_file=$ac_optarg ;; |
| 935 | |
| 936 | --config-cache | -C) |
| 937 | cache_file=config.cache ;; |
| 938 | |
| 939 | -datadir | --datadir | --datadi | --datad) |
| 940 | ac_prev=datadir ;; |
| 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 942 | datadir=$ac_optarg ;; |
| 943 | |
| 944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 945 | | --dataroo | --dataro | --datar) |
| 946 | ac_prev=datarootdir ;; |
| 947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 949 | datarootdir=$ac_optarg ;; |
| 950 | |
| 951 | -disable-* | --disable-*) |
| 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 953 | # Reject names that are not valid shell variable names. |
| 954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 955 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 956 | ac_useropt_orig=$ac_useropt |
| 957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 958 | case $ac_user_opts in |
| 959 | *" |
| 960 | "enable_$ac_useropt" |
| 961 | "*) ;; |
| 962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 963 | ac_unrecognized_sep=', ';; |
| 964 | esac |
| 965 | eval enable_$ac_useropt=no ;; |
| 966 | |
| 967 | -docdir | --docdir | --docdi | --doc | --do) |
| 968 | ac_prev=docdir ;; |
| 969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 970 | docdir=$ac_optarg ;; |
| 971 | |
| 972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 973 | ac_prev=dvidir ;; |
| 974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 975 | dvidir=$ac_optarg ;; |
| 976 | |
| 977 | -enable-* | --enable-*) |
| 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 979 | # Reject names that are not valid shell variable names. |
| 980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 981 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 982 | ac_useropt_orig=$ac_useropt |
| 983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 984 | case $ac_user_opts in |
| 985 | *" |
| 986 | "enable_$ac_useropt" |
| 987 | "*) ;; |
| 988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 989 | ac_unrecognized_sep=', ';; |
| 990 | esac |
| 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 992 | |
| 993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 995 | | --exec | --exe | --ex) |
| 996 | ac_prev=exec_prefix ;; |
| 997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 999 | | --exec=* | --exe=* | --ex=*) |
| 1000 | exec_prefix=$ac_optarg ;; |
| 1001 | |
| 1002 | -gas | --gas | --ga | --g) |
| 1003 | # Obsolete; use --with-gas. |
| 1004 | with_gas=yes ;; |
| 1005 | |
| 1006 | -help | --help | --hel | --he | -h) |
| 1007 | ac_init_help=long ;; |
| 1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1009 | ac_init_help=recursive ;; |
| 1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1011 | ac_init_help=short ;; |
| 1012 | |
| 1013 | -host | --host | --hos | --ho) |
| 1014 | ac_prev=host_alias ;; |
| 1015 | -host=* | --host=* | --hos=* | --ho=*) |
| 1016 | host_alias=$ac_optarg ;; |
| 1017 | |
| 1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1019 | ac_prev=htmldir ;; |
| 1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1021 | | --ht=*) |
| 1022 | htmldir=$ac_optarg ;; |
| 1023 | |
| 1024 | -includedir | --includedir | --includedi | --included | --include \ |
| 1025 | | --includ | --inclu | --incl | --inc) |
| 1026 | ac_prev=includedir ;; |
| 1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1029 | includedir=$ac_optarg ;; |
| 1030 | |
| 1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1032 | ac_prev=infodir ;; |
| 1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1034 | infodir=$ac_optarg ;; |
| 1035 | |
| 1036 | -libdir | --libdir | --libdi | --libd) |
| 1037 | ac_prev=libdir ;; |
| 1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1039 | libdir=$ac_optarg ;; |
| 1040 | |
| 1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1042 | | --libexe | --libex | --libe) |
| 1043 | ac_prev=libexecdir ;; |
| 1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1045 | | --libexe=* | --libex=* | --libe=*) |
| 1046 | libexecdir=$ac_optarg ;; |
| 1047 | |
| 1048 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1049 | ac_prev=localedir ;; |
| 1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1051 | localedir=$ac_optarg ;; |
| 1052 | |
| 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1055 | ac_prev=localstatedir ;; |
| 1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1058 | localstatedir=$ac_optarg ;; |
| 1059 | |
| 1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1061 | ac_prev=mandir ;; |
| 1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1063 | mandir=$ac_optarg ;; |
| 1064 | |
| 1065 | -nfp | --nfp | --nf) |
| 1066 | # Obsolete; use --without-fp. |
| 1067 | with_fp=no ;; |
| 1068 | |
| 1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1070 | | --no-cr | --no-c | -n) |
| 1071 | no_create=yes ;; |
| 1072 | |
| 1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1075 | no_recursion=yes ;; |
| 1076 | |
| 1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1079 | | --oldin | --oldi | --old | --ol | --o) |
| 1080 | ac_prev=oldincludedir ;; |
| 1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1084 | oldincludedir=$ac_optarg ;; |
| 1085 | |
| 1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1087 | ac_prev=prefix ;; |
| 1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1089 | prefix=$ac_optarg ;; |
| 1090 | |
| 1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1092 | | --program-pre | --program-pr | --program-p) |
| 1093 | ac_prev=program_prefix ;; |
| 1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1096 | program_prefix=$ac_optarg ;; |
| 1097 | |
| 1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1099 | | --program-suf | --program-su | --program-s) |
| 1100 | ac_prev=program_suffix ;; |
| 1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1103 | program_suffix=$ac_optarg ;; |
| 1104 | |
| 1105 | -program-transform-name | --program-transform-name \ |
| 1106 | | --program-transform-nam | --program-transform-na \ |
| 1107 | | --program-transform-n | --program-transform- \ |
| 1108 | | --program-transform | --program-transfor \ |
| 1109 | | --program-transfo | --program-transf \ |
| 1110 | | --program-trans | --program-tran \ |
| 1111 | | --progr-tra | --program-tr | --program-t) |
| 1112 | ac_prev=program_transform_name ;; |
| 1113 | -program-transform-name=* | --program-transform-name=* \ |
| 1114 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1115 | | --program-transform-n=* | --program-transform-=* \ |
| 1116 | | --program-transform=* | --program-transfor=* \ |
| 1117 | | --program-transfo=* | --program-transf=* \ |
| 1118 | | --program-trans=* | --program-tran=* \ |
| 1119 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1120 | program_transform_name=$ac_optarg ;; |
| 1121 | |
| 1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1123 | ac_prev=pdfdir ;; |
| 1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1125 | pdfdir=$ac_optarg ;; |
| 1126 | |
| 1127 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1128 | ac_prev=psdir ;; |
| 1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1130 | psdir=$ac_optarg ;; |
| 1131 | |
| 1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1133 | | -silent | --silent | --silen | --sile | --sil) |
| 1134 | silent=yes ;; |
| 1135 | |
| 1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1137 | ac_prev=sbindir ;; |
| 1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1139 | | --sbi=* | --sb=*) |
| 1140 | sbindir=$ac_optarg ;; |
| 1141 | |
| 1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1144 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1145 | | --sha | --sh) |
| 1146 | ac_prev=sharedstatedir ;; |
| 1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1150 | | --sha=* | --sh=*) |
| 1151 | sharedstatedir=$ac_optarg ;; |
| 1152 | |
| 1153 | -site | --site | --sit) |
| 1154 | ac_prev=site ;; |
| 1155 | -site=* | --site=* | --sit=*) |
| 1156 | site=$ac_optarg ;; |
| 1157 | |
| 1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1159 | ac_prev=srcdir ;; |
| 1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1161 | srcdir=$ac_optarg ;; |
| 1162 | |
| 1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1164 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1165 | ac_prev=sysconfdir ;; |
| 1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1168 | sysconfdir=$ac_optarg ;; |
| 1169 | |
| 1170 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1171 | ac_prev=target_alias ;; |
| 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1173 | target_alias=$ac_optarg ;; |
| 1174 | |
| 1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1176 | verbose=yes ;; |
| 1177 | |
| 1178 | -version | --version | --versio | --versi | --vers | -V) |
| 1179 | ac_init_version=: ;; |
| 1180 | |
| 1181 | -with-* | --with-*) |
| 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1183 | # Reject names that are not valid shell variable names. |
| 1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1185 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1186 | ac_useropt_orig=$ac_useropt |
| 1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1188 | case $ac_user_opts in |
| 1189 | *" |
| 1190 | "with_$ac_useropt" |
| 1191 | "*) ;; |
| 1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1193 | ac_unrecognized_sep=', ';; |
| 1194 | esac |
| 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1196 | |
| 1197 | -without-* | --without-*) |
| 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1199 | # Reject names that are not valid shell variable names. |
| 1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1201 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1202 | ac_useropt_orig=$ac_useropt |
| 1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1204 | case $ac_user_opts in |
| 1205 | *" |
| 1206 | "with_$ac_useropt" |
| 1207 | "*) ;; |
| 1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1209 | ac_unrecognized_sep=', ';; |
| 1210 | esac |
| 1211 | eval with_$ac_useropt=no ;; |
| 1212 | |
| 1213 | --x) |
| 1214 | # Obsolete; use --with-x. |
| 1215 | with_x=yes ;; |
| 1216 | |
| 1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1218 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1219 | ac_prev=x_includes ;; |
| 1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1222 | x_includes=$ac_optarg ;; |
| 1223 | |
| 1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1226 | ac_prev=x_libraries ;; |
| 1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1229 | x_libraries=$ac_optarg ;; |
| 1230 | |
| 1231 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1232 | Try \`$0 --help' for more information" |
| 1233 | ;; |
| 1234 | |
| 1235 | *=*) |
| 1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1237 | # Reject names that are not valid shell variable names. |
| 1238 | case $ac_envvar in #( |
| 1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1240 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1241 | esac |
| 1242 | eval $ac_envvar=\$ac_optarg |
| 1243 | export $ac_envvar ;; |
| 1244 | |
| 1245 | *) |
| 1246 | # FIXME: should be removed in autoconf 3.0. |
| 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1250 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1251 | ;; |
| 1252 | |
| 1253 | esac |
| 1254 | done |
| 1255 | |
| 1256 | if test -n "$ac_prev"; then |
| 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1258 | as_fn_error $? "missing argument to $ac_option" |
| 1259 | fi |
| 1260 | |
| 1261 | if test -n "$ac_unrecognized_opts"; then |
| 1262 | case $enable_option_checking in |
| 1263 | no) ;; |
| 1264 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1266 | esac |
| 1267 | fi |
| 1268 | |
| 1269 | # Check all directory arguments for consistency. |
| 1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1273 | libdir localedir mandir |
| 1274 | do |
| 1275 | eval ac_val=\$$ac_var |
| 1276 | # Remove trailing slashes. |
| 1277 | case $ac_val in |
| 1278 | */ ) |
| 1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1280 | eval $ac_var=\$ac_val;; |
| 1281 | esac |
| 1282 | # Be sure to have absolute directory names. |
| 1283 | case $ac_val in |
| 1284 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1286 | esac |
| 1287 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1288 | done |
| 1289 | |
| 1290 | # There might be people who depend on the old broken behavior: `$host' |
| 1291 | # used to hold the argument of --host etc. |
| 1292 | # FIXME: To remove some day. |
| 1293 | build=$build_alias |
| 1294 | host=$host_alias |
| 1295 | target=$target_alias |
| 1296 | |
| 1297 | # FIXME: To remove some day. |
| 1298 | if test "x$host_alias" != x; then |
| 1299 | if test "x$build_alias" = x; then |
| 1300 | cross_compiling=maybe |
| 1301 | elif test "x$build_alias" != "x$host_alias"; then |
| 1302 | cross_compiling=yes |
| 1303 | fi |
| 1304 | fi |
| 1305 | |
| 1306 | ac_tool_prefix= |
| 1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1308 | |
| 1309 | test "$silent" = yes && exec 6>/dev/null |
| 1310 | |
| 1311 | |
| 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1313 | ac_ls_di=`ls -di .` && |
| 1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1315 | as_fn_error $? "working directory cannot be determined" |
| 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1317 | as_fn_error $? "pwd does not report name of working directory" |
| 1318 | |
| 1319 | |
| 1320 | # Find the source files, if location was not specified. |
| 1321 | if test -z "$srcdir"; then |
| 1322 | ac_srcdir_defaulted=yes |
| 1323 | # Try the directory containing this script, then the parent directory. |
| 1324 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1327 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1329 | $as_echo X"$as_myself" | |
| 1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1331 | s//\1/ |
| 1332 | q |
| 1333 | } |
| 1334 | /^X\(\/\/\)[^/].*/{ |
| 1335 | s//\1/ |
| 1336 | q |
| 1337 | } |
| 1338 | /^X\(\/\/\)$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\).*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | s/.*/./; q'` |
| 1347 | srcdir=$ac_confdir |
| 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1349 | srcdir=.. |
| 1350 | fi |
| 1351 | else |
| 1352 | ac_srcdir_defaulted=no |
| 1353 | fi |
| 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1356 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1357 | fi |
| 1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1359 | ac_abs_confdir=`( |
| 1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1361 | pwd)` |
| 1362 | # When building in place, set srcdir=. |
| 1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1364 | srcdir=. |
| 1365 | fi |
| 1366 | # Remove unnecessary trailing slashes from srcdir. |
| 1367 | # Double slashes in file names in object file debugging info |
| 1368 | # mess up M-x gdb in Emacs. |
| 1369 | case $srcdir in |
| 1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1371 | esac |
| 1372 | for ac_var in $ac_precious_vars; do |
| 1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1374 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1377 | done |
| 1378 | |
| 1379 | # |
| 1380 | # Report the --help message. |
| 1381 | # |
| 1382 | if test "$ac_init_help" = "long"; then |
| 1383 | # Omit some internal or obsolete options to make the list less imposing. |
| 1384 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1385 | cat <<_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 1386 | \`configure' configures ndn-cpp 0.2 to adapt to many kinds of systems. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1387 | |
| 1388 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1389 | |
| 1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1391 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1392 | |
| 1393 | Defaults for the options are specified in brackets. |
| 1394 | |
| 1395 | Configuration: |
| 1396 | -h, --help display this help and exit |
| 1397 | --help=short display options specific to this package |
| 1398 | --help=recursive display the short help of all the included packages |
| 1399 | -V, --version display version information and exit |
| 1400 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1401 | --cache-file=FILE cache test results in FILE [disabled] |
| 1402 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1403 | -n, --no-create do not create output files |
| 1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1405 | |
| 1406 | Installation directories: |
| 1407 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1408 | [$ac_default_prefix] |
| 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1410 | [PREFIX] |
| 1411 | |
| 1412 | By default, \`make install' will install all the files in |
| 1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1415 | for instance \`--prefix=\$HOME'. |
| 1416 | |
| 1417 | For better control, use the options below. |
| 1418 | |
| 1419 | Fine tuning of the installation directories: |
| 1420 | --bindir=DIR user executables [EPREFIX/bin] |
| 1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1422 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1426 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1427 | --includedir=DIR C header files [PREFIX/include] |
| 1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1431 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1433 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp] |
| 1435 | --htmldir=DIR html documentation [DOCDIR] |
| 1436 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1437 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1438 | --psdir=DIR ps documentation [DOCDIR] |
| 1439 | _ACEOF |
| 1440 | |
| 1441 | cat <<\_ACEOF |
| 1442 | |
| 1443 | Program names: |
| 1444 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1445 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1447 | |
| 1448 | System types: |
| 1449 | --build=BUILD configure for building on BUILD [guessed] |
| 1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1451 | _ACEOF |
| 1452 | fi |
| 1453 | |
| 1454 | if test -n "$ac_init_help"; then |
| 1455 | case $ac_init_help in |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 1456 | short | recursive ) echo "Configuration of ndn-cpp 0.2:";; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1457 | esac |
| 1458 | cat <<\_ACEOF |
| 1459 | |
| 1460 | Optional Features: |
| 1461 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1462 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1463 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1464 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1465 | --disable-silent-rules verbose build output (undo: "make V=0") |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 1466 | --enable-maintainer-mode |
| 1467 | enable make rules and dependencies not useful (and |
| 1468 | sometimes confusing) to the casual installer |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1469 | --enable-dependency-tracking |
| 1470 | do not reject slow dependency extractors |
| 1471 | --disable-dependency-tracking |
| 1472 | speeds up one-time build |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1473 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1474 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1475 | --enable-fast-install[=PKGS] |
| 1476 | optimize for fast installation [default=yes] |
| 1477 | --disable-libtool-lock avoid locking (might break parallel builds) |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1478 | --disable-doxygen-doc don't generate any doxygen documentation |
| 1479 | --enable-doxygen-dot generate graphics for doxygen documentation |
| 1480 | --enable-doxygen-man generate doxygen manual pages |
| 1481 | --enable-doxygen-rtf generate doxygen RTF documentation |
| 1482 | --enable-doxygen-xml generate doxygen XML documentation |
| 1483 | --enable-doxygen-chm generate doxygen compressed HTML help documentation |
| 1484 | --enable-doxygen-chi generate doxygen seperate compressed HTML help index |
| 1485 | file |
| 1486 | --disable-doxygen-html don't generate doxygen plain HTML documentation |
| 1487 | --enable-doxygen-ps generate doxygen PostScript documentation |
| 1488 | --enable-doxygen-pdf generate doxygen PDF documentation |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1489 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1490 | Optional Packages: |
| 1491 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1492 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1493 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1494 | both] |
| 1495 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1496 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1497 | (or the compiler's sysroot if not specified). |
| 1498 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1499 | Some influential environment variables: |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1500 | CC C compiler command |
| 1501 | CFLAGS C compiler flags |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1502 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1503 | nonstandard directory <lib dir> |
| 1504 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1505 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1506 | you have headers in a nonstandard directory <include dir> |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1507 | CPP C preprocessor |
| 1508 | CXX C++ compiler command |
| 1509 | CXXFLAGS C++ compiler flags |
| 1510 | CXXCPP C++ preprocessor |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1511 | DOXYGEN_PAPER_SIZE |
| 1512 | a4wide (default), a4, letter, legal or executive |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1513 | |
| 1514 | Use these variables to override the choices made by `configure' or to help |
| 1515 | it to find libraries and programs with nonstandard names/locations. |
| 1516 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 1517 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1518 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>. |
| 1519 | _ACEOF |
| 1520 | ac_status=$? |
| 1521 | fi |
| 1522 | |
| 1523 | if test "$ac_init_help" = "recursive"; then |
| 1524 | # If there are subdirs, report their specific --help. |
| 1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1526 | test -d "$ac_dir" || |
| 1527 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1528 | continue |
| 1529 | ac_builddir=. |
| 1530 | |
| 1531 | case "$ac_dir" in |
| 1532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1533 | *) |
| 1534 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1535 | # A ".." for each directory in $ac_dir_suffix. |
| 1536 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1537 | case $ac_top_builddir_sub in |
| 1538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1540 | esac ;; |
| 1541 | esac |
| 1542 | ac_abs_top_builddir=$ac_pwd |
| 1543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1544 | # for backward compatibility: |
| 1545 | ac_top_builddir=$ac_top_build_prefix |
| 1546 | |
| 1547 | case $srcdir in |
| 1548 | .) # We are building in place. |
| 1549 | ac_srcdir=. |
| 1550 | ac_top_srcdir=$ac_top_builddir_sub |
| 1551 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1552 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1553 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1554 | ac_top_srcdir=$srcdir |
| 1555 | ac_abs_top_srcdir=$srcdir ;; |
| 1556 | *) # Relative name. |
| 1557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1558 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1560 | esac |
| 1561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1562 | |
| 1563 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1564 | # Check for guested configure. |
| 1565 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1566 | echo && |
| 1567 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1568 | elif test -f "$ac_srcdir/configure"; then |
| 1569 | echo && |
| 1570 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1571 | else |
| 1572 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1573 | fi || ac_status=$? |
| 1574 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1575 | done |
| 1576 | fi |
| 1577 | |
| 1578 | test -n "$ac_init_help" && exit $ac_status |
| 1579 | if $ac_init_version; then |
| 1580 | cat <<\_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 1581 | ndn-cpp configure 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1582 | generated by GNU Autoconf 2.69 |
| 1583 | |
| 1584 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1585 | This configure script is free software; the Free Software Foundation |
| 1586 | gives unlimited permission to copy, distribute and modify it. |
| 1587 | _ACEOF |
| 1588 | exit |
| 1589 | fi |
| 1590 | |
| 1591 | ## ------------------------ ## |
| 1592 | ## Autoconf initialization. ## |
| 1593 | ## ------------------------ ## |
| 1594 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1595 | # ac_fn_c_try_compile LINENO |
| 1596 | # -------------------------- |
| 1597 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1598 | ac_fn_c_try_compile () |
| 1599 | { |
| 1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1601 | rm -f conftest.$ac_objext |
| 1602 | if { { ac_try="$ac_compile" |
| 1603 | case "(($ac_try" in |
| 1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1605 | *) ac_try_echo=$ac_try;; |
| 1606 | esac |
| 1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1608 | $as_echo "$ac_try_echo"; } >&5 |
| 1609 | (eval "$ac_compile") 2>conftest.err |
| 1610 | ac_status=$? |
| 1611 | if test -s conftest.err; then |
| 1612 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1613 | cat conftest.er1 >&5 |
| 1614 | mv -f conftest.er1 conftest.err |
| 1615 | fi |
| 1616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1617 | test $ac_status = 0; } && { |
| 1618 | test -z "$ac_c_werror_flag" || |
| 1619 | test ! -s conftest.err |
| 1620 | } && test -s conftest.$ac_objext; then : |
| 1621 | ac_retval=0 |
| 1622 | else |
| 1623 | $as_echo "$as_me: failed program was:" >&5 |
| 1624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1625 | |
| 1626 | ac_retval=1 |
| 1627 | fi |
| 1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1629 | as_fn_set_status $ac_retval |
| 1630 | |
| 1631 | } # ac_fn_c_try_compile |
| 1632 | |
| 1633 | # ac_fn_c_try_link LINENO |
| 1634 | # ----------------------- |
| 1635 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1636 | ac_fn_c_try_link () |
| 1637 | { |
| 1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1639 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1640 | if { { ac_try="$ac_link" |
| 1641 | case "(($ac_try" in |
| 1642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1643 | *) ac_try_echo=$ac_try;; |
| 1644 | esac |
| 1645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1646 | $as_echo "$ac_try_echo"; } >&5 |
| 1647 | (eval "$ac_link") 2>conftest.err |
| 1648 | ac_status=$? |
| 1649 | if test -s conftest.err; then |
| 1650 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1651 | cat conftest.er1 >&5 |
| 1652 | mv -f conftest.er1 conftest.err |
| 1653 | fi |
| 1654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1655 | test $ac_status = 0; } && { |
| 1656 | test -z "$ac_c_werror_flag" || |
| 1657 | test ! -s conftest.err |
| 1658 | } && test -s conftest$ac_exeext && { |
| 1659 | test "$cross_compiling" = yes || |
| 1660 | test -x conftest$ac_exeext |
| 1661 | }; then : |
| 1662 | ac_retval=0 |
| 1663 | else |
| 1664 | $as_echo "$as_me: failed program was:" >&5 |
| 1665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1666 | |
| 1667 | ac_retval=1 |
| 1668 | fi |
| 1669 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1670 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1671 | # interfere with the next link command; also delete a directory that is |
| 1672 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1673 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1675 | as_fn_set_status $ac_retval |
| 1676 | |
| 1677 | } # ac_fn_c_try_link |
| 1678 | |
| 1679 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1680 | # ------------------------------------------------------- |
| 1681 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1682 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1683 | ac_fn_c_check_header_compile () |
| 1684 | { |
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1687 | $as_echo_n "checking for $2... " >&6; } |
| 1688 | if eval \${$3+:} false; then : |
| 1689 | $as_echo_n "(cached) " >&6 |
| 1690 | else |
| 1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1692 | /* end confdefs.h. */ |
| 1693 | $4 |
| 1694 | #include <$2> |
| 1695 | _ACEOF |
| 1696 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1697 | eval "$3=yes" |
| 1698 | else |
| 1699 | eval "$3=no" |
| 1700 | fi |
| 1701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1702 | fi |
| 1703 | eval ac_res=\$$3 |
| 1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1705 | $as_echo "$ac_res" >&6; } |
| 1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1707 | |
| 1708 | } # ac_fn_c_check_header_compile |
| 1709 | |
| 1710 | # ac_fn_c_try_cpp LINENO |
| 1711 | # ---------------------- |
| 1712 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1713 | ac_fn_c_try_cpp () |
| 1714 | { |
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1716 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1717 | case "(($ac_try" in |
| 1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1719 | *) ac_try_echo=$ac_try;; |
| 1720 | esac |
| 1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1722 | $as_echo "$ac_try_echo"; } >&5 |
| 1723 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1724 | ac_status=$? |
| 1725 | if test -s conftest.err; then |
| 1726 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1727 | cat conftest.er1 >&5 |
| 1728 | mv -f conftest.er1 conftest.err |
| 1729 | fi |
| 1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1731 | test $ac_status = 0; } > conftest.i && { |
| 1732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1733 | test ! -s conftest.err |
| 1734 | }; then : |
| 1735 | ac_retval=0 |
| 1736 | else |
| 1737 | $as_echo "$as_me: failed program was:" >&5 |
| 1738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1739 | |
| 1740 | ac_retval=1 |
| 1741 | fi |
| 1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1743 | as_fn_set_status $ac_retval |
| 1744 | |
| 1745 | } # ac_fn_c_try_cpp |
| 1746 | |
| 1747 | # ac_fn_c_try_run LINENO |
| 1748 | # ---------------------- |
| 1749 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1750 | # that executables *can* be run. |
| 1751 | ac_fn_c_try_run () |
| 1752 | { |
| 1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1754 | if { { ac_try="$ac_link" |
| 1755 | case "(($ac_try" in |
| 1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1757 | *) ac_try_echo=$ac_try;; |
| 1758 | esac |
| 1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1760 | $as_echo "$ac_try_echo"; } >&5 |
| 1761 | (eval "$ac_link") 2>&5 |
| 1762 | ac_status=$? |
| 1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1764 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1765 | { { case "(($ac_try" in |
| 1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1767 | *) ac_try_echo=$ac_try;; |
| 1768 | esac |
| 1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1770 | $as_echo "$ac_try_echo"; } >&5 |
| 1771 | (eval "$ac_try") 2>&5 |
| 1772 | ac_status=$? |
| 1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1774 | test $ac_status = 0; }; }; then : |
| 1775 | ac_retval=0 |
| 1776 | else |
| 1777 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1778 | $as_echo "$as_me: failed program was:" >&5 |
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1780 | |
| 1781 | ac_retval=$ac_status |
| 1782 | fi |
| 1783 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1784 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1785 | as_fn_set_status $ac_retval |
| 1786 | |
| 1787 | } # ac_fn_c_try_run |
| 1788 | |
| 1789 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1790 | # ---------------------------------- |
| 1791 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1792 | ac_fn_c_check_func () |
| 1793 | { |
| 1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1796 | $as_echo_n "checking for $2... " >&6; } |
| 1797 | if eval \${$3+:} false; then : |
| 1798 | $as_echo_n "(cached) " >&6 |
| 1799 | else |
| 1800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1801 | /* end confdefs.h. */ |
| 1802 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1804 | #define $2 innocuous_$2 |
| 1805 | |
| 1806 | /* System header to define __stub macros and hopefully few prototypes, |
| 1807 | which can conflict with char $2 (); below. |
| 1808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1809 | <limits.h> exists even on freestanding compilers. */ |
| 1810 | |
| 1811 | #ifdef __STDC__ |
| 1812 | # include <limits.h> |
| 1813 | #else |
| 1814 | # include <assert.h> |
| 1815 | #endif |
| 1816 | |
| 1817 | #undef $2 |
| 1818 | |
| 1819 | /* Override any GCC internal prototype to avoid an error. |
| 1820 | Use char because int might match the return type of a GCC |
| 1821 | builtin and then its argument prototype would still apply. */ |
| 1822 | #ifdef __cplusplus |
| 1823 | extern "C" |
| 1824 | #endif |
| 1825 | char $2 (); |
| 1826 | /* The GNU C library defines this for functions which it implements |
| 1827 | to always fail with ENOSYS. Some functions are actually named |
| 1828 | something starting with __ and the normal name is an alias. */ |
| 1829 | #if defined __stub_$2 || defined __stub___$2 |
| 1830 | choke me |
| 1831 | #endif |
| 1832 | |
| 1833 | int |
| 1834 | main () |
| 1835 | { |
| 1836 | return $2 (); |
| 1837 | ; |
| 1838 | return 0; |
| 1839 | } |
| 1840 | _ACEOF |
| 1841 | if ac_fn_c_try_link "$LINENO"; then : |
| 1842 | eval "$3=yes" |
| 1843 | else |
| 1844 | eval "$3=no" |
| 1845 | fi |
| 1846 | rm -f core conftest.err conftest.$ac_objext \ |
| 1847 | conftest$ac_exeext conftest.$ac_ext |
| 1848 | fi |
| 1849 | eval ac_res=\$$3 |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1851 | $as_echo "$ac_res" >&6; } |
| 1852 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1853 | |
| 1854 | } # ac_fn_c_check_func |
| 1855 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1856 | # ac_fn_cxx_try_compile LINENO |
| 1857 | # ---------------------------- |
| 1858 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1859 | ac_fn_cxx_try_compile () |
| 1860 | { |
| 1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1862 | rm -f conftest.$ac_objext |
| 1863 | if { { ac_try="$ac_compile" |
| 1864 | case "(($ac_try" in |
| 1865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1866 | *) ac_try_echo=$ac_try;; |
| 1867 | esac |
| 1868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1869 | $as_echo "$ac_try_echo"; } >&5 |
| 1870 | (eval "$ac_compile") 2>conftest.err |
| 1871 | ac_status=$? |
| 1872 | if test -s conftest.err; then |
| 1873 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1874 | cat conftest.er1 >&5 |
| 1875 | mv -f conftest.er1 conftest.err |
| 1876 | fi |
| 1877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1878 | test $ac_status = 0; } && { |
| 1879 | test -z "$ac_cxx_werror_flag" || |
| 1880 | test ! -s conftest.err |
| 1881 | } && test -s conftest.$ac_objext; then : |
| 1882 | ac_retval=0 |
| 1883 | else |
| 1884 | $as_echo "$as_me: failed program was:" >&5 |
| 1885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1886 | |
| 1887 | ac_retval=1 |
| 1888 | fi |
| 1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1890 | as_fn_set_status $ac_retval |
| 1891 | |
| 1892 | } # ac_fn_cxx_try_compile |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1893 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1894 | # ac_fn_cxx_try_cpp LINENO |
| 1895 | # ------------------------ |
| 1896 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1897 | ac_fn_cxx_try_cpp () |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1898 | { |
| 1899 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1900 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1901 | case "(($ac_try" in |
| 1902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1903 | *) ac_try_echo=$ac_try;; |
| 1904 | esac |
| 1905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1906 | $as_echo "$ac_try_echo"; } >&5 |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1908 | ac_status=$? |
| 1909 | if test -s conftest.err; then |
| 1910 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1911 | cat conftest.er1 >&5 |
| 1912 | mv -f conftest.er1 conftest.err |
| 1913 | fi |
| 1914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1915 | test $ac_status = 0; } > conftest.i && { |
| 1916 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1917 | test ! -s conftest.err |
| 1918 | }; then : |
| 1919 | ac_retval=0 |
| 1920 | else |
| 1921 | $as_echo "$as_me: failed program was:" >&5 |
| 1922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1923 | |
| 1924 | ac_retval=1 |
| 1925 | fi |
| 1926 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1927 | as_fn_set_status $ac_retval |
| 1928 | |
| 1929 | } # ac_fn_cxx_try_cpp |
| 1930 | |
| 1931 | # ac_fn_cxx_try_link LINENO |
| 1932 | # ------------------------- |
| 1933 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1934 | ac_fn_cxx_try_link () |
| 1935 | { |
| 1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1938 | if { { ac_try="$ac_link" |
| 1939 | case "(($ac_try" in |
| 1940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1941 | *) ac_try_echo=$ac_try;; |
| 1942 | esac |
| 1943 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1944 | $as_echo "$ac_try_echo"; } >&5 |
| 1945 | (eval "$ac_link") 2>conftest.err |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1946 | ac_status=$? |
| 1947 | if test -s conftest.err; then |
| 1948 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1949 | cat conftest.er1 >&5 |
| 1950 | mv -f conftest.er1 conftest.err |
| 1951 | fi |
| 1952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1953 | test $ac_status = 0; } && { |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1954 | test -z "$ac_cxx_werror_flag" || |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1955 | test ! -s conftest.err |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1956 | } && test -s conftest$ac_exeext && { |
| 1957 | test "$cross_compiling" = yes || |
| 1958 | test -x conftest$ac_exeext |
| 1959 | }; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1960 | ac_retval=0 |
| 1961 | else |
| 1962 | $as_echo "$as_me: failed program was:" >&5 |
| 1963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1964 | |
| 1965 | ac_retval=1 |
| 1966 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1967 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1968 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1969 | # interfere with the next link command; also delete a directory that is |
| 1970 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1971 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1972 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1973 | as_fn_set_status $ac_retval |
| 1974 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1975 | } # ac_fn_cxx_try_link |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1976 | cat >config.log <<_ACEOF |
| 1977 | This file contains any messages produced by compilers while |
| 1978 | running configure, to aid debugging if configure makes a mistake. |
| 1979 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 1980 | It was created by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1981 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1982 | |
| 1983 | $ $0 $@ |
| 1984 | |
| 1985 | _ACEOF |
| 1986 | exec 5>>config.log |
| 1987 | { |
| 1988 | cat <<_ASUNAME |
| 1989 | ## --------- ## |
| 1990 | ## Platform. ## |
| 1991 | ## --------- ## |
| 1992 | |
| 1993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1994 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1995 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1996 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1997 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1998 | |
| 1999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2001 | |
| 2002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2005 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2009 | |
| 2010 | _ASUNAME |
| 2011 | |
| 2012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2013 | for as_dir in $PATH |
| 2014 | do |
| 2015 | IFS=$as_save_IFS |
| 2016 | test -z "$as_dir" && as_dir=. |
| 2017 | $as_echo "PATH: $as_dir" |
| 2018 | done |
| 2019 | IFS=$as_save_IFS |
| 2020 | |
| 2021 | } >&5 |
| 2022 | |
| 2023 | cat >&5 <<_ACEOF |
| 2024 | |
| 2025 | |
| 2026 | ## ----------- ## |
| 2027 | ## Core tests. ## |
| 2028 | ## ----------- ## |
| 2029 | |
| 2030 | _ACEOF |
| 2031 | |
| 2032 | |
| 2033 | # Keep a trace of the command line. |
| 2034 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2035 | # Strip out --silent because we don't want to record it for future runs. |
| 2036 | # Also quote any args containing shell meta-characters. |
| 2037 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2038 | ac_configure_args= |
| 2039 | ac_configure_args0= |
| 2040 | ac_configure_args1= |
| 2041 | ac_must_keep_next=false |
| 2042 | for ac_pass in 1 2 |
| 2043 | do |
| 2044 | for ac_arg |
| 2045 | do |
| 2046 | case $ac_arg in |
| 2047 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2049 | | -silent | --silent | --silen | --sile | --sil) |
| 2050 | continue ;; |
| 2051 | *\'*) |
| 2052 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2053 | esac |
| 2054 | case $ac_pass in |
| 2055 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2056 | 2) |
| 2057 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2058 | if test $ac_must_keep_next = true; then |
| 2059 | ac_must_keep_next=false # Got value, back to normal. |
| 2060 | else |
| 2061 | case $ac_arg in |
| 2062 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2063 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2064 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2065 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2066 | case "$ac_configure_args0 " in |
| 2067 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2068 | esac |
| 2069 | ;; |
| 2070 | -* ) ac_must_keep_next=true ;; |
| 2071 | esac |
| 2072 | fi |
| 2073 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2074 | ;; |
| 2075 | esac |
| 2076 | done |
| 2077 | done |
| 2078 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2079 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2080 | |
| 2081 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2082 | # config.log. We remove comments because anyway the quotes in there |
| 2083 | # would cause problems or look ugly. |
| 2084 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2085 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2086 | trap 'exit_status=$? |
| 2087 | # Save into config.log some information that might help in debugging. |
| 2088 | { |
| 2089 | echo |
| 2090 | |
| 2091 | $as_echo "## ---------------- ## |
| 2092 | ## Cache variables. ## |
| 2093 | ## ---------------- ##" |
| 2094 | echo |
| 2095 | # The following way of writing the cache mishandles newlines in values, |
| 2096 | ( |
| 2097 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2098 | eval ac_val=\$$ac_var |
| 2099 | case $ac_val in #( |
| 2100 | *${as_nl}*) |
| 2101 | case $ac_var in #( |
| 2102 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2103 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2104 | esac |
| 2105 | case $ac_var in #( |
| 2106 | _ | IFS | as_nl) ;; #( |
| 2107 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2108 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2109 | esac ;; |
| 2110 | esac |
| 2111 | done |
| 2112 | (set) 2>&1 | |
| 2113 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2114 | *${as_nl}ac_space=\ *) |
| 2115 | sed -n \ |
| 2116 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2118 | ;; #( |
| 2119 | *) |
| 2120 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2121 | ;; |
| 2122 | esac | |
| 2123 | sort |
| 2124 | ) |
| 2125 | echo |
| 2126 | |
| 2127 | $as_echo "## ----------------- ## |
| 2128 | ## Output variables. ## |
| 2129 | ## ----------------- ##" |
| 2130 | echo |
| 2131 | for ac_var in $ac_subst_vars |
| 2132 | do |
| 2133 | eval ac_val=\$$ac_var |
| 2134 | case $ac_val in |
| 2135 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2136 | esac |
| 2137 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2138 | done | sort |
| 2139 | echo |
| 2140 | |
| 2141 | if test -n "$ac_subst_files"; then |
| 2142 | $as_echo "## ------------------- ## |
| 2143 | ## File substitutions. ## |
| 2144 | ## ------------------- ##" |
| 2145 | echo |
| 2146 | for ac_var in $ac_subst_files |
| 2147 | do |
| 2148 | eval ac_val=\$$ac_var |
| 2149 | case $ac_val in |
| 2150 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2151 | esac |
| 2152 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2153 | done | sort |
| 2154 | echo |
| 2155 | fi |
| 2156 | |
| 2157 | if test -s confdefs.h; then |
| 2158 | $as_echo "## ----------- ## |
| 2159 | ## confdefs.h. ## |
| 2160 | ## ----------- ##" |
| 2161 | echo |
| 2162 | cat confdefs.h |
| 2163 | echo |
| 2164 | fi |
| 2165 | test "$ac_signal" != 0 && |
| 2166 | $as_echo "$as_me: caught signal $ac_signal" |
| 2167 | $as_echo "$as_me: exit $exit_status" |
| 2168 | } >&5 |
| 2169 | rm -f core *.core core.conftest.* && |
| 2170 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2171 | exit $exit_status |
| 2172 | ' 0 |
| 2173 | for ac_signal in 1 2 13 15; do |
| 2174 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2175 | done |
| 2176 | ac_signal=0 |
| 2177 | |
| 2178 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2179 | rm -f -r conftest* confdefs.h |
| 2180 | |
| 2181 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2182 | |
| 2183 | # Predefined preprocessor variables. |
| 2184 | |
| 2185 | cat >>confdefs.h <<_ACEOF |
| 2186 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2187 | _ACEOF |
| 2188 | |
| 2189 | cat >>confdefs.h <<_ACEOF |
| 2190 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2191 | _ACEOF |
| 2192 | |
| 2193 | cat >>confdefs.h <<_ACEOF |
| 2194 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2195 | _ACEOF |
| 2196 | |
| 2197 | cat >>confdefs.h <<_ACEOF |
| 2198 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2199 | _ACEOF |
| 2200 | |
| 2201 | cat >>confdefs.h <<_ACEOF |
| 2202 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2203 | _ACEOF |
| 2204 | |
| 2205 | cat >>confdefs.h <<_ACEOF |
| 2206 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2207 | _ACEOF |
| 2208 | |
| 2209 | |
| 2210 | # Let the site file select an alternate cache file if it wants to. |
| 2211 | # Prefer an explicitly selected file to automatically selected ones. |
| 2212 | ac_site_file1=NONE |
| 2213 | ac_site_file2=NONE |
| 2214 | if test -n "$CONFIG_SITE"; then |
| 2215 | # We do not want a PATH search for config.site. |
| 2216 | case $CONFIG_SITE in #(( |
| 2217 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2218 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2219 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2220 | esac |
| 2221 | elif test "x$prefix" != xNONE; then |
| 2222 | ac_site_file1=$prefix/share/config.site |
| 2223 | ac_site_file2=$prefix/etc/config.site |
| 2224 | else |
| 2225 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2226 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2227 | fi |
| 2228 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2229 | do |
| 2230 | test "x$ac_site_file" = xNONE && continue |
| 2231 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2233 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2234 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2235 | . "$ac_site_file" \ |
| 2236 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2238 | as_fn_error $? "failed to load site script $ac_site_file |
| 2239 | See \`config.log' for more details" "$LINENO" 5; } |
| 2240 | fi |
| 2241 | done |
| 2242 | |
| 2243 | if test -r "$cache_file"; then |
| 2244 | # Some versions of bash will fail to source /dev/null (special files |
| 2245 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2246 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2248 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2249 | case $cache_file in |
| 2250 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2251 | *) . "./$cache_file";; |
| 2252 | esac |
| 2253 | fi |
| 2254 | else |
| 2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2256 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2257 | >$cache_file |
| 2258 | fi |
| 2259 | |
| 2260 | # Check that the precious variables saved in the cache have kept the same |
| 2261 | # value. |
| 2262 | ac_cache_corrupted=false |
| 2263 | for ac_var in $ac_precious_vars; do |
| 2264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2265 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2266 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2267 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2268 | case $ac_old_set,$ac_new_set in |
| 2269 | set,) |
| 2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2271 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2272 | ac_cache_corrupted=: ;; |
| 2273 | ,set) |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2275 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2276 | ac_cache_corrupted=: ;; |
| 2277 | ,);; |
| 2278 | *) |
| 2279 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2280 | # differences in whitespace do not lead to failure. |
| 2281 | ac_old_val_w=`echo x $ac_old_val` |
| 2282 | ac_new_val_w=`echo x $ac_new_val` |
| 2283 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2285 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2286 | ac_cache_corrupted=: |
| 2287 | else |
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2289 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2290 | eval $ac_var=\$ac_old_val |
| 2291 | fi |
| 2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2293 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2295 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2296 | fi;; |
| 2297 | esac |
| 2298 | # Pass precious variables to config.status. |
| 2299 | if test "$ac_new_set" = set; then |
| 2300 | case $ac_new_val in |
| 2301 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2302 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2303 | esac |
| 2304 | case " $ac_configure_args " in |
| 2305 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2306 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2307 | esac |
| 2308 | fi |
| 2309 | done |
| 2310 | if $ac_cache_corrupted; then |
| 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2314 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2315 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2316 | fi |
| 2317 | ## -------------------- ## |
| 2318 | ## Main body of script. ## |
| 2319 | ## -------------------- ## |
| 2320 | |
| 2321 | ac_ext=c |
| 2322 | ac_cpp='$CPP $CPPFLAGS' |
| 2323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2326 | |
| 2327 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 2328 | am__api_version='1.14' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2329 | |
| 2330 | ac_aux_dir= |
| 2331 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2332 | if test -f "$ac_dir/install-sh"; then |
| 2333 | ac_aux_dir=$ac_dir |
| 2334 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2335 | break |
| 2336 | elif test -f "$ac_dir/install.sh"; then |
| 2337 | ac_aux_dir=$ac_dir |
| 2338 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2339 | break |
| 2340 | elif test -f "$ac_dir/shtool"; then |
| 2341 | ac_aux_dir=$ac_dir |
| 2342 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2343 | break |
| 2344 | fi |
| 2345 | done |
| 2346 | if test -z "$ac_aux_dir"; then |
| 2347 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2348 | fi |
| 2349 | |
| 2350 | # These three variables are undocumented and unsupported, |
| 2351 | # and are intended to be withdrawn in a future Autoconf release. |
| 2352 | # They can cause serious problems if a builder's source tree is in a directory |
| 2353 | # whose full name contains unusual characters. |
| 2354 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2355 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2356 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2357 | |
| 2358 | |
| 2359 | # Find a good install program. We prefer a C program (faster), |
| 2360 | # so one script is as good as another. But avoid the broken or |
| 2361 | # incompatible versions: |
| 2362 | # SysV /etc/install, /usr/sbin/install |
| 2363 | # SunOS /usr/etc/install |
| 2364 | # IRIX /sbin/install |
| 2365 | # AIX /bin/install |
| 2366 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2367 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2368 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2369 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2370 | # OS/2's system install, which has a completely different semantic |
| 2371 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2372 | # Reject install programs that cannot install multiple files. |
| 2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2374 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2375 | if test -z "$INSTALL"; then |
| 2376 | if ${ac_cv_path_install+:} false; then : |
| 2377 | $as_echo_n "(cached) " >&6 |
| 2378 | else |
| 2379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2380 | for as_dir in $PATH |
| 2381 | do |
| 2382 | IFS=$as_save_IFS |
| 2383 | test -z "$as_dir" && as_dir=. |
| 2384 | # Account for people who put trailing slashes in PATH elements. |
| 2385 | case $as_dir/ in #(( |
| 2386 | ./ | .// | /[cC]/* | \ |
| 2387 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2388 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2389 | /usr/ucb/* ) ;; |
| 2390 | *) |
| 2391 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2392 | # Don't use installbsd from OSF since it installs stuff as root |
| 2393 | # by default. |
| 2394 | for ac_prog in ginstall scoinst install; do |
| 2395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2396 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2397 | if test $ac_prog = install && |
| 2398 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2399 | # AIX install. It has an incompatible calling convention. |
| 2400 | : |
| 2401 | elif test $ac_prog = install && |
| 2402 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2403 | # program-specific install script used by HP pwplus--don't use. |
| 2404 | : |
| 2405 | else |
| 2406 | rm -rf conftest.one conftest.two conftest.dir |
| 2407 | echo one > conftest.one |
| 2408 | echo two > conftest.two |
| 2409 | mkdir conftest.dir |
| 2410 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2411 | test -s conftest.one && test -s conftest.two && |
| 2412 | test -s conftest.dir/conftest.one && |
| 2413 | test -s conftest.dir/conftest.two |
| 2414 | then |
| 2415 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2416 | break 3 |
| 2417 | fi |
| 2418 | fi |
| 2419 | fi |
| 2420 | done |
| 2421 | done |
| 2422 | ;; |
| 2423 | esac |
| 2424 | |
| 2425 | done |
| 2426 | IFS=$as_save_IFS |
| 2427 | |
| 2428 | rm -rf conftest.one conftest.two conftest.dir |
| 2429 | |
| 2430 | fi |
| 2431 | if test "${ac_cv_path_install+set}" = set; then |
| 2432 | INSTALL=$ac_cv_path_install |
| 2433 | else |
| 2434 | # As a last resort, use the slow shell script. Don't cache a |
| 2435 | # value for INSTALL within a source directory, because that will |
| 2436 | # break other packages using the cache if that directory is |
| 2437 | # removed, or if the value is a relative name. |
| 2438 | INSTALL=$ac_install_sh |
| 2439 | fi |
| 2440 | fi |
| 2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2442 | $as_echo "$INSTALL" >&6; } |
| 2443 | |
| 2444 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2445 | # It thinks the first close brace ends the variable substitution. |
| 2446 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2447 | |
| 2448 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2449 | |
| 2450 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2451 | |
| 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2453 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2454 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2455 | # name. Accept space and tab only in the latter. |
| 2456 | am_lf=' |
| 2457 | ' |
| 2458 | case `pwd` in |
| 2459 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2460 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2461 | esac |
| 2462 | case $srcdir in |
| 2463 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2464 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2465 | esac |
| 2466 | |
| 2467 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2468 | # arguments. Must try -L first in case configure is actually a |
| 2469 | # symlink; some systems play weird games with the mod time of symlinks |
| 2470 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2471 | # directory). |
| 2472 | if ( |
| 2473 | am_has_slept=no |
| 2474 | for am_try in 1 2; do |
| 2475 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2476 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2477 | if test "$*" = "X"; then |
| 2478 | # -L didn't work. |
| 2479 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2480 | fi |
| 2481 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2482 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2483 | |
| 2484 | # If neither matched, then we have a broken ls. This can happen |
| 2485 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2486 | # broken ls alias from the environment. This has actually |
| 2487 | # happened. Such a system could not be considered "sane". |
| 2488 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2489 | alias in your environment" "$LINENO" 5 |
| 2490 | fi |
| 2491 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2492 | break |
| 2493 | fi |
| 2494 | # Just in case. |
| 2495 | sleep 1 |
| 2496 | am_has_slept=yes |
| 2497 | done |
| 2498 | test "$2" = conftest.file |
| 2499 | ) |
| 2500 | then |
| 2501 | # Ok. |
| 2502 | : |
| 2503 | else |
| 2504 | as_fn_error $? "newly created file is older than distributed files! |
| 2505 | Check your system clock" "$LINENO" 5 |
| 2506 | fi |
| 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2508 | $as_echo "yes" >&6; } |
| 2509 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2510 | # generated files are strictly newer. |
| 2511 | am_sleep_pid= |
| 2512 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2513 | ( sleep 1 ) & |
| 2514 | am_sleep_pid=$! |
| 2515 | fi |
| 2516 | |
| 2517 | rm -f conftest.file |
| 2518 | |
| 2519 | test "$program_prefix" != NONE && |
| 2520 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2521 | # Use a double $ so make ignores it. |
| 2522 | test "$program_suffix" != NONE && |
| 2523 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2524 | # Double any \ or $. |
| 2525 | # By default was `s,x,x', remove it if useless. |
| 2526 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2527 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2528 | |
| 2529 | # expand $ac_aux_dir to an absolute path |
| 2530 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2531 | |
| 2532 | if test x"${MISSING+set}" != xset; then |
| 2533 | case $am_aux_dir in |
| 2534 | *\ * | *\ *) |
| 2535 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2536 | *) |
| 2537 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2538 | esac |
| 2539 | fi |
| 2540 | # Use eval to expand $SHELL |
| 2541 | if eval "$MISSING --is-lightweight"; then |
| 2542 | am_missing_run="$MISSING " |
| 2543 | else |
| 2544 | am_missing_run= |
| 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2546 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2547 | fi |
| 2548 | |
| 2549 | if test x"${install_sh}" != xset; then |
| 2550 | case $am_aux_dir in |
| 2551 | *\ * | *\ *) |
| 2552 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2553 | *) |
| 2554 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2555 | esac |
| 2556 | fi |
| 2557 | |
| 2558 | # Installed binaries are usually stripped using 'strip' when the user |
| 2559 | # run "make install-strip". However 'strip' might not be the right |
| 2560 | # tool to use in cross-compilation environments, therefore Automake |
| 2561 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2562 | if test "$cross_compiling" != no; then |
| 2563 | if test -n "$ac_tool_prefix"; then |
| 2564 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2565 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2567 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2568 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2569 | $as_echo_n "(cached) " >&6 |
| 2570 | else |
| 2571 | if test -n "$STRIP"; then |
| 2572 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2573 | else |
| 2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2575 | for as_dir in $PATH |
| 2576 | do |
| 2577 | IFS=$as_save_IFS |
| 2578 | test -z "$as_dir" && as_dir=. |
| 2579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2581 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2583 | break 2 |
| 2584 | fi |
| 2585 | done |
| 2586 | done |
| 2587 | IFS=$as_save_IFS |
| 2588 | |
| 2589 | fi |
| 2590 | fi |
| 2591 | STRIP=$ac_cv_prog_STRIP |
| 2592 | if test -n "$STRIP"; then |
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2594 | $as_echo "$STRIP" >&6; } |
| 2595 | else |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2597 | $as_echo "no" >&6; } |
| 2598 | fi |
| 2599 | |
| 2600 | |
| 2601 | fi |
| 2602 | if test -z "$ac_cv_prog_STRIP"; then |
| 2603 | ac_ct_STRIP=$STRIP |
| 2604 | # Extract the first word of "strip", so it can be a program name with args. |
| 2605 | set dummy strip; ac_word=$2 |
| 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2607 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2608 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2609 | $as_echo_n "(cached) " >&6 |
| 2610 | else |
| 2611 | if test -n "$ac_ct_STRIP"; then |
| 2612 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2613 | else |
| 2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2615 | for as_dir in $PATH |
| 2616 | do |
| 2617 | IFS=$as_save_IFS |
| 2618 | test -z "$as_dir" && as_dir=. |
| 2619 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2621 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2623 | break 2 |
| 2624 | fi |
| 2625 | done |
| 2626 | done |
| 2627 | IFS=$as_save_IFS |
| 2628 | |
| 2629 | fi |
| 2630 | fi |
| 2631 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2632 | if test -n "$ac_ct_STRIP"; then |
| 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2634 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2635 | else |
| 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2637 | $as_echo "no" >&6; } |
| 2638 | fi |
| 2639 | |
| 2640 | if test "x$ac_ct_STRIP" = x; then |
| 2641 | STRIP=":" |
| 2642 | else |
| 2643 | case $cross_compiling:$ac_tool_warned in |
| 2644 | yes:) |
| 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2646 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2647 | ac_tool_warned=yes ;; |
| 2648 | esac |
| 2649 | STRIP=$ac_ct_STRIP |
| 2650 | fi |
| 2651 | else |
| 2652 | STRIP="$ac_cv_prog_STRIP" |
| 2653 | fi |
| 2654 | |
| 2655 | fi |
| 2656 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2657 | |
| 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2659 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2660 | if test -z "$MKDIR_P"; then |
| 2661 | if ${ac_cv_path_mkdir+:} false; then : |
| 2662 | $as_echo_n "(cached) " >&6 |
| 2663 | else |
| 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
| 2669 | for ac_prog in mkdir gmkdir; do |
| 2670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2671 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2672 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2673 | 'mkdir (GNU coreutils) '* | \ |
| 2674 | 'mkdir (coreutils) '* | \ |
| 2675 | 'mkdir (fileutils) '4.1*) |
| 2676 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2677 | break 3;; |
| 2678 | esac |
| 2679 | done |
| 2680 | done |
| 2681 | done |
| 2682 | IFS=$as_save_IFS |
| 2683 | |
| 2684 | fi |
| 2685 | |
| 2686 | test -d ./--version && rmdir ./--version |
| 2687 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2688 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2689 | else |
| 2690 | # As a last resort, use the slow shell script. Don't cache a |
| 2691 | # value for MKDIR_P within a source directory, because that will |
| 2692 | # break other packages using the cache if that directory is |
| 2693 | # removed, or if the value is a relative name. |
| 2694 | MKDIR_P="$ac_install_sh -d" |
| 2695 | fi |
| 2696 | fi |
| 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2698 | $as_echo "$MKDIR_P" >&6; } |
| 2699 | |
| 2700 | for ac_prog in gawk mawk nawk awk |
| 2701 | do |
| 2702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2703 | set dummy $ac_prog; ac_word=$2 |
| 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2705 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2706 | if ${ac_cv_prog_AWK+:} false; then : |
| 2707 | $as_echo_n "(cached) " >&6 |
| 2708 | else |
| 2709 | if test -n "$AWK"; then |
| 2710 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2711 | else |
| 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2713 | for as_dir in $PATH |
| 2714 | do |
| 2715 | IFS=$as_save_IFS |
| 2716 | test -z "$as_dir" && as_dir=. |
| 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2719 | ac_cv_prog_AWK="$ac_prog" |
| 2720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2721 | break 2 |
| 2722 | fi |
| 2723 | done |
| 2724 | done |
| 2725 | IFS=$as_save_IFS |
| 2726 | |
| 2727 | fi |
| 2728 | fi |
| 2729 | AWK=$ac_cv_prog_AWK |
| 2730 | if test -n "$AWK"; then |
| 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2732 | $as_echo "$AWK" >&6; } |
| 2733 | else |
| 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2735 | $as_echo "no" >&6; } |
| 2736 | fi |
| 2737 | |
| 2738 | |
| 2739 | test -n "$AWK" && break |
| 2740 | done |
| 2741 | |
| 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2743 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2744 | set x ${MAKE-make} |
| 2745 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2746 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 2747 | $as_echo_n "(cached) " >&6 |
| 2748 | else |
| 2749 | cat >conftest.make <<\_ACEOF |
| 2750 | SHELL = /bin/sh |
| 2751 | all: |
| 2752 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2753 | _ACEOF |
| 2754 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2755 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2756 | *@@@%%%=?*=@@@%%%*) |
| 2757 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2758 | *) |
| 2759 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2760 | esac |
| 2761 | rm -f conftest.make |
| 2762 | fi |
| 2763 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2765 | $as_echo "yes" >&6; } |
| 2766 | SET_MAKE= |
| 2767 | else |
| 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2769 | $as_echo "no" >&6; } |
| 2770 | SET_MAKE="MAKE=${MAKE-make}" |
| 2771 | fi |
| 2772 | |
| 2773 | rm -rf .tst 2>/dev/null |
| 2774 | mkdir .tst 2>/dev/null |
| 2775 | if test -d .tst; then |
| 2776 | am__leading_dot=. |
| 2777 | else |
| 2778 | am__leading_dot=_ |
| 2779 | fi |
| 2780 | rmdir .tst 2>/dev/null |
| 2781 | |
| 2782 | # Check whether --enable-silent-rules was given. |
| 2783 | if test "${enable_silent_rules+set}" = set; then : |
| 2784 | enableval=$enable_silent_rules; |
| 2785 | fi |
| 2786 | |
| 2787 | case $enable_silent_rules in # ((( |
| 2788 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2789 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2790 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2791 | esac |
| 2792 | am_make=${MAKE-make} |
| 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2794 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2795 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2796 | $as_echo_n "(cached) " >&6 |
| 2797 | else |
| 2798 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2799 | BAR0=false |
| 2800 | BAR1=true |
| 2801 | V=1 |
| 2802 | am__doit: |
| 2803 | @$(TRUE) |
| 2804 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2805 | am_cv_make_support_nested_variables=yes |
| 2806 | else |
| 2807 | am_cv_make_support_nested_variables=no |
| 2808 | fi |
| 2809 | fi |
| 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2811 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2812 | if test $am_cv_make_support_nested_variables = yes; then |
| 2813 | AM_V='$(V)' |
| 2814 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2815 | else |
| 2816 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2817 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2818 | fi |
| 2819 | AM_BACKSLASH='\' |
| 2820 | |
| 2821 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2822 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2823 | # is not polluted with repeated "-I." |
| 2824 | am__isrc=' -I$(srcdir)' |
| 2825 | # test to see if srcdir already configured |
| 2826 | if test -f $srcdir/config.status; then |
| 2827 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2828 | fi |
| 2829 | fi |
| 2830 | |
| 2831 | # test whether we have cygpath |
| 2832 | if test -z "$CYGPATH_W"; then |
| 2833 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2834 | CYGPATH_W='cygpath -w' |
| 2835 | else |
| 2836 | CYGPATH_W=echo |
| 2837 | fi |
| 2838 | fi |
| 2839 | |
| 2840 | |
| 2841 | # Define the identity of the package. |
| 2842 | PACKAGE='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 2843 | VERSION='0.2' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2844 | |
| 2845 | |
| 2846 | # Some tools Automake needs. |
| 2847 | |
| 2848 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2849 | |
| 2850 | |
| 2851 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2852 | |
| 2853 | |
| 2854 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2855 | |
| 2856 | |
| 2857 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2858 | |
| 2859 | |
| 2860 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2861 | |
| 2862 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2863 | # dies out for good. For more background, see: |
| 2864 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2865 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2866 | mkdir_p='$(MKDIR_P)' |
| 2867 | |
| 2868 | # We need awk for the "check" target. The system "awk" is bad on |
| 2869 | # some platforms. |
| 2870 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2871 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2872 | AMTAR='$${TAR-tar}' |
| 2873 | |
| 2874 | |
| 2875 | # We'll loop over all known methods to create a tar archive until one works. |
| 2876 | _am_tools='gnutar pax cpio none' |
| 2877 | |
| 2878 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2879 | |
| 2880 | |
| 2881 | |
| 2882 | |
| 2883 | |
| 2884 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 2885 | # POSIX will say in a future version that running "rm -f" with no argument |
| 2886 | # is OK; and we want to be able to make that assumption in our Makefile |
| 2887 | # recipes. So use an aggressive probe to check that the usage we want is |
| 2888 | # actually supported "in the wild" to an acceptable degree. |
| 2889 | # See automake bug#10828. |
| 2890 | # To make any issue more visible, cause the running configure to be aborted |
| 2891 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 2892 | # user can still override this though. |
| 2893 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 2894 | cat >&2 <<'END' |
| 2895 | Oops! |
| 2896 | |
| 2897 | Your 'rm' program seems unable to run without file operands specified |
| 2898 | on the command line, even when the '-f' option is present. This is contrary |
| 2899 | to the behaviour of most rm programs out there, and not conforming with |
| 2900 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2901 | |
| 2902 | Please tell bug-automake@gnu.org about your system, including the value |
| 2903 | of your $PATH and any error possibly output before this message. This |
| 2904 | can help us improve future automake versions. |
| 2905 | |
| 2906 | END |
| 2907 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2908 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2909 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2910 | echo >&2 |
| 2911 | else |
| 2912 | cat >&2 <<'END' |
| 2913 | Aborting the configuration process, to ensure you take notice of the issue. |
| 2914 | |
| 2915 | You can download and install GNU coreutils to get an 'rm' implementation |
| 2916 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 2917 | |
| 2918 | If you want to complete the configuration process using your problematic |
| 2919 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2920 | to "yes", and re-run configure. |
| 2921 | |
| 2922 | END |
| 2923 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 2924 | fi |
| 2925 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2926 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 2927 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2928 | ac_config_headers="$ac_config_headers config.h" |
| 2929 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 2930 | |
| 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2932 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2933 | # Check whether --enable-maintainer-mode was given. |
| 2934 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2935 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2936 | else |
| 2937 | USE_MAINTAINER_MODE=no |
| 2938 | fi |
| 2939 | |
| 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2941 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2942 | if test $USE_MAINTAINER_MODE = yes; then |
| 2943 | MAINTAINER_MODE_TRUE= |
| 2944 | MAINTAINER_MODE_FALSE='#' |
| 2945 | else |
| 2946 | MAINTAINER_MODE_TRUE='#' |
| 2947 | MAINTAINER_MODE_FALSE= |
| 2948 | fi |
| 2949 | |
| 2950 | MAINT=$MAINTAINER_MODE_TRUE |
| 2951 | |
| 2952 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2953 | DEPDIR="${am__leading_dot}deps" |
| 2954 | |
| 2955 | ac_config_commands="$ac_config_commands depfiles" |
| 2956 | |
| 2957 | |
| 2958 | am_make=${MAKE-make} |
| 2959 | cat > confinc << 'END' |
| 2960 | am__doit: |
| 2961 | @echo this is the am__doit target |
| 2962 | .PHONY: am__doit |
| 2963 | END |
| 2964 | # If we don't find an include directive, just comment out the code. |
| 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 2966 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 2967 | am__include="#" |
| 2968 | am__quote= |
| 2969 | _am_result=none |
| 2970 | # First try GNU make style include. |
| 2971 | echo "include confinc" > confmf |
| 2972 | # Ignore all kinds of additional output from 'make'. |
| 2973 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2974 | *the\ am__doit\ target*) |
| 2975 | am__include=include |
| 2976 | am__quote= |
| 2977 | _am_result=GNU |
| 2978 | ;; |
| 2979 | esac |
| 2980 | # Now try BSD make style include. |
| 2981 | if test "$am__include" = "#"; then |
| 2982 | echo '.include "confinc"' > confmf |
| 2983 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2984 | *the\ am__doit\ target*) |
| 2985 | am__include=.include |
| 2986 | am__quote="\"" |
| 2987 | _am_result=BSD |
| 2988 | ;; |
| 2989 | esac |
| 2990 | fi |
| 2991 | |
| 2992 | |
| 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 2994 | $as_echo "$_am_result" >&6; } |
| 2995 | rm -f confinc confmf |
| 2996 | |
| 2997 | # Check whether --enable-dependency-tracking was given. |
| 2998 | if test "${enable_dependency_tracking+set}" = set; then : |
| 2999 | enableval=$enable_dependency_tracking; |
| 3000 | fi |
| 3001 | |
| 3002 | if test "x$enable_dependency_tracking" != xno; then |
| 3003 | am_depcomp="$ac_aux_dir/depcomp" |
| 3004 | AMDEPBACKSLASH='\' |
| 3005 | am__nodep='_no' |
| 3006 | fi |
| 3007 | if test "x$enable_dependency_tracking" != xno; then |
| 3008 | AMDEP_TRUE= |
| 3009 | AMDEP_FALSE='#' |
| 3010 | else |
| 3011 | AMDEP_TRUE='#' |
| 3012 | AMDEP_FALSE= |
| 3013 | fi |
| 3014 | |
| 3015 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3016 | ac_ext=c |
| 3017 | ac_cpp='$CPP $CPPFLAGS' |
| 3018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3021 | if test -n "$ac_tool_prefix"; then |
| 3022 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3023 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3025 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3026 | if ${ac_cv_prog_CC+:} false; then : |
| 3027 | $as_echo_n "(cached) " >&6 |
| 3028 | else |
| 3029 | if test -n "$CC"; then |
| 3030 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3031 | else |
| 3032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3033 | for as_dir in $PATH |
| 3034 | do |
| 3035 | IFS=$as_save_IFS |
| 3036 | test -z "$as_dir" && as_dir=. |
| 3037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3039 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3041 | break 2 |
| 3042 | fi |
| 3043 | done |
| 3044 | done |
| 3045 | IFS=$as_save_IFS |
| 3046 | |
| 3047 | fi |
| 3048 | fi |
| 3049 | CC=$ac_cv_prog_CC |
| 3050 | if test -n "$CC"; then |
| 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3052 | $as_echo "$CC" >&6; } |
| 3053 | else |
| 3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3055 | $as_echo "no" >&6; } |
| 3056 | fi |
| 3057 | |
| 3058 | |
| 3059 | fi |
| 3060 | if test -z "$ac_cv_prog_CC"; then |
| 3061 | ac_ct_CC=$CC |
| 3062 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3063 | set dummy gcc; ac_word=$2 |
| 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3065 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3066 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3067 | $as_echo_n "(cached) " >&6 |
| 3068 | else |
| 3069 | if test -n "$ac_ct_CC"; then |
| 3070 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3071 | else |
| 3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3073 | for as_dir in $PATH |
| 3074 | do |
| 3075 | IFS=$as_save_IFS |
| 3076 | test -z "$as_dir" && as_dir=. |
| 3077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3079 | ac_cv_prog_ac_ct_CC="gcc" |
| 3080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3081 | break 2 |
| 3082 | fi |
| 3083 | done |
| 3084 | done |
| 3085 | IFS=$as_save_IFS |
| 3086 | |
| 3087 | fi |
| 3088 | fi |
| 3089 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3090 | if test -n "$ac_ct_CC"; then |
| 3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3092 | $as_echo "$ac_ct_CC" >&6; } |
| 3093 | else |
| 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3095 | $as_echo "no" >&6; } |
| 3096 | fi |
| 3097 | |
| 3098 | if test "x$ac_ct_CC" = x; then |
| 3099 | CC="" |
| 3100 | else |
| 3101 | case $cross_compiling:$ac_tool_warned in |
| 3102 | yes:) |
| 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3105 | ac_tool_warned=yes ;; |
| 3106 | esac |
| 3107 | CC=$ac_ct_CC |
| 3108 | fi |
| 3109 | else |
| 3110 | CC="$ac_cv_prog_CC" |
| 3111 | fi |
| 3112 | |
| 3113 | if test -z "$CC"; then |
| 3114 | if test -n "$ac_tool_prefix"; then |
| 3115 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3116 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3118 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3119 | if ${ac_cv_prog_CC+:} false; then : |
| 3120 | $as_echo_n "(cached) " >&6 |
| 3121 | else |
| 3122 | if test -n "$CC"; then |
| 3123 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3124 | else |
| 3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3126 | for as_dir in $PATH |
| 3127 | do |
| 3128 | IFS=$as_save_IFS |
| 3129 | test -z "$as_dir" && as_dir=. |
| 3130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3132 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3134 | break 2 |
| 3135 | fi |
| 3136 | done |
| 3137 | done |
| 3138 | IFS=$as_save_IFS |
| 3139 | |
| 3140 | fi |
| 3141 | fi |
| 3142 | CC=$ac_cv_prog_CC |
| 3143 | if test -n "$CC"; then |
| 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3145 | $as_echo "$CC" >&6; } |
| 3146 | else |
| 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3148 | $as_echo "no" >&6; } |
| 3149 | fi |
| 3150 | |
| 3151 | |
| 3152 | fi |
| 3153 | fi |
| 3154 | if test -z "$CC"; then |
| 3155 | # Extract the first word of "cc", so it can be a program name with args. |
| 3156 | set dummy cc; ac_word=$2 |
| 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3158 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3159 | if ${ac_cv_prog_CC+:} false; then : |
| 3160 | $as_echo_n "(cached) " >&6 |
| 3161 | else |
| 3162 | if test -n "$CC"; then |
| 3163 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3164 | else |
| 3165 | ac_prog_rejected=no |
| 3166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3167 | for as_dir in $PATH |
| 3168 | do |
| 3169 | IFS=$as_save_IFS |
| 3170 | test -z "$as_dir" && as_dir=. |
| 3171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3173 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3174 | ac_prog_rejected=yes |
| 3175 | continue |
| 3176 | fi |
| 3177 | ac_cv_prog_CC="cc" |
| 3178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3179 | break 2 |
| 3180 | fi |
| 3181 | done |
| 3182 | done |
| 3183 | IFS=$as_save_IFS |
| 3184 | |
| 3185 | if test $ac_prog_rejected = yes; then |
| 3186 | # We found a bogon in the path, so make sure we never use it. |
| 3187 | set dummy $ac_cv_prog_CC |
| 3188 | shift |
| 3189 | if test $# != 0; then |
| 3190 | # We chose a different compiler from the bogus one. |
| 3191 | # However, it has the same basename, so the bogon will be chosen |
| 3192 | # first if we set CC to just the basename; use the full file name. |
| 3193 | shift |
| 3194 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3195 | fi |
| 3196 | fi |
| 3197 | fi |
| 3198 | fi |
| 3199 | CC=$ac_cv_prog_CC |
| 3200 | if test -n "$CC"; then |
| 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3202 | $as_echo "$CC" >&6; } |
| 3203 | else |
| 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3205 | $as_echo "no" >&6; } |
| 3206 | fi |
| 3207 | |
| 3208 | |
| 3209 | fi |
| 3210 | if test -z "$CC"; then |
| 3211 | if test -n "$ac_tool_prefix"; then |
| 3212 | for ac_prog in cl.exe |
| 3213 | do |
| 3214 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3215 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3217 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3218 | if ${ac_cv_prog_CC+:} false; then : |
| 3219 | $as_echo_n "(cached) " >&6 |
| 3220 | else |
| 3221 | if test -n "$CC"; then |
| 3222 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3223 | else |
| 3224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3225 | for as_dir in $PATH |
| 3226 | do |
| 3227 | IFS=$as_save_IFS |
| 3228 | test -z "$as_dir" && as_dir=. |
| 3229 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3231 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3233 | break 2 |
| 3234 | fi |
| 3235 | done |
| 3236 | done |
| 3237 | IFS=$as_save_IFS |
| 3238 | |
| 3239 | fi |
| 3240 | fi |
| 3241 | CC=$ac_cv_prog_CC |
| 3242 | if test -n "$CC"; then |
| 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3244 | $as_echo "$CC" >&6; } |
| 3245 | else |
| 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3247 | $as_echo "no" >&6; } |
| 3248 | fi |
| 3249 | |
| 3250 | |
| 3251 | test -n "$CC" && break |
| 3252 | done |
| 3253 | fi |
| 3254 | if test -z "$CC"; then |
| 3255 | ac_ct_CC=$CC |
| 3256 | for ac_prog in cl.exe |
| 3257 | do |
| 3258 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3259 | set dummy $ac_prog; ac_word=$2 |
| 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3261 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3262 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3263 | $as_echo_n "(cached) " >&6 |
| 3264 | else |
| 3265 | if test -n "$ac_ct_CC"; then |
| 3266 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3267 | else |
| 3268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3269 | for as_dir in $PATH |
| 3270 | do |
| 3271 | IFS=$as_save_IFS |
| 3272 | test -z "$as_dir" && as_dir=. |
| 3273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3275 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3277 | break 2 |
| 3278 | fi |
| 3279 | done |
| 3280 | done |
| 3281 | IFS=$as_save_IFS |
| 3282 | |
| 3283 | fi |
| 3284 | fi |
| 3285 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3286 | if test -n "$ac_ct_CC"; then |
| 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3288 | $as_echo "$ac_ct_CC" >&6; } |
| 3289 | else |
| 3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3291 | $as_echo "no" >&6; } |
| 3292 | fi |
| 3293 | |
| 3294 | |
| 3295 | test -n "$ac_ct_CC" && break |
| 3296 | done |
| 3297 | |
| 3298 | if test "x$ac_ct_CC" = x; then |
| 3299 | CC="" |
| 3300 | else |
| 3301 | case $cross_compiling:$ac_tool_warned in |
| 3302 | yes:) |
| 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3305 | ac_tool_warned=yes ;; |
| 3306 | esac |
| 3307 | CC=$ac_ct_CC |
| 3308 | fi |
| 3309 | fi |
| 3310 | |
| 3311 | fi |
| 3312 | |
| 3313 | |
| 3314 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3315 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3316 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3317 | See \`config.log' for more details" "$LINENO" 5; } |
| 3318 | |
| 3319 | # Provide some information about the compiler. |
| 3320 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3321 | set X $ac_compile |
| 3322 | ac_compiler=$2 |
| 3323 | for ac_option in --version -v -V -qversion; do |
| 3324 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3325 | case "(($ac_try" in |
| 3326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3327 | *) ac_try_echo=$ac_try;; |
| 3328 | esac |
| 3329 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3330 | $as_echo "$ac_try_echo"; } >&5 |
| 3331 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3332 | ac_status=$? |
| 3333 | if test -s conftest.err; then |
| 3334 | sed '10a\ |
| 3335 | ... rest of stderr output deleted ... |
| 3336 | 10q' conftest.err >conftest.er1 |
| 3337 | cat conftest.er1 >&5 |
| 3338 | fi |
| 3339 | rm -f conftest.er1 conftest.err |
| 3340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3341 | test $ac_status = 0; } |
| 3342 | done |
| 3343 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 3344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3345 | /* end confdefs.h. */ |
| 3346 | |
| 3347 | int |
| 3348 | main () |
| 3349 | { |
| 3350 | |
| 3351 | ; |
| 3352 | return 0; |
| 3353 | } |
| 3354 | _ACEOF |
| 3355 | ac_clean_files_save=$ac_clean_files |
| 3356 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3357 | # Try to create an executable without -o first, disregard a.out. |
| 3358 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3359 | # of exeext. |
| 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3361 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3362 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3363 | |
| 3364 | # The possible output files: |
| 3365 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3366 | |
| 3367 | ac_rmfiles= |
| 3368 | for ac_file in $ac_files |
| 3369 | do |
| 3370 | case $ac_file in |
| 3371 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3372 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3373 | esac |
| 3374 | done |
| 3375 | rm -f $ac_rmfiles |
| 3376 | |
| 3377 | if { { ac_try="$ac_link_default" |
| 3378 | case "(($ac_try" in |
| 3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3380 | *) ac_try_echo=$ac_try;; |
| 3381 | esac |
| 3382 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3383 | $as_echo "$ac_try_echo"; } >&5 |
| 3384 | (eval "$ac_link_default") 2>&5 |
| 3385 | ac_status=$? |
| 3386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3387 | test $ac_status = 0; }; then : |
| 3388 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3389 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3390 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3391 | # so that the user can short-circuit this test for compilers unknown to |
| 3392 | # Autoconf. |
| 3393 | for ac_file in $ac_files '' |
| 3394 | do |
| 3395 | test -f "$ac_file" || continue |
| 3396 | case $ac_file in |
| 3397 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3398 | ;; |
| 3399 | [ab].out ) |
| 3400 | # We found the default executable, but exeext='' is most |
| 3401 | # certainly right. |
| 3402 | break;; |
| 3403 | *.* ) |
| 3404 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3405 | then :; else |
| 3406 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3407 | fi |
| 3408 | # We set ac_cv_exeext here because the later test for it is not |
| 3409 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3410 | # argument, so we may need to know it at that point already. |
| 3411 | # Even if this section looks crufty: it has the advantage of |
| 3412 | # actually working. |
| 3413 | break;; |
| 3414 | * ) |
| 3415 | break;; |
| 3416 | esac |
| 3417 | done |
| 3418 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3419 | |
| 3420 | else |
| 3421 | ac_file='' |
| 3422 | fi |
| 3423 | if test -z "$ac_file"; then : |
| 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3425 | $as_echo "no" >&6; } |
| 3426 | $as_echo "$as_me: failed program was:" >&5 |
| 3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3428 | |
| 3429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3431 | as_fn_error 77 "C compiler cannot create executables |
| 3432 | See \`config.log' for more details" "$LINENO" 5; } |
| 3433 | else |
| 3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3435 | $as_echo "yes" >&6; } |
| 3436 | fi |
| 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3438 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3440 | $as_echo "$ac_file" >&6; } |
| 3441 | ac_exeext=$ac_cv_exeext |
| 3442 | |
| 3443 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3444 | ac_clean_files=$ac_clean_files_save |
| 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3446 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3447 | if { { ac_try="$ac_link" |
| 3448 | case "(($ac_try" in |
| 3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3450 | *) ac_try_echo=$ac_try;; |
| 3451 | esac |
| 3452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3453 | $as_echo "$ac_try_echo"; } >&5 |
| 3454 | (eval "$ac_link") 2>&5 |
| 3455 | ac_status=$? |
| 3456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3457 | test $ac_status = 0; }; then : |
| 3458 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3459 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3460 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3461 | # `rm'. |
| 3462 | for ac_file in conftest.exe conftest conftest.*; do |
| 3463 | test -f "$ac_file" || continue |
| 3464 | case $ac_file in |
| 3465 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3466 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3467 | break;; |
| 3468 | * ) break;; |
| 3469 | esac |
| 3470 | done |
| 3471 | else |
| 3472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3474 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3475 | See \`config.log' for more details" "$LINENO" 5; } |
| 3476 | fi |
| 3477 | rm -f conftest conftest$ac_cv_exeext |
| 3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3479 | $as_echo "$ac_cv_exeext" >&6; } |
| 3480 | |
| 3481 | rm -f conftest.$ac_ext |
| 3482 | EXEEXT=$ac_cv_exeext |
| 3483 | ac_exeext=$EXEEXT |
| 3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3485 | /* end confdefs.h. */ |
| 3486 | #include <stdio.h> |
| 3487 | int |
| 3488 | main () |
| 3489 | { |
| 3490 | FILE *f = fopen ("conftest.out", "w"); |
| 3491 | return ferror (f) || fclose (f) != 0; |
| 3492 | |
| 3493 | ; |
| 3494 | return 0; |
| 3495 | } |
| 3496 | _ACEOF |
| 3497 | ac_clean_files="$ac_clean_files conftest.out" |
| 3498 | # Check that the compiler produces executables we can run. If not, either |
| 3499 | # the compiler is broken, or we cross compile. |
| 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3501 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3502 | if test "$cross_compiling" != yes; then |
| 3503 | { { ac_try="$ac_link" |
| 3504 | case "(($ac_try" in |
| 3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3506 | *) ac_try_echo=$ac_try;; |
| 3507 | esac |
| 3508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3509 | $as_echo "$ac_try_echo"; } >&5 |
| 3510 | (eval "$ac_link") 2>&5 |
| 3511 | ac_status=$? |
| 3512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3513 | test $ac_status = 0; } |
| 3514 | if { ac_try='./conftest$ac_cv_exeext' |
| 3515 | { { case "(($ac_try" in |
| 3516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3517 | *) ac_try_echo=$ac_try;; |
| 3518 | esac |
| 3519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3520 | $as_echo "$ac_try_echo"; } >&5 |
| 3521 | (eval "$ac_try") 2>&5 |
| 3522 | ac_status=$? |
| 3523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3524 | test $ac_status = 0; }; }; then |
| 3525 | cross_compiling=no |
| 3526 | else |
| 3527 | if test "$cross_compiling" = maybe; then |
| 3528 | cross_compiling=yes |
| 3529 | else |
| 3530 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3531 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3532 | as_fn_error $? "cannot run C compiled programs. |
| 3533 | If you meant to cross compile, use \`--host'. |
| 3534 | See \`config.log' for more details" "$LINENO" 5; } |
| 3535 | fi |
| 3536 | fi |
| 3537 | fi |
| 3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3539 | $as_echo "$cross_compiling" >&6; } |
| 3540 | |
| 3541 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3542 | ac_clean_files=$ac_clean_files_save |
| 3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3544 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3545 | if ${ac_cv_objext+:} false; then : |
| 3546 | $as_echo_n "(cached) " >&6 |
| 3547 | else |
| 3548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3549 | /* end confdefs.h. */ |
| 3550 | |
| 3551 | int |
| 3552 | main () |
| 3553 | { |
| 3554 | |
| 3555 | ; |
| 3556 | return 0; |
| 3557 | } |
| 3558 | _ACEOF |
| 3559 | rm -f conftest.o conftest.obj |
| 3560 | if { { ac_try="$ac_compile" |
| 3561 | case "(($ac_try" in |
| 3562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3563 | *) ac_try_echo=$ac_try;; |
| 3564 | esac |
| 3565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3566 | $as_echo "$ac_try_echo"; } >&5 |
| 3567 | (eval "$ac_compile") 2>&5 |
| 3568 | ac_status=$? |
| 3569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3570 | test $ac_status = 0; }; then : |
| 3571 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3572 | test -f "$ac_file" || continue; |
| 3573 | case $ac_file in |
| 3574 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3575 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3576 | break;; |
| 3577 | esac |
| 3578 | done |
| 3579 | else |
| 3580 | $as_echo "$as_me: failed program was:" >&5 |
| 3581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3582 | |
| 3583 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3585 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3586 | See \`config.log' for more details" "$LINENO" 5; } |
| 3587 | fi |
| 3588 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3589 | fi |
| 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3591 | $as_echo "$ac_cv_objext" >&6; } |
| 3592 | OBJEXT=$ac_cv_objext |
| 3593 | ac_objext=$OBJEXT |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3595 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3596 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3597 | $as_echo_n "(cached) " >&6 |
| 3598 | else |
| 3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3600 | /* end confdefs.h. */ |
| 3601 | |
| 3602 | int |
| 3603 | main () |
| 3604 | { |
| 3605 | #ifndef __GNUC__ |
| 3606 | choke me |
| 3607 | #endif |
| 3608 | |
| 3609 | ; |
| 3610 | return 0; |
| 3611 | } |
| 3612 | _ACEOF |
| 3613 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3614 | ac_compiler_gnu=yes |
| 3615 | else |
| 3616 | ac_compiler_gnu=no |
| 3617 | fi |
| 3618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3619 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3620 | |
| 3621 | fi |
| 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3623 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3624 | if test $ac_compiler_gnu = yes; then |
| 3625 | GCC=yes |
| 3626 | else |
| 3627 | GCC= |
| 3628 | fi |
| 3629 | ac_test_CFLAGS=${CFLAGS+set} |
| 3630 | ac_save_CFLAGS=$CFLAGS |
| 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3632 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3633 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3634 | $as_echo_n "(cached) " >&6 |
| 3635 | else |
| 3636 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3637 | ac_c_werror_flag=yes |
| 3638 | ac_cv_prog_cc_g=no |
| 3639 | CFLAGS="-g" |
| 3640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3641 | /* end confdefs.h. */ |
| 3642 | |
| 3643 | int |
| 3644 | main () |
| 3645 | { |
| 3646 | |
| 3647 | ; |
| 3648 | return 0; |
| 3649 | } |
| 3650 | _ACEOF |
| 3651 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3652 | ac_cv_prog_cc_g=yes |
| 3653 | else |
| 3654 | CFLAGS="" |
| 3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3656 | /* end confdefs.h. */ |
| 3657 | |
| 3658 | int |
| 3659 | main () |
| 3660 | { |
| 3661 | |
| 3662 | ; |
| 3663 | return 0; |
| 3664 | } |
| 3665 | _ACEOF |
| 3666 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3667 | |
| 3668 | else |
| 3669 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3670 | CFLAGS="-g" |
| 3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3672 | /* end confdefs.h. */ |
| 3673 | |
| 3674 | int |
| 3675 | main () |
| 3676 | { |
| 3677 | |
| 3678 | ; |
| 3679 | return 0; |
| 3680 | } |
| 3681 | _ACEOF |
| 3682 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3683 | ac_cv_prog_cc_g=yes |
| 3684 | fi |
| 3685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3686 | fi |
| 3687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3688 | fi |
| 3689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3690 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3691 | fi |
| 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3693 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3694 | if test "$ac_test_CFLAGS" = set; then |
| 3695 | CFLAGS=$ac_save_CFLAGS |
| 3696 | elif test $ac_cv_prog_cc_g = yes; then |
| 3697 | if test "$GCC" = yes; then |
| 3698 | CFLAGS="-g -O2" |
| 3699 | else |
| 3700 | CFLAGS="-g" |
| 3701 | fi |
| 3702 | else |
| 3703 | if test "$GCC" = yes; then |
| 3704 | CFLAGS="-O2" |
| 3705 | else |
| 3706 | CFLAGS= |
| 3707 | fi |
| 3708 | fi |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3710 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3711 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3712 | $as_echo_n "(cached) " >&6 |
| 3713 | else |
| 3714 | ac_cv_prog_cc_c89=no |
| 3715 | ac_save_CC=$CC |
| 3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3717 | /* end confdefs.h. */ |
| 3718 | #include <stdarg.h> |
| 3719 | #include <stdio.h> |
| 3720 | struct stat; |
| 3721 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3722 | struct buf { int x; }; |
| 3723 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3724 | static char *e (p, i) |
| 3725 | char **p; |
| 3726 | int i; |
| 3727 | { |
| 3728 | return p[i]; |
| 3729 | } |
| 3730 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3731 | { |
| 3732 | char *s; |
| 3733 | va_list v; |
| 3734 | va_start (v,p); |
| 3735 | s = g (p, va_arg (v,int)); |
| 3736 | va_end (v); |
| 3737 | return s; |
| 3738 | } |
| 3739 | |
| 3740 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3741 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3742 | These don't provoke an error unfortunately, instead are silently treated |
| 3743 | as 'x'. The following induces an error, until -std is added to get |
| 3744 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3745 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3746 | that's true only with -std. */ |
| 3747 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3748 | |
| 3749 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3750 | inside strings and character constants. */ |
| 3751 | #define FOO(x) 'x' |
| 3752 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3753 | |
| 3754 | int test (int i, double x); |
| 3755 | struct s1 {int (*f) (int a);}; |
| 3756 | struct s2 {int (*f) (double a);}; |
| 3757 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3758 | int argc; |
| 3759 | char **argv; |
| 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3769 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3770 | do |
| 3771 | CC="$ac_save_CC $ac_arg" |
| 3772 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3773 | ac_cv_prog_cc_c89=$ac_arg |
| 3774 | fi |
| 3775 | rm -f core conftest.err conftest.$ac_objext |
| 3776 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3777 | done |
| 3778 | rm -f conftest.$ac_ext |
| 3779 | CC=$ac_save_CC |
| 3780 | |
| 3781 | fi |
| 3782 | # AC_CACHE_VAL |
| 3783 | case "x$ac_cv_prog_cc_c89" in |
| 3784 | x) |
| 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3786 | $as_echo "none needed" >&6; } ;; |
| 3787 | xno) |
| 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3789 | $as_echo "unsupported" >&6; } ;; |
| 3790 | *) |
| 3791 | CC="$CC $ac_cv_prog_cc_c89" |
| 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3793 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3794 | esac |
| 3795 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3796 | |
| 3797 | fi |
| 3798 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 3799 | ac_ext=c |
| 3800 | ac_cpp='$CPP $CPPFLAGS' |
| 3801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3804 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 3805 | ac_ext=c |
| 3806 | ac_cpp='$CPP $CPPFLAGS' |
| 3807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3811 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3812 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3813 | $as_echo_n "(cached) " >&6 |
| 3814 | else |
| 3815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3816 | /* end confdefs.h. */ |
| 3817 | |
| 3818 | int |
| 3819 | main () |
| 3820 | { |
| 3821 | |
| 3822 | ; |
| 3823 | return 0; |
| 3824 | } |
| 3825 | _ACEOF |
| 3826 | # Make sure it works both with $CC and with simple cc. |
| 3827 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3828 | # compilers refuse to overwrite an existing .o file with -o, |
| 3829 | # though they will create one. |
| 3830 | am_cv_prog_cc_c_o=yes |
| 3831 | for am_i in 1 2; do |
| 3832 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3833 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3834 | ac_status=$? |
| 3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3836 | (exit $ac_status); } \ |
| 3837 | && test -f conftest2.$ac_objext; then |
| 3838 | : OK |
| 3839 | else |
| 3840 | am_cv_prog_cc_c_o=no |
| 3841 | break |
| 3842 | fi |
| 3843 | done |
| 3844 | rm -f core conftest* |
| 3845 | unset am_i |
| 3846 | fi |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3848 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3849 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 3850 | # Losing compiler, so override with the script. |
| 3851 | # FIXME: It is wrong to rewrite CC. |
| 3852 | # But if we don't then we get into trouble of one sort or another. |
| 3853 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3854 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3855 | CC="$am_aux_dir/compile $CC" |
| 3856 | fi |
| 3857 | ac_ext=c |
| 3858 | ac_cpp='$CPP $CPPFLAGS' |
| 3859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3862 | |
| 3863 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3864 | depcc="$CC" am_compiler_list= |
| 3865 | |
| 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3867 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3868 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 3869 | $as_echo_n "(cached) " >&6 |
| 3870 | else |
| 3871 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3872 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3873 | # making bogus files that we don't know about and never remove. For |
| 3874 | # instance it was reported that on HP-UX the gcc test will end up |
| 3875 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3876 | # in D". |
| 3877 | rm -rf conftest.dir |
| 3878 | mkdir conftest.dir |
| 3879 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3880 | # using a relative directory. |
| 3881 | cp "$am_depcomp" conftest.dir |
| 3882 | cd conftest.dir |
| 3883 | # We will build objects and dependencies in a subdirectory because |
| 3884 | # it helps to detect inapplicable dependency modes. For instance |
| 3885 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3886 | # side effect of compilation, but ICC will put the dependencies in |
| 3887 | # the current directory while Tru64 will put them in the object |
| 3888 | # directory. |
| 3889 | mkdir sub |
| 3890 | |
| 3891 | am_cv_CC_dependencies_compiler_type=none |
| 3892 | if test "$am_compiler_list" = ""; then |
| 3893 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3894 | fi |
| 3895 | am__universal=false |
| 3896 | case " $depcc " in #( |
| 3897 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3898 | esac |
| 3899 | |
| 3900 | for depmode in $am_compiler_list; do |
| 3901 | # Setup a source with many dependencies, because some compilers |
| 3902 | # like to wrap large dependency lists on column 80 (with \), and |
| 3903 | # we should not choose a depcomp mode which is confused by this. |
| 3904 | # |
| 3905 | # We need to recreate these files for each test, as the compiler may |
| 3906 | # overwrite some of them when testing with obscure command lines. |
| 3907 | # This happens at least with the AIX C compiler. |
| 3908 | : > sub/conftest.c |
| 3909 | for i in 1 2 3 4 5 6; do |
| 3910 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3911 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3912 | # Solaris 10 /bin/sh. |
| 3913 | echo '/* dummy */' > sub/conftst$i.h |
| 3914 | done |
| 3915 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3916 | |
| 3917 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 3918 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3919 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3920 | # versions had trouble with output in subdirs. |
| 3921 | am__obj=sub/conftest.${OBJEXT-o} |
| 3922 | am__minus_obj="-o $am__obj" |
| 3923 | case $depmode in |
| 3924 | gcc) |
| 3925 | # This depmode causes a compiler race in universal mode. |
| 3926 | test "$am__universal" = false || continue |
| 3927 | ;; |
| 3928 | nosideeffect) |
| 3929 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3930 | # only be used when explicitly requested. |
| 3931 | if test "x$enable_dependency_tracking" = xyes; then |
| 3932 | continue |
| 3933 | else |
| 3934 | break |
| 3935 | fi |
| 3936 | ;; |
| 3937 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3938 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 3939 | # not run yet. These depmodes are late enough in the game, and |
| 3940 | # so weak that their functioning should not be impacted. |
| 3941 | am__obj=conftest.${OBJEXT-o} |
| 3942 | am__minus_obj= |
| 3943 | ;; |
| 3944 | none) break ;; |
| 3945 | esac |
| 3946 | if depmode=$depmode \ |
| 3947 | source=sub/conftest.c object=$am__obj \ |
| 3948 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3949 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3950 | >/dev/null 2>conftest.err && |
| 3951 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3952 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3953 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3954 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3955 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3956 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3957 | # that says an option was ignored or not supported. |
| 3958 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3959 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3960 | # The diagnosis changed in icc 8.0: |
| 3961 | # icc: Command line remark: option '-MP' not supported |
| 3962 | if (grep 'ignoring option' conftest.err || |
| 3963 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3964 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3965 | break |
| 3966 | fi |
| 3967 | fi |
| 3968 | done |
| 3969 | |
| 3970 | cd .. |
| 3971 | rm -rf conftest.dir |
| 3972 | else |
| 3973 | am_cv_CC_dependencies_compiler_type=none |
| 3974 | fi |
| 3975 | |
| 3976 | fi |
| 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3978 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3979 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3980 | |
| 3981 | if |
| 3982 | test "x$enable_dependency_tracking" != xno \ |
| 3983 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3984 | am__fastdepCC_TRUE= |
| 3985 | am__fastdepCC_FALSE='#' |
| 3986 | else |
| 3987 | am__fastdepCC_TRUE='#' |
| 3988 | am__fastdepCC_FALSE= |
| 3989 | fi |
| 3990 | |
| 3991 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3992 | |
| 3993 | if test -n "$ac_tool_prefix"; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 3994 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3995 | do |
| 3996 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3997 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3999 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4000 | if ${ac_cv_prog_AR+:} false; then : |
| 4001 | $as_echo_n "(cached) " >&6 |
| 4002 | else |
| 4003 | if test -n "$AR"; then |
| 4004 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4005 | else |
| 4006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4007 | for as_dir in $PATH |
| 4008 | do |
| 4009 | IFS=$as_save_IFS |
| 4010 | test -z "$as_dir" && as_dir=. |
| 4011 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4013 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4015 | break 2 |
| 4016 | fi |
| 4017 | done |
| 4018 | done |
| 4019 | IFS=$as_save_IFS |
| 4020 | |
| 4021 | fi |
| 4022 | fi |
| 4023 | AR=$ac_cv_prog_AR |
| 4024 | if test -n "$AR"; then |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4026 | $as_echo "$AR" >&6; } |
| 4027 | else |
| 4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4029 | $as_echo "no" >&6; } |
| 4030 | fi |
| 4031 | |
| 4032 | |
| 4033 | test -n "$AR" && break |
| 4034 | done |
| 4035 | fi |
| 4036 | if test -z "$AR"; then |
| 4037 | ac_ct_AR=$AR |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4038 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4039 | do |
| 4040 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4041 | set dummy $ac_prog; ac_word=$2 |
| 4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4043 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4044 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4045 | $as_echo_n "(cached) " >&6 |
| 4046 | else |
| 4047 | if test -n "$ac_ct_AR"; then |
| 4048 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4049 | else |
| 4050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4051 | for as_dir in $PATH |
| 4052 | do |
| 4053 | IFS=$as_save_IFS |
| 4054 | test -z "$as_dir" && as_dir=. |
| 4055 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4056 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4057 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4059 | break 2 |
| 4060 | fi |
| 4061 | done |
| 4062 | done |
| 4063 | IFS=$as_save_IFS |
| 4064 | |
| 4065 | fi |
| 4066 | fi |
| 4067 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4068 | if test -n "$ac_ct_AR"; then |
| 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4070 | $as_echo "$ac_ct_AR" >&6; } |
| 4071 | else |
| 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4073 | $as_echo "no" >&6; } |
| 4074 | fi |
| 4075 | |
| 4076 | |
| 4077 | test -n "$ac_ct_AR" && break |
| 4078 | done |
| 4079 | |
| 4080 | if test "x$ac_ct_AR" = x; then |
| 4081 | AR="false" |
| 4082 | else |
| 4083 | case $cross_compiling:$ac_tool_warned in |
| 4084 | yes:) |
| 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4087 | ac_tool_warned=yes ;; |
| 4088 | esac |
| 4089 | AR=$ac_ct_AR |
| 4090 | fi |
| 4091 | fi |
| 4092 | |
| 4093 | : ${AR=ar} |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4094 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4096 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4097 | if ${am_cv_ar_interface+:} false; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4098 | $as_echo_n "(cached) " >&6 |
| 4099 | else |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4100 | ac_ext=c |
| 4101 | ac_cpp='$CPP $CPPFLAGS' |
| 4102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4105 | |
| 4106 | am_cv_ar_interface=ar |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4108 | /* end confdefs.h. */ |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4109 | int some_variable = 0; |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4110 | _ACEOF |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4111 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4112 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4114 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4115 | ac_status=$? |
| 4116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4117 | test $ac_status = 0; } |
| 4118 | if test "$ac_status" -eq 0; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4119 | am_cv_ar_interface=ar |
| 4120 | else |
| 4121 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4122 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4123 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4124 | ac_status=$? |
| 4125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4126 | test $ac_status = 0; } |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4127 | if test "$ac_status" -eq 0; then |
| 4128 | am_cv_ar_interface=lib |
| 4129 | else |
| 4130 | am_cv_ar_interface=unknown |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4131 | fi |
| 4132 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4133 | rm -f conftest.lib libconftest.a |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4134 | |
| 4135 | fi |
| 4136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4137 | ac_ext=c |
| 4138 | ac_cpp='$CPP $CPPFLAGS' |
| 4139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4142 | |
| 4143 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4145 | $as_echo "$am_cv_ar_interface" >&6; } |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4146 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4147 | case $am_cv_ar_interface in |
| 4148 | ar) |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4149 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4150 | lib) |
| 4151 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4152 | # FIXME: It is wrong to rewrite AR. |
| 4153 | # But if we don't then we get into trouble of one sort or another. |
| 4154 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4155 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4156 | # similar. |
| 4157 | AR="$am_aux_dir/ar-lib $AR" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4158 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4159 | unknown) |
| 4160 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4161 | ;; |
| 4162 | esac |
| 4163 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 4164 | case `pwd` in |
| 4165 | *\ * | *\ *) |
| 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4167 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4168 | esac |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | macro_version='2.4.2' |
| 4173 | macro_revision='1.3337' |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4188 | |
| 4189 | # Make sure we can run config.sub. |
| 4190 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4191 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4192 | |
| 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4194 | $as_echo_n "checking build system type... " >&6; } |
| 4195 | if ${ac_cv_build+:} false; then : |
| 4196 | $as_echo_n "(cached) " >&6 |
| 4197 | else |
| 4198 | ac_build_alias=$build_alias |
| 4199 | test "x$ac_build_alias" = x && |
| 4200 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4201 | test "x$ac_build_alias" = x && |
| 4202 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4203 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4204 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4205 | |
| 4206 | fi |
| 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4208 | $as_echo "$ac_cv_build" >&6; } |
| 4209 | case $ac_cv_build in |
| 4210 | *-*-*) ;; |
| 4211 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4212 | esac |
| 4213 | build=$ac_cv_build |
| 4214 | ac_save_IFS=$IFS; IFS='-' |
| 4215 | set x $ac_cv_build |
| 4216 | shift |
| 4217 | build_cpu=$1 |
| 4218 | build_vendor=$2 |
| 4219 | shift; shift |
| 4220 | # Remember, the first character of IFS is used to create $*, |
| 4221 | # except with old shells: |
| 4222 | build_os=$* |
| 4223 | IFS=$ac_save_IFS |
| 4224 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4225 | |
| 4226 | |
| 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4228 | $as_echo_n "checking host system type... " >&6; } |
| 4229 | if ${ac_cv_host+:} false; then : |
| 4230 | $as_echo_n "(cached) " >&6 |
| 4231 | else |
| 4232 | if test "x$host_alias" = x; then |
| 4233 | ac_cv_host=$ac_cv_build |
| 4234 | else |
| 4235 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4236 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4237 | fi |
| 4238 | |
| 4239 | fi |
| 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4241 | $as_echo "$ac_cv_host" >&6; } |
| 4242 | case $ac_cv_host in |
| 4243 | *-*-*) ;; |
| 4244 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4245 | esac |
| 4246 | host=$ac_cv_host |
| 4247 | ac_save_IFS=$IFS; IFS='-' |
| 4248 | set x $ac_cv_host |
| 4249 | shift |
| 4250 | host_cpu=$1 |
| 4251 | host_vendor=$2 |
| 4252 | shift; shift |
| 4253 | # Remember, the first character of IFS is used to create $*, |
| 4254 | # except with old shells: |
| 4255 | host_os=$* |
| 4256 | IFS=$ac_save_IFS |
| 4257 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4258 | |
| 4259 | |
| 4260 | # Backslashify metacharacters that are still active within |
| 4261 | # double-quoted strings. |
| 4262 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4263 | |
| 4264 | # Same as above, but do not quote variable references. |
| 4265 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4266 | |
| 4267 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4268 | # double_quote_subst'ed string. |
| 4269 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4270 | |
| 4271 | # Sed substitution to delay expansion of an escaped single quote. |
| 4272 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4273 | |
| 4274 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4275 | no_glob_subst='s/\*/\\\*/g' |
| 4276 | |
| 4277 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4278 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4279 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4280 | |
| 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4282 | $as_echo_n "checking how to print strings... " >&6; } |
| 4283 | # Test print first, because it will be a builtin if present. |
| 4284 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4285 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4286 | ECHO='print -r --' |
| 4287 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4288 | ECHO='printf %s\n' |
| 4289 | else |
| 4290 | # Use this function as a fallback that always works. |
| 4291 | func_fallback_echo () |
| 4292 | { |
| 4293 | eval 'cat <<_LTECHO_EOF |
| 4294 | $1 |
| 4295 | _LTECHO_EOF' |
| 4296 | } |
| 4297 | ECHO='func_fallback_echo' |
| 4298 | fi |
| 4299 | |
| 4300 | # func_echo_all arg... |
| 4301 | # Invoke $ECHO with all args, space-separated. |
| 4302 | func_echo_all () |
| 4303 | { |
| 4304 | $ECHO "" |
| 4305 | } |
| 4306 | |
| 4307 | case "$ECHO" in |
| 4308 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4309 | $as_echo "printf" >&6; } ;; |
| 4310 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4311 | $as_echo "print -r" >&6; } ;; |
| 4312 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4313 | $as_echo "cat" >&6; } ;; |
| 4314 | esac |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4330 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4331 | if ${ac_cv_path_SED+:} false; then : |
| 4332 | $as_echo_n "(cached) " >&6 |
| 4333 | else |
| 4334 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4335 | for ac_i in 1 2 3 4 5 6 7; do |
| 4336 | ac_script="$ac_script$as_nl$ac_script" |
| 4337 | done |
| 4338 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4339 | { ac_script=; unset ac_script;} |
| 4340 | if test -z "$SED"; then |
| 4341 | ac_path_SED_found=false |
| 4342 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4344 | for as_dir in $PATH |
| 4345 | do |
| 4346 | IFS=$as_save_IFS |
| 4347 | test -z "$as_dir" && as_dir=. |
| 4348 | for ac_prog in sed gsed; do |
| 4349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4350 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4351 | as_fn_executable_p "$ac_path_SED" || continue |
| 4352 | # Check for GNU ac_path_SED and select it if it is found. |
| 4353 | # Check for GNU $ac_path_SED |
| 4354 | case `"$ac_path_SED" --version 2>&1` in |
| 4355 | *GNU*) |
| 4356 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4357 | *) |
| 4358 | ac_count=0 |
| 4359 | $as_echo_n 0123456789 >"conftest.in" |
| 4360 | while : |
| 4361 | do |
| 4362 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4363 | mv "conftest.tmp" "conftest.in" |
| 4364 | cp "conftest.in" "conftest.nl" |
| 4365 | $as_echo '' >> "conftest.nl" |
| 4366 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4367 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4368 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4369 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4370 | # Best one so far, save it but keep looking for a better one |
| 4371 | ac_cv_path_SED="$ac_path_SED" |
| 4372 | ac_path_SED_max=$ac_count |
| 4373 | fi |
| 4374 | # 10*(2^10) chars as input seems more than enough |
| 4375 | test $ac_count -gt 10 && break |
| 4376 | done |
| 4377 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4378 | esac |
| 4379 | |
| 4380 | $ac_path_SED_found && break 3 |
| 4381 | done |
| 4382 | done |
| 4383 | done |
| 4384 | IFS=$as_save_IFS |
| 4385 | if test -z "$ac_cv_path_SED"; then |
| 4386 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4387 | fi |
| 4388 | else |
| 4389 | ac_cv_path_SED=$SED |
| 4390 | fi |
| 4391 | |
| 4392 | fi |
| 4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4394 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4395 | SED="$ac_cv_path_SED" |
| 4396 | rm -f conftest.sed |
| 4397 | |
| 4398 | test -z "$SED" && SED=sed |
| 4399 | Xsed="$SED -e 1s/^X//" |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | |
| 4409 | |
| 4410 | |
| 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4412 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4413 | if ${ac_cv_path_GREP+:} false; then : |
| 4414 | $as_echo_n "(cached) " >&6 |
| 4415 | else |
| 4416 | if test -z "$GREP"; then |
| 4417 | ac_path_GREP_found=false |
| 4418 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4420 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4421 | do |
| 4422 | IFS=$as_save_IFS |
| 4423 | test -z "$as_dir" && as_dir=. |
| 4424 | for ac_prog in grep ggrep; do |
| 4425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4426 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4427 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4428 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4429 | # Check for GNU $ac_path_GREP |
| 4430 | case `"$ac_path_GREP" --version 2>&1` in |
| 4431 | *GNU*) |
| 4432 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4433 | *) |
| 4434 | ac_count=0 |
| 4435 | $as_echo_n 0123456789 >"conftest.in" |
| 4436 | while : |
| 4437 | do |
| 4438 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4439 | mv "conftest.tmp" "conftest.in" |
| 4440 | cp "conftest.in" "conftest.nl" |
| 4441 | $as_echo 'GREP' >> "conftest.nl" |
| 4442 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4443 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4444 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4445 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4446 | # Best one so far, save it but keep looking for a better one |
| 4447 | ac_cv_path_GREP="$ac_path_GREP" |
| 4448 | ac_path_GREP_max=$ac_count |
| 4449 | fi |
| 4450 | # 10*(2^10) chars as input seems more than enough |
| 4451 | test $ac_count -gt 10 && break |
| 4452 | done |
| 4453 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4454 | esac |
| 4455 | |
| 4456 | $ac_path_GREP_found && break 3 |
| 4457 | done |
| 4458 | done |
| 4459 | done |
| 4460 | IFS=$as_save_IFS |
| 4461 | if test -z "$ac_cv_path_GREP"; then |
| 4462 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4463 | fi |
| 4464 | else |
| 4465 | ac_cv_path_GREP=$GREP |
| 4466 | fi |
| 4467 | |
| 4468 | fi |
| 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4470 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4471 | GREP="$ac_cv_path_GREP" |
| 4472 | |
| 4473 | |
| 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4475 | $as_echo_n "checking for egrep... " >&6; } |
| 4476 | if ${ac_cv_path_EGREP+:} false; then : |
| 4477 | $as_echo_n "(cached) " >&6 |
| 4478 | else |
| 4479 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4480 | then ac_cv_path_EGREP="$GREP -E" |
| 4481 | else |
| 4482 | if test -z "$EGREP"; then |
| 4483 | ac_path_EGREP_found=false |
| 4484 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4486 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4487 | do |
| 4488 | IFS=$as_save_IFS |
| 4489 | test -z "$as_dir" && as_dir=. |
| 4490 | for ac_prog in egrep; do |
| 4491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4492 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4493 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4494 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4495 | # Check for GNU $ac_path_EGREP |
| 4496 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4497 | *GNU*) |
| 4498 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4499 | *) |
| 4500 | ac_count=0 |
| 4501 | $as_echo_n 0123456789 >"conftest.in" |
| 4502 | while : |
| 4503 | do |
| 4504 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4505 | mv "conftest.tmp" "conftest.in" |
| 4506 | cp "conftest.in" "conftest.nl" |
| 4507 | $as_echo 'EGREP' >> "conftest.nl" |
| 4508 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4509 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4510 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4511 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4512 | # Best one so far, save it but keep looking for a better one |
| 4513 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4514 | ac_path_EGREP_max=$ac_count |
| 4515 | fi |
| 4516 | # 10*(2^10) chars as input seems more than enough |
| 4517 | test $ac_count -gt 10 && break |
| 4518 | done |
| 4519 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4520 | esac |
| 4521 | |
| 4522 | $ac_path_EGREP_found && break 3 |
| 4523 | done |
| 4524 | done |
| 4525 | done |
| 4526 | IFS=$as_save_IFS |
| 4527 | if test -z "$ac_cv_path_EGREP"; then |
| 4528 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4529 | fi |
| 4530 | else |
| 4531 | ac_cv_path_EGREP=$EGREP |
| 4532 | fi |
| 4533 | |
| 4534 | fi |
| 4535 | fi |
| 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4537 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4538 | EGREP="$ac_cv_path_EGREP" |
| 4539 | |
| 4540 | |
| 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4542 | $as_echo_n "checking for fgrep... " >&6; } |
| 4543 | if ${ac_cv_path_FGREP+:} false; then : |
| 4544 | $as_echo_n "(cached) " >&6 |
| 4545 | else |
| 4546 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4547 | then ac_cv_path_FGREP="$GREP -F" |
| 4548 | else |
| 4549 | if test -z "$FGREP"; then |
| 4550 | ac_path_FGREP_found=false |
| 4551 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4553 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4554 | do |
| 4555 | IFS=$as_save_IFS |
| 4556 | test -z "$as_dir" && as_dir=. |
| 4557 | for ac_prog in fgrep; do |
| 4558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4559 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4560 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4561 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4562 | # Check for GNU $ac_path_FGREP |
| 4563 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4564 | *GNU*) |
| 4565 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4566 | *) |
| 4567 | ac_count=0 |
| 4568 | $as_echo_n 0123456789 >"conftest.in" |
| 4569 | while : |
| 4570 | do |
| 4571 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4572 | mv "conftest.tmp" "conftest.in" |
| 4573 | cp "conftest.in" "conftest.nl" |
| 4574 | $as_echo 'FGREP' >> "conftest.nl" |
| 4575 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4576 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4577 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4578 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4579 | # Best one so far, save it but keep looking for a better one |
| 4580 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4581 | ac_path_FGREP_max=$ac_count |
| 4582 | fi |
| 4583 | # 10*(2^10) chars as input seems more than enough |
| 4584 | test $ac_count -gt 10 && break |
| 4585 | done |
| 4586 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4587 | esac |
| 4588 | |
| 4589 | $ac_path_FGREP_found && break 3 |
| 4590 | done |
| 4591 | done |
| 4592 | done |
| 4593 | IFS=$as_save_IFS |
| 4594 | if test -z "$ac_cv_path_FGREP"; then |
| 4595 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4596 | fi |
| 4597 | else |
| 4598 | ac_cv_path_FGREP=$FGREP |
| 4599 | fi |
| 4600 | |
| 4601 | fi |
| 4602 | fi |
| 4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4604 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4605 | FGREP="$ac_cv_path_FGREP" |
| 4606 | |
| 4607 | |
| 4608 | test -z "$GREP" && GREP=grep |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | |
| 4621 | |
| 4622 | |
| 4623 | |
| 4624 | |
| 4625 | |
| 4626 | |
| 4627 | |
| 4628 | # Check whether --with-gnu-ld was given. |
| 4629 | if test "${with_gnu_ld+set}" = set; then : |
| 4630 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4631 | else |
| 4632 | with_gnu_ld=no |
| 4633 | fi |
| 4634 | |
| 4635 | ac_prog=ld |
| 4636 | if test "$GCC" = yes; then |
| 4637 | # Check if gcc -print-prog-name=ld gives a path. |
| 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4639 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 4640 | case $host in |
| 4641 | *-*-mingw*) |
| 4642 | # gcc leaves a trailing carriage return which upsets mingw |
| 4643 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4644 | *) |
| 4645 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4646 | esac |
| 4647 | case $ac_prog in |
| 4648 | # Accept absolute paths. |
| 4649 | [\\/]* | ?:[\\/]*) |
| 4650 | re_direlt='/[^/][^/]*/\.\./' |
| 4651 | # Canonicalize the pathname of ld |
| 4652 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4653 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4654 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4655 | done |
| 4656 | test -z "$LD" && LD="$ac_prog" |
| 4657 | ;; |
| 4658 | "") |
| 4659 | # If it fails, then pretend we aren't using GCC. |
| 4660 | ac_prog=ld |
| 4661 | ;; |
| 4662 | *) |
| 4663 | # If it is relative, then search for the first ld in PATH. |
| 4664 | with_gnu_ld=unknown |
| 4665 | ;; |
| 4666 | esac |
| 4667 | elif test "$with_gnu_ld" = yes; then |
| 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4669 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4670 | else |
| 4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4672 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 4673 | fi |
| 4674 | if ${lt_cv_path_LD+:} false; then : |
| 4675 | $as_echo_n "(cached) " >&6 |
| 4676 | else |
| 4677 | if test -z "$LD"; then |
| 4678 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4679 | for ac_dir in $PATH; do |
| 4680 | IFS="$lt_save_ifs" |
| 4681 | test -z "$ac_dir" && ac_dir=. |
| 4682 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4683 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4684 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4685 | # but apparently some variants of GNU ld only accept -v. |
| 4686 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4687 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4688 | *GNU* | *'with BFD'*) |
| 4689 | test "$with_gnu_ld" != no && break |
| 4690 | ;; |
| 4691 | *) |
| 4692 | test "$with_gnu_ld" != yes && break |
| 4693 | ;; |
| 4694 | esac |
| 4695 | fi |
| 4696 | done |
| 4697 | IFS="$lt_save_ifs" |
| 4698 | else |
| 4699 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4700 | fi |
| 4701 | fi |
| 4702 | |
| 4703 | LD="$lt_cv_path_LD" |
| 4704 | if test -n "$LD"; then |
| 4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4706 | $as_echo "$LD" >&6; } |
| 4707 | else |
| 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4709 | $as_echo "no" >&6; } |
| 4710 | fi |
| 4711 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4713 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4714 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 4715 | $as_echo_n "(cached) " >&6 |
| 4716 | else |
| 4717 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4718 | case `$LD -v 2>&1 </dev/null` in |
| 4719 | *GNU* | *'with BFD'*) |
| 4720 | lt_cv_prog_gnu_ld=yes |
| 4721 | ;; |
| 4722 | *) |
| 4723 | lt_cv_prog_gnu_ld=no |
| 4724 | ;; |
| 4725 | esac |
| 4726 | fi |
| 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4728 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 4729 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4730 | |
| 4731 | |
| 4732 | |
| 4733 | |
| 4734 | |
| 4735 | |
| 4736 | |
| 4737 | |
| 4738 | |
| 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4740 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4741 | if ${lt_cv_path_NM+:} false; then : |
| 4742 | $as_echo_n "(cached) " >&6 |
| 4743 | else |
| 4744 | if test -n "$NM"; then |
| 4745 | # Let the user override the test. |
| 4746 | lt_cv_path_NM="$NM" |
| 4747 | else |
| 4748 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4749 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4750 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4751 | fi |
| 4752 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4753 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4754 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4755 | IFS="$lt_save_ifs" |
| 4756 | test -z "$ac_dir" && ac_dir=. |
| 4757 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4758 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4759 | # Check to see if the nm accepts a BSD-compat flag. |
| 4760 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4761 | # nm: unknown option "B" ignored |
| 4762 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4763 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4764 | */dev/null* | *'Invalid file or object type'*) |
| 4765 | lt_cv_path_NM="$tmp_nm -B" |
| 4766 | break |
| 4767 | ;; |
| 4768 | *) |
| 4769 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4770 | */dev/null*) |
| 4771 | lt_cv_path_NM="$tmp_nm -p" |
| 4772 | break |
| 4773 | ;; |
| 4774 | *) |
| 4775 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4776 | continue # so that we can try to find one that supports BSD flags |
| 4777 | ;; |
| 4778 | esac |
| 4779 | ;; |
| 4780 | esac |
| 4781 | fi |
| 4782 | done |
| 4783 | IFS="$lt_save_ifs" |
| 4784 | done |
| 4785 | : ${lt_cv_path_NM=no} |
| 4786 | fi |
| 4787 | fi |
| 4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 4789 | $as_echo "$lt_cv_path_NM" >&6; } |
| 4790 | if test "$lt_cv_path_NM" != "no"; then |
| 4791 | NM="$lt_cv_path_NM" |
| 4792 | else |
| 4793 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4794 | if test -n "$DUMPBIN"; then : |
| 4795 | # Let the user override the test. |
| 4796 | else |
| 4797 | if test -n "$ac_tool_prefix"; then |
| 4798 | for ac_prog in dumpbin "link -dump" |
| 4799 | do |
| 4800 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4801 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4803 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4804 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 4805 | $as_echo_n "(cached) " >&6 |
| 4806 | else |
| 4807 | if test -n "$DUMPBIN"; then |
| 4808 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4809 | else |
| 4810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4811 | for as_dir in $PATH |
| 4812 | do |
| 4813 | IFS=$as_save_IFS |
| 4814 | test -z "$as_dir" && as_dir=. |
| 4815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4817 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4819 | break 2 |
| 4820 | fi |
| 4821 | done |
| 4822 | done |
| 4823 | IFS=$as_save_IFS |
| 4824 | |
| 4825 | fi |
| 4826 | fi |
| 4827 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4828 | if test -n "$DUMPBIN"; then |
| 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 4830 | $as_echo "$DUMPBIN" >&6; } |
| 4831 | else |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4833 | $as_echo "no" >&6; } |
| 4834 | fi |
| 4835 | |
| 4836 | |
| 4837 | test -n "$DUMPBIN" && break |
| 4838 | done |
| 4839 | fi |
| 4840 | if test -z "$DUMPBIN"; then |
| 4841 | ac_ct_DUMPBIN=$DUMPBIN |
| 4842 | for ac_prog in dumpbin "link -dump" |
| 4843 | do |
| 4844 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4845 | set dummy $ac_prog; ac_word=$2 |
| 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4847 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4848 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 4849 | $as_echo_n "(cached) " >&6 |
| 4850 | else |
| 4851 | if test -n "$ac_ct_DUMPBIN"; then |
| 4852 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4853 | else |
| 4854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4855 | for as_dir in $PATH |
| 4856 | do |
| 4857 | IFS=$as_save_IFS |
| 4858 | test -z "$as_dir" && as_dir=. |
| 4859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4861 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4863 | break 2 |
| 4864 | fi |
| 4865 | done |
| 4866 | done |
| 4867 | IFS=$as_save_IFS |
| 4868 | |
| 4869 | fi |
| 4870 | fi |
| 4871 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4872 | if test -n "$ac_ct_DUMPBIN"; then |
| 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 4874 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 4875 | else |
| 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4877 | $as_echo "no" >&6; } |
| 4878 | fi |
| 4879 | |
| 4880 | |
| 4881 | test -n "$ac_ct_DUMPBIN" && break |
| 4882 | done |
| 4883 | |
| 4884 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4885 | DUMPBIN=":" |
| 4886 | else |
| 4887 | case $cross_compiling:$ac_tool_warned in |
| 4888 | yes:) |
| 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4891 | ac_tool_warned=yes ;; |
| 4892 | esac |
| 4893 | DUMPBIN=$ac_ct_DUMPBIN |
| 4894 | fi |
| 4895 | fi |
| 4896 | |
| 4897 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 4898 | *COFF*) |
| 4899 | DUMPBIN="$DUMPBIN -symbols" |
| 4900 | ;; |
| 4901 | *) |
| 4902 | DUMPBIN=: |
| 4903 | ;; |
| 4904 | esac |
| 4905 | fi |
| 4906 | |
| 4907 | if test "$DUMPBIN" != ":"; then |
| 4908 | NM="$DUMPBIN" |
| 4909 | fi |
| 4910 | fi |
| 4911 | test -z "$NM" && NM=nm |
| 4912 | |
| 4913 | |
| 4914 | |
| 4915 | |
| 4916 | |
| 4917 | |
| 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 4919 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 4920 | if ${lt_cv_nm_interface+:} false; then : |
| 4921 | $as_echo_n "(cached) " >&6 |
| 4922 | else |
| 4923 | lt_cv_nm_interface="BSD nm" |
| 4924 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4925 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 4926 | (eval "$ac_compile" 2>conftest.err) |
| 4927 | cat conftest.err >&5 |
| 4928 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 4929 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4930 | cat conftest.err >&5 |
| 4931 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 4932 | cat conftest.out >&5 |
| 4933 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4934 | lt_cv_nm_interface="MS dumpbin" |
| 4935 | fi |
| 4936 | rm -f conftest* |
| 4937 | fi |
| 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 4939 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 4940 | |
| 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 4942 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 4943 | LN_S=$as_ln_s |
| 4944 | if test "$LN_S" = "ln -s"; then |
| 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4946 | $as_echo "yes" >&6; } |
| 4947 | else |
| 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 4949 | $as_echo "no, using $LN_S" >&6; } |
| 4950 | fi |
| 4951 | |
| 4952 | # find the maximum length of command line arguments |
| 4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 4954 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 4955 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 4956 | $as_echo_n "(cached) " >&6 |
| 4957 | else |
| 4958 | i=0 |
| 4959 | teststring="ABCD" |
| 4960 | |
| 4961 | case $build_os in |
| 4962 | msdosdjgpp*) |
| 4963 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4964 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4965 | # during glob expansion). Even if it were fixed, the result of this |
| 4966 | # check would be larger than it should be. |
| 4967 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4968 | ;; |
| 4969 | |
| 4970 | gnu*) |
| 4971 | # Under GNU Hurd, this test is not required because there is |
| 4972 | # no limit to the length of command line arguments. |
| 4973 | # Libtool will interpret -1 as no limit whatsoever |
| 4974 | lt_cv_sys_max_cmd_len=-1; |
| 4975 | ;; |
| 4976 | |
| 4977 | cygwin* | mingw* | cegcc*) |
| 4978 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4979 | # about 5 minutes as the teststring grows exponentially. |
| 4980 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4981 | # you end up with a "frozen" computer, even though with patience |
| 4982 | # the test eventually succeeds (with a max line length of 256k). |
| 4983 | # Instead, let's just punt: use the minimum linelength reported by |
| 4984 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4985 | lt_cv_sys_max_cmd_len=8192; |
| 4986 | ;; |
| 4987 | |
| 4988 | mint*) |
| 4989 | # On MiNT this can take a long time and run out of memory. |
| 4990 | lt_cv_sys_max_cmd_len=8192; |
| 4991 | ;; |
| 4992 | |
| 4993 | amigaos*) |
| 4994 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4995 | # So we just punt and use a minimum line length of 8192. |
| 4996 | lt_cv_sys_max_cmd_len=8192; |
| 4997 | ;; |
| 4998 | |
| 4999 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5000 | # This has been around since 386BSD, at least. Likely further. |
| 5001 | if test -x /sbin/sysctl; then |
| 5002 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5003 | elif test -x /usr/sbin/sysctl; then |
| 5004 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5005 | else |
| 5006 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5007 | fi |
| 5008 | # And add a safety zone |
| 5009 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5010 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5011 | ;; |
| 5012 | |
| 5013 | interix*) |
| 5014 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5015 | lt_cv_sys_max_cmd_len=196608 |
| 5016 | ;; |
| 5017 | |
| 5018 | os2*) |
| 5019 | # The test takes a long time on OS/2. |
| 5020 | lt_cv_sys_max_cmd_len=8192 |
| 5021 | ;; |
| 5022 | |
| 5023 | osf*) |
| 5024 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5025 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5026 | # nice to cause kernel panics so lets avoid the loop below. |
| 5027 | # First set a reasonable default. |
| 5028 | lt_cv_sys_max_cmd_len=16384 |
| 5029 | # |
| 5030 | if test -x /sbin/sysconfig; then |
| 5031 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5032 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5033 | esac |
| 5034 | fi |
| 5035 | ;; |
| 5036 | sco3.2v5*) |
| 5037 | lt_cv_sys_max_cmd_len=102400 |
| 5038 | ;; |
| 5039 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5040 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5041 | if test -n "$kargmax"; then |
| 5042 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5043 | else |
| 5044 | lt_cv_sys_max_cmd_len=32768 |
| 5045 | fi |
| 5046 | ;; |
| 5047 | *) |
| 5048 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5049 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5050 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5051 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5052 | else |
| 5053 | # Make teststring a little bigger before we do anything with it. |
| 5054 | # a 1K string should be a reasonable start. |
| 5055 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5056 | teststring=$teststring$teststring |
| 5057 | done |
| 5058 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5059 | # If test is not a shell built-in, we'll probably end up computing a |
| 5060 | # maximum length that is only half of the actual maximum length, but |
| 5061 | # we can't tell. |
| 5062 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5063 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5064 | test $i != 17 # 1/2 MB should be enough |
| 5065 | do |
| 5066 | i=`expr $i + 1` |
| 5067 | teststring=$teststring$teststring |
| 5068 | done |
| 5069 | # Only check the string length outside the loop. |
| 5070 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5071 | teststring= |
| 5072 | # Add a significant safety factor because C++ compilers can tack on |
| 5073 | # massive amounts of additional arguments before passing them to the |
| 5074 | # linker. It appears as though 1/2 is a usable value. |
| 5075 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5076 | fi |
| 5077 | ;; |
| 5078 | esac |
| 5079 | |
| 5080 | fi |
| 5081 | |
| 5082 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5084 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5085 | else |
| 5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5087 | $as_echo "none" >&6; } |
| 5088 | fi |
| 5089 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5090 | |
| 5091 | |
| 5092 | |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | : ${CP="cp -f"} |
| 5097 | : ${MV="mv -f"} |
| 5098 | : ${RM="rm -f"} |
| 5099 | |
| 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5101 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5102 | # Try some XSI features |
| 5103 | xsi_shell=no |
| 5104 | ( _lt_dummy="a/b/c" |
| 5105 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5106 | = c,a/b,b/c, \ |
| 5107 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5108 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5109 | && xsi_shell=yes |
| 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5111 | $as_echo "$xsi_shell" >&6; } |
| 5112 | |
| 5113 | |
| 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5115 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5116 | lt_shell_append=no |
| 5117 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5118 | >/dev/null 2>&1 \ |
| 5119 | && lt_shell_append=yes |
| 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5121 | $as_echo "$lt_shell_append" >&6; } |
| 5122 | |
| 5123 | |
| 5124 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5125 | lt_unset=unset |
| 5126 | else |
| 5127 | lt_unset=false |
| 5128 | fi |
| 5129 | |
| 5130 | |
| 5131 | |
| 5132 | |
| 5133 | |
| 5134 | # test EBCDIC or ASCII |
| 5135 | case `echo X|tr X '\101'` in |
| 5136 | A) # ASCII based system |
| 5137 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5138 | lt_SP2NL='tr \040 \012' |
| 5139 | lt_NL2SP='tr \015\012 \040\040' |
| 5140 | ;; |
| 5141 | *) # EBCDIC based system |
| 5142 | lt_SP2NL='tr \100 \n' |
| 5143 | lt_NL2SP='tr \r\n \100\100' |
| 5144 | ;; |
| 5145 | esac |
| 5146 | |
| 5147 | |
| 5148 | |
| 5149 | |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | |
| 5154 | |
| 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5156 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5157 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5158 | $as_echo_n "(cached) " >&6 |
| 5159 | else |
| 5160 | case $host in |
| 5161 | *-*-mingw* ) |
| 5162 | case $build in |
| 5163 | *-*-mingw* ) # actually msys |
| 5164 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5165 | ;; |
| 5166 | *-*-cygwin* ) |
| 5167 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5168 | ;; |
| 5169 | * ) # otherwise, assume *nix |
| 5170 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5171 | ;; |
| 5172 | esac |
| 5173 | ;; |
| 5174 | *-*-cygwin* ) |
| 5175 | case $build in |
| 5176 | *-*-mingw* ) # actually msys |
| 5177 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5178 | ;; |
| 5179 | *-*-cygwin* ) |
| 5180 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5181 | ;; |
| 5182 | * ) # otherwise, assume *nix |
| 5183 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5184 | ;; |
| 5185 | esac |
| 5186 | ;; |
| 5187 | * ) # unhandled hosts (and "normal" native builds) |
| 5188 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5189 | ;; |
| 5190 | esac |
| 5191 | |
| 5192 | fi |
| 5193 | |
| 5194 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5196 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5197 | |
| 5198 | |
| 5199 | |
| 5200 | |
| 5201 | |
| 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5203 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5204 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5205 | $as_echo_n "(cached) " >&6 |
| 5206 | else |
| 5207 | #assume ordinary cross tools, or native build. |
| 5208 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5209 | case $host in |
| 5210 | *-*-mingw* ) |
| 5211 | case $build in |
| 5212 | *-*-mingw* ) # actually msys |
| 5213 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5214 | ;; |
| 5215 | esac |
| 5216 | ;; |
| 5217 | esac |
| 5218 | |
| 5219 | fi |
| 5220 | |
| 5221 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5223 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5230 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5231 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5232 | $as_echo_n "(cached) " >&6 |
| 5233 | else |
| 5234 | lt_cv_ld_reload_flag='-r' |
| 5235 | fi |
| 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5237 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5238 | reload_flag=$lt_cv_ld_reload_flag |
| 5239 | case $reload_flag in |
| 5240 | "" | " "*) ;; |
| 5241 | *) reload_flag=" $reload_flag" ;; |
| 5242 | esac |
| 5243 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5244 | case $host_os in |
| 5245 | cygwin* | mingw* | pw32* | cegcc*) |
| 5246 | if test "$GCC" != yes; then |
| 5247 | reload_cmds=false |
| 5248 | fi |
| 5249 | ;; |
| 5250 | darwin*) |
| 5251 | if test "$GCC" = yes; then |
| 5252 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5253 | else |
| 5254 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5255 | fi |
| 5256 | ;; |
| 5257 | esac |
| 5258 | |
| 5259 | |
| 5260 | |
| 5261 | |
| 5262 | |
| 5263 | |
| 5264 | |
| 5265 | |
| 5266 | |
| 5267 | if test -n "$ac_tool_prefix"; then |
| 5268 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5269 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5271 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5272 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5273 | $as_echo_n "(cached) " >&6 |
| 5274 | else |
| 5275 | if test -n "$OBJDUMP"; then |
| 5276 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5277 | else |
| 5278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5279 | for as_dir in $PATH |
| 5280 | do |
| 5281 | IFS=$as_save_IFS |
| 5282 | test -z "$as_dir" && as_dir=. |
| 5283 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5285 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5287 | break 2 |
| 5288 | fi |
| 5289 | done |
| 5290 | done |
| 5291 | IFS=$as_save_IFS |
| 5292 | |
| 5293 | fi |
| 5294 | fi |
| 5295 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5296 | if test -n "$OBJDUMP"; then |
| 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5298 | $as_echo "$OBJDUMP" >&6; } |
| 5299 | else |
| 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5301 | $as_echo "no" >&6; } |
| 5302 | fi |
| 5303 | |
| 5304 | |
| 5305 | fi |
| 5306 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5307 | ac_ct_OBJDUMP=$OBJDUMP |
| 5308 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5309 | set dummy objdump; ac_word=$2 |
| 5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5311 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5312 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5313 | $as_echo_n "(cached) " >&6 |
| 5314 | else |
| 5315 | if test -n "$ac_ct_OBJDUMP"; then |
| 5316 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5317 | else |
| 5318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5319 | for as_dir in $PATH |
| 5320 | do |
| 5321 | IFS=$as_save_IFS |
| 5322 | test -z "$as_dir" && as_dir=. |
| 5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5325 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5327 | break 2 |
| 5328 | fi |
| 5329 | done |
| 5330 | done |
| 5331 | IFS=$as_save_IFS |
| 5332 | |
| 5333 | fi |
| 5334 | fi |
| 5335 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5336 | if test -n "$ac_ct_OBJDUMP"; then |
| 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5338 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5339 | else |
| 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5341 | $as_echo "no" >&6; } |
| 5342 | fi |
| 5343 | |
| 5344 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5345 | OBJDUMP="false" |
| 5346 | else |
| 5347 | case $cross_compiling:$ac_tool_warned in |
| 5348 | yes:) |
| 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5351 | ac_tool_warned=yes ;; |
| 5352 | esac |
| 5353 | OBJDUMP=$ac_ct_OBJDUMP |
| 5354 | fi |
| 5355 | else |
| 5356 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5357 | fi |
| 5358 | |
| 5359 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5370 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5371 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5372 | $as_echo_n "(cached) " >&6 |
| 5373 | else |
| 5374 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5375 | lt_cv_file_magic_test_file= |
| 5376 | lt_cv_deplibs_check_method='unknown' |
| 5377 | # Need to set the preceding variable on all platforms that support |
| 5378 | # interlibrary dependencies. |
| 5379 | # 'none' -- dependencies not supported. |
| 5380 | # `unknown' -- same as none, but documents that we really don't know. |
| 5381 | # 'pass_all' -- all dependencies passed with no checks. |
| 5382 | # 'test_compile' -- check by making test program. |
| 5383 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5384 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5385 | # If you have `file' or equivalent on your system and you're not sure |
| 5386 | # whether `pass_all' will *always* work, you probably want this one. |
| 5387 | |
| 5388 | case $host_os in |
| 5389 | aix[4-9]*) |
| 5390 | lt_cv_deplibs_check_method=pass_all |
| 5391 | ;; |
| 5392 | |
| 5393 | beos*) |
| 5394 | lt_cv_deplibs_check_method=pass_all |
| 5395 | ;; |
| 5396 | |
| 5397 | bsdi[45]*) |
| 5398 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5399 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5400 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5401 | ;; |
| 5402 | |
| 5403 | cygwin*) |
| 5404 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5405 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5406 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5407 | ;; |
| 5408 | |
| 5409 | mingw* | pw32*) |
| 5410 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5411 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5412 | # unless we find 'file', for example because we are cross-compiling. |
| 5413 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5414 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5415 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5416 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5417 | else |
| 5418 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5419 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5420 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5421 | fi |
| 5422 | ;; |
| 5423 | |
| 5424 | cegcc*) |
| 5425 | # use the weaker test based on 'objdump'. See mingw*. |
| 5426 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5427 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5428 | ;; |
| 5429 | |
| 5430 | darwin* | rhapsody*) |
| 5431 | lt_cv_deplibs_check_method=pass_all |
| 5432 | ;; |
| 5433 | |
| 5434 | freebsd* | dragonfly*) |
| 5435 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5436 | case $host_cpu in |
| 5437 | i*86 ) |
| 5438 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5439 | # Let's accept both of them until this is cleared up. |
| 5440 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5441 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5442 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5443 | ;; |
| 5444 | esac |
| 5445 | else |
| 5446 | lt_cv_deplibs_check_method=pass_all |
| 5447 | fi |
| 5448 | ;; |
| 5449 | |
| 5450 | gnu*) |
| 5451 | lt_cv_deplibs_check_method=pass_all |
| 5452 | ;; |
| 5453 | |
| 5454 | haiku*) |
| 5455 | lt_cv_deplibs_check_method=pass_all |
| 5456 | ;; |
| 5457 | |
| 5458 | hpux10.20* | hpux11*) |
| 5459 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5460 | case $host_cpu in |
| 5461 | ia64*) |
| 5462 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5463 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5464 | ;; |
| 5465 | hppa*64*) |
| 5466 | 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]' |
| 5467 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5468 | ;; |
| 5469 | *) |
| 5470 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5471 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5472 | ;; |
| 5473 | esac |
| 5474 | ;; |
| 5475 | |
| 5476 | interix[3-9]*) |
| 5477 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5478 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5479 | ;; |
| 5480 | |
| 5481 | irix5* | irix6* | nonstopux*) |
| 5482 | case $LD in |
| 5483 | *-32|*"-32 ") libmagic=32-bit;; |
| 5484 | *-n32|*"-n32 ") libmagic=N32;; |
| 5485 | *-64|*"-64 ") libmagic=64-bit;; |
| 5486 | *) libmagic=never-match;; |
| 5487 | esac |
| 5488 | lt_cv_deplibs_check_method=pass_all |
| 5489 | ;; |
| 5490 | |
| 5491 | # This must be glibc/ELF. |
| 5492 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5493 | lt_cv_deplibs_check_method=pass_all |
| 5494 | ;; |
| 5495 | |
| 5496 | netbsd*) |
| 5497 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5498 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5499 | else |
| 5500 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5501 | fi |
| 5502 | ;; |
| 5503 | |
| 5504 | newos6*) |
| 5505 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5506 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5507 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5508 | ;; |
| 5509 | |
| 5510 | *nto* | *qnx*) |
| 5511 | lt_cv_deplibs_check_method=pass_all |
| 5512 | ;; |
| 5513 | |
| 5514 | openbsd*) |
| 5515 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5516 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5517 | else |
| 5518 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5519 | fi |
| 5520 | ;; |
| 5521 | |
| 5522 | osf3* | osf4* | osf5*) |
| 5523 | lt_cv_deplibs_check_method=pass_all |
| 5524 | ;; |
| 5525 | |
| 5526 | rdos*) |
| 5527 | lt_cv_deplibs_check_method=pass_all |
| 5528 | ;; |
| 5529 | |
| 5530 | solaris*) |
| 5531 | lt_cv_deplibs_check_method=pass_all |
| 5532 | ;; |
| 5533 | |
| 5534 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5535 | lt_cv_deplibs_check_method=pass_all |
| 5536 | ;; |
| 5537 | |
| 5538 | sysv4 | sysv4.3*) |
| 5539 | case $host_vendor in |
| 5540 | motorola) |
| 5541 | 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]' |
| 5542 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5543 | ;; |
| 5544 | ncr) |
| 5545 | lt_cv_deplibs_check_method=pass_all |
| 5546 | ;; |
| 5547 | sequent) |
| 5548 | lt_cv_file_magic_cmd='/bin/file' |
| 5549 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5550 | ;; |
| 5551 | sni) |
| 5552 | lt_cv_file_magic_cmd='/bin/file' |
| 5553 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5554 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5555 | ;; |
| 5556 | siemens) |
| 5557 | lt_cv_deplibs_check_method=pass_all |
| 5558 | ;; |
| 5559 | pc) |
| 5560 | lt_cv_deplibs_check_method=pass_all |
| 5561 | ;; |
| 5562 | esac |
| 5563 | ;; |
| 5564 | |
| 5565 | tpf*) |
| 5566 | lt_cv_deplibs_check_method=pass_all |
| 5567 | ;; |
| 5568 | esac |
| 5569 | |
| 5570 | fi |
| 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5572 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5573 | |
| 5574 | file_magic_glob= |
| 5575 | want_nocaseglob=no |
| 5576 | if test "$build" = "$host"; then |
| 5577 | case $host_os in |
| 5578 | mingw* | pw32*) |
| 5579 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5580 | want_nocaseglob=yes |
| 5581 | else |
| 5582 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5583 | fi |
| 5584 | ;; |
| 5585 | esac |
| 5586 | fi |
| 5587 | |
| 5588 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5589 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5590 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
| 5595 | |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | if test -n "$ac_tool_prefix"; then |
| 5614 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5615 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5617 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5618 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5619 | $as_echo_n "(cached) " >&6 |
| 5620 | else |
| 5621 | if test -n "$DLLTOOL"; then |
| 5622 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5623 | else |
| 5624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5625 | for as_dir in $PATH |
| 5626 | do |
| 5627 | IFS=$as_save_IFS |
| 5628 | test -z "$as_dir" && as_dir=. |
| 5629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5631 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5633 | break 2 |
| 5634 | fi |
| 5635 | done |
| 5636 | done |
| 5637 | IFS=$as_save_IFS |
| 5638 | |
| 5639 | fi |
| 5640 | fi |
| 5641 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5642 | if test -n "$DLLTOOL"; then |
| 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5644 | $as_echo "$DLLTOOL" >&6; } |
| 5645 | else |
| 5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5647 | $as_echo "no" >&6; } |
| 5648 | fi |
| 5649 | |
| 5650 | |
| 5651 | fi |
| 5652 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5653 | ac_ct_DLLTOOL=$DLLTOOL |
| 5654 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5655 | set dummy dlltool; ac_word=$2 |
| 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5657 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5658 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5659 | $as_echo_n "(cached) " >&6 |
| 5660 | else |
| 5661 | if test -n "$ac_ct_DLLTOOL"; then |
| 5662 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5663 | else |
| 5664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5665 | for as_dir in $PATH |
| 5666 | do |
| 5667 | IFS=$as_save_IFS |
| 5668 | test -z "$as_dir" && as_dir=. |
| 5669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5671 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5673 | break 2 |
| 5674 | fi |
| 5675 | done |
| 5676 | done |
| 5677 | IFS=$as_save_IFS |
| 5678 | |
| 5679 | fi |
| 5680 | fi |
| 5681 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5682 | if test -n "$ac_ct_DLLTOOL"; then |
| 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5684 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5685 | else |
| 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5687 | $as_echo "no" >&6; } |
| 5688 | fi |
| 5689 | |
| 5690 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5691 | DLLTOOL="false" |
| 5692 | else |
| 5693 | case $cross_compiling:$ac_tool_warned in |
| 5694 | yes:) |
| 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5697 | ac_tool_warned=yes ;; |
| 5698 | esac |
| 5699 | DLLTOOL=$ac_ct_DLLTOOL |
| 5700 | fi |
| 5701 | else |
| 5702 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5703 | fi |
| 5704 | |
| 5705 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5717 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5718 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5719 | $as_echo_n "(cached) " >&6 |
| 5720 | else |
| 5721 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5722 | |
| 5723 | case $host_os in |
| 5724 | cygwin* | mingw* | pw32* | cegcc*) |
| 5725 | # two different shell functions defined in ltmain.sh |
| 5726 | # decide which to use based on capabilities of $DLLTOOL |
| 5727 | case `$DLLTOOL --help 2>&1` in |
| 5728 | *--identify-strict*) |
| 5729 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5730 | ;; |
| 5731 | *) |
| 5732 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5733 | ;; |
| 5734 | esac |
| 5735 | ;; |
| 5736 | *) |
| 5737 | # fallback: assume linklib IS sharedlib |
| 5738 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 5739 | ;; |
| 5740 | esac |
| 5741 | |
| 5742 | fi |
| 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5744 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5745 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5746 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5747 | |
| 5748 | |
| 5749 | |
| 5750 | |
| 5751 | |
| 5752 | |
| 5753 | |
| 5754 | if test -n "$ac_tool_prefix"; then |
| 5755 | for ac_prog in ar |
| 5756 | do |
| 5757 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5758 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5760 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5761 | if ${ac_cv_prog_AR+:} false; then : |
| 5762 | $as_echo_n "(cached) " >&6 |
| 5763 | else |
| 5764 | if test -n "$AR"; then |
| 5765 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5766 | else |
| 5767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5768 | for as_dir in $PATH |
| 5769 | do |
| 5770 | IFS=$as_save_IFS |
| 5771 | test -z "$as_dir" && as_dir=. |
| 5772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5774 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5776 | break 2 |
| 5777 | fi |
| 5778 | done |
| 5779 | done |
| 5780 | IFS=$as_save_IFS |
| 5781 | |
| 5782 | fi |
| 5783 | fi |
| 5784 | AR=$ac_cv_prog_AR |
| 5785 | if test -n "$AR"; then |
| 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5787 | $as_echo "$AR" >&6; } |
| 5788 | else |
| 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5790 | $as_echo "no" >&6; } |
| 5791 | fi |
| 5792 | |
| 5793 | |
| 5794 | test -n "$AR" && break |
| 5795 | done |
| 5796 | fi |
| 5797 | if test -z "$AR"; then |
| 5798 | ac_ct_AR=$AR |
| 5799 | for ac_prog in ar |
| 5800 | do |
| 5801 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5802 | set dummy $ac_prog; ac_word=$2 |
| 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5804 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5805 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5806 | $as_echo_n "(cached) " >&6 |
| 5807 | else |
| 5808 | if test -n "$ac_ct_AR"; then |
| 5809 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5810 | else |
| 5811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5812 | for as_dir in $PATH |
| 5813 | do |
| 5814 | IFS=$as_save_IFS |
| 5815 | test -z "$as_dir" && as_dir=. |
| 5816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5818 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5820 | break 2 |
| 5821 | fi |
| 5822 | done |
| 5823 | done |
| 5824 | IFS=$as_save_IFS |
| 5825 | |
| 5826 | fi |
| 5827 | fi |
| 5828 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5829 | if test -n "$ac_ct_AR"; then |
| 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5831 | $as_echo "$ac_ct_AR" >&6; } |
| 5832 | else |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5834 | $as_echo "no" >&6; } |
| 5835 | fi |
| 5836 | |
| 5837 | |
| 5838 | test -n "$ac_ct_AR" && break |
| 5839 | done |
| 5840 | |
| 5841 | if test "x$ac_ct_AR" = x; then |
| 5842 | AR="false" |
| 5843 | else |
| 5844 | case $cross_compiling:$ac_tool_warned in |
| 5845 | yes:) |
| 5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5847 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5848 | ac_tool_warned=yes ;; |
| 5849 | esac |
| 5850 | AR=$ac_ct_AR |
| 5851 | fi |
| 5852 | fi |
| 5853 | |
| 5854 | : ${AR=ar} |
| 5855 | : ${AR_FLAGS=cru} |
| 5856 | |
| 5857 | |
| 5858 | |
| 5859 | |
| 5860 | |
| 5861 | |
| 5862 | |
| 5863 | |
| 5864 | |
| 5865 | |
| 5866 | |
| 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5868 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5869 | if ${lt_cv_ar_at_file+:} false; then : |
| 5870 | $as_echo_n "(cached) " >&6 |
| 5871 | else |
| 5872 | lt_cv_ar_at_file=no |
| 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5874 | /* end confdefs.h. */ |
| 5875 | |
| 5876 | int |
| 5877 | main () |
| 5878 | { |
| 5879 | |
| 5880 | ; |
| 5881 | return 0; |
| 5882 | } |
| 5883 | _ACEOF |
| 5884 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5885 | echo conftest.$ac_objext > conftest.lst |
| 5886 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5887 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5888 | (eval $lt_ar_try) 2>&5 |
| 5889 | ac_status=$? |
| 5890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5891 | test $ac_status = 0; } |
| 5892 | if test "$ac_status" -eq 0; then |
| 5893 | # Ensure the archiver fails upon bogus file names. |
| 5894 | rm -f conftest.$ac_objext libconftest.a |
| 5895 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5896 | (eval $lt_ar_try) 2>&5 |
| 5897 | ac_status=$? |
| 5898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5899 | test $ac_status = 0; } |
| 5900 | if test "$ac_status" -ne 0; then |
| 5901 | lt_cv_ar_at_file=@ |
| 5902 | fi |
| 5903 | fi |
| 5904 | rm -f conftest.* libconftest.a |
| 5905 | |
| 5906 | fi |
| 5907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5908 | |
| 5909 | fi |
| 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5911 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5912 | |
| 5913 | if test "x$lt_cv_ar_at_file" = xno; then |
| 5914 | archiver_list_spec= |
| 5915 | else |
| 5916 | archiver_list_spec=$lt_cv_ar_at_file |
| 5917 | fi |
| 5918 | |
| 5919 | |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | |
| 5924 | |
| 5925 | if test -n "$ac_tool_prefix"; then |
| 5926 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5927 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5929 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5930 | if ${ac_cv_prog_STRIP+:} false; then : |
| 5931 | $as_echo_n "(cached) " >&6 |
| 5932 | else |
| 5933 | if test -n "$STRIP"; then |
| 5934 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5935 | else |
| 5936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5937 | for as_dir in $PATH |
| 5938 | do |
| 5939 | IFS=$as_save_IFS |
| 5940 | test -z "$as_dir" && as_dir=. |
| 5941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5942 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5943 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5945 | break 2 |
| 5946 | fi |
| 5947 | done |
| 5948 | done |
| 5949 | IFS=$as_save_IFS |
| 5950 | |
| 5951 | fi |
| 5952 | fi |
| 5953 | STRIP=$ac_cv_prog_STRIP |
| 5954 | if test -n "$STRIP"; then |
| 5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5956 | $as_echo "$STRIP" >&6; } |
| 5957 | else |
| 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5959 | $as_echo "no" >&6; } |
| 5960 | fi |
| 5961 | |
| 5962 | |
| 5963 | fi |
| 5964 | if test -z "$ac_cv_prog_STRIP"; then |
| 5965 | ac_ct_STRIP=$STRIP |
| 5966 | # Extract the first word of "strip", so it can be a program name with args. |
| 5967 | set dummy strip; ac_word=$2 |
| 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5969 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5970 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 5971 | $as_echo_n "(cached) " >&6 |
| 5972 | else |
| 5973 | if test -n "$ac_ct_STRIP"; then |
| 5974 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5975 | else |
| 5976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5977 | for as_dir in $PATH |
| 5978 | do |
| 5979 | IFS=$as_save_IFS |
| 5980 | test -z "$as_dir" && as_dir=. |
| 5981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5983 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5985 | break 2 |
| 5986 | fi |
| 5987 | done |
| 5988 | done |
| 5989 | IFS=$as_save_IFS |
| 5990 | |
| 5991 | fi |
| 5992 | fi |
| 5993 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5994 | if test -n "$ac_ct_STRIP"; then |
| 5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5996 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5997 | else |
| 5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5999 | $as_echo "no" >&6; } |
| 6000 | fi |
| 6001 | |
| 6002 | if test "x$ac_ct_STRIP" = x; then |
| 6003 | STRIP=":" |
| 6004 | else |
| 6005 | case $cross_compiling:$ac_tool_warned in |
| 6006 | yes:) |
| 6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6009 | ac_tool_warned=yes ;; |
| 6010 | esac |
| 6011 | STRIP=$ac_ct_STRIP |
| 6012 | fi |
| 6013 | else |
| 6014 | STRIP="$ac_cv_prog_STRIP" |
| 6015 | fi |
| 6016 | |
| 6017 | test -z "$STRIP" && STRIP=: |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | |
| 6022 | |
| 6023 | |
| 6024 | if test -n "$ac_tool_prefix"; then |
| 6025 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6026 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6028 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6029 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6030 | $as_echo_n "(cached) " >&6 |
| 6031 | else |
| 6032 | if test -n "$RANLIB"; then |
| 6033 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6034 | else |
| 6035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6036 | for as_dir in $PATH |
| 6037 | do |
| 6038 | IFS=$as_save_IFS |
| 6039 | test -z "$as_dir" && as_dir=. |
| 6040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6042 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6044 | break 2 |
| 6045 | fi |
| 6046 | done |
| 6047 | done |
| 6048 | IFS=$as_save_IFS |
| 6049 | |
| 6050 | fi |
| 6051 | fi |
| 6052 | RANLIB=$ac_cv_prog_RANLIB |
| 6053 | if test -n "$RANLIB"; then |
| 6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6055 | $as_echo "$RANLIB" >&6; } |
| 6056 | else |
| 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6058 | $as_echo "no" >&6; } |
| 6059 | fi |
| 6060 | |
| 6061 | |
| 6062 | fi |
| 6063 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6064 | ac_ct_RANLIB=$RANLIB |
| 6065 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6066 | set dummy ranlib; ac_word=$2 |
| 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6068 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6069 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6070 | $as_echo_n "(cached) " >&6 |
| 6071 | else |
| 6072 | if test -n "$ac_ct_RANLIB"; then |
| 6073 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6074 | else |
| 6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6076 | for as_dir in $PATH |
| 6077 | do |
| 6078 | IFS=$as_save_IFS |
| 6079 | test -z "$as_dir" && as_dir=. |
| 6080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6082 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6084 | break 2 |
| 6085 | fi |
| 6086 | done |
| 6087 | done |
| 6088 | IFS=$as_save_IFS |
| 6089 | |
| 6090 | fi |
| 6091 | fi |
| 6092 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6093 | if test -n "$ac_ct_RANLIB"; then |
| 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6095 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6096 | else |
| 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6098 | $as_echo "no" >&6; } |
| 6099 | fi |
| 6100 | |
| 6101 | if test "x$ac_ct_RANLIB" = x; then |
| 6102 | RANLIB=":" |
| 6103 | else |
| 6104 | case $cross_compiling:$ac_tool_warned in |
| 6105 | yes:) |
| 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6107 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6108 | ac_tool_warned=yes ;; |
| 6109 | esac |
| 6110 | RANLIB=$ac_ct_RANLIB |
| 6111 | fi |
| 6112 | else |
| 6113 | RANLIB="$ac_cv_prog_RANLIB" |
| 6114 | fi |
| 6115 | |
| 6116 | test -z "$RANLIB" && RANLIB=: |
| 6117 | |
| 6118 | |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 | |
| 6123 | # Determine commands to create old-style static archives. |
| 6124 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6125 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6126 | old_postuninstall_cmds= |
| 6127 | |
| 6128 | if test -n "$RANLIB"; then |
| 6129 | case $host_os in |
| 6130 | openbsd*) |
| 6131 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6132 | ;; |
| 6133 | *) |
| 6134 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6135 | ;; |
| 6136 | esac |
| 6137 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6138 | fi |
| 6139 | |
| 6140 | case $host_os in |
| 6141 | darwin*) |
| 6142 | lock_old_archive_extraction=yes ;; |
| 6143 | *) |
| 6144 | lock_old_archive_extraction=no ;; |
| 6145 | esac |
| 6146 | |
| 6147 | |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | |
| 6152 | |
| 6153 | |
| 6154 | |
| 6155 | |
| 6156 | |
| 6157 | |
| 6158 | |
| 6159 | |
| 6160 | |
| 6161 | |
| 6162 | |
| 6163 | |
| 6164 | |
| 6165 | |
| 6166 | |
| 6167 | |
| 6168 | |
| 6169 | |
| 6170 | |
| 6171 | |
| 6172 | |
| 6173 | |
| 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | |
| 6179 | |
| 6180 | |
| 6181 | |
| 6182 | |
| 6183 | |
| 6184 | |
| 6185 | # If no C compiler was specified, use CC. |
| 6186 | LTCC=${LTCC-"$CC"} |
| 6187 | |
| 6188 | # If no C compiler flags were specified, use CFLAGS. |
| 6189 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6190 | |
| 6191 | # Allow CC to be a program name with arguments. |
| 6192 | compiler=$CC |
| 6193 | |
| 6194 | |
| 6195 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6197 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6198 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6199 | $as_echo_n "(cached) " >&6 |
| 6200 | else |
| 6201 | |
| 6202 | # These are sane defaults that work on at least a few old systems. |
| 6203 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6204 | |
| 6205 | # Character class describing NM global symbol codes. |
| 6206 | symcode='[BCDEGRST]' |
| 6207 | |
| 6208 | # Regexp to match symbols that can be accessed directly from C. |
| 6209 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6210 | |
| 6211 | # Define system-specific variables. |
| 6212 | case $host_os in |
| 6213 | aix*) |
| 6214 | symcode='[BCDT]' |
| 6215 | ;; |
| 6216 | cygwin* | mingw* | pw32* | cegcc*) |
| 6217 | symcode='[ABCDGISTW]' |
| 6218 | ;; |
| 6219 | hpux*) |
| 6220 | if test "$host_cpu" = ia64; then |
| 6221 | symcode='[ABCDEGRST]' |
| 6222 | fi |
| 6223 | ;; |
| 6224 | irix* | nonstopux*) |
| 6225 | symcode='[BCDEGRST]' |
| 6226 | ;; |
| 6227 | osf*) |
| 6228 | symcode='[BCDEGQRST]' |
| 6229 | ;; |
| 6230 | solaris*) |
| 6231 | symcode='[BDRT]' |
| 6232 | ;; |
| 6233 | sco3.2v5*) |
| 6234 | symcode='[DT]' |
| 6235 | ;; |
| 6236 | sysv4.2uw2*) |
| 6237 | symcode='[DT]' |
| 6238 | ;; |
| 6239 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6240 | symcode='[ABDT]' |
| 6241 | ;; |
| 6242 | sysv4) |
| 6243 | symcode='[DFNSTU]' |
| 6244 | ;; |
| 6245 | esac |
| 6246 | |
| 6247 | # If we're using GNU nm, then use its standard symbol codes. |
| 6248 | case `$NM -V 2>&1` in |
| 6249 | *GNU* | *'with BFD'*) |
| 6250 | symcode='[ABCDGIRSTW]' ;; |
| 6251 | esac |
| 6252 | |
| 6253 | # Transform an extracted symbol line into a proper C declaration. |
| 6254 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6255 | # so use this general approach. |
| 6256 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6257 | |
| 6258 | # Transform an extracted symbol line into symbol name and symbol address |
| 6259 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6260 | 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'" |
| 6261 | |
| 6262 | # Handle CRLF in mingw tool chain |
| 6263 | opt_cr= |
| 6264 | case $build_os in |
| 6265 | mingw*) |
| 6266 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6267 | ;; |
| 6268 | esac |
| 6269 | |
| 6270 | # Try without a prefix underscore, then with it. |
| 6271 | for ac_symprfx in "" "_"; do |
| 6272 | |
| 6273 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6274 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6275 | |
| 6276 | # Write the raw and C identifiers. |
| 6277 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6278 | # Fake it for dumpbin and say T for any non-static function |
| 6279 | # and D for any global variable. |
| 6280 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6281 | # which start with @ or ?. |
| 6282 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6283 | " {last_section=section; section=\$ 3};"\ |
| 6284 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6285 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6286 | " \$ 0!~/External *\|/{next};"\ |
| 6287 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6288 | " {if(hide[section]) next};"\ |
| 6289 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6290 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6291 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6292 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6293 | " ' prfx=^$ac_symprfx" |
| 6294 | else |
| 6295 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6296 | fi |
| 6297 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6298 | |
| 6299 | # Check to see that the pipe works correctly. |
| 6300 | pipe_works=no |
| 6301 | |
| 6302 | rm -f conftest* |
| 6303 | cat > conftest.$ac_ext <<_LT_EOF |
| 6304 | #ifdef __cplusplus |
| 6305 | extern "C" { |
| 6306 | #endif |
| 6307 | char nm_test_var; |
| 6308 | void nm_test_func(void); |
| 6309 | void nm_test_func(void){} |
| 6310 | #ifdef __cplusplus |
| 6311 | } |
| 6312 | #endif |
| 6313 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6314 | _LT_EOF |
| 6315 | |
| 6316 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6317 | (eval $ac_compile) 2>&5 |
| 6318 | ac_status=$? |
| 6319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6320 | test $ac_status = 0; }; then |
| 6321 | # Now try to grab the symbols. |
| 6322 | nlist=conftest.nm |
| 6323 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6324 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6325 | ac_status=$? |
| 6326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6327 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6328 | # Try sorting and uniquifying the output. |
| 6329 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6330 | mv -f "$nlist"T "$nlist" |
| 6331 | else |
| 6332 | rm -f "$nlist"T |
| 6333 | fi |
| 6334 | |
| 6335 | # Make sure that we snagged all the symbols we need. |
| 6336 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6337 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6338 | cat <<_LT_EOF > conftest.$ac_ext |
| 6339 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6340 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6341 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6342 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6343 | # define LT_DLSYM_CONST |
| 6344 | #elif defined(__osf__) |
| 6345 | /* This system does not cope well with relocations in const data. */ |
| 6346 | # define LT_DLSYM_CONST |
| 6347 | #else |
| 6348 | # define LT_DLSYM_CONST const |
| 6349 | #endif |
| 6350 | |
| 6351 | #ifdef __cplusplus |
| 6352 | extern "C" { |
| 6353 | #endif |
| 6354 | |
| 6355 | _LT_EOF |
| 6356 | # Now generate the symbol file. |
| 6357 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6358 | |
| 6359 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6360 | |
| 6361 | /* The mapping between symbol names and symbols. */ |
| 6362 | LT_DLSYM_CONST struct { |
| 6363 | const char *name; |
| 6364 | void *address; |
| 6365 | } |
| 6366 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6367 | { |
| 6368 | { "@PROGRAM@", (void *) 0 }, |
| 6369 | _LT_EOF |
| 6370 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6371 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6372 | {0, (void *) 0} |
| 6373 | }; |
| 6374 | |
| 6375 | /* This works around a problem in FreeBSD linker */ |
| 6376 | #ifdef FREEBSD_WORKAROUND |
| 6377 | static const void *lt_preloaded_setup() { |
| 6378 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6379 | } |
| 6380 | #endif |
| 6381 | |
| 6382 | #ifdef __cplusplus |
| 6383 | } |
| 6384 | #endif |
| 6385 | _LT_EOF |
| 6386 | # Now try linking the two files. |
| 6387 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6388 | lt_globsym_save_LIBS=$LIBS |
| 6389 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6390 | LIBS="conftstm.$ac_objext" |
| 6391 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6392 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6393 | (eval $ac_link) 2>&5 |
| 6394 | ac_status=$? |
| 6395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6396 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6397 | pipe_works=yes |
| 6398 | fi |
| 6399 | LIBS=$lt_globsym_save_LIBS |
| 6400 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6401 | else |
| 6402 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6403 | fi |
| 6404 | else |
| 6405 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6406 | fi |
| 6407 | else |
| 6408 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6409 | fi |
| 6410 | else |
| 6411 | echo "$progname: failed program was:" >&5 |
| 6412 | cat conftest.$ac_ext >&5 |
| 6413 | fi |
| 6414 | rm -rf conftest* conftst* |
| 6415 | |
| 6416 | # Do not use the global_symbol_pipe unless it works. |
| 6417 | if test "$pipe_works" = yes; then |
| 6418 | break |
| 6419 | else |
| 6420 | lt_cv_sys_global_symbol_pipe= |
| 6421 | fi |
| 6422 | done |
| 6423 | |
| 6424 | fi |
| 6425 | |
| 6426 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6427 | lt_cv_sys_global_symbol_to_cdecl= |
| 6428 | fi |
| 6429 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6431 | $as_echo "failed" >&6; } |
| 6432 | else |
| 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6434 | $as_echo "ok" >&6; } |
| 6435 | fi |
| 6436 | |
| 6437 | # Response file support. |
| 6438 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6439 | nm_file_list_spec='@' |
| 6440 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6441 | nm_file_list_spec='@' |
| 6442 | fi |
| 6443 | |
| 6444 | |
| 6445 | |
| 6446 | |
| 6447 | |
| 6448 | |
| 6449 | |
| 6450 | |
| 6451 | |
| 6452 | |
| 6453 | |
| 6454 | |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6471 | $as_echo_n "checking for sysroot... " >&6; } |
| 6472 | |
| 6473 | # Check whether --with-sysroot was given. |
| 6474 | if test "${with_sysroot+set}" = set; then : |
| 6475 | withval=$with_sysroot; |
| 6476 | else |
| 6477 | with_sysroot=no |
| 6478 | fi |
| 6479 | |
| 6480 | |
| 6481 | lt_sysroot= |
| 6482 | case ${with_sysroot} in #( |
| 6483 | yes) |
| 6484 | if test "$GCC" = yes; then |
| 6485 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6486 | fi |
| 6487 | ;; #( |
| 6488 | /*) |
| 6489 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6490 | ;; #( |
| 6491 | no|'') |
| 6492 | ;; #( |
| 6493 | *) |
| 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6495 | $as_echo "${with_sysroot}" >&6; } |
| 6496 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6497 | ;; |
| 6498 | esac |
| 6499 | |
| 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6501 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6502 | |
| 6503 | |
| 6504 | |
| 6505 | |
| 6506 | |
| 6507 | # Check whether --enable-libtool-lock was given. |
| 6508 | if test "${enable_libtool_lock+set}" = set; then : |
| 6509 | enableval=$enable_libtool_lock; |
| 6510 | fi |
| 6511 | |
| 6512 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6513 | |
| 6514 | # Some flags need to be propagated to the compiler or linker for good |
| 6515 | # libtool support. |
| 6516 | case $host in |
| 6517 | ia64-*-hpux*) |
| 6518 | # Find out which ABI we are using. |
| 6519 | echo 'int i;' > conftest.$ac_ext |
| 6520 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6521 | (eval $ac_compile) 2>&5 |
| 6522 | ac_status=$? |
| 6523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6524 | test $ac_status = 0; }; then |
| 6525 | case `/usr/bin/file conftest.$ac_objext` in |
| 6526 | *ELF-32*) |
| 6527 | HPUX_IA64_MODE="32" |
| 6528 | ;; |
| 6529 | *ELF-64*) |
| 6530 | HPUX_IA64_MODE="64" |
| 6531 | ;; |
| 6532 | esac |
| 6533 | fi |
| 6534 | rm -rf conftest* |
| 6535 | ;; |
| 6536 | *-*-irix6*) |
| 6537 | # Find out which ABI we are using. |
| 6538 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6539 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6540 | (eval $ac_compile) 2>&5 |
| 6541 | ac_status=$? |
| 6542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6543 | test $ac_status = 0; }; then |
| 6544 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6545 | case `/usr/bin/file conftest.$ac_objext` in |
| 6546 | *32-bit*) |
| 6547 | LD="${LD-ld} -melf32bsmip" |
| 6548 | ;; |
| 6549 | *N32*) |
| 6550 | LD="${LD-ld} -melf32bmipn32" |
| 6551 | ;; |
| 6552 | *64-bit*) |
| 6553 | LD="${LD-ld} -melf64bmip" |
| 6554 | ;; |
| 6555 | esac |
| 6556 | else |
| 6557 | case `/usr/bin/file conftest.$ac_objext` in |
| 6558 | *32-bit*) |
| 6559 | LD="${LD-ld} -32" |
| 6560 | ;; |
| 6561 | *N32*) |
| 6562 | LD="${LD-ld} -n32" |
| 6563 | ;; |
| 6564 | *64-bit*) |
| 6565 | LD="${LD-ld} -64" |
| 6566 | ;; |
| 6567 | esac |
| 6568 | fi |
| 6569 | fi |
| 6570 | rm -rf conftest* |
| 6571 | ;; |
| 6572 | |
| 6573 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6574 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6575 | # Find out which ABI we are using. |
| 6576 | echo 'int i;' > conftest.$ac_ext |
| 6577 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6578 | (eval $ac_compile) 2>&5 |
| 6579 | ac_status=$? |
| 6580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6581 | test $ac_status = 0; }; then |
| 6582 | case `/usr/bin/file conftest.o` in |
| 6583 | *32-bit*) |
| 6584 | case $host in |
| 6585 | x86_64-*kfreebsd*-gnu) |
| 6586 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6587 | ;; |
| 6588 | x86_64-*linux*) |
| 6589 | LD="${LD-ld} -m elf_i386" |
| 6590 | ;; |
| 6591 | ppc64-*linux*|powerpc64-*linux*) |
| 6592 | LD="${LD-ld} -m elf32ppclinux" |
| 6593 | ;; |
| 6594 | s390x-*linux*) |
| 6595 | LD="${LD-ld} -m elf_s390" |
| 6596 | ;; |
| 6597 | sparc64-*linux*) |
| 6598 | LD="${LD-ld} -m elf32_sparc" |
| 6599 | ;; |
| 6600 | esac |
| 6601 | ;; |
| 6602 | *64-bit*) |
| 6603 | case $host in |
| 6604 | x86_64-*kfreebsd*-gnu) |
| 6605 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6606 | ;; |
| 6607 | x86_64-*linux*) |
| 6608 | LD="${LD-ld} -m elf_x86_64" |
| 6609 | ;; |
| 6610 | ppc*-*linux*|powerpc*-*linux*) |
| 6611 | LD="${LD-ld} -m elf64ppc" |
| 6612 | ;; |
| 6613 | s390*-*linux*|s390*-*tpf*) |
| 6614 | LD="${LD-ld} -m elf64_s390" |
| 6615 | ;; |
| 6616 | sparc*-*linux*) |
| 6617 | LD="${LD-ld} -m elf64_sparc" |
| 6618 | ;; |
| 6619 | esac |
| 6620 | ;; |
| 6621 | esac |
| 6622 | fi |
| 6623 | rm -rf conftest* |
| 6624 | ;; |
| 6625 | |
| 6626 | *-*-sco3.2v5*) |
| 6627 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6628 | SAVE_CFLAGS="$CFLAGS" |
| 6629 | CFLAGS="$CFLAGS -belf" |
| 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6631 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6632 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 6633 | $as_echo_n "(cached) " >&6 |
| 6634 | else |
| 6635 | ac_ext=c |
| 6636 | ac_cpp='$CPP $CPPFLAGS' |
| 6637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6640 | |
| 6641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6642 | /* end confdefs.h. */ |
| 6643 | |
| 6644 | int |
| 6645 | main () |
| 6646 | { |
| 6647 | |
| 6648 | ; |
| 6649 | return 0; |
| 6650 | } |
| 6651 | _ACEOF |
| 6652 | if ac_fn_c_try_link "$LINENO"; then : |
| 6653 | lt_cv_cc_needs_belf=yes |
| 6654 | else |
| 6655 | lt_cv_cc_needs_belf=no |
| 6656 | fi |
| 6657 | rm -f core conftest.err conftest.$ac_objext \ |
| 6658 | conftest$ac_exeext conftest.$ac_ext |
| 6659 | ac_ext=c |
| 6660 | ac_cpp='$CPP $CPPFLAGS' |
| 6661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6664 | |
| 6665 | fi |
| 6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6667 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6668 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6669 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6670 | CFLAGS="$SAVE_CFLAGS" |
| 6671 | fi |
| 6672 | ;; |
| 6673 | *-*solaris*) |
| 6674 | # Find out which ABI we are using. |
| 6675 | echo 'int i;' > conftest.$ac_ext |
| 6676 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6677 | (eval $ac_compile) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6680 | test $ac_status = 0; }; then |
| 6681 | case `/usr/bin/file conftest.o` in |
| 6682 | *64-bit*) |
| 6683 | case $lt_cv_prog_gnu_ld in |
| 6684 | yes*) |
| 6685 | case $host in |
| 6686 | i?86-*-solaris*) |
| 6687 | LD="${LD-ld} -m elf_x86_64" |
| 6688 | ;; |
| 6689 | sparc*-*-solaris*) |
| 6690 | LD="${LD-ld} -m elf64_sparc" |
| 6691 | ;; |
| 6692 | esac |
| 6693 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 6694 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 6695 | LD="${LD-ld}_sol2" |
| 6696 | fi |
| 6697 | ;; |
| 6698 | *) |
| 6699 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6700 | LD="${LD-ld} -64" |
| 6701 | fi |
| 6702 | ;; |
| 6703 | esac |
| 6704 | ;; |
| 6705 | esac |
| 6706 | fi |
| 6707 | rm -rf conftest* |
| 6708 | ;; |
| 6709 | esac |
| 6710 | |
| 6711 | need_locks="$enable_libtool_lock" |
| 6712 | |
| 6713 | if test -n "$ac_tool_prefix"; then |
| 6714 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6715 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6717 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6718 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6719 | $as_echo_n "(cached) " >&6 |
| 6720 | else |
| 6721 | if test -n "$MANIFEST_TOOL"; then |
| 6722 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6723 | else |
| 6724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6725 | for as_dir in $PATH |
| 6726 | do |
| 6727 | IFS=$as_save_IFS |
| 6728 | test -z "$as_dir" && as_dir=. |
| 6729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6731 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6733 | break 2 |
| 6734 | fi |
| 6735 | done |
| 6736 | done |
| 6737 | IFS=$as_save_IFS |
| 6738 | |
| 6739 | fi |
| 6740 | fi |
| 6741 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6742 | if test -n "$MANIFEST_TOOL"; then |
| 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6744 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6745 | else |
| 6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6747 | $as_echo "no" >&6; } |
| 6748 | fi |
| 6749 | |
| 6750 | |
| 6751 | fi |
| 6752 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6753 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6754 | # Extract the first word of "mt", so it can be a program name with args. |
| 6755 | set dummy mt; ac_word=$2 |
| 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6757 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6758 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6759 | $as_echo_n "(cached) " >&6 |
| 6760 | else |
| 6761 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6762 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6763 | else |
| 6764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6765 | for as_dir in $PATH |
| 6766 | do |
| 6767 | IFS=$as_save_IFS |
| 6768 | test -z "$as_dir" && as_dir=. |
| 6769 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6771 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6773 | break 2 |
| 6774 | fi |
| 6775 | done |
| 6776 | done |
| 6777 | IFS=$as_save_IFS |
| 6778 | |
| 6779 | fi |
| 6780 | fi |
| 6781 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6782 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6784 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6785 | else |
| 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6787 | $as_echo "no" >&6; } |
| 6788 | fi |
| 6789 | |
| 6790 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6791 | MANIFEST_TOOL=":" |
| 6792 | else |
| 6793 | case $cross_compiling:$ac_tool_warned in |
| 6794 | yes:) |
| 6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6797 | ac_tool_warned=yes ;; |
| 6798 | esac |
| 6799 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6800 | fi |
| 6801 | else |
| 6802 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6803 | fi |
| 6804 | |
| 6805 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6807 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6808 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6809 | $as_echo_n "(cached) " >&6 |
| 6810 | else |
| 6811 | lt_cv_path_mainfest_tool=no |
| 6812 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6813 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6814 | cat conftest.err >&5 |
| 6815 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6816 | lt_cv_path_mainfest_tool=yes |
| 6817 | fi |
| 6818 | rm -f conftest* |
| 6819 | fi |
| 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6821 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 6822 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 6823 | MANIFEST_TOOL=: |
| 6824 | fi |
| 6825 | |
| 6826 | |
| 6827 | |
| 6828 | |
| 6829 | |
| 6830 | |
| 6831 | case $host_os in |
| 6832 | rhapsody* | darwin*) |
| 6833 | if test -n "$ac_tool_prefix"; then |
| 6834 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6835 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6837 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6838 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 6839 | $as_echo_n "(cached) " >&6 |
| 6840 | else |
| 6841 | if test -n "$DSYMUTIL"; then |
| 6842 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6843 | else |
| 6844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6845 | for as_dir in $PATH |
| 6846 | do |
| 6847 | IFS=$as_save_IFS |
| 6848 | test -z "$as_dir" && as_dir=. |
| 6849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6851 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6853 | break 2 |
| 6854 | fi |
| 6855 | done |
| 6856 | done |
| 6857 | IFS=$as_save_IFS |
| 6858 | |
| 6859 | fi |
| 6860 | fi |
| 6861 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6862 | if test -n "$DSYMUTIL"; then |
| 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6864 | $as_echo "$DSYMUTIL" >&6; } |
| 6865 | else |
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6867 | $as_echo "no" >&6; } |
| 6868 | fi |
| 6869 | |
| 6870 | |
| 6871 | fi |
| 6872 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6873 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6874 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6875 | set dummy dsymutil; ac_word=$2 |
| 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6877 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6878 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 6879 | $as_echo_n "(cached) " >&6 |
| 6880 | else |
| 6881 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6882 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6883 | else |
| 6884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6885 | for as_dir in $PATH |
| 6886 | do |
| 6887 | IFS=$as_save_IFS |
| 6888 | test -z "$as_dir" && as_dir=. |
| 6889 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6891 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6893 | break 2 |
| 6894 | fi |
| 6895 | done |
| 6896 | done |
| 6897 | IFS=$as_save_IFS |
| 6898 | |
| 6899 | fi |
| 6900 | fi |
| 6901 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6902 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6904 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6905 | else |
| 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6907 | $as_echo "no" >&6; } |
| 6908 | fi |
| 6909 | |
| 6910 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6911 | DSYMUTIL=":" |
| 6912 | else |
| 6913 | case $cross_compiling:$ac_tool_warned in |
| 6914 | yes:) |
| 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6916 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6917 | ac_tool_warned=yes ;; |
| 6918 | esac |
| 6919 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6920 | fi |
| 6921 | else |
| 6922 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6923 | fi |
| 6924 | |
| 6925 | if test -n "$ac_tool_prefix"; then |
| 6926 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6927 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6929 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6930 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 6931 | $as_echo_n "(cached) " >&6 |
| 6932 | else |
| 6933 | if test -n "$NMEDIT"; then |
| 6934 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6935 | else |
| 6936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6937 | for as_dir in $PATH |
| 6938 | do |
| 6939 | IFS=$as_save_IFS |
| 6940 | test -z "$as_dir" && as_dir=. |
| 6941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6942 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6943 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6945 | break 2 |
| 6946 | fi |
| 6947 | done |
| 6948 | done |
| 6949 | IFS=$as_save_IFS |
| 6950 | |
| 6951 | fi |
| 6952 | fi |
| 6953 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6954 | if test -n "$NMEDIT"; then |
| 6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6956 | $as_echo "$NMEDIT" >&6; } |
| 6957 | else |
| 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6959 | $as_echo "no" >&6; } |
| 6960 | fi |
| 6961 | |
| 6962 | |
| 6963 | fi |
| 6964 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6965 | ac_ct_NMEDIT=$NMEDIT |
| 6966 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6967 | set dummy nmedit; ac_word=$2 |
| 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6969 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6970 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 6971 | $as_echo_n "(cached) " >&6 |
| 6972 | else |
| 6973 | if test -n "$ac_ct_NMEDIT"; then |
| 6974 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6975 | else |
| 6976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6977 | for as_dir in $PATH |
| 6978 | do |
| 6979 | IFS=$as_save_IFS |
| 6980 | test -z "$as_dir" && as_dir=. |
| 6981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6983 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6985 | break 2 |
| 6986 | fi |
| 6987 | done |
| 6988 | done |
| 6989 | IFS=$as_save_IFS |
| 6990 | |
| 6991 | fi |
| 6992 | fi |
| 6993 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6994 | if test -n "$ac_ct_NMEDIT"; then |
| 6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6996 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6997 | else |
| 6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6999 | $as_echo "no" >&6; } |
| 7000 | fi |
| 7001 | |
| 7002 | if test "x$ac_ct_NMEDIT" = x; then |
| 7003 | NMEDIT=":" |
| 7004 | else |
| 7005 | case $cross_compiling:$ac_tool_warned in |
| 7006 | yes:) |
| 7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7009 | ac_tool_warned=yes ;; |
| 7010 | esac |
| 7011 | NMEDIT=$ac_ct_NMEDIT |
| 7012 | fi |
| 7013 | else |
| 7014 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7015 | fi |
| 7016 | |
| 7017 | if test -n "$ac_tool_prefix"; then |
| 7018 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7019 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7021 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7022 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7023 | $as_echo_n "(cached) " >&6 |
| 7024 | else |
| 7025 | if test -n "$LIPO"; then |
| 7026 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7027 | else |
| 7028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7029 | for as_dir in $PATH |
| 7030 | do |
| 7031 | IFS=$as_save_IFS |
| 7032 | test -z "$as_dir" && as_dir=. |
| 7033 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7035 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7037 | break 2 |
| 7038 | fi |
| 7039 | done |
| 7040 | done |
| 7041 | IFS=$as_save_IFS |
| 7042 | |
| 7043 | fi |
| 7044 | fi |
| 7045 | LIPO=$ac_cv_prog_LIPO |
| 7046 | if test -n "$LIPO"; then |
| 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7048 | $as_echo "$LIPO" >&6; } |
| 7049 | else |
| 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7051 | $as_echo "no" >&6; } |
| 7052 | fi |
| 7053 | |
| 7054 | |
| 7055 | fi |
| 7056 | if test -z "$ac_cv_prog_LIPO"; then |
| 7057 | ac_ct_LIPO=$LIPO |
| 7058 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7059 | set dummy lipo; ac_word=$2 |
| 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7061 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7062 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7063 | $as_echo_n "(cached) " >&6 |
| 7064 | else |
| 7065 | if test -n "$ac_ct_LIPO"; then |
| 7066 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7067 | else |
| 7068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7069 | for as_dir in $PATH |
| 7070 | do |
| 7071 | IFS=$as_save_IFS |
| 7072 | test -z "$as_dir" && as_dir=. |
| 7073 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7075 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7077 | break 2 |
| 7078 | fi |
| 7079 | done |
| 7080 | done |
| 7081 | IFS=$as_save_IFS |
| 7082 | |
| 7083 | fi |
| 7084 | fi |
| 7085 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7086 | if test -n "$ac_ct_LIPO"; then |
| 7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7088 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7089 | else |
| 7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7091 | $as_echo "no" >&6; } |
| 7092 | fi |
| 7093 | |
| 7094 | if test "x$ac_ct_LIPO" = x; then |
| 7095 | LIPO=":" |
| 7096 | else |
| 7097 | case $cross_compiling:$ac_tool_warned in |
| 7098 | yes:) |
| 7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7101 | ac_tool_warned=yes ;; |
| 7102 | esac |
| 7103 | LIPO=$ac_ct_LIPO |
| 7104 | fi |
| 7105 | else |
| 7106 | LIPO="$ac_cv_prog_LIPO" |
| 7107 | fi |
| 7108 | |
| 7109 | if test -n "$ac_tool_prefix"; then |
| 7110 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7111 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7113 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7114 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7115 | $as_echo_n "(cached) " >&6 |
| 7116 | else |
| 7117 | if test -n "$OTOOL"; then |
| 7118 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7119 | else |
| 7120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7121 | for as_dir in $PATH |
| 7122 | do |
| 7123 | IFS=$as_save_IFS |
| 7124 | test -z "$as_dir" && as_dir=. |
| 7125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7127 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7129 | break 2 |
| 7130 | fi |
| 7131 | done |
| 7132 | done |
| 7133 | IFS=$as_save_IFS |
| 7134 | |
| 7135 | fi |
| 7136 | fi |
| 7137 | OTOOL=$ac_cv_prog_OTOOL |
| 7138 | if test -n "$OTOOL"; then |
| 7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7140 | $as_echo "$OTOOL" >&6; } |
| 7141 | else |
| 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7143 | $as_echo "no" >&6; } |
| 7144 | fi |
| 7145 | |
| 7146 | |
| 7147 | fi |
| 7148 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7149 | ac_ct_OTOOL=$OTOOL |
| 7150 | # Extract the first word of "otool", so it can be a program name with args. |
| 7151 | set dummy otool; ac_word=$2 |
| 7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7153 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7154 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7155 | $as_echo_n "(cached) " >&6 |
| 7156 | else |
| 7157 | if test -n "$ac_ct_OTOOL"; then |
| 7158 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7159 | else |
| 7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7161 | for as_dir in $PATH |
| 7162 | do |
| 7163 | IFS=$as_save_IFS |
| 7164 | test -z "$as_dir" && as_dir=. |
| 7165 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7167 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7169 | break 2 |
| 7170 | fi |
| 7171 | done |
| 7172 | done |
| 7173 | IFS=$as_save_IFS |
| 7174 | |
| 7175 | fi |
| 7176 | fi |
| 7177 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7178 | if test -n "$ac_ct_OTOOL"; then |
| 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7180 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7181 | else |
| 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7183 | $as_echo "no" >&6; } |
| 7184 | fi |
| 7185 | |
| 7186 | if test "x$ac_ct_OTOOL" = x; then |
| 7187 | OTOOL=":" |
| 7188 | else |
| 7189 | case $cross_compiling:$ac_tool_warned in |
| 7190 | yes:) |
| 7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7192 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7193 | ac_tool_warned=yes ;; |
| 7194 | esac |
| 7195 | OTOOL=$ac_ct_OTOOL |
| 7196 | fi |
| 7197 | else |
| 7198 | OTOOL="$ac_cv_prog_OTOOL" |
| 7199 | fi |
| 7200 | |
| 7201 | if test -n "$ac_tool_prefix"; then |
| 7202 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7203 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7205 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7206 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7207 | $as_echo_n "(cached) " >&6 |
| 7208 | else |
| 7209 | if test -n "$OTOOL64"; then |
| 7210 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7211 | else |
| 7212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7213 | for as_dir in $PATH |
| 7214 | do |
| 7215 | IFS=$as_save_IFS |
| 7216 | test -z "$as_dir" && as_dir=. |
| 7217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7219 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7221 | break 2 |
| 7222 | fi |
| 7223 | done |
| 7224 | done |
| 7225 | IFS=$as_save_IFS |
| 7226 | |
| 7227 | fi |
| 7228 | fi |
| 7229 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7230 | if test -n "$OTOOL64"; then |
| 7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7232 | $as_echo "$OTOOL64" >&6; } |
| 7233 | else |
| 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7235 | $as_echo "no" >&6; } |
| 7236 | fi |
| 7237 | |
| 7238 | |
| 7239 | fi |
| 7240 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7241 | ac_ct_OTOOL64=$OTOOL64 |
| 7242 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7243 | set dummy otool64; ac_word=$2 |
| 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7245 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7246 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7247 | $as_echo_n "(cached) " >&6 |
| 7248 | else |
| 7249 | if test -n "$ac_ct_OTOOL64"; then |
| 7250 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7251 | else |
| 7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7253 | for as_dir in $PATH |
| 7254 | do |
| 7255 | IFS=$as_save_IFS |
| 7256 | test -z "$as_dir" && as_dir=. |
| 7257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7259 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7261 | break 2 |
| 7262 | fi |
| 7263 | done |
| 7264 | done |
| 7265 | IFS=$as_save_IFS |
| 7266 | |
| 7267 | fi |
| 7268 | fi |
| 7269 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7270 | if test -n "$ac_ct_OTOOL64"; then |
| 7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7272 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7273 | else |
| 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7275 | $as_echo "no" >&6; } |
| 7276 | fi |
| 7277 | |
| 7278 | if test "x$ac_ct_OTOOL64" = x; then |
| 7279 | OTOOL64=":" |
| 7280 | else |
| 7281 | case $cross_compiling:$ac_tool_warned in |
| 7282 | yes:) |
| 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7285 | ac_tool_warned=yes ;; |
| 7286 | esac |
| 7287 | OTOOL64=$ac_ct_OTOOL64 |
| 7288 | fi |
| 7289 | else |
| 7290 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7291 | fi |
| 7292 | |
| 7293 | |
| 7294 | |
| 7295 | |
| 7296 | |
| 7297 | |
| 7298 | |
| 7299 | |
| 7300 | |
| 7301 | |
| 7302 | |
| 7303 | |
| 7304 | |
| 7305 | |
| 7306 | |
| 7307 | |
| 7308 | |
| 7309 | |
| 7310 | |
| 7311 | |
| 7312 | |
| 7313 | |
| 7314 | |
| 7315 | |
| 7316 | |
| 7317 | |
| 7318 | |
| 7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7320 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7321 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7322 | $as_echo_n "(cached) " >&6 |
| 7323 | else |
| 7324 | lt_cv_apple_cc_single_mod=no |
| 7325 | if test -z "${LT_MULTI_MODULE}"; then |
| 7326 | # By default we will add the -single_module flag. You can override |
| 7327 | # by either setting the environment variable LT_MULTI_MODULE |
| 7328 | # non-empty at configure time, or by adding -multi_module to the |
| 7329 | # link flags. |
| 7330 | rm -rf libconftest.dylib* |
| 7331 | echo "int foo(void){return 1;}" > conftest.c |
| 7332 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7333 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7334 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7335 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7336 | _lt_result=$? |
| 7337 | # If there is a non-empty error log, and "single_module" |
| 7338 | # appears in it, assume the flag caused a linker warning |
| 7339 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7340 | cat conftest.err >&5 |
| 7341 | # Otherwise, if the output was created with a 0 exit code from |
| 7342 | # the compiler, it worked. |
| 7343 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7344 | lt_cv_apple_cc_single_mod=yes |
| 7345 | else |
| 7346 | cat conftest.err >&5 |
| 7347 | fi |
| 7348 | rm -rf libconftest.dylib* |
| 7349 | rm -f conftest.* |
| 7350 | fi |
| 7351 | fi |
| 7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7353 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7354 | |
| 7355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7356 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7357 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7358 | $as_echo_n "(cached) " >&6 |
| 7359 | else |
| 7360 | lt_cv_ld_exported_symbols_list=no |
| 7361 | save_LDFLAGS=$LDFLAGS |
| 7362 | echo "_main" > conftest.sym |
| 7363 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7365 | /* end confdefs.h. */ |
| 7366 | |
| 7367 | int |
| 7368 | main () |
| 7369 | { |
| 7370 | |
| 7371 | ; |
| 7372 | return 0; |
| 7373 | } |
| 7374 | _ACEOF |
| 7375 | if ac_fn_c_try_link "$LINENO"; then : |
| 7376 | lt_cv_ld_exported_symbols_list=yes |
| 7377 | else |
| 7378 | lt_cv_ld_exported_symbols_list=no |
| 7379 | fi |
| 7380 | rm -f core conftest.err conftest.$ac_objext \ |
| 7381 | conftest$ac_exeext conftest.$ac_ext |
| 7382 | LDFLAGS="$save_LDFLAGS" |
| 7383 | |
| 7384 | fi |
| 7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7386 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7387 | |
| 7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7389 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7390 | if ${lt_cv_ld_force_load+:} false; then : |
| 7391 | $as_echo_n "(cached) " >&6 |
| 7392 | else |
| 7393 | lt_cv_ld_force_load=no |
| 7394 | cat > conftest.c << _LT_EOF |
| 7395 | int forced_loaded() { return 2;} |
| 7396 | _LT_EOF |
| 7397 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7398 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7399 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7400 | $AR cru libconftest.a conftest.o 2>&5 |
| 7401 | echo "$RANLIB libconftest.a" >&5 |
| 7402 | $RANLIB libconftest.a 2>&5 |
| 7403 | cat > conftest.c << _LT_EOF |
| 7404 | int main() { return 0;} |
| 7405 | _LT_EOF |
| 7406 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7407 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7408 | _lt_result=$? |
| 7409 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7410 | cat conftest.err >&5 |
| 7411 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7412 | lt_cv_ld_force_load=yes |
| 7413 | else |
| 7414 | cat conftest.err >&5 |
| 7415 | fi |
| 7416 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7417 | rm -rf conftest.dSYM |
| 7418 | |
| 7419 | fi |
| 7420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7421 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7422 | case $host_os in |
| 7423 | rhapsody* | darwin1.[012]) |
| 7424 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7425 | darwin1.*) |
| 7426 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7427 | darwin*) # darwin 5.x on |
| 7428 | # if running on 10.5 or later, the deployment target defaults |
| 7429 | # to the OS version, if on x86, and 10.4, the deployment |
| 7430 | # target defaults to 10.4. Don't you love it? |
| 7431 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7432 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7433 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7434 | 10.[012]*) |
| 7435 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7436 | 10.*) |
| 7437 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7438 | esac |
| 7439 | ;; |
| 7440 | esac |
| 7441 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7442 | _lt_dar_single_mod='$single_module' |
| 7443 | fi |
| 7444 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7445 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7446 | else |
| 7447 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7448 | fi |
| 7449 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7450 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7451 | else |
| 7452 | _lt_dsymutil= |
| 7453 | fi |
| 7454 | ;; |
| 7455 | esac |
| 7456 | |
| 7457 | ac_ext=c |
| 7458 | ac_cpp='$CPP $CPPFLAGS' |
| 7459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7463 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7464 | # On Suns, sometimes $CPP names a directory. |
| 7465 | if test -n "$CPP" && test -d "$CPP"; then |
| 7466 | CPP= |
| 7467 | fi |
| 7468 | if test -z "$CPP"; then |
| 7469 | if ${ac_cv_prog_CPP+:} false; then : |
| 7470 | $as_echo_n "(cached) " >&6 |
| 7471 | else |
| 7472 | # Double quotes because CPP needs to be expanded |
| 7473 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7474 | do |
| 7475 | ac_preproc_ok=false |
| 7476 | for ac_c_preproc_warn_flag in '' yes |
| 7477 | do |
| 7478 | # Use a header file that comes with gcc, so configuring glibc |
| 7479 | # with a fresh cross-compiler works. |
| 7480 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7481 | # <limits.h> exists even on freestanding compilers. |
| 7482 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7483 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7485 | /* end confdefs.h. */ |
| 7486 | #ifdef __STDC__ |
| 7487 | # include <limits.h> |
| 7488 | #else |
| 7489 | # include <assert.h> |
| 7490 | #endif |
| 7491 | Syntax error |
| 7492 | _ACEOF |
| 7493 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7494 | |
| 7495 | else |
| 7496 | # Broken: fails on valid input. |
| 7497 | continue |
| 7498 | fi |
| 7499 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7500 | |
| 7501 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7502 | # can be detected and how. |
| 7503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7504 | /* end confdefs.h. */ |
| 7505 | #include <ac_nonexistent.h> |
| 7506 | _ACEOF |
| 7507 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7508 | # Broken: success on invalid input. |
| 7509 | continue |
| 7510 | else |
| 7511 | # Passes both tests. |
| 7512 | ac_preproc_ok=: |
| 7513 | break |
| 7514 | fi |
| 7515 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7516 | |
| 7517 | done |
| 7518 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7519 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7520 | if $ac_preproc_ok; then : |
| 7521 | break |
| 7522 | fi |
| 7523 | |
| 7524 | done |
| 7525 | ac_cv_prog_CPP=$CPP |
| 7526 | |
| 7527 | fi |
| 7528 | CPP=$ac_cv_prog_CPP |
| 7529 | else |
| 7530 | ac_cv_prog_CPP=$CPP |
| 7531 | fi |
| 7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7533 | $as_echo "$CPP" >&6; } |
| 7534 | ac_preproc_ok=false |
| 7535 | for ac_c_preproc_warn_flag in '' yes |
| 7536 | do |
| 7537 | # Use a header file that comes with gcc, so configuring glibc |
| 7538 | # with a fresh cross-compiler works. |
| 7539 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7540 | # <limits.h> exists even on freestanding compilers. |
| 7541 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7542 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7544 | /* end confdefs.h. */ |
| 7545 | #ifdef __STDC__ |
| 7546 | # include <limits.h> |
| 7547 | #else |
| 7548 | # include <assert.h> |
| 7549 | #endif |
| 7550 | Syntax error |
| 7551 | _ACEOF |
| 7552 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7553 | |
| 7554 | else |
| 7555 | # Broken: fails on valid input. |
| 7556 | continue |
| 7557 | fi |
| 7558 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7559 | |
| 7560 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7561 | # can be detected and how. |
| 7562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7563 | /* end confdefs.h. */ |
| 7564 | #include <ac_nonexistent.h> |
| 7565 | _ACEOF |
| 7566 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7567 | # Broken: success on invalid input. |
| 7568 | continue |
| 7569 | else |
| 7570 | # Passes both tests. |
| 7571 | ac_preproc_ok=: |
| 7572 | break |
| 7573 | fi |
| 7574 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7575 | |
| 7576 | done |
| 7577 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7578 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7579 | if $ac_preproc_ok; then : |
| 7580 | |
| 7581 | else |
| 7582 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7584 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7585 | See \`config.log' for more details" "$LINENO" 5; } |
| 7586 | fi |
| 7587 | |
| 7588 | ac_ext=c |
| 7589 | ac_cpp='$CPP $CPPFLAGS' |
| 7590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7593 | |
| 7594 | |
| 7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7596 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7597 | if ${ac_cv_header_stdc+:} false; then : |
| 7598 | $as_echo_n "(cached) " >&6 |
| 7599 | else |
| 7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7601 | /* end confdefs.h. */ |
| 7602 | #include <stdlib.h> |
| 7603 | #include <stdarg.h> |
| 7604 | #include <string.h> |
| 7605 | #include <float.h> |
| 7606 | |
| 7607 | int |
| 7608 | main () |
| 7609 | { |
| 7610 | |
| 7611 | ; |
| 7612 | return 0; |
| 7613 | } |
| 7614 | _ACEOF |
| 7615 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7616 | ac_cv_header_stdc=yes |
| 7617 | else |
| 7618 | ac_cv_header_stdc=no |
| 7619 | fi |
| 7620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7621 | |
| 7622 | if test $ac_cv_header_stdc = yes; then |
| 7623 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7625 | /* end confdefs.h. */ |
| 7626 | #include <string.h> |
| 7627 | |
| 7628 | _ACEOF |
| 7629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7630 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7631 | |
| 7632 | else |
| 7633 | ac_cv_header_stdc=no |
| 7634 | fi |
| 7635 | rm -f conftest* |
| 7636 | |
| 7637 | fi |
| 7638 | |
| 7639 | if test $ac_cv_header_stdc = yes; then |
| 7640 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7642 | /* end confdefs.h. */ |
| 7643 | #include <stdlib.h> |
| 7644 | |
| 7645 | _ACEOF |
| 7646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7647 | $EGREP "free" >/dev/null 2>&1; then : |
| 7648 | |
| 7649 | else |
| 7650 | ac_cv_header_stdc=no |
| 7651 | fi |
| 7652 | rm -f conftest* |
| 7653 | |
| 7654 | fi |
| 7655 | |
| 7656 | if test $ac_cv_header_stdc = yes; then |
| 7657 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7658 | if test "$cross_compiling" = yes; then : |
| 7659 | : |
| 7660 | else |
| 7661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7662 | /* end confdefs.h. */ |
| 7663 | #include <ctype.h> |
| 7664 | #include <stdlib.h> |
| 7665 | #if ((' ' & 0x0FF) == 0x020) |
| 7666 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7667 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7668 | #else |
| 7669 | # define ISLOWER(c) \ |
| 7670 | (('a' <= (c) && (c) <= 'i') \ |
| 7671 | || ('j' <= (c) && (c) <= 'r') \ |
| 7672 | || ('s' <= (c) && (c) <= 'z')) |
| 7673 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7674 | #endif |
| 7675 | |
| 7676 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7677 | int |
| 7678 | main () |
| 7679 | { |
| 7680 | int i; |
| 7681 | for (i = 0; i < 256; i++) |
| 7682 | if (XOR (islower (i), ISLOWER (i)) |
| 7683 | || toupper (i) != TOUPPER (i)) |
| 7684 | return 2; |
| 7685 | return 0; |
| 7686 | } |
| 7687 | _ACEOF |
| 7688 | if ac_fn_c_try_run "$LINENO"; then : |
| 7689 | |
| 7690 | else |
| 7691 | ac_cv_header_stdc=no |
| 7692 | fi |
| 7693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7694 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7695 | fi |
| 7696 | |
| 7697 | fi |
| 7698 | fi |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7700 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7701 | if test $ac_cv_header_stdc = yes; then |
| 7702 | |
| 7703 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7704 | |
| 7705 | fi |
| 7706 | |
| 7707 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7708 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7709 | inttypes.h stdint.h unistd.h |
| 7710 | do : |
| 7711 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7712 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7713 | " |
| 7714 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7715 | cat >>confdefs.h <<_ACEOF |
| 7716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7717 | _ACEOF |
| 7718 | |
| 7719 | fi |
| 7720 | |
| 7721 | done |
| 7722 | |
| 7723 | |
| 7724 | for ac_header in dlfcn.h |
| 7725 | do : |
| 7726 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7727 | " |
| 7728 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 7729 | cat >>confdefs.h <<_ACEOF |
| 7730 | #define HAVE_DLFCN_H 1 |
| 7731 | _ACEOF |
| 7732 | |
| 7733 | fi |
| 7734 | |
| 7735 | done |
| 7736 | |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | # Set options |
| 7742 | |
| 7743 | |
| 7744 | |
| 7745 | enable_dlopen=no |
| 7746 | |
| 7747 | |
| 7748 | enable_win32_dll=no |
| 7749 | |
| 7750 | |
| 7751 | # Check whether --enable-shared was given. |
| 7752 | if test "${enable_shared+set}" = set; then : |
| 7753 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7754 | case $enableval in |
| 7755 | yes) enable_shared=yes ;; |
| 7756 | no) enable_shared=no ;; |
| 7757 | *) |
| 7758 | enable_shared=no |
| 7759 | # Look at the argument we got. We use all the common list separators. |
| 7760 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7761 | for pkg in $enableval; do |
| 7762 | IFS="$lt_save_ifs" |
| 7763 | if test "X$pkg" = "X$p"; then |
| 7764 | enable_shared=yes |
| 7765 | fi |
| 7766 | done |
| 7767 | IFS="$lt_save_ifs" |
| 7768 | ;; |
| 7769 | esac |
| 7770 | else |
| 7771 | enable_shared=yes |
| 7772 | fi |
| 7773 | |
| 7774 | |
| 7775 | |
| 7776 | |
| 7777 | |
| 7778 | |
| 7779 | |
| 7780 | |
| 7781 | |
| 7782 | # Check whether --enable-static was given. |
| 7783 | if test "${enable_static+set}" = set; then : |
| 7784 | enableval=$enable_static; p=${PACKAGE-default} |
| 7785 | case $enableval in |
| 7786 | yes) enable_static=yes ;; |
| 7787 | no) enable_static=no ;; |
| 7788 | *) |
| 7789 | enable_static=no |
| 7790 | # Look at the argument we got. We use all the common list separators. |
| 7791 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7792 | for pkg in $enableval; do |
| 7793 | IFS="$lt_save_ifs" |
| 7794 | if test "X$pkg" = "X$p"; then |
| 7795 | enable_static=yes |
| 7796 | fi |
| 7797 | done |
| 7798 | IFS="$lt_save_ifs" |
| 7799 | ;; |
| 7800 | esac |
| 7801 | else |
| 7802 | enable_static=yes |
| 7803 | fi |
| 7804 | |
| 7805 | |
| 7806 | |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | |
| 7811 | |
| 7812 | |
| 7813 | |
| 7814 | # Check whether --with-pic was given. |
| 7815 | if test "${with_pic+set}" = set; then : |
| 7816 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 7817 | case $withval in |
| 7818 | yes|no) pic_mode=$withval ;; |
| 7819 | *) |
| 7820 | pic_mode=default |
| 7821 | # Look at the argument we got. We use all the common list separators. |
| 7822 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7823 | for lt_pkg in $withval; do |
| 7824 | IFS="$lt_save_ifs" |
| 7825 | if test "X$lt_pkg" = "X$lt_p"; then |
| 7826 | pic_mode=yes |
| 7827 | fi |
| 7828 | done |
| 7829 | IFS="$lt_save_ifs" |
| 7830 | ;; |
| 7831 | esac |
| 7832 | else |
| 7833 | pic_mode=default |
| 7834 | fi |
| 7835 | |
| 7836 | |
| 7837 | test -z "$pic_mode" && pic_mode=default |
| 7838 | |
| 7839 | |
| 7840 | |
| 7841 | |
| 7842 | |
| 7843 | |
| 7844 | |
| 7845 | # Check whether --enable-fast-install was given. |
| 7846 | if test "${enable_fast_install+set}" = set; then : |
| 7847 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7848 | case $enableval in |
| 7849 | yes) enable_fast_install=yes ;; |
| 7850 | no) enable_fast_install=no ;; |
| 7851 | *) |
| 7852 | enable_fast_install=no |
| 7853 | # Look at the argument we got. We use all the common list separators. |
| 7854 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7855 | for pkg in $enableval; do |
| 7856 | IFS="$lt_save_ifs" |
| 7857 | if test "X$pkg" = "X$p"; then |
| 7858 | enable_fast_install=yes |
| 7859 | fi |
| 7860 | done |
| 7861 | IFS="$lt_save_ifs" |
| 7862 | ;; |
| 7863 | esac |
| 7864 | else |
| 7865 | enable_fast_install=yes |
| 7866 | fi |
| 7867 | |
| 7868 | |
| 7869 | |
| 7870 | |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | |
| 7875 | |
| 7876 | |
| 7877 | |
| 7878 | # This can be used to rebuild libtool when needed |
| 7879 | LIBTOOL_DEPS="$ltmain" |
| 7880 | |
| 7881 | # Always use our own libtool. |
| 7882 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7883 | |
| 7884 | |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | |
| 7896 | |
| 7897 | |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
| 7909 | |
| 7910 | |
| 7911 | |
| 7912 | |
| 7913 | test -z "$LN_S" && LN_S="ln -s" |
| 7914 | |
| 7915 | |
| 7916 | |
| 7917 | |
| 7918 | |
| 7919 | |
| 7920 | |
| 7921 | |
| 7922 | |
| 7923 | |
| 7924 | |
| 7925 | |
| 7926 | |
| 7927 | |
| 7928 | if test -n "${ZSH_VERSION+set}" ; then |
| 7929 | setopt NO_GLOB_SUBST |
| 7930 | fi |
| 7931 | |
| 7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7933 | $as_echo_n "checking for objdir... " >&6; } |
| 7934 | if ${lt_cv_objdir+:} false; then : |
| 7935 | $as_echo_n "(cached) " >&6 |
| 7936 | else |
| 7937 | rm -f .libs 2>/dev/null |
| 7938 | mkdir .libs 2>/dev/null |
| 7939 | if test -d .libs; then |
| 7940 | lt_cv_objdir=.libs |
| 7941 | else |
| 7942 | # MS-DOS does not allow filenames that begin with a dot. |
| 7943 | lt_cv_objdir=_libs |
| 7944 | fi |
| 7945 | rmdir .libs 2>/dev/null |
| 7946 | fi |
| 7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 7948 | $as_echo "$lt_cv_objdir" >&6; } |
| 7949 | objdir=$lt_cv_objdir |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | cat >>confdefs.h <<_ACEOF |
| 7956 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7957 | _ACEOF |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | case $host_os in |
| 7963 | aix3*) |
| 7964 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7965 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7966 | # vanish in a puff of smoke. |
| 7967 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7968 | COLLECT_NAMES= |
| 7969 | export COLLECT_NAMES |
| 7970 | fi |
| 7971 | ;; |
| 7972 | esac |
| 7973 | |
| 7974 | # Global variables: |
| 7975 | ofile=libtool |
| 7976 | can_build_shared=yes |
| 7977 | |
| 7978 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7979 | # which needs '.lib'). |
| 7980 | libext=a |
| 7981 | |
| 7982 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7983 | |
| 7984 | old_CC="$CC" |
| 7985 | old_CFLAGS="$CFLAGS" |
| 7986 | |
| 7987 | # Set sane defaults for various variables |
| 7988 | test -z "$CC" && CC=cc |
| 7989 | test -z "$LTCC" && LTCC=$CC |
| 7990 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7991 | test -z "$LD" && LD=ld |
| 7992 | test -z "$ac_objext" && ac_objext=o |
| 7993 | |
| 7994 | for cc_temp in $compiler""; do |
| 7995 | case $cc_temp in |
| 7996 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7997 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7998 | \-*) ;; |
| 7999 | *) break;; |
| 8000 | esac |
| 8001 | done |
| 8002 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8003 | |
| 8004 | |
| 8005 | # Only perform the check for file, if the check method requires it |
| 8006 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8007 | case $deplibs_check_method in |
| 8008 | file_magic*) |
| 8009 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8011 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8012 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8013 | $as_echo_n "(cached) " >&6 |
| 8014 | else |
| 8015 | case $MAGIC_CMD in |
| 8016 | [\\/*] | ?:[\\/]*) |
| 8017 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8018 | ;; |
| 8019 | *) |
| 8020 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8021 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8022 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8023 | for ac_dir in $ac_dummy; do |
| 8024 | IFS="$lt_save_ifs" |
| 8025 | test -z "$ac_dir" && ac_dir=. |
| 8026 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8027 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8028 | if test -n "$file_magic_test_file"; then |
| 8029 | case $deplibs_check_method in |
| 8030 | "file_magic "*) |
| 8031 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8032 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8033 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8034 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8035 | : |
| 8036 | else |
| 8037 | cat <<_LT_EOF 1>&2 |
| 8038 | |
| 8039 | *** Warning: the command libtool uses to detect shared libraries, |
| 8040 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8041 | *** The result is that libtool may fail to recognize shared libraries |
| 8042 | *** as such. This will affect the creation of libtool libraries that |
| 8043 | *** depend on shared libraries, but programs linked with such libtool |
| 8044 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8045 | *** may want to report the problem to your system manager and/or to |
| 8046 | *** bug-libtool@gnu.org |
| 8047 | |
| 8048 | _LT_EOF |
| 8049 | fi ;; |
| 8050 | esac |
| 8051 | fi |
| 8052 | break |
| 8053 | fi |
| 8054 | done |
| 8055 | IFS="$lt_save_ifs" |
| 8056 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8057 | ;; |
| 8058 | esac |
| 8059 | fi |
| 8060 | |
| 8061 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8062 | if test -n "$MAGIC_CMD"; then |
| 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8064 | $as_echo "$MAGIC_CMD" >&6; } |
| 8065 | else |
| 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8067 | $as_echo "no" >&6; } |
| 8068 | fi |
| 8069 | |
| 8070 | |
| 8071 | |
| 8072 | |
| 8073 | |
| 8074 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8075 | if test -n "$ac_tool_prefix"; then |
| 8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8077 | $as_echo_n "checking for file... " >&6; } |
| 8078 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8079 | $as_echo_n "(cached) " >&6 |
| 8080 | else |
| 8081 | case $MAGIC_CMD in |
| 8082 | [\\/*] | ?:[\\/]*) |
| 8083 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8084 | ;; |
| 8085 | *) |
| 8086 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8087 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8088 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8089 | for ac_dir in $ac_dummy; do |
| 8090 | IFS="$lt_save_ifs" |
| 8091 | test -z "$ac_dir" && ac_dir=. |
| 8092 | if test -f $ac_dir/file; then |
| 8093 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8094 | if test -n "$file_magic_test_file"; then |
| 8095 | case $deplibs_check_method in |
| 8096 | "file_magic "*) |
| 8097 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8098 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8099 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8100 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8101 | : |
| 8102 | else |
| 8103 | cat <<_LT_EOF 1>&2 |
| 8104 | |
| 8105 | *** Warning: the command libtool uses to detect shared libraries, |
| 8106 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8107 | *** The result is that libtool may fail to recognize shared libraries |
| 8108 | *** as such. This will affect the creation of libtool libraries that |
| 8109 | *** depend on shared libraries, but programs linked with such libtool |
| 8110 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8111 | *** may want to report the problem to your system manager and/or to |
| 8112 | *** bug-libtool@gnu.org |
| 8113 | |
| 8114 | _LT_EOF |
| 8115 | fi ;; |
| 8116 | esac |
| 8117 | fi |
| 8118 | break |
| 8119 | fi |
| 8120 | done |
| 8121 | IFS="$lt_save_ifs" |
| 8122 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8123 | ;; |
| 8124 | esac |
| 8125 | fi |
| 8126 | |
| 8127 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8128 | if test -n "$MAGIC_CMD"; then |
| 8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8130 | $as_echo "$MAGIC_CMD" >&6; } |
| 8131 | else |
| 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8133 | $as_echo "no" >&6; } |
| 8134 | fi |
| 8135 | |
| 8136 | |
| 8137 | else |
| 8138 | MAGIC_CMD=: |
| 8139 | fi |
| 8140 | fi |
| 8141 | |
| 8142 | fi |
| 8143 | ;; |
| 8144 | esac |
| 8145 | |
| 8146 | # Use C for the default configuration in the libtool script |
| 8147 | |
| 8148 | lt_save_CC="$CC" |
| 8149 | ac_ext=c |
| 8150 | ac_cpp='$CPP $CPPFLAGS' |
| 8151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8154 | |
| 8155 | |
| 8156 | # Source file extension for C test sources. |
| 8157 | ac_ext=c |
| 8158 | |
| 8159 | # Object file extension for compiled C test sources. |
| 8160 | objext=o |
| 8161 | objext=$objext |
| 8162 | |
| 8163 | # Code to be used in simple compile tests |
| 8164 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8165 | |
| 8166 | # Code to be used in simple link tests |
| 8167 | lt_simple_link_test_code='int main(){return(0);}' |
| 8168 | |
| 8169 | |
| 8170 | |
| 8171 | |
| 8172 | |
| 8173 | |
| 8174 | |
| 8175 | # If no C compiler was specified, use CC. |
| 8176 | LTCC=${LTCC-"$CC"} |
| 8177 | |
| 8178 | # If no C compiler flags were specified, use CFLAGS. |
| 8179 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8180 | |
| 8181 | # Allow CC to be a program name with arguments. |
| 8182 | compiler=$CC |
| 8183 | |
| 8184 | # Save the default compiler, since it gets overwritten when the other |
| 8185 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8186 | compiler_DEFAULT=$CC |
| 8187 | |
| 8188 | # save warnings/boilerplate of simple test code |
| 8189 | ac_outfile=conftest.$ac_objext |
| 8190 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8191 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8192 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8193 | $RM conftest* |
| 8194 | |
| 8195 | ac_outfile=conftest.$ac_objext |
| 8196 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8197 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8198 | _lt_linker_boilerplate=`cat conftest.err` |
| 8199 | $RM -r conftest* |
| 8200 | |
| 8201 | |
| 8202 | if test -n "$compiler"; then |
| 8203 | |
| 8204 | lt_prog_compiler_no_builtin_flag= |
| 8205 | |
| 8206 | if test "$GCC" = yes; then |
| 8207 | case $cc_basename in |
| 8208 | nvcc*) |
| 8209 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8210 | *) |
| 8211 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8212 | esac |
| 8213 | |
| 8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8215 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8216 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8217 | $as_echo_n "(cached) " >&6 |
| 8218 | else |
| 8219 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8220 | ac_outfile=conftest.$ac_objext |
| 8221 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8222 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8223 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8224 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8225 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8226 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8227 | # The option is referenced via a variable to avoid confusing sed. |
| 8228 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8229 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8230 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8231 | -e 's:$: $lt_compiler_flag:'` |
| 8232 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8233 | (eval "$lt_compile" 2>conftest.err) |
| 8234 | ac_status=$? |
| 8235 | cat conftest.err >&5 |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8238 | # The compiler can only warn and ignore the option if not recognized |
| 8239 | # So say no if there are warnings other than the usual output. |
| 8240 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8241 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8242 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8243 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8244 | fi |
| 8245 | fi |
| 8246 | $RM conftest* |
| 8247 | |
| 8248 | fi |
| 8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8250 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8251 | |
| 8252 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8253 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8254 | else |
| 8255 | : |
| 8256 | fi |
| 8257 | |
| 8258 | fi |
| 8259 | |
| 8260 | |
| 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | lt_prog_compiler_wl= |
| 8266 | lt_prog_compiler_pic= |
| 8267 | lt_prog_compiler_static= |
| 8268 | |
| 8269 | |
| 8270 | if test "$GCC" = yes; then |
| 8271 | lt_prog_compiler_wl='-Wl,' |
| 8272 | lt_prog_compiler_static='-static' |
| 8273 | |
| 8274 | case $host_os in |
| 8275 | aix*) |
| 8276 | # All AIX code is PIC. |
| 8277 | if test "$host_cpu" = ia64; then |
| 8278 | # AIX 5 now supports IA64 processor |
| 8279 | lt_prog_compiler_static='-Bstatic' |
| 8280 | fi |
| 8281 | ;; |
| 8282 | |
| 8283 | amigaos*) |
| 8284 | case $host_cpu in |
| 8285 | powerpc) |
| 8286 | # see comment about AmigaOS4 .so support |
| 8287 | lt_prog_compiler_pic='-fPIC' |
| 8288 | ;; |
| 8289 | m68k) |
| 8290 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8291 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8292 | # like `-m68040'. |
| 8293 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8294 | ;; |
| 8295 | esac |
| 8296 | ;; |
| 8297 | |
| 8298 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8299 | # PIC is the default for these OSes. |
| 8300 | ;; |
| 8301 | |
| 8302 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8303 | # This hack is so that the source file can tell whether it is being |
| 8304 | # built for inclusion in a dll (and should export symbols for example). |
| 8305 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8306 | # (--disable-auto-import) libraries |
| 8307 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8308 | ;; |
| 8309 | |
| 8310 | darwin* | rhapsody*) |
| 8311 | # PIC is the default on this platform |
| 8312 | # Common symbols not allowed in MH_DYLIB files |
| 8313 | lt_prog_compiler_pic='-fno-common' |
| 8314 | ;; |
| 8315 | |
| 8316 | haiku*) |
| 8317 | # PIC is the default for Haiku. |
| 8318 | # The "-static" flag exists, but is broken. |
| 8319 | lt_prog_compiler_static= |
| 8320 | ;; |
| 8321 | |
| 8322 | hpux*) |
| 8323 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8324 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8325 | # sets the default TLS model and affects inlining. |
| 8326 | case $host_cpu in |
| 8327 | hppa*64*) |
| 8328 | # +Z the default |
| 8329 | ;; |
| 8330 | *) |
| 8331 | lt_prog_compiler_pic='-fPIC' |
| 8332 | ;; |
| 8333 | esac |
| 8334 | ;; |
| 8335 | |
| 8336 | interix[3-9]*) |
| 8337 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8338 | # Instead, we relocate shared libraries at runtime. |
| 8339 | ;; |
| 8340 | |
| 8341 | msdosdjgpp*) |
| 8342 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8343 | # on systems that don't support them. |
| 8344 | lt_prog_compiler_can_build_shared=no |
| 8345 | enable_shared=no |
| 8346 | ;; |
| 8347 | |
| 8348 | *nto* | *qnx*) |
| 8349 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8350 | # it will coredump. |
| 8351 | lt_prog_compiler_pic='-fPIC -shared' |
| 8352 | ;; |
| 8353 | |
| 8354 | sysv4*MP*) |
| 8355 | if test -d /usr/nec; then |
| 8356 | lt_prog_compiler_pic=-Kconform_pic |
| 8357 | fi |
| 8358 | ;; |
| 8359 | |
| 8360 | *) |
| 8361 | lt_prog_compiler_pic='-fPIC' |
| 8362 | ;; |
| 8363 | esac |
| 8364 | |
| 8365 | case $cc_basename in |
| 8366 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8367 | lt_prog_compiler_wl='-Xlinker ' |
| 8368 | if test -n "$lt_prog_compiler_pic"; then |
| 8369 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8370 | fi |
| 8371 | ;; |
| 8372 | esac |
| 8373 | else |
| 8374 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8375 | case $host_os in |
| 8376 | aix*) |
| 8377 | lt_prog_compiler_wl='-Wl,' |
| 8378 | if test "$host_cpu" = ia64; then |
| 8379 | # AIX 5 now supports IA64 processor |
| 8380 | lt_prog_compiler_static='-Bstatic' |
| 8381 | else |
| 8382 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8383 | fi |
| 8384 | ;; |
| 8385 | |
| 8386 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8387 | # This hack is so that the source file can tell whether it is being |
| 8388 | # built for inclusion in a dll (and should export symbols for example). |
| 8389 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8390 | ;; |
| 8391 | |
| 8392 | hpux9* | hpux10* | hpux11*) |
| 8393 | lt_prog_compiler_wl='-Wl,' |
| 8394 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8395 | # not for PA HP-UX. |
| 8396 | case $host_cpu in |
| 8397 | hppa*64*|ia64*) |
| 8398 | # +Z the default |
| 8399 | ;; |
| 8400 | *) |
| 8401 | lt_prog_compiler_pic='+Z' |
| 8402 | ;; |
| 8403 | esac |
| 8404 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8405 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8406 | ;; |
| 8407 | |
| 8408 | irix5* | irix6* | nonstopux*) |
| 8409 | lt_prog_compiler_wl='-Wl,' |
| 8410 | # PIC (with -KPIC) is the default. |
| 8411 | lt_prog_compiler_static='-non_shared' |
| 8412 | ;; |
| 8413 | |
| 8414 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8415 | case $cc_basename in |
| 8416 | # old Intel for x86_64 which still supported -KPIC. |
| 8417 | ecc*) |
| 8418 | lt_prog_compiler_wl='-Wl,' |
| 8419 | lt_prog_compiler_pic='-KPIC' |
| 8420 | lt_prog_compiler_static='-static' |
| 8421 | ;; |
| 8422 | # icc used to be incompatible with GCC. |
| 8423 | # ICC 10 doesn't accept -KPIC any more. |
| 8424 | icc* | ifort*) |
| 8425 | lt_prog_compiler_wl='-Wl,' |
| 8426 | lt_prog_compiler_pic='-fPIC' |
| 8427 | lt_prog_compiler_static='-static' |
| 8428 | ;; |
| 8429 | # Lahey Fortran 8.1. |
| 8430 | lf95*) |
| 8431 | lt_prog_compiler_wl='-Wl,' |
| 8432 | lt_prog_compiler_pic='--shared' |
| 8433 | lt_prog_compiler_static='--static' |
| 8434 | ;; |
| 8435 | nagfor*) |
| 8436 | # NAG Fortran compiler |
| 8437 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8438 | lt_prog_compiler_pic='-PIC' |
| 8439 | lt_prog_compiler_static='-Bstatic' |
| 8440 | ;; |
| 8441 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8442 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8443 | # which looks to be a dead project) |
| 8444 | lt_prog_compiler_wl='-Wl,' |
| 8445 | lt_prog_compiler_pic='-fpic' |
| 8446 | lt_prog_compiler_static='-Bstatic' |
| 8447 | ;; |
| 8448 | ccc*) |
| 8449 | lt_prog_compiler_wl='-Wl,' |
| 8450 | # All Alpha code is PIC. |
| 8451 | lt_prog_compiler_static='-non_shared' |
| 8452 | ;; |
| 8453 | xl* | bgxl* | bgf* | mpixl*) |
| 8454 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8455 | lt_prog_compiler_wl='-Wl,' |
| 8456 | lt_prog_compiler_pic='-qpic' |
| 8457 | lt_prog_compiler_static='-qstaticlink' |
| 8458 | ;; |
| 8459 | *) |
| 8460 | case `$CC -V 2>&1 | sed 5q` in |
| 8461 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8462 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8463 | lt_prog_compiler_pic='-KPIC' |
| 8464 | lt_prog_compiler_static='-Bstatic' |
| 8465 | lt_prog_compiler_wl='' |
| 8466 | ;; |
| 8467 | *Sun\ F* | *Sun*Fortran*) |
| 8468 | lt_prog_compiler_pic='-KPIC' |
| 8469 | lt_prog_compiler_static='-Bstatic' |
| 8470 | lt_prog_compiler_wl='-Qoption ld ' |
| 8471 | ;; |
| 8472 | *Sun\ C*) |
| 8473 | # Sun C 5.9 |
| 8474 | lt_prog_compiler_pic='-KPIC' |
| 8475 | lt_prog_compiler_static='-Bstatic' |
| 8476 | lt_prog_compiler_wl='-Wl,' |
| 8477 | ;; |
| 8478 | *Intel*\ [CF]*Compiler*) |
| 8479 | lt_prog_compiler_wl='-Wl,' |
| 8480 | lt_prog_compiler_pic='-fPIC' |
| 8481 | lt_prog_compiler_static='-static' |
| 8482 | ;; |
| 8483 | *Portland\ Group*) |
| 8484 | lt_prog_compiler_wl='-Wl,' |
| 8485 | lt_prog_compiler_pic='-fpic' |
| 8486 | lt_prog_compiler_static='-Bstatic' |
| 8487 | ;; |
| 8488 | esac |
| 8489 | ;; |
| 8490 | esac |
| 8491 | ;; |
| 8492 | |
| 8493 | newsos6) |
| 8494 | lt_prog_compiler_pic='-KPIC' |
| 8495 | lt_prog_compiler_static='-Bstatic' |
| 8496 | ;; |
| 8497 | |
| 8498 | *nto* | *qnx*) |
| 8499 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8500 | # it will coredump. |
| 8501 | lt_prog_compiler_pic='-fPIC -shared' |
| 8502 | ;; |
| 8503 | |
| 8504 | osf3* | osf4* | osf5*) |
| 8505 | lt_prog_compiler_wl='-Wl,' |
| 8506 | # All OSF/1 code is PIC. |
| 8507 | lt_prog_compiler_static='-non_shared' |
| 8508 | ;; |
| 8509 | |
| 8510 | rdos*) |
| 8511 | lt_prog_compiler_static='-non_shared' |
| 8512 | ;; |
| 8513 | |
| 8514 | solaris*) |
| 8515 | lt_prog_compiler_pic='-KPIC' |
| 8516 | lt_prog_compiler_static='-Bstatic' |
| 8517 | case $cc_basename in |
| 8518 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8519 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8520 | *) |
| 8521 | lt_prog_compiler_wl='-Wl,';; |
| 8522 | esac |
| 8523 | ;; |
| 8524 | |
| 8525 | sunos4*) |
| 8526 | lt_prog_compiler_wl='-Qoption ld ' |
| 8527 | lt_prog_compiler_pic='-PIC' |
| 8528 | lt_prog_compiler_static='-Bstatic' |
| 8529 | ;; |
| 8530 | |
| 8531 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8532 | lt_prog_compiler_wl='-Wl,' |
| 8533 | lt_prog_compiler_pic='-KPIC' |
| 8534 | lt_prog_compiler_static='-Bstatic' |
| 8535 | ;; |
| 8536 | |
| 8537 | sysv4*MP*) |
| 8538 | if test -d /usr/nec ;then |
| 8539 | lt_prog_compiler_pic='-Kconform_pic' |
| 8540 | lt_prog_compiler_static='-Bstatic' |
| 8541 | fi |
| 8542 | ;; |
| 8543 | |
| 8544 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8545 | lt_prog_compiler_wl='-Wl,' |
| 8546 | lt_prog_compiler_pic='-KPIC' |
| 8547 | lt_prog_compiler_static='-Bstatic' |
| 8548 | ;; |
| 8549 | |
| 8550 | unicos*) |
| 8551 | lt_prog_compiler_wl='-Wl,' |
| 8552 | lt_prog_compiler_can_build_shared=no |
| 8553 | ;; |
| 8554 | |
| 8555 | uts4*) |
| 8556 | lt_prog_compiler_pic='-pic' |
| 8557 | lt_prog_compiler_static='-Bstatic' |
| 8558 | ;; |
| 8559 | |
| 8560 | *) |
| 8561 | lt_prog_compiler_can_build_shared=no |
| 8562 | ;; |
| 8563 | esac |
| 8564 | fi |
| 8565 | |
| 8566 | case $host_os in |
| 8567 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8568 | *djgpp*) |
| 8569 | lt_prog_compiler_pic= |
| 8570 | ;; |
| 8571 | *) |
| 8572 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8573 | ;; |
| 8574 | esac |
| 8575 | |
| 8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8577 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8578 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8579 | $as_echo_n "(cached) " >&6 |
| 8580 | else |
| 8581 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8582 | fi |
| 8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8584 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8585 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8586 | |
| 8587 | # |
| 8588 | # Check to make sure the PIC flag actually works. |
| 8589 | # |
| 8590 | if test -n "$lt_prog_compiler_pic"; then |
| 8591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8592 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8593 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8594 | $as_echo_n "(cached) " >&6 |
| 8595 | else |
| 8596 | lt_cv_prog_compiler_pic_works=no |
| 8597 | ac_outfile=conftest.$ac_objext |
| 8598 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8599 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8600 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8601 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8602 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8603 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8604 | # The option is referenced via a variable to avoid confusing sed. |
| 8605 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8606 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8607 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8608 | -e 's:$: $lt_compiler_flag:'` |
| 8609 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8610 | (eval "$lt_compile" 2>conftest.err) |
| 8611 | ac_status=$? |
| 8612 | cat conftest.err >&5 |
| 8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8614 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8615 | # The compiler can only warn and ignore the option if not recognized |
| 8616 | # So say no if there are warnings other than the usual output. |
| 8617 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8618 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8619 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8620 | lt_cv_prog_compiler_pic_works=yes |
| 8621 | fi |
| 8622 | fi |
| 8623 | $RM conftest* |
| 8624 | |
| 8625 | fi |
| 8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8627 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8628 | |
| 8629 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8630 | case $lt_prog_compiler_pic in |
| 8631 | "" | " "*) ;; |
| 8632 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8633 | esac |
| 8634 | else |
| 8635 | lt_prog_compiler_pic= |
| 8636 | lt_prog_compiler_can_build_shared=no |
| 8637 | fi |
| 8638 | |
| 8639 | fi |
| 8640 | |
| 8641 | |
| 8642 | |
| 8643 | |
| 8644 | |
| 8645 | |
| 8646 | |
| 8647 | |
| 8648 | |
| 8649 | |
| 8650 | |
| 8651 | # |
| 8652 | # Check to make sure the static flag actually works. |
| 8653 | # |
| 8654 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8656 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8657 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8658 | $as_echo_n "(cached) " >&6 |
| 8659 | else |
| 8660 | lt_cv_prog_compiler_static_works=no |
| 8661 | save_LDFLAGS="$LDFLAGS" |
| 8662 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8663 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8664 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8665 | # The linker can only warn and ignore the option if not recognized |
| 8666 | # So say no if there are warnings |
| 8667 | if test -s conftest.err; then |
| 8668 | # Append any errors to the config.log. |
| 8669 | cat conftest.err 1>&5 |
| 8670 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8671 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8672 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8673 | lt_cv_prog_compiler_static_works=yes |
| 8674 | fi |
| 8675 | else |
| 8676 | lt_cv_prog_compiler_static_works=yes |
| 8677 | fi |
| 8678 | fi |
| 8679 | $RM -r conftest* |
| 8680 | LDFLAGS="$save_LDFLAGS" |
| 8681 | |
| 8682 | fi |
| 8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8684 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 8685 | |
| 8686 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 8687 | : |
| 8688 | else |
| 8689 | lt_prog_compiler_static= |
| 8690 | fi |
| 8691 | |
| 8692 | |
| 8693 | |
| 8694 | |
| 8695 | |
| 8696 | |
| 8697 | |
| 8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8699 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8700 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8701 | $as_echo_n "(cached) " >&6 |
| 8702 | else |
| 8703 | lt_cv_prog_compiler_c_o=no |
| 8704 | $RM -r conftest 2>/dev/null |
| 8705 | mkdir conftest |
| 8706 | cd conftest |
| 8707 | mkdir out |
| 8708 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8709 | |
| 8710 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8711 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8712 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8713 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8714 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8715 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8716 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8717 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8718 | -e 's:$: $lt_compiler_flag:'` |
| 8719 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8720 | (eval "$lt_compile" 2>out/conftest.err) |
| 8721 | ac_status=$? |
| 8722 | cat out/conftest.err >&5 |
| 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8724 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8725 | then |
| 8726 | # The compiler can only warn and ignore the option if not recognized |
| 8727 | # So say no if there are warnings |
| 8728 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8729 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8730 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8731 | lt_cv_prog_compiler_c_o=yes |
| 8732 | fi |
| 8733 | fi |
| 8734 | chmod u+w . 2>&5 |
| 8735 | $RM conftest* |
| 8736 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8737 | # template instantiation |
| 8738 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8739 | $RM out/* && rmdir out |
| 8740 | cd .. |
| 8741 | $RM -r conftest |
| 8742 | $RM conftest* |
| 8743 | |
| 8744 | fi |
| 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8746 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8747 | |
| 8748 | |
| 8749 | |
| 8750 | |
| 8751 | |
| 8752 | |
| 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8754 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8755 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8756 | $as_echo_n "(cached) " >&6 |
| 8757 | else |
| 8758 | lt_cv_prog_compiler_c_o=no |
| 8759 | $RM -r conftest 2>/dev/null |
| 8760 | mkdir conftest |
| 8761 | cd conftest |
| 8762 | mkdir out |
| 8763 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8764 | |
| 8765 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8766 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8767 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8768 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8769 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8770 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8771 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8772 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8773 | -e 's:$: $lt_compiler_flag:'` |
| 8774 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8775 | (eval "$lt_compile" 2>out/conftest.err) |
| 8776 | ac_status=$? |
| 8777 | cat out/conftest.err >&5 |
| 8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8779 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8780 | then |
| 8781 | # The compiler can only warn and ignore the option if not recognized |
| 8782 | # So say no if there are warnings |
| 8783 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8784 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8785 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8786 | lt_cv_prog_compiler_c_o=yes |
| 8787 | fi |
| 8788 | fi |
| 8789 | chmod u+w . 2>&5 |
| 8790 | $RM conftest* |
| 8791 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8792 | # template instantiation |
| 8793 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8794 | $RM out/* && rmdir out |
| 8795 | cd .. |
| 8796 | $RM -r conftest |
| 8797 | $RM conftest* |
| 8798 | |
| 8799 | fi |
| 8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8801 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8802 | |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | hard_links="nottested" |
| 8807 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8808 | # do not overwrite the value of need_locks provided by the user |
| 8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8810 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 8811 | hard_links=yes |
| 8812 | $RM conftest* |
| 8813 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8814 | touch conftest.a |
| 8815 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8816 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8818 | $as_echo "$hard_links" >&6; } |
| 8819 | if test "$hard_links" = no; then |
| 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8821 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8822 | need_locks=warn |
| 8823 | fi |
| 8824 | else |
| 8825 | need_locks=no |
| 8826 | fi |
| 8827 | |
| 8828 | |
| 8829 | |
| 8830 | |
| 8831 | |
| 8832 | |
| 8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8834 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 8835 | |
| 8836 | runpath_var= |
| 8837 | allow_undefined_flag= |
| 8838 | always_export_symbols=no |
| 8839 | archive_cmds= |
| 8840 | archive_expsym_cmds= |
| 8841 | compiler_needs_object=no |
| 8842 | enable_shared_with_static_runtimes=no |
| 8843 | export_dynamic_flag_spec= |
| 8844 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8845 | hardcode_automatic=no |
| 8846 | hardcode_direct=no |
| 8847 | hardcode_direct_absolute=no |
| 8848 | hardcode_libdir_flag_spec= |
| 8849 | hardcode_libdir_separator= |
| 8850 | hardcode_minus_L=no |
| 8851 | hardcode_shlibpath_var=unsupported |
| 8852 | inherit_rpath=no |
| 8853 | link_all_deplibs=unknown |
| 8854 | module_cmds= |
| 8855 | module_expsym_cmds= |
| 8856 | old_archive_from_new_cmds= |
| 8857 | old_archive_from_expsyms_cmds= |
| 8858 | thread_safe_flag_spec= |
| 8859 | whole_archive_flag_spec= |
| 8860 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8861 | # included in the symbol list |
| 8862 | include_expsyms= |
| 8863 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8864 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8865 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8866 | # as well as any symbol that contains `d'. |
| 8867 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 8868 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8869 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8870 | # the symbol is explicitly referenced. Since portable code cannot |
| 8871 | # rely on this symbol name, it's probably fine to never include it in |
| 8872 | # preloaded symbol tables. |
| 8873 | # Exclude shared library initialization/finalization symbols. |
| 8874 | extract_expsyms_cmds= |
| 8875 | |
| 8876 | case $host_os in |
| 8877 | cygwin* | mingw* | pw32* | cegcc*) |
| 8878 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8879 | # When not using gcc, we currently assume that we are using |
| 8880 | # Microsoft Visual C++. |
| 8881 | if test "$GCC" != yes; then |
| 8882 | with_gnu_ld=no |
| 8883 | fi |
| 8884 | ;; |
| 8885 | interix*) |
| 8886 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8887 | with_gnu_ld=yes |
| 8888 | ;; |
| 8889 | openbsd*) |
| 8890 | with_gnu_ld=no |
| 8891 | ;; |
| 8892 | esac |
| 8893 | |
| 8894 | ld_shlibs=yes |
| 8895 | |
| 8896 | # On some targets, GNU ld is compatible enough with the native linker |
| 8897 | # that we're better off using the native interface for both. |
| 8898 | lt_use_gnu_ld_interface=no |
| 8899 | if test "$with_gnu_ld" = yes; then |
| 8900 | case $host_os in |
| 8901 | aix*) |
| 8902 | # The AIX port of GNU ld has always aspired to compatibility |
| 8903 | # with the native linker. However, as the warning in the GNU ld |
| 8904 | # block says, versions before 2.19.5* couldn't really create working |
| 8905 | # shared libraries, regardless of the interface used. |
| 8906 | case `$LD -v 2>&1` in |
| 8907 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 8908 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 8909 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 8910 | *) |
| 8911 | lt_use_gnu_ld_interface=yes |
| 8912 | ;; |
| 8913 | esac |
| 8914 | ;; |
| 8915 | *) |
| 8916 | lt_use_gnu_ld_interface=yes |
| 8917 | ;; |
| 8918 | esac |
| 8919 | fi |
| 8920 | |
| 8921 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 8922 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8923 | wlarc='${wl}' |
| 8924 | |
| 8925 | # Set some defaults for GNU ld with shared library support. These |
| 8926 | # are reset later if shared libraries are not supported. Putting them |
| 8927 | # here allows them to be overridden if necessary. |
| 8928 | runpath_var=LD_RUN_PATH |
| 8929 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8930 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8931 | # ancient GNU ld didn't support --whole-archive et. al. |
| 8932 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8933 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8934 | else |
| 8935 | whole_archive_flag_spec= |
| 8936 | fi |
| 8937 | supports_anon_versioning=no |
| 8938 | case `$LD -v 2>&1` in |
| 8939 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 8940 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8941 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8942 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8943 | *\ 2.11.*) ;; # other 2.11 versions |
| 8944 | *) supports_anon_versioning=yes ;; |
| 8945 | esac |
| 8946 | |
| 8947 | # See if GNU ld supports shared libraries. |
| 8948 | case $host_os in |
| 8949 | aix[3-9]*) |
| 8950 | # On AIX/PPC, the GNU linker is very broken |
| 8951 | if test "$host_cpu" != ia64; then |
| 8952 | ld_shlibs=no |
| 8953 | cat <<_LT_EOF 1>&2 |
| 8954 | |
| 8955 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 8956 | *** to be unable to reliably create shared libraries on AIX. |
| 8957 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8958 | *** really care for shared libraries, you may want to install binutils |
| 8959 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8960 | *** You will then need to restart the configuration process. |
| 8961 | |
| 8962 | _LT_EOF |
| 8963 | fi |
| 8964 | ;; |
| 8965 | |
| 8966 | amigaos*) |
| 8967 | case $host_cpu in |
| 8968 | powerpc) |
| 8969 | # see comment about AmigaOS4 .so support |
| 8970 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8971 | archive_expsym_cmds='' |
| 8972 | ;; |
| 8973 | m68k) |
| 8974 | 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)' |
| 8975 | hardcode_libdir_flag_spec='-L$libdir' |
| 8976 | hardcode_minus_L=yes |
| 8977 | ;; |
| 8978 | esac |
| 8979 | ;; |
| 8980 | |
| 8981 | beos*) |
| 8982 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8983 | allow_undefined_flag=unsupported |
| 8984 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8985 | # support --undefined. This deserves some investigation. FIXME |
| 8986 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8987 | else |
| 8988 | ld_shlibs=no |
| 8989 | fi |
| 8990 | ;; |
| 8991 | |
| 8992 | cygwin* | mingw* | pw32* | cegcc*) |
| 8993 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8994 | # as there is no search path for DLLs. |
| 8995 | hardcode_libdir_flag_spec='-L$libdir' |
| 8996 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 8997 | allow_undefined_flag=unsupported |
| 8998 | always_export_symbols=no |
| 8999 | enable_shared_with_static_runtimes=yes |
| 9000 | 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' |
| 9001 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9002 | |
| 9003 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9004 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9005 | # If the export-symbols file already is a .def file (1st line |
| 9006 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9007 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9008 | cp $export_symbols $output_objdir/$soname.def; |
| 9009 | else |
| 9010 | echo EXPORTS > $output_objdir/$soname.def; |
| 9011 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9012 | fi~ |
| 9013 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9014 | else |
| 9015 | ld_shlibs=no |
| 9016 | fi |
| 9017 | ;; |
| 9018 | |
| 9019 | haiku*) |
| 9020 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9021 | link_all_deplibs=yes |
| 9022 | ;; |
| 9023 | |
| 9024 | interix[3-9]*) |
| 9025 | hardcode_direct=no |
| 9026 | hardcode_shlibpath_var=no |
| 9027 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9028 | export_dynamic_flag_spec='${wl}-E' |
| 9029 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9030 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9031 | # default) and relocated if they conflict, which is a slow very memory |
| 9032 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9033 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9034 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9035 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9036 | 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' |
| 9037 | ;; |
| 9038 | |
| 9039 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9040 | tmp_diet=no |
| 9041 | if test "$host_os" = linux-dietlibc; then |
| 9042 | case $cc_basename in |
| 9043 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9044 | esac |
| 9045 | fi |
| 9046 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9047 | && test "$tmp_diet" = no |
| 9048 | then |
| 9049 | tmp_addflag=' $pic_flag' |
| 9050 | tmp_sharedflag='-shared' |
| 9051 | case $cc_basename,$host_cpu in |
| 9052 | pgcc*) # Portland Group C compiler |
| 9053 | 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' |
| 9054 | tmp_addflag=' $pic_flag' |
| 9055 | ;; |
| 9056 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9057 | # Portland Group f77 and f90 compilers |
| 9058 | 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' |
| 9059 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9060 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9061 | tmp_addflag=' -i_dynamic' ;; |
| 9062 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9063 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9064 | ifc* | ifort*) # Intel Fortran compiler |
| 9065 | tmp_addflag=' -nofor_main' ;; |
| 9066 | lf95*) # Lahey Fortran 8.1 |
| 9067 | whole_archive_flag_spec= |
| 9068 | tmp_sharedflag='--shared' ;; |
| 9069 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9070 | tmp_sharedflag='-qmkshrobj' |
| 9071 | tmp_addflag= ;; |
| 9072 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9073 | 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' |
| 9074 | compiler_needs_object=yes |
| 9075 | ;; |
| 9076 | esac |
| 9077 | case `$CC -V 2>&1 | sed 5q` in |
| 9078 | *Sun\ C*) # Sun C 5.9 |
| 9079 | 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' |
| 9080 | compiler_needs_object=yes |
| 9081 | tmp_sharedflag='-G' ;; |
| 9082 | *Sun\ F*) # Sun Fortran 8.3 |
| 9083 | tmp_sharedflag='-G' ;; |
| 9084 | esac |
| 9085 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9086 | |
| 9087 | if test "x$supports_anon_versioning" = xyes; then |
| 9088 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9089 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9090 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9091 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9092 | fi |
| 9093 | |
| 9094 | case $cc_basename in |
| 9095 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9096 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9097 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9098 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9099 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9100 | if test "x$supports_anon_versioning" = xyes; then |
| 9101 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9102 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9103 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9104 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9105 | fi |
| 9106 | ;; |
| 9107 | esac |
| 9108 | else |
| 9109 | ld_shlibs=no |
| 9110 | fi |
| 9111 | ;; |
| 9112 | |
| 9113 | netbsd*) |
| 9114 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9115 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9116 | wlarc= |
| 9117 | else |
| 9118 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9119 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9120 | fi |
| 9121 | ;; |
| 9122 | |
| 9123 | solaris*) |
| 9124 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9125 | ld_shlibs=no |
| 9126 | cat <<_LT_EOF 1>&2 |
| 9127 | |
| 9128 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9129 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9130 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9131 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9132 | *** your PATH or compiler configuration so that the native linker is |
| 9133 | *** used, and then restart. |
| 9134 | |
| 9135 | _LT_EOF |
| 9136 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9137 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9138 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9139 | else |
| 9140 | ld_shlibs=no |
| 9141 | fi |
| 9142 | ;; |
| 9143 | |
| 9144 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9145 | case `$LD -v 2>&1` in |
| 9146 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9147 | ld_shlibs=no |
| 9148 | cat <<_LT_EOF 1>&2 |
| 9149 | |
| 9150 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9151 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9152 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9153 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9154 | *** your PATH or compiler configuration so that the native linker is |
| 9155 | *** used, and then restart. |
| 9156 | |
| 9157 | _LT_EOF |
| 9158 | ;; |
| 9159 | *) |
| 9160 | # For security reasons, it is highly recommended that you always |
| 9161 | # use absolute paths for naming shared libraries, and exclude the |
| 9162 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9163 | # requires that you compile everything twice, which is a pain. |
| 9164 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9165 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9166 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9167 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9168 | else |
| 9169 | ld_shlibs=no |
| 9170 | fi |
| 9171 | ;; |
| 9172 | esac |
| 9173 | ;; |
| 9174 | |
| 9175 | sunos4*) |
| 9176 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9177 | wlarc= |
| 9178 | hardcode_direct=yes |
| 9179 | hardcode_shlibpath_var=no |
| 9180 | ;; |
| 9181 | |
| 9182 | *) |
| 9183 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9184 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9185 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9186 | else |
| 9187 | ld_shlibs=no |
| 9188 | fi |
| 9189 | ;; |
| 9190 | esac |
| 9191 | |
| 9192 | if test "$ld_shlibs" = no; then |
| 9193 | runpath_var= |
| 9194 | hardcode_libdir_flag_spec= |
| 9195 | export_dynamic_flag_spec= |
| 9196 | whole_archive_flag_spec= |
| 9197 | fi |
| 9198 | else |
| 9199 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9200 | case $host_os in |
| 9201 | aix3*) |
| 9202 | allow_undefined_flag=unsupported |
| 9203 | always_export_symbols=yes |
| 9204 | 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' |
| 9205 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9206 | # are no directories specified by -L. |
| 9207 | hardcode_minus_L=yes |
| 9208 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9209 | # Neither direct hardcoding nor static linking is supported with a |
| 9210 | # broken collect2. |
| 9211 | hardcode_direct=unsupported |
| 9212 | fi |
| 9213 | ;; |
| 9214 | |
| 9215 | aix[4-9]*) |
| 9216 | if test "$host_cpu" = ia64; then |
| 9217 | # On IA64, the linker does run time linking by default, so we don't |
| 9218 | # have to do anything special. |
| 9219 | aix_use_runtimelinking=no |
| 9220 | exp_sym_flag='-Bexport' |
| 9221 | no_entry_flag="" |
| 9222 | else |
| 9223 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9224 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9225 | # Also, AIX nm treats weak defined symbols like other global |
| 9226 | # defined symbols, whereas GNU nm marks them as "W". |
| 9227 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9228 | 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' |
| 9229 | else |
| 9230 | 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' |
| 9231 | fi |
| 9232 | aix_use_runtimelinking=no |
| 9233 | |
| 9234 | # Test if we are trying to use run time linking or normal |
| 9235 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9236 | # need to do runtime linking. |
| 9237 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9238 | for ld_flag in $LDFLAGS; do |
| 9239 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9240 | aix_use_runtimelinking=yes |
| 9241 | break |
| 9242 | fi |
| 9243 | done |
| 9244 | ;; |
| 9245 | esac |
| 9246 | |
| 9247 | exp_sym_flag='-bexport' |
| 9248 | no_entry_flag='-bnoentry' |
| 9249 | fi |
| 9250 | |
| 9251 | # When large executables or shared objects are built, AIX ld can |
| 9252 | # have problems creating the table of contents. If linking a library |
| 9253 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9254 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9255 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9256 | |
| 9257 | archive_cmds='' |
| 9258 | hardcode_direct=yes |
| 9259 | hardcode_direct_absolute=yes |
| 9260 | hardcode_libdir_separator=':' |
| 9261 | link_all_deplibs=yes |
| 9262 | file_list_spec='${wl}-f,' |
| 9263 | |
| 9264 | if test "$GCC" = yes; then |
| 9265 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9266 | # We only want to do this on AIX 4.2 and lower, the check |
| 9267 | # below for broken collect2 doesn't work under 4.3+ |
| 9268 | collect2name=`${CC} -print-prog-name=collect2` |
| 9269 | if test -f "$collect2name" && |
| 9270 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9271 | then |
| 9272 | # We have reworked collect2 |
| 9273 | : |
| 9274 | else |
| 9275 | # We have old collect2 |
| 9276 | hardcode_direct=unsupported |
| 9277 | # It fails to find uninstalled libraries when the uninstalled |
| 9278 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9279 | # to unsupported forces relinking |
| 9280 | hardcode_minus_L=yes |
| 9281 | hardcode_libdir_flag_spec='-L$libdir' |
| 9282 | hardcode_libdir_separator= |
| 9283 | fi |
| 9284 | ;; |
| 9285 | esac |
| 9286 | shared_flag='-shared' |
| 9287 | if test "$aix_use_runtimelinking" = yes; then |
| 9288 | shared_flag="$shared_flag "'${wl}-G' |
| 9289 | fi |
| 9290 | else |
| 9291 | # not using gcc |
| 9292 | if test "$host_cpu" = ia64; then |
| 9293 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9294 | # chokes on -Wl,-G. The following line is correct: |
| 9295 | shared_flag='-G' |
| 9296 | else |
| 9297 | if test "$aix_use_runtimelinking" = yes; then |
| 9298 | shared_flag='${wl}-G' |
| 9299 | else |
| 9300 | shared_flag='${wl}-bM:SRE' |
| 9301 | fi |
| 9302 | fi |
| 9303 | fi |
| 9304 | |
| 9305 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9306 | # It seems that -bexpall does not export symbols beginning with |
| 9307 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9308 | always_export_symbols=yes |
| 9309 | if test "$aix_use_runtimelinking" = yes; then |
| 9310 | # Warning - without using the other runtime loading flags (-brtl), |
| 9311 | # -berok will link without error, but may produce a broken library. |
| 9312 | allow_undefined_flag='-berok' |
| 9313 | # Determine the default libpath from the value encoded in an |
| 9314 | # empty executable. |
| 9315 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9316 | aix_libpath=$lt_cv_aix_libpath |
| 9317 | else |
| 9318 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9319 | $as_echo_n "(cached) " >&6 |
| 9320 | else |
| 9321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9322 | /* end confdefs.h. */ |
| 9323 | |
| 9324 | int |
| 9325 | main () |
| 9326 | { |
| 9327 | |
| 9328 | ; |
| 9329 | return 0; |
| 9330 | } |
| 9331 | _ACEOF |
| 9332 | if ac_fn_c_try_link "$LINENO"; then : |
| 9333 | |
| 9334 | lt_aix_libpath_sed=' |
| 9335 | /Import File Strings/,/^$/ { |
| 9336 | /^0/ { |
| 9337 | s/^0 *\([^ ]*\) *$/\1/ |
| 9338 | p |
| 9339 | } |
| 9340 | }' |
| 9341 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9342 | # Check for a 64-bit object if we didn't find anything. |
| 9343 | if test -z "$lt_cv_aix_libpath_"; then |
| 9344 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9345 | fi |
| 9346 | fi |
| 9347 | rm -f core conftest.err conftest.$ac_objext \ |
| 9348 | conftest$ac_exeext conftest.$ac_ext |
| 9349 | if test -z "$lt_cv_aix_libpath_"; then |
| 9350 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9351 | fi |
| 9352 | |
| 9353 | fi |
| 9354 | |
| 9355 | aix_libpath=$lt_cv_aix_libpath_ |
| 9356 | fi |
| 9357 | |
| 9358 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9359 | 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" |
| 9360 | else |
| 9361 | if test "$host_cpu" = ia64; then |
| 9362 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9363 | allow_undefined_flag="-z nodefs" |
| 9364 | 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" |
| 9365 | else |
| 9366 | # Determine the default libpath from the value encoded in an |
| 9367 | # empty executable. |
| 9368 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9369 | aix_libpath=$lt_cv_aix_libpath |
| 9370 | else |
| 9371 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9372 | $as_echo_n "(cached) " >&6 |
| 9373 | else |
| 9374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9375 | /* end confdefs.h. */ |
| 9376 | |
| 9377 | int |
| 9378 | main () |
| 9379 | { |
| 9380 | |
| 9381 | ; |
| 9382 | return 0; |
| 9383 | } |
| 9384 | _ACEOF |
| 9385 | if ac_fn_c_try_link "$LINENO"; then : |
| 9386 | |
| 9387 | lt_aix_libpath_sed=' |
| 9388 | /Import File Strings/,/^$/ { |
| 9389 | /^0/ { |
| 9390 | s/^0 *\([^ ]*\) *$/\1/ |
| 9391 | p |
| 9392 | } |
| 9393 | }' |
| 9394 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9395 | # Check for a 64-bit object if we didn't find anything. |
| 9396 | if test -z "$lt_cv_aix_libpath_"; then |
| 9397 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9398 | fi |
| 9399 | fi |
| 9400 | rm -f core conftest.err conftest.$ac_objext \ |
| 9401 | conftest$ac_exeext conftest.$ac_ext |
| 9402 | if test -z "$lt_cv_aix_libpath_"; then |
| 9403 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9404 | fi |
| 9405 | |
| 9406 | fi |
| 9407 | |
| 9408 | aix_libpath=$lt_cv_aix_libpath_ |
| 9409 | fi |
| 9410 | |
| 9411 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9412 | # Warning - without using the other run time loading flags, |
| 9413 | # -berok will link without error, but may produce a broken library. |
| 9414 | no_undefined_flag=' ${wl}-bernotok' |
| 9415 | allow_undefined_flag=' ${wl}-berok' |
| 9416 | if test "$with_gnu_ld" = yes; then |
| 9417 | # We only use this code for GNU lds that support --whole-archive. |
| 9418 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9419 | else |
| 9420 | # Exported symbols can be pulled into shared objects from archives |
| 9421 | whole_archive_flag_spec='$convenience' |
| 9422 | fi |
| 9423 | archive_cmds_need_lc=yes |
| 9424 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9425 | 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' |
| 9426 | fi |
| 9427 | fi |
| 9428 | ;; |
| 9429 | |
| 9430 | amigaos*) |
| 9431 | case $host_cpu in |
| 9432 | powerpc) |
| 9433 | # see comment about AmigaOS4 .so support |
| 9434 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9435 | archive_expsym_cmds='' |
| 9436 | ;; |
| 9437 | m68k) |
| 9438 | 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)' |
| 9439 | hardcode_libdir_flag_spec='-L$libdir' |
| 9440 | hardcode_minus_L=yes |
| 9441 | ;; |
| 9442 | esac |
| 9443 | ;; |
| 9444 | |
| 9445 | bsdi[45]*) |
| 9446 | export_dynamic_flag_spec=-rdynamic |
| 9447 | ;; |
| 9448 | |
| 9449 | cygwin* | mingw* | pw32* | cegcc*) |
| 9450 | # When not using gcc, we currently assume that we are using |
| 9451 | # Microsoft Visual C++. |
| 9452 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9453 | # no search path for DLLs. |
| 9454 | case $cc_basename in |
| 9455 | cl*) |
| 9456 | # Native MSVC |
| 9457 | hardcode_libdir_flag_spec=' ' |
| 9458 | allow_undefined_flag=unsupported |
| 9459 | always_export_symbols=yes |
| 9460 | file_list_spec='@' |
| 9461 | # Tell ltmain to make .lib files, not .a files. |
| 9462 | libext=lib |
| 9463 | # Tell ltmain to make .dll files, not .so files. |
| 9464 | shrext_cmds=".dll" |
| 9465 | # FIXME: Setting linknames here is a bad hack. |
| 9466 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9467 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9468 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9469 | else |
| 9470 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9471 | fi~ |
| 9472 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9473 | linknames=' |
| 9474 | # The linker will not automatically build a static lib if we build a DLL. |
| 9475 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9476 | enable_shared_with_static_runtimes=yes |
| 9477 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9478 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9479 | # Don't use ranlib |
| 9480 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9481 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9482 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9483 | case $lt_outputfile in |
| 9484 | *.exe|*.EXE) ;; |
| 9485 | *) |
| 9486 | lt_outputfile="$lt_outputfile.exe" |
| 9487 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9488 | ;; |
| 9489 | esac~ |
| 9490 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9491 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9492 | $RM "$lt_outputfile.manifest"; |
| 9493 | fi' |
| 9494 | ;; |
| 9495 | *) |
| 9496 | # Assume MSVC wrapper |
| 9497 | hardcode_libdir_flag_spec=' ' |
| 9498 | allow_undefined_flag=unsupported |
| 9499 | # Tell ltmain to make .lib files, not .a files. |
| 9500 | libext=lib |
| 9501 | # Tell ltmain to make .dll files, not .so files. |
| 9502 | shrext_cmds=".dll" |
| 9503 | # FIXME: Setting linknames here is a bad hack. |
| 9504 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9505 | # The linker will automatically build a .lib file if we build a DLL. |
| 9506 | old_archive_from_new_cmds='true' |
| 9507 | # FIXME: Should let the user specify the lib program. |
| 9508 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9509 | enable_shared_with_static_runtimes=yes |
| 9510 | ;; |
| 9511 | esac |
| 9512 | ;; |
| 9513 | |
| 9514 | darwin* | rhapsody*) |
| 9515 | |
| 9516 | |
| 9517 | archive_cmds_need_lc=no |
| 9518 | hardcode_direct=no |
| 9519 | hardcode_automatic=yes |
| 9520 | hardcode_shlibpath_var=unsupported |
| 9521 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9522 | 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\"`' |
| 9523 | |
| 9524 | else |
| 9525 | whole_archive_flag_spec='' |
| 9526 | fi |
| 9527 | link_all_deplibs=yes |
| 9528 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9529 | case $cc_basename in |
| 9530 | ifort*) _lt_dar_can_shared=yes ;; |
| 9531 | *) _lt_dar_can_shared=$GCC ;; |
| 9532 | esac |
| 9533 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9534 | output_verbose_link_cmd=func_echo_all |
| 9535 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9536 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9537 | 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}" |
| 9538 | 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}" |
| 9539 | |
| 9540 | else |
| 9541 | ld_shlibs=no |
| 9542 | fi |
| 9543 | |
| 9544 | ;; |
| 9545 | |
| 9546 | dgux*) |
| 9547 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9548 | hardcode_libdir_flag_spec='-L$libdir' |
| 9549 | hardcode_shlibpath_var=no |
| 9550 | ;; |
| 9551 | |
| 9552 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9553 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9554 | # does not break anything, and helps significantly (at the cost of a little |
| 9555 | # extra space). |
| 9556 | freebsd2.2*) |
| 9557 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9558 | hardcode_libdir_flag_spec='-R$libdir' |
| 9559 | hardcode_direct=yes |
| 9560 | hardcode_shlibpath_var=no |
| 9561 | ;; |
| 9562 | |
| 9563 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9564 | freebsd2.*) |
| 9565 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9566 | hardcode_direct=yes |
| 9567 | hardcode_minus_L=yes |
| 9568 | hardcode_shlibpath_var=no |
| 9569 | ;; |
| 9570 | |
| 9571 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9572 | freebsd* | dragonfly*) |
| 9573 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9574 | hardcode_libdir_flag_spec='-R$libdir' |
| 9575 | hardcode_direct=yes |
| 9576 | hardcode_shlibpath_var=no |
| 9577 | ;; |
| 9578 | |
| 9579 | hpux9*) |
| 9580 | if test "$GCC" = yes; then |
| 9581 | 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' |
| 9582 | else |
| 9583 | 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' |
| 9584 | fi |
| 9585 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9586 | hardcode_libdir_separator=: |
| 9587 | hardcode_direct=yes |
| 9588 | |
| 9589 | # hardcode_minus_L: Not really in the search PATH, |
| 9590 | # but as the default location of the library. |
| 9591 | hardcode_minus_L=yes |
| 9592 | export_dynamic_flag_spec='${wl}-E' |
| 9593 | ;; |
| 9594 | |
| 9595 | hpux10*) |
| 9596 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9597 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9598 | else |
| 9599 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9600 | fi |
| 9601 | if test "$with_gnu_ld" = no; then |
| 9602 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9603 | hardcode_libdir_separator=: |
| 9604 | hardcode_direct=yes |
| 9605 | hardcode_direct_absolute=yes |
| 9606 | export_dynamic_flag_spec='${wl}-E' |
| 9607 | # hardcode_minus_L: Not really in the search PATH, |
| 9608 | # but as the default location of the library. |
| 9609 | hardcode_minus_L=yes |
| 9610 | fi |
| 9611 | ;; |
| 9612 | |
| 9613 | hpux11*) |
| 9614 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9615 | case $host_cpu in |
| 9616 | hppa*64*) |
| 9617 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9618 | ;; |
| 9619 | ia64*) |
| 9620 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9621 | ;; |
| 9622 | *) |
| 9623 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9624 | ;; |
| 9625 | esac |
| 9626 | else |
| 9627 | case $host_cpu in |
| 9628 | hppa*64*) |
| 9629 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9630 | ;; |
| 9631 | ia64*) |
| 9632 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9633 | ;; |
| 9634 | *) |
| 9635 | |
| 9636 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9637 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9639 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9640 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9641 | $as_echo_n "(cached) " >&6 |
| 9642 | else |
| 9643 | lt_cv_prog_compiler__b=no |
| 9644 | save_LDFLAGS="$LDFLAGS" |
| 9645 | LDFLAGS="$LDFLAGS -b" |
| 9646 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9647 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9648 | # The linker can only warn and ignore the option if not recognized |
| 9649 | # So say no if there are warnings |
| 9650 | if test -s conftest.err; then |
| 9651 | # Append any errors to the config.log. |
| 9652 | cat conftest.err 1>&5 |
| 9653 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9654 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9655 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9656 | lt_cv_prog_compiler__b=yes |
| 9657 | fi |
| 9658 | else |
| 9659 | lt_cv_prog_compiler__b=yes |
| 9660 | fi |
| 9661 | fi |
| 9662 | $RM -r conftest* |
| 9663 | LDFLAGS="$save_LDFLAGS" |
| 9664 | |
| 9665 | fi |
| 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9667 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9668 | |
| 9669 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9670 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9671 | else |
| 9672 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9673 | fi |
| 9674 | |
| 9675 | ;; |
| 9676 | esac |
| 9677 | fi |
| 9678 | if test "$with_gnu_ld" = no; then |
| 9679 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9680 | hardcode_libdir_separator=: |
| 9681 | |
| 9682 | case $host_cpu in |
| 9683 | hppa*64*|ia64*) |
| 9684 | hardcode_direct=no |
| 9685 | hardcode_shlibpath_var=no |
| 9686 | ;; |
| 9687 | *) |
| 9688 | hardcode_direct=yes |
| 9689 | hardcode_direct_absolute=yes |
| 9690 | export_dynamic_flag_spec='${wl}-E' |
| 9691 | |
| 9692 | # hardcode_minus_L: Not really in the search PATH, |
| 9693 | # but as the default location of the library. |
| 9694 | hardcode_minus_L=yes |
| 9695 | ;; |
| 9696 | esac |
| 9697 | fi |
| 9698 | ;; |
| 9699 | |
| 9700 | irix5* | irix6* | nonstopux*) |
| 9701 | if test "$GCC" = yes; then |
| 9702 | 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' |
| 9703 | # Try to use the -exported_symbol ld option, if it does not |
| 9704 | # work, assume that -exports_file does not work either and |
| 9705 | # implicitly export all symbols. |
| 9706 | # This should be the same for all languages, so no per-tag cache variable. |
| 9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9708 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 9709 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 9710 | $as_echo_n "(cached) " >&6 |
| 9711 | else |
| 9712 | save_LDFLAGS="$LDFLAGS" |
| 9713 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9715 | /* end confdefs.h. */ |
| 9716 | int foo (void) { return 0; } |
| 9717 | _ACEOF |
| 9718 | if ac_fn_c_try_link "$LINENO"; then : |
| 9719 | lt_cv_irix_exported_symbol=yes |
| 9720 | else |
| 9721 | lt_cv_irix_exported_symbol=no |
| 9722 | fi |
| 9723 | rm -f core conftest.err conftest.$ac_objext \ |
| 9724 | conftest$ac_exeext conftest.$ac_ext |
| 9725 | LDFLAGS="$save_LDFLAGS" |
| 9726 | fi |
| 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 9728 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 9729 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 9730 | 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' |
| 9731 | fi |
| 9732 | else |
| 9733 | 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' |
| 9734 | 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' |
| 9735 | fi |
| 9736 | archive_cmds_need_lc='no' |
| 9737 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9738 | hardcode_libdir_separator=: |
| 9739 | inherit_rpath=yes |
| 9740 | link_all_deplibs=yes |
| 9741 | ;; |
| 9742 | |
| 9743 | netbsd*) |
| 9744 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9745 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9746 | else |
| 9747 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9748 | fi |
| 9749 | hardcode_libdir_flag_spec='-R$libdir' |
| 9750 | hardcode_direct=yes |
| 9751 | hardcode_shlibpath_var=no |
| 9752 | ;; |
| 9753 | |
| 9754 | newsos6) |
| 9755 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9756 | hardcode_direct=yes |
| 9757 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9758 | hardcode_libdir_separator=: |
| 9759 | hardcode_shlibpath_var=no |
| 9760 | ;; |
| 9761 | |
| 9762 | *nto* | *qnx*) |
| 9763 | ;; |
| 9764 | |
| 9765 | openbsd*) |
| 9766 | if test -f /usr/libexec/ld.so; then |
| 9767 | hardcode_direct=yes |
| 9768 | hardcode_shlibpath_var=no |
| 9769 | hardcode_direct_absolute=yes |
| 9770 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9771 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9772 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9773 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9774 | export_dynamic_flag_spec='${wl}-E' |
| 9775 | else |
| 9776 | case $host_os in |
| 9777 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9778 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9779 | hardcode_libdir_flag_spec='-R$libdir' |
| 9780 | ;; |
| 9781 | *) |
| 9782 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9783 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9784 | ;; |
| 9785 | esac |
| 9786 | fi |
| 9787 | else |
| 9788 | ld_shlibs=no |
| 9789 | fi |
| 9790 | ;; |
| 9791 | |
| 9792 | os2*) |
| 9793 | hardcode_libdir_flag_spec='-L$libdir' |
| 9794 | hardcode_minus_L=yes |
| 9795 | allow_undefined_flag=unsupported |
| 9796 | 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' |
| 9797 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 9798 | ;; |
| 9799 | |
| 9800 | osf3*) |
| 9801 | if test "$GCC" = yes; then |
| 9802 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9803 | 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' |
| 9804 | else |
| 9805 | allow_undefined_flag=' -expect_unresolved \*' |
| 9806 | 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' |
| 9807 | fi |
| 9808 | archive_cmds_need_lc='no' |
| 9809 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9810 | hardcode_libdir_separator=: |
| 9811 | ;; |
| 9812 | |
| 9813 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9814 | if test "$GCC" = yes; then |
| 9815 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9816 | 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' |
| 9817 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9818 | else |
| 9819 | allow_undefined_flag=' -expect_unresolved \*' |
| 9820 | 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' |
| 9821 | 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~ |
| 9822 | $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' |
| 9823 | |
| 9824 | # Both c and cxx compiler support -rpath directly |
| 9825 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9826 | fi |
| 9827 | archive_cmds_need_lc='no' |
| 9828 | hardcode_libdir_separator=: |
| 9829 | ;; |
| 9830 | |
| 9831 | solaris*) |
| 9832 | no_undefined_flag=' -z defs' |
| 9833 | if test "$GCC" = yes; then |
| 9834 | wlarc='${wl}' |
| 9835 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9836 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9837 | $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' |
| 9838 | else |
| 9839 | case `$CC -V 2>&1` in |
| 9840 | *"Compilers 5.0"*) |
| 9841 | wlarc='' |
| 9842 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9843 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9844 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9845 | ;; |
| 9846 | *) |
| 9847 | wlarc='${wl}' |
| 9848 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9849 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9850 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9851 | ;; |
| 9852 | esac |
| 9853 | fi |
| 9854 | hardcode_libdir_flag_spec='-R$libdir' |
| 9855 | hardcode_shlibpath_var=no |
| 9856 | case $host_os in |
| 9857 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9858 | *) |
| 9859 | # The compiler driver will combine and reorder linker options, |
| 9860 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9861 | # but is careful enough not to reorder. |
| 9862 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9863 | if test "$GCC" = yes; then |
| 9864 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9865 | else |
| 9866 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9867 | fi |
| 9868 | ;; |
| 9869 | esac |
| 9870 | link_all_deplibs=yes |
| 9871 | ;; |
| 9872 | |
| 9873 | sunos4*) |
| 9874 | if test "x$host_vendor" = xsequent; then |
| 9875 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9876 | # files that make .init and .fini sections work. |
| 9877 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9878 | else |
| 9879 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9880 | fi |
| 9881 | hardcode_libdir_flag_spec='-L$libdir' |
| 9882 | hardcode_direct=yes |
| 9883 | hardcode_minus_L=yes |
| 9884 | hardcode_shlibpath_var=no |
| 9885 | ;; |
| 9886 | |
| 9887 | sysv4) |
| 9888 | case $host_vendor in |
| 9889 | sni) |
| 9890 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9891 | hardcode_direct=yes # is this really true??? |
| 9892 | ;; |
| 9893 | siemens) |
| 9894 | ## LD is ld it makes a PLAMLIB |
| 9895 | ## CC just makes a GrossModule. |
| 9896 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9897 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9898 | hardcode_direct=no |
| 9899 | ;; |
| 9900 | motorola) |
| 9901 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9902 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9903 | ;; |
| 9904 | esac |
| 9905 | runpath_var='LD_RUN_PATH' |
| 9906 | hardcode_shlibpath_var=no |
| 9907 | ;; |
| 9908 | |
| 9909 | sysv4.3*) |
| 9910 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9911 | hardcode_shlibpath_var=no |
| 9912 | export_dynamic_flag_spec='-Bexport' |
| 9913 | ;; |
| 9914 | |
| 9915 | sysv4*MP*) |
| 9916 | if test -d /usr/nec; then |
| 9917 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9918 | hardcode_shlibpath_var=no |
| 9919 | runpath_var=LD_RUN_PATH |
| 9920 | hardcode_runpath_var=yes |
| 9921 | ld_shlibs=yes |
| 9922 | fi |
| 9923 | ;; |
| 9924 | |
| 9925 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 9926 | no_undefined_flag='${wl}-z,text' |
| 9927 | archive_cmds_need_lc=no |
| 9928 | hardcode_shlibpath_var=no |
| 9929 | runpath_var='LD_RUN_PATH' |
| 9930 | |
| 9931 | if test "$GCC" = yes; then |
| 9932 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9933 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9934 | else |
| 9935 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9936 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9937 | fi |
| 9938 | ;; |
| 9939 | |
| 9940 | sysv5* | sco3.2v5* | sco5v6*) |
| 9941 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9942 | # link with -lc, and that would cause any symbols used from libc to |
| 9943 | # always be unresolved, which means just about no library would |
| 9944 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9945 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9946 | # as -z defs. |
| 9947 | no_undefined_flag='${wl}-z,text' |
| 9948 | allow_undefined_flag='${wl}-z,nodefs' |
| 9949 | archive_cmds_need_lc=no |
| 9950 | hardcode_shlibpath_var=no |
| 9951 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 9952 | hardcode_libdir_separator=':' |
| 9953 | link_all_deplibs=yes |
| 9954 | export_dynamic_flag_spec='${wl}-Bexport' |
| 9955 | runpath_var='LD_RUN_PATH' |
| 9956 | |
| 9957 | if test "$GCC" = yes; then |
| 9958 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9959 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9960 | else |
| 9961 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9962 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9963 | fi |
| 9964 | ;; |
| 9965 | |
| 9966 | uts4*) |
| 9967 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9968 | hardcode_libdir_flag_spec='-L$libdir' |
| 9969 | hardcode_shlibpath_var=no |
| 9970 | ;; |
| 9971 | |
| 9972 | *) |
| 9973 | ld_shlibs=no |
| 9974 | ;; |
| 9975 | esac |
| 9976 | |
| 9977 | if test x$host_vendor = xsni; then |
| 9978 | case $host in |
| 9979 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9980 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9981 | ;; |
| 9982 | esac |
| 9983 | fi |
| 9984 | fi |
| 9985 | |
| 9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9987 | $as_echo "$ld_shlibs" >&6; } |
| 9988 | test "$ld_shlibs" = no && can_build_shared=no |
| 9989 | |
| 9990 | with_gnu_ld=$with_gnu_ld |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | # |
| 10007 | # Do we need to explicitly link libc? |
| 10008 | # |
| 10009 | case "x$archive_cmds_need_lc" in |
| 10010 | x|xyes) |
| 10011 | # Assume -lc should be added |
| 10012 | archive_cmds_need_lc=yes |
| 10013 | |
| 10014 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10015 | case $archive_cmds in |
| 10016 | *'~'*) |
| 10017 | # FIXME: we may have to deal with multi-command sequences. |
| 10018 | ;; |
| 10019 | '$CC '*) |
| 10020 | # Test whether the compiler implicitly links with -lc since on some |
| 10021 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10022 | # to ld, don't add -lc before -lgcc. |
| 10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10024 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10025 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10026 | $as_echo_n "(cached) " >&6 |
| 10027 | else |
| 10028 | $RM conftest* |
| 10029 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10030 | |
| 10031 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10032 | (eval $ac_compile) 2>&5 |
| 10033 | ac_status=$? |
| 10034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10035 | test $ac_status = 0; } 2>conftest.err; then |
| 10036 | soname=conftest |
| 10037 | lib=conftest |
| 10038 | libobjs=conftest.$ac_objext |
| 10039 | deplibs= |
| 10040 | wl=$lt_prog_compiler_wl |
| 10041 | pic_flag=$lt_prog_compiler_pic |
| 10042 | compiler_flags=-v |
| 10043 | linker_flags=-v |
| 10044 | verstring= |
| 10045 | output_objdir=. |
| 10046 | libname=conftest |
| 10047 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10048 | allow_undefined_flag= |
| 10049 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10050 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10051 | ac_status=$? |
| 10052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10053 | test $ac_status = 0; } |
| 10054 | then |
| 10055 | lt_cv_archive_cmds_need_lc=no |
| 10056 | else |
| 10057 | lt_cv_archive_cmds_need_lc=yes |
| 10058 | fi |
| 10059 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10060 | else |
| 10061 | cat conftest.err 1>&5 |
| 10062 | fi |
| 10063 | $RM conftest* |
| 10064 | |
| 10065 | fi |
| 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10067 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10068 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10069 | ;; |
| 10070 | esac |
| 10071 | fi |
| 10072 | ;; |
| 10073 | esac |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | |
| 10099 | |
| 10100 | |
| 10101 | |
| 10102 | |
| 10103 | |
| 10104 | |
| 10105 | |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
| 10112 | |
| 10113 | |
| 10114 | |
| 10115 | |
| 10116 | |
| 10117 | |
| 10118 | |
| 10119 | |
| 10120 | |
| 10121 | |
| 10122 | |
| 10123 | |
| 10124 | |
| 10125 | |
| 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | |
| 10190 | |
| 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | |
| 10206 | |
| 10207 | |
| 10208 | |
| 10209 | |
| 10210 | |
| 10211 | |
| 10212 | |
| 10213 | |
| 10214 | |
| 10215 | |
| 10216 | |
| 10217 | |
| 10218 | |
| 10219 | |
| 10220 | |
| 10221 | |
| 10222 | |
| 10223 | |
| 10224 | |
| 10225 | |
| 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10227 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10228 | |
| 10229 | if test "$GCC" = yes; then |
| 10230 | case $host_os in |
| 10231 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10232 | *) lt_awk_arg="/^libraries:/" ;; |
| 10233 | esac |
| 10234 | case $host_os in |
| 10235 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10236 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10237 | esac |
| 10238 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10239 | case $lt_search_path_spec in |
| 10240 | *\;*) |
| 10241 | # if the path contains ";" then we assume it to be the separator |
| 10242 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10243 | # assumed that no part of a normal pathname contains ";" but that should |
| 10244 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10245 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10246 | ;; |
| 10247 | *) |
| 10248 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10249 | ;; |
| 10250 | esac |
| 10251 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10252 | # and add multilib dir if necessary. |
| 10253 | lt_tmp_lt_search_path_spec= |
| 10254 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10255 | for lt_sys_path in $lt_search_path_spec; do |
| 10256 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10257 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10258 | else |
| 10259 | test -d "$lt_sys_path" && \ |
| 10260 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10261 | fi |
| 10262 | done |
| 10263 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10264 | BEGIN {RS=" "; FS="/|\n";} { |
| 10265 | lt_foo=""; |
| 10266 | lt_count=0; |
| 10267 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10268 | if ($lt_i != "" && $lt_i != ".") { |
| 10269 | if ($lt_i == "..") { |
| 10270 | lt_count++; |
| 10271 | } else { |
| 10272 | if (lt_count == 0) { |
| 10273 | lt_foo="/" $lt_i lt_foo; |
| 10274 | } else { |
| 10275 | lt_count--; |
| 10276 | } |
| 10277 | } |
| 10278 | } |
| 10279 | } |
| 10280 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10281 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10282 | }'` |
| 10283 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10284 | # for these hosts. |
| 10285 | case $host_os in |
| 10286 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10287 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10288 | esac |
| 10289 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10290 | else |
| 10291 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10292 | fi |
| 10293 | library_names_spec= |
| 10294 | libname_spec='lib$name' |
| 10295 | soname_spec= |
| 10296 | shrext_cmds=".so" |
| 10297 | postinstall_cmds= |
| 10298 | postuninstall_cmds= |
| 10299 | finish_cmds= |
| 10300 | finish_eval= |
| 10301 | shlibpath_var= |
| 10302 | shlibpath_overrides_runpath=unknown |
| 10303 | version_type=none |
| 10304 | dynamic_linker="$host_os ld.so" |
| 10305 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10306 | need_lib_prefix=unknown |
| 10307 | hardcode_into_libs=no |
| 10308 | |
| 10309 | # when you set need_version to no, make sure it does not cause -set_version |
| 10310 | # flags to be left without arguments |
| 10311 | need_version=unknown |
| 10312 | |
| 10313 | case $host_os in |
| 10314 | aix3*) |
| 10315 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10316 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10317 | shlibpath_var=LIBPATH |
| 10318 | |
| 10319 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10321 | ;; |
| 10322 | |
| 10323 | aix[4-9]*) |
| 10324 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10325 | need_lib_prefix=no |
| 10326 | need_version=no |
| 10327 | hardcode_into_libs=yes |
| 10328 | if test "$host_cpu" = ia64; then |
| 10329 | # AIX 5 supports IA64 |
| 10330 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10331 | shlibpath_var=LD_LIBRARY_PATH |
| 10332 | else |
| 10333 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10334 | # for dependence libraries. The import file would start with |
| 10335 | # the line `#! .'. This would cause the generated library to |
| 10336 | # depend on `.', always an invalid library. This was fixed in |
| 10337 | # development snapshots of GCC prior to 3.0. |
| 10338 | case $host_os in |
| 10339 | aix4 | aix4.[01] | aix4.[01].*) |
| 10340 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10341 | echo ' yes ' |
| 10342 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10343 | : |
| 10344 | else |
| 10345 | can_build_shared=no |
| 10346 | fi |
| 10347 | ;; |
| 10348 | esac |
| 10349 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10350 | # soname into executable. Probably we can add versioning support to |
| 10351 | # collect2, so additional links can be useful in future. |
| 10352 | if test "$aix_use_runtimelinking" = yes; then |
| 10353 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10354 | # instead of lib<name>.a to let people know that these are not |
| 10355 | # typical AIX shared libraries. |
| 10356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10357 | else |
| 10358 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10359 | # and later when we are not doing run time linking. |
| 10360 | library_names_spec='${libname}${release}.a $libname.a' |
| 10361 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10362 | fi |
| 10363 | shlibpath_var=LIBPATH |
| 10364 | fi |
| 10365 | ;; |
| 10366 | |
| 10367 | amigaos*) |
| 10368 | case $host_cpu in |
| 10369 | powerpc) |
| 10370 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10371 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10373 | ;; |
| 10374 | m68k) |
| 10375 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10376 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10377 | 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' |
| 10378 | ;; |
| 10379 | esac |
| 10380 | ;; |
| 10381 | |
| 10382 | beos*) |
| 10383 | library_names_spec='${libname}${shared_ext}' |
| 10384 | dynamic_linker="$host_os ld.so" |
| 10385 | shlibpath_var=LIBRARY_PATH |
| 10386 | ;; |
| 10387 | |
| 10388 | bsdi[45]*) |
| 10389 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10390 | need_version=no |
| 10391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10393 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10394 | shlibpath_var=LD_LIBRARY_PATH |
| 10395 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10396 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10397 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10398 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10399 | # libtool to hard-code these into programs |
| 10400 | ;; |
| 10401 | |
| 10402 | cygwin* | mingw* | pw32* | cegcc*) |
| 10403 | version_type=windows |
| 10404 | shrext_cmds=".dll" |
| 10405 | need_version=no |
| 10406 | need_lib_prefix=no |
| 10407 | |
| 10408 | case $GCC,$cc_basename in |
| 10409 | yes,*) |
| 10410 | # gcc |
| 10411 | library_names_spec='$libname.dll.a' |
| 10412 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10413 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10414 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10415 | dldir=$destdir/`dirname \$dlpath`~ |
| 10416 | test -d \$dldir || mkdir -p \$dldir~ |
| 10417 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10418 | chmod a+x \$dldir/$dlname~ |
| 10419 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10420 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10421 | fi' |
| 10422 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10423 | dlpath=$dir/\$dldll~ |
| 10424 | $RM \$dlpath' |
| 10425 | shlibpath_overrides_runpath=yes |
| 10426 | |
| 10427 | case $host_os in |
| 10428 | cygwin*) |
| 10429 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10430 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10431 | |
| 10432 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10433 | ;; |
| 10434 | mingw* | cegcc*) |
| 10435 | # MinGW DLLs use traditional 'lib' prefix |
| 10436 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10437 | ;; |
| 10438 | pw32*) |
| 10439 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10440 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10441 | ;; |
| 10442 | esac |
| 10443 | dynamic_linker='Win32 ld.exe' |
| 10444 | ;; |
| 10445 | |
| 10446 | *,cl*) |
| 10447 | # Native MSVC |
| 10448 | libname_spec='$name' |
| 10449 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10450 | library_names_spec='${libname}.dll.lib' |
| 10451 | |
| 10452 | case $build_os in |
| 10453 | mingw*) |
| 10454 | sys_lib_search_path_spec= |
| 10455 | lt_save_ifs=$IFS |
| 10456 | IFS=';' |
| 10457 | for lt_path in $LIB |
| 10458 | do |
| 10459 | IFS=$lt_save_ifs |
| 10460 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10461 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10462 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10463 | done |
| 10464 | IFS=$lt_save_ifs |
| 10465 | # Convert to MSYS style. |
| 10466 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10467 | ;; |
| 10468 | cygwin*) |
| 10469 | # Convert to unix form, then to dos form, then back to unix form |
| 10470 | # but this time dos style (no spaces!) so that the unix form looks |
| 10471 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10472 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10473 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10474 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10475 | ;; |
| 10476 | *) |
| 10477 | sys_lib_search_path_spec="$LIB" |
| 10478 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10479 | # It is most probably a Windows format PATH. |
| 10480 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10481 | else |
| 10482 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10483 | fi |
| 10484 | # FIXME: find the short name or the path components, as spaces are |
| 10485 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10486 | ;; |
| 10487 | esac |
| 10488 | |
| 10489 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10490 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10491 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10492 | dldir=$destdir/`dirname \$dlpath`~ |
| 10493 | test -d \$dldir || mkdir -p \$dldir~ |
| 10494 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10495 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10496 | dlpath=$dir/\$dldll~ |
| 10497 | $RM \$dlpath' |
| 10498 | shlibpath_overrides_runpath=yes |
| 10499 | dynamic_linker='Win32 link.exe' |
| 10500 | ;; |
| 10501 | |
| 10502 | *) |
| 10503 | # Assume MSVC wrapper |
| 10504 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10505 | dynamic_linker='Win32 ld.exe' |
| 10506 | ;; |
| 10507 | esac |
| 10508 | # FIXME: first we should search . and the directory the executable is in |
| 10509 | shlibpath_var=PATH |
| 10510 | ;; |
| 10511 | |
| 10512 | darwin* | rhapsody*) |
| 10513 | dynamic_linker="$host_os dyld" |
| 10514 | version_type=darwin |
| 10515 | need_lib_prefix=no |
| 10516 | need_version=no |
| 10517 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10518 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10519 | shlibpath_overrides_runpath=yes |
| 10520 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10521 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10522 | |
| 10523 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10524 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10525 | ;; |
| 10526 | |
| 10527 | dgux*) |
| 10528 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10529 | need_lib_prefix=no |
| 10530 | need_version=no |
| 10531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10533 | shlibpath_var=LD_LIBRARY_PATH |
| 10534 | ;; |
| 10535 | |
| 10536 | freebsd* | dragonfly*) |
| 10537 | # DragonFly does not have aout. When/if they implement a new |
| 10538 | # versioning mechanism, adjust this. |
| 10539 | if test -x /usr/bin/objformat; then |
| 10540 | objformat=`/usr/bin/objformat` |
| 10541 | else |
| 10542 | case $host_os in |
| 10543 | freebsd[23].*) objformat=aout ;; |
| 10544 | *) objformat=elf ;; |
| 10545 | esac |
| 10546 | fi |
| 10547 | version_type=freebsd-$objformat |
| 10548 | case $version_type in |
| 10549 | freebsd-elf*) |
| 10550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10551 | need_version=no |
| 10552 | need_lib_prefix=no |
| 10553 | ;; |
| 10554 | freebsd-*) |
| 10555 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10556 | need_version=yes |
| 10557 | ;; |
| 10558 | esac |
| 10559 | shlibpath_var=LD_LIBRARY_PATH |
| 10560 | case $host_os in |
| 10561 | freebsd2.*) |
| 10562 | shlibpath_overrides_runpath=yes |
| 10563 | ;; |
| 10564 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10565 | shlibpath_overrides_runpath=yes |
| 10566 | hardcode_into_libs=yes |
| 10567 | ;; |
| 10568 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10569 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10570 | shlibpath_overrides_runpath=no |
| 10571 | hardcode_into_libs=yes |
| 10572 | ;; |
| 10573 | *) # from 4.6 on, and DragonFly |
| 10574 | shlibpath_overrides_runpath=yes |
| 10575 | hardcode_into_libs=yes |
| 10576 | ;; |
| 10577 | esac |
| 10578 | ;; |
| 10579 | |
| 10580 | gnu*) |
| 10581 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10582 | need_lib_prefix=no |
| 10583 | need_version=no |
| 10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10585 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10586 | shlibpath_var=LD_LIBRARY_PATH |
| 10587 | shlibpath_overrides_runpath=no |
| 10588 | hardcode_into_libs=yes |
| 10589 | ;; |
| 10590 | |
| 10591 | haiku*) |
| 10592 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10593 | need_lib_prefix=no |
| 10594 | need_version=no |
| 10595 | dynamic_linker="$host_os runtime_loader" |
| 10596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10597 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10598 | shlibpath_var=LIBRARY_PATH |
| 10599 | shlibpath_overrides_runpath=yes |
| 10600 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10601 | hardcode_into_libs=yes |
| 10602 | ;; |
| 10603 | |
| 10604 | hpux9* | hpux10* | hpux11*) |
| 10605 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10606 | # link against other versions. |
| 10607 | version_type=sunos |
| 10608 | need_lib_prefix=no |
| 10609 | need_version=no |
| 10610 | case $host_cpu in |
| 10611 | ia64*) |
| 10612 | shrext_cmds='.so' |
| 10613 | hardcode_into_libs=yes |
| 10614 | dynamic_linker="$host_os dld.so" |
| 10615 | shlibpath_var=LD_LIBRARY_PATH |
| 10616 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10618 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10619 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10620 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10621 | else |
| 10622 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10623 | fi |
| 10624 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10625 | ;; |
| 10626 | hppa*64*) |
| 10627 | shrext_cmds='.sl' |
| 10628 | hardcode_into_libs=yes |
| 10629 | dynamic_linker="$host_os dld.sl" |
| 10630 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10631 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10633 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10634 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10635 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10636 | ;; |
| 10637 | *) |
| 10638 | shrext_cmds='.sl' |
| 10639 | dynamic_linker="$host_os dld.sl" |
| 10640 | shlibpath_var=SHLIB_PATH |
| 10641 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10643 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10644 | ;; |
| 10645 | esac |
| 10646 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 10647 | postinstall_cmds='chmod 555 $lib' |
| 10648 | # or fails outright, so override atomically: |
| 10649 | install_override_mode=555 |
| 10650 | ;; |
| 10651 | |
| 10652 | interix[3-9]*) |
| 10653 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10654 | need_lib_prefix=no |
| 10655 | need_version=no |
| 10656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10658 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10659 | shlibpath_var=LD_LIBRARY_PATH |
| 10660 | shlibpath_overrides_runpath=no |
| 10661 | hardcode_into_libs=yes |
| 10662 | ;; |
| 10663 | |
| 10664 | irix5* | irix6* | nonstopux*) |
| 10665 | case $host_os in |
| 10666 | nonstopux*) version_type=nonstopux ;; |
| 10667 | *) |
| 10668 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10669 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10670 | else |
| 10671 | version_type=irix |
| 10672 | fi ;; |
| 10673 | esac |
| 10674 | need_lib_prefix=no |
| 10675 | need_version=no |
| 10676 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10678 | case $host_os in |
| 10679 | irix5* | nonstopux*) |
| 10680 | libsuff= shlibsuff= |
| 10681 | ;; |
| 10682 | *) |
| 10683 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10684 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10685 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10686 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10687 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10688 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10689 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10690 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10691 | esac |
| 10692 | ;; |
| 10693 | esac |
| 10694 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10695 | shlibpath_overrides_runpath=no |
| 10696 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10697 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10698 | hardcode_into_libs=yes |
| 10699 | ;; |
| 10700 | |
| 10701 | # No shared lib support for Linux oldld, aout, or coff. |
| 10702 | linux*oldld* | linux*aout* | linux*coff*) |
| 10703 | dynamic_linker=no |
| 10704 | ;; |
| 10705 | |
| 10706 | # This must be glibc/ELF. |
| 10707 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10708 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10709 | need_lib_prefix=no |
| 10710 | need_version=no |
| 10711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10713 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10714 | shlibpath_var=LD_LIBRARY_PATH |
| 10715 | shlibpath_overrides_runpath=no |
| 10716 | |
| 10717 | # Some binutils ld are patched to set DT_RUNPATH |
| 10718 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 10719 | $as_echo_n "(cached) " >&6 |
| 10720 | else |
| 10721 | lt_cv_shlibpath_overrides_runpath=no |
| 10722 | save_LDFLAGS=$LDFLAGS |
| 10723 | save_libdir=$libdir |
| 10724 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10725 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10727 | /* end confdefs.h. */ |
| 10728 | |
| 10729 | int |
| 10730 | main () |
| 10731 | { |
| 10732 | |
| 10733 | ; |
| 10734 | return 0; |
| 10735 | } |
| 10736 | _ACEOF |
| 10737 | if ac_fn_c_try_link "$LINENO"; then : |
| 10738 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10739 | lt_cv_shlibpath_overrides_runpath=yes |
| 10740 | fi |
| 10741 | fi |
| 10742 | rm -f core conftest.err conftest.$ac_objext \ |
| 10743 | conftest$ac_exeext conftest.$ac_ext |
| 10744 | LDFLAGS=$save_LDFLAGS |
| 10745 | libdir=$save_libdir |
| 10746 | |
| 10747 | fi |
| 10748 | |
| 10749 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 10750 | |
| 10751 | # This implies no fast_install, which is unacceptable. |
| 10752 | # Some rework will be needed to allow for fast_install |
| 10753 | # before this can be enabled. |
| 10754 | hardcode_into_libs=yes |
| 10755 | |
| 10756 | # Append ld.so.conf contents to the search path |
| 10757 | if test -f /etc/ld.so.conf; then |
| 10758 | 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' ' '` |
| 10759 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10760 | fi |
| 10761 | |
| 10762 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10763 | # powerpc, because MkLinux only supported shared libraries with the |
| 10764 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10765 | # most powerpc-linux boxes support dynamic linking these days and |
| 10766 | # people can always --disable-shared, the test was removed, and we |
| 10767 | # assume the GNU/Linux dynamic linker is in use. |
| 10768 | dynamic_linker='GNU/Linux ld.so' |
| 10769 | ;; |
| 10770 | |
| 10771 | netbsd*) |
| 10772 | version_type=sunos |
| 10773 | need_lib_prefix=no |
| 10774 | need_version=no |
| 10775 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10777 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10778 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10779 | else |
| 10780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10781 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10782 | dynamic_linker='NetBSD ld.elf_so' |
| 10783 | fi |
| 10784 | shlibpath_var=LD_LIBRARY_PATH |
| 10785 | shlibpath_overrides_runpath=yes |
| 10786 | hardcode_into_libs=yes |
| 10787 | ;; |
| 10788 | |
| 10789 | newsos6) |
| 10790 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10792 | shlibpath_var=LD_LIBRARY_PATH |
| 10793 | shlibpath_overrides_runpath=yes |
| 10794 | ;; |
| 10795 | |
| 10796 | *nto* | *qnx*) |
| 10797 | version_type=qnx |
| 10798 | need_lib_prefix=no |
| 10799 | need_version=no |
| 10800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10802 | shlibpath_var=LD_LIBRARY_PATH |
| 10803 | shlibpath_overrides_runpath=no |
| 10804 | hardcode_into_libs=yes |
| 10805 | dynamic_linker='ldqnx.so' |
| 10806 | ;; |
| 10807 | |
| 10808 | openbsd*) |
| 10809 | version_type=sunos |
| 10810 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 10811 | need_lib_prefix=no |
| 10812 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10813 | case $host_os in |
| 10814 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10815 | *) need_version=no ;; |
| 10816 | esac |
| 10817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10818 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10819 | shlibpath_var=LD_LIBRARY_PATH |
| 10820 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10821 | case $host_os in |
| 10822 | openbsd2.[89] | openbsd2.[89].*) |
| 10823 | shlibpath_overrides_runpath=no |
| 10824 | ;; |
| 10825 | *) |
| 10826 | shlibpath_overrides_runpath=yes |
| 10827 | ;; |
| 10828 | esac |
| 10829 | else |
| 10830 | shlibpath_overrides_runpath=yes |
| 10831 | fi |
| 10832 | ;; |
| 10833 | |
| 10834 | os2*) |
| 10835 | libname_spec='$name' |
| 10836 | shrext_cmds=".dll" |
| 10837 | need_lib_prefix=no |
| 10838 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10839 | dynamic_linker='OS/2 ld.exe' |
| 10840 | shlibpath_var=LIBPATH |
| 10841 | ;; |
| 10842 | |
| 10843 | osf3* | osf4* | osf5*) |
| 10844 | version_type=osf |
| 10845 | need_lib_prefix=no |
| 10846 | need_version=no |
| 10847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10849 | shlibpath_var=LD_LIBRARY_PATH |
| 10850 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10851 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10852 | ;; |
| 10853 | |
| 10854 | rdos*) |
| 10855 | dynamic_linker=no |
| 10856 | ;; |
| 10857 | |
| 10858 | solaris*) |
| 10859 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10860 | need_lib_prefix=no |
| 10861 | need_version=no |
| 10862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10863 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10864 | shlibpath_var=LD_LIBRARY_PATH |
| 10865 | shlibpath_overrides_runpath=yes |
| 10866 | hardcode_into_libs=yes |
| 10867 | # ldd complains unless libraries are executable |
| 10868 | postinstall_cmds='chmod +x $lib' |
| 10869 | ;; |
| 10870 | |
| 10871 | sunos4*) |
| 10872 | version_type=sunos |
| 10873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10874 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10875 | shlibpath_var=LD_LIBRARY_PATH |
| 10876 | shlibpath_overrides_runpath=yes |
| 10877 | if test "$with_gnu_ld" = yes; then |
| 10878 | need_lib_prefix=no |
| 10879 | fi |
| 10880 | need_version=yes |
| 10881 | ;; |
| 10882 | |
| 10883 | sysv4 | sysv4.3*) |
| 10884 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10886 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10887 | shlibpath_var=LD_LIBRARY_PATH |
| 10888 | case $host_vendor in |
| 10889 | sni) |
| 10890 | shlibpath_overrides_runpath=no |
| 10891 | need_lib_prefix=no |
| 10892 | runpath_var=LD_RUN_PATH |
| 10893 | ;; |
| 10894 | siemens) |
| 10895 | need_lib_prefix=no |
| 10896 | ;; |
| 10897 | motorola) |
| 10898 | need_lib_prefix=no |
| 10899 | need_version=no |
| 10900 | shlibpath_overrides_runpath=no |
| 10901 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10902 | ;; |
| 10903 | esac |
| 10904 | ;; |
| 10905 | |
| 10906 | sysv4*MP*) |
| 10907 | if test -d /usr/nec ;then |
| 10908 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10909 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10910 | soname_spec='$libname${shared_ext}.$major' |
| 10911 | shlibpath_var=LD_LIBRARY_PATH |
| 10912 | fi |
| 10913 | ;; |
| 10914 | |
| 10915 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10916 | version_type=freebsd-elf |
| 10917 | need_lib_prefix=no |
| 10918 | need_version=no |
| 10919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10920 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10921 | shlibpath_var=LD_LIBRARY_PATH |
| 10922 | shlibpath_overrides_runpath=yes |
| 10923 | hardcode_into_libs=yes |
| 10924 | if test "$with_gnu_ld" = yes; then |
| 10925 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10926 | else |
| 10927 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10928 | case $host_os in |
| 10929 | sco3.2v5*) |
| 10930 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10931 | ;; |
| 10932 | esac |
| 10933 | fi |
| 10934 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10935 | ;; |
| 10936 | |
| 10937 | tpf*) |
| 10938 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10939 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10940 | need_lib_prefix=no |
| 10941 | need_version=no |
| 10942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10943 | shlibpath_var=LD_LIBRARY_PATH |
| 10944 | shlibpath_overrides_runpath=no |
| 10945 | hardcode_into_libs=yes |
| 10946 | ;; |
| 10947 | |
| 10948 | uts4*) |
| 10949 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10951 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10952 | shlibpath_var=LD_LIBRARY_PATH |
| 10953 | ;; |
| 10954 | |
| 10955 | *) |
| 10956 | dynamic_linker=no |
| 10957 | ;; |
| 10958 | esac |
| 10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10960 | $as_echo "$dynamic_linker" >&6; } |
| 10961 | test "$dynamic_linker" = no && can_build_shared=no |
| 10962 | |
| 10963 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10964 | if test "$GCC" = yes; then |
| 10965 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10966 | fi |
| 10967 | |
| 10968 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10969 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10970 | fi |
| 10971 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10972 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10973 | fi |
| 10974 | |
| 10975 | |
| 10976 | |
| 10977 | |
| 10978 | |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
| 10986 | |
| 10987 | |
| 10988 | |
| 10989 | |
| 10990 | |
| 10991 | |
| 10992 | |
| 10993 | |
| 10994 | |
| 10995 | |
| 10996 | |
| 10997 | |
| 10998 | |
| 10999 | |
| 11000 | |
| 11001 | |
| 11002 | |
| 11003 | |
| 11004 | |
| 11005 | |
| 11006 | |
| 11007 | |
| 11008 | |
| 11009 | |
| 11010 | |
| 11011 | |
| 11012 | |
| 11013 | |
| 11014 | |
| 11015 | |
| 11016 | |
| 11017 | |
| 11018 | |
| 11019 | |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | |
| 11027 | |
| 11028 | |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | |
| 11048 | |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | |
| 11056 | |
| 11057 | |
| 11058 | |
| 11059 | |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | |
| 11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11067 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11068 | hardcode_action= |
| 11069 | if test -n "$hardcode_libdir_flag_spec" || |
| 11070 | test -n "$runpath_var" || |
| 11071 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11072 | |
| 11073 | # We can hardcode non-existent directories. |
| 11074 | if test "$hardcode_direct" != no && |
| 11075 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11076 | # have to relink, otherwise we might link with an installed library |
| 11077 | # when we should be linking with a yet-to-be-installed one |
| 11078 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11079 | test "$hardcode_minus_L" != no; then |
| 11080 | # Linking always hardcodes the temporary library directory. |
| 11081 | hardcode_action=relink |
| 11082 | else |
| 11083 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11084 | hardcode_action=immediate |
| 11085 | fi |
| 11086 | else |
| 11087 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11088 | # directories. |
| 11089 | hardcode_action=unsupported |
| 11090 | fi |
| 11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11092 | $as_echo "$hardcode_action" >&6; } |
| 11093 | |
| 11094 | if test "$hardcode_action" = relink || |
| 11095 | test "$inherit_rpath" = yes; then |
| 11096 | # Fast installation is not supported |
| 11097 | enable_fast_install=no |
| 11098 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11099 | test "$enable_shared" = no; then |
| 11100 | # Fast installation is not necessary |
| 11101 | enable_fast_install=needless |
| 11102 | fi |
| 11103 | |
| 11104 | |
| 11105 | |
| 11106 | |
| 11107 | |
| 11108 | |
| 11109 | if test "x$enable_dlopen" != xyes; then |
| 11110 | enable_dlopen=unknown |
| 11111 | enable_dlopen_self=unknown |
| 11112 | enable_dlopen_self_static=unknown |
| 11113 | else |
| 11114 | lt_cv_dlopen=no |
| 11115 | lt_cv_dlopen_libs= |
| 11116 | |
| 11117 | case $host_os in |
| 11118 | beos*) |
| 11119 | lt_cv_dlopen="load_add_on" |
| 11120 | lt_cv_dlopen_libs= |
| 11121 | lt_cv_dlopen_self=yes |
| 11122 | ;; |
| 11123 | |
| 11124 | mingw* | pw32* | cegcc*) |
| 11125 | lt_cv_dlopen="LoadLibrary" |
| 11126 | lt_cv_dlopen_libs= |
| 11127 | ;; |
| 11128 | |
| 11129 | cygwin*) |
| 11130 | lt_cv_dlopen="dlopen" |
| 11131 | lt_cv_dlopen_libs= |
| 11132 | ;; |
| 11133 | |
| 11134 | darwin*) |
| 11135 | # if libdl is installed we need to link against it |
| 11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11137 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11138 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11139 | $as_echo_n "(cached) " >&6 |
| 11140 | else |
| 11141 | ac_check_lib_save_LIBS=$LIBS |
| 11142 | LIBS="-ldl $LIBS" |
| 11143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11144 | /* end confdefs.h. */ |
| 11145 | |
| 11146 | /* Override any GCC internal prototype to avoid an error. |
| 11147 | Use char because int might match the return type of a GCC |
| 11148 | builtin and then its argument prototype would still apply. */ |
| 11149 | #ifdef __cplusplus |
| 11150 | extern "C" |
| 11151 | #endif |
| 11152 | char dlopen (); |
| 11153 | int |
| 11154 | main () |
| 11155 | { |
| 11156 | return dlopen (); |
| 11157 | ; |
| 11158 | return 0; |
| 11159 | } |
| 11160 | _ACEOF |
| 11161 | if ac_fn_c_try_link "$LINENO"; then : |
| 11162 | ac_cv_lib_dl_dlopen=yes |
| 11163 | else |
| 11164 | ac_cv_lib_dl_dlopen=no |
| 11165 | fi |
| 11166 | rm -f core conftest.err conftest.$ac_objext \ |
| 11167 | conftest$ac_exeext conftest.$ac_ext |
| 11168 | LIBS=$ac_check_lib_save_LIBS |
| 11169 | fi |
| 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11171 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11172 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11173 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11174 | else |
| 11175 | |
| 11176 | lt_cv_dlopen="dyld" |
| 11177 | lt_cv_dlopen_libs= |
| 11178 | lt_cv_dlopen_self=yes |
| 11179 | |
| 11180 | fi |
| 11181 | |
| 11182 | ;; |
| 11183 | |
| 11184 | *) |
| 11185 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11186 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11187 | lt_cv_dlopen="shl_load" |
| 11188 | else |
| 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11190 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11191 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11192 | $as_echo_n "(cached) " >&6 |
| 11193 | else |
| 11194 | ac_check_lib_save_LIBS=$LIBS |
| 11195 | LIBS="-ldld $LIBS" |
| 11196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11197 | /* end confdefs.h. */ |
| 11198 | |
| 11199 | /* Override any GCC internal prototype to avoid an error. |
| 11200 | Use char because int might match the return type of a GCC |
| 11201 | builtin and then its argument prototype would still apply. */ |
| 11202 | #ifdef __cplusplus |
| 11203 | extern "C" |
| 11204 | #endif |
| 11205 | char shl_load (); |
| 11206 | int |
| 11207 | main () |
| 11208 | { |
| 11209 | return shl_load (); |
| 11210 | ; |
| 11211 | return 0; |
| 11212 | } |
| 11213 | _ACEOF |
| 11214 | if ac_fn_c_try_link "$LINENO"; then : |
| 11215 | ac_cv_lib_dld_shl_load=yes |
| 11216 | else |
| 11217 | ac_cv_lib_dld_shl_load=no |
| 11218 | fi |
| 11219 | rm -f core conftest.err conftest.$ac_objext \ |
| 11220 | conftest$ac_exeext conftest.$ac_ext |
| 11221 | LIBS=$ac_check_lib_save_LIBS |
| 11222 | fi |
| 11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11224 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11225 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11226 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11227 | else |
| 11228 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11229 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11230 | lt_cv_dlopen="dlopen" |
| 11231 | else |
| 11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11233 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11234 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11235 | $as_echo_n "(cached) " >&6 |
| 11236 | else |
| 11237 | ac_check_lib_save_LIBS=$LIBS |
| 11238 | LIBS="-ldl $LIBS" |
| 11239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11240 | /* end confdefs.h. */ |
| 11241 | |
| 11242 | /* Override any GCC internal prototype to avoid an error. |
| 11243 | Use char because int might match the return type of a GCC |
| 11244 | builtin and then its argument prototype would still apply. */ |
| 11245 | #ifdef __cplusplus |
| 11246 | extern "C" |
| 11247 | #endif |
| 11248 | char dlopen (); |
| 11249 | int |
| 11250 | main () |
| 11251 | { |
| 11252 | return dlopen (); |
| 11253 | ; |
| 11254 | return 0; |
| 11255 | } |
| 11256 | _ACEOF |
| 11257 | if ac_fn_c_try_link "$LINENO"; then : |
| 11258 | ac_cv_lib_dl_dlopen=yes |
| 11259 | else |
| 11260 | ac_cv_lib_dl_dlopen=no |
| 11261 | fi |
| 11262 | rm -f core conftest.err conftest.$ac_objext \ |
| 11263 | conftest$ac_exeext conftest.$ac_ext |
| 11264 | LIBS=$ac_check_lib_save_LIBS |
| 11265 | fi |
| 11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11267 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11268 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11269 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11270 | else |
| 11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11272 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11273 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11274 | $as_echo_n "(cached) " >&6 |
| 11275 | else |
| 11276 | ac_check_lib_save_LIBS=$LIBS |
| 11277 | LIBS="-lsvld $LIBS" |
| 11278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11279 | /* end confdefs.h. */ |
| 11280 | |
| 11281 | /* Override any GCC internal prototype to avoid an error. |
| 11282 | Use char because int might match the return type of a GCC |
| 11283 | builtin and then its argument prototype would still apply. */ |
| 11284 | #ifdef __cplusplus |
| 11285 | extern "C" |
| 11286 | #endif |
| 11287 | char dlopen (); |
| 11288 | int |
| 11289 | main () |
| 11290 | { |
| 11291 | return dlopen (); |
| 11292 | ; |
| 11293 | return 0; |
| 11294 | } |
| 11295 | _ACEOF |
| 11296 | if ac_fn_c_try_link "$LINENO"; then : |
| 11297 | ac_cv_lib_svld_dlopen=yes |
| 11298 | else |
| 11299 | ac_cv_lib_svld_dlopen=no |
| 11300 | fi |
| 11301 | rm -f core conftest.err conftest.$ac_objext \ |
| 11302 | conftest$ac_exeext conftest.$ac_ext |
| 11303 | LIBS=$ac_check_lib_save_LIBS |
| 11304 | fi |
| 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11306 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11307 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11308 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11309 | else |
| 11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11311 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11312 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11313 | $as_echo_n "(cached) " >&6 |
| 11314 | else |
| 11315 | ac_check_lib_save_LIBS=$LIBS |
| 11316 | LIBS="-ldld $LIBS" |
| 11317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11318 | /* end confdefs.h. */ |
| 11319 | |
| 11320 | /* Override any GCC internal prototype to avoid an error. |
| 11321 | Use char because int might match the return type of a GCC |
| 11322 | builtin and then its argument prototype would still apply. */ |
| 11323 | #ifdef __cplusplus |
| 11324 | extern "C" |
| 11325 | #endif |
| 11326 | char dld_link (); |
| 11327 | int |
| 11328 | main () |
| 11329 | { |
| 11330 | return dld_link (); |
| 11331 | ; |
| 11332 | return 0; |
| 11333 | } |
| 11334 | _ACEOF |
| 11335 | if ac_fn_c_try_link "$LINENO"; then : |
| 11336 | ac_cv_lib_dld_dld_link=yes |
| 11337 | else |
| 11338 | ac_cv_lib_dld_dld_link=no |
| 11339 | fi |
| 11340 | rm -f core conftest.err conftest.$ac_objext \ |
| 11341 | conftest$ac_exeext conftest.$ac_ext |
| 11342 | LIBS=$ac_check_lib_save_LIBS |
| 11343 | fi |
| 11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11345 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11346 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11347 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11348 | fi |
| 11349 | |
| 11350 | |
| 11351 | fi |
| 11352 | |
| 11353 | |
| 11354 | fi |
| 11355 | |
| 11356 | |
| 11357 | fi |
| 11358 | |
| 11359 | |
| 11360 | fi |
| 11361 | |
| 11362 | |
| 11363 | fi |
| 11364 | |
| 11365 | ;; |
| 11366 | esac |
| 11367 | |
| 11368 | if test "x$lt_cv_dlopen" != xno; then |
| 11369 | enable_dlopen=yes |
| 11370 | else |
| 11371 | enable_dlopen=no |
| 11372 | fi |
| 11373 | |
| 11374 | case $lt_cv_dlopen in |
| 11375 | dlopen) |
| 11376 | save_CPPFLAGS="$CPPFLAGS" |
| 11377 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11378 | |
| 11379 | save_LDFLAGS="$LDFLAGS" |
| 11380 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11381 | |
| 11382 | save_LIBS="$LIBS" |
| 11383 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11384 | |
| 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11386 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11387 | if ${lt_cv_dlopen_self+:} false; then : |
| 11388 | $as_echo_n "(cached) " >&6 |
| 11389 | else |
| 11390 | if test "$cross_compiling" = yes; then : |
| 11391 | lt_cv_dlopen_self=cross |
| 11392 | else |
| 11393 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11394 | lt_status=$lt_dlunknown |
| 11395 | cat > conftest.$ac_ext <<_LT_EOF |
| 11396 | #line $LINENO "configure" |
| 11397 | #include "confdefs.h" |
| 11398 | |
| 11399 | #if HAVE_DLFCN_H |
| 11400 | #include <dlfcn.h> |
| 11401 | #endif |
| 11402 | |
| 11403 | #include <stdio.h> |
| 11404 | |
| 11405 | #ifdef RTLD_GLOBAL |
| 11406 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11407 | #else |
| 11408 | # ifdef DL_GLOBAL |
| 11409 | # define LT_DLGLOBAL DL_GLOBAL |
| 11410 | # else |
| 11411 | # define LT_DLGLOBAL 0 |
| 11412 | # endif |
| 11413 | #endif |
| 11414 | |
| 11415 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11416 | find out it does not work in some platform. */ |
| 11417 | #ifndef LT_DLLAZY_OR_NOW |
| 11418 | # ifdef RTLD_LAZY |
| 11419 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11420 | # else |
| 11421 | # ifdef DL_LAZY |
| 11422 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11423 | # else |
| 11424 | # ifdef RTLD_NOW |
| 11425 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11426 | # else |
| 11427 | # ifdef DL_NOW |
| 11428 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11429 | # else |
| 11430 | # define LT_DLLAZY_OR_NOW 0 |
| 11431 | # endif |
| 11432 | # endif |
| 11433 | # endif |
| 11434 | # endif |
| 11435 | #endif |
| 11436 | |
| 11437 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11438 | correspondingly for the symbols needed. */ |
| 11439 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11440 | int fnord () __attribute__((visibility("default"))); |
| 11441 | #endif |
| 11442 | |
| 11443 | int fnord () { return 42; } |
| 11444 | int main () |
| 11445 | { |
| 11446 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11447 | int status = $lt_dlunknown; |
| 11448 | |
| 11449 | if (self) |
| 11450 | { |
| 11451 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11452 | else |
| 11453 | { |
| 11454 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11455 | else puts (dlerror ()); |
| 11456 | } |
| 11457 | /* dlclose (self); */ |
| 11458 | } |
| 11459 | else |
| 11460 | puts (dlerror ()); |
| 11461 | |
| 11462 | return status; |
| 11463 | } |
| 11464 | _LT_EOF |
| 11465 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11466 | (eval $ac_link) 2>&5 |
| 11467 | ac_status=$? |
| 11468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11469 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11470 | (./conftest; exit; ) >&5 2>/dev/null |
| 11471 | lt_status=$? |
| 11472 | case x$lt_status in |
| 11473 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11474 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11475 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11476 | esac |
| 11477 | else : |
| 11478 | # compilation failed |
| 11479 | lt_cv_dlopen_self=no |
| 11480 | fi |
| 11481 | fi |
| 11482 | rm -fr conftest* |
| 11483 | |
| 11484 | |
| 11485 | fi |
| 11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11487 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11488 | |
| 11489 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11490 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11492 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11493 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11494 | $as_echo_n "(cached) " >&6 |
| 11495 | else |
| 11496 | if test "$cross_compiling" = yes; then : |
| 11497 | lt_cv_dlopen_self_static=cross |
| 11498 | else |
| 11499 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11500 | lt_status=$lt_dlunknown |
| 11501 | cat > conftest.$ac_ext <<_LT_EOF |
| 11502 | #line $LINENO "configure" |
| 11503 | #include "confdefs.h" |
| 11504 | |
| 11505 | #if HAVE_DLFCN_H |
| 11506 | #include <dlfcn.h> |
| 11507 | #endif |
| 11508 | |
| 11509 | #include <stdio.h> |
| 11510 | |
| 11511 | #ifdef RTLD_GLOBAL |
| 11512 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11513 | #else |
| 11514 | # ifdef DL_GLOBAL |
| 11515 | # define LT_DLGLOBAL DL_GLOBAL |
| 11516 | # else |
| 11517 | # define LT_DLGLOBAL 0 |
| 11518 | # endif |
| 11519 | #endif |
| 11520 | |
| 11521 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11522 | find out it does not work in some platform. */ |
| 11523 | #ifndef LT_DLLAZY_OR_NOW |
| 11524 | # ifdef RTLD_LAZY |
| 11525 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11526 | # else |
| 11527 | # ifdef DL_LAZY |
| 11528 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11529 | # else |
| 11530 | # ifdef RTLD_NOW |
| 11531 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11532 | # else |
| 11533 | # ifdef DL_NOW |
| 11534 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11535 | # else |
| 11536 | # define LT_DLLAZY_OR_NOW 0 |
| 11537 | # endif |
| 11538 | # endif |
| 11539 | # endif |
| 11540 | # endif |
| 11541 | #endif |
| 11542 | |
| 11543 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11544 | correspondingly for the symbols needed. */ |
| 11545 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11546 | int fnord () __attribute__((visibility("default"))); |
| 11547 | #endif |
| 11548 | |
| 11549 | int fnord () { return 42; } |
| 11550 | int main () |
| 11551 | { |
| 11552 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11553 | int status = $lt_dlunknown; |
| 11554 | |
| 11555 | if (self) |
| 11556 | { |
| 11557 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11558 | else |
| 11559 | { |
| 11560 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11561 | else puts (dlerror ()); |
| 11562 | } |
| 11563 | /* dlclose (self); */ |
| 11564 | } |
| 11565 | else |
| 11566 | puts (dlerror ()); |
| 11567 | |
| 11568 | return status; |
| 11569 | } |
| 11570 | _LT_EOF |
| 11571 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11572 | (eval $ac_link) 2>&5 |
| 11573 | ac_status=$? |
| 11574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11575 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11576 | (./conftest; exit; ) >&5 2>/dev/null |
| 11577 | lt_status=$? |
| 11578 | case x$lt_status in |
| 11579 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11580 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11581 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11582 | esac |
| 11583 | else : |
| 11584 | # compilation failed |
| 11585 | lt_cv_dlopen_self_static=no |
| 11586 | fi |
| 11587 | fi |
| 11588 | rm -fr conftest* |
| 11589 | |
| 11590 | |
| 11591 | fi |
| 11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11593 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 11594 | fi |
| 11595 | |
| 11596 | CPPFLAGS="$save_CPPFLAGS" |
| 11597 | LDFLAGS="$save_LDFLAGS" |
| 11598 | LIBS="$save_LIBS" |
| 11599 | ;; |
| 11600 | esac |
| 11601 | |
| 11602 | case $lt_cv_dlopen_self in |
| 11603 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11604 | *) enable_dlopen_self=unknown ;; |
| 11605 | esac |
| 11606 | |
| 11607 | case $lt_cv_dlopen_self_static in |
| 11608 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11609 | *) enable_dlopen_self_static=unknown ;; |
| 11610 | esac |
| 11611 | fi |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
| 11626 | |
| 11627 | |
| 11628 | |
| 11629 | striplib= |
| 11630 | old_striplib= |
| 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11632 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11633 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11634 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11635 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11637 | $as_echo "yes" >&6; } |
| 11638 | else |
| 11639 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11640 | case $host_os in |
| 11641 | darwin*) |
| 11642 | if test -n "$STRIP" ; then |
| 11643 | striplib="$STRIP -x" |
| 11644 | old_striplib="$STRIP -S" |
| 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11646 | $as_echo "yes" >&6; } |
| 11647 | else |
| 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11649 | $as_echo "no" >&6; } |
| 11650 | fi |
| 11651 | ;; |
| 11652 | *) |
| 11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11654 | $as_echo "no" >&6; } |
| 11655 | ;; |
| 11656 | esac |
| 11657 | fi |
| 11658 | |
| 11659 | |
| 11660 | |
| 11661 | |
| 11662 | |
| 11663 | |
| 11664 | |
| 11665 | |
| 11666 | |
| 11667 | |
| 11668 | |
| 11669 | |
| 11670 | # Report which library types will actually be built |
| 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11672 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11674 | $as_echo "$can_build_shared" >&6; } |
| 11675 | |
| 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11677 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11678 | test "$can_build_shared" = "no" && enable_shared=no |
| 11679 | |
| 11680 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11681 | # are all built from PIC. |
| 11682 | case $host_os in |
| 11683 | aix3*) |
| 11684 | test "$enable_shared" = yes && enable_static=no |
| 11685 | if test -n "$RANLIB"; then |
| 11686 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11687 | postinstall_cmds='$RANLIB $lib' |
| 11688 | fi |
| 11689 | ;; |
| 11690 | |
| 11691 | aix[4-9]*) |
| 11692 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11693 | test "$enable_shared" = yes && enable_static=no |
| 11694 | fi |
| 11695 | ;; |
| 11696 | esac |
| 11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11698 | $as_echo "$enable_shared" >&6; } |
| 11699 | |
| 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11701 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11702 | # Make sure either enable_shared or enable_static is yes. |
| 11703 | test "$enable_shared" = yes || enable_static=yes |
| 11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11705 | $as_echo "$enable_static" >&6; } |
| 11706 | |
| 11707 | |
| 11708 | |
| 11709 | |
| 11710 | fi |
| 11711 | ac_ext=c |
| 11712 | ac_cpp='$CPP $CPPFLAGS' |
| 11713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11716 | |
| 11717 | CC="$lt_save_CC" |
| 11718 | |
| 11719 | |
| 11720 | |
| 11721 | |
| 11722 | |
| 11723 | |
| 11724 | |
| 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | ac_config_commands="$ac_config_commands libtool" |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | # Only expand once: |
| 11739 | |
| 11740 | |
| 11741 | ac_ext=cpp |
| 11742 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11743 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11744 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11745 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11746 | if test -z "$CXX"; then |
| 11747 | if test -n "$CCC"; then |
| 11748 | CXX=$CCC |
| 11749 | else |
| 11750 | if test -n "$ac_tool_prefix"; then |
| 11751 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 11752 | do |
| 11753 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11754 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11756 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11757 | if ${ac_cv_prog_CXX+:} false; then : |
| 11758 | $as_echo_n "(cached) " >&6 |
| 11759 | else |
| 11760 | if test -n "$CXX"; then |
| 11761 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 11762 | else |
| 11763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11764 | for as_dir in $PATH |
| 11765 | do |
| 11766 | IFS=$as_save_IFS |
| 11767 | test -z "$as_dir" && as_dir=. |
| 11768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11770 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 11771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11772 | break 2 |
| 11773 | fi |
| 11774 | done |
| 11775 | done |
| 11776 | IFS=$as_save_IFS |
| 11777 | |
| 11778 | fi |
| 11779 | fi |
| 11780 | CXX=$ac_cv_prog_CXX |
| 11781 | if test -n "$CXX"; then |
| 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 11783 | $as_echo "$CXX" >&6; } |
| 11784 | else |
| 11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11786 | $as_echo "no" >&6; } |
| 11787 | fi |
| 11788 | |
| 11789 | |
| 11790 | test -n "$CXX" && break |
| 11791 | done |
| 11792 | fi |
| 11793 | if test -z "$CXX"; then |
| 11794 | ac_ct_CXX=$CXX |
| 11795 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 11796 | do |
| 11797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11798 | set dummy $ac_prog; ac_word=$2 |
| 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11800 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11801 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 11802 | $as_echo_n "(cached) " >&6 |
| 11803 | else |
| 11804 | if test -n "$ac_ct_CXX"; then |
| 11805 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 11806 | else |
| 11807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11808 | for as_dir in $PATH |
| 11809 | do |
| 11810 | IFS=$as_save_IFS |
| 11811 | test -z "$as_dir" && as_dir=. |
| 11812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11814 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 11815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11816 | break 2 |
| 11817 | fi |
| 11818 | done |
| 11819 | done |
| 11820 | IFS=$as_save_IFS |
| 11821 | |
| 11822 | fi |
| 11823 | fi |
| 11824 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 11825 | if test -n "$ac_ct_CXX"; then |
| 11826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 11827 | $as_echo "$ac_ct_CXX" >&6; } |
| 11828 | else |
| 11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11830 | $as_echo "no" >&6; } |
| 11831 | fi |
| 11832 | |
| 11833 | |
| 11834 | test -n "$ac_ct_CXX" && break |
| 11835 | done |
| 11836 | |
| 11837 | if test "x$ac_ct_CXX" = x; then |
| 11838 | CXX="g++" |
| 11839 | else |
| 11840 | case $cross_compiling:$ac_tool_warned in |
| 11841 | yes:) |
| 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11843 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11844 | ac_tool_warned=yes ;; |
| 11845 | esac |
| 11846 | CXX=$ac_ct_CXX |
| 11847 | fi |
| 11848 | fi |
| 11849 | |
| 11850 | fi |
| 11851 | fi |
| 11852 | # Provide some information about the compiler. |
| 11853 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 11854 | set X $ac_compile |
| 11855 | ac_compiler=$2 |
| 11856 | for ac_option in --version -v -V -qversion; do |
| 11857 | { { ac_try="$ac_compiler $ac_option >&5" |
| 11858 | case "(($ac_try" in |
| 11859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11860 | *) ac_try_echo=$ac_try;; |
| 11861 | esac |
| 11862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 11863 | $as_echo "$ac_try_echo"; } >&5 |
| 11864 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 11865 | ac_status=$? |
| 11866 | if test -s conftest.err; then |
| 11867 | sed '10a\ |
| 11868 | ... rest of stderr output deleted ... |
| 11869 | 10q' conftest.err >conftest.er1 |
| 11870 | cat conftest.er1 >&5 |
| 11871 | fi |
| 11872 | rm -f conftest.er1 conftest.err |
| 11873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11874 | test $ac_status = 0; } |
| 11875 | done |
| 11876 | |
| 11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 11878 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 11879 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 11880 | $as_echo_n "(cached) " >&6 |
| 11881 | else |
| 11882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11883 | /* end confdefs.h. */ |
| 11884 | |
| 11885 | int |
| 11886 | main () |
| 11887 | { |
| 11888 | #ifndef __GNUC__ |
| 11889 | choke me |
| 11890 | #endif |
| 11891 | |
| 11892 | ; |
| 11893 | return 0; |
| 11894 | } |
| 11895 | _ACEOF |
| 11896 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 11897 | ac_compiler_gnu=yes |
| 11898 | else |
| 11899 | ac_compiler_gnu=no |
| 11900 | fi |
| 11901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11902 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 11903 | |
| 11904 | fi |
| 11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 11906 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 11907 | if test $ac_compiler_gnu = yes; then |
| 11908 | GXX=yes |
| 11909 | else |
| 11910 | GXX= |
| 11911 | fi |
| 11912 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 11913 | ac_save_CXXFLAGS=$CXXFLAGS |
| 11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 11915 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 11916 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 11917 | $as_echo_n "(cached) " >&6 |
| 11918 | else |
| 11919 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 11920 | ac_cxx_werror_flag=yes |
| 11921 | ac_cv_prog_cxx_g=no |
| 11922 | CXXFLAGS="-g" |
| 11923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11924 | /* end confdefs.h. */ |
| 11925 | |
| 11926 | int |
| 11927 | main () |
| 11928 | { |
| 11929 | |
| 11930 | ; |
| 11931 | return 0; |
| 11932 | } |
| 11933 | _ACEOF |
| 11934 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 11935 | ac_cv_prog_cxx_g=yes |
| 11936 | else |
| 11937 | CXXFLAGS="" |
| 11938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11939 | /* end confdefs.h. */ |
| 11940 | |
| 11941 | int |
| 11942 | main () |
| 11943 | { |
| 11944 | |
| 11945 | ; |
| 11946 | return 0; |
| 11947 | } |
| 11948 | _ACEOF |
| 11949 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 11950 | |
| 11951 | else |
| 11952 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 11953 | CXXFLAGS="-g" |
| 11954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11955 | /* end confdefs.h. */ |
| 11956 | |
| 11957 | int |
| 11958 | main () |
| 11959 | { |
| 11960 | |
| 11961 | ; |
| 11962 | return 0; |
| 11963 | } |
| 11964 | _ACEOF |
| 11965 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 11966 | ac_cv_prog_cxx_g=yes |
| 11967 | fi |
| 11968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11969 | fi |
| 11970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11971 | fi |
| 11972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11973 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 11974 | fi |
| 11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 11976 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 11977 | if test "$ac_test_CXXFLAGS" = set; then |
| 11978 | CXXFLAGS=$ac_save_CXXFLAGS |
| 11979 | elif test $ac_cv_prog_cxx_g = yes; then |
| 11980 | if test "$GXX" = yes; then |
| 11981 | CXXFLAGS="-g -O2" |
| 11982 | else |
| 11983 | CXXFLAGS="-g" |
| 11984 | fi |
| 11985 | else |
| 11986 | if test "$GXX" = yes; then |
| 11987 | CXXFLAGS="-O2" |
| 11988 | else |
| 11989 | CXXFLAGS= |
| 11990 | fi |
| 11991 | fi |
| 11992 | ac_ext=c |
| 11993 | ac_cpp='$CPP $CPPFLAGS' |
| 11994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11997 | |
| 11998 | depcc="$CXX" am_compiler_list= |
| 11999 | |
| 12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 12001 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 12002 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 12003 | $as_echo_n "(cached) " >&6 |
| 12004 | else |
| 12005 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 12006 | # We make a subdir and do the tests there. Otherwise we can end up |
| 12007 | # making bogus files that we don't know about and never remove. For |
| 12008 | # instance it was reported that on HP-UX the gcc test will end up |
| 12009 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 12010 | # in D". |
| 12011 | rm -rf conftest.dir |
| 12012 | mkdir conftest.dir |
| 12013 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 12014 | # using a relative directory. |
| 12015 | cp "$am_depcomp" conftest.dir |
| 12016 | cd conftest.dir |
| 12017 | # We will build objects and dependencies in a subdirectory because |
| 12018 | # it helps to detect inapplicable dependency modes. For instance |
| 12019 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 12020 | # side effect of compilation, but ICC will put the dependencies in |
| 12021 | # the current directory while Tru64 will put them in the object |
| 12022 | # directory. |
| 12023 | mkdir sub |
| 12024 | |
| 12025 | am_cv_CXX_dependencies_compiler_type=none |
| 12026 | if test "$am_compiler_list" = ""; then |
| 12027 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 12028 | fi |
| 12029 | am__universal=false |
| 12030 | case " $depcc " in #( |
| 12031 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 12032 | esac |
| 12033 | |
| 12034 | for depmode in $am_compiler_list; do |
| 12035 | # Setup a source with many dependencies, because some compilers |
| 12036 | # like to wrap large dependency lists on column 80 (with \), and |
| 12037 | # we should not choose a depcomp mode which is confused by this. |
| 12038 | # |
| 12039 | # We need to recreate these files for each test, as the compiler may |
| 12040 | # overwrite some of them when testing with obscure command lines. |
| 12041 | # This happens at least with the AIX C compiler. |
| 12042 | : > sub/conftest.c |
| 12043 | for i in 1 2 3 4 5 6; do |
| 12044 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 12045 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 12046 | # Solaris 10 /bin/sh. |
| 12047 | echo '/* dummy */' > sub/conftst$i.h |
| 12048 | done |
| 12049 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 12050 | |
| 12051 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 12052 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 12053 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 12054 | # versions had trouble with output in subdirs. |
| 12055 | am__obj=sub/conftest.${OBJEXT-o} |
| 12056 | am__minus_obj="-o $am__obj" |
| 12057 | case $depmode in |
| 12058 | gcc) |
| 12059 | # This depmode causes a compiler race in universal mode. |
| 12060 | test "$am__universal" = false || continue |
| 12061 | ;; |
| 12062 | nosideeffect) |
| 12063 | # After this tag, mechanisms are not by side-effect, so they'll |
| 12064 | # only be used when explicitly requested. |
| 12065 | if test "x$enable_dependency_tracking" = xyes; then |
| 12066 | continue |
| 12067 | else |
| 12068 | break |
| 12069 | fi |
| 12070 | ;; |
| 12071 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 12072 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 12073 | # not run yet. These depmodes are late enough in the game, and |
| 12074 | # so weak that their functioning should not be impacted. |
| 12075 | am__obj=conftest.${OBJEXT-o} |
| 12076 | am__minus_obj= |
| 12077 | ;; |
| 12078 | none) break ;; |
| 12079 | esac |
| 12080 | if depmode=$depmode \ |
| 12081 | source=sub/conftest.c object=$am__obj \ |
| 12082 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 12083 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 12084 | >/dev/null 2>conftest.err && |
| 12085 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 12086 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 12087 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 12088 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 12089 | # icc doesn't choke on unknown options, it will just issue warnings |
| 12090 | # or remarks (even with -Werror). So we grep stderr for any message |
| 12091 | # that says an option was ignored or not supported. |
| 12092 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 12093 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 12094 | # The diagnosis changed in icc 8.0: |
| 12095 | # icc: Command line remark: option '-MP' not supported |
| 12096 | if (grep 'ignoring option' conftest.err || |
| 12097 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 12098 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 12099 | break |
| 12100 | fi |
| 12101 | fi |
| 12102 | done |
| 12103 | |
| 12104 | cd .. |
| 12105 | rm -rf conftest.dir |
| 12106 | else |
| 12107 | am_cv_CXX_dependencies_compiler_type=none |
| 12108 | fi |
| 12109 | |
| 12110 | fi |
| 12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 12112 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 12113 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 12114 | |
| 12115 | if |
| 12116 | test "x$enable_dependency_tracking" != xno \ |
| 12117 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 12118 | am__fastdepCXX_TRUE= |
| 12119 | am__fastdepCXX_FALSE='#' |
| 12120 | else |
| 12121 | am__fastdepCXX_TRUE='#' |
| 12122 | am__fastdepCXX_FALSE= |
| 12123 | fi |
| 12124 | |
| 12125 | |
| 12126 | |
| 12127 | |
| 12128 | func_stripname_cnf () |
| 12129 | { |
| 12130 | case ${2} in |
| 12131 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12132 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12133 | esac |
| 12134 | } # func_stripname_cnf |
| 12135 | |
| 12136 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12137 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12138 | (test "X$CXX" != "Xg++"))) ; then |
| 12139 | ac_ext=cpp |
| 12140 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12141 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12142 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12143 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12145 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12146 | if test -z "$CXXCPP"; then |
| 12147 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 12148 | $as_echo_n "(cached) " >&6 |
| 12149 | else |
| 12150 | # Double quotes because CXXCPP needs to be expanded |
| 12151 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12152 | do |
| 12153 | ac_preproc_ok=false |
| 12154 | for ac_cxx_preproc_warn_flag in '' yes |
| 12155 | do |
| 12156 | # Use a header file that comes with gcc, so configuring glibc |
| 12157 | # with a fresh cross-compiler works. |
| 12158 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12159 | # <limits.h> exists even on freestanding compilers. |
| 12160 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12161 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12163 | /* end confdefs.h. */ |
| 12164 | #ifdef __STDC__ |
| 12165 | # include <limits.h> |
| 12166 | #else |
| 12167 | # include <assert.h> |
| 12168 | #endif |
| 12169 | Syntax error |
| 12170 | _ACEOF |
| 12171 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12172 | |
| 12173 | else |
| 12174 | # Broken: fails on valid input. |
| 12175 | continue |
| 12176 | fi |
| 12177 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12178 | |
| 12179 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12180 | # can be detected and how. |
| 12181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12182 | /* end confdefs.h. */ |
| 12183 | #include <ac_nonexistent.h> |
| 12184 | _ACEOF |
| 12185 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12186 | # Broken: success on invalid input. |
| 12187 | continue |
| 12188 | else |
| 12189 | # Passes both tests. |
| 12190 | ac_preproc_ok=: |
| 12191 | break |
| 12192 | fi |
| 12193 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12194 | |
| 12195 | done |
| 12196 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12197 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12198 | if $ac_preproc_ok; then : |
| 12199 | break |
| 12200 | fi |
| 12201 | |
| 12202 | done |
| 12203 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12204 | |
| 12205 | fi |
| 12206 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12207 | else |
| 12208 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12209 | fi |
| 12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12211 | $as_echo "$CXXCPP" >&6; } |
| 12212 | ac_preproc_ok=false |
| 12213 | for ac_cxx_preproc_warn_flag in '' yes |
| 12214 | do |
| 12215 | # Use a header file that comes with gcc, so configuring glibc |
| 12216 | # with a fresh cross-compiler works. |
| 12217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12218 | # <limits.h> exists even on freestanding compilers. |
| 12219 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12220 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12222 | /* end confdefs.h. */ |
| 12223 | #ifdef __STDC__ |
| 12224 | # include <limits.h> |
| 12225 | #else |
| 12226 | # include <assert.h> |
| 12227 | #endif |
| 12228 | Syntax error |
| 12229 | _ACEOF |
| 12230 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12231 | |
| 12232 | else |
| 12233 | # Broken: fails on valid input. |
| 12234 | continue |
| 12235 | fi |
| 12236 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12237 | |
| 12238 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12239 | # can be detected and how. |
| 12240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12241 | /* end confdefs.h. */ |
| 12242 | #include <ac_nonexistent.h> |
| 12243 | _ACEOF |
| 12244 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12245 | # Broken: success on invalid input. |
| 12246 | continue |
| 12247 | else |
| 12248 | # Passes both tests. |
| 12249 | ac_preproc_ok=: |
| 12250 | break |
| 12251 | fi |
| 12252 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12253 | |
| 12254 | done |
| 12255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12256 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12257 | if $ac_preproc_ok; then : |
| 12258 | |
| 12259 | else |
| 12260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12262 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12263 | See \`config.log' for more details" "$LINENO" 5; } |
| 12264 | fi |
| 12265 | |
| 12266 | ac_ext=c |
| 12267 | ac_cpp='$CPP $CPPFLAGS' |
| 12268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12271 | |
| 12272 | else |
| 12273 | _lt_caught_CXX_error=yes |
| 12274 | fi |
| 12275 | |
| 12276 | ac_ext=cpp |
| 12277 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12278 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12279 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12280 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12281 | |
| 12282 | archive_cmds_need_lc_CXX=no |
| 12283 | allow_undefined_flag_CXX= |
| 12284 | always_export_symbols_CXX=no |
| 12285 | archive_expsym_cmds_CXX= |
| 12286 | compiler_needs_object_CXX=no |
| 12287 | export_dynamic_flag_spec_CXX= |
| 12288 | hardcode_direct_CXX=no |
| 12289 | hardcode_direct_absolute_CXX=no |
| 12290 | hardcode_libdir_flag_spec_CXX= |
| 12291 | hardcode_libdir_separator_CXX= |
| 12292 | hardcode_minus_L_CXX=no |
| 12293 | hardcode_shlibpath_var_CXX=unsupported |
| 12294 | hardcode_automatic_CXX=no |
| 12295 | inherit_rpath_CXX=no |
| 12296 | module_cmds_CXX= |
| 12297 | module_expsym_cmds_CXX= |
| 12298 | link_all_deplibs_CXX=unknown |
| 12299 | old_archive_cmds_CXX=$old_archive_cmds |
| 12300 | reload_flag_CXX=$reload_flag |
| 12301 | reload_cmds_CXX=$reload_cmds |
| 12302 | no_undefined_flag_CXX= |
| 12303 | whole_archive_flag_spec_CXX= |
| 12304 | enable_shared_with_static_runtimes_CXX=no |
| 12305 | |
| 12306 | # Source file extension for C++ test sources. |
| 12307 | ac_ext=cpp |
| 12308 | |
| 12309 | # Object file extension for compiled C++ test sources. |
| 12310 | objext=o |
| 12311 | objext_CXX=$objext |
| 12312 | |
| 12313 | # No sense in running all these tests if we already determined that |
| 12314 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12315 | # are currently assumed to apply to all compilers on this platform, |
| 12316 | # and will be corrupted by setting them based on a non-working compiler. |
| 12317 | if test "$_lt_caught_CXX_error" != yes; then |
| 12318 | # Code to be used in simple compile tests |
| 12319 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12320 | |
| 12321 | # Code to be used in simple link tests |
| 12322 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 12323 | |
| 12324 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12325 | |
| 12326 | |
| 12327 | |
| 12328 | |
| 12329 | |
| 12330 | |
| 12331 | # If no C compiler was specified, use CC. |
| 12332 | LTCC=${LTCC-"$CC"} |
| 12333 | |
| 12334 | # If no C compiler flags were specified, use CFLAGS. |
| 12335 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12336 | |
| 12337 | # Allow CC to be a program name with arguments. |
| 12338 | compiler=$CC |
| 12339 | |
| 12340 | |
| 12341 | # save warnings/boilerplate of simple test code |
| 12342 | ac_outfile=conftest.$ac_objext |
| 12343 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12344 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12345 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12346 | $RM conftest* |
| 12347 | |
| 12348 | ac_outfile=conftest.$ac_objext |
| 12349 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12350 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12351 | _lt_linker_boilerplate=`cat conftest.err` |
| 12352 | $RM -r conftest* |
| 12353 | |
| 12354 | |
| 12355 | # Allow CC to be a program name with arguments. |
| 12356 | lt_save_CC=$CC |
| 12357 | lt_save_CFLAGS=$CFLAGS |
| 12358 | lt_save_LD=$LD |
| 12359 | lt_save_GCC=$GCC |
| 12360 | GCC=$GXX |
| 12361 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12362 | lt_save_path_LD=$lt_cv_path_LD |
| 12363 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12364 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12365 | else |
| 12366 | $as_unset lt_cv_prog_gnu_ld |
| 12367 | fi |
| 12368 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12369 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12370 | else |
| 12371 | $as_unset lt_cv_path_LD |
| 12372 | fi |
| 12373 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12374 | CC=${CXX-"c++"} |
| 12375 | CFLAGS=$CXXFLAGS |
| 12376 | compiler=$CC |
| 12377 | compiler_CXX=$CC |
| 12378 | for cc_temp in $compiler""; do |
| 12379 | case $cc_temp in |
| 12380 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12381 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12382 | \-*) ;; |
| 12383 | *) break;; |
| 12384 | esac |
| 12385 | done |
| 12386 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12387 | |
| 12388 | |
| 12389 | if test -n "$compiler"; then |
| 12390 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12391 | # no_builtin_flag separately |
| 12392 | if test "$GXX" = yes; then |
| 12393 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12394 | else |
| 12395 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12396 | fi |
| 12397 | |
| 12398 | if test "$GXX" = yes; then |
| 12399 | # Set up default GNU C++ configuration |
| 12400 | |
| 12401 | |
| 12402 | |
| 12403 | # Check whether --with-gnu-ld was given. |
| 12404 | if test "${with_gnu_ld+set}" = set; then : |
| 12405 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 12406 | else |
| 12407 | with_gnu_ld=no |
| 12408 | fi |
| 12409 | |
| 12410 | ac_prog=ld |
| 12411 | if test "$GCC" = yes; then |
| 12412 | # Check if gcc -print-prog-name=ld gives a path. |
| 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 12414 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 12415 | case $host in |
| 12416 | *-*-mingw*) |
| 12417 | # gcc leaves a trailing carriage return which upsets mingw |
| 12418 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12419 | *) |
| 12420 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12421 | esac |
| 12422 | case $ac_prog in |
| 12423 | # Accept absolute paths. |
| 12424 | [\\/]* | ?:[\\/]*) |
| 12425 | re_direlt='/[^/][^/]*/\.\./' |
| 12426 | # Canonicalize the pathname of ld |
| 12427 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 12428 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 12429 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 12430 | done |
| 12431 | test -z "$LD" && LD="$ac_prog" |
| 12432 | ;; |
| 12433 | "") |
| 12434 | # If it fails, then pretend we aren't using GCC. |
| 12435 | ac_prog=ld |
| 12436 | ;; |
| 12437 | *) |
| 12438 | # If it is relative, then search for the first ld in PATH. |
| 12439 | with_gnu_ld=unknown |
| 12440 | ;; |
| 12441 | esac |
| 12442 | elif test "$with_gnu_ld" = yes; then |
| 12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 12444 | $as_echo_n "checking for GNU ld... " >&6; } |
| 12445 | else |
| 12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 12447 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 12448 | fi |
| 12449 | if ${lt_cv_path_LD+:} false; then : |
| 12450 | $as_echo_n "(cached) " >&6 |
| 12451 | else |
| 12452 | if test -z "$LD"; then |
| 12453 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12454 | for ac_dir in $PATH; do |
| 12455 | IFS="$lt_save_ifs" |
| 12456 | test -z "$ac_dir" && ac_dir=. |
| 12457 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12458 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12459 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 12460 | # but apparently some variants of GNU ld only accept -v. |
| 12461 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12462 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12463 | *GNU* | *'with BFD'*) |
| 12464 | test "$with_gnu_ld" != no && break |
| 12465 | ;; |
| 12466 | *) |
| 12467 | test "$with_gnu_ld" != yes && break |
| 12468 | ;; |
| 12469 | esac |
| 12470 | fi |
| 12471 | done |
| 12472 | IFS="$lt_save_ifs" |
| 12473 | else |
| 12474 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12475 | fi |
| 12476 | fi |
| 12477 | |
| 12478 | LD="$lt_cv_path_LD" |
| 12479 | if test -n "$LD"; then |
| 12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 12481 | $as_echo "$LD" >&6; } |
| 12482 | else |
| 12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12484 | $as_echo "no" >&6; } |
| 12485 | fi |
| 12486 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 12488 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 12489 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 12490 | $as_echo_n "(cached) " >&6 |
| 12491 | else |
| 12492 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 12493 | case `$LD -v 2>&1 </dev/null` in |
| 12494 | *GNU* | *'with BFD'*) |
| 12495 | lt_cv_prog_gnu_ld=yes |
| 12496 | ;; |
| 12497 | *) |
| 12498 | lt_cv_prog_gnu_ld=no |
| 12499 | ;; |
| 12500 | esac |
| 12501 | fi |
| 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 12503 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 12504 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12505 | |
| 12506 | |
| 12507 | |
| 12508 | |
| 12509 | |
| 12510 | |
| 12511 | |
| 12512 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12513 | # archiving commands below assume that GNU ld is being used. |
| 12514 | if test "$with_gnu_ld" = yes; then |
| 12515 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12516 | 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' |
| 12517 | |
| 12518 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12519 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12520 | |
| 12521 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12522 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12523 | # investigate it a little bit more. (MM) |
| 12524 | wlarc='${wl}' |
| 12525 | |
| 12526 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12527 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 12528 | $GREP 'no-whole-archive' > /dev/null; then |
| 12529 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12530 | else |
| 12531 | whole_archive_flag_spec_CXX= |
| 12532 | fi |
| 12533 | else |
| 12534 | with_gnu_ld=no |
| 12535 | wlarc= |
| 12536 | |
| 12537 | # A generic and very simple default shared library creation |
| 12538 | # command for GNU C++ for the case where it uses the native |
| 12539 | # linker, instead of GNU ld. If possible, this setting should |
| 12540 | # overridden to take advantage of the native linker features on |
| 12541 | # the platform it is being used on. |
| 12542 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12543 | fi |
| 12544 | |
| 12545 | # Commands to make compiler produce verbose output that lists |
| 12546 | # what "hidden" libraries, object files and flags are used when |
| 12547 | # linking a shared library. |
| 12548 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12549 | |
| 12550 | else |
| 12551 | GXX=no |
| 12552 | with_gnu_ld=no |
| 12553 | wlarc= |
| 12554 | fi |
| 12555 | |
| 12556 | # PORTME: fill in a description of your system's C++ link characteristics |
| 12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12558 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12559 | ld_shlibs_CXX=yes |
| 12560 | case $host_os in |
| 12561 | aix3*) |
| 12562 | # FIXME: insert proper C++ library support |
| 12563 | ld_shlibs_CXX=no |
| 12564 | ;; |
| 12565 | aix[4-9]*) |
| 12566 | if test "$host_cpu" = ia64; then |
| 12567 | # On IA64, the linker does run time linking by default, so we don't |
| 12568 | # have to do anything special. |
| 12569 | aix_use_runtimelinking=no |
| 12570 | exp_sym_flag='-Bexport' |
| 12571 | no_entry_flag="" |
| 12572 | else |
| 12573 | aix_use_runtimelinking=no |
| 12574 | |
| 12575 | # Test if we are trying to use run time linking or normal |
| 12576 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12577 | # need to do runtime linking. |
| 12578 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12579 | for ld_flag in $LDFLAGS; do |
| 12580 | case $ld_flag in |
| 12581 | *-brtl*) |
| 12582 | aix_use_runtimelinking=yes |
| 12583 | break |
| 12584 | ;; |
| 12585 | esac |
| 12586 | done |
| 12587 | ;; |
| 12588 | esac |
| 12589 | |
| 12590 | exp_sym_flag='-bexport' |
| 12591 | no_entry_flag='-bnoentry' |
| 12592 | fi |
| 12593 | |
| 12594 | # When large executables or shared objects are built, AIX ld can |
| 12595 | # have problems creating the table of contents. If linking a library |
| 12596 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12597 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12598 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12599 | |
| 12600 | archive_cmds_CXX='' |
| 12601 | hardcode_direct_CXX=yes |
| 12602 | hardcode_direct_absolute_CXX=yes |
| 12603 | hardcode_libdir_separator_CXX=':' |
| 12604 | link_all_deplibs_CXX=yes |
| 12605 | file_list_spec_CXX='${wl}-f,' |
| 12606 | |
| 12607 | if test "$GXX" = yes; then |
| 12608 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12609 | # We only want to do this on AIX 4.2 and lower, the check |
| 12610 | # below for broken collect2 doesn't work under 4.3+ |
| 12611 | collect2name=`${CC} -print-prog-name=collect2` |
| 12612 | if test -f "$collect2name" && |
| 12613 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12614 | then |
| 12615 | # We have reworked collect2 |
| 12616 | : |
| 12617 | else |
| 12618 | # We have old collect2 |
| 12619 | hardcode_direct_CXX=unsupported |
| 12620 | # It fails to find uninstalled libraries when the uninstalled |
| 12621 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12622 | # to unsupported forces relinking |
| 12623 | hardcode_minus_L_CXX=yes |
| 12624 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12625 | hardcode_libdir_separator_CXX= |
| 12626 | fi |
| 12627 | esac |
| 12628 | shared_flag='-shared' |
| 12629 | if test "$aix_use_runtimelinking" = yes; then |
| 12630 | shared_flag="$shared_flag "'${wl}-G' |
| 12631 | fi |
| 12632 | else |
| 12633 | # not using gcc |
| 12634 | if test "$host_cpu" = ia64; then |
| 12635 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12636 | # chokes on -Wl,-G. The following line is correct: |
| 12637 | shared_flag='-G' |
| 12638 | else |
| 12639 | if test "$aix_use_runtimelinking" = yes; then |
| 12640 | shared_flag='${wl}-G' |
| 12641 | else |
| 12642 | shared_flag='${wl}-bM:SRE' |
| 12643 | fi |
| 12644 | fi |
| 12645 | fi |
| 12646 | |
| 12647 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 12648 | # It seems that -bexpall does not export symbols beginning with |
| 12649 | # underscore (_), so it is better to generate a list of symbols to |
| 12650 | # export. |
| 12651 | always_export_symbols_CXX=yes |
| 12652 | if test "$aix_use_runtimelinking" = yes; then |
| 12653 | # Warning - without using the other runtime loading flags (-brtl), |
| 12654 | # -berok will link without error, but may produce a broken library. |
| 12655 | allow_undefined_flag_CXX='-berok' |
| 12656 | # Determine the default libpath from the value encoded in an empty |
| 12657 | # executable. |
| 12658 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 12659 | aix_libpath=$lt_cv_aix_libpath |
| 12660 | else |
| 12661 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 12662 | $as_echo_n "(cached) " >&6 |
| 12663 | else |
| 12664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12665 | /* end confdefs.h. */ |
| 12666 | |
| 12667 | int |
| 12668 | main () |
| 12669 | { |
| 12670 | |
| 12671 | ; |
| 12672 | return 0; |
| 12673 | } |
| 12674 | _ACEOF |
| 12675 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 12676 | |
| 12677 | lt_aix_libpath_sed=' |
| 12678 | /Import File Strings/,/^$/ { |
| 12679 | /^0/ { |
| 12680 | s/^0 *\([^ ]*\) *$/\1/ |
| 12681 | p |
| 12682 | } |
| 12683 | }' |
| 12684 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12685 | # Check for a 64-bit object if we didn't find anything. |
| 12686 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 12687 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12688 | fi |
| 12689 | fi |
| 12690 | rm -f core conftest.err conftest.$ac_objext \ |
| 12691 | conftest$ac_exeext conftest.$ac_ext |
| 12692 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 12693 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 12694 | fi |
| 12695 | |
| 12696 | fi |
| 12697 | |
| 12698 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 12699 | fi |
| 12700 | |
| 12701 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12702 | |
| 12703 | 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" |
| 12704 | else |
| 12705 | if test "$host_cpu" = ia64; then |
| 12706 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 12707 | allow_undefined_flag_CXX="-z nodefs" |
| 12708 | 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" |
| 12709 | else |
| 12710 | # Determine the default libpath from the value encoded in an |
| 12711 | # empty executable. |
| 12712 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 12713 | aix_libpath=$lt_cv_aix_libpath |
| 12714 | else |
| 12715 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 12716 | $as_echo_n "(cached) " >&6 |
| 12717 | else |
| 12718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12719 | /* end confdefs.h. */ |
| 12720 | |
| 12721 | int |
| 12722 | main () |
| 12723 | { |
| 12724 | |
| 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 12730 | |
| 12731 | lt_aix_libpath_sed=' |
| 12732 | /Import File Strings/,/^$/ { |
| 12733 | /^0/ { |
| 12734 | s/^0 *\([^ ]*\) *$/\1/ |
| 12735 | p |
| 12736 | } |
| 12737 | }' |
| 12738 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12739 | # Check for a 64-bit object if we didn't find anything. |
| 12740 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 12741 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12742 | fi |
| 12743 | fi |
| 12744 | rm -f core conftest.err conftest.$ac_objext \ |
| 12745 | conftest$ac_exeext conftest.$ac_ext |
| 12746 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 12747 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 12748 | fi |
| 12749 | |
| 12750 | fi |
| 12751 | |
| 12752 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 12753 | fi |
| 12754 | |
| 12755 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12756 | # Warning - without using the other run time loading flags, |
| 12757 | # -berok will link without error, but may produce a broken library. |
| 12758 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 12759 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 12760 | if test "$with_gnu_ld" = yes; then |
| 12761 | # We only use this code for GNU lds that support --whole-archive. |
| 12762 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12763 | else |
| 12764 | # Exported symbols can be pulled into shared objects from archives |
| 12765 | whole_archive_flag_spec_CXX='$convenience' |
| 12766 | fi |
| 12767 | archive_cmds_need_lc_CXX=yes |
| 12768 | # This is similar to how AIX traditionally builds its shared |
| 12769 | # libraries. |
| 12770 | 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' |
| 12771 | fi |
| 12772 | fi |
| 12773 | ;; |
| 12774 | |
| 12775 | beos*) |
| 12776 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12777 | allow_undefined_flag_CXX=unsupported |
| 12778 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12779 | # support --undefined. This deserves some investigation. FIXME |
| 12780 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12781 | else |
| 12782 | ld_shlibs_CXX=no |
| 12783 | fi |
| 12784 | ;; |
| 12785 | |
| 12786 | chorus*) |
| 12787 | case $cc_basename in |
| 12788 | *) |
| 12789 | # FIXME: insert proper C++ library support |
| 12790 | ld_shlibs_CXX=no |
| 12791 | ;; |
| 12792 | esac |
| 12793 | ;; |
| 12794 | |
| 12795 | cygwin* | mingw* | pw32* | cegcc*) |
| 12796 | case $GXX,$cc_basename in |
| 12797 | ,cl* | no,cl*) |
| 12798 | # Native MSVC |
| 12799 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12800 | # no search path for DLLs. |
| 12801 | hardcode_libdir_flag_spec_CXX=' ' |
| 12802 | allow_undefined_flag_CXX=unsupported |
| 12803 | always_export_symbols_CXX=yes |
| 12804 | file_list_spec_CXX='@' |
| 12805 | # Tell ltmain to make .lib files, not .a files. |
| 12806 | libext=lib |
| 12807 | # Tell ltmain to make .dll files, not .so files. |
| 12808 | shrext_cmds=".dll" |
| 12809 | # FIXME: Setting linknames here is a bad hack. |
| 12810 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 12811 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12812 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 12813 | else |
| 12814 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 12815 | fi~ |
| 12816 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 12817 | linknames=' |
| 12818 | # The linker will not automatically build a static lib if we build a DLL. |
| 12819 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 12820 | enable_shared_with_static_runtimes_CXX=yes |
| 12821 | # Don't use ranlib |
| 12822 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 12823 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 12824 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 12825 | case $lt_outputfile in |
| 12826 | *.exe|*.EXE) ;; |
| 12827 | *) |
| 12828 | lt_outputfile="$lt_outputfile.exe" |
| 12829 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 12830 | ;; |
| 12831 | esac~ |
| 12832 | func_to_tool_file "$lt_outputfile"~ |
| 12833 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 12834 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 12835 | $RM "$lt_outputfile.manifest"; |
| 12836 | fi' |
| 12837 | ;; |
| 12838 | *) |
| 12839 | # g++ |
| 12840 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 12841 | # as there is no search path for DLLs. |
| 12842 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12843 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 12844 | allow_undefined_flag_CXX=unsupported |
| 12845 | always_export_symbols_CXX=no |
| 12846 | enable_shared_with_static_runtimes_CXX=yes |
| 12847 | |
| 12848 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12849 | 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' |
| 12850 | # If the export-symbols file already is a .def file (1st line |
| 12851 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12852 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12853 | cp $export_symbols $output_objdir/$soname.def; |
| 12854 | else |
| 12855 | echo EXPORTS > $output_objdir/$soname.def; |
| 12856 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12857 | fi~ |
| 12858 | $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' |
| 12859 | else |
| 12860 | ld_shlibs_CXX=no |
| 12861 | fi |
| 12862 | ;; |
| 12863 | esac |
| 12864 | ;; |
| 12865 | darwin* | rhapsody*) |
| 12866 | |
| 12867 | |
| 12868 | archive_cmds_need_lc_CXX=no |
| 12869 | hardcode_direct_CXX=no |
| 12870 | hardcode_automatic_CXX=yes |
| 12871 | hardcode_shlibpath_var_CXX=unsupported |
| 12872 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 12873 | 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\"`' |
| 12874 | |
| 12875 | else |
| 12876 | whole_archive_flag_spec_CXX='' |
| 12877 | fi |
| 12878 | link_all_deplibs_CXX=yes |
| 12879 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12880 | case $cc_basename in |
| 12881 | ifort*) _lt_dar_can_shared=yes ;; |
| 12882 | *) _lt_dar_can_shared=$GCC ;; |
| 12883 | esac |
| 12884 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12885 | output_verbose_link_cmd=func_echo_all |
| 12886 | 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}" |
| 12887 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12888 | 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}" |
| 12889 | 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}" |
| 12890 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12891 | 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}" |
| 12892 | 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}" |
| 12893 | fi |
| 12894 | |
| 12895 | else |
| 12896 | ld_shlibs_CXX=no |
| 12897 | fi |
| 12898 | |
| 12899 | ;; |
| 12900 | |
| 12901 | dgux*) |
| 12902 | case $cc_basename in |
| 12903 | ec++*) |
| 12904 | # FIXME: insert proper C++ library support |
| 12905 | ld_shlibs_CXX=no |
| 12906 | ;; |
| 12907 | ghcx*) |
| 12908 | # Green Hills C++ Compiler |
| 12909 | # FIXME: insert proper C++ library support |
| 12910 | ld_shlibs_CXX=no |
| 12911 | ;; |
| 12912 | *) |
| 12913 | # FIXME: insert proper C++ library support |
| 12914 | ld_shlibs_CXX=no |
| 12915 | ;; |
| 12916 | esac |
| 12917 | ;; |
| 12918 | |
| 12919 | freebsd2.*) |
| 12920 | # C++ shared libraries reported to be fairly broken before |
| 12921 | # switch to ELF |
| 12922 | ld_shlibs_CXX=no |
| 12923 | ;; |
| 12924 | |
| 12925 | freebsd-elf*) |
| 12926 | archive_cmds_need_lc_CXX=no |
| 12927 | ;; |
| 12928 | |
| 12929 | freebsd* | dragonfly*) |
| 12930 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12931 | # conventions |
| 12932 | ld_shlibs_CXX=yes |
| 12933 | ;; |
| 12934 | |
| 12935 | gnu*) |
| 12936 | ;; |
| 12937 | |
| 12938 | haiku*) |
| 12939 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12940 | link_all_deplibs_CXX=yes |
| 12941 | ;; |
| 12942 | |
| 12943 | hpux9*) |
| 12944 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12945 | hardcode_libdir_separator_CXX=: |
| 12946 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12947 | hardcode_direct_CXX=yes |
| 12948 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12949 | # but as the default |
| 12950 | # location of the library. |
| 12951 | |
| 12952 | case $cc_basename in |
| 12953 | CC*) |
| 12954 | # FIXME: insert proper C++ library support |
| 12955 | ld_shlibs_CXX=no |
| 12956 | ;; |
| 12957 | aCC*) |
| 12958 | 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' |
| 12959 | # Commands to make compiler produce verbose output that lists |
| 12960 | # what "hidden" libraries, object files and flags are used when |
| 12961 | # linking a shared library. |
| 12962 | # |
| 12963 | # There doesn't appear to be a way to prevent this compiler from |
| 12964 | # explicitly linking system object files so we need to strip them |
| 12965 | # from the output so that they don't get included in the library |
| 12966 | # dependencies. |
| 12967 | 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"' |
| 12968 | ;; |
| 12969 | *) |
| 12970 | if test "$GXX" = yes; then |
| 12971 | 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' |
| 12972 | else |
| 12973 | # FIXME: insert proper C++ library support |
| 12974 | ld_shlibs_CXX=no |
| 12975 | fi |
| 12976 | ;; |
| 12977 | esac |
| 12978 | ;; |
| 12979 | |
| 12980 | hpux10*|hpux11*) |
| 12981 | if test $with_gnu_ld = no; then |
| 12982 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12983 | hardcode_libdir_separator_CXX=: |
| 12984 | |
| 12985 | case $host_cpu in |
| 12986 | hppa*64*|ia64*) |
| 12987 | ;; |
| 12988 | *) |
| 12989 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12990 | ;; |
| 12991 | esac |
| 12992 | fi |
| 12993 | case $host_cpu in |
| 12994 | hppa*64*|ia64*) |
| 12995 | hardcode_direct_CXX=no |
| 12996 | hardcode_shlibpath_var_CXX=no |
| 12997 | ;; |
| 12998 | *) |
| 12999 | hardcode_direct_CXX=yes |
| 13000 | hardcode_direct_absolute_CXX=yes |
| 13001 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13002 | # but as the default |
| 13003 | # location of the library. |
| 13004 | ;; |
| 13005 | esac |
| 13006 | |
| 13007 | case $cc_basename in |
| 13008 | CC*) |
| 13009 | # FIXME: insert proper C++ library support |
| 13010 | ld_shlibs_CXX=no |
| 13011 | ;; |
| 13012 | aCC*) |
| 13013 | case $host_cpu in |
| 13014 | hppa*64*) |
| 13015 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13016 | ;; |
| 13017 | ia64*) |
| 13018 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13019 | ;; |
| 13020 | *) |
| 13021 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13022 | ;; |
| 13023 | esac |
| 13024 | # Commands to make compiler produce verbose output that lists |
| 13025 | # what "hidden" libraries, object files and flags are used when |
| 13026 | # linking a shared library. |
| 13027 | # |
| 13028 | # There doesn't appear to be a way to prevent this compiler from |
| 13029 | # explicitly linking system object files so we need to strip them |
| 13030 | # from the output so that they don't get included in the library |
| 13031 | # dependencies. |
| 13032 | 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"' |
| 13033 | ;; |
| 13034 | *) |
| 13035 | if test "$GXX" = yes; then |
| 13036 | if test $with_gnu_ld = no; then |
| 13037 | case $host_cpu in |
| 13038 | hppa*64*) |
| 13039 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13040 | ;; |
| 13041 | ia64*) |
| 13042 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13043 | ;; |
| 13044 | *) |
| 13045 | 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' |
| 13046 | ;; |
| 13047 | esac |
| 13048 | fi |
| 13049 | else |
| 13050 | # FIXME: insert proper C++ library support |
| 13051 | ld_shlibs_CXX=no |
| 13052 | fi |
| 13053 | ;; |
| 13054 | esac |
| 13055 | ;; |
| 13056 | |
| 13057 | interix[3-9]*) |
| 13058 | hardcode_direct_CXX=no |
| 13059 | hardcode_shlibpath_var_CXX=no |
| 13060 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13061 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13062 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13063 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13064 | # default) and relocated if they conflict, which is a slow very memory |
| 13065 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13066 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13067 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13068 | 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' |
| 13069 | 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' |
| 13070 | ;; |
| 13071 | irix5* | irix6*) |
| 13072 | case $cc_basename in |
| 13073 | CC*) |
| 13074 | # SGI C++ |
| 13075 | 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' |
| 13076 | |
| 13077 | # Archives containing C++ object files must be created using |
| 13078 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13079 | # necessary to make sure instantiated templates are included |
| 13080 | # in the archive. |
| 13081 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13082 | ;; |
| 13083 | *) |
| 13084 | if test "$GXX" = yes; then |
| 13085 | if test "$with_gnu_ld" = no; then |
| 13086 | 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' |
| 13087 | else |
| 13088 | 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' |
| 13089 | fi |
| 13090 | fi |
| 13091 | link_all_deplibs_CXX=yes |
| 13092 | ;; |
| 13093 | esac |
| 13094 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13095 | hardcode_libdir_separator_CXX=: |
| 13096 | inherit_rpath_CXX=yes |
| 13097 | ;; |
| 13098 | |
| 13099 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13100 | case $cc_basename in |
| 13101 | KCC*) |
| 13102 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13103 | |
| 13104 | # KCC will only create a shared library if the output file |
| 13105 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13106 | # to its proper name (with version) after linking. |
| 13107 | 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' |
| 13108 | 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' |
| 13109 | # Commands to make compiler produce verbose output that lists |
| 13110 | # what "hidden" libraries, object files and flags are used when |
| 13111 | # linking a shared library. |
| 13112 | # |
| 13113 | # There doesn't appear to be a way to prevent this compiler from |
| 13114 | # explicitly linking system object files so we need to strip them |
| 13115 | # from the output so that they don't get included in the library |
| 13116 | # dependencies. |
| 13117 | 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"' |
| 13118 | |
| 13119 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13120 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13121 | |
| 13122 | # Archives containing C++ object files must be created using |
| 13123 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13124 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13125 | ;; |
| 13126 | icpc* | ecpc* ) |
| 13127 | # Intel C++ |
| 13128 | with_gnu_ld=yes |
| 13129 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13130 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13131 | # earlier do not add the objects themselves. |
| 13132 | case `$CC -V 2>&1` in |
| 13133 | *"Version 7."*) |
| 13134 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13135 | 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' |
| 13136 | ;; |
| 13137 | *) # Version 8.0 or newer |
| 13138 | tmp_idyn= |
| 13139 | case $host_cpu in |
| 13140 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13141 | esac |
| 13142 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13143 | 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' |
| 13144 | ;; |
| 13145 | esac |
| 13146 | archive_cmds_need_lc_CXX=no |
| 13147 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13148 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13149 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13150 | ;; |
| 13151 | pgCC* | pgcpp*) |
| 13152 | # Portland Group C++ compiler |
| 13153 | case `$CC -V` in |
| 13154 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 13155 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13156 | rm -rf $tpldir~ |
| 13157 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13158 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 13159 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13160 | rm -rf $tpldir~ |
| 13161 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13162 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 13163 | $RANLIB $oldlib' |
| 13164 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13165 | rm -rf $tpldir~ |
| 13166 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13167 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13168 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13169 | rm -rf $tpldir~ |
| 13170 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13171 | $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' |
| 13172 | ;; |
| 13173 | *) # Version 6 and above use weak symbols |
| 13174 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13175 | 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' |
| 13176 | ;; |
| 13177 | esac |
| 13178 | |
| 13179 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13180 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13181 | 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' |
| 13182 | ;; |
| 13183 | cxx*) |
| 13184 | # Compaq C++ |
| 13185 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13186 | 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' |
| 13187 | |
| 13188 | runpath_var=LD_RUN_PATH |
| 13189 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13190 | hardcode_libdir_separator_CXX=: |
| 13191 | |
| 13192 | # Commands to make compiler produce verbose output that lists |
| 13193 | # what "hidden" libraries, object files and flags are used when |
| 13194 | # linking a shared library. |
| 13195 | # |
| 13196 | # There doesn't appear to be a way to prevent this compiler from |
| 13197 | # explicitly linking system object files so we need to strip them |
| 13198 | # from the output so that they don't get included in the library |
| 13199 | # dependencies. |
| 13200 | 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' |
| 13201 | ;; |
| 13202 | xl* | mpixl* | bgxl*) |
| 13203 | # IBM XL 8.0 on PPC, with GNU ld |
| 13204 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13205 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13206 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13207 | if test "x$supports_anon_versioning" = xyes; then |
| 13208 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13209 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13210 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13211 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13212 | fi |
| 13213 | ;; |
| 13214 | *) |
| 13215 | case `$CC -V 2>&1 | sed 5q` in |
| 13216 | *Sun\ C*) |
| 13217 | # Sun C++ 5.9 |
| 13218 | no_undefined_flag_CXX=' -zdefs' |
| 13219 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13220 | 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' |
| 13221 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13222 | 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' |
| 13223 | compiler_needs_object_CXX=yes |
| 13224 | |
| 13225 | # Not sure whether something based on |
| 13226 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13227 | # would be better. |
| 13228 | output_verbose_link_cmd='func_echo_all' |
| 13229 | |
| 13230 | # Archives containing C++ object files must be created using |
| 13231 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13232 | # necessary to make sure instantiated templates are included |
| 13233 | # in the archive. |
| 13234 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13235 | ;; |
| 13236 | esac |
| 13237 | ;; |
| 13238 | esac |
| 13239 | ;; |
| 13240 | |
| 13241 | lynxos*) |
| 13242 | # FIXME: insert proper C++ library support |
| 13243 | ld_shlibs_CXX=no |
| 13244 | ;; |
| 13245 | |
| 13246 | m88k*) |
| 13247 | # FIXME: insert proper C++ library support |
| 13248 | ld_shlibs_CXX=no |
| 13249 | ;; |
| 13250 | |
| 13251 | mvs*) |
| 13252 | case $cc_basename in |
| 13253 | cxx*) |
| 13254 | # FIXME: insert proper C++ library support |
| 13255 | ld_shlibs_CXX=no |
| 13256 | ;; |
| 13257 | *) |
| 13258 | # FIXME: insert proper C++ library support |
| 13259 | ld_shlibs_CXX=no |
| 13260 | ;; |
| 13261 | esac |
| 13262 | ;; |
| 13263 | |
| 13264 | netbsd*) |
| 13265 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13266 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13267 | wlarc= |
| 13268 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13269 | hardcode_direct_CXX=yes |
| 13270 | hardcode_shlibpath_var_CXX=no |
| 13271 | fi |
| 13272 | # Workaround some broken pre-1.5 toolchains |
| 13273 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 13274 | ;; |
| 13275 | |
| 13276 | *nto* | *qnx*) |
| 13277 | ld_shlibs_CXX=yes |
| 13278 | ;; |
| 13279 | |
| 13280 | openbsd2*) |
| 13281 | # C++ shared libraries are fairly broken |
| 13282 | ld_shlibs_CXX=no |
| 13283 | ;; |
| 13284 | |
| 13285 | openbsd*) |
| 13286 | if test -f /usr/libexec/ld.so; then |
| 13287 | hardcode_direct_CXX=yes |
| 13288 | hardcode_shlibpath_var_CXX=no |
| 13289 | hardcode_direct_absolute_CXX=yes |
| 13290 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13291 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13292 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13293 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13294 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13295 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13296 | fi |
| 13297 | output_verbose_link_cmd=func_echo_all |
| 13298 | else |
| 13299 | ld_shlibs_CXX=no |
| 13300 | fi |
| 13301 | ;; |
| 13302 | |
| 13303 | osf3* | osf4* | osf5*) |
| 13304 | case $cc_basename in |
| 13305 | KCC*) |
| 13306 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13307 | |
| 13308 | # KCC will only create a shared library if the output file |
| 13309 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13310 | # to its proper name (with version) after linking. |
| 13311 | 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' |
| 13312 | |
| 13313 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13314 | hardcode_libdir_separator_CXX=: |
| 13315 | |
| 13316 | # Archives containing C++ object files must be created using |
| 13317 | # the KAI C++ compiler. |
| 13318 | case $host in |
| 13319 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13320 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13321 | esac |
| 13322 | ;; |
| 13323 | RCC*) |
| 13324 | # Rational C++ 2.4.1 |
| 13325 | # FIXME: insert proper C++ library support |
| 13326 | ld_shlibs_CXX=no |
| 13327 | ;; |
| 13328 | cxx*) |
| 13329 | case $host in |
| 13330 | osf3*) |
| 13331 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13332 | 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' |
| 13333 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13334 | ;; |
| 13335 | *) |
| 13336 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13337 | 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' |
| 13338 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13339 | echo "-hidden">> $lib.exp~ |
| 13340 | $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~ |
| 13341 | $RM $lib.exp' |
| 13342 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13343 | ;; |
| 13344 | esac |
| 13345 | |
| 13346 | hardcode_libdir_separator_CXX=: |
| 13347 | |
| 13348 | # Commands to make compiler produce verbose output that lists |
| 13349 | # what "hidden" libraries, object files and flags are used when |
| 13350 | # linking a shared library. |
| 13351 | # |
| 13352 | # There doesn't appear to be a way to prevent this compiler from |
| 13353 | # explicitly linking system object files so we need to strip them |
| 13354 | # from the output so that they don't get included in the library |
| 13355 | # dependencies. |
| 13356 | 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"' |
| 13357 | ;; |
| 13358 | *) |
| 13359 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13360 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13361 | case $host in |
| 13362 | osf3*) |
| 13363 | 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' |
| 13364 | ;; |
| 13365 | *) |
| 13366 | 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' |
| 13367 | ;; |
| 13368 | esac |
| 13369 | |
| 13370 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13371 | hardcode_libdir_separator_CXX=: |
| 13372 | |
| 13373 | # Commands to make compiler produce verbose output that lists |
| 13374 | # what "hidden" libraries, object files and flags are used when |
| 13375 | # linking a shared library. |
| 13376 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13377 | |
| 13378 | else |
| 13379 | # FIXME: insert proper C++ library support |
| 13380 | ld_shlibs_CXX=no |
| 13381 | fi |
| 13382 | ;; |
| 13383 | esac |
| 13384 | ;; |
| 13385 | |
| 13386 | psos*) |
| 13387 | # FIXME: insert proper C++ library support |
| 13388 | ld_shlibs_CXX=no |
| 13389 | ;; |
| 13390 | |
| 13391 | sunos4*) |
| 13392 | case $cc_basename in |
| 13393 | CC*) |
| 13394 | # Sun C++ 4.x |
| 13395 | # FIXME: insert proper C++ library support |
| 13396 | ld_shlibs_CXX=no |
| 13397 | ;; |
| 13398 | lcc*) |
| 13399 | # Lucid |
| 13400 | # FIXME: insert proper C++ library support |
| 13401 | ld_shlibs_CXX=no |
| 13402 | ;; |
| 13403 | *) |
| 13404 | # FIXME: insert proper C++ library support |
| 13405 | ld_shlibs_CXX=no |
| 13406 | ;; |
| 13407 | esac |
| 13408 | ;; |
| 13409 | |
| 13410 | solaris*) |
| 13411 | case $cc_basename in |
| 13412 | CC* | sunCC*) |
| 13413 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13414 | archive_cmds_need_lc_CXX=yes |
| 13415 | no_undefined_flag_CXX=' -zdefs' |
| 13416 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13417 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13418 | $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' |
| 13419 | |
| 13420 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13421 | hardcode_shlibpath_var_CXX=no |
| 13422 | case $host_os in |
| 13423 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13424 | *) |
| 13425 | # The compiler driver will combine and reorder linker options, |
| 13426 | # but understands `-z linker_flag'. |
| 13427 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13428 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13429 | ;; |
| 13430 | esac |
| 13431 | link_all_deplibs_CXX=yes |
| 13432 | |
| 13433 | output_verbose_link_cmd='func_echo_all' |
| 13434 | |
| 13435 | # Archives containing C++ object files must be created using |
| 13436 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13437 | # necessary to make sure instantiated templates are included |
| 13438 | # in the archive. |
| 13439 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13440 | ;; |
| 13441 | gcx*) |
| 13442 | # Green Hills C++ Compiler |
| 13443 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13444 | |
| 13445 | # The C++ compiler must be used to create the archive. |
| 13446 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 13447 | ;; |
| 13448 | *) |
| 13449 | # GNU C++ compiler with Solaris linker |
| 13450 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13451 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 13452 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 13453 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13454 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13455 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13456 | |
| 13457 | # Commands to make compiler produce verbose output that lists |
| 13458 | # what "hidden" libraries, object files and flags are used when |
| 13459 | # linking a shared library. |
| 13460 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13461 | else |
| 13462 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 13463 | # platform. |
| 13464 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13465 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13466 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13467 | |
| 13468 | # Commands to make compiler produce verbose output that lists |
| 13469 | # what "hidden" libraries, object files and flags are used when |
| 13470 | # linking a shared library. |
| 13471 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13472 | fi |
| 13473 | |
| 13474 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 13475 | case $host_os in |
| 13476 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13477 | *) |
| 13478 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13479 | ;; |
| 13480 | esac |
| 13481 | fi |
| 13482 | ;; |
| 13483 | esac |
| 13484 | ;; |
| 13485 | |
| 13486 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13487 | no_undefined_flag_CXX='${wl}-z,text' |
| 13488 | archive_cmds_need_lc_CXX=no |
| 13489 | hardcode_shlibpath_var_CXX=no |
| 13490 | runpath_var='LD_RUN_PATH' |
| 13491 | |
| 13492 | case $cc_basename in |
| 13493 | CC*) |
| 13494 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13495 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13496 | ;; |
| 13497 | *) |
| 13498 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13499 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13500 | ;; |
| 13501 | esac |
| 13502 | ;; |
| 13503 | |
| 13504 | sysv5* | sco3.2v5* | sco5v6*) |
| 13505 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13506 | # link with -lc, and that would cause any symbols used from libc to |
| 13507 | # always be unresolved, which means just about no library would |
| 13508 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13509 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13510 | # as -z defs. |
| 13511 | no_undefined_flag_CXX='${wl}-z,text' |
| 13512 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13513 | archive_cmds_need_lc_CXX=no |
| 13514 | hardcode_shlibpath_var_CXX=no |
| 13515 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 13516 | hardcode_libdir_separator_CXX=':' |
| 13517 | link_all_deplibs_CXX=yes |
| 13518 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13519 | runpath_var='LD_RUN_PATH' |
| 13520 | |
| 13521 | case $cc_basename in |
| 13522 | CC*) |
| 13523 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13524 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13525 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 13526 | '"$old_archive_cmds_CXX" |
| 13527 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 13528 | '"$reload_cmds_CXX" |
| 13529 | ;; |
| 13530 | *) |
| 13531 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13532 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13533 | ;; |
| 13534 | esac |
| 13535 | ;; |
| 13536 | |
| 13537 | tandem*) |
| 13538 | case $cc_basename in |
| 13539 | NCC*) |
| 13540 | # NonStop-UX NCC 3.20 |
| 13541 | # FIXME: insert proper C++ library support |
| 13542 | ld_shlibs_CXX=no |
| 13543 | ;; |
| 13544 | *) |
| 13545 | # FIXME: insert proper C++ library support |
| 13546 | ld_shlibs_CXX=no |
| 13547 | ;; |
| 13548 | esac |
| 13549 | ;; |
| 13550 | |
| 13551 | vxworks*) |
| 13552 | # FIXME: insert proper C++ library support |
| 13553 | ld_shlibs_CXX=no |
| 13554 | ;; |
| 13555 | |
| 13556 | *) |
| 13557 | # FIXME: insert proper C++ library support |
| 13558 | ld_shlibs_CXX=no |
| 13559 | ;; |
| 13560 | esac |
| 13561 | |
| 13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13563 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 13564 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13565 | |
| 13566 | GCC_CXX="$GXX" |
| 13567 | LD_CXX="$LD" |
| 13568 | |
| 13569 | ## CAVEAT EMPTOR: |
| 13570 | ## There is no encapsulation within the following macros, do not change |
| 13571 | ## the running order or otherwise move them around unless you know exactly |
| 13572 | ## what you are doing... |
| 13573 | # Dependencies to place before and after the object being linked: |
| 13574 | predep_objects_CXX= |
| 13575 | postdep_objects_CXX= |
| 13576 | predeps_CXX= |
| 13577 | postdeps_CXX= |
| 13578 | compiler_lib_search_path_CXX= |
| 13579 | |
| 13580 | cat > conftest.$ac_ext <<_LT_EOF |
| 13581 | class Foo |
| 13582 | { |
| 13583 | public: |
| 13584 | Foo (void) { a = 0; } |
| 13585 | private: |
| 13586 | int a; |
| 13587 | }; |
| 13588 | _LT_EOF |
| 13589 | |
| 13590 | |
| 13591 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 13592 | case "$CC $CFLAGS " in #( |
| 13593 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 13594 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 13595 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 13596 | esac |
| 13597 | |
| 13598 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 13599 | (eval $ac_compile) 2>&5 |
| 13600 | ac_status=$? |
| 13601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13602 | test $ac_status = 0; }; then |
| 13603 | # Parse the compiler output and extract the necessary |
| 13604 | # objects, libraries and library flags. |
| 13605 | |
| 13606 | # Sentinel used to keep track of whether or not we are before |
| 13607 | # the conftest object file. |
| 13608 | pre_test_object_deps_done=no |
| 13609 | |
| 13610 | for p in `eval "$output_verbose_link_cmd"`; do |
| 13611 | case ${prev}${p} in |
| 13612 | |
| 13613 | -L* | -R* | -l*) |
| 13614 | # Some compilers place space between "-{L,R}" and the path. |
| 13615 | # Remove the space. |
| 13616 | if test $p = "-L" || |
| 13617 | test $p = "-R"; then |
| 13618 | prev=$p |
| 13619 | continue |
| 13620 | fi |
| 13621 | |
| 13622 | # Expand the sysroot to ease extracting the directories later. |
| 13623 | if test -z "$prev"; then |
| 13624 | case $p in |
| 13625 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 13626 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 13627 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 13628 | esac |
| 13629 | fi |
| 13630 | case $p in |
| 13631 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 13632 | esac |
| 13633 | if test "$pre_test_object_deps_done" = no; then |
| 13634 | case ${prev} in |
| 13635 | -L | -R) |
| 13636 | # Internal compiler library paths should come after those |
| 13637 | # provided the user. The postdeps already come after the |
| 13638 | # user supplied libs so there is no need to process them. |
| 13639 | if test -z "$compiler_lib_search_path_CXX"; then |
| 13640 | compiler_lib_search_path_CXX="${prev}${p}" |
| 13641 | else |
| 13642 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 13643 | fi |
| 13644 | ;; |
| 13645 | # The "-l" case would never come before the object being |
| 13646 | # linked, so don't bother handling this case. |
| 13647 | esac |
| 13648 | else |
| 13649 | if test -z "$postdeps_CXX"; then |
| 13650 | postdeps_CXX="${prev}${p}" |
| 13651 | else |
| 13652 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 13653 | fi |
| 13654 | fi |
| 13655 | prev= |
| 13656 | ;; |
| 13657 | |
| 13658 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 13659 | *.$objext) |
| 13660 | # This assumes that the test object file only shows up |
| 13661 | # once in the compiler output. |
| 13662 | if test "$p" = "conftest.$objext"; then |
| 13663 | pre_test_object_deps_done=yes |
| 13664 | continue |
| 13665 | fi |
| 13666 | |
| 13667 | if test "$pre_test_object_deps_done" = no; then |
| 13668 | if test -z "$predep_objects_CXX"; then |
| 13669 | predep_objects_CXX="$p" |
| 13670 | else |
| 13671 | predep_objects_CXX="$predep_objects_CXX $p" |
| 13672 | fi |
| 13673 | else |
| 13674 | if test -z "$postdep_objects_CXX"; then |
| 13675 | postdep_objects_CXX="$p" |
| 13676 | else |
| 13677 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 13678 | fi |
| 13679 | fi |
| 13680 | ;; |
| 13681 | |
| 13682 | *) ;; # Ignore the rest. |
| 13683 | |
| 13684 | esac |
| 13685 | done |
| 13686 | |
| 13687 | # Clean up. |
| 13688 | rm -f a.out a.exe |
| 13689 | else |
| 13690 | echo "libtool.m4: error: problem compiling CXX test program" |
| 13691 | fi |
| 13692 | |
| 13693 | $RM -f confest.$objext |
| 13694 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 13695 | |
| 13696 | # PORTME: override above test on systems where it is broken |
| 13697 | case $host_os in |
| 13698 | interix[3-9]*) |
| 13699 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 13700 | # hack all around it, let's just trust "g++" to DTRT. |
| 13701 | predep_objects_CXX= |
| 13702 | postdep_objects_CXX= |
| 13703 | postdeps_CXX= |
| 13704 | ;; |
| 13705 | |
| 13706 | linux*) |
| 13707 | case `$CC -V 2>&1 | sed 5q` in |
| 13708 | *Sun\ C*) |
| 13709 | # Sun C++ 5.9 |
| 13710 | |
| 13711 | # The more standards-conforming stlport4 library is |
| 13712 | # incompatible with the Cstd library. Avoid specifying |
| 13713 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 13714 | # -library=stlport4 depends on it. |
| 13715 | case " $CXX $CXXFLAGS " in |
| 13716 | *" -library=stlport4 "*) |
| 13717 | solaris_use_stlport4=yes |
| 13718 | ;; |
| 13719 | esac |
| 13720 | |
| 13721 | if test "$solaris_use_stlport4" != yes; then |
| 13722 | postdeps_CXX='-library=Cstd -library=Crun' |
| 13723 | fi |
| 13724 | ;; |
| 13725 | esac |
| 13726 | ;; |
| 13727 | |
| 13728 | solaris*) |
| 13729 | case $cc_basename in |
| 13730 | CC* | sunCC*) |
| 13731 | # The more standards-conforming stlport4 library is |
| 13732 | # incompatible with the Cstd library. Avoid specifying |
| 13733 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 13734 | # -library=stlport4 depends on it. |
| 13735 | case " $CXX $CXXFLAGS " in |
| 13736 | *" -library=stlport4 "*) |
| 13737 | solaris_use_stlport4=yes |
| 13738 | ;; |
| 13739 | esac |
| 13740 | |
| 13741 | # Adding this requires a known-good setup of shared libraries for |
| 13742 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 13743 | # archive will be linked into the output, leading to subtle bugs. |
| 13744 | if test "$solaris_use_stlport4" != yes; then |
| 13745 | postdeps_CXX='-library=Cstd -library=Crun' |
| 13746 | fi |
| 13747 | ;; |
| 13748 | esac |
| 13749 | ;; |
| 13750 | esac |
| 13751 | |
| 13752 | |
| 13753 | case " $postdeps_CXX " in |
| 13754 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 13755 | esac |
| 13756 | compiler_lib_search_dirs_CXX= |
| 13757 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 13758 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 13759 | fi |
| 13760 | |
| 13761 | |
| 13762 | |
| 13763 | |
| 13764 | |
| 13765 | |
| 13766 | |
| 13767 | |
| 13768 | |
| 13769 | |
| 13770 | |
| 13771 | |
| 13772 | |
| 13773 | |
| 13774 | |
| 13775 | |
| 13776 | |
| 13777 | |
| 13778 | |
| 13779 | |
| 13780 | |
| 13781 | |
| 13782 | |
| 13783 | |
| 13784 | |
| 13785 | |
| 13786 | |
| 13787 | |
| 13788 | |
| 13789 | |
| 13790 | |
| 13791 | lt_prog_compiler_wl_CXX= |
| 13792 | lt_prog_compiler_pic_CXX= |
| 13793 | lt_prog_compiler_static_CXX= |
| 13794 | |
| 13795 | |
| 13796 | # C++ specific cases for pic, static, wl, etc. |
| 13797 | if test "$GXX" = yes; then |
| 13798 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13799 | lt_prog_compiler_static_CXX='-static' |
| 13800 | |
| 13801 | case $host_os in |
| 13802 | aix*) |
| 13803 | # All AIX code is PIC. |
| 13804 | if test "$host_cpu" = ia64; then |
| 13805 | # AIX 5 now supports IA64 processor |
| 13806 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13807 | fi |
| 13808 | ;; |
| 13809 | |
| 13810 | amigaos*) |
| 13811 | case $host_cpu in |
| 13812 | powerpc) |
| 13813 | # see comment about AmigaOS4 .so support |
| 13814 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13815 | ;; |
| 13816 | m68k) |
| 13817 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13818 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13819 | # like `-m68040'. |
| 13820 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 13821 | ;; |
| 13822 | esac |
| 13823 | ;; |
| 13824 | |
| 13825 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13826 | # PIC is the default for these OSes. |
| 13827 | ;; |
| 13828 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 13829 | # This hack is so that the source file can tell whether it is being |
| 13830 | # built for inclusion in a dll (and should export symbols for example). |
| 13831 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 13832 | # (--disable-auto-import) libraries |
| 13833 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 13834 | ;; |
| 13835 | darwin* | rhapsody*) |
| 13836 | # PIC is the default on this platform |
| 13837 | # Common symbols not allowed in MH_DYLIB files |
| 13838 | lt_prog_compiler_pic_CXX='-fno-common' |
| 13839 | ;; |
| 13840 | *djgpp*) |
| 13841 | # DJGPP does not support shared libraries at all |
| 13842 | lt_prog_compiler_pic_CXX= |
| 13843 | ;; |
| 13844 | haiku*) |
| 13845 | # PIC is the default for Haiku. |
| 13846 | # The "-static" flag exists, but is broken. |
| 13847 | lt_prog_compiler_static_CXX= |
| 13848 | ;; |
| 13849 | interix[3-9]*) |
| 13850 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13851 | # Instead, we relocate shared libraries at runtime. |
| 13852 | ;; |
| 13853 | sysv4*MP*) |
| 13854 | if test -d /usr/nec; then |
| 13855 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 13856 | fi |
| 13857 | ;; |
| 13858 | hpux*) |
| 13859 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 13860 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 13861 | # sets the default TLS model and affects inlining. |
| 13862 | case $host_cpu in |
| 13863 | hppa*64*) |
| 13864 | ;; |
| 13865 | *) |
| 13866 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13867 | ;; |
| 13868 | esac |
| 13869 | ;; |
| 13870 | *qnx* | *nto*) |
| 13871 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13872 | # it will coredump. |
| 13873 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13874 | ;; |
| 13875 | *) |
| 13876 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13877 | ;; |
| 13878 | esac |
| 13879 | else |
| 13880 | case $host_os in |
| 13881 | aix[4-9]*) |
| 13882 | # All AIX code is PIC. |
| 13883 | if test "$host_cpu" = ia64; then |
| 13884 | # AIX 5 now supports IA64 processor |
| 13885 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13886 | else |
| 13887 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13888 | fi |
| 13889 | ;; |
| 13890 | chorus*) |
| 13891 | case $cc_basename in |
| 13892 | cxch68*) |
| 13893 | # Green Hills C++ Compiler |
| 13894 | # _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" |
| 13895 | ;; |
| 13896 | esac |
| 13897 | ;; |
| 13898 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 13899 | # This hack is so that the source file can tell whether it is being |
| 13900 | # built for inclusion in a dll (and should export symbols for example). |
| 13901 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 13902 | ;; |
| 13903 | dgux*) |
| 13904 | case $cc_basename in |
| 13905 | ec++*) |
| 13906 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13907 | ;; |
| 13908 | ghcx*) |
| 13909 | # Green Hills C++ Compiler |
| 13910 | lt_prog_compiler_pic_CXX='-pic' |
| 13911 | ;; |
| 13912 | *) |
| 13913 | ;; |
| 13914 | esac |
| 13915 | ;; |
| 13916 | freebsd* | dragonfly*) |
| 13917 | # FreeBSD uses GNU C++ |
| 13918 | ;; |
| 13919 | hpux9* | hpux10* | hpux11*) |
| 13920 | case $cc_basename in |
| 13921 | CC*) |
| 13922 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13923 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13924 | if test "$host_cpu" != ia64; then |
| 13925 | lt_prog_compiler_pic_CXX='+Z' |
| 13926 | fi |
| 13927 | ;; |
| 13928 | aCC*) |
| 13929 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13930 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13931 | case $host_cpu in |
| 13932 | hppa*64*|ia64*) |
| 13933 | # +Z the default |
| 13934 | ;; |
| 13935 | *) |
| 13936 | lt_prog_compiler_pic_CXX='+Z' |
| 13937 | ;; |
| 13938 | esac |
| 13939 | ;; |
| 13940 | *) |
| 13941 | ;; |
| 13942 | esac |
| 13943 | ;; |
| 13944 | interix*) |
| 13945 | # This is c89, which is MS Visual C++ (no shared libs) |
| 13946 | # Anyone wants to do a port? |
| 13947 | ;; |
| 13948 | irix5* | irix6* | nonstopux*) |
| 13949 | case $cc_basename in |
| 13950 | CC*) |
| 13951 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13952 | lt_prog_compiler_static_CXX='-non_shared' |
| 13953 | # CC pic flag -KPIC is the default. |
| 13954 | ;; |
| 13955 | *) |
| 13956 | ;; |
| 13957 | esac |
| 13958 | ;; |
| 13959 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13960 | case $cc_basename in |
| 13961 | KCC*) |
| 13962 | # KAI C++ Compiler |
| 13963 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13964 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13965 | ;; |
| 13966 | ecpc* ) |
| 13967 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 13968 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13969 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13970 | lt_prog_compiler_static_CXX='-static' |
| 13971 | ;; |
| 13972 | icpc* ) |
| 13973 | # Intel C++, used to be incompatible with GCC. |
| 13974 | # ICC 10 doesn't accept -KPIC any more. |
| 13975 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13976 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13977 | lt_prog_compiler_static_CXX='-static' |
| 13978 | ;; |
| 13979 | pgCC* | pgcpp*) |
| 13980 | # Portland Group C++ compiler |
| 13981 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13982 | lt_prog_compiler_pic_CXX='-fpic' |
| 13983 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13984 | ;; |
| 13985 | cxx*) |
| 13986 | # Compaq C++ |
| 13987 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13988 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13989 | lt_prog_compiler_pic_CXX= |
| 13990 | lt_prog_compiler_static_CXX='-non_shared' |
| 13991 | ;; |
| 13992 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 13993 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 13994 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13995 | lt_prog_compiler_pic_CXX='-qpic' |
| 13996 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13997 | ;; |
| 13998 | *) |
| 13999 | case `$CC -V 2>&1 | sed 5q` in |
| 14000 | *Sun\ C*) |
| 14001 | # Sun C++ 5.9 |
| 14002 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14003 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14004 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14005 | ;; |
| 14006 | esac |
| 14007 | ;; |
| 14008 | esac |
| 14009 | ;; |
| 14010 | lynxos*) |
| 14011 | ;; |
| 14012 | m88k*) |
| 14013 | ;; |
| 14014 | mvs*) |
| 14015 | case $cc_basename in |
| 14016 | cxx*) |
| 14017 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14018 | ;; |
| 14019 | *) |
| 14020 | ;; |
| 14021 | esac |
| 14022 | ;; |
| 14023 | netbsd*) |
| 14024 | ;; |
| 14025 | *qnx* | *nto*) |
| 14026 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14027 | # it will coredump. |
| 14028 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14029 | ;; |
| 14030 | osf3* | osf4* | osf5*) |
| 14031 | case $cc_basename in |
| 14032 | KCC*) |
| 14033 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14034 | ;; |
| 14035 | RCC*) |
| 14036 | # Rational C++ 2.4.1 |
| 14037 | lt_prog_compiler_pic_CXX='-pic' |
| 14038 | ;; |
| 14039 | cxx*) |
| 14040 | # Digital/Compaq C++ |
| 14041 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14042 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14043 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14044 | lt_prog_compiler_pic_CXX= |
| 14045 | lt_prog_compiler_static_CXX='-non_shared' |
| 14046 | ;; |
| 14047 | *) |
| 14048 | ;; |
| 14049 | esac |
| 14050 | ;; |
| 14051 | psos*) |
| 14052 | ;; |
| 14053 | solaris*) |
| 14054 | case $cc_basename in |
| 14055 | CC* | sunCC*) |
| 14056 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14057 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14058 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14059 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14060 | ;; |
| 14061 | gcx*) |
| 14062 | # Green Hills C++ Compiler |
| 14063 | lt_prog_compiler_pic_CXX='-PIC' |
| 14064 | ;; |
| 14065 | *) |
| 14066 | ;; |
| 14067 | esac |
| 14068 | ;; |
| 14069 | sunos4*) |
| 14070 | case $cc_basename in |
| 14071 | CC*) |
| 14072 | # Sun C++ 4.x |
| 14073 | lt_prog_compiler_pic_CXX='-pic' |
| 14074 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14075 | ;; |
| 14076 | lcc*) |
| 14077 | # Lucid |
| 14078 | lt_prog_compiler_pic_CXX='-pic' |
| 14079 | ;; |
| 14080 | *) |
| 14081 | ;; |
| 14082 | esac |
| 14083 | ;; |
| 14084 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14085 | case $cc_basename in |
| 14086 | CC*) |
| 14087 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14088 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14089 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14090 | ;; |
| 14091 | esac |
| 14092 | ;; |
| 14093 | tandem*) |
| 14094 | case $cc_basename in |
| 14095 | NCC*) |
| 14096 | # NonStop-UX NCC 3.20 |
| 14097 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14098 | ;; |
| 14099 | *) |
| 14100 | ;; |
| 14101 | esac |
| 14102 | ;; |
| 14103 | vxworks*) |
| 14104 | ;; |
| 14105 | *) |
| 14106 | lt_prog_compiler_can_build_shared_CXX=no |
| 14107 | ;; |
| 14108 | esac |
| 14109 | fi |
| 14110 | |
| 14111 | case $host_os in |
| 14112 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14113 | *djgpp*) |
| 14114 | lt_prog_compiler_pic_CXX= |
| 14115 | ;; |
| 14116 | *) |
| 14117 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14118 | ;; |
| 14119 | esac |
| 14120 | |
| 14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14122 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14123 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 14124 | $as_echo_n "(cached) " >&6 |
| 14125 | else |
| 14126 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 14127 | fi |
| 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 14129 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 14130 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 14131 | |
| 14132 | # |
| 14133 | # Check to make sure the PIC flag actually works. |
| 14134 | # |
| 14135 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 14137 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 14138 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 14139 | $as_echo_n "(cached) " >&6 |
| 14140 | else |
| 14141 | lt_cv_prog_compiler_pic_works_CXX=no |
| 14142 | ac_outfile=conftest.$ac_objext |
| 14143 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14144 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14145 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14146 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14147 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14148 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14149 | # The option is referenced via a variable to avoid confusing sed. |
| 14150 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14151 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14152 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14153 | -e 's:$: $lt_compiler_flag:'` |
| 14154 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14155 | (eval "$lt_compile" 2>conftest.err) |
| 14156 | ac_status=$? |
| 14157 | cat conftest.err >&5 |
| 14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14159 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14160 | # The compiler can only warn and ignore the option if not recognized |
| 14161 | # So say no if there are warnings other than the usual output. |
| 14162 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14163 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14164 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14165 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 14166 | fi |
| 14167 | fi |
| 14168 | $RM conftest* |
| 14169 | |
| 14170 | fi |
| 14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 14172 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 14173 | |
| 14174 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 14175 | case $lt_prog_compiler_pic_CXX in |
| 14176 | "" | " "*) ;; |
| 14177 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14178 | esac |
| 14179 | else |
| 14180 | lt_prog_compiler_pic_CXX= |
| 14181 | lt_prog_compiler_can_build_shared_CXX=no |
| 14182 | fi |
| 14183 | |
| 14184 | fi |
| 14185 | |
| 14186 | |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | # |
| 14191 | # Check to make sure the static flag actually works. |
| 14192 | # |
| 14193 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14195 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14196 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 14197 | $as_echo_n "(cached) " >&6 |
| 14198 | else |
| 14199 | lt_cv_prog_compiler_static_works_CXX=no |
| 14200 | save_LDFLAGS="$LDFLAGS" |
| 14201 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14202 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14203 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14204 | # The linker can only warn and ignore the option if not recognized |
| 14205 | # So say no if there are warnings |
| 14206 | if test -s conftest.err; then |
| 14207 | # Append any errors to the config.log. |
| 14208 | cat conftest.err 1>&5 |
| 14209 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14210 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14211 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14212 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14213 | fi |
| 14214 | else |
| 14215 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14216 | fi |
| 14217 | fi |
| 14218 | $RM -r conftest* |
| 14219 | LDFLAGS="$save_LDFLAGS" |
| 14220 | |
| 14221 | fi |
| 14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 14223 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 14224 | |
| 14225 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 14226 | : |
| 14227 | else |
| 14228 | lt_prog_compiler_static_CXX= |
| 14229 | fi |
| 14230 | |
| 14231 | |
| 14232 | |
| 14233 | |
| 14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14235 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14236 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14237 | $as_echo_n "(cached) " >&6 |
| 14238 | else |
| 14239 | lt_cv_prog_compiler_c_o_CXX=no |
| 14240 | $RM -r conftest 2>/dev/null |
| 14241 | mkdir conftest |
| 14242 | cd conftest |
| 14243 | mkdir out |
| 14244 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14245 | |
| 14246 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14247 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14248 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14249 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14250 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14251 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14252 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14253 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14254 | -e 's:$: $lt_compiler_flag:'` |
| 14255 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14256 | (eval "$lt_compile" 2>out/conftest.err) |
| 14257 | ac_status=$? |
| 14258 | cat out/conftest.err >&5 |
| 14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14260 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14261 | then |
| 14262 | # The compiler can only warn and ignore the option if not recognized |
| 14263 | # So say no if there are warnings |
| 14264 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14265 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14266 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14267 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14268 | fi |
| 14269 | fi |
| 14270 | chmod u+w . 2>&5 |
| 14271 | $RM conftest* |
| 14272 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14273 | # template instantiation |
| 14274 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14275 | $RM out/* && rmdir out |
| 14276 | cd .. |
| 14277 | $RM -r conftest |
| 14278 | $RM conftest* |
| 14279 | |
| 14280 | fi |
| 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14282 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14283 | |
| 14284 | |
| 14285 | |
| 14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14287 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14288 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14289 | $as_echo_n "(cached) " >&6 |
| 14290 | else |
| 14291 | lt_cv_prog_compiler_c_o_CXX=no |
| 14292 | $RM -r conftest 2>/dev/null |
| 14293 | mkdir conftest |
| 14294 | cd conftest |
| 14295 | mkdir out |
| 14296 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14297 | |
| 14298 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14299 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14300 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14301 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14302 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14303 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14304 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14305 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14306 | -e 's:$: $lt_compiler_flag:'` |
| 14307 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14308 | (eval "$lt_compile" 2>out/conftest.err) |
| 14309 | ac_status=$? |
| 14310 | cat out/conftest.err >&5 |
| 14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14312 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14313 | then |
| 14314 | # The compiler can only warn and ignore the option if not recognized |
| 14315 | # So say no if there are warnings |
| 14316 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14317 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14318 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14319 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14320 | fi |
| 14321 | fi |
| 14322 | chmod u+w . 2>&5 |
| 14323 | $RM conftest* |
| 14324 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14325 | # template instantiation |
| 14326 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14327 | $RM out/* && rmdir out |
| 14328 | cd .. |
| 14329 | $RM -r conftest |
| 14330 | $RM conftest* |
| 14331 | |
| 14332 | fi |
| 14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14334 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14335 | |
| 14336 | |
| 14337 | |
| 14338 | |
| 14339 | hard_links="nottested" |
| 14340 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14341 | # do not overwrite the value of need_locks provided by the user |
| 14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14343 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14344 | hard_links=yes |
| 14345 | $RM conftest* |
| 14346 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14347 | touch conftest.a |
| 14348 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14349 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14351 | $as_echo "$hard_links" >&6; } |
| 14352 | if test "$hard_links" = no; then |
| 14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14354 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14355 | need_locks=warn |
| 14356 | fi |
| 14357 | else |
| 14358 | need_locks=no |
| 14359 | fi |
| 14360 | |
| 14361 | |
| 14362 | |
| 14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14364 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14365 | |
| 14366 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14367 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14368 | case $host_os in |
| 14369 | aix[4-9]*) |
| 14370 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14371 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14372 | # Also, AIX nm treats weak defined symbols like other global defined |
| 14373 | # symbols, whereas GNU nm marks them as "W". |
| 14374 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14375 | 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' |
| 14376 | else |
| 14377 | 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' |
| 14378 | fi |
| 14379 | ;; |
| 14380 | pw32*) |
| 14381 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14382 | ;; |
| 14383 | cygwin* | mingw* | cegcc*) |
| 14384 | case $cc_basename in |
| 14385 | cl*) |
| 14386 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 14387 | ;; |
| 14388 | *) |
| 14389 | 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' |
| 14390 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 14391 | ;; |
| 14392 | esac |
| 14393 | ;; |
| 14394 | *) |
| 14395 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14396 | ;; |
| 14397 | esac |
| 14398 | |
| 14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14400 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14401 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14402 | |
| 14403 | with_gnu_ld_CXX=$with_gnu_ld |
| 14404 | |
| 14405 | |
| 14406 | |
| 14407 | |
| 14408 | |
| 14409 | |
| 14410 | # |
| 14411 | # Do we need to explicitly link libc? |
| 14412 | # |
| 14413 | case "x$archive_cmds_need_lc_CXX" in |
| 14414 | x|xyes) |
| 14415 | # Assume -lc should be added |
| 14416 | archive_cmds_need_lc_CXX=yes |
| 14417 | |
| 14418 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14419 | case $archive_cmds_CXX in |
| 14420 | *'~'*) |
| 14421 | # FIXME: we may have to deal with multi-command sequences. |
| 14422 | ;; |
| 14423 | '$CC '*) |
| 14424 | # Test whether the compiler implicitly links with -lc since on some |
| 14425 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14426 | # to ld, don't add -lc before -lgcc. |
| 14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14428 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14429 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 14430 | $as_echo_n "(cached) " >&6 |
| 14431 | else |
| 14432 | $RM conftest* |
| 14433 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14434 | |
| 14435 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14436 | (eval $ac_compile) 2>&5 |
| 14437 | ac_status=$? |
| 14438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14439 | test $ac_status = 0; } 2>conftest.err; then |
| 14440 | soname=conftest |
| 14441 | lib=conftest |
| 14442 | libobjs=conftest.$ac_objext |
| 14443 | deplibs= |
| 14444 | wl=$lt_prog_compiler_wl_CXX |
| 14445 | pic_flag=$lt_prog_compiler_pic_CXX |
| 14446 | compiler_flags=-v |
| 14447 | linker_flags=-v |
| 14448 | verstring= |
| 14449 | output_objdir=. |
| 14450 | libname=conftest |
| 14451 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14452 | allow_undefined_flag_CXX= |
| 14453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14454 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14455 | ac_status=$? |
| 14456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14457 | test $ac_status = 0; } |
| 14458 | then |
| 14459 | lt_cv_archive_cmds_need_lc_CXX=no |
| 14460 | else |
| 14461 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 14462 | fi |
| 14463 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14464 | else |
| 14465 | cat conftest.err 1>&5 |
| 14466 | fi |
| 14467 | $RM conftest* |
| 14468 | |
| 14469 | fi |
| 14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 14471 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 14472 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 14473 | ;; |
| 14474 | esac |
| 14475 | fi |
| 14476 | ;; |
| 14477 | esac |
| 14478 | |
| 14479 | |
| 14480 | |
| 14481 | |
| 14482 | |
| 14483 | |
| 14484 | |
| 14485 | |
| 14486 | |
| 14487 | |
| 14488 | |
| 14489 | |
| 14490 | |
| 14491 | |
| 14492 | |
| 14493 | |
| 14494 | |
| 14495 | |
| 14496 | |
| 14497 | |
| 14498 | |
| 14499 | |
| 14500 | |
| 14501 | |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | |
| 14508 | |
| 14509 | |
| 14510 | |
| 14511 | |
| 14512 | |
| 14513 | |
| 14514 | |
| 14515 | |
| 14516 | |
| 14517 | |
| 14518 | |
| 14519 | |
| 14520 | |
| 14521 | |
| 14522 | |
| 14523 | |
| 14524 | |
| 14525 | |
| 14526 | |
| 14527 | |
| 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | |
| 14537 | |
| 14538 | |
| 14539 | |
| 14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 14541 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14542 | |
| 14543 | library_names_spec= |
| 14544 | libname_spec='lib$name' |
| 14545 | soname_spec= |
| 14546 | shrext_cmds=".so" |
| 14547 | postinstall_cmds= |
| 14548 | postuninstall_cmds= |
| 14549 | finish_cmds= |
| 14550 | finish_eval= |
| 14551 | shlibpath_var= |
| 14552 | shlibpath_overrides_runpath=unknown |
| 14553 | version_type=none |
| 14554 | dynamic_linker="$host_os ld.so" |
| 14555 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14556 | need_lib_prefix=unknown |
| 14557 | hardcode_into_libs=no |
| 14558 | |
| 14559 | # when you set need_version to no, make sure it does not cause -set_version |
| 14560 | # flags to be left without arguments |
| 14561 | need_version=unknown |
| 14562 | |
| 14563 | case $host_os in |
| 14564 | aix3*) |
| 14565 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14566 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14567 | shlibpath_var=LIBPATH |
| 14568 | |
| 14569 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14571 | ;; |
| 14572 | |
| 14573 | aix[4-9]*) |
| 14574 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14575 | need_lib_prefix=no |
| 14576 | need_version=no |
| 14577 | hardcode_into_libs=yes |
| 14578 | if test "$host_cpu" = ia64; then |
| 14579 | # AIX 5 supports IA64 |
| 14580 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14581 | shlibpath_var=LD_LIBRARY_PATH |
| 14582 | else |
| 14583 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14584 | # for dependence libraries. The import file would start with |
| 14585 | # the line `#! .'. This would cause the generated library to |
| 14586 | # depend on `.', always an invalid library. This was fixed in |
| 14587 | # development snapshots of GCC prior to 3.0. |
| 14588 | case $host_os in |
| 14589 | aix4 | aix4.[01] | aix4.[01].*) |
| 14590 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14591 | echo ' yes ' |
| 14592 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 14593 | : |
| 14594 | else |
| 14595 | can_build_shared=no |
| 14596 | fi |
| 14597 | ;; |
| 14598 | esac |
| 14599 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14600 | # soname into executable. Probably we can add versioning support to |
| 14601 | # collect2, so additional links can be useful in future. |
| 14602 | if test "$aix_use_runtimelinking" = yes; then |
| 14603 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14604 | # instead of lib<name>.a to let people know that these are not |
| 14605 | # typical AIX shared libraries. |
| 14606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14607 | else |
| 14608 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14609 | # and later when we are not doing run time linking. |
| 14610 | library_names_spec='${libname}${release}.a $libname.a' |
| 14611 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14612 | fi |
| 14613 | shlibpath_var=LIBPATH |
| 14614 | fi |
| 14615 | ;; |
| 14616 | |
| 14617 | amigaos*) |
| 14618 | case $host_cpu in |
| 14619 | powerpc) |
| 14620 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14621 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14623 | ;; |
| 14624 | m68k) |
| 14625 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14626 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14627 | 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' |
| 14628 | ;; |
| 14629 | esac |
| 14630 | ;; |
| 14631 | |
| 14632 | beos*) |
| 14633 | library_names_spec='${libname}${shared_ext}' |
| 14634 | dynamic_linker="$host_os ld.so" |
| 14635 | shlibpath_var=LIBRARY_PATH |
| 14636 | ;; |
| 14637 | |
| 14638 | bsdi[45]*) |
| 14639 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14640 | need_version=no |
| 14641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14643 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14644 | shlibpath_var=LD_LIBRARY_PATH |
| 14645 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14646 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14647 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14648 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14649 | # libtool to hard-code these into programs |
| 14650 | ;; |
| 14651 | |
| 14652 | cygwin* | mingw* | pw32* | cegcc*) |
| 14653 | version_type=windows |
| 14654 | shrext_cmds=".dll" |
| 14655 | need_version=no |
| 14656 | need_lib_prefix=no |
| 14657 | |
| 14658 | case $GCC,$cc_basename in |
| 14659 | yes,*) |
| 14660 | # gcc |
| 14661 | library_names_spec='$libname.dll.a' |
| 14662 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14663 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14664 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 14665 | dldir=$destdir/`dirname \$dlpath`~ |
| 14666 | test -d \$dldir || mkdir -p \$dldir~ |
| 14667 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14668 | chmod a+x \$dldir/$dlname~ |
| 14669 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14670 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14671 | fi' |
| 14672 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14673 | dlpath=$dir/\$dldll~ |
| 14674 | $RM \$dlpath' |
| 14675 | shlibpath_overrides_runpath=yes |
| 14676 | |
| 14677 | case $host_os in |
| 14678 | cygwin*) |
| 14679 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14680 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14681 | |
| 14682 | ;; |
| 14683 | mingw* | cegcc*) |
| 14684 | # MinGW DLLs use traditional 'lib' prefix |
| 14685 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14686 | ;; |
| 14687 | pw32*) |
| 14688 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14689 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14690 | ;; |
| 14691 | esac |
| 14692 | dynamic_linker='Win32 ld.exe' |
| 14693 | ;; |
| 14694 | |
| 14695 | *,cl*) |
| 14696 | # Native MSVC |
| 14697 | libname_spec='$name' |
| 14698 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14699 | library_names_spec='${libname}.dll.lib' |
| 14700 | |
| 14701 | case $build_os in |
| 14702 | mingw*) |
| 14703 | sys_lib_search_path_spec= |
| 14704 | lt_save_ifs=$IFS |
| 14705 | IFS=';' |
| 14706 | for lt_path in $LIB |
| 14707 | do |
| 14708 | IFS=$lt_save_ifs |
| 14709 | # Let DOS variable expansion print the short 8.3 style file name. |
| 14710 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 14711 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 14712 | done |
| 14713 | IFS=$lt_save_ifs |
| 14714 | # Convert to MSYS style. |
| 14715 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 14716 | ;; |
| 14717 | cygwin*) |
| 14718 | # Convert to unix form, then to dos form, then back to unix form |
| 14719 | # but this time dos style (no spaces!) so that the unix form looks |
| 14720 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 14721 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 14722 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 14723 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14724 | ;; |
| 14725 | *) |
| 14726 | sys_lib_search_path_spec="$LIB" |
| 14727 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 14728 | # It is most probably a Windows format PATH. |
| 14729 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14730 | else |
| 14731 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14732 | fi |
| 14733 | # FIXME: find the short name or the path components, as spaces are |
| 14734 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 14735 | ;; |
| 14736 | esac |
| 14737 | |
| 14738 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14739 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14740 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 14741 | dldir=$destdir/`dirname \$dlpath`~ |
| 14742 | test -d \$dldir || mkdir -p \$dldir~ |
| 14743 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14744 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14745 | dlpath=$dir/\$dldll~ |
| 14746 | $RM \$dlpath' |
| 14747 | shlibpath_overrides_runpath=yes |
| 14748 | dynamic_linker='Win32 link.exe' |
| 14749 | ;; |
| 14750 | |
| 14751 | *) |
| 14752 | # Assume MSVC wrapper |
| 14753 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14754 | dynamic_linker='Win32 ld.exe' |
| 14755 | ;; |
| 14756 | esac |
| 14757 | # FIXME: first we should search . and the directory the executable is in |
| 14758 | shlibpath_var=PATH |
| 14759 | ;; |
| 14760 | |
| 14761 | darwin* | rhapsody*) |
| 14762 | dynamic_linker="$host_os dyld" |
| 14763 | version_type=darwin |
| 14764 | need_lib_prefix=no |
| 14765 | need_version=no |
| 14766 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14767 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14768 | shlibpath_overrides_runpath=yes |
| 14769 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14770 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 14771 | |
| 14772 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14773 | ;; |
| 14774 | |
| 14775 | dgux*) |
| 14776 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14777 | need_lib_prefix=no |
| 14778 | need_version=no |
| 14779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14781 | shlibpath_var=LD_LIBRARY_PATH |
| 14782 | ;; |
| 14783 | |
| 14784 | freebsd* | dragonfly*) |
| 14785 | # DragonFly does not have aout. When/if they implement a new |
| 14786 | # versioning mechanism, adjust this. |
| 14787 | if test -x /usr/bin/objformat; then |
| 14788 | objformat=`/usr/bin/objformat` |
| 14789 | else |
| 14790 | case $host_os in |
| 14791 | freebsd[23].*) objformat=aout ;; |
| 14792 | *) objformat=elf ;; |
| 14793 | esac |
| 14794 | fi |
| 14795 | version_type=freebsd-$objformat |
| 14796 | case $version_type in |
| 14797 | freebsd-elf*) |
| 14798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14799 | need_version=no |
| 14800 | need_lib_prefix=no |
| 14801 | ;; |
| 14802 | freebsd-*) |
| 14803 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14804 | need_version=yes |
| 14805 | ;; |
| 14806 | esac |
| 14807 | shlibpath_var=LD_LIBRARY_PATH |
| 14808 | case $host_os in |
| 14809 | freebsd2.*) |
| 14810 | shlibpath_overrides_runpath=yes |
| 14811 | ;; |
| 14812 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 14813 | shlibpath_overrides_runpath=yes |
| 14814 | hardcode_into_libs=yes |
| 14815 | ;; |
| 14816 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14817 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 14818 | shlibpath_overrides_runpath=no |
| 14819 | hardcode_into_libs=yes |
| 14820 | ;; |
| 14821 | *) # from 4.6 on, and DragonFly |
| 14822 | shlibpath_overrides_runpath=yes |
| 14823 | hardcode_into_libs=yes |
| 14824 | ;; |
| 14825 | esac |
| 14826 | ;; |
| 14827 | |
| 14828 | gnu*) |
| 14829 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14830 | need_lib_prefix=no |
| 14831 | need_version=no |
| 14832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14833 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14834 | shlibpath_var=LD_LIBRARY_PATH |
| 14835 | shlibpath_overrides_runpath=no |
| 14836 | hardcode_into_libs=yes |
| 14837 | ;; |
| 14838 | |
| 14839 | haiku*) |
| 14840 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14841 | need_lib_prefix=no |
| 14842 | need_version=no |
| 14843 | dynamic_linker="$host_os runtime_loader" |
| 14844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14846 | shlibpath_var=LIBRARY_PATH |
| 14847 | shlibpath_overrides_runpath=yes |
| 14848 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 14849 | hardcode_into_libs=yes |
| 14850 | ;; |
| 14851 | |
| 14852 | hpux9* | hpux10* | hpux11*) |
| 14853 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14854 | # link against other versions. |
| 14855 | version_type=sunos |
| 14856 | need_lib_prefix=no |
| 14857 | need_version=no |
| 14858 | case $host_cpu in |
| 14859 | ia64*) |
| 14860 | shrext_cmds='.so' |
| 14861 | hardcode_into_libs=yes |
| 14862 | dynamic_linker="$host_os dld.so" |
| 14863 | shlibpath_var=LD_LIBRARY_PATH |
| 14864 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14867 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14868 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14869 | else |
| 14870 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14871 | fi |
| 14872 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14873 | ;; |
| 14874 | hppa*64*) |
| 14875 | shrext_cmds='.sl' |
| 14876 | hardcode_into_libs=yes |
| 14877 | dynamic_linker="$host_os dld.sl" |
| 14878 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14879 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14881 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14882 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14883 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14884 | ;; |
| 14885 | *) |
| 14886 | shrext_cmds='.sl' |
| 14887 | dynamic_linker="$host_os dld.sl" |
| 14888 | shlibpath_var=SHLIB_PATH |
| 14889 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14891 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14892 | ;; |
| 14893 | esac |
| 14894 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 14895 | postinstall_cmds='chmod 555 $lib' |
| 14896 | # or fails outright, so override atomically: |
| 14897 | install_override_mode=555 |
| 14898 | ;; |
| 14899 | |
| 14900 | interix[3-9]*) |
| 14901 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14902 | need_lib_prefix=no |
| 14903 | need_version=no |
| 14904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14906 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14907 | shlibpath_var=LD_LIBRARY_PATH |
| 14908 | shlibpath_overrides_runpath=no |
| 14909 | hardcode_into_libs=yes |
| 14910 | ;; |
| 14911 | |
| 14912 | irix5* | irix6* | nonstopux*) |
| 14913 | case $host_os in |
| 14914 | nonstopux*) version_type=nonstopux ;; |
| 14915 | *) |
| 14916 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14917 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14918 | else |
| 14919 | version_type=irix |
| 14920 | fi ;; |
| 14921 | esac |
| 14922 | need_lib_prefix=no |
| 14923 | need_version=no |
| 14924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14926 | case $host_os in |
| 14927 | irix5* | nonstopux*) |
| 14928 | libsuff= shlibsuff= |
| 14929 | ;; |
| 14930 | *) |
| 14931 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14932 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14933 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14934 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14935 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14936 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14937 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14938 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14939 | esac |
| 14940 | ;; |
| 14941 | esac |
| 14942 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14943 | shlibpath_overrides_runpath=no |
| 14944 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14945 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14946 | hardcode_into_libs=yes |
| 14947 | ;; |
| 14948 | |
| 14949 | # No shared lib support for Linux oldld, aout, or coff. |
| 14950 | linux*oldld* | linux*aout* | linux*coff*) |
| 14951 | dynamic_linker=no |
| 14952 | ;; |
| 14953 | |
| 14954 | # This must be glibc/ELF. |
| 14955 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14956 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14957 | need_lib_prefix=no |
| 14958 | need_version=no |
| 14959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14961 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14962 | shlibpath_var=LD_LIBRARY_PATH |
| 14963 | shlibpath_overrides_runpath=no |
| 14964 | |
| 14965 | # Some binutils ld are patched to set DT_RUNPATH |
| 14966 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 14967 | $as_echo_n "(cached) " >&6 |
| 14968 | else |
| 14969 | lt_cv_shlibpath_overrides_runpath=no |
| 14970 | save_LDFLAGS=$LDFLAGS |
| 14971 | save_libdir=$libdir |
| 14972 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 14973 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 14974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14975 | /* end confdefs.h. */ |
| 14976 | |
| 14977 | int |
| 14978 | main () |
| 14979 | { |
| 14980 | |
| 14981 | ; |
| 14982 | return 0; |
| 14983 | } |
| 14984 | _ACEOF |
| 14985 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 14986 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 14987 | lt_cv_shlibpath_overrides_runpath=yes |
| 14988 | fi |
| 14989 | fi |
| 14990 | rm -f core conftest.err conftest.$ac_objext \ |
| 14991 | conftest$ac_exeext conftest.$ac_ext |
| 14992 | LDFLAGS=$save_LDFLAGS |
| 14993 | libdir=$save_libdir |
| 14994 | |
| 14995 | fi |
| 14996 | |
| 14997 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 14998 | |
| 14999 | # This implies no fast_install, which is unacceptable. |
| 15000 | # Some rework will be needed to allow for fast_install |
| 15001 | # before this can be enabled. |
| 15002 | hardcode_into_libs=yes |
| 15003 | |
| 15004 | # Append ld.so.conf contents to the search path |
| 15005 | if test -f /etc/ld.so.conf; then |
| 15006 | 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' ' '` |
| 15007 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15008 | fi |
| 15009 | |
| 15010 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15011 | # powerpc, because MkLinux only supported shared libraries with the |
| 15012 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15013 | # most powerpc-linux boxes support dynamic linking these days and |
| 15014 | # people can always --disable-shared, the test was removed, and we |
| 15015 | # assume the GNU/Linux dynamic linker is in use. |
| 15016 | dynamic_linker='GNU/Linux ld.so' |
| 15017 | ;; |
| 15018 | |
| 15019 | netbsd*) |
| 15020 | version_type=sunos |
| 15021 | need_lib_prefix=no |
| 15022 | need_version=no |
| 15023 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15025 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15026 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15027 | else |
| 15028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15030 | dynamic_linker='NetBSD ld.elf_so' |
| 15031 | fi |
| 15032 | shlibpath_var=LD_LIBRARY_PATH |
| 15033 | shlibpath_overrides_runpath=yes |
| 15034 | hardcode_into_libs=yes |
| 15035 | ;; |
| 15036 | |
| 15037 | newsos6) |
| 15038 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15040 | shlibpath_var=LD_LIBRARY_PATH |
| 15041 | shlibpath_overrides_runpath=yes |
| 15042 | ;; |
| 15043 | |
| 15044 | *nto* | *qnx*) |
| 15045 | version_type=qnx |
| 15046 | need_lib_prefix=no |
| 15047 | need_version=no |
| 15048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15050 | shlibpath_var=LD_LIBRARY_PATH |
| 15051 | shlibpath_overrides_runpath=no |
| 15052 | hardcode_into_libs=yes |
| 15053 | dynamic_linker='ldqnx.so' |
| 15054 | ;; |
| 15055 | |
| 15056 | openbsd*) |
| 15057 | version_type=sunos |
| 15058 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15059 | need_lib_prefix=no |
| 15060 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15061 | case $host_os in |
| 15062 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15063 | *) need_version=no ;; |
| 15064 | esac |
| 15065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15066 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15067 | shlibpath_var=LD_LIBRARY_PATH |
| 15068 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15069 | case $host_os in |
| 15070 | openbsd2.[89] | openbsd2.[89].*) |
| 15071 | shlibpath_overrides_runpath=no |
| 15072 | ;; |
| 15073 | *) |
| 15074 | shlibpath_overrides_runpath=yes |
| 15075 | ;; |
| 15076 | esac |
| 15077 | else |
| 15078 | shlibpath_overrides_runpath=yes |
| 15079 | fi |
| 15080 | ;; |
| 15081 | |
| 15082 | os2*) |
| 15083 | libname_spec='$name' |
| 15084 | shrext_cmds=".dll" |
| 15085 | need_lib_prefix=no |
| 15086 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15087 | dynamic_linker='OS/2 ld.exe' |
| 15088 | shlibpath_var=LIBPATH |
| 15089 | ;; |
| 15090 | |
| 15091 | osf3* | osf4* | osf5*) |
| 15092 | version_type=osf |
| 15093 | need_lib_prefix=no |
| 15094 | need_version=no |
| 15095 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15097 | shlibpath_var=LD_LIBRARY_PATH |
| 15098 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15099 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15100 | ;; |
| 15101 | |
| 15102 | rdos*) |
| 15103 | dynamic_linker=no |
| 15104 | ;; |
| 15105 | |
| 15106 | solaris*) |
| 15107 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15108 | need_lib_prefix=no |
| 15109 | need_version=no |
| 15110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15112 | shlibpath_var=LD_LIBRARY_PATH |
| 15113 | shlibpath_overrides_runpath=yes |
| 15114 | hardcode_into_libs=yes |
| 15115 | # ldd complains unless libraries are executable |
| 15116 | postinstall_cmds='chmod +x $lib' |
| 15117 | ;; |
| 15118 | |
| 15119 | sunos4*) |
| 15120 | version_type=sunos |
| 15121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15122 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15123 | shlibpath_var=LD_LIBRARY_PATH |
| 15124 | shlibpath_overrides_runpath=yes |
| 15125 | if test "$with_gnu_ld" = yes; then |
| 15126 | need_lib_prefix=no |
| 15127 | fi |
| 15128 | need_version=yes |
| 15129 | ;; |
| 15130 | |
| 15131 | sysv4 | sysv4.3*) |
| 15132 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15134 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15135 | shlibpath_var=LD_LIBRARY_PATH |
| 15136 | case $host_vendor in |
| 15137 | sni) |
| 15138 | shlibpath_overrides_runpath=no |
| 15139 | need_lib_prefix=no |
| 15140 | runpath_var=LD_RUN_PATH |
| 15141 | ;; |
| 15142 | siemens) |
| 15143 | need_lib_prefix=no |
| 15144 | ;; |
| 15145 | motorola) |
| 15146 | need_lib_prefix=no |
| 15147 | need_version=no |
| 15148 | shlibpath_overrides_runpath=no |
| 15149 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15150 | ;; |
| 15151 | esac |
| 15152 | ;; |
| 15153 | |
| 15154 | sysv4*MP*) |
| 15155 | if test -d /usr/nec ;then |
| 15156 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15157 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15158 | soname_spec='$libname${shared_ext}.$major' |
| 15159 | shlibpath_var=LD_LIBRARY_PATH |
| 15160 | fi |
| 15161 | ;; |
| 15162 | |
| 15163 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15164 | version_type=freebsd-elf |
| 15165 | need_lib_prefix=no |
| 15166 | need_version=no |
| 15167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15169 | shlibpath_var=LD_LIBRARY_PATH |
| 15170 | shlibpath_overrides_runpath=yes |
| 15171 | hardcode_into_libs=yes |
| 15172 | if test "$with_gnu_ld" = yes; then |
| 15173 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15174 | else |
| 15175 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15176 | case $host_os in |
| 15177 | sco3.2v5*) |
| 15178 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15179 | ;; |
| 15180 | esac |
| 15181 | fi |
| 15182 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15183 | ;; |
| 15184 | |
| 15185 | tpf*) |
| 15186 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15187 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15188 | need_lib_prefix=no |
| 15189 | need_version=no |
| 15190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15191 | shlibpath_var=LD_LIBRARY_PATH |
| 15192 | shlibpath_overrides_runpath=no |
| 15193 | hardcode_into_libs=yes |
| 15194 | ;; |
| 15195 | |
| 15196 | uts4*) |
| 15197 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15200 | shlibpath_var=LD_LIBRARY_PATH |
| 15201 | ;; |
| 15202 | |
| 15203 | *) |
| 15204 | dynamic_linker=no |
| 15205 | ;; |
| 15206 | esac |
| 15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15208 | $as_echo "$dynamic_linker" >&6; } |
| 15209 | test "$dynamic_linker" = no && can_build_shared=no |
| 15210 | |
| 15211 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15212 | if test "$GCC" = yes; then |
| 15213 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15214 | fi |
| 15215 | |
| 15216 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15217 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15218 | fi |
| 15219 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15220 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15221 | fi |
| 15222 | |
| 15223 | |
| 15224 | |
| 15225 | |
| 15226 | |
| 15227 | |
| 15228 | |
| 15229 | |
| 15230 | |
| 15231 | |
| 15232 | |
| 15233 | |
| 15234 | |
| 15235 | |
| 15236 | |
| 15237 | |
| 15238 | |
| 15239 | |
| 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
| 15245 | |
| 15246 | |
| 15247 | |
| 15248 | |
| 15249 | |
| 15250 | |
| 15251 | |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | |
| 15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15261 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15262 | hardcode_action_CXX= |
| 15263 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15264 | test -n "$runpath_var_CXX" || |
| 15265 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 15266 | |
| 15267 | # We can hardcode non-existent directories. |
| 15268 | if test "$hardcode_direct_CXX" != no && |
| 15269 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15270 | # have to relink, otherwise we might link with an installed library |
| 15271 | # when we should be linking with a yet-to-be-installed one |
| 15272 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 15273 | test "$hardcode_minus_L_CXX" != no; then |
| 15274 | # Linking always hardcodes the temporary library directory. |
| 15275 | hardcode_action_CXX=relink |
| 15276 | else |
| 15277 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15278 | hardcode_action_CXX=immediate |
| 15279 | fi |
| 15280 | else |
| 15281 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15282 | # directories. |
| 15283 | hardcode_action_CXX=unsupported |
| 15284 | fi |
| 15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 15286 | $as_echo "$hardcode_action_CXX" >&6; } |
| 15287 | |
| 15288 | if test "$hardcode_action_CXX" = relink || |
| 15289 | test "$inherit_rpath_CXX" = yes; then |
| 15290 | # Fast installation is not supported |
| 15291 | enable_fast_install=no |
| 15292 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15293 | test "$enable_shared" = no; then |
| 15294 | # Fast installation is not necessary |
| 15295 | enable_fast_install=needless |
| 15296 | fi |
| 15297 | |
| 15298 | |
| 15299 | |
| 15300 | |
| 15301 | |
| 15302 | |
| 15303 | |
| 15304 | fi # test -n "$compiler" |
| 15305 | |
| 15306 | CC=$lt_save_CC |
| 15307 | CFLAGS=$lt_save_CFLAGS |
| 15308 | LDCXX=$LD |
| 15309 | LD=$lt_save_LD |
| 15310 | GCC=$lt_save_GCC |
| 15311 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15312 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15313 | lt_cv_path_LD=$lt_save_path_LD |
| 15314 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15315 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15316 | fi # test "$_lt_caught_CXX_error" != yes |
| 15317 | |
| 15318 | ac_ext=c |
| 15319 | ac_cpp='$CPP $CPPFLAGS' |
| 15320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15323 | |
| 15324 | |
Jeff Thompson | 1a1b4c0 | 2013-06-28 22:28:51 -0700 | [diff] [blame] | 15325 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 15326 | ac_ext=cpp |
| 15327 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15331 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 15332 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 15333 | ax_cxx_compile_cxx11_required=falsednl |
| 15334 | ac_ext=cpp |
| 15335 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15336 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15337 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15338 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15339 | ac_success=no |
| 15340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 15341 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 15342 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 15343 | $as_echo_n "(cached) " >&6 |
| 15344 | else |
| 15345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15346 | /* end confdefs.h. */ |
| 15347 | |
| 15348 | template <typename T> |
| 15349 | struct check |
| 15350 | { |
| 15351 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 15352 | }; |
| 15353 | |
| 15354 | typedef check<check<bool>> right_angle_brackets; |
| 15355 | |
| 15356 | int a; |
| 15357 | decltype(a) b; |
| 15358 | |
| 15359 | typedef check<int> check_type; |
| 15360 | check_type c; |
| 15361 | check_type&& cr = static_cast<check_type&&>(c); |
| 15362 | |
| 15363 | auto d = a; |
| 15364 | |
| 15365 | _ACEOF |
| 15366 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15367 | ax_cv_cxx_compile_cxx11=yes |
| 15368 | else |
| 15369 | ax_cv_cxx_compile_cxx11=no |
| 15370 | fi |
| 15371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15372 | fi |
| 15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 15374 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 15375 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 15376 | ac_success=yes |
| 15377 | fi |
| 15378 | |
| 15379 | if test x$ac_success = xno; then |
| 15380 | for switch in -std=gnu++11 -std=gnu++0x; do |
| 15381 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 15382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 15383 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 15384 | if eval \${$cachevar+:} false; then : |
| 15385 | $as_echo_n "(cached) " >&6 |
| 15386 | else |
| 15387 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 15388 | CXXFLAGS="$CXXFLAGS $switch" |
| 15389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15390 | /* end confdefs.h. */ |
| 15391 | |
| 15392 | template <typename T> |
| 15393 | struct check |
| 15394 | { |
| 15395 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 15396 | }; |
| 15397 | |
| 15398 | typedef check<check<bool>> right_angle_brackets; |
| 15399 | |
| 15400 | int a; |
| 15401 | decltype(a) b; |
| 15402 | |
| 15403 | typedef check<int> check_type; |
| 15404 | check_type c; |
| 15405 | check_type&& cr = static_cast<check_type&&>(c); |
| 15406 | |
| 15407 | auto d = a; |
| 15408 | |
| 15409 | _ACEOF |
| 15410 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15411 | eval $cachevar=yes |
| 15412 | else |
| 15413 | eval $cachevar=no |
| 15414 | fi |
| 15415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15416 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 15417 | fi |
| 15418 | eval ac_res=\$$cachevar |
| 15419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15420 | $as_echo "$ac_res" >&6; } |
| 15421 | if eval test x\$$cachevar = xyes; then |
| 15422 | CXXFLAGS="$CXXFLAGS $switch" |
| 15423 | ac_success=yes |
| 15424 | break |
| 15425 | fi |
| 15426 | done |
| 15427 | fi |
| 15428 | |
| 15429 | if test x$ac_success = xno; then |
| 15430 | for switch in -std=c++11 -std=c++0x; do |
| 15431 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 15432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 15433 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 15434 | if eval \${$cachevar+:} false; then : |
| 15435 | $as_echo_n "(cached) " >&6 |
| 15436 | else |
| 15437 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 15438 | CXXFLAGS="$CXXFLAGS $switch" |
| 15439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15440 | /* end confdefs.h. */ |
| 15441 | |
| 15442 | template <typename T> |
| 15443 | struct check |
| 15444 | { |
| 15445 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 15446 | }; |
| 15447 | |
| 15448 | typedef check<check<bool>> right_angle_brackets; |
| 15449 | |
| 15450 | int a; |
| 15451 | decltype(a) b; |
| 15452 | |
| 15453 | typedef check<int> check_type; |
| 15454 | check_type c; |
| 15455 | check_type&& cr = static_cast<check_type&&>(c); |
| 15456 | |
| 15457 | auto d = a; |
| 15458 | |
| 15459 | _ACEOF |
| 15460 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15461 | eval $cachevar=yes |
| 15462 | else |
| 15463 | eval $cachevar=no |
| 15464 | fi |
| 15465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15466 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 15467 | fi |
| 15468 | eval ac_res=\$$cachevar |
| 15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15470 | $as_echo "$ac_res" >&6; } |
| 15471 | if eval test x\$$cachevar = xyes; then |
| 15472 | CXXFLAGS="$CXXFLAGS $switch" |
| 15473 | ac_success=yes |
| 15474 | break |
| 15475 | fi |
| 15476 | done |
| 15477 | fi |
| 15478 | ac_ext=cpp |
| 15479 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15483 | |
| 15484 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 15485 | if test x$ac_success = xno; then |
| 15486 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 15487 | fi |
| 15488 | else |
| 15489 | if test x$ac_success = xno; then |
| 15490 | HAVE_CXX11=0 |
| 15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 15492 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 15493 | else |
| 15494 | HAVE_CXX11=1 |
| 15495 | |
| 15496 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 15497 | |
| 15498 | fi |
| 15499 | |
| 15500 | |
| 15501 | fi |
| 15502 | |
Jeff Thompson | 8a055e0 | 2013-08-09 10:44:28 -0700 | [diff] [blame] | 15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 15504 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 15505 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 15506 | $as_echo_n "(cached) " >&6 |
| 15507 | else |
| 15508 | ac_check_lib_save_LIBS=$LIBS |
| 15509 | LIBS="-lcrypto $LIBS" |
| 15510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15511 | /* end confdefs.h. */ |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 15512 | |
Jeff Thompson | 8a055e0 | 2013-08-09 10:44:28 -0700 | [diff] [blame] | 15513 | /* Override any GCC internal prototype to avoid an error. |
| 15514 | Use char because int might match the return type of a GCC |
| 15515 | builtin and then its argument prototype would still apply. */ |
| 15516 | #ifdef __cplusplus |
| 15517 | extern "C" |
| 15518 | #endif |
| 15519 | char EVP_EncryptInit (); |
| 15520 | int |
| 15521 | main () |
| 15522 | { |
| 15523 | return EVP_EncryptInit (); |
| 15524 | ; |
| 15525 | return 0; |
| 15526 | } |
| 15527 | _ACEOF |
| 15528 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 15529 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 15530 | else |
| 15531 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 15532 | fi |
| 15533 | rm -f core conftest.err conftest.$ac_objext \ |
| 15534 | conftest$ac_exeext conftest.$ac_ext |
| 15535 | LIBS=$ac_check_lib_save_LIBS |
| 15536 | fi |
| 15537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 15538 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 15539 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 15540 | cat >>confdefs.h <<_ACEOF |
| 15541 | #define HAVE_LIBCRYPTO 1 |
| 15542 | _ACEOF |
| 15543 | |
| 15544 | LIBS="-lcrypto $LIBS" |
| 15545 | |
| 15546 | else |
| 15547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15549 | as_fn_error $? "can't find openssl crypto lib |
| 15550 | See \`config.log' for more details" "$LINENO" 5; } |
| 15551 | fi |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 15552 | |
| 15553 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5 |
| 15555 | $as_echo_n "checking for std::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 15556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15557 | /* end confdefs.h. */ |
| 15558 | #include <memory> |
| 15559 | std::shared_ptr<int> have_shared_ptr; |
| 15560 | int |
| 15561 | main () |
| 15562 | { |
| 15563 | |
| 15564 | ; |
| 15565 | return 0; |
| 15566 | } |
| 15567 | |
| 15568 | _ACEOF |
| 15569 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15570 | |
| 15571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15572 | $as_echo "yes" >&6; } |
| 15573 | |
| 15574 | cat >>confdefs.h <<_ACEOF |
| 15575 | #define HAVE_STD_SHARED_PTR 1 |
| 15576 | _ACEOF |
| 15577 | |
| 15578 | |
| 15579 | else |
| 15580 | |
| 15581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15582 | $as_echo "no" >&6; } |
| 15583 | |
| 15584 | cat >>confdefs.h <<_ACEOF |
| 15585 | #define HAVE_STD_SHARED_PTR 0 |
| 15586 | _ACEOF |
| 15587 | |
| 15588 | |
| 15589 | fi |
| 15590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | 9e9ea9f | 2013-06-22 10:31:18 -0700 | [diff] [blame] | 15591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5 |
| 15592 | $as_echo_n "checking for boost::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 15593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15594 | /* end confdefs.h. */ |
| 15595 | #include <boost/shared_ptr.hpp> |
| 15596 | boost::shared_ptr<int> have_shared_ptr; |
| 15597 | int |
| 15598 | main () |
| 15599 | { |
| 15600 | |
| 15601 | ; |
| 15602 | return 0; |
| 15603 | } |
| 15604 | |
| 15605 | _ACEOF |
| 15606 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15607 | |
| 15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15609 | $as_echo "yes" >&6; } |
| 15610 | |
| 15611 | cat >>confdefs.h <<_ACEOF |
| 15612 | #define HAVE_BOOST_SHARED_PTR 1 |
| 15613 | _ACEOF |
| 15614 | |
| 15615 | |
| 15616 | else |
| 15617 | |
| 15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15619 | $as_echo "no" >&6; } |
| 15620 | |
| 15621 | cat >>confdefs.h <<_ACEOF |
| 15622 | #define HAVE_BOOST_SHARED_PTR 0 |
| 15623 | _ACEOF |
| 15624 | |
| 15625 | |
| 15626 | fi |
| 15627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15628 | |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5 |
| 15630 | $as_echo_n "checking for std::function... " >&6; } |
| 15631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15632 | /* end confdefs.h. */ |
| 15633 | #include <functional> |
| 15634 | std::function<int> have_function(); |
| 15635 | int |
| 15636 | main () |
| 15637 | { |
| 15638 | |
| 15639 | ; |
| 15640 | return 0; |
| 15641 | } |
| 15642 | |
| 15643 | _ACEOF |
| 15644 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15645 | |
| 15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15647 | $as_echo "yes" >&6; } |
| 15648 | |
| 15649 | cat >>confdefs.h <<_ACEOF |
| 15650 | #define HAVE_STD_FUNCTION 1 |
| 15651 | _ACEOF |
| 15652 | |
| 15653 | |
| 15654 | else |
| 15655 | |
| 15656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15657 | $as_echo "no" >&6; } |
| 15658 | |
| 15659 | cat >>confdefs.h <<_ACEOF |
| 15660 | #define HAVE_STD_FUNCTION 0 |
| 15661 | _ACEOF |
| 15662 | |
| 15663 | |
| 15664 | fi |
| 15665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5 |
| 15667 | $as_echo_n "checking for boost::function... " >&6; } |
| 15668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15669 | /* end confdefs.h. */ |
| 15670 | #include <boost/function.hpp> |
| 15671 | boost::function<int> have_function(); |
| 15672 | int |
| 15673 | main () |
| 15674 | { |
| 15675 | |
| 15676 | ; |
| 15677 | return 0; |
| 15678 | } |
| 15679 | |
| 15680 | _ACEOF |
| 15681 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15682 | |
| 15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15684 | $as_echo "yes" >&6; } |
| 15685 | |
| 15686 | cat >>confdefs.h <<_ACEOF |
| 15687 | #define HAVE_BOOST_FUNCTION 1 |
| 15688 | _ACEOF |
| 15689 | |
| 15690 | |
| 15691 | else |
| 15692 | |
| 15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15694 | $as_echo "no" >&6; } |
| 15695 | |
| 15696 | cat >>confdefs.h <<_ACEOF |
| 15697 | #define HAVE_BOOST_FUNCTION 0 |
| 15698 | _ACEOF |
| 15699 | |
| 15700 | |
| 15701 | fi |
| 15702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15703 | |
Jeff Thompson | d4a1e16 | 2013-07-11 12:41:31 -0700 | [diff] [blame] | 15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5 |
| 15705 | $as_echo_n "checking for memcmp... " >&6; } |
| 15706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15707 | /* end confdefs.h. */ |
| 15708 | #include <memory.h> |
| 15709 | void test() { unsigned char buffer[1]; memcmp(buffer, buffer, 1); } |
| 15710 | int |
| 15711 | main () |
| 15712 | { |
| 15713 | |
| 15714 | ; |
| 15715 | return 0; |
| 15716 | } |
| 15717 | |
| 15718 | _ACEOF |
| 15719 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15720 | |
| 15721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15722 | $as_echo "yes" >&6; } |
| 15723 | |
| 15724 | cat >>confdefs.h <<_ACEOF |
| 15725 | #define HAVE_MEMCMP 1 |
| 15726 | _ACEOF |
| 15727 | |
| 15728 | |
| 15729 | else |
| 15730 | |
| 15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15732 | $as_echo "no" >&6; } |
| 15733 | |
| 15734 | cat >>confdefs.h <<_ACEOF |
| 15735 | #define HAVE_MEMCMP 0 |
| 15736 | _ACEOF |
| 15737 | |
| 15738 | |
| 15739 | fi |
| 15740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | c804d52 | 2013-06-27 16:54:27 -0700 | [diff] [blame] | 15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5 |
| 15742 | $as_echo_n "checking for memcpy... " >&6; } |
| 15743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15744 | /* end confdefs.h. */ |
| 15745 | #include <memory.h> |
| 15746 | void test() { unsigned char buffer[1]; memcpy(buffer, buffer, 1); } |
| 15747 | int |
| 15748 | main () |
| 15749 | { |
| 15750 | |
| 15751 | ; |
| 15752 | return 0; |
| 15753 | } |
| 15754 | |
| 15755 | _ACEOF |
| 15756 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15757 | |
| 15758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15759 | $as_echo "yes" >&6; } |
| 15760 | |
| 15761 | cat >>confdefs.h <<_ACEOF |
| 15762 | #define HAVE_MEMCPY 1 |
| 15763 | _ACEOF |
| 15764 | |
| 15765 | |
| 15766 | else |
| 15767 | |
| 15768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15769 | $as_echo "no" >&6; } |
| 15770 | |
| 15771 | cat >>confdefs.h <<_ACEOF |
| 15772 | #define HAVE_MEMCPY 0 |
| 15773 | _ACEOF |
| 15774 | |
| 15775 | |
| 15776 | fi |
| 15777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5 |
| 15779 | $as_echo_n "checking for memset... " >&6; } |
| 15780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15781 | /* end confdefs.h. */ |
| 15782 | #include <memory.h> |
| 15783 | void test() { unsigned char buffer[1]; memset(buffer, 0, 1); } |
| 15784 | int |
| 15785 | main () |
| 15786 | { |
| 15787 | |
| 15788 | ; |
| 15789 | return 0; |
| 15790 | } |
| 15791 | |
| 15792 | _ACEOF |
| 15793 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15794 | |
| 15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15796 | $as_echo "yes" >&6; } |
| 15797 | |
| 15798 | cat >>confdefs.h <<_ACEOF |
| 15799 | #define HAVE_MEMSET 1 |
| 15800 | _ACEOF |
| 15801 | |
| 15802 | |
| 15803 | else |
| 15804 | |
| 15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15806 | $as_echo "no" >&6; } |
| 15807 | |
| 15808 | cat >>confdefs.h <<_ACEOF |
| 15809 | #define HAVE_MEMSET 0 |
| 15810 | _ACEOF |
| 15811 | |
| 15812 | |
| 15813 | fi |
| 15814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15815 | |
Jeff Thompson | 0c13a53 | 2013-09-24 15:43:41 -0700 | [diff] [blame] | 15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint" >&5 |
| 15817 | $as_echo_n "checking for stdint... " >&6; } |
| 15818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15819 | /* end confdefs.h. */ |
| 15820 | #include <stdint.h> |
| 15821 | void test() { uint8_t x; } |
| 15822 | int |
| 15823 | main () |
| 15824 | { |
| 15825 | |
| 15826 | ; |
| 15827 | return 0; |
| 15828 | } |
| 15829 | |
| 15830 | _ACEOF |
| 15831 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 15832 | |
| 15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15834 | $as_echo "yes" >&6; } |
| 15835 | |
| 15836 | cat >>confdefs.h <<_ACEOF |
| 15837 | #define HAVE_STDINT 1 |
| 15838 | _ACEOF |
| 15839 | |
| 15840 | |
| 15841 | else |
| 15842 | |
| 15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15844 | $as_echo "no" >&6; } |
| 15845 | |
| 15846 | cat >>confdefs.h <<_ACEOF |
| 15847 | #define HAVE_STDINT 0 |
| 15848 | _ACEOF |
| 15849 | |
| 15850 | |
| 15851 | fi |
| 15852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15853 | |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 15854 | |
| 15855 | |
| 15856 | |
| 15857 | |
| 15858 | |
| 15859 | |
| 15860 | |
| 15861 | |
| 15862 | |
| 15863 | |
| 15864 | # Files: |
| 15865 | DX_PROJECT=$PACKAGE_NAME |
| 15866 | |
| 15867 | DX_CONFIG=Doxyfile |
| 15868 | |
| 15869 | DX_DOCDIR=doxygen-doc |
| 15870 | |
| 15871 | |
| 15872 | # Environment variables used inside doxygen.cfg: |
| 15873 | DX_ENV="$DX_ENV SRCDIR='$srcdir'" |
| 15874 | |
| 15875 | DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" |
| 15876 | |
| 15877 | DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" |
| 15878 | |
| 15879 | DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" |
| 15880 | |
| 15881 | |
| 15882 | # Doxygen itself: |
| 15883 | |
| 15884 | |
| 15885 | |
| 15886 | # Check whether --enable-doxygen-doc was given. |
| 15887 | if test "${enable_doxygen_doc+set}" = set; then : |
| 15888 | enableval=$enable_doxygen_doc; |
| 15889 | case "$enableval" in |
| 15890 | #( |
| 15891 | y|Y|yes|Yes|YES) |
| 15892 | DX_FLAG_doc=1 |
| 15893 | |
| 15894 | |
| 15895 | ;; #( |
| 15896 | n|N|no|No|NO) |
| 15897 | DX_FLAG_doc=0 |
| 15898 | |
| 15899 | ;; #( |
| 15900 | *) |
| 15901 | as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 |
| 15902 | ;; |
| 15903 | esac |
| 15904 | |
| 15905 | else |
| 15906 | |
| 15907 | DX_FLAG_doc=1 |
| 15908 | |
| 15909 | |
| 15910 | |
| 15911 | fi |
| 15912 | |
| 15913 | if test "$DX_FLAG_doc" = 1; then |
| 15914 | |
| 15915 | if test -n "$ac_tool_prefix"; then |
| 15916 | # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. |
| 15917 | set dummy ${ac_tool_prefix}doxygen; ac_word=$2 |
| 15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15919 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15920 | if ${ac_cv_path_DX_DOXYGEN+:} false; then : |
| 15921 | $as_echo_n "(cached) " >&6 |
| 15922 | else |
| 15923 | case $DX_DOXYGEN in |
| 15924 | [\\/]* | ?:[\\/]*) |
| 15925 | ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. |
| 15926 | ;; |
| 15927 | *) |
| 15928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15929 | for as_dir in $PATH |
| 15930 | do |
| 15931 | IFS=$as_save_IFS |
| 15932 | test -z "$as_dir" && as_dir=. |
| 15933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15935 | ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 15936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15937 | break 2 |
| 15938 | fi |
| 15939 | done |
| 15940 | done |
| 15941 | IFS=$as_save_IFS |
| 15942 | |
| 15943 | ;; |
| 15944 | esac |
| 15945 | fi |
| 15946 | DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN |
| 15947 | if test -n "$DX_DOXYGEN"; then |
| 15948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 |
| 15949 | $as_echo "$DX_DOXYGEN" >&6; } |
| 15950 | else |
| 15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15952 | $as_echo "no" >&6; } |
| 15953 | fi |
| 15954 | |
| 15955 | |
| 15956 | fi |
| 15957 | if test -z "$ac_cv_path_DX_DOXYGEN"; then |
| 15958 | ac_pt_DX_DOXYGEN=$DX_DOXYGEN |
| 15959 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 15960 | set dummy doxygen; ac_word=$2 |
| 15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15963 | if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then : |
| 15964 | $as_echo_n "(cached) " >&6 |
| 15965 | else |
| 15966 | case $ac_pt_DX_DOXYGEN in |
| 15967 | [\\/]* | ?:[\\/]*) |
| 15968 | ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. |
| 15969 | ;; |
| 15970 | *) |
| 15971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15972 | for as_dir in $PATH |
| 15973 | do |
| 15974 | IFS=$as_save_IFS |
| 15975 | test -z "$as_dir" && as_dir=. |
| 15976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15978 | ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 15979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15980 | break 2 |
| 15981 | fi |
| 15982 | done |
| 15983 | done |
| 15984 | IFS=$as_save_IFS |
| 15985 | |
| 15986 | ;; |
| 15987 | esac |
| 15988 | fi |
| 15989 | ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN |
| 15990 | if test -n "$ac_pt_DX_DOXYGEN"; then |
| 15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 |
| 15992 | $as_echo "$ac_pt_DX_DOXYGEN" >&6; } |
| 15993 | else |
| 15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15995 | $as_echo "no" >&6; } |
| 15996 | fi |
| 15997 | |
| 15998 | if test "x$ac_pt_DX_DOXYGEN" = x; then |
| 15999 | DX_DOXYGEN="" |
| 16000 | else |
| 16001 | case $cross_compiling:$ac_tool_warned in |
| 16002 | yes:) |
| 16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16005 | ac_tool_warned=yes ;; |
| 16006 | esac |
| 16007 | DX_DOXYGEN=$ac_pt_DX_DOXYGEN |
| 16008 | fi |
| 16009 | else |
| 16010 | DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" |
| 16011 | fi |
| 16012 | |
| 16013 | if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then |
| 16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 |
| 16015 | $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} |
| 16016 | DX_FLAG_doc=0 |
| 16017 | |
| 16018 | fi |
| 16019 | |
| 16020 | |
| 16021 | if test -n "$ac_tool_prefix"; then |
| 16022 | # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. |
| 16023 | set dummy ${ac_tool_prefix}perl; ac_word=$2 |
| 16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16025 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16026 | if ${ac_cv_path_DX_PERL+:} false; then : |
| 16027 | $as_echo_n "(cached) " >&6 |
| 16028 | else |
| 16029 | case $DX_PERL in |
| 16030 | [\\/]* | ?:[\\/]*) |
| 16031 | ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. |
| 16032 | ;; |
| 16033 | *) |
| 16034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16035 | for as_dir in $PATH |
| 16036 | do |
| 16037 | IFS=$as_save_IFS |
| 16038 | test -z "$as_dir" && as_dir=. |
| 16039 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16041 | ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 16042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16043 | break 2 |
| 16044 | fi |
| 16045 | done |
| 16046 | done |
| 16047 | IFS=$as_save_IFS |
| 16048 | |
| 16049 | ;; |
| 16050 | esac |
| 16051 | fi |
| 16052 | DX_PERL=$ac_cv_path_DX_PERL |
| 16053 | if test -n "$DX_PERL"; then |
| 16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 |
| 16055 | $as_echo "$DX_PERL" >&6; } |
| 16056 | else |
| 16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16058 | $as_echo "no" >&6; } |
| 16059 | fi |
| 16060 | |
| 16061 | |
| 16062 | fi |
| 16063 | if test -z "$ac_cv_path_DX_PERL"; then |
| 16064 | ac_pt_DX_PERL=$DX_PERL |
| 16065 | # Extract the first word of "perl", so it can be a program name with args. |
| 16066 | set dummy perl; ac_word=$2 |
| 16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16068 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16069 | if ${ac_cv_path_ac_pt_DX_PERL+:} false; then : |
| 16070 | $as_echo_n "(cached) " >&6 |
| 16071 | else |
| 16072 | case $ac_pt_DX_PERL in |
| 16073 | [\\/]* | ?:[\\/]*) |
| 16074 | ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. |
| 16075 | ;; |
| 16076 | *) |
| 16077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16078 | for as_dir in $PATH |
| 16079 | do |
| 16080 | IFS=$as_save_IFS |
| 16081 | test -z "$as_dir" && as_dir=. |
| 16082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16084 | ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 16085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16086 | break 2 |
| 16087 | fi |
| 16088 | done |
| 16089 | done |
| 16090 | IFS=$as_save_IFS |
| 16091 | |
| 16092 | ;; |
| 16093 | esac |
| 16094 | fi |
| 16095 | ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL |
| 16096 | if test -n "$ac_pt_DX_PERL"; then |
| 16097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 |
| 16098 | $as_echo "$ac_pt_DX_PERL" >&6; } |
| 16099 | else |
| 16100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16101 | $as_echo "no" >&6; } |
| 16102 | fi |
| 16103 | |
| 16104 | if test "x$ac_pt_DX_PERL" = x; then |
| 16105 | DX_PERL="" |
| 16106 | else |
| 16107 | case $cross_compiling:$ac_tool_warned in |
| 16108 | yes:) |
| 16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16111 | ac_tool_warned=yes ;; |
| 16112 | esac |
| 16113 | DX_PERL=$ac_pt_DX_PERL |
| 16114 | fi |
| 16115 | else |
| 16116 | DX_PERL="$ac_cv_path_DX_PERL" |
| 16117 | fi |
| 16118 | |
| 16119 | if test "$DX_FLAG_doc$DX_PERL" = 1; then |
| 16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 |
| 16121 | $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} |
| 16122 | DX_FLAG_doc=0 |
| 16123 | |
| 16124 | fi |
| 16125 | |
| 16126 | : |
| 16127 | fi |
| 16128 | if test "$DX_FLAG_doc" = 1; then |
| 16129 | DX_COND_doc_TRUE= |
| 16130 | DX_COND_doc_FALSE='#' |
| 16131 | else |
| 16132 | DX_COND_doc_TRUE='#' |
| 16133 | DX_COND_doc_FALSE= |
| 16134 | fi |
| 16135 | |
| 16136 | if test "$DX_FLAG_doc" = 1; then |
| 16137 | DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" |
| 16138 | |
| 16139 | : |
| 16140 | else |
| 16141 | |
| 16142 | : |
| 16143 | fi |
| 16144 | |
| 16145 | |
| 16146 | # Dot for graphics: |
| 16147 | |
| 16148 | |
| 16149 | |
| 16150 | # Check whether --enable-doxygen-dot was given. |
| 16151 | if test "${enable_doxygen_dot+set}" = set; then : |
| 16152 | enableval=$enable_doxygen_dot; |
| 16153 | case "$enableval" in |
| 16154 | #( |
| 16155 | y|Y|yes|Yes|YES) |
| 16156 | DX_FLAG_dot=1 |
| 16157 | |
| 16158 | |
| 16159 | test "$DX_FLAG_doc" = "1" \ |
| 16160 | || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 |
| 16161 | |
| 16162 | ;; #( |
| 16163 | n|N|no|No|NO) |
| 16164 | DX_FLAG_dot=0 |
| 16165 | |
| 16166 | ;; #( |
| 16167 | *) |
| 16168 | as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 |
| 16169 | ;; |
| 16170 | esac |
| 16171 | |
| 16172 | else |
| 16173 | |
| 16174 | DX_FLAG_dot=0 |
| 16175 | |
| 16176 | |
| 16177 | test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 |
| 16178 | |
| 16179 | |
| 16180 | |
| 16181 | fi |
| 16182 | |
| 16183 | if test "$DX_FLAG_dot" = 1; then |
| 16184 | |
| 16185 | if test -n "$ac_tool_prefix"; then |
| 16186 | # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. |
| 16187 | set dummy ${ac_tool_prefix}dot; ac_word=$2 |
| 16188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16189 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16190 | if ${ac_cv_path_DX_DOT+:} false; then : |
| 16191 | $as_echo_n "(cached) " >&6 |
| 16192 | else |
| 16193 | case $DX_DOT in |
| 16194 | [\\/]* | ?:[\\/]*) |
| 16195 | ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. |
| 16196 | ;; |
| 16197 | *) |
| 16198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16199 | for as_dir in $PATH |
| 16200 | do |
| 16201 | IFS=$as_save_IFS |
| 16202 | test -z "$as_dir" && as_dir=. |
| 16203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16205 | ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 16206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16207 | break 2 |
| 16208 | fi |
| 16209 | done |
| 16210 | done |
| 16211 | IFS=$as_save_IFS |
| 16212 | |
| 16213 | ;; |
| 16214 | esac |
| 16215 | fi |
| 16216 | DX_DOT=$ac_cv_path_DX_DOT |
| 16217 | if test -n "$DX_DOT"; then |
| 16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 |
| 16219 | $as_echo "$DX_DOT" >&6; } |
| 16220 | else |
| 16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16222 | $as_echo "no" >&6; } |
| 16223 | fi |
| 16224 | |
| 16225 | |
| 16226 | fi |
| 16227 | if test -z "$ac_cv_path_DX_DOT"; then |
| 16228 | ac_pt_DX_DOT=$DX_DOT |
| 16229 | # Extract the first word of "dot", so it can be a program name with args. |
| 16230 | set dummy dot; ac_word=$2 |
| 16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16232 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16233 | if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : |
| 16234 | $as_echo_n "(cached) " >&6 |
| 16235 | else |
| 16236 | case $ac_pt_DX_DOT in |
| 16237 | [\\/]* | ?:[\\/]*) |
| 16238 | ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. |
| 16239 | ;; |
| 16240 | *) |
| 16241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16242 | for as_dir in $PATH |
| 16243 | do |
| 16244 | IFS=$as_save_IFS |
| 16245 | test -z "$as_dir" && as_dir=. |
| 16246 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16248 | ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 16249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16250 | break 2 |
| 16251 | fi |
| 16252 | done |
| 16253 | done |
| 16254 | IFS=$as_save_IFS |
| 16255 | |
| 16256 | ;; |
| 16257 | esac |
| 16258 | fi |
| 16259 | ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT |
| 16260 | if test -n "$ac_pt_DX_DOT"; then |
| 16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 |
| 16262 | $as_echo "$ac_pt_DX_DOT" >&6; } |
| 16263 | else |
| 16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16265 | $as_echo "no" >&6; } |
| 16266 | fi |
| 16267 | |
| 16268 | if test "x$ac_pt_DX_DOT" = x; then |
| 16269 | DX_DOT="" |
| 16270 | else |
| 16271 | case $cross_compiling:$ac_tool_warned in |
| 16272 | yes:) |
| 16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16274 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16275 | ac_tool_warned=yes ;; |
| 16276 | esac |
| 16277 | DX_DOT=$ac_pt_DX_DOT |
| 16278 | fi |
| 16279 | else |
| 16280 | DX_DOT="$ac_cv_path_DX_DOT" |
| 16281 | fi |
| 16282 | |
| 16283 | if test "$DX_FLAG_dot$DX_DOT" = 1; then |
| 16284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 |
| 16285 | $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} |
| 16286 | DX_FLAG_dot=0 |
| 16287 | |
| 16288 | fi |
| 16289 | |
| 16290 | : |
| 16291 | fi |
| 16292 | if test "$DX_FLAG_dot" = 1; then |
| 16293 | DX_COND_dot_TRUE= |
| 16294 | DX_COND_dot_FALSE='#' |
| 16295 | else |
| 16296 | DX_COND_dot_TRUE='#' |
| 16297 | DX_COND_dot_FALSE= |
| 16298 | fi |
| 16299 | |
| 16300 | if test "$DX_FLAG_dot" = 1; then |
| 16301 | DX_ENV="$DX_ENV HAVE_DOT='YES'" |
| 16302 | |
| 16303 | DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" |
| 16304 | |
| 16305 | : |
| 16306 | else |
| 16307 | DX_ENV="$DX_ENV HAVE_DOT='NO'" |
| 16308 | |
| 16309 | : |
| 16310 | fi |
| 16311 | |
| 16312 | |
| 16313 | # Man pages generation: |
| 16314 | |
| 16315 | |
| 16316 | |
| 16317 | # Check whether --enable-doxygen-man was given. |
| 16318 | if test "${enable_doxygen_man+set}" = set; then : |
| 16319 | enableval=$enable_doxygen_man; |
| 16320 | case "$enableval" in |
| 16321 | #( |
| 16322 | y|Y|yes|Yes|YES) |
| 16323 | DX_FLAG_man=1 |
| 16324 | |
| 16325 | |
| 16326 | test "$DX_FLAG_doc" = "1" \ |
| 16327 | || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 |
| 16328 | |
| 16329 | ;; #( |
| 16330 | n|N|no|No|NO) |
| 16331 | DX_FLAG_man=0 |
| 16332 | |
| 16333 | ;; #( |
| 16334 | *) |
| 16335 | as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 |
| 16336 | ;; |
| 16337 | esac |
| 16338 | |
| 16339 | else |
| 16340 | |
| 16341 | DX_FLAG_man=0 |
| 16342 | |
| 16343 | |
| 16344 | test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 |
| 16345 | |
| 16346 | |
| 16347 | |
| 16348 | fi |
| 16349 | |
| 16350 | if test "$DX_FLAG_man" = 1; then |
| 16351 | |
| 16352 | : |
| 16353 | fi |
| 16354 | if test "$DX_FLAG_man" = 1; then |
| 16355 | DX_COND_man_TRUE= |
| 16356 | DX_COND_man_FALSE='#' |
| 16357 | else |
| 16358 | DX_COND_man_TRUE='#' |
| 16359 | DX_COND_man_FALSE= |
| 16360 | fi |
| 16361 | |
| 16362 | if test "$DX_FLAG_man" = 1; then |
| 16363 | DX_ENV="$DX_ENV GENERATE_MAN='YES'" |
| 16364 | |
| 16365 | : |
| 16366 | else |
| 16367 | DX_ENV="$DX_ENV GENERATE_MAN='NO'" |
| 16368 | |
| 16369 | : |
| 16370 | fi |
| 16371 | |
| 16372 | |
| 16373 | # RTF file generation: |
| 16374 | |
| 16375 | |
| 16376 | |
| 16377 | # Check whether --enable-doxygen-rtf was given. |
| 16378 | if test "${enable_doxygen_rtf+set}" = set; then : |
| 16379 | enableval=$enable_doxygen_rtf; |
| 16380 | case "$enableval" in |
| 16381 | #( |
| 16382 | y|Y|yes|Yes|YES) |
| 16383 | DX_FLAG_rtf=1 |
| 16384 | |
| 16385 | |
| 16386 | test "$DX_FLAG_doc" = "1" \ |
| 16387 | || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 |
| 16388 | |
| 16389 | ;; #( |
| 16390 | n|N|no|No|NO) |
| 16391 | DX_FLAG_rtf=0 |
| 16392 | |
| 16393 | ;; #( |
| 16394 | *) |
| 16395 | as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 |
| 16396 | ;; |
| 16397 | esac |
| 16398 | |
| 16399 | else |
| 16400 | |
| 16401 | DX_FLAG_rtf=0 |
| 16402 | |
| 16403 | |
| 16404 | test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 |
| 16405 | |
| 16406 | |
| 16407 | |
| 16408 | fi |
| 16409 | |
| 16410 | if test "$DX_FLAG_rtf" = 1; then |
| 16411 | |
| 16412 | : |
| 16413 | fi |
| 16414 | if test "$DX_FLAG_rtf" = 1; then |
| 16415 | DX_COND_rtf_TRUE= |
| 16416 | DX_COND_rtf_FALSE='#' |
| 16417 | else |
| 16418 | DX_COND_rtf_TRUE='#' |
| 16419 | DX_COND_rtf_FALSE= |
| 16420 | fi |
| 16421 | |
| 16422 | if test "$DX_FLAG_rtf" = 1; then |
| 16423 | DX_ENV="$DX_ENV GENERATE_RTF='YES'" |
| 16424 | |
| 16425 | : |
| 16426 | else |
| 16427 | DX_ENV="$DX_ENV GENERATE_RTF='NO'" |
| 16428 | |
| 16429 | : |
| 16430 | fi |
| 16431 | |
| 16432 | |
| 16433 | # XML file generation: |
| 16434 | |
| 16435 | |
| 16436 | |
| 16437 | # Check whether --enable-doxygen-xml was given. |
| 16438 | if test "${enable_doxygen_xml+set}" = set; then : |
| 16439 | enableval=$enable_doxygen_xml; |
| 16440 | case "$enableval" in |
| 16441 | #( |
| 16442 | y|Y|yes|Yes|YES) |
| 16443 | DX_FLAG_xml=1 |
| 16444 | |
| 16445 | |
| 16446 | test "$DX_FLAG_doc" = "1" \ |
| 16447 | || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 |
| 16448 | |
| 16449 | ;; #( |
| 16450 | n|N|no|No|NO) |
| 16451 | DX_FLAG_xml=0 |
| 16452 | |
| 16453 | ;; #( |
| 16454 | *) |
| 16455 | as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 |
| 16456 | ;; |
| 16457 | esac |
| 16458 | |
| 16459 | else |
| 16460 | |
| 16461 | DX_FLAG_xml=0 |
| 16462 | |
| 16463 | |
| 16464 | test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 |
| 16465 | |
| 16466 | |
| 16467 | |
| 16468 | fi |
| 16469 | |
| 16470 | if test "$DX_FLAG_xml" = 1; then |
| 16471 | |
| 16472 | : |
| 16473 | fi |
| 16474 | if test "$DX_FLAG_xml" = 1; then |
| 16475 | DX_COND_xml_TRUE= |
| 16476 | DX_COND_xml_FALSE='#' |
| 16477 | else |
| 16478 | DX_COND_xml_TRUE='#' |
| 16479 | DX_COND_xml_FALSE= |
| 16480 | fi |
| 16481 | |
| 16482 | if test "$DX_FLAG_xml" = 1; then |
| 16483 | DX_ENV="$DX_ENV GENERATE_XML='YES'" |
| 16484 | |
| 16485 | : |
| 16486 | else |
| 16487 | DX_ENV="$DX_ENV GENERATE_XML='NO'" |
| 16488 | |
| 16489 | : |
| 16490 | fi |
| 16491 | |
| 16492 | |
| 16493 | # (Compressed) HTML help generation: |
| 16494 | |
| 16495 | |
| 16496 | |
| 16497 | # Check whether --enable-doxygen-chm was given. |
| 16498 | if test "${enable_doxygen_chm+set}" = set; then : |
| 16499 | enableval=$enable_doxygen_chm; |
| 16500 | case "$enableval" in |
| 16501 | #( |
| 16502 | y|Y|yes|Yes|YES) |
| 16503 | DX_FLAG_chm=1 |
| 16504 | |
| 16505 | |
| 16506 | test "$DX_FLAG_doc" = "1" \ |
| 16507 | || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 |
| 16508 | |
| 16509 | ;; #( |
| 16510 | n|N|no|No|NO) |
| 16511 | DX_FLAG_chm=0 |
| 16512 | |
| 16513 | ;; #( |
| 16514 | *) |
| 16515 | as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 |
| 16516 | ;; |
| 16517 | esac |
| 16518 | |
| 16519 | else |
| 16520 | |
| 16521 | DX_FLAG_chm=0 |
| 16522 | |
| 16523 | |
| 16524 | test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 |
| 16525 | |
| 16526 | |
| 16527 | |
| 16528 | fi |
| 16529 | |
| 16530 | if test "$DX_FLAG_chm" = 1; then |
| 16531 | |
| 16532 | if test -n "$ac_tool_prefix"; then |
| 16533 | # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. |
| 16534 | set dummy ${ac_tool_prefix}hhc; ac_word=$2 |
| 16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16536 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16537 | if ${ac_cv_path_DX_HHC+:} false; then : |
| 16538 | $as_echo_n "(cached) " >&6 |
| 16539 | else |
| 16540 | case $DX_HHC in |
| 16541 | [\\/]* | ?:[\\/]*) |
| 16542 | ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. |
| 16543 | ;; |
| 16544 | *) |
| 16545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16546 | for as_dir in $PATH |
| 16547 | do |
| 16548 | IFS=$as_save_IFS |
| 16549 | test -z "$as_dir" && as_dir=. |
| 16550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16552 | ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 16553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16554 | break 2 |
| 16555 | fi |
| 16556 | done |
| 16557 | done |
| 16558 | IFS=$as_save_IFS |
| 16559 | |
| 16560 | ;; |
| 16561 | esac |
| 16562 | fi |
| 16563 | DX_HHC=$ac_cv_path_DX_HHC |
| 16564 | if test -n "$DX_HHC"; then |
| 16565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 |
| 16566 | $as_echo "$DX_HHC" >&6; } |
| 16567 | else |
| 16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16569 | $as_echo "no" >&6; } |
| 16570 | fi |
| 16571 | |
| 16572 | |
| 16573 | fi |
| 16574 | if test -z "$ac_cv_path_DX_HHC"; then |
| 16575 | ac_pt_DX_HHC=$DX_HHC |
| 16576 | # Extract the first word of "hhc", so it can be a program name with args. |
| 16577 | set dummy hhc; ac_word=$2 |
| 16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16579 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16580 | if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : |
| 16581 | $as_echo_n "(cached) " >&6 |
| 16582 | else |
| 16583 | case $ac_pt_DX_HHC in |
| 16584 | [\\/]* | ?:[\\/]*) |
| 16585 | ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. |
| 16586 | ;; |
| 16587 | *) |
| 16588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16589 | for as_dir in $PATH |
| 16590 | do |
| 16591 | IFS=$as_save_IFS |
| 16592 | test -z "$as_dir" && as_dir=. |
| 16593 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16595 | ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 16596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16597 | break 2 |
| 16598 | fi |
| 16599 | done |
| 16600 | done |
| 16601 | IFS=$as_save_IFS |
| 16602 | |
| 16603 | ;; |
| 16604 | esac |
| 16605 | fi |
| 16606 | ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC |
| 16607 | if test -n "$ac_pt_DX_HHC"; then |
| 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 |
| 16609 | $as_echo "$ac_pt_DX_HHC" >&6; } |
| 16610 | else |
| 16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16612 | $as_echo "no" >&6; } |
| 16613 | fi |
| 16614 | |
| 16615 | if test "x$ac_pt_DX_HHC" = x; then |
| 16616 | DX_HHC="" |
| 16617 | else |
| 16618 | case $cross_compiling:$ac_tool_warned in |
| 16619 | yes:) |
| 16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16621 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16622 | ac_tool_warned=yes ;; |
| 16623 | esac |
| 16624 | DX_HHC=$ac_pt_DX_HHC |
| 16625 | fi |
| 16626 | else |
| 16627 | DX_HHC="$ac_cv_path_DX_HHC" |
| 16628 | fi |
| 16629 | |
| 16630 | if test "$DX_FLAG_chm$DX_HHC" = 1; then |
| 16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 |
| 16632 | $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} |
| 16633 | DX_FLAG_chm=0 |
| 16634 | |
| 16635 | fi |
| 16636 | |
| 16637 | : |
| 16638 | fi |
| 16639 | if test "$DX_FLAG_chm" = 1; then |
| 16640 | DX_COND_chm_TRUE= |
| 16641 | DX_COND_chm_FALSE='#' |
| 16642 | else |
| 16643 | DX_COND_chm_TRUE='#' |
| 16644 | DX_COND_chm_FALSE= |
| 16645 | fi |
| 16646 | |
| 16647 | if test "$DX_FLAG_chm" = 1; then |
| 16648 | DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" |
| 16649 | |
| 16650 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 16651 | |
| 16652 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" |
| 16653 | |
| 16654 | : |
| 16655 | else |
| 16656 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" |
| 16657 | |
| 16658 | : |
| 16659 | fi |
| 16660 | |
| 16661 | |
| 16662 | # Seperate CHI file generation. |
| 16663 | |
| 16664 | |
| 16665 | |
| 16666 | # Check whether --enable-doxygen-chi was given. |
| 16667 | if test "${enable_doxygen_chi+set}" = set; then : |
| 16668 | enableval=$enable_doxygen_chi; |
| 16669 | case "$enableval" in |
| 16670 | #( |
| 16671 | y|Y|yes|Yes|YES) |
| 16672 | DX_FLAG_chi=1 |
| 16673 | |
| 16674 | |
| 16675 | test "$DX_FLAG_chm" = "1" \ |
| 16676 | || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 |
| 16677 | |
| 16678 | ;; #( |
| 16679 | n|N|no|No|NO) |
| 16680 | DX_FLAG_chi=0 |
| 16681 | |
| 16682 | ;; #( |
| 16683 | *) |
| 16684 | as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 |
| 16685 | ;; |
| 16686 | esac |
| 16687 | |
| 16688 | else |
| 16689 | |
| 16690 | DX_FLAG_chi=0 |
| 16691 | |
| 16692 | |
| 16693 | test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 |
| 16694 | |
| 16695 | |
| 16696 | |
| 16697 | fi |
| 16698 | |
| 16699 | if test "$DX_FLAG_chi" = 1; then |
| 16700 | |
| 16701 | : |
| 16702 | fi |
| 16703 | if test "$DX_FLAG_chi" = 1; then |
| 16704 | DX_COND_chi_TRUE= |
| 16705 | DX_COND_chi_FALSE='#' |
| 16706 | else |
| 16707 | DX_COND_chi_TRUE='#' |
| 16708 | DX_COND_chi_FALSE= |
| 16709 | fi |
| 16710 | |
| 16711 | if test "$DX_FLAG_chi" = 1; then |
| 16712 | DX_ENV="$DX_ENV GENERATE_CHI='YES'" |
| 16713 | |
| 16714 | : |
| 16715 | else |
| 16716 | DX_ENV="$DX_ENV GENERATE_CHI='NO'" |
| 16717 | |
| 16718 | : |
| 16719 | fi |
| 16720 | |
| 16721 | |
| 16722 | # Plain HTML pages generation: |
| 16723 | |
| 16724 | |
| 16725 | |
| 16726 | # Check whether --enable-doxygen-html was given. |
| 16727 | if test "${enable_doxygen_html+set}" = set; then : |
| 16728 | enableval=$enable_doxygen_html; |
| 16729 | case "$enableval" in |
| 16730 | #( |
| 16731 | y|Y|yes|Yes|YES) |
| 16732 | DX_FLAG_html=1 |
| 16733 | |
| 16734 | |
| 16735 | test "$DX_FLAG_doc" = "1" \ |
| 16736 | || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 |
| 16737 | |
| 16738 | test "$DX_FLAG_chm" = "0" \ |
| 16739 | || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 |
| 16740 | |
| 16741 | ;; #( |
| 16742 | n|N|no|No|NO) |
| 16743 | DX_FLAG_html=0 |
| 16744 | |
| 16745 | ;; #( |
| 16746 | *) |
| 16747 | as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 |
| 16748 | ;; |
| 16749 | esac |
| 16750 | |
| 16751 | else |
| 16752 | |
| 16753 | DX_FLAG_html=1 |
| 16754 | |
| 16755 | |
| 16756 | test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 |
| 16757 | |
| 16758 | |
| 16759 | test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 |
| 16760 | |
| 16761 | |
| 16762 | |
| 16763 | fi |
| 16764 | |
| 16765 | if test "$DX_FLAG_html" = 1; then |
| 16766 | |
| 16767 | : |
| 16768 | fi |
| 16769 | if test "$DX_FLAG_html" = 1; then |
| 16770 | DX_COND_html_TRUE= |
| 16771 | DX_COND_html_FALSE='#' |
| 16772 | else |
| 16773 | DX_COND_html_TRUE='#' |
| 16774 | DX_COND_html_FALSE= |
| 16775 | fi |
| 16776 | |
| 16777 | if test "$DX_FLAG_html" = 1; then |
| 16778 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 16779 | |
| 16780 | : |
| 16781 | else |
| 16782 | test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" |
| 16783 | |
| 16784 | : |
| 16785 | fi |
| 16786 | |
| 16787 | |
| 16788 | # PostScript file generation: |
| 16789 | |
| 16790 | |
| 16791 | |
| 16792 | # Check whether --enable-doxygen-ps was given. |
| 16793 | if test "${enable_doxygen_ps+set}" = set; then : |
| 16794 | enableval=$enable_doxygen_ps; |
| 16795 | case "$enableval" in |
| 16796 | #( |
| 16797 | y|Y|yes|Yes|YES) |
| 16798 | DX_FLAG_ps=1 |
| 16799 | |
| 16800 | |
| 16801 | test "$DX_FLAG_doc" = "1" \ |
| 16802 | || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 |
| 16803 | |
| 16804 | ;; #( |
| 16805 | n|N|no|No|NO) |
| 16806 | DX_FLAG_ps=0 |
| 16807 | |
| 16808 | ;; #( |
| 16809 | *) |
| 16810 | as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 |
| 16811 | ;; |
| 16812 | esac |
| 16813 | |
| 16814 | else |
| 16815 | |
| 16816 | DX_FLAG_ps=0 |
| 16817 | |
| 16818 | |
| 16819 | test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 |
| 16820 | |
| 16821 | |
| 16822 | |
| 16823 | fi |
| 16824 | |
| 16825 | if test "$DX_FLAG_ps" = 1; then |
| 16826 | |
| 16827 | if test -n "$ac_tool_prefix"; then |
| 16828 | # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. |
| 16829 | set dummy ${ac_tool_prefix}latex; ac_word=$2 |
| 16830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16831 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16832 | if ${ac_cv_path_DX_LATEX+:} false; then : |
| 16833 | $as_echo_n "(cached) " >&6 |
| 16834 | else |
| 16835 | case $DX_LATEX in |
| 16836 | [\\/]* | ?:[\\/]*) |
| 16837 | ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. |
| 16838 | ;; |
| 16839 | *) |
| 16840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16841 | for as_dir in $PATH |
| 16842 | do |
| 16843 | IFS=$as_save_IFS |
| 16844 | test -z "$as_dir" && as_dir=. |
| 16845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16847 | ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 16848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16849 | break 2 |
| 16850 | fi |
| 16851 | done |
| 16852 | done |
| 16853 | IFS=$as_save_IFS |
| 16854 | |
| 16855 | ;; |
| 16856 | esac |
| 16857 | fi |
| 16858 | DX_LATEX=$ac_cv_path_DX_LATEX |
| 16859 | if test -n "$DX_LATEX"; then |
| 16860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 |
| 16861 | $as_echo "$DX_LATEX" >&6; } |
| 16862 | else |
| 16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16864 | $as_echo "no" >&6; } |
| 16865 | fi |
| 16866 | |
| 16867 | |
| 16868 | fi |
| 16869 | if test -z "$ac_cv_path_DX_LATEX"; then |
| 16870 | ac_pt_DX_LATEX=$DX_LATEX |
| 16871 | # Extract the first word of "latex", so it can be a program name with args. |
| 16872 | set dummy latex; ac_word=$2 |
| 16873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16874 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16875 | if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : |
| 16876 | $as_echo_n "(cached) " >&6 |
| 16877 | else |
| 16878 | case $ac_pt_DX_LATEX in |
| 16879 | [\\/]* | ?:[\\/]*) |
| 16880 | ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. |
| 16881 | ;; |
| 16882 | *) |
| 16883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16884 | for as_dir in $PATH |
| 16885 | do |
| 16886 | IFS=$as_save_IFS |
| 16887 | test -z "$as_dir" && as_dir=. |
| 16888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16890 | ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 16891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16892 | break 2 |
| 16893 | fi |
| 16894 | done |
| 16895 | done |
| 16896 | IFS=$as_save_IFS |
| 16897 | |
| 16898 | ;; |
| 16899 | esac |
| 16900 | fi |
| 16901 | ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX |
| 16902 | if test -n "$ac_pt_DX_LATEX"; then |
| 16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 |
| 16904 | $as_echo "$ac_pt_DX_LATEX" >&6; } |
| 16905 | else |
| 16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16907 | $as_echo "no" >&6; } |
| 16908 | fi |
| 16909 | |
| 16910 | if test "x$ac_pt_DX_LATEX" = x; then |
| 16911 | DX_LATEX="" |
| 16912 | else |
| 16913 | case $cross_compiling:$ac_tool_warned in |
| 16914 | yes:) |
| 16915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16916 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16917 | ac_tool_warned=yes ;; |
| 16918 | esac |
| 16919 | DX_LATEX=$ac_pt_DX_LATEX |
| 16920 | fi |
| 16921 | else |
| 16922 | DX_LATEX="$ac_cv_path_DX_LATEX" |
| 16923 | fi |
| 16924 | |
| 16925 | if test "$DX_FLAG_ps$DX_LATEX" = 1; then |
| 16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 |
| 16927 | $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} |
| 16928 | DX_FLAG_ps=0 |
| 16929 | |
| 16930 | fi |
| 16931 | |
| 16932 | |
| 16933 | if test -n "$ac_tool_prefix"; then |
| 16934 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 16935 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 16936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16937 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16938 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 16939 | $as_echo_n "(cached) " >&6 |
| 16940 | else |
| 16941 | case $DX_MAKEINDEX in |
| 16942 | [\\/]* | ?:[\\/]*) |
| 16943 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 16944 | ;; |
| 16945 | *) |
| 16946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16947 | for as_dir in $PATH |
| 16948 | do |
| 16949 | IFS=$as_save_IFS |
| 16950 | test -z "$as_dir" && as_dir=. |
| 16951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16953 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 16954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16955 | break 2 |
| 16956 | fi |
| 16957 | done |
| 16958 | done |
| 16959 | IFS=$as_save_IFS |
| 16960 | |
| 16961 | ;; |
| 16962 | esac |
| 16963 | fi |
| 16964 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 16965 | if test -n "$DX_MAKEINDEX"; then |
| 16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 16967 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 16968 | else |
| 16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16970 | $as_echo "no" >&6; } |
| 16971 | fi |
| 16972 | |
| 16973 | |
| 16974 | fi |
| 16975 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 16976 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 16977 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 16978 | set dummy makeindex; ac_word=$2 |
| 16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16980 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16981 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 16982 | $as_echo_n "(cached) " >&6 |
| 16983 | else |
| 16984 | case $ac_pt_DX_MAKEINDEX in |
| 16985 | [\\/]* | ?:[\\/]*) |
| 16986 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 16987 | ;; |
| 16988 | *) |
| 16989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16990 | for as_dir in $PATH |
| 16991 | do |
| 16992 | IFS=$as_save_IFS |
| 16993 | test -z "$as_dir" && as_dir=. |
| 16994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16996 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 16997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16998 | break 2 |
| 16999 | fi |
| 17000 | done |
| 17001 | done |
| 17002 | IFS=$as_save_IFS |
| 17003 | |
| 17004 | ;; |
| 17005 | esac |
| 17006 | fi |
| 17007 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 17008 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 17009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 17010 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 17011 | else |
| 17012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17013 | $as_echo "no" >&6; } |
| 17014 | fi |
| 17015 | |
| 17016 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 17017 | DX_MAKEINDEX="" |
| 17018 | else |
| 17019 | case $cross_compiling:$ac_tool_warned in |
| 17020 | yes:) |
| 17021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17023 | ac_tool_warned=yes ;; |
| 17024 | esac |
| 17025 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 17026 | fi |
| 17027 | else |
| 17028 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 17029 | fi |
| 17030 | |
| 17031 | if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then |
| 17032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 |
| 17033 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} |
| 17034 | DX_FLAG_ps=0 |
| 17035 | |
| 17036 | fi |
| 17037 | |
| 17038 | |
| 17039 | if test -n "$ac_tool_prefix"; then |
| 17040 | # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. |
| 17041 | set dummy ${ac_tool_prefix}dvips; ac_word=$2 |
| 17042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17043 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17044 | if ${ac_cv_path_DX_DVIPS+:} false; then : |
| 17045 | $as_echo_n "(cached) " >&6 |
| 17046 | else |
| 17047 | case $DX_DVIPS in |
| 17048 | [\\/]* | ?:[\\/]*) |
| 17049 | ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. |
| 17050 | ;; |
| 17051 | *) |
| 17052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17053 | for as_dir in $PATH |
| 17054 | do |
| 17055 | IFS=$as_save_IFS |
| 17056 | test -z "$as_dir" && as_dir=. |
| 17057 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17059 | ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 17060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17061 | break 2 |
| 17062 | fi |
| 17063 | done |
| 17064 | done |
| 17065 | IFS=$as_save_IFS |
| 17066 | |
| 17067 | ;; |
| 17068 | esac |
| 17069 | fi |
| 17070 | DX_DVIPS=$ac_cv_path_DX_DVIPS |
| 17071 | if test -n "$DX_DVIPS"; then |
| 17072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 |
| 17073 | $as_echo "$DX_DVIPS" >&6; } |
| 17074 | else |
| 17075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17076 | $as_echo "no" >&6; } |
| 17077 | fi |
| 17078 | |
| 17079 | |
| 17080 | fi |
| 17081 | if test -z "$ac_cv_path_DX_DVIPS"; then |
| 17082 | ac_pt_DX_DVIPS=$DX_DVIPS |
| 17083 | # Extract the first word of "dvips", so it can be a program name with args. |
| 17084 | set dummy dvips; ac_word=$2 |
| 17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17086 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17087 | if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : |
| 17088 | $as_echo_n "(cached) " >&6 |
| 17089 | else |
| 17090 | case $ac_pt_DX_DVIPS in |
| 17091 | [\\/]* | ?:[\\/]*) |
| 17092 | ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. |
| 17093 | ;; |
| 17094 | *) |
| 17095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17096 | for as_dir in $PATH |
| 17097 | do |
| 17098 | IFS=$as_save_IFS |
| 17099 | test -z "$as_dir" && as_dir=. |
| 17100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17102 | ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 17103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17104 | break 2 |
| 17105 | fi |
| 17106 | done |
| 17107 | done |
| 17108 | IFS=$as_save_IFS |
| 17109 | |
| 17110 | ;; |
| 17111 | esac |
| 17112 | fi |
| 17113 | ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS |
| 17114 | if test -n "$ac_pt_DX_DVIPS"; then |
| 17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 |
| 17116 | $as_echo "$ac_pt_DX_DVIPS" >&6; } |
| 17117 | else |
| 17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17119 | $as_echo "no" >&6; } |
| 17120 | fi |
| 17121 | |
| 17122 | if test "x$ac_pt_DX_DVIPS" = x; then |
| 17123 | DX_DVIPS="" |
| 17124 | else |
| 17125 | case $cross_compiling:$ac_tool_warned in |
| 17126 | yes:) |
| 17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17129 | ac_tool_warned=yes ;; |
| 17130 | esac |
| 17131 | DX_DVIPS=$ac_pt_DX_DVIPS |
| 17132 | fi |
| 17133 | else |
| 17134 | DX_DVIPS="$ac_cv_path_DX_DVIPS" |
| 17135 | fi |
| 17136 | |
| 17137 | if test "$DX_FLAG_ps$DX_DVIPS" = 1; then |
| 17138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 |
| 17139 | $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} |
| 17140 | DX_FLAG_ps=0 |
| 17141 | |
| 17142 | fi |
| 17143 | |
| 17144 | |
| 17145 | if test -n "$ac_tool_prefix"; then |
| 17146 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 17147 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 17148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17149 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17150 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 17151 | $as_echo_n "(cached) " >&6 |
| 17152 | else |
| 17153 | case $DX_EGREP in |
| 17154 | [\\/]* | ?:[\\/]*) |
| 17155 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 17156 | ;; |
| 17157 | *) |
| 17158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17159 | for as_dir in $PATH |
| 17160 | do |
| 17161 | IFS=$as_save_IFS |
| 17162 | test -z "$as_dir" && as_dir=. |
| 17163 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17165 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 17166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17167 | break 2 |
| 17168 | fi |
| 17169 | done |
| 17170 | done |
| 17171 | IFS=$as_save_IFS |
| 17172 | |
| 17173 | ;; |
| 17174 | esac |
| 17175 | fi |
| 17176 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 17177 | if test -n "$DX_EGREP"; then |
| 17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 17179 | $as_echo "$DX_EGREP" >&6; } |
| 17180 | else |
| 17181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17182 | $as_echo "no" >&6; } |
| 17183 | fi |
| 17184 | |
| 17185 | |
| 17186 | fi |
| 17187 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 17188 | ac_pt_DX_EGREP=$DX_EGREP |
| 17189 | # Extract the first word of "egrep", so it can be a program name with args. |
| 17190 | set dummy egrep; ac_word=$2 |
| 17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17192 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17193 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 17194 | $as_echo_n "(cached) " >&6 |
| 17195 | else |
| 17196 | case $ac_pt_DX_EGREP in |
| 17197 | [\\/]* | ?:[\\/]*) |
| 17198 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 17199 | ;; |
| 17200 | *) |
| 17201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17202 | for as_dir in $PATH |
| 17203 | do |
| 17204 | IFS=$as_save_IFS |
| 17205 | test -z "$as_dir" && as_dir=. |
| 17206 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17208 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 17209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17210 | break 2 |
| 17211 | fi |
| 17212 | done |
| 17213 | done |
| 17214 | IFS=$as_save_IFS |
| 17215 | |
| 17216 | ;; |
| 17217 | esac |
| 17218 | fi |
| 17219 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 17220 | if test -n "$ac_pt_DX_EGREP"; then |
| 17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 17222 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 17223 | else |
| 17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17225 | $as_echo "no" >&6; } |
| 17226 | fi |
| 17227 | |
| 17228 | if test "x$ac_pt_DX_EGREP" = x; then |
| 17229 | DX_EGREP="" |
| 17230 | else |
| 17231 | case $cross_compiling:$ac_tool_warned in |
| 17232 | yes:) |
| 17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17235 | ac_tool_warned=yes ;; |
| 17236 | esac |
| 17237 | DX_EGREP=$ac_pt_DX_EGREP |
| 17238 | fi |
| 17239 | else |
| 17240 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 17241 | fi |
| 17242 | |
| 17243 | if test "$DX_FLAG_ps$DX_EGREP" = 1; then |
| 17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 |
| 17245 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} |
| 17246 | DX_FLAG_ps=0 |
| 17247 | |
| 17248 | fi |
| 17249 | |
| 17250 | : |
| 17251 | fi |
| 17252 | if test "$DX_FLAG_ps" = 1; then |
| 17253 | DX_COND_ps_TRUE= |
| 17254 | DX_COND_ps_FALSE='#' |
| 17255 | else |
| 17256 | DX_COND_ps_TRUE='#' |
| 17257 | DX_COND_ps_FALSE= |
| 17258 | fi |
| 17259 | |
| 17260 | if test "$DX_FLAG_ps" = 1; then |
| 17261 | |
| 17262 | : |
| 17263 | else |
| 17264 | |
| 17265 | : |
| 17266 | fi |
| 17267 | |
| 17268 | |
| 17269 | # PDF file generation: |
| 17270 | |
| 17271 | |
| 17272 | |
| 17273 | # Check whether --enable-doxygen-pdf was given. |
| 17274 | if test "${enable_doxygen_pdf+set}" = set; then : |
| 17275 | enableval=$enable_doxygen_pdf; |
| 17276 | case "$enableval" in |
| 17277 | #( |
| 17278 | y|Y|yes|Yes|YES) |
| 17279 | DX_FLAG_pdf=1 |
| 17280 | |
| 17281 | |
| 17282 | test "$DX_FLAG_doc" = "1" \ |
| 17283 | || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 |
| 17284 | |
| 17285 | ;; #( |
| 17286 | n|N|no|No|NO) |
| 17287 | DX_FLAG_pdf=0 |
| 17288 | |
| 17289 | ;; #( |
| 17290 | *) |
| 17291 | as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 |
| 17292 | ;; |
| 17293 | esac |
| 17294 | |
| 17295 | else |
| 17296 | |
| 17297 | DX_FLAG_pdf=0 |
| 17298 | |
| 17299 | |
| 17300 | test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 |
| 17301 | |
| 17302 | |
| 17303 | |
| 17304 | fi |
| 17305 | |
| 17306 | if test "$DX_FLAG_pdf" = 1; then |
| 17307 | |
| 17308 | if test -n "$ac_tool_prefix"; then |
| 17309 | # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. |
| 17310 | set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 |
| 17311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17312 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17313 | if ${ac_cv_path_DX_PDFLATEX+:} false; then : |
| 17314 | $as_echo_n "(cached) " >&6 |
| 17315 | else |
| 17316 | case $DX_PDFLATEX in |
| 17317 | [\\/]* | ?:[\\/]*) |
| 17318 | ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. |
| 17319 | ;; |
| 17320 | *) |
| 17321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17322 | for as_dir in $PATH |
| 17323 | do |
| 17324 | IFS=$as_save_IFS |
| 17325 | test -z "$as_dir" && as_dir=. |
| 17326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17328 | ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17330 | break 2 |
| 17331 | fi |
| 17332 | done |
| 17333 | done |
| 17334 | IFS=$as_save_IFS |
| 17335 | |
| 17336 | ;; |
| 17337 | esac |
| 17338 | fi |
| 17339 | DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX |
| 17340 | if test -n "$DX_PDFLATEX"; then |
| 17341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 |
| 17342 | $as_echo "$DX_PDFLATEX" >&6; } |
| 17343 | else |
| 17344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17345 | $as_echo "no" >&6; } |
| 17346 | fi |
| 17347 | |
| 17348 | |
| 17349 | fi |
| 17350 | if test -z "$ac_cv_path_DX_PDFLATEX"; then |
| 17351 | ac_pt_DX_PDFLATEX=$DX_PDFLATEX |
| 17352 | # Extract the first word of "pdflatex", so it can be a program name with args. |
| 17353 | set dummy pdflatex; ac_word=$2 |
| 17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17355 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17356 | if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : |
| 17357 | $as_echo_n "(cached) " >&6 |
| 17358 | else |
| 17359 | case $ac_pt_DX_PDFLATEX in |
| 17360 | [\\/]* | ?:[\\/]*) |
| 17361 | ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. |
| 17362 | ;; |
| 17363 | *) |
| 17364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17365 | for as_dir in $PATH |
| 17366 | do |
| 17367 | IFS=$as_save_IFS |
| 17368 | test -z "$as_dir" && as_dir=. |
| 17369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17371 | ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17373 | break 2 |
| 17374 | fi |
| 17375 | done |
| 17376 | done |
| 17377 | IFS=$as_save_IFS |
| 17378 | |
| 17379 | ;; |
| 17380 | esac |
| 17381 | fi |
| 17382 | ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX |
| 17383 | if test -n "$ac_pt_DX_PDFLATEX"; then |
| 17384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 |
| 17385 | $as_echo "$ac_pt_DX_PDFLATEX" >&6; } |
| 17386 | else |
| 17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17388 | $as_echo "no" >&6; } |
| 17389 | fi |
| 17390 | |
| 17391 | if test "x$ac_pt_DX_PDFLATEX" = x; then |
| 17392 | DX_PDFLATEX="" |
| 17393 | else |
| 17394 | case $cross_compiling:$ac_tool_warned in |
| 17395 | yes:) |
| 17396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17398 | ac_tool_warned=yes ;; |
| 17399 | esac |
| 17400 | DX_PDFLATEX=$ac_pt_DX_PDFLATEX |
| 17401 | fi |
| 17402 | else |
| 17403 | DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" |
| 17404 | fi |
| 17405 | |
| 17406 | if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then |
| 17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 |
| 17408 | $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} |
| 17409 | DX_FLAG_pdf=0 |
| 17410 | |
| 17411 | fi |
| 17412 | |
| 17413 | |
| 17414 | if test -n "$ac_tool_prefix"; then |
| 17415 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 17416 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17418 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17419 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 17420 | $as_echo_n "(cached) " >&6 |
| 17421 | else |
| 17422 | case $DX_MAKEINDEX in |
| 17423 | [\\/]* | ?:[\\/]*) |
| 17424 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 17425 | ;; |
| 17426 | *) |
| 17427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17428 | for as_dir in $PATH |
| 17429 | do |
| 17430 | IFS=$as_save_IFS |
| 17431 | test -z "$as_dir" && as_dir=. |
| 17432 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17434 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17436 | break 2 |
| 17437 | fi |
| 17438 | done |
| 17439 | done |
| 17440 | IFS=$as_save_IFS |
| 17441 | |
| 17442 | ;; |
| 17443 | esac |
| 17444 | fi |
| 17445 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 17446 | if test -n "$DX_MAKEINDEX"; then |
| 17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 17448 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 17449 | else |
| 17450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17451 | $as_echo "no" >&6; } |
| 17452 | fi |
| 17453 | |
| 17454 | |
| 17455 | fi |
| 17456 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 17457 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 17458 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 17459 | set dummy makeindex; ac_word=$2 |
| 17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17461 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17462 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 17463 | $as_echo_n "(cached) " >&6 |
| 17464 | else |
| 17465 | case $ac_pt_DX_MAKEINDEX in |
| 17466 | [\\/]* | ?:[\\/]*) |
| 17467 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 17468 | ;; |
| 17469 | *) |
| 17470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17471 | for as_dir in $PATH |
| 17472 | do |
| 17473 | IFS=$as_save_IFS |
| 17474 | test -z "$as_dir" && as_dir=. |
| 17475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17477 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17479 | break 2 |
| 17480 | fi |
| 17481 | done |
| 17482 | done |
| 17483 | IFS=$as_save_IFS |
| 17484 | |
| 17485 | ;; |
| 17486 | esac |
| 17487 | fi |
| 17488 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 17489 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 17490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 17491 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 17492 | else |
| 17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17494 | $as_echo "no" >&6; } |
| 17495 | fi |
| 17496 | |
| 17497 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 17498 | DX_MAKEINDEX="" |
| 17499 | else |
| 17500 | case $cross_compiling:$ac_tool_warned in |
| 17501 | yes:) |
| 17502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17504 | ac_tool_warned=yes ;; |
| 17505 | esac |
| 17506 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 17507 | fi |
| 17508 | else |
| 17509 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 17510 | fi |
| 17511 | |
| 17512 | if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then |
| 17513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 |
| 17514 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} |
| 17515 | DX_FLAG_pdf=0 |
| 17516 | |
| 17517 | fi |
| 17518 | |
| 17519 | |
| 17520 | if test -n "$ac_tool_prefix"; then |
| 17521 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 17522 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17524 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17525 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 17526 | $as_echo_n "(cached) " >&6 |
| 17527 | else |
| 17528 | case $DX_EGREP in |
| 17529 | [\\/]* | ?:[\\/]*) |
| 17530 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 17531 | ;; |
| 17532 | *) |
| 17533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17534 | for as_dir in $PATH |
| 17535 | do |
| 17536 | IFS=$as_save_IFS |
| 17537 | test -z "$as_dir" && as_dir=. |
| 17538 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17540 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 17541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17542 | break 2 |
| 17543 | fi |
| 17544 | done |
| 17545 | done |
| 17546 | IFS=$as_save_IFS |
| 17547 | |
| 17548 | ;; |
| 17549 | esac |
| 17550 | fi |
| 17551 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 17552 | if test -n "$DX_EGREP"; then |
| 17553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 17554 | $as_echo "$DX_EGREP" >&6; } |
| 17555 | else |
| 17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17557 | $as_echo "no" >&6; } |
| 17558 | fi |
| 17559 | |
| 17560 | |
| 17561 | fi |
| 17562 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 17563 | ac_pt_DX_EGREP=$DX_EGREP |
| 17564 | # Extract the first word of "egrep", so it can be a program name with args. |
| 17565 | set dummy egrep; ac_word=$2 |
| 17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17567 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17568 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 17569 | $as_echo_n "(cached) " >&6 |
| 17570 | else |
| 17571 | case $ac_pt_DX_EGREP in |
| 17572 | [\\/]* | ?:[\\/]*) |
| 17573 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 17574 | ;; |
| 17575 | *) |
| 17576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17577 | for as_dir in $PATH |
| 17578 | do |
| 17579 | IFS=$as_save_IFS |
| 17580 | test -z "$as_dir" && as_dir=. |
| 17581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17583 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 17584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17585 | break 2 |
| 17586 | fi |
| 17587 | done |
| 17588 | done |
| 17589 | IFS=$as_save_IFS |
| 17590 | |
| 17591 | ;; |
| 17592 | esac |
| 17593 | fi |
| 17594 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 17595 | if test -n "$ac_pt_DX_EGREP"; then |
| 17596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 17597 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 17598 | else |
| 17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17600 | $as_echo "no" >&6; } |
| 17601 | fi |
| 17602 | |
| 17603 | if test "x$ac_pt_DX_EGREP" = x; then |
| 17604 | DX_EGREP="" |
| 17605 | else |
| 17606 | case $cross_compiling:$ac_tool_warned in |
| 17607 | yes:) |
| 17608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17609 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17610 | ac_tool_warned=yes ;; |
| 17611 | esac |
| 17612 | DX_EGREP=$ac_pt_DX_EGREP |
| 17613 | fi |
| 17614 | else |
| 17615 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 17616 | fi |
| 17617 | |
| 17618 | if test "$DX_FLAG_pdf$DX_EGREP" = 1; then |
| 17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 |
| 17620 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} |
| 17621 | DX_FLAG_pdf=0 |
| 17622 | |
| 17623 | fi |
| 17624 | |
| 17625 | : |
| 17626 | fi |
| 17627 | if test "$DX_FLAG_pdf" = 1; then |
| 17628 | DX_COND_pdf_TRUE= |
| 17629 | DX_COND_pdf_FALSE='#' |
| 17630 | else |
| 17631 | DX_COND_pdf_TRUE='#' |
| 17632 | DX_COND_pdf_FALSE= |
| 17633 | fi |
| 17634 | |
| 17635 | if test "$DX_FLAG_pdf" = 1; then |
| 17636 | |
| 17637 | : |
| 17638 | else |
| 17639 | |
| 17640 | : |
| 17641 | fi |
| 17642 | |
| 17643 | |
| 17644 | # LaTeX generation for PS and/or PDF: |
| 17645 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 17646 | DX_COND_latex_TRUE= |
| 17647 | DX_COND_latex_FALSE='#' |
| 17648 | else |
| 17649 | DX_COND_latex_TRUE='#' |
| 17650 | DX_COND_latex_FALSE= |
| 17651 | fi |
| 17652 | |
| 17653 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 17654 | DX_ENV="$DX_ENV GENERATE_LATEX='YES'" |
| 17655 | |
| 17656 | else |
| 17657 | DX_ENV="$DX_ENV GENERATE_LATEX='NO'" |
| 17658 | |
| 17659 | fi |
| 17660 | |
| 17661 | # Paper size for PS and/or PDF: |
| 17662 | |
| 17663 | case "$DOXYGEN_PAPER_SIZE" in |
| 17664 | #( |
| 17665 | "") |
| 17666 | DOXYGEN_PAPER_SIZE="" |
| 17667 | |
| 17668 | ;; #( |
| 17669 | a4wide|a4|letter|legal|executive) |
| 17670 | DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" |
| 17671 | |
| 17672 | ;; #( |
| 17673 | *) |
| 17674 | as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 |
| 17675 | ;; |
| 17676 | esac |
| 17677 | |
| 17678 | #For debugging: |
| 17679 | #echo DX_FLAG_doc=$DX_FLAG_doc |
| 17680 | #echo DX_FLAG_dot=$DX_FLAG_dot |
| 17681 | #echo DX_FLAG_man=$DX_FLAG_man |
| 17682 | #echo DX_FLAG_html=$DX_FLAG_html |
| 17683 | #echo DX_FLAG_chm=$DX_FLAG_chm |
| 17684 | #echo DX_FLAG_chi=$DX_FLAG_chi |
| 17685 | #echo DX_FLAG_rtf=$DX_FLAG_rtf |
| 17686 | #echo DX_FLAG_xml=$DX_FLAG_xml |
| 17687 | #echo DX_FLAG_pdf=$DX_FLAG_pdf |
| 17688 | #echo DX_FLAG_ps=$DX_FLAG_ps |
| 17689 | #echo DX_ENV=$DX_ENV |
| 17690 | |
| 17691 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 17692 | ac_config_files="$ac_config_files Makefile" |
| 17693 | |
| 17694 | cat >confcache <<\_ACEOF |
| 17695 | # This file is a shell script that caches the results of configure |
| 17696 | # tests run on this system so they can be shared between configure |
| 17697 | # scripts and configure runs, see configure's option --config-cache. |
| 17698 | # It is not useful on other systems. If it contains results you don't |
| 17699 | # want to keep, you may remove or edit it. |
| 17700 | # |
| 17701 | # config.status only pays attention to the cache file if you give it |
| 17702 | # the --recheck option to rerun configure. |
| 17703 | # |
| 17704 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17705 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17706 | # following values. |
| 17707 | |
| 17708 | _ACEOF |
| 17709 | |
| 17710 | # The following way of writing the cache mishandles newlines in values, |
| 17711 | # but we know of no workaround that is simple, portable, and efficient. |
| 17712 | # So, we kill variables containing newlines. |
| 17713 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17714 | # and sets the high bit in the cache file unless we assign to the vars. |
| 17715 | ( |
| 17716 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17717 | eval ac_val=\$$ac_var |
| 17718 | case $ac_val in #( |
| 17719 | *${as_nl}*) |
| 17720 | case $ac_var in #( |
| 17721 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17722 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 17723 | esac |
| 17724 | case $ac_var in #( |
| 17725 | _ | IFS | as_nl) ;; #( |
| 17726 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17727 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 17728 | esac ;; |
| 17729 | esac |
| 17730 | done |
| 17731 | |
| 17732 | (set) 2>&1 | |
| 17733 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17734 | *${as_nl}ac_space=\ *) |
| 17735 | # `set' does not quote correctly, so add quotes: double-quote |
| 17736 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 17737 | sed -n \ |
| 17738 | "s/'/'\\\\''/g; |
| 17739 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17740 | ;; #( |
| 17741 | *) |
| 17742 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17743 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 17744 | ;; |
| 17745 | esac | |
| 17746 | sort |
| 17747 | ) | |
| 17748 | sed ' |
| 17749 | /^ac_cv_env_/b end |
| 17750 | t clear |
| 17751 | :clear |
| 17752 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17753 | t end |
| 17754 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17755 | :end' >>confcache |
| 17756 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17757 | if test -w "$cache_file"; then |
| 17758 | if test "x$cache_file" != "x/dev/null"; then |
| 17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 17760 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 17761 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 17762 | cat confcache >"$cache_file" |
| 17763 | else |
| 17764 | case $cache_file in #( |
| 17765 | */* | ?:*) |
| 17766 | mv -f confcache "$cache_file"$$ && |
| 17767 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 17768 | *) |
| 17769 | mv -f confcache "$cache_file" ;; |
| 17770 | esac |
| 17771 | fi |
| 17772 | fi |
| 17773 | else |
| 17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 17775 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 17776 | fi |
| 17777 | fi |
| 17778 | rm -f confcache |
| 17779 | |
| 17780 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17781 | # Let make expand exec_prefix. |
| 17782 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17783 | |
| 17784 | DEFS=-DHAVE_CONFIG_H |
| 17785 | |
| 17786 | ac_libobjs= |
| 17787 | ac_ltlibobjs= |
| 17788 | U= |
| 17789 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17790 | # 1. Remove the extension, and $U if already installed. |
| 17791 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 17792 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 17793 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17794 | # will be set to the directory where LIBOBJS objects are built. |
| 17795 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17796 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 17797 | done |
| 17798 | LIBOBJS=$ac_libobjs |
| 17799 | |
| 17800 | LTLIBOBJS=$ac_ltlibobjs |
| 17801 | |
| 17802 | |
| 17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 17804 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 17805 | if test -n "$am_sleep_pid"; then |
| 17806 | # Hide warnings about reused PIDs. |
| 17807 | wait $am_sleep_pid 2>/dev/null |
| 17808 | fi |
| 17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 17810 | $as_echo "done" >&6; } |
| 17811 | if test -n "$EXEEXT"; then |
| 17812 | am__EXEEXT_TRUE= |
| 17813 | am__EXEEXT_FALSE='#' |
| 17814 | else |
| 17815 | am__EXEEXT_TRUE='#' |
| 17816 | am__EXEEXT_FALSE= |
| 17817 | fi |
| 17818 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 17819 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 17820 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 17821 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17822 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 17823 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 17824 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 17825 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17826 | fi |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 17827 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 17828 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 17829 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17830 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 17831 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 17832 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 17833 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17834 | fi |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 17835 | if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then |
| 17836 | as_fn_error $? "conditional \"DX_COND_doc\" was never defined. |
| 17837 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17838 | fi |
| 17839 | if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then |
| 17840 | as_fn_error $? "conditional \"DX_COND_dot\" was never defined. |
| 17841 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17842 | fi |
| 17843 | if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then |
| 17844 | as_fn_error $? "conditional \"DX_COND_man\" was never defined. |
| 17845 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17846 | fi |
| 17847 | if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then |
| 17848 | as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. |
| 17849 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17850 | fi |
| 17851 | if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then |
| 17852 | as_fn_error $? "conditional \"DX_COND_xml\" was never defined. |
| 17853 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17854 | fi |
| 17855 | if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then |
| 17856 | as_fn_error $? "conditional \"DX_COND_chm\" was never defined. |
| 17857 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17858 | fi |
| 17859 | if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then |
| 17860 | as_fn_error $? "conditional \"DX_COND_chi\" was never defined. |
| 17861 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17862 | fi |
| 17863 | if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then |
| 17864 | as_fn_error $? "conditional \"DX_COND_html\" was never defined. |
| 17865 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17866 | fi |
| 17867 | if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then |
| 17868 | as_fn_error $? "conditional \"DX_COND_ps\" was never defined. |
| 17869 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17870 | fi |
| 17871 | if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then |
| 17872 | as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. |
| 17873 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17874 | fi |
| 17875 | if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then |
| 17876 | as_fn_error $? "conditional \"DX_COND_latex\" was never defined. |
| 17877 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17878 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 17879 | |
| 17880 | : "${CONFIG_STATUS=./config.status}" |
| 17881 | ac_write_fail=0 |
| 17882 | ac_clean_files_save=$ac_clean_files |
| 17883 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 17885 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17886 | as_write_fail=0 |
| 17887 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 17888 | #! $SHELL |
| 17889 | # Generated by $as_me. |
| 17890 | # Run this file to recreate the current configuration. |
| 17891 | # Compiler output produced by configure, useful for debugging |
| 17892 | # configure, is in config.log if it exists. |
| 17893 | |
| 17894 | debug=false |
| 17895 | ac_cs_recheck=false |
| 17896 | ac_cs_silent=false |
| 17897 | |
| 17898 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17899 | export SHELL |
| 17900 | _ASEOF |
| 17901 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 17902 | ## -------------------- ## |
| 17903 | ## M4sh Initialization. ## |
| 17904 | ## -------------------- ## |
| 17905 | |
| 17906 | # Be more Bourne compatible |
| 17907 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17908 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 17909 | emulate sh |
| 17910 | NULLCMD=: |
| 17911 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 17912 | # is contrary to our usage. Disable this feature. |
| 17913 | alias -g '${1+"$@"}'='"$@"' |
| 17914 | setopt NO_GLOB_SUBST |
| 17915 | else |
| 17916 | case `(set -o) 2>/dev/null` in #( |
| 17917 | *posix*) : |
| 17918 | set -o posix ;; #( |
| 17919 | *) : |
| 17920 | ;; |
| 17921 | esac |
| 17922 | fi |
| 17923 | |
| 17924 | |
| 17925 | as_nl=' |
| 17926 | ' |
| 17927 | export as_nl |
| 17928 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17929 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17930 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17931 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17932 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 17933 | # but without wasting forks for bash or zsh. |
| 17934 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 17935 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17936 | as_echo='print -r --' |
| 17937 | as_echo_n='print -rn --' |
| 17938 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17939 | as_echo='printf %s\n' |
| 17940 | as_echo_n='printf %s' |
| 17941 | else |
| 17942 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17943 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17944 | as_echo_n='/usr/ucb/echo -n' |
| 17945 | else |
| 17946 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17947 | as_echo_n_body='eval |
| 17948 | arg=$1; |
| 17949 | case $arg in #( |
| 17950 | *"$as_nl"*) |
| 17951 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17952 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17953 | esac; |
| 17954 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17955 | ' |
| 17956 | export as_echo_n_body |
| 17957 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17958 | fi |
| 17959 | export as_echo_body |
| 17960 | as_echo='sh -c $as_echo_body as_echo' |
| 17961 | fi |
| 17962 | |
| 17963 | # The user is always right. |
| 17964 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17965 | PATH_SEPARATOR=: |
| 17966 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17967 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17968 | PATH_SEPARATOR=';' |
| 17969 | } |
| 17970 | fi |
| 17971 | |
| 17972 | |
| 17973 | # IFS |
| 17974 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17975 | # there to prevent editors from complaining about space-tab. |
| 17976 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17977 | # splitting by setting IFS to empty value.) |
| 17978 | IFS=" "" $as_nl" |
| 17979 | |
| 17980 | # Find who we are. Look in the path if we contain no directory separator. |
| 17981 | as_myself= |
| 17982 | case $0 in #(( |
| 17983 | *[\\/]* ) as_myself=$0 ;; |
| 17984 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17985 | for as_dir in $PATH |
| 17986 | do |
| 17987 | IFS=$as_save_IFS |
| 17988 | test -z "$as_dir" && as_dir=. |
| 17989 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17990 | done |
| 17991 | IFS=$as_save_IFS |
| 17992 | |
| 17993 | ;; |
| 17994 | esac |
| 17995 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17996 | # in which case we are not to be found in the path. |
| 17997 | if test "x$as_myself" = x; then |
| 17998 | as_myself=$0 |
| 17999 | fi |
| 18000 | if test ! -f "$as_myself"; then |
| 18001 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18002 | exit 1 |
| 18003 | fi |
| 18004 | |
| 18005 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 18006 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 18007 | # suppresses any "Segmentation fault" message there. '((' could |
| 18008 | # trigger a bug in pdksh 5.2.14. |
| 18009 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 18010 | do eval test x\${$as_var+set} = xset \ |
| 18011 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 18012 | done |
| 18013 | PS1='$ ' |
| 18014 | PS2='> ' |
| 18015 | PS4='+ ' |
| 18016 | |
| 18017 | # NLS nuisances. |
| 18018 | LC_ALL=C |
| 18019 | export LC_ALL |
| 18020 | LANGUAGE=C |
| 18021 | export LANGUAGE |
| 18022 | |
| 18023 | # CDPATH. |
| 18024 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18025 | |
| 18026 | |
| 18027 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 18028 | # ---------------------------------------- |
| 18029 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 18030 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 18031 | # script with STATUS, using 1 if that was 0. |
| 18032 | as_fn_error () |
| 18033 | { |
| 18034 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 18035 | if test "$4"; then |
| 18036 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 18037 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 18038 | fi |
| 18039 | $as_echo "$as_me: error: $2" >&2 |
| 18040 | as_fn_exit $as_status |
| 18041 | } # as_fn_error |
| 18042 | |
| 18043 | |
| 18044 | # as_fn_set_status STATUS |
| 18045 | # ----------------------- |
| 18046 | # Set $? to STATUS, without forking. |
| 18047 | as_fn_set_status () |
| 18048 | { |
| 18049 | return $1 |
| 18050 | } # as_fn_set_status |
| 18051 | |
| 18052 | # as_fn_exit STATUS |
| 18053 | # ----------------- |
| 18054 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18055 | as_fn_exit () |
| 18056 | { |
| 18057 | set +e |
| 18058 | as_fn_set_status $1 |
| 18059 | exit $1 |
| 18060 | } # as_fn_exit |
| 18061 | |
| 18062 | # as_fn_unset VAR |
| 18063 | # --------------- |
| 18064 | # Portably unset VAR. |
| 18065 | as_fn_unset () |
| 18066 | { |
| 18067 | { eval $1=; unset $1;} |
| 18068 | } |
| 18069 | as_unset=as_fn_unset |
| 18070 | # as_fn_append VAR VALUE |
| 18071 | # ---------------------- |
| 18072 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18073 | # advantage of any shell optimizations that allow amortized linear growth over |
| 18074 | # repeated appends, instead of the typical quadratic growth present in naive |
| 18075 | # implementations. |
| 18076 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 18077 | eval 'as_fn_append () |
| 18078 | { |
| 18079 | eval $1+=\$2 |
| 18080 | }' |
| 18081 | else |
| 18082 | as_fn_append () |
| 18083 | { |
| 18084 | eval $1=\$$1\$2 |
| 18085 | } |
| 18086 | fi # as_fn_append |
| 18087 | |
| 18088 | # as_fn_arith ARG... |
| 18089 | # ------------------ |
| 18090 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18091 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18092 | # must be portable across $(()) and expr. |
| 18093 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 18094 | eval 'as_fn_arith () |
| 18095 | { |
| 18096 | as_val=$(( $* )) |
| 18097 | }' |
| 18098 | else |
| 18099 | as_fn_arith () |
| 18100 | { |
| 18101 | as_val=`expr "$@" || test $? -eq 1` |
| 18102 | } |
| 18103 | fi # as_fn_arith |
| 18104 | |
| 18105 | |
| 18106 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18107 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18108 | as_expr=expr |
| 18109 | else |
| 18110 | as_expr=false |
| 18111 | fi |
| 18112 | |
| 18113 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18114 | as_basename=basename |
| 18115 | else |
| 18116 | as_basename=false |
| 18117 | fi |
| 18118 | |
| 18119 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18120 | as_dirname=dirname |
| 18121 | else |
| 18122 | as_dirname=false |
| 18123 | fi |
| 18124 | |
| 18125 | as_me=`$as_basename -- "$0" || |
| 18126 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18127 | X"$0" : 'X\(//\)$' \| \ |
| 18128 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18129 | $as_echo X/"$0" | |
| 18130 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18131 | s//\1/ |
| 18132 | q |
| 18133 | } |
| 18134 | /^X\/\(\/\/\)$/{ |
| 18135 | s//\1/ |
| 18136 | q |
| 18137 | } |
| 18138 | /^X\/\(\/\).*/{ |
| 18139 | s//\1/ |
| 18140 | q |
| 18141 | } |
| 18142 | s/.*/./; q'` |
| 18143 | |
| 18144 | # Avoid depending upon Character Ranges. |
| 18145 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18146 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18147 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18148 | as_cr_digits='0123456789' |
| 18149 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18150 | |
| 18151 | ECHO_C= ECHO_N= ECHO_T= |
| 18152 | case `echo -n x` in #((((( |
| 18153 | -n*) |
| 18154 | case `echo 'xy\c'` in |
| 18155 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 18156 | xy) ECHO_C='\c';; |
| 18157 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 18158 | ECHO_T=' ';; |
| 18159 | esac;; |
| 18160 | *) |
| 18161 | ECHO_N='-n';; |
| 18162 | esac |
| 18163 | |
| 18164 | rm -f conf$$ conf$$.exe conf$$.file |
| 18165 | if test -d conf$$.dir; then |
| 18166 | rm -f conf$$.dir/conf$$.file |
| 18167 | else |
| 18168 | rm -f conf$$.dir |
| 18169 | mkdir conf$$.dir 2>/dev/null |
| 18170 | fi |
| 18171 | if (echo >conf$$.file) 2>/dev/null; then |
| 18172 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18173 | as_ln_s='ln -s' |
| 18174 | # ... but there are two gotchas: |
| 18175 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18176 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18177 | # In both cases, we have to default to `cp -pR'. |
| 18178 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18179 | as_ln_s='cp -pR' |
| 18180 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18181 | as_ln_s=ln |
| 18182 | else |
| 18183 | as_ln_s='cp -pR' |
| 18184 | fi |
| 18185 | else |
| 18186 | as_ln_s='cp -pR' |
| 18187 | fi |
| 18188 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18189 | rmdir conf$$.dir 2>/dev/null |
| 18190 | |
| 18191 | |
| 18192 | # as_fn_mkdir_p |
| 18193 | # ------------- |
| 18194 | # Create "$as_dir" as a directory, including parents if necessary. |
| 18195 | as_fn_mkdir_p () |
| 18196 | { |
| 18197 | |
| 18198 | case $as_dir in #( |
| 18199 | -*) as_dir=./$as_dir;; |
| 18200 | esac |
| 18201 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 18202 | as_dirs= |
| 18203 | while :; do |
| 18204 | case $as_dir in #( |
| 18205 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18206 | *) as_qdir=$as_dir;; |
| 18207 | esac |
| 18208 | as_dirs="'$as_qdir' $as_dirs" |
| 18209 | as_dir=`$as_dirname -- "$as_dir" || |
| 18210 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18211 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18212 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18213 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18214 | $as_echo X"$as_dir" | |
| 18215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18216 | s//\1/ |
| 18217 | q |
| 18218 | } |
| 18219 | /^X\(\/\/\)[^/].*/{ |
| 18220 | s//\1/ |
| 18221 | q |
| 18222 | } |
| 18223 | /^X\(\/\/\)$/{ |
| 18224 | s//\1/ |
| 18225 | q |
| 18226 | } |
| 18227 | /^X\(\/\).*/{ |
| 18228 | s//\1/ |
| 18229 | q |
| 18230 | } |
| 18231 | s/.*/./; q'` |
| 18232 | test -d "$as_dir" && break |
| 18233 | done |
| 18234 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18235 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 18236 | |
| 18237 | |
| 18238 | } # as_fn_mkdir_p |
| 18239 | if mkdir -p . 2>/dev/null; then |
| 18240 | as_mkdir_p='mkdir -p "$as_dir"' |
| 18241 | else |
| 18242 | test -d ./-p && rmdir ./-p |
| 18243 | as_mkdir_p=false |
| 18244 | fi |
| 18245 | |
| 18246 | |
| 18247 | # as_fn_executable_p FILE |
| 18248 | # ----------------------- |
| 18249 | # Test if FILE is an executable regular file. |
| 18250 | as_fn_executable_p () |
| 18251 | { |
| 18252 | test -f "$1" && test -x "$1" |
| 18253 | } # as_fn_executable_p |
| 18254 | as_test_x='test -x' |
| 18255 | as_executable_p=as_fn_executable_p |
| 18256 | |
| 18257 | # Sed expression to map a string onto a valid CPP name. |
| 18258 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18259 | |
| 18260 | # Sed expression to map a string onto a valid variable name. |
| 18261 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18262 | |
| 18263 | |
| 18264 | exec 6>&1 |
| 18265 | ## ----------------------------------- ## |
| 18266 | ## Main body of $CONFIG_STATUS script. ## |
| 18267 | ## ----------------------------------- ## |
| 18268 | _ASEOF |
| 18269 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 18270 | |
| 18271 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18272 | # Save the log message, to keep $0 and so on meaningful, and to |
| 18273 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18274 | # values after options handling. |
| 18275 | ac_log=" |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 18276 | This file was extended by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18277 | generated by GNU Autoconf 2.69. Invocation command line was |
| 18278 | |
| 18279 | CONFIG_FILES = $CONFIG_FILES |
| 18280 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18281 | CONFIG_LINKS = $CONFIG_LINKS |
| 18282 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18283 | $ $0 $@ |
| 18284 | |
| 18285 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18286 | " |
| 18287 | |
| 18288 | _ACEOF |
| 18289 | |
| 18290 | case $ac_config_files in *" |
| 18291 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 18292 | esac |
| 18293 | |
| 18294 | case $ac_config_headers in *" |
| 18295 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 18296 | esac |
| 18297 | |
| 18298 | |
| 18299 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18300 | # Files that config.status was made for. |
| 18301 | config_files="$ac_config_files" |
| 18302 | config_headers="$ac_config_headers" |
| 18303 | config_commands="$ac_config_commands" |
| 18304 | |
| 18305 | _ACEOF |
| 18306 | |
| 18307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18308 | ac_cs_usage="\ |
| 18309 | \`$as_me' instantiates files and other configuration actions |
| 18310 | from templates according to the current configuration. Unless the files |
| 18311 | and actions are specified as TAGs, all are instantiated by default. |
| 18312 | |
| 18313 | Usage: $0 [OPTION]... [TAG]... |
| 18314 | |
| 18315 | -h, --help print this help, then exit |
| 18316 | -V, --version print version number and configuration settings, then exit |
| 18317 | --config print configuration, then exit |
| 18318 | -q, --quiet, --silent |
| 18319 | do not print progress messages |
| 18320 | -d, --debug don't remove temporary files |
| 18321 | --recheck update $as_me by reconfiguring in the same conditions |
| 18322 | --file=FILE[:TEMPLATE] |
| 18323 | instantiate the configuration file FILE |
| 18324 | --header=FILE[:TEMPLATE] |
| 18325 | instantiate the configuration header FILE |
| 18326 | |
| 18327 | Configuration files: |
| 18328 | $config_files |
| 18329 | |
| 18330 | Configuration headers: |
| 18331 | $config_headers |
| 18332 | |
| 18333 | Configuration commands: |
| 18334 | $config_commands |
| 18335 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 18336 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18337 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>." |
| 18338 | |
| 18339 | _ACEOF |
| 18340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18341 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 18342 | ac_cs_version="\\ |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame^] | 18343 | ndn-cpp config.status 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18344 | configured by $0, generated by GNU Autoconf 2.69, |
| 18345 | with options \\"\$ac_cs_config\\" |
| 18346 | |
| 18347 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 18348 | This config.status script is free software; the Free Software Foundation |
| 18349 | gives unlimited permission to copy, distribute and modify it." |
| 18350 | |
| 18351 | ac_pwd='$ac_pwd' |
| 18352 | srcdir='$srcdir' |
| 18353 | INSTALL='$INSTALL' |
| 18354 | MKDIR_P='$MKDIR_P' |
| 18355 | AWK='$AWK' |
| 18356 | test -n "\$AWK" || AWK=awk |
| 18357 | _ACEOF |
| 18358 | |
| 18359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18360 | # The default lists apply if the user does not specify any file. |
| 18361 | ac_need_defaults=: |
| 18362 | while test $# != 0 |
| 18363 | do |
| 18364 | case $1 in |
| 18365 | --*=?*) |
| 18366 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18367 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 18368 | ac_shift=: |
| 18369 | ;; |
| 18370 | --*=) |
| 18371 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18372 | ac_optarg= |
| 18373 | ac_shift=: |
| 18374 | ;; |
| 18375 | *) |
| 18376 | ac_option=$1 |
| 18377 | ac_optarg=$2 |
| 18378 | ac_shift=shift |
| 18379 | ;; |
| 18380 | esac |
| 18381 | |
| 18382 | case $ac_option in |
| 18383 | # Handling of the options. |
| 18384 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18385 | ac_cs_recheck=: ;; |
| 18386 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 18387 | $as_echo "$ac_cs_version"; exit ;; |
| 18388 | --config | --confi | --conf | --con | --co | --c ) |
| 18389 | $as_echo "$ac_cs_config"; exit ;; |
| 18390 | --debug | --debu | --deb | --de | --d | -d ) |
| 18391 | debug=: ;; |
| 18392 | --file | --fil | --fi | --f ) |
| 18393 | $ac_shift |
| 18394 | case $ac_optarg in |
| 18395 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18396 | '') as_fn_error $? "missing file argument" ;; |
| 18397 | esac |
| 18398 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 18399 | ac_need_defaults=false;; |
| 18400 | --header | --heade | --head | --hea ) |
| 18401 | $ac_shift |
| 18402 | case $ac_optarg in |
| 18403 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18404 | esac |
| 18405 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 18406 | ac_need_defaults=false;; |
| 18407 | --he | --h) |
| 18408 | # Conflict between --help and --header |
| 18409 | as_fn_error $? "ambiguous option: \`$1' |
| 18410 | Try \`$0 --help' for more information.";; |
| 18411 | --help | --hel | -h ) |
| 18412 | $as_echo "$ac_cs_usage"; exit ;; |
| 18413 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18414 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18415 | ac_cs_silent=: ;; |
| 18416 | |
| 18417 | # This is an error. |
| 18418 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 18419 | Try \`$0 --help' for more information." ;; |
| 18420 | |
| 18421 | *) as_fn_append ac_config_targets " $1" |
| 18422 | ac_need_defaults=false ;; |
| 18423 | |
| 18424 | esac |
| 18425 | shift |
| 18426 | done |
| 18427 | |
| 18428 | ac_configure_extra_args= |
| 18429 | |
| 18430 | if $ac_cs_silent; then |
| 18431 | exec 6>/dev/null |
| 18432 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18433 | fi |
| 18434 | |
| 18435 | _ACEOF |
| 18436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18437 | if \$ac_cs_recheck; then |
| 18438 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18439 | shift |
| 18440 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18441 | CONFIG_SHELL='$SHELL' |
| 18442 | export CONFIG_SHELL |
| 18443 | exec "\$@" |
| 18444 | fi |
| 18445 | |
| 18446 | _ACEOF |
| 18447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18448 | exec 5>>config.log |
| 18449 | { |
| 18450 | echo |
| 18451 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18452 | ## Running $as_me. ## |
| 18453 | _ASBOX |
| 18454 | $as_echo "$ac_log" |
| 18455 | } >&5 |
| 18456 | |
| 18457 | _ACEOF |
| 18458 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18459 | # |
| 18460 | # INIT-COMMANDS |
| 18461 | # |
| 18462 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 18463 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 18464 | |
| 18465 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18466 | # if CDPATH is set. |
| 18467 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18468 | |
| 18469 | sed_quote_subst='$sed_quote_subst' |
| 18470 | double_quote_subst='$double_quote_subst' |
| 18471 | delay_variable_subst='$delay_variable_subst' |
| 18472 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 18473 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 18474 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 18475 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 18476 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 18477 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 18478 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 18479 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 18480 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 18481 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 18482 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 18483 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 18484 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 18485 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 18486 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 18487 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 18488 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 18489 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 18490 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 18491 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 18492 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 18493 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 18494 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 18495 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 18496 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 18497 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 18498 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 18499 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 18500 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 18501 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 18502 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 18503 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 18504 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 18505 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 18506 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 18507 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 18508 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 18509 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 18510 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 18511 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 18512 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 18513 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 18514 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 18515 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 18516 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 18517 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18518 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18519 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 18520 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 18521 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 18522 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 18523 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 18524 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 18525 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 18526 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 18527 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 18528 | 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"`' |
| 18529 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 18530 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 18531 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 18532 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 18533 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 18534 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 18535 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 18536 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 18537 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 18538 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 18539 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 18540 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 18541 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 18542 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 18543 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 18544 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 18545 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 18546 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 18547 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 18548 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 18549 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 18550 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18551 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18552 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 18553 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 18554 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 18555 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 18556 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 18557 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 18558 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 18559 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 18560 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 18561 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 18562 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 18563 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 18564 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 18565 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 18566 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 18567 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 18568 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 18569 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 18570 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 18571 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 18572 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 18573 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 18574 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 18575 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 18576 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 18577 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 18578 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 18579 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 18580 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 18581 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 18582 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 18583 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 18584 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 18585 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 18586 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 18587 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 18588 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 18589 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18590 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 18591 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 18592 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 18593 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 18594 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18595 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18596 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 18597 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 18598 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 18599 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 18600 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 18601 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 18602 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 18603 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 18604 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 18605 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 18606 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 18607 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 18608 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 18609 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18610 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18611 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18612 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 18613 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 18614 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18615 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 18616 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 18617 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 18618 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 18619 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 18620 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 18621 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18622 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18623 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 18624 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18625 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18626 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18627 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18628 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18629 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18630 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 18631 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18632 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 18633 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18634 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 18635 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 18636 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 18637 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 18638 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 18639 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 18640 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 18641 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 18642 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 18643 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18644 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 18645 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 18646 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18647 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 18648 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 18649 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 18650 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 18651 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 18652 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 18653 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 18654 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 18655 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 18656 | |
| 18657 | LTCC='$LTCC' |
| 18658 | LTCFLAGS='$LTCFLAGS' |
| 18659 | compiler='$compiler_DEFAULT' |
| 18660 | |
| 18661 | # A function that is used when there is no print builtin or printf. |
| 18662 | func_fallback_echo () |
| 18663 | { |
| 18664 | eval 'cat <<_LTECHO_EOF |
| 18665 | \$1 |
| 18666 | _LTECHO_EOF' |
| 18667 | } |
| 18668 | |
| 18669 | # Quote evaled strings. |
| 18670 | for var in SHELL \ |
| 18671 | ECHO \ |
| 18672 | PATH_SEPARATOR \ |
| 18673 | SED \ |
| 18674 | GREP \ |
| 18675 | EGREP \ |
| 18676 | FGREP \ |
| 18677 | LD \ |
| 18678 | NM \ |
| 18679 | LN_S \ |
| 18680 | lt_SP2NL \ |
| 18681 | lt_NL2SP \ |
| 18682 | reload_flag \ |
| 18683 | OBJDUMP \ |
| 18684 | deplibs_check_method \ |
| 18685 | file_magic_cmd \ |
| 18686 | file_magic_glob \ |
| 18687 | want_nocaseglob \ |
| 18688 | DLLTOOL \ |
| 18689 | sharedlib_from_linklib_cmd \ |
| 18690 | AR \ |
| 18691 | AR_FLAGS \ |
| 18692 | archiver_list_spec \ |
| 18693 | STRIP \ |
| 18694 | RANLIB \ |
| 18695 | CC \ |
| 18696 | CFLAGS \ |
| 18697 | compiler \ |
| 18698 | lt_cv_sys_global_symbol_pipe \ |
| 18699 | lt_cv_sys_global_symbol_to_cdecl \ |
| 18700 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18701 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 18702 | nm_file_list_spec \ |
| 18703 | lt_prog_compiler_no_builtin_flag \ |
| 18704 | lt_prog_compiler_pic \ |
| 18705 | lt_prog_compiler_wl \ |
| 18706 | lt_prog_compiler_static \ |
| 18707 | lt_cv_prog_compiler_c_o \ |
| 18708 | need_locks \ |
| 18709 | MANIFEST_TOOL \ |
| 18710 | DSYMUTIL \ |
| 18711 | NMEDIT \ |
| 18712 | LIPO \ |
| 18713 | OTOOL \ |
| 18714 | OTOOL64 \ |
| 18715 | shrext_cmds \ |
| 18716 | export_dynamic_flag_spec \ |
| 18717 | whole_archive_flag_spec \ |
| 18718 | compiler_needs_object \ |
| 18719 | with_gnu_ld \ |
| 18720 | allow_undefined_flag \ |
| 18721 | no_undefined_flag \ |
| 18722 | hardcode_libdir_flag_spec \ |
| 18723 | hardcode_libdir_separator \ |
| 18724 | exclude_expsyms \ |
| 18725 | include_expsyms \ |
| 18726 | file_list_spec \ |
| 18727 | variables_saved_for_relink \ |
| 18728 | libname_spec \ |
| 18729 | library_names_spec \ |
| 18730 | soname_spec \ |
| 18731 | install_override_mode \ |
| 18732 | finish_eval \ |
| 18733 | old_striplib \ |
| 18734 | striplib \ |
| 18735 | compiler_lib_search_dirs \ |
| 18736 | predep_objects \ |
| 18737 | postdep_objects \ |
| 18738 | predeps \ |
| 18739 | postdeps \ |
| 18740 | compiler_lib_search_path \ |
| 18741 | LD_CXX \ |
| 18742 | reload_flag_CXX \ |
| 18743 | compiler_CXX \ |
| 18744 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18745 | lt_prog_compiler_pic_CXX \ |
| 18746 | lt_prog_compiler_wl_CXX \ |
| 18747 | lt_prog_compiler_static_CXX \ |
| 18748 | lt_cv_prog_compiler_c_o_CXX \ |
| 18749 | export_dynamic_flag_spec_CXX \ |
| 18750 | whole_archive_flag_spec_CXX \ |
| 18751 | compiler_needs_object_CXX \ |
| 18752 | with_gnu_ld_CXX \ |
| 18753 | allow_undefined_flag_CXX \ |
| 18754 | no_undefined_flag_CXX \ |
| 18755 | hardcode_libdir_flag_spec_CXX \ |
| 18756 | hardcode_libdir_separator_CXX \ |
| 18757 | exclude_expsyms_CXX \ |
| 18758 | include_expsyms_CXX \ |
| 18759 | file_list_spec_CXX \ |
| 18760 | compiler_lib_search_dirs_CXX \ |
| 18761 | predep_objects_CXX \ |
| 18762 | postdep_objects_CXX \ |
| 18763 | predeps_CXX \ |
| 18764 | postdeps_CXX \ |
| 18765 | compiler_lib_search_path_CXX; do |
| 18766 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18767 | *[\\\\\\\`\\"\\\$]*) |
| 18768 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 18769 | ;; |
| 18770 | *) |
| 18771 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18772 | ;; |
| 18773 | esac |
| 18774 | done |
| 18775 | |
| 18776 | # Double-quote double-evaled strings. |
| 18777 | for var in reload_cmds \ |
| 18778 | old_postinstall_cmds \ |
| 18779 | old_postuninstall_cmds \ |
| 18780 | old_archive_cmds \ |
| 18781 | extract_expsyms_cmds \ |
| 18782 | old_archive_from_new_cmds \ |
| 18783 | old_archive_from_expsyms_cmds \ |
| 18784 | archive_cmds \ |
| 18785 | archive_expsym_cmds \ |
| 18786 | module_cmds \ |
| 18787 | module_expsym_cmds \ |
| 18788 | export_symbols_cmds \ |
| 18789 | prelink_cmds \ |
| 18790 | postlink_cmds \ |
| 18791 | postinstall_cmds \ |
| 18792 | postuninstall_cmds \ |
| 18793 | finish_cmds \ |
| 18794 | sys_lib_search_path_spec \ |
| 18795 | sys_lib_dlsearch_path_spec \ |
| 18796 | reload_cmds_CXX \ |
| 18797 | old_archive_cmds_CXX \ |
| 18798 | old_archive_from_new_cmds_CXX \ |
| 18799 | old_archive_from_expsyms_cmds_CXX \ |
| 18800 | archive_cmds_CXX \ |
| 18801 | archive_expsym_cmds_CXX \ |
| 18802 | module_cmds_CXX \ |
| 18803 | module_expsym_cmds_CXX \ |
| 18804 | export_symbols_cmds_CXX \ |
| 18805 | prelink_cmds_CXX \ |
| 18806 | postlink_cmds_CXX; do |
| 18807 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18808 | *[\\\\\\\`\\"\\\$]*) |
| 18809 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 18810 | ;; |
| 18811 | *) |
| 18812 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18813 | ;; |
| 18814 | esac |
| 18815 | done |
| 18816 | |
| 18817 | ac_aux_dir='$ac_aux_dir' |
| 18818 | xsi_shell='$xsi_shell' |
| 18819 | lt_shell_append='$lt_shell_append' |
| 18820 | |
| 18821 | # See if we are running on zsh, and set the options which allow our |
| 18822 | # commands through without removal of \ escapes INIT. |
| 18823 | if test -n "\${ZSH_VERSION+set}" ; then |
| 18824 | setopt NO_GLOB_SUBST |
| 18825 | fi |
| 18826 | |
| 18827 | |
| 18828 | PACKAGE='$PACKAGE' |
| 18829 | VERSION='$VERSION' |
| 18830 | TIMESTAMP='$TIMESTAMP' |
| 18831 | RM='$RM' |
| 18832 | ofile='$ofile' |
| 18833 | |
| 18834 | |
| 18835 | |
| 18836 | |
| 18837 | |
| 18838 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18839 | _ACEOF |
| 18840 | |
| 18841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18842 | |
| 18843 | # Handling of arguments. |
| 18844 | for ac_config_target in $ac_config_targets |
| 18845 | do |
| 18846 | case $ac_config_target in |
| 18847 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 18848 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 18849 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18850 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 18851 | |
| 18852 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 18853 | esac |
| 18854 | done |
| 18855 | |
| 18856 | |
| 18857 | # If the user did not use the arguments to specify the items to instantiate, |
| 18858 | # then the envvar interface is used. Set only those that are not. |
| 18859 | # We use the long form for the default assignment because of an extremely |
| 18860 | # bizarre bug on SunOS 4.1.3. |
| 18861 | if $ac_need_defaults; then |
| 18862 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18863 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18864 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 18865 | fi |
| 18866 | |
| 18867 | # Have a temporary directory for convenience. Make it in the build tree |
| 18868 | # simply because there is no reason against having it here, and in addition, |
| 18869 | # creating and moving files from /tmp can sometimes cause problems. |
| 18870 | # Hook for its removal unless debugging. |
| 18871 | # Note that there is a small window in which the directory will not be cleaned: |
| 18872 | # after its creation but before its name has been assigned to `$tmp'. |
| 18873 | $debug || |
| 18874 | { |
| 18875 | tmp= ac_tmp= |
| 18876 | trap 'exit_status=$? |
| 18877 | : "${ac_tmp:=$tmp}" |
| 18878 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 18879 | ' 0 |
| 18880 | trap 'as_fn_exit 1' 1 2 13 15 |
| 18881 | } |
| 18882 | # Create a (secure) tmp directory for tmp files. |
| 18883 | |
| 18884 | { |
| 18885 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 18886 | test -d "$tmp" |
| 18887 | } || |
| 18888 | { |
| 18889 | tmp=./conf$$-$RANDOM |
| 18890 | (umask 077 && mkdir "$tmp") |
| 18891 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 18892 | ac_tmp=$tmp |
| 18893 | |
| 18894 | # Set up the scripts for CONFIG_FILES section. |
| 18895 | # No need to generate them if there are no CONFIG_FILES. |
| 18896 | # This happens for instance with `./config.status config.h'. |
| 18897 | if test -n "$CONFIG_FILES"; then |
| 18898 | |
| 18899 | |
| 18900 | ac_cr=`echo X | tr X '\015'` |
| 18901 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 18902 | # But we know of no other shell where ac_cr would be empty at this |
| 18903 | # point, so we can use a bashism as a fallback. |
| 18904 | if test "x$ac_cr" = x; then |
| 18905 | eval ac_cr=\$\'\\r\' |
| 18906 | fi |
| 18907 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18908 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 18909 | ac_cs_awk_cr='\\r' |
| 18910 | else |
| 18911 | ac_cs_awk_cr=$ac_cr |
| 18912 | fi |
| 18913 | |
| 18914 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 18915 | _ACEOF |
| 18916 | |
| 18917 | |
| 18918 | { |
| 18919 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18920 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18921 | echo "_ACEOF" |
| 18922 | } >conf$$subs.sh || |
| 18923 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18924 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 18925 | ac_delim='%!_!# ' |
| 18926 | for ac_last_try in false false false false false :; do |
| 18927 | . ./conf$$subs.sh || |
| 18928 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18929 | |
| 18930 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18931 | if test $ac_delim_n = $ac_delim_num; then |
| 18932 | break |
| 18933 | elif $ac_last_try; then |
| 18934 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18935 | else |
| 18936 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18937 | fi |
| 18938 | done |
| 18939 | rm -f conf$$subs.sh |
| 18940 | |
| 18941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18942 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 18943 | _ACEOF |
| 18944 | sed -n ' |
| 18945 | h |
| 18946 | s/^/S["/; s/!.*/"]=/ |
| 18947 | p |
| 18948 | g |
| 18949 | s/^[^!]*!// |
| 18950 | :repl |
| 18951 | t repl |
| 18952 | s/'"$ac_delim"'$// |
| 18953 | t delim |
| 18954 | :nl |
| 18955 | h |
| 18956 | s/\(.\{148\}\)..*/\1/ |
| 18957 | t more1 |
| 18958 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18959 | p |
| 18960 | n |
| 18961 | b repl |
| 18962 | :more1 |
| 18963 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18964 | p |
| 18965 | g |
| 18966 | s/.\{148\}// |
| 18967 | t nl |
| 18968 | :delim |
| 18969 | h |
| 18970 | s/\(.\{148\}\)..*/\1/ |
| 18971 | t more2 |
| 18972 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18973 | p |
| 18974 | b |
| 18975 | :more2 |
| 18976 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18977 | p |
| 18978 | g |
| 18979 | s/.\{148\}// |
| 18980 | t delim |
| 18981 | ' <conf$$subs.awk | sed ' |
| 18982 | /^[^""]/{ |
| 18983 | N |
| 18984 | s/\n// |
| 18985 | } |
| 18986 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18987 | rm -f conf$$subs.awk |
| 18988 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18989 | _ACAWK |
| 18990 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 18991 | for (key in S) S_is_set[key] = 1 |
| 18992 | FS = "" |
| 18993 | |
| 18994 | } |
| 18995 | { |
| 18996 | line = $ 0 |
| 18997 | nfields = split(line, field, "@") |
| 18998 | substed = 0 |
| 18999 | len = length(field[1]) |
| 19000 | for (i = 2; i < nfields; i++) { |
| 19001 | key = field[i] |
| 19002 | keylen = length(key) |
| 19003 | if (S_is_set[key]) { |
| 19004 | value = S[key] |
| 19005 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19006 | len += length(value) + length(field[++i]) |
| 19007 | substed = 1 |
| 19008 | } else |
| 19009 | len += 1 + keylen |
| 19010 | } |
| 19011 | |
| 19012 | print line |
| 19013 | } |
| 19014 | |
| 19015 | _ACAWK |
| 19016 | _ACEOF |
| 19017 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19018 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19019 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19020 | else |
| 19021 | cat |
| 19022 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19023 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 19024 | _ACEOF |
| 19025 | |
| 19026 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 19027 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 19028 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19029 | # (actually we leave an empty line to preserve line numbers). |
| 19030 | if test "x$srcdir" = x.; then |
| 19031 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 19032 | h |
| 19033 | s/// |
| 19034 | s/^/:/ |
| 19035 | s/[ ]*$/:/ |
| 19036 | s/:\$(srcdir):/:/g |
| 19037 | s/:\${srcdir}:/:/g |
| 19038 | s/:@srcdir@:/:/g |
| 19039 | s/^:*// |
| 19040 | s/:*$// |
| 19041 | x |
| 19042 | s/\(=[ ]*\).*/\1/ |
| 19043 | G |
| 19044 | s/\n// |
| 19045 | s/^[^=]*=[ ]*$// |
| 19046 | }' |
| 19047 | fi |
| 19048 | |
| 19049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19050 | fi # test -n "$CONFIG_FILES" |
| 19051 | |
| 19052 | # Set up the scripts for CONFIG_HEADERS section. |
| 19053 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19054 | # This happens for instance with `./config.status Makefile'. |
| 19055 | if test -n "$CONFIG_HEADERS"; then |
| 19056 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19057 | BEGIN { |
| 19058 | _ACEOF |
| 19059 | |
| 19060 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19061 | # here-document in config.status, that substitutes the proper values into |
| 19062 | # config.h.in to produce config.h. |
| 19063 | |
| 19064 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19065 | # handling of long lines. |
| 19066 | ac_delim='%!_!# ' |
| 19067 | for ac_last_try in false false :; do |
| 19068 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19069 | if test -z "$ac_tt"; then |
| 19070 | break |
| 19071 | elif $ac_last_try; then |
| 19072 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19073 | else |
| 19074 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19075 | fi |
| 19076 | done |
| 19077 | |
| 19078 | # For the awk script, D is an array of macro values keyed by name, |
| 19079 | # likewise P contains macro parameters if any. Preserve backslash |
| 19080 | # newline sequences. |
| 19081 | |
| 19082 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19083 | sed -n ' |
| 19084 | s/.\{148\}/&'"$ac_delim"'/g |
| 19085 | t rset |
| 19086 | :rset |
| 19087 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19088 | t def |
| 19089 | d |
| 19090 | :def |
| 19091 | s/\\$// |
| 19092 | t bsnl |
| 19093 | s/["\\]/\\&/g |
| 19094 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19095 | D["\1"]=" \3"/p |
| 19096 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19097 | d |
| 19098 | :bsnl |
| 19099 | s/["\\]/\\&/g |
| 19100 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19101 | D["\1"]=" \3\\\\\\n"\\/p |
| 19102 | t cont |
| 19103 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19104 | t cont |
| 19105 | d |
| 19106 | :cont |
| 19107 | n |
| 19108 | s/.\{148\}/&'"$ac_delim"'/g |
| 19109 | t clear |
| 19110 | :clear |
| 19111 | s/\\$// |
| 19112 | t bsnlc |
| 19113 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19114 | d |
| 19115 | :bsnlc |
| 19116 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19117 | b cont |
| 19118 | ' <confdefs.h | sed ' |
| 19119 | s/'"$ac_delim"'/"\\\ |
| 19120 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19121 | |
| 19122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19123 | for (key in D) D_is_set[key] = 1 |
| 19124 | FS = "" |
| 19125 | } |
| 19126 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19127 | line = \$ 0 |
| 19128 | split(line, arg, " ") |
| 19129 | if (arg[1] == "#") { |
| 19130 | defundef = arg[2] |
| 19131 | mac1 = arg[3] |
| 19132 | } else { |
| 19133 | defundef = substr(arg[1], 2) |
| 19134 | mac1 = arg[2] |
| 19135 | } |
| 19136 | split(mac1, mac2, "(") #) |
| 19137 | macro = mac2[1] |
| 19138 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 19139 | if (D_is_set[macro]) { |
| 19140 | # Preserve the white space surrounding the "#". |
| 19141 | print prefix "define", macro P[macro] D[macro] |
| 19142 | next |
| 19143 | } else { |
| 19144 | # Replace #undef with comments. This is necessary, for example, |
| 19145 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 19146 | # on some systems where configure will not decide to define it. |
| 19147 | if (defundef == "undef") { |
| 19148 | print "/*", prefix defundef, macro, "*/" |
| 19149 | next |
| 19150 | } |
| 19151 | } |
| 19152 | } |
| 19153 | { print } |
| 19154 | _ACAWK |
| 19155 | _ACEOF |
| 19156 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19157 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 19158 | fi # test -n "$CONFIG_HEADERS" |
| 19159 | |
| 19160 | |
| 19161 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 19162 | shift |
| 19163 | for ac_tag |
| 19164 | do |
| 19165 | case $ac_tag in |
| 19166 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 19167 | esac |
| 19168 | case $ac_mode$ac_tag in |
| 19169 | :[FHL]*:*);; |
| 19170 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 19171 | :[FH]-) ac_tag=-:-;; |
| 19172 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19173 | esac |
| 19174 | ac_save_IFS=$IFS |
| 19175 | IFS=: |
| 19176 | set x $ac_tag |
| 19177 | IFS=$ac_save_IFS |
| 19178 | shift |
| 19179 | ac_file=$1 |
| 19180 | shift |
| 19181 | |
| 19182 | case $ac_mode in |
| 19183 | :L) ac_source=$1;; |
| 19184 | :[FH]) |
| 19185 | ac_file_inputs= |
| 19186 | for ac_f |
| 19187 | do |
| 19188 | case $ac_f in |
| 19189 | -) ac_f="$ac_tmp/stdin";; |
| 19190 | *) # Look for the file first in the build tree, then in the source tree |
| 19191 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19192 | # because $ac_f cannot contain `:'. |
| 19193 | test -f "$ac_f" || |
| 19194 | case $ac_f in |
| 19195 | [\\/$]*) false;; |
| 19196 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19197 | esac || |
| 19198 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 19199 | esac |
| 19200 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 19201 | as_fn_append ac_file_inputs " '$ac_f'" |
| 19202 | done |
| 19203 | |
| 19204 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19205 | # use $as_me), people would be surprised to read: |
| 19206 | # /* config.h. Generated by config.status. */ |
| 19207 | configure_input='Generated from '` |
| 19208 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19209 | `' by configure.' |
| 19210 | if test x"$ac_file" != x-; then |
| 19211 | configure_input="$ac_file. $configure_input" |
| 19212 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 19213 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 19214 | fi |
| 19215 | # Neutralize special characters interpreted by sed in replacement strings. |
| 19216 | case $configure_input in #( |
| 19217 | *\&* | *\|* | *\\* ) |
| 19218 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 19219 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19220 | *) ac_sed_conf_input=$configure_input;; |
| 19221 | esac |
| 19222 | |
| 19223 | case $ac_tag in |
| 19224 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 19225 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 19226 | esac |
| 19227 | ;; |
| 19228 | esac |
| 19229 | |
| 19230 | ac_dir=`$as_dirname -- "$ac_file" || |
| 19231 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19232 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19233 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19234 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 19235 | $as_echo X"$ac_file" | |
| 19236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19237 | s//\1/ |
| 19238 | q |
| 19239 | } |
| 19240 | /^X\(\/\/\)[^/].*/{ |
| 19241 | s//\1/ |
| 19242 | q |
| 19243 | } |
| 19244 | /^X\(\/\/\)$/{ |
| 19245 | s//\1/ |
| 19246 | q |
| 19247 | } |
| 19248 | /^X\(\/\).*/{ |
| 19249 | s//\1/ |
| 19250 | q |
| 19251 | } |
| 19252 | s/.*/./; q'` |
| 19253 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 19254 | ac_builddir=. |
| 19255 | |
| 19256 | case "$ac_dir" in |
| 19257 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19258 | *) |
| 19259 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 19260 | # A ".." for each directory in $ac_dir_suffix. |
| 19261 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 19262 | case $ac_top_builddir_sub in |
| 19263 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19264 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19265 | esac ;; |
| 19266 | esac |
| 19267 | ac_abs_top_builddir=$ac_pwd |
| 19268 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19269 | # for backward compatibility: |
| 19270 | ac_top_builddir=$ac_top_build_prefix |
| 19271 | |
| 19272 | case $srcdir in |
| 19273 | .) # We are building in place. |
| 19274 | ac_srcdir=. |
| 19275 | ac_top_srcdir=$ac_top_builddir_sub |
| 19276 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19277 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 19278 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19279 | ac_top_srcdir=$srcdir |
| 19280 | ac_abs_top_srcdir=$srcdir ;; |
| 19281 | *) # Relative name. |
| 19282 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19283 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19284 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 19285 | esac |
| 19286 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 19287 | |
| 19288 | |
| 19289 | case $ac_mode in |
| 19290 | :F) |
| 19291 | # |
| 19292 | # CONFIG_FILE |
| 19293 | # |
| 19294 | |
| 19295 | case $INSTALL in |
| 19296 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19297 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 19298 | esac |
| 19299 | ac_MKDIR_P=$MKDIR_P |
| 19300 | case $MKDIR_P in |
| 19301 | [\\/$]* | ?:[\\/]* ) ;; |
| 19302 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 19303 | esac |
| 19304 | _ACEOF |
| 19305 | |
| 19306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19307 | # If the template does not know about datarootdir, expand it. |
| 19308 | # FIXME: This hack should be removed a few years after 2.60. |
| 19309 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 19310 | ac_sed_dataroot=' |
| 19311 | /datarootdir/ { |
| 19312 | p |
| 19313 | q |
| 19314 | } |
| 19315 | /@datadir@/p |
| 19316 | /@docdir@/p |
| 19317 | /@infodir@/p |
| 19318 | /@localedir@/p |
| 19319 | /@mandir@/p' |
| 19320 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 19321 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 19322 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 19323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 19324 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 19325 | _ACEOF |
| 19326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19327 | ac_datarootdir_hack=' |
| 19328 | s&@datadir@&$datadir&g |
| 19329 | s&@docdir@&$docdir&g |
| 19330 | s&@infodir@&$infodir&g |
| 19331 | s&@localedir@&$localedir&g |
| 19332 | s&@mandir@&$mandir&g |
| 19333 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 19334 | esac |
| 19335 | _ACEOF |
| 19336 | |
| 19337 | # Neutralize VPATH when `$srcdir' = `.'. |
| 19338 | # Shell code in configure.ac might set extrasub. |
| 19339 | # FIXME: do we really want to maintain this feature? |
| 19340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19341 | ac_sed_extra="$ac_vpsub |
| 19342 | $extrasub |
| 19343 | _ACEOF |
| 19344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19345 | :t |
| 19346 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19347 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 19348 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 19349 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 19350 | s&@srcdir@&$ac_srcdir&;t t |
| 19351 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19352 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19353 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19354 | s&@builddir@&$ac_builddir&;t t |
| 19355 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19356 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19357 | s&@INSTALL@&$ac_INSTALL&;t t |
| 19358 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 19359 | $ac_datarootdir_hack |
| 19360 | " |
| 19361 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 19362 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19363 | |
| 19364 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19365 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 19366 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 19367 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 19368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19369 | which seems to be undefined. Please make sure it is defined" >&5 |
| 19370 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19371 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 19372 | |
| 19373 | rm -f "$ac_tmp/stdin" |
| 19374 | case $ac_file in |
| 19375 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 19376 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 19377 | esac \ |
| 19378 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19379 | ;; |
| 19380 | :H) |
| 19381 | # |
| 19382 | # CONFIG_HEADER |
| 19383 | # |
| 19384 | if test x"$ac_file" != x-; then |
| 19385 | { |
| 19386 | $as_echo "/* $configure_input */" \ |
| 19387 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 19388 | } >"$ac_tmp/config.h" \ |
| 19389 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19390 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 19391 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 19392 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 19393 | else |
| 19394 | rm -f "$ac_file" |
| 19395 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 19396 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19397 | fi |
| 19398 | else |
| 19399 | $as_echo "/* $configure_input */" \ |
| 19400 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 19401 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 19402 | fi |
| 19403 | # Compute "$ac_file"'s index in $config_headers. |
| 19404 | _am_arg="$ac_file" |
| 19405 | _am_stamp_count=1 |
| 19406 | for _am_header in $config_headers :; do |
| 19407 | case $_am_header in |
| 19408 | $_am_arg | $_am_arg:* ) |
| 19409 | break ;; |
| 19410 | * ) |
| 19411 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 19412 | esac |
| 19413 | done |
| 19414 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 19415 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19416 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 19417 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 19418 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 19419 | $as_echo X"$_am_arg" | |
| 19420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19421 | s//\1/ |
| 19422 | q |
| 19423 | } |
| 19424 | /^X\(\/\/\)[^/].*/{ |
| 19425 | s//\1/ |
| 19426 | q |
| 19427 | } |
| 19428 | /^X\(\/\/\)$/{ |
| 19429 | s//\1/ |
| 19430 | q |
| 19431 | } |
| 19432 | /^X\(\/\).*/{ |
| 19433 | s//\1/ |
| 19434 | q |
| 19435 | } |
| 19436 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 19437 | ;; |
| 19438 | |
| 19439 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 19440 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 19441 | ;; |
| 19442 | esac |
| 19443 | |
| 19444 | |
| 19445 | case $ac_file$ac_mode in |
| 19446 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 19447 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 19448 | # are listed without --file. Let's play safe and only enable the eval |
| 19449 | # if we detect the quoting. |
| 19450 | case $CONFIG_FILES in |
| 19451 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 19452 | *) set x $CONFIG_FILES ;; |
| 19453 | esac |
| 19454 | shift |
| 19455 | for mf |
| 19456 | do |
| 19457 | # Strip MF so we end up with the name of the file. |
| 19458 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 19459 | # Check whether this is an Automake generated Makefile or not. |
| 19460 | # We used to match only the files named 'Makefile.in', but |
| 19461 | # some people rename them; so instead we look at the file content. |
| 19462 | # Grep'ing the first line is not enough: some people post-process |
| 19463 | # each Makefile.in and add a new line on top of each file to say so. |
| 19464 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 19465 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 19466 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 19467 | dirpart=`$as_dirname -- "$mf" || |
| 19468 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19469 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 19470 | X"$mf" : 'X\(//\)$' \| \ |
| 19471 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 19472 | $as_echo X"$mf" | |
| 19473 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19474 | s//\1/ |
| 19475 | q |
| 19476 | } |
| 19477 | /^X\(\/\/\)[^/].*/{ |
| 19478 | s//\1/ |
| 19479 | q |
| 19480 | } |
| 19481 | /^X\(\/\/\)$/{ |
| 19482 | s//\1/ |
| 19483 | q |
| 19484 | } |
| 19485 | /^X\(\/\).*/{ |
| 19486 | s//\1/ |
| 19487 | q |
| 19488 | } |
| 19489 | s/.*/./; q'` |
| 19490 | else |
| 19491 | continue |
| 19492 | fi |
| 19493 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 19494 | # from the Makefile without running 'make'. |
| 19495 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 19496 | test -z "$DEPDIR" && continue |
| 19497 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 19498 | test -z "$am__include" && continue |
| 19499 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 19500 | # Find all dependency output files, they are included files with |
| 19501 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 19502 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 19503 | # expansion. |
| 19504 | for file in `sed -n " |
| 19505 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 19506 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 19507 | # Make sure the directory exists. |
| 19508 | test -f "$dirpart/$file" && continue |
| 19509 | fdir=`$as_dirname -- "$file" || |
| 19510 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19511 | X"$file" : 'X\(//\)[^/]' \| \ |
| 19512 | X"$file" : 'X\(//\)$' \| \ |
| 19513 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 19514 | $as_echo X"$file" | |
| 19515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19516 | s//\1/ |
| 19517 | q |
| 19518 | } |
| 19519 | /^X\(\/\/\)[^/].*/{ |
| 19520 | s//\1/ |
| 19521 | q |
| 19522 | } |
| 19523 | /^X\(\/\/\)$/{ |
| 19524 | s//\1/ |
| 19525 | q |
| 19526 | } |
| 19527 | /^X\(\/\).*/{ |
| 19528 | s//\1/ |
| 19529 | q |
| 19530 | } |
| 19531 | s/.*/./; q'` |
| 19532 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 19533 | # echo "creating $dirpart/$file" |
| 19534 | echo '# dummy' > "$dirpart/$file" |
| 19535 | done |
| 19536 | done |
| 19537 | } |
| 19538 | ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19539 | "libtool":C) |
| 19540 | |
| 19541 | # See if we are running on zsh, and set the options which allow our |
| 19542 | # commands through without removal of \ escapes. |
| 19543 | if test -n "${ZSH_VERSION+set}" ; then |
| 19544 | setopt NO_GLOB_SUBST |
| 19545 | fi |
| 19546 | |
| 19547 | cfgfile="${ofile}T" |
| 19548 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 19549 | $RM "$cfgfile" |
| 19550 | |
| 19551 | cat <<_LT_EOF >> "$cfgfile" |
| 19552 | #! $SHELL |
| 19553 | |
| 19554 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 19555 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 19556 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19557 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 19558 | # |
| 19559 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 19560 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 19561 | # Foundation, Inc. |
| 19562 | # Written by Gordon Matzigkeit, 1996 |
| 19563 | # |
| 19564 | # This file is part of GNU Libtool. |
| 19565 | # |
| 19566 | # GNU Libtool is free software; you can redistribute it and/or |
| 19567 | # modify it under the terms of the GNU General Public License as |
| 19568 | # published by the Free Software Foundation; either version 2 of |
| 19569 | # the License, or (at your option) any later version. |
| 19570 | # |
| 19571 | # As a special exception to the GNU General Public License, |
| 19572 | # if you distribute this file as part of a program or library that |
| 19573 | # is built using GNU Libtool, you may include this file under the |
| 19574 | # same distribution terms that you use for the rest of that program. |
| 19575 | # |
| 19576 | # GNU Libtool is distributed in the hope that it will be useful, |
| 19577 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19578 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19579 | # GNU General Public License for more details. |
| 19580 | # |
| 19581 | # You should have received a copy of the GNU General Public License |
| 19582 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 19583 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 19584 | # obtained by writing to the Free Software Foundation, Inc., |
| 19585 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19586 | |
| 19587 | |
| 19588 | # The names of the tagged configurations supported by this script. |
| 19589 | available_tags="CXX " |
| 19590 | |
| 19591 | # ### BEGIN LIBTOOL CONFIG |
| 19592 | |
| 19593 | # Which release of libtool.m4 was used? |
| 19594 | macro_version=$macro_version |
| 19595 | macro_revision=$macro_revision |
| 19596 | |
| 19597 | # Whether or not to build shared libraries. |
| 19598 | build_libtool_libs=$enable_shared |
| 19599 | |
| 19600 | # Whether or not to build static libraries. |
| 19601 | build_old_libs=$enable_static |
| 19602 | |
| 19603 | # What type of objects to build. |
| 19604 | pic_mode=$pic_mode |
| 19605 | |
| 19606 | # Whether or not to optimize for fast installation. |
| 19607 | fast_install=$enable_fast_install |
| 19608 | |
| 19609 | # Shell to use when invoking shell scripts. |
| 19610 | SHELL=$lt_SHELL |
| 19611 | |
| 19612 | # An echo program that protects backslashes. |
| 19613 | ECHO=$lt_ECHO |
| 19614 | |
| 19615 | # The PATH separator for the build system. |
| 19616 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 19617 | |
| 19618 | # The host system. |
| 19619 | host_alias=$host_alias |
| 19620 | host=$host |
| 19621 | host_os=$host_os |
| 19622 | |
| 19623 | # The build system. |
| 19624 | build_alias=$build_alias |
| 19625 | build=$build |
| 19626 | build_os=$build_os |
| 19627 | |
| 19628 | # A sed program that does not truncate output. |
| 19629 | SED=$lt_SED |
| 19630 | |
| 19631 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 19632 | Xsed="\$SED -e 1s/^X//" |
| 19633 | |
| 19634 | # A grep program that handles long lines. |
| 19635 | GREP=$lt_GREP |
| 19636 | |
| 19637 | # An ERE matcher. |
| 19638 | EGREP=$lt_EGREP |
| 19639 | |
| 19640 | # A literal string matcher. |
| 19641 | FGREP=$lt_FGREP |
| 19642 | |
| 19643 | # A BSD- or MS-compatible name lister. |
| 19644 | NM=$lt_NM |
| 19645 | |
| 19646 | # Whether we need soft or hard links. |
| 19647 | LN_S=$lt_LN_S |
| 19648 | |
| 19649 | # What is the maximum length of a command? |
| 19650 | max_cmd_len=$max_cmd_len |
| 19651 | |
| 19652 | # Object file suffix (normally "o"). |
| 19653 | objext=$ac_objext |
| 19654 | |
| 19655 | # Executable file suffix (normally ""). |
| 19656 | exeext=$exeext |
| 19657 | |
| 19658 | # whether the shell understands "unset". |
| 19659 | lt_unset=$lt_unset |
| 19660 | |
| 19661 | # turn spaces into newlines. |
| 19662 | SP2NL=$lt_lt_SP2NL |
| 19663 | |
| 19664 | # turn newlines into spaces. |
| 19665 | NL2SP=$lt_lt_NL2SP |
| 19666 | |
| 19667 | # convert \$build file names to \$host format. |
| 19668 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 19669 | |
| 19670 | # convert \$build files to toolchain format. |
| 19671 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 19672 | |
| 19673 | # An object symbol dumper. |
| 19674 | OBJDUMP=$lt_OBJDUMP |
| 19675 | |
| 19676 | # Method to check whether dependent libraries are shared objects. |
| 19677 | deplibs_check_method=$lt_deplibs_check_method |
| 19678 | |
| 19679 | # Command to use when deplibs_check_method = "file_magic". |
| 19680 | file_magic_cmd=$lt_file_magic_cmd |
| 19681 | |
| 19682 | # How to find potential files when deplibs_check_method = "file_magic". |
| 19683 | file_magic_glob=$lt_file_magic_glob |
| 19684 | |
| 19685 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 19686 | want_nocaseglob=$lt_want_nocaseglob |
| 19687 | |
| 19688 | # DLL creation program. |
| 19689 | DLLTOOL=$lt_DLLTOOL |
| 19690 | |
| 19691 | # Command to associate shared and link libraries. |
| 19692 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 19693 | |
| 19694 | # The archiver. |
| 19695 | AR=$lt_AR |
| 19696 | |
| 19697 | # Flags to create an archive. |
| 19698 | AR_FLAGS=$lt_AR_FLAGS |
| 19699 | |
| 19700 | # How to feed a file listing to the archiver. |
| 19701 | archiver_list_spec=$lt_archiver_list_spec |
| 19702 | |
| 19703 | # A symbol stripping program. |
| 19704 | STRIP=$lt_STRIP |
| 19705 | |
| 19706 | # Commands used to install an old-style archive. |
| 19707 | RANLIB=$lt_RANLIB |
| 19708 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19709 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19710 | |
| 19711 | # Whether to use a lock for old archive extraction. |
| 19712 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 19713 | |
| 19714 | # A C compiler. |
| 19715 | LTCC=$lt_CC |
| 19716 | |
| 19717 | # LTCC compiler flags. |
| 19718 | LTCFLAGS=$lt_CFLAGS |
| 19719 | |
| 19720 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19721 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19722 | |
| 19723 | # Transform the output of nm in a proper C declaration. |
| 19724 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19725 | |
| 19726 | # Transform the output of nm in a C name address pair. |
| 19727 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19728 | |
| 19729 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 19730 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 19731 | |
| 19732 | # Specify filename containing input files for \$NM. |
| 19733 | nm_file_list_spec=$lt_nm_file_list_spec |
| 19734 | |
| 19735 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 19736 | lt_sysroot=$lt_sysroot |
| 19737 | |
| 19738 | # The name of the directory that contains temporary libtool files. |
| 19739 | objdir=$objdir |
| 19740 | |
| 19741 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 19742 | MAGIC_CMD=$MAGIC_CMD |
| 19743 | |
| 19744 | # Must we lock files when doing compilation? |
| 19745 | need_locks=$lt_need_locks |
| 19746 | |
| 19747 | # Manifest tool. |
| 19748 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 19749 | |
| 19750 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 19751 | DSYMUTIL=$lt_DSYMUTIL |
| 19752 | |
| 19753 | # Tool to change global to local symbols on Mac OS X. |
| 19754 | NMEDIT=$lt_NMEDIT |
| 19755 | |
| 19756 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 19757 | LIPO=$lt_LIPO |
| 19758 | |
| 19759 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 19760 | OTOOL=$lt_OTOOL |
| 19761 | |
| 19762 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 19763 | OTOOL64=$lt_OTOOL64 |
| 19764 | |
| 19765 | # Old archive suffix (normally "a"). |
| 19766 | libext=$libext |
| 19767 | |
| 19768 | # Shared library suffix (normally ".so"). |
| 19769 | shrext_cmds=$lt_shrext_cmds |
| 19770 | |
| 19771 | # The commands to extract the exported symbol list from a shared archive. |
| 19772 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19773 | |
| 19774 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19775 | # restored at link time. |
| 19776 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 19777 | |
| 19778 | # Do we need the "lib" prefix for modules? |
| 19779 | need_lib_prefix=$need_lib_prefix |
| 19780 | |
| 19781 | # Do we need a version for libraries? |
| 19782 | need_version=$need_version |
| 19783 | |
| 19784 | # Library versioning type. |
| 19785 | version_type=$version_type |
| 19786 | |
| 19787 | # Shared library runtime path variable. |
| 19788 | runpath_var=$runpath_var |
| 19789 | |
| 19790 | # Shared library path variable. |
| 19791 | shlibpath_var=$shlibpath_var |
| 19792 | |
| 19793 | # Is shlibpath searched before the hard-coded library search path? |
| 19794 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19795 | |
| 19796 | # Format of library name prefix. |
| 19797 | libname_spec=$lt_libname_spec |
| 19798 | |
| 19799 | # List of archive names. First name is the real one, the rest are links. |
| 19800 | # The last name is the one that the linker finds with -lNAME |
| 19801 | library_names_spec=$lt_library_names_spec |
| 19802 | |
| 19803 | # The coded name of the library, if different from the real name. |
| 19804 | soname_spec=$lt_soname_spec |
| 19805 | |
| 19806 | # Permission mode override for installation of shared libraries. |
| 19807 | install_override_mode=$lt_install_override_mode |
| 19808 | |
| 19809 | # Command to use after installation of a shared archive. |
| 19810 | postinstall_cmds=$lt_postinstall_cmds |
| 19811 | |
| 19812 | # Command to use after uninstallation of a shared archive. |
| 19813 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19814 | |
| 19815 | # Commands used to finish a libtool library installation in a directory. |
| 19816 | finish_cmds=$lt_finish_cmds |
| 19817 | |
| 19818 | # As "finish_cmds", except a single script fragment to be evaled but |
| 19819 | # not shown. |
| 19820 | finish_eval=$lt_finish_eval |
| 19821 | |
| 19822 | # Whether we should hardcode library paths into libraries. |
| 19823 | hardcode_into_libs=$hardcode_into_libs |
| 19824 | |
| 19825 | # Compile-time system search path for libraries. |
| 19826 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19827 | |
| 19828 | # Run-time system search path for libraries. |
| 19829 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19830 | |
| 19831 | # Whether dlopen is supported. |
| 19832 | dlopen_support=$enable_dlopen |
| 19833 | |
| 19834 | # Whether dlopen of programs is supported. |
| 19835 | dlopen_self=$enable_dlopen_self |
| 19836 | |
| 19837 | # Whether dlopen of statically linked programs is supported. |
| 19838 | dlopen_self_static=$enable_dlopen_self_static |
| 19839 | |
| 19840 | # Commands to strip libraries. |
| 19841 | old_striplib=$lt_old_striplib |
| 19842 | striplib=$lt_striplib |
| 19843 | |
| 19844 | |
| 19845 | # The linker used to build libraries. |
| 19846 | LD=$lt_LD |
| 19847 | |
| 19848 | # How to create reloadable object files. |
| 19849 | reload_flag=$lt_reload_flag |
| 19850 | reload_cmds=$lt_reload_cmds |
| 19851 | |
| 19852 | # Commands used to build an old-style archive. |
| 19853 | old_archive_cmds=$lt_old_archive_cmds |
| 19854 | |
| 19855 | # A language specific compiler. |
| 19856 | CC=$lt_compiler |
| 19857 | |
| 19858 | # Is the compiler the GNU compiler? |
| 19859 | with_gcc=$GCC |
| 19860 | |
| 19861 | # Compiler flag to turn off builtin functions. |
| 19862 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 19863 | |
| 19864 | # Additional compiler flags for building library objects. |
| 19865 | pic_flag=$lt_lt_prog_compiler_pic |
| 19866 | |
| 19867 | # How to pass a linker flag through the compiler. |
| 19868 | wl=$lt_lt_prog_compiler_wl |
| 19869 | |
| 19870 | # Compiler flag to prevent dynamic linking. |
| 19871 | link_static_flag=$lt_lt_prog_compiler_static |
| 19872 | |
| 19873 | # Does compiler simultaneously support -c and -o options? |
| 19874 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 19875 | |
| 19876 | # Whether or not to add -lc for building shared libraries. |
| 19877 | build_libtool_need_lc=$archive_cmds_need_lc |
| 19878 | |
| 19879 | # Whether or not to disallow shared libs when runtime libs are static. |
| 19880 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 19881 | |
| 19882 | # Compiler flag to allow reflexive dlopens. |
| 19883 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 19884 | |
| 19885 | # Compiler flag to generate shared objects directly from archives. |
| 19886 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 19887 | |
| 19888 | # Whether the compiler copes with passing no objects directly. |
| 19889 | compiler_needs_object=$lt_compiler_needs_object |
| 19890 | |
| 19891 | # Create an old-style archive from a shared archive. |
| 19892 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 19893 | |
| 19894 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19895 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 19896 | |
| 19897 | # Commands used to build a shared archive. |
| 19898 | archive_cmds=$lt_archive_cmds |
| 19899 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 19900 | |
| 19901 | # Commands used to build a loadable module if different from building |
| 19902 | # a shared archive. |
| 19903 | module_cmds=$lt_module_cmds |
| 19904 | module_expsym_cmds=$lt_module_expsym_cmds |
| 19905 | |
| 19906 | # Whether we are building with GNU ld or not. |
| 19907 | with_gnu_ld=$lt_with_gnu_ld |
| 19908 | |
| 19909 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19910 | allow_undefined_flag=$lt_allow_undefined_flag |
| 19911 | |
| 19912 | # Flag that enforces no undefined symbols. |
| 19913 | no_undefined_flag=$lt_no_undefined_flag |
| 19914 | |
| 19915 | # Flag to hardcode \$libdir into a binary during linking. |
| 19916 | # This must work even if \$libdir does not exist |
| 19917 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 19918 | |
| 19919 | # Whether we need a single "-rpath" flag with a separated argument. |
| 19920 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 19921 | |
| 19922 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19923 | # DIR into the resulting binary. |
| 19924 | hardcode_direct=$hardcode_direct |
| 19925 | |
| 19926 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19927 | # DIR into the resulting binary and the resulting library dependency is |
| 19928 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 19929 | # library is relocated. |
| 19930 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 19931 | |
| 19932 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 19933 | # into the resulting binary. |
| 19934 | hardcode_minus_L=$hardcode_minus_L |
| 19935 | |
| 19936 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 19937 | # into the resulting binary. |
| 19938 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 19939 | |
| 19940 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 19941 | # into the library and all subsequent libraries and executables linked |
| 19942 | # against it. |
| 19943 | hardcode_automatic=$hardcode_automatic |
| 19944 | |
| 19945 | # Set to yes if linker adds runtime paths of dependent libraries |
| 19946 | # to runtime path list. |
| 19947 | inherit_rpath=$inherit_rpath |
| 19948 | |
| 19949 | # Whether libtool must link a program against all its dependency libraries. |
| 19950 | link_all_deplibs=$link_all_deplibs |
| 19951 | |
| 19952 | # Set to "yes" if exported symbols are required. |
| 19953 | always_export_symbols=$always_export_symbols |
| 19954 | |
| 19955 | # The commands to list exported symbols. |
| 19956 | export_symbols_cmds=$lt_export_symbols_cmds |
| 19957 | |
| 19958 | # Symbols that should not be listed in the preloaded symbols. |
| 19959 | exclude_expsyms=$lt_exclude_expsyms |
| 19960 | |
| 19961 | # Symbols that must always be exported. |
| 19962 | include_expsyms=$lt_include_expsyms |
| 19963 | |
| 19964 | # Commands necessary for linking programs (against libraries) with templates. |
| 19965 | prelink_cmds=$lt_prelink_cmds |
| 19966 | |
| 19967 | # Commands necessary for finishing linking programs. |
| 19968 | postlink_cmds=$lt_postlink_cmds |
| 19969 | |
| 19970 | # Specify filename containing input files. |
| 19971 | file_list_spec=$lt_file_list_spec |
| 19972 | |
| 19973 | # How to hardcode a shared library path into an executable. |
| 19974 | hardcode_action=$hardcode_action |
| 19975 | |
| 19976 | # The directories searched by this compiler when creating a shared library. |
| 19977 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 19978 | |
| 19979 | # Dependencies to place before and after the objects being linked to |
| 19980 | # create a shared library. |
| 19981 | predep_objects=$lt_predep_objects |
| 19982 | postdep_objects=$lt_postdep_objects |
| 19983 | predeps=$lt_predeps |
| 19984 | postdeps=$lt_postdeps |
| 19985 | |
| 19986 | # The library search path used internally by the compiler when linking |
| 19987 | # a shared library. |
| 19988 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 19989 | |
| 19990 | # ### END LIBTOOL CONFIG |
| 19991 | |
| 19992 | _LT_EOF |
| 19993 | |
| 19994 | case $host_os in |
| 19995 | aix3*) |
| 19996 | cat <<\_LT_EOF >> "$cfgfile" |
| 19997 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 19998 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 19999 | # vanish in a puff of smoke. |
| 20000 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 20001 | COLLECT_NAMES= |
| 20002 | export COLLECT_NAMES |
| 20003 | fi |
| 20004 | _LT_EOF |
| 20005 | ;; |
| 20006 | esac |
| 20007 | |
| 20008 | |
| 20009 | ltmain="$ac_aux_dir/ltmain.sh" |
| 20010 | |
| 20011 | |
| 20012 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 20013 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 20014 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 20015 | # is reportedly fixed, but why not run on old versions too? |
| 20016 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 20017 | || (rm -f "$cfgfile"; exit 1) |
| 20018 | |
| 20019 | if test x"$xsi_shell" = xyes; then |
| 20020 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 20021 | func_dirname ()\ |
| 20022 | {\ |
| 20023 | \ case ${1} in\ |
| 20024 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 20025 | \ * ) func_dirname_result="${3}" ;;\ |
| 20026 | \ esac\ |
| 20027 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20028 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20029 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20030 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20031 | |
| 20032 | |
| 20033 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 20034 | func_basename ()\ |
| 20035 | {\ |
| 20036 | \ func_basename_result="${1##*/}"\ |
| 20037 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20038 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20039 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20040 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20041 | |
| 20042 | |
| 20043 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 20044 | func_dirname_and_basename ()\ |
| 20045 | {\ |
| 20046 | \ case ${1} in\ |
| 20047 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 20048 | \ * ) func_dirname_result="${3}" ;;\ |
| 20049 | \ esac\ |
| 20050 | \ func_basename_result="${1##*/}"\ |
| 20051 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20052 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20053 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20054 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20055 | |
| 20056 | |
| 20057 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 20058 | func_stripname ()\ |
| 20059 | {\ |
| 20060 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 20061 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 20062 | \ func_stripname_result=${3}\ |
| 20063 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 20064 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 20065 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20066 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20067 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20068 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20069 | |
| 20070 | |
| 20071 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 20072 | func_split_long_opt ()\ |
| 20073 | {\ |
| 20074 | \ func_split_long_opt_name=${1%%=*}\ |
| 20075 | \ func_split_long_opt_arg=${1#*=}\ |
| 20076 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20077 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20078 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20079 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20080 | |
| 20081 | |
| 20082 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 20083 | func_split_short_opt ()\ |
| 20084 | {\ |
| 20085 | \ func_split_short_opt_arg=${1#??}\ |
| 20086 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 20087 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20088 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20089 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20090 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20091 | |
| 20092 | |
| 20093 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 20094 | func_lo2o ()\ |
| 20095 | {\ |
| 20096 | \ case ${1} in\ |
| 20097 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 20098 | \ *) func_lo2o_result=${1} ;;\ |
| 20099 | \ esac\ |
| 20100 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20101 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20102 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20103 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20104 | |
| 20105 | |
| 20106 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 20107 | func_xform ()\ |
| 20108 | {\ |
| 20109 | func_xform_result=${1%.*}.lo\ |
| 20110 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20111 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20112 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20113 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20114 | |
| 20115 | |
| 20116 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 20117 | func_arith ()\ |
| 20118 | {\ |
| 20119 | func_arith_result=$(( $* ))\ |
| 20120 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20121 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20122 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20123 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20124 | |
| 20125 | |
| 20126 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 20127 | func_len ()\ |
| 20128 | {\ |
| 20129 | func_len_result=${#1}\ |
| 20130 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20131 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20132 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20133 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20134 | |
| 20135 | fi |
| 20136 | |
| 20137 | if test x"$lt_shell_append" = xyes; then |
| 20138 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 20139 | func_append ()\ |
| 20140 | {\ |
| 20141 | eval "${1}+=\\${2}"\ |
| 20142 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20143 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20144 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20145 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20146 | |
| 20147 | |
| 20148 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 20149 | func_append_quoted ()\ |
| 20150 | {\ |
| 20151 | \ func_quote_for_eval "${2}"\ |
| 20152 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 20153 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20154 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20155 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20156 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20157 | |
| 20158 | |
| 20159 | # Save a `func_append' function call where possible by direct use of '+=' |
| 20160 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 20161 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20162 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20163 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20164 | else |
| 20165 | # Save a `func_append' function call even when '+=' is not available |
| 20166 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 20167 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20168 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20169 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20170 | fi |
| 20171 | |
| 20172 | if test x"$_lt_function_replace_fail" = x":"; then |
| 20173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 20174 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 20175 | fi |
| 20176 | |
| 20177 | |
| 20178 | mv -f "$cfgfile" "$ofile" || |
| 20179 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 20180 | chmod +x "$ofile" |
| 20181 | |
| 20182 | |
| 20183 | cat <<_LT_EOF >> "$ofile" |
| 20184 | |
| 20185 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 20186 | |
| 20187 | # The linker used to build libraries. |
| 20188 | LD=$lt_LD_CXX |
| 20189 | |
| 20190 | # How to create reloadable object files. |
| 20191 | reload_flag=$lt_reload_flag_CXX |
| 20192 | reload_cmds=$lt_reload_cmds_CXX |
| 20193 | |
| 20194 | # Commands used to build an old-style archive. |
| 20195 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20196 | |
| 20197 | # A language specific compiler. |
| 20198 | CC=$lt_compiler_CXX |
| 20199 | |
| 20200 | # Is the compiler the GNU compiler? |
| 20201 | with_gcc=$GCC_CXX |
| 20202 | |
| 20203 | # Compiler flag to turn off builtin functions. |
| 20204 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20205 | |
| 20206 | # Additional compiler flags for building library objects. |
| 20207 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20208 | |
| 20209 | # How to pass a linker flag through the compiler. |
| 20210 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20211 | |
| 20212 | # Compiler flag to prevent dynamic linking. |
| 20213 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20214 | |
| 20215 | # Does compiler simultaneously support -c and -o options? |
| 20216 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20217 | |
| 20218 | # Whether or not to add -lc for building shared libraries. |
| 20219 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20220 | |
| 20221 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20222 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20223 | |
| 20224 | # Compiler flag to allow reflexive dlopens. |
| 20225 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20226 | |
| 20227 | # Compiler flag to generate shared objects directly from archives. |
| 20228 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20229 | |
| 20230 | # Whether the compiler copes with passing no objects directly. |
| 20231 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 20232 | |
| 20233 | # Create an old-style archive from a shared archive. |
| 20234 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20235 | |
| 20236 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20237 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20238 | |
| 20239 | # Commands used to build a shared archive. |
| 20240 | archive_cmds=$lt_archive_cmds_CXX |
| 20241 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20242 | |
| 20243 | # Commands used to build a loadable module if different from building |
| 20244 | # a shared archive. |
| 20245 | module_cmds=$lt_module_cmds_CXX |
| 20246 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20247 | |
| 20248 | # Whether we are building with GNU ld or not. |
| 20249 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 20250 | |
| 20251 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20252 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20253 | |
| 20254 | # Flag that enforces no undefined symbols. |
| 20255 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20256 | |
| 20257 | # Flag to hardcode \$libdir into a binary during linking. |
| 20258 | # This must work even if \$libdir does not exist |
| 20259 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20260 | |
| 20261 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20262 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20263 | |
| 20264 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20265 | # DIR into the resulting binary. |
| 20266 | hardcode_direct=$hardcode_direct_CXX |
| 20267 | |
| 20268 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20269 | # DIR into the resulting binary and the resulting library dependency is |
| 20270 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20271 | # library is relocated. |
| 20272 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 20273 | |
| 20274 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20275 | # into the resulting binary. |
| 20276 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20277 | |
| 20278 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20279 | # into the resulting binary. |
| 20280 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20281 | |
| 20282 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20283 | # into the library and all subsequent libraries and executables linked |
| 20284 | # against it. |
| 20285 | hardcode_automatic=$hardcode_automatic_CXX |
| 20286 | |
| 20287 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20288 | # to runtime path list. |
| 20289 | inherit_rpath=$inherit_rpath_CXX |
| 20290 | |
| 20291 | # Whether libtool must link a program against all its dependency libraries. |
| 20292 | link_all_deplibs=$link_all_deplibs_CXX |
| 20293 | |
| 20294 | # Set to "yes" if exported symbols are required. |
| 20295 | always_export_symbols=$always_export_symbols_CXX |
| 20296 | |
| 20297 | # The commands to list exported symbols. |
| 20298 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20299 | |
| 20300 | # Symbols that should not be listed in the preloaded symbols. |
| 20301 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20302 | |
| 20303 | # Symbols that must always be exported. |
| 20304 | include_expsyms=$lt_include_expsyms_CXX |
| 20305 | |
| 20306 | # Commands necessary for linking programs (against libraries) with templates. |
| 20307 | prelink_cmds=$lt_prelink_cmds_CXX |
| 20308 | |
| 20309 | # Commands necessary for finishing linking programs. |
| 20310 | postlink_cmds=$lt_postlink_cmds_CXX |
| 20311 | |
| 20312 | # Specify filename containing input files. |
| 20313 | file_list_spec=$lt_file_list_spec_CXX |
| 20314 | |
| 20315 | # How to hardcode a shared library path into an executable. |
| 20316 | hardcode_action=$hardcode_action_CXX |
| 20317 | |
| 20318 | # The directories searched by this compiler when creating a shared library. |
| 20319 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 20320 | |
| 20321 | # Dependencies to place before and after the objects being linked to |
| 20322 | # create a shared library. |
| 20323 | predep_objects=$lt_predep_objects_CXX |
| 20324 | postdep_objects=$lt_postdep_objects_CXX |
| 20325 | predeps=$lt_predeps_CXX |
| 20326 | postdeps=$lt_postdeps_CXX |
| 20327 | |
| 20328 | # The library search path used internally by the compiler when linking |
| 20329 | # a shared library. |
| 20330 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20331 | |
| 20332 | # ### END LIBTOOL TAG CONFIG: CXX |
| 20333 | _LT_EOF |
| 20334 | |
| 20335 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20336 | |
| 20337 | esac |
| 20338 | done # for ac_tag |
| 20339 | |
| 20340 | |
| 20341 | as_fn_exit 0 |
| 20342 | _ACEOF |
| 20343 | ac_clean_files=$ac_clean_files_save |
| 20344 | |
| 20345 | test $ac_write_fail = 0 || |
| 20346 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 20347 | |
| 20348 | |
| 20349 | # configure is writing to config.log, and then calls config.status. |
| 20350 | # config.status does its own redirection, appending to config.log. |
| 20351 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20352 | # by configure, so config.status won't be able to write to it; its |
| 20353 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20354 | # effectively closing config.log, so it can be properly (re)opened and |
| 20355 | # appended to by config.status. When coming back to configure, we |
| 20356 | # need to make the FD available again. |
| 20357 | if test "$no_create" != yes; then |
| 20358 | ac_cs_success=: |
| 20359 | ac_config_status_args= |
| 20360 | test "$silent" = yes && |
| 20361 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20362 | exec 5>/dev/null |
| 20363 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20364 | exec 5>>config.log |
| 20365 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20366 | # would make configure fail if this is the last instruction. |
| 20367 | $ac_cs_success || as_fn_exit 1 |
| 20368 | fi |
| 20369 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 20371 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 20372 | fi |
| 20373 | |