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 | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 686 | SQLITE3_VERSION |
| 687 | SQLITE3_LDFLAGS |
| 688 | SQLITE3_CFLAGS |
| 689 | am__fastdepOBJCXX_FALSE |
| 690 | am__fastdepOBJCXX_TRUE |
| 691 | OBJCXXDEPMODE |
| 692 | ac_ct_OBJCXX |
| 693 | OBJCXXFLAGS |
| 694 | OBJCXX |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 695 | CXXCPP |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 696 | am__fastdepCXX_FALSE |
| 697 | am__fastdepCXX_TRUE |
| 698 | CXXDEPMODE |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 699 | ac_ct_CXX |
| 700 | CXXFLAGS |
| 701 | CXX |
| 702 | CPP |
| 703 | OTOOL64 |
| 704 | OTOOL |
| 705 | LIPO |
| 706 | NMEDIT |
| 707 | DSYMUTIL |
| 708 | MANIFEST_TOOL |
| 709 | RANLIB |
| 710 | DLLTOOL |
| 711 | OBJDUMP |
| 712 | LN_S |
| 713 | NM |
| 714 | ac_ct_DUMPBIN |
| 715 | DUMPBIN |
| 716 | LD |
| 717 | FGREP |
| 718 | EGREP |
| 719 | GREP |
| 720 | SED |
| 721 | host_os |
| 722 | host_vendor |
| 723 | host_cpu |
| 724 | host |
| 725 | build_os |
| 726 | build_vendor |
| 727 | build_cpu |
| 728 | build |
| 729 | LIBTOOL |
| 730 | am__fastdepCC_FALSE |
| 731 | am__fastdepCC_TRUE |
| 732 | CCDEPMODE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 733 | am__nodep |
| 734 | AMDEPBACKSLASH |
| 735 | AMDEP_FALSE |
| 736 | AMDEP_TRUE |
| 737 | am__quote |
| 738 | am__include |
| 739 | DEPDIR |
| 740 | OBJEXT |
| 741 | EXEEXT |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 742 | ac_ct_CC |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 743 | CPPFLAGS |
| 744 | LDFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 745 | CFLAGS |
| 746 | CC |
| 747 | ac_ct_AR |
| 748 | AR |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 749 | MAINT |
| 750 | MAINTAINER_MODE_FALSE |
| 751 | MAINTAINER_MODE_TRUE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 752 | AM_BACKSLASH |
| 753 | AM_DEFAULT_VERBOSITY |
| 754 | AM_DEFAULT_V |
| 755 | AM_V |
| 756 | am__untar |
| 757 | am__tar |
| 758 | AMTAR |
| 759 | am__leading_dot |
| 760 | SET_MAKE |
| 761 | AWK |
| 762 | mkdir_p |
| 763 | MKDIR_P |
| 764 | INSTALL_STRIP_PROGRAM |
| 765 | STRIP |
| 766 | install_sh |
| 767 | MAKEINFO |
| 768 | AUTOHEADER |
| 769 | AUTOMAKE |
| 770 | AUTOCONF |
| 771 | ACLOCAL |
| 772 | VERSION |
| 773 | PACKAGE |
| 774 | CYGPATH_W |
| 775 | am__isrc |
| 776 | INSTALL_DATA |
| 777 | INSTALL_SCRIPT |
| 778 | INSTALL_PROGRAM |
| 779 | target_alias |
| 780 | host_alias |
| 781 | build_alias |
| 782 | LIBS |
| 783 | ECHO_T |
| 784 | ECHO_N |
| 785 | ECHO_C |
| 786 | DEFS |
| 787 | mandir |
| 788 | localedir |
| 789 | libdir |
| 790 | psdir |
| 791 | pdfdir |
| 792 | dvidir |
| 793 | htmldir |
| 794 | infodir |
| 795 | docdir |
| 796 | oldincludedir |
| 797 | includedir |
| 798 | localstatedir |
| 799 | sharedstatedir |
| 800 | sysconfdir |
| 801 | datadir |
| 802 | datarootdir |
| 803 | libexecdir |
| 804 | sbindir |
| 805 | bindir |
| 806 | program_transform_name |
| 807 | prefix |
| 808 | exec_prefix |
| 809 | PACKAGE_URL |
| 810 | PACKAGE_BUGREPORT |
| 811 | PACKAGE_STRING |
| 812 | PACKAGE_VERSION |
| 813 | PACKAGE_TARNAME |
| 814 | PACKAGE_NAME |
| 815 | PATH_SEPARATOR |
| 816 | SHELL' |
| 817 | ac_subst_files='' |
| 818 | ac_user_opts=' |
| 819 | enable_option_checking |
| 820 | enable_silent_rules |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 821 | enable_maintainer_mode |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 822 | enable_dependency_tracking |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 823 | enable_shared |
| 824 | enable_static |
| 825 | with_pic |
| 826 | enable_fast_install |
| 827 | with_gnu_ld |
| 828 | with_sysroot |
| 829 | enable_libtool_lock |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 830 | with_sqlite3 |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 831 | enable_doxygen_doc |
| 832 | enable_doxygen_dot |
| 833 | enable_doxygen_man |
| 834 | enable_doxygen_rtf |
| 835 | enable_doxygen_xml |
| 836 | enable_doxygen_chm |
| 837 | enable_doxygen_chi |
| 838 | enable_doxygen_html |
| 839 | enable_doxygen_ps |
| 840 | enable_doxygen_pdf |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 841 | ' |
| 842 | ac_precious_vars='build_alias |
| 843 | host_alias |
| 844 | target_alias |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 845 | CC |
| 846 | CFLAGS |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 847 | LDFLAGS |
| 848 | LIBS |
| 849 | CPPFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 850 | CPP |
| 851 | CXX |
| 852 | CXXFLAGS |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 853 | CCC |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 854 | CXXCPP |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 855 | OBJCXX |
| 856 | OBJCXXFLAGS |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 857 | DOXYGEN_PAPER_SIZE' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 858 | |
| 859 | |
| 860 | # Initialize some variables set by options. |
| 861 | ac_init_help= |
| 862 | ac_init_version=false |
| 863 | ac_unrecognized_opts= |
| 864 | ac_unrecognized_sep= |
| 865 | # The variables have the same names as the options, with |
| 866 | # dashes changed to underlines. |
| 867 | cache_file=/dev/null |
| 868 | exec_prefix=NONE |
| 869 | no_create= |
| 870 | no_recursion= |
| 871 | prefix=NONE |
| 872 | program_prefix=NONE |
| 873 | program_suffix=NONE |
| 874 | program_transform_name=s,x,x, |
| 875 | silent= |
| 876 | site= |
| 877 | srcdir= |
| 878 | verbose= |
| 879 | x_includes=NONE |
| 880 | x_libraries=NONE |
| 881 | |
| 882 | # Installation directory options. |
| 883 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 884 | # and all the variables that are supposed to be based on exec_prefix |
| 885 | # by default will actually change. |
| 886 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 887 | # (The list follows the same order as the GNU Coding Standards.) |
| 888 | bindir='${exec_prefix}/bin' |
| 889 | sbindir='${exec_prefix}/sbin' |
| 890 | libexecdir='${exec_prefix}/libexec' |
| 891 | datarootdir='${prefix}/share' |
| 892 | datadir='${datarootdir}' |
| 893 | sysconfdir='${prefix}/etc' |
| 894 | sharedstatedir='${prefix}/com' |
| 895 | localstatedir='${prefix}/var' |
| 896 | includedir='${prefix}/include' |
| 897 | oldincludedir='/usr/include' |
| 898 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 899 | infodir='${datarootdir}/info' |
| 900 | htmldir='${docdir}' |
| 901 | dvidir='${docdir}' |
| 902 | pdfdir='${docdir}' |
| 903 | psdir='${docdir}' |
| 904 | libdir='${exec_prefix}/lib' |
| 905 | localedir='${datarootdir}/locale' |
| 906 | mandir='${datarootdir}/man' |
| 907 | |
| 908 | ac_prev= |
| 909 | ac_dashdash= |
| 910 | for ac_option |
| 911 | do |
| 912 | # If the previous option needs an argument, assign it. |
| 913 | if test -n "$ac_prev"; then |
| 914 | eval $ac_prev=\$ac_option |
| 915 | ac_prev= |
| 916 | continue |
| 917 | fi |
| 918 | |
| 919 | case $ac_option in |
| 920 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 921 | *=) ac_optarg= ;; |
| 922 | *) ac_optarg=yes ;; |
| 923 | esac |
| 924 | |
| 925 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 926 | |
| 927 | case $ac_dashdash$ac_option in |
| 928 | --) |
| 929 | ac_dashdash=yes ;; |
| 930 | |
| 931 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 932 | ac_prev=bindir ;; |
| 933 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 934 | bindir=$ac_optarg ;; |
| 935 | |
| 936 | -build | --build | --buil | --bui | --bu) |
| 937 | ac_prev=build_alias ;; |
| 938 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 939 | build_alias=$ac_optarg ;; |
| 940 | |
| 941 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 942 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 943 | ac_prev=cache_file ;; |
| 944 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 945 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 946 | cache_file=$ac_optarg ;; |
| 947 | |
| 948 | --config-cache | -C) |
| 949 | cache_file=config.cache ;; |
| 950 | |
| 951 | -datadir | --datadir | --datadi | --datad) |
| 952 | ac_prev=datadir ;; |
| 953 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 954 | datadir=$ac_optarg ;; |
| 955 | |
| 956 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 957 | | --dataroo | --dataro | --datar) |
| 958 | ac_prev=datarootdir ;; |
| 959 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 960 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 961 | datarootdir=$ac_optarg ;; |
| 962 | |
| 963 | -disable-* | --disable-*) |
| 964 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 965 | # Reject names that are not valid shell variable names. |
| 966 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 967 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 968 | ac_useropt_orig=$ac_useropt |
| 969 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 970 | case $ac_user_opts in |
| 971 | *" |
| 972 | "enable_$ac_useropt" |
| 973 | "*) ;; |
| 974 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 975 | ac_unrecognized_sep=', ';; |
| 976 | esac |
| 977 | eval enable_$ac_useropt=no ;; |
| 978 | |
| 979 | -docdir | --docdir | --docdi | --doc | --do) |
| 980 | ac_prev=docdir ;; |
| 981 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 982 | docdir=$ac_optarg ;; |
| 983 | |
| 984 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 985 | ac_prev=dvidir ;; |
| 986 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 987 | dvidir=$ac_optarg ;; |
| 988 | |
| 989 | -enable-* | --enable-*) |
| 990 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 991 | # Reject names that are not valid shell variable names. |
| 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 994 | ac_useropt_orig=$ac_useropt |
| 995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 996 | case $ac_user_opts in |
| 997 | *" |
| 998 | "enable_$ac_useropt" |
| 999 | "*) ;; |
| 1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1001 | ac_unrecognized_sep=', ';; |
| 1002 | esac |
| 1003 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1004 | |
| 1005 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1006 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1007 | | --exec | --exe | --ex) |
| 1008 | ac_prev=exec_prefix ;; |
| 1009 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1010 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1011 | | --exec=* | --exe=* | --ex=*) |
| 1012 | exec_prefix=$ac_optarg ;; |
| 1013 | |
| 1014 | -gas | --gas | --ga | --g) |
| 1015 | # Obsolete; use --with-gas. |
| 1016 | with_gas=yes ;; |
| 1017 | |
| 1018 | -help | --help | --hel | --he | -h) |
| 1019 | ac_init_help=long ;; |
| 1020 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1021 | ac_init_help=recursive ;; |
| 1022 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1023 | ac_init_help=short ;; |
| 1024 | |
| 1025 | -host | --host | --hos | --ho) |
| 1026 | ac_prev=host_alias ;; |
| 1027 | -host=* | --host=* | --hos=* | --ho=*) |
| 1028 | host_alias=$ac_optarg ;; |
| 1029 | |
| 1030 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1031 | ac_prev=htmldir ;; |
| 1032 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1033 | | --ht=*) |
| 1034 | htmldir=$ac_optarg ;; |
| 1035 | |
| 1036 | -includedir | --includedir | --includedi | --included | --include \ |
| 1037 | | --includ | --inclu | --incl | --inc) |
| 1038 | ac_prev=includedir ;; |
| 1039 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1040 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1041 | includedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1044 | ac_prev=infodir ;; |
| 1045 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1046 | infodir=$ac_optarg ;; |
| 1047 | |
| 1048 | -libdir | --libdir | --libdi | --libd) |
| 1049 | ac_prev=libdir ;; |
| 1050 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1051 | libdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1054 | | --libexe | --libex | --libe) |
| 1055 | ac_prev=libexecdir ;; |
| 1056 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1057 | | --libexe=* | --libex=* | --libe=*) |
| 1058 | libexecdir=$ac_optarg ;; |
| 1059 | |
| 1060 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1061 | ac_prev=localedir ;; |
| 1062 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1063 | localedir=$ac_optarg ;; |
| 1064 | |
| 1065 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1066 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1067 | ac_prev=localstatedir ;; |
| 1068 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1069 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1070 | localstatedir=$ac_optarg ;; |
| 1071 | |
| 1072 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1073 | ac_prev=mandir ;; |
| 1074 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1075 | mandir=$ac_optarg ;; |
| 1076 | |
| 1077 | -nfp | --nfp | --nf) |
| 1078 | # Obsolete; use --without-fp. |
| 1079 | with_fp=no ;; |
| 1080 | |
| 1081 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1082 | | --no-cr | --no-c | -n) |
| 1083 | no_create=yes ;; |
| 1084 | |
| 1085 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1086 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1087 | no_recursion=yes ;; |
| 1088 | |
| 1089 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1090 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1091 | | --oldin | --oldi | --old | --ol | --o) |
| 1092 | ac_prev=oldincludedir ;; |
| 1093 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1094 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1095 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1096 | oldincludedir=$ac_optarg ;; |
| 1097 | |
| 1098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1099 | ac_prev=prefix ;; |
| 1100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1101 | prefix=$ac_optarg ;; |
| 1102 | |
| 1103 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1104 | | --program-pre | --program-pr | --program-p) |
| 1105 | ac_prev=program_prefix ;; |
| 1106 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1107 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1108 | program_prefix=$ac_optarg ;; |
| 1109 | |
| 1110 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1111 | | --program-suf | --program-su | --program-s) |
| 1112 | ac_prev=program_suffix ;; |
| 1113 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1114 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1115 | program_suffix=$ac_optarg ;; |
| 1116 | |
| 1117 | -program-transform-name | --program-transform-name \ |
| 1118 | | --program-transform-nam | --program-transform-na \ |
| 1119 | | --program-transform-n | --program-transform- \ |
| 1120 | | --program-transform | --program-transfor \ |
| 1121 | | --program-transfo | --program-transf \ |
| 1122 | | --program-trans | --program-tran \ |
| 1123 | | --progr-tra | --program-tr | --program-t) |
| 1124 | ac_prev=program_transform_name ;; |
| 1125 | -program-transform-name=* | --program-transform-name=* \ |
| 1126 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1127 | | --program-transform-n=* | --program-transform-=* \ |
| 1128 | | --program-transform=* | --program-transfor=* \ |
| 1129 | | --program-transfo=* | --program-transf=* \ |
| 1130 | | --program-trans=* | --program-tran=* \ |
| 1131 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1132 | program_transform_name=$ac_optarg ;; |
| 1133 | |
| 1134 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1135 | ac_prev=pdfdir ;; |
| 1136 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1137 | pdfdir=$ac_optarg ;; |
| 1138 | |
| 1139 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1140 | ac_prev=psdir ;; |
| 1141 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1142 | psdir=$ac_optarg ;; |
| 1143 | |
| 1144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1145 | | -silent | --silent | --silen | --sile | --sil) |
| 1146 | silent=yes ;; |
| 1147 | |
| 1148 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1149 | ac_prev=sbindir ;; |
| 1150 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1151 | | --sbi=* | --sb=*) |
| 1152 | sbindir=$ac_optarg ;; |
| 1153 | |
| 1154 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1155 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1156 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1157 | | --sha | --sh) |
| 1158 | ac_prev=sharedstatedir ;; |
| 1159 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1160 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1161 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1162 | | --sha=* | --sh=*) |
| 1163 | sharedstatedir=$ac_optarg ;; |
| 1164 | |
| 1165 | -site | --site | --sit) |
| 1166 | ac_prev=site ;; |
| 1167 | -site=* | --site=* | --sit=*) |
| 1168 | site=$ac_optarg ;; |
| 1169 | |
| 1170 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1171 | ac_prev=srcdir ;; |
| 1172 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1173 | srcdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1176 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1177 | ac_prev=sysconfdir ;; |
| 1178 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1179 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1180 | sysconfdir=$ac_optarg ;; |
| 1181 | |
| 1182 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1183 | ac_prev=target_alias ;; |
| 1184 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1185 | target_alias=$ac_optarg ;; |
| 1186 | |
| 1187 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1188 | verbose=yes ;; |
| 1189 | |
| 1190 | -version | --version | --versio | --versi | --vers | -V) |
| 1191 | ac_init_version=: ;; |
| 1192 | |
| 1193 | -with-* | --with-*) |
| 1194 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1195 | # Reject names that are not valid shell variable names. |
| 1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1197 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1198 | ac_useropt_orig=$ac_useropt |
| 1199 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1200 | case $ac_user_opts in |
| 1201 | *" |
| 1202 | "with_$ac_useropt" |
| 1203 | "*) ;; |
| 1204 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1205 | ac_unrecognized_sep=', ';; |
| 1206 | esac |
| 1207 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1208 | |
| 1209 | -without-* | --without-*) |
| 1210 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1211 | # Reject names that are not valid shell variable names. |
| 1212 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1213 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1214 | ac_useropt_orig=$ac_useropt |
| 1215 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1216 | case $ac_user_opts in |
| 1217 | *" |
| 1218 | "with_$ac_useropt" |
| 1219 | "*) ;; |
| 1220 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1221 | ac_unrecognized_sep=', ';; |
| 1222 | esac |
| 1223 | eval with_$ac_useropt=no ;; |
| 1224 | |
| 1225 | --x) |
| 1226 | # Obsolete; use --with-x. |
| 1227 | with_x=yes ;; |
| 1228 | |
| 1229 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1230 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1231 | ac_prev=x_includes ;; |
| 1232 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1233 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1234 | x_includes=$ac_optarg ;; |
| 1235 | |
| 1236 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1237 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1238 | ac_prev=x_libraries ;; |
| 1239 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1240 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1241 | x_libraries=$ac_optarg ;; |
| 1242 | |
| 1243 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1244 | Try \`$0 --help' for more information" |
| 1245 | ;; |
| 1246 | |
| 1247 | *=*) |
| 1248 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1249 | # Reject names that are not valid shell variable names. |
| 1250 | case $ac_envvar in #( |
| 1251 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1252 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1253 | esac |
| 1254 | eval $ac_envvar=\$ac_optarg |
| 1255 | export $ac_envvar ;; |
| 1256 | |
| 1257 | *) |
| 1258 | # FIXME: should be removed in autoconf 3.0. |
| 1259 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1260 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1261 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1262 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1263 | ;; |
| 1264 | |
| 1265 | esac |
| 1266 | done |
| 1267 | |
| 1268 | if test -n "$ac_prev"; then |
| 1269 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1270 | as_fn_error $? "missing argument to $ac_option" |
| 1271 | fi |
| 1272 | |
| 1273 | if test -n "$ac_unrecognized_opts"; then |
| 1274 | case $enable_option_checking in |
| 1275 | no) ;; |
| 1276 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1277 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1278 | esac |
| 1279 | fi |
| 1280 | |
| 1281 | # Check all directory arguments for consistency. |
| 1282 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1283 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1284 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1285 | libdir localedir mandir |
| 1286 | do |
| 1287 | eval ac_val=\$$ac_var |
| 1288 | # Remove trailing slashes. |
| 1289 | case $ac_val in |
| 1290 | */ ) |
| 1291 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1292 | eval $ac_var=\$ac_val;; |
| 1293 | esac |
| 1294 | # Be sure to have absolute directory names. |
| 1295 | case $ac_val in |
| 1296 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1297 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1298 | esac |
| 1299 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1300 | done |
| 1301 | |
| 1302 | # There might be people who depend on the old broken behavior: `$host' |
| 1303 | # used to hold the argument of --host etc. |
| 1304 | # FIXME: To remove some day. |
| 1305 | build=$build_alias |
| 1306 | host=$host_alias |
| 1307 | target=$target_alias |
| 1308 | |
| 1309 | # FIXME: To remove some day. |
| 1310 | if test "x$host_alias" != x; then |
| 1311 | if test "x$build_alias" = x; then |
| 1312 | cross_compiling=maybe |
| 1313 | elif test "x$build_alias" != "x$host_alias"; then |
| 1314 | cross_compiling=yes |
| 1315 | fi |
| 1316 | fi |
| 1317 | |
| 1318 | ac_tool_prefix= |
| 1319 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1320 | |
| 1321 | test "$silent" = yes && exec 6>/dev/null |
| 1322 | |
| 1323 | |
| 1324 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1325 | ac_ls_di=`ls -di .` && |
| 1326 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1327 | as_fn_error $? "working directory cannot be determined" |
| 1328 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1329 | as_fn_error $? "pwd does not report name of working directory" |
| 1330 | |
| 1331 | |
| 1332 | # Find the source files, if location was not specified. |
| 1333 | if test -z "$srcdir"; then |
| 1334 | ac_srcdir_defaulted=yes |
| 1335 | # Try the directory containing this script, then the parent directory. |
| 1336 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1337 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1338 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1339 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1340 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1341 | $as_echo X"$as_myself" | |
| 1342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)[^/].*/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\/\)$/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | /^X\(\/\).*/{ |
| 1355 | s//\1/ |
| 1356 | q |
| 1357 | } |
| 1358 | s/.*/./; q'` |
| 1359 | srcdir=$ac_confdir |
| 1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1361 | srcdir=.. |
| 1362 | fi |
| 1363 | else |
| 1364 | ac_srcdir_defaulted=no |
| 1365 | fi |
| 1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1367 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1368 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1369 | fi |
| 1370 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1371 | ac_abs_confdir=`( |
| 1372 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1373 | pwd)` |
| 1374 | # When building in place, set srcdir=. |
| 1375 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1376 | srcdir=. |
| 1377 | fi |
| 1378 | # Remove unnecessary trailing slashes from srcdir. |
| 1379 | # Double slashes in file names in object file debugging info |
| 1380 | # mess up M-x gdb in Emacs. |
| 1381 | case $srcdir in |
| 1382 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1383 | esac |
| 1384 | for ac_var in $ac_precious_vars; do |
| 1385 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1387 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1388 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1389 | done |
| 1390 | |
| 1391 | # |
| 1392 | # Report the --help message. |
| 1393 | # |
| 1394 | if test "$ac_init_help" = "long"; then |
| 1395 | # Omit some internal or obsolete options to make the list less imposing. |
| 1396 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1397 | cat <<_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1398 | \`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] | 1399 | |
| 1400 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1401 | |
| 1402 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1403 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1404 | |
| 1405 | Defaults for the options are specified in brackets. |
| 1406 | |
| 1407 | Configuration: |
| 1408 | -h, --help display this help and exit |
| 1409 | --help=short display options specific to this package |
| 1410 | --help=recursive display the short help of all the included packages |
| 1411 | -V, --version display version information and exit |
| 1412 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1413 | --cache-file=FILE cache test results in FILE [disabled] |
| 1414 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1415 | -n, --no-create do not create output files |
| 1416 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1417 | |
| 1418 | Installation directories: |
| 1419 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1420 | [$ac_default_prefix] |
| 1421 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1422 | [PREFIX] |
| 1423 | |
| 1424 | By default, \`make install' will install all the files in |
| 1425 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1426 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1427 | for instance \`--prefix=\$HOME'. |
| 1428 | |
| 1429 | For better control, use the options below. |
| 1430 | |
| 1431 | Fine tuning of the installation directories: |
| 1432 | --bindir=DIR user executables [EPREFIX/bin] |
| 1433 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1434 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1435 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1436 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1437 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1438 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1439 | --includedir=DIR C header files [PREFIX/include] |
| 1440 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1441 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1442 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1443 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1444 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1445 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1446 | --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp] |
| 1447 | --htmldir=DIR html documentation [DOCDIR] |
| 1448 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1449 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1450 | --psdir=DIR ps documentation [DOCDIR] |
| 1451 | _ACEOF |
| 1452 | |
| 1453 | cat <<\_ACEOF |
| 1454 | |
| 1455 | Program names: |
| 1456 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1457 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1458 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1459 | |
| 1460 | System types: |
| 1461 | --build=BUILD configure for building on BUILD [guessed] |
| 1462 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1463 | _ACEOF |
| 1464 | fi |
| 1465 | |
| 1466 | if test -n "$ac_init_help"; then |
| 1467 | case $ac_init_help in |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1468 | short | recursive ) echo "Configuration of ndn-cpp 0.2:";; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1469 | esac |
| 1470 | cat <<\_ACEOF |
| 1471 | |
| 1472 | Optional Features: |
| 1473 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1474 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1475 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1476 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1477 | --disable-silent-rules verbose build output (undo: "make V=0") |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 1478 | --enable-maintainer-mode |
| 1479 | enable make rules and dependencies not useful (and |
| 1480 | sometimes confusing) to the casual installer |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1481 | --enable-dependency-tracking |
| 1482 | do not reject slow dependency extractors |
| 1483 | --disable-dependency-tracking |
| 1484 | speeds up one-time build |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1485 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1486 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1487 | --enable-fast-install[=PKGS] |
| 1488 | optimize for fast installation [default=yes] |
| 1489 | --disable-libtool-lock avoid locking (might break parallel builds) |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1490 | --disable-doxygen-doc don't generate any doxygen documentation |
| 1491 | --enable-doxygen-dot generate graphics for doxygen documentation |
| 1492 | --enable-doxygen-man generate doxygen manual pages |
| 1493 | --enable-doxygen-rtf generate doxygen RTF documentation |
| 1494 | --enable-doxygen-xml generate doxygen XML documentation |
| 1495 | --enable-doxygen-chm generate doxygen compressed HTML help documentation |
| 1496 | --enable-doxygen-chi generate doxygen seperate compressed HTML help index |
| 1497 | file |
| 1498 | --disable-doxygen-html don't generate doxygen plain HTML documentation |
| 1499 | --enable-doxygen-ps generate doxygen PostScript documentation |
| 1500 | --enable-doxygen-pdf generate doxygen PDF documentation |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1501 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1502 | Optional Packages: |
| 1503 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1504 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1505 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1506 | both] |
| 1507 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1508 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1509 | (or the compiler's sysroot if not specified). |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1510 | --with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally |
| 1511 | specify the prefix for sqlite3 library |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1512 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1513 | Some influential environment variables: |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1514 | CC C compiler command |
| 1515 | CFLAGS C compiler flags |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1516 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1517 | nonstandard directory <lib dir> |
| 1518 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1519 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1520 | you have headers in a nonstandard directory <include dir> |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1521 | CPP C preprocessor |
| 1522 | CXX C++ compiler command |
| 1523 | CXXFLAGS C++ compiler flags |
| 1524 | CXXCPP C++ preprocessor |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1525 | OBJCXX Objective C++ compiler command |
| 1526 | OBJCXXFLAGS Objective C++ compiler flags |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1527 | DOXYGEN_PAPER_SIZE |
| 1528 | a4wide (default), a4, letter, legal or executive |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1529 | |
| 1530 | Use these variables to override the choices made by `configure' or to help |
| 1531 | it to find libraries and programs with nonstandard names/locations. |
| 1532 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1533 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1534 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>. |
| 1535 | _ACEOF |
| 1536 | ac_status=$? |
| 1537 | fi |
| 1538 | |
| 1539 | if test "$ac_init_help" = "recursive"; then |
| 1540 | # If there are subdirs, report their specific --help. |
| 1541 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1542 | test -d "$ac_dir" || |
| 1543 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1544 | continue |
| 1545 | ac_builddir=. |
| 1546 | |
| 1547 | case "$ac_dir" in |
| 1548 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1549 | *) |
| 1550 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1551 | # A ".." for each directory in $ac_dir_suffix. |
| 1552 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1553 | case $ac_top_builddir_sub in |
| 1554 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1555 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1556 | esac ;; |
| 1557 | esac |
| 1558 | ac_abs_top_builddir=$ac_pwd |
| 1559 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1560 | # for backward compatibility: |
| 1561 | ac_top_builddir=$ac_top_build_prefix |
| 1562 | |
| 1563 | case $srcdir in |
| 1564 | .) # We are building in place. |
| 1565 | ac_srcdir=. |
| 1566 | ac_top_srcdir=$ac_top_builddir_sub |
| 1567 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1568 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1569 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1570 | ac_top_srcdir=$srcdir |
| 1571 | ac_abs_top_srcdir=$srcdir ;; |
| 1572 | *) # Relative name. |
| 1573 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1574 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1575 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1576 | esac |
| 1577 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1578 | |
| 1579 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1580 | # Check for guested configure. |
| 1581 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1582 | echo && |
| 1583 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1584 | elif test -f "$ac_srcdir/configure"; then |
| 1585 | echo && |
| 1586 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1587 | else |
| 1588 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1589 | fi || ac_status=$? |
| 1590 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1591 | done |
| 1592 | fi |
| 1593 | |
| 1594 | test -n "$ac_init_help" && exit $ac_status |
| 1595 | if $ac_init_version; then |
| 1596 | cat <<\_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1597 | ndn-cpp configure 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1598 | generated by GNU Autoconf 2.69 |
| 1599 | |
| 1600 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1601 | This configure script is free software; the Free Software Foundation |
| 1602 | gives unlimited permission to copy, distribute and modify it. |
| 1603 | _ACEOF |
| 1604 | exit |
| 1605 | fi |
| 1606 | |
| 1607 | ## ------------------------ ## |
| 1608 | ## Autoconf initialization. ## |
| 1609 | ## ------------------------ ## |
| 1610 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1611 | # ac_fn_c_try_compile LINENO |
| 1612 | # -------------------------- |
| 1613 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1614 | ac_fn_c_try_compile () |
| 1615 | { |
| 1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1617 | rm -f conftest.$ac_objext |
| 1618 | if { { ac_try="$ac_compile" |
| 1619 | case "(($ac_try" in |
| 1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1621 | *) ac_try_echo=$ac_try;; |
| 1622 | esac |
| 1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1624 | $as_echo "$ac_try_echo"; } >&5 |
| 1625 | (eval "$ac_compile") 2>conftest.err |
| 1626 | ac_status=$? |
| 1627 | if test -s conftest.err; then |
| 1628 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1629 | cat conftest.er1 >&5 |
| 1630 | mv -f conftest.er1 conftest.err |
| 1631 | fi |
| 1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1633 | test $ac_status = 0; } && { |
| 1634 | test -z "$ac_c_werror_flag" || |
| 1635 | test ! -s conftest.err |
| 1636 | } && test -s conftest.$ac_objext; then : |
| 1637 | ac_retval=0 |
| 1638 | else |
| 1639 | $as_echo "$as_me: failed program was:" >&5 |
| 1640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1641 | |
| 1642 | ac_retval=1 |
| 1643 | fi |
| 1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1645 | as_fn_set_status $ac_retval |
| 1646 | |
| 1647 | } # ac_fn_c_try_compile |
| 1648 | |
| 1649 | # ac_fn_c_try_link LINENO |
| 1650 | # ----------------------- |
| 1651 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1652 | ac_fn_c_try_link () |
| 1653 | { |
| 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1656 | if { { ac_try="$ac_link" |
| 1657 | case "(($ac_try" in |
| 1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1659 | *) ac_try_echo=$ac_try;; |
| 1660 | esac |
| 1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1662 | $as_echo "$ac_try_echo"; } >&5 |
| 1663 | (eval "$ac_link") 2>conftest.err |
| 1664 | ac_status=$? |
| 1665 | if test -s conftest.err; then |
| 1666 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1667 | cat conftest.er1 >&5 |
| 1668 | mv -f conftest.er1 conftest.err |
| 1669 | fi |
| 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1671 | test $ac_status = 0; } && { |
| 1672 | test -z "$ac_c_werror_flag" || |
| 1673 | test ! -s conftest.err |
| 1674 | } && test -s conftest$ac_exeext && { |
| 1675 | test "$cross_compiling" = yes || |
| 1676 | test -x conftest$ac_exeext |
| 1677 | }; then : |
| 1678 | ac_retval=0 |
| 1679 | else |
| 1680 | $as_echo "$as_me: failed program was:" >&5 |
| 1681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1682 | |
| 1683 | ac_retval=1 |
| 1684 | fi |
| 1685 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1686 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1687 | # interfere with the next link command; also delete a directory that is |
| 1688 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1689 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1691 | as_fn_set_status $ac_retval |
| 1692 | |
| 1693 | } # ac_fn_c_try_link |
| 1694 | |
| 1695 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1696 | # ------------------------------------------------------- |
| 1697 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1698 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1699 | ac_fn_c_check_header_compile () |
| 1700 | { |
| 1701 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1703 | $as_echo_n "checking for $2... " >&6; } |
| 1704 | if eval \${$3+:} false; then : |
| 1705 | $as_echo_n "(cached) " >&6 |
| 1706 | else |
| 1707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1708 | /* end confdefs.h. */ |
| 1709 | $4 |
| 1710 | #include <$2> |
| 1711 | _ACEOF |
| 1712 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1713 | eval "$3=yes" |
| 1714 | else |
| 1715 | eval "$3=no" |
| 1716 | fi |
| 1717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1718 | fi |
| 1719 | eval ac_res=\$$3 |
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1721 | $as_echo "$ac_res" >&6; } |
| 1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1723 | |
| 1724 | } # ac_fn_c_check_header_compile |
| 1725 | |
| 1726 | # ac_fn_c_try_cpp LINENO |
| 1727 | # ---------------------- |
| 1728 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1729 | ac_fn_c_try_cpp () |
| 1730 | { |
| 1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1732 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1733 | case "(($ac_try" in |
| 1734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1735 | *) ac_try_echo=$ac_try;; |
| 1736 | esac |
| 1737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1738 | $as_echo "$ac_try_echo"; } >&5 |
| 1739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1740 | ac_status=$? |
| 1741 | if test -s conftest.err; then |
| 1742 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1743 | cat conftest.er1 >&5 |
| 1744 | mv -f conftest.er1 conftest.err |
| 1745 | fi |
| 1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1747 | test $ac_status = 0; } > conftest.i && { |
| 1748 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1749 | test ! -s conftest.err |
| 1750 | }; then : |
| 1751 | ac_retval=0 |
| 1752 | else |
| 1753 | $as_echo "$as_me: failed program was:" >&5 |
| 1754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1755 | |
| 1756 | ac_retval=1 |
| 1757 | fi |
| 1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1759 | as_fn_set_status $ac_retval |
| 1760 | |
| 1761 | } # ac_fn_c_try_cpp |
| 1762 | |
| 1763 | # ac_fn_c_try_run LINENO |
| 1764 | # ---------------------- |
| 1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1766 | # that executables *can* be run. |
| 1767 | ac_fn_c_try_run () |
| 1768 | { |
| 1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1770 | if { { ac_try="$ac_link" |
| 1771 | case "(($ac_try" in |
| 1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1773 | *) ac_try_echo=$ac_try;; |
| 1774 | esac |
| 1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1776 | $as_echo "$ac_try_echo"; } >&5 |
| 1777 | (eval "$ac_link") 2>&5 |
| 1778 | ac_status=$? |
| 1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1780 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1781 | { { case "(($ac_try" in |
| 1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1783 | *) ac_try_echo=$ac_try;; |
| 1784 | esac |
| 1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1786 | $as_echo "$ac_try_echo"; } >&5 |
| 1787 | (eval "$ac_try") 2>&5 |
| 1788 | ac_status=$? |
| 1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1790 | test $ac_status = 0; }; }; then : |
| 1791 | ac_retval=0 |
| 1792 | else |
| 1793 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1794 | $as_echo "$as_me: failed program was:" >&5 |
| 1795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1796 | |
| 1797 | ac_retval=$ac_status |
| 1798 | fi |
| 1799 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1800 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1801 | as_fn_set_status $ac_retval |
| 1802 | |
| 1803 | } # ac_fn_c_try_run |
| 1804 | |
| 1805 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1806 | # ---------------------------------- |
| 1807 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1808 | ac_fn_c_check_func () |
| 1809 | { |
| 1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1812 | $as_echo_n "checking for $2... " >&6; } |
| 1813 | if eval \${$3+:} false; then : |
| 1814 | $as_echo_n "(cached) " >&6 |
| 1815 | else |
| 1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1817 | /* end confdefs.h. */ |
| 1818 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1820 | #define $2 innocuous_$2 |
| 1821 | |
| 1822 | /* System header to define __stub macros and hopefully few prototypes, |
| 1823 | which can conflict with char $2 (); below. |
| 1824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1825 | <limits.h> exists even on freestanding compilers. */ |
| 1826 | |
| 1827 | #ifdef __STDC__ |
| 1828 | # include <limits.h> |
| 1829 | #else |
| 1830 | # include <assert.h> |
| 1831 | #endif |
| 1832 | |
| 1833 | #undef $2 |
| 1834 | |
| 1835 | /* Override any GCC internal prototype to avoid an error. |
| 1836 | Use char because int might match the return type of a GCC |
| 1837 | builtin and then its argument prototype would still apply. */ |
| 1838 | #ifdef __cplusplus |
| 1839 | extern "C" |
| 1840 | #endif |
| 1841 | char $2 (); |
| 1842 | /* The GNU C library defines this for functions which it implements |
| 1843 | to always fail with ENOSYS. Some functions are actually named |
| 1844 | something starting with __ and the normal name is an alias. */ |
| 1845 | #if defined __stub_$2 || defined __stub___$2 |
| 1846 | choke me |
| 1847 | #endif |
| 1848 | |
| 1849 | int |
| 1850 | main () |
| 1851 | { |
| 1852 | return $2 (); |
| 1853 | ; |
| 1854 | return 0; |
| 1855 | } |
| 1856 | _ACEOF |
| 1857 | if ac_fn_c_try_link "$LINENO"; then : |
| 1858 | eval "$3=yes" |
| 1859 | else |
| 1860 | eval "$3=no" |
| 1861 | fi |
| 1862 | rm -f core conftest.err conftest.$ac_objext \ |
| 1863 | conftest$ac_exeext conftest.$ac_ext |
| 1864 | fi |
| 1865 | eval ac_res=\$$3 |
| 1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1867 | $as_echo "$ac_res" >&6; } |
| 1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1869 | |
| 1870 | } # ac_fn_c_check_func |
| 1871 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1872 | # ac_fn_cxx_try_compile LINENO |
| 1873 | # ---------------------------- |
| 1874 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1875 | ac_fn_cxx_try_compile () |
| 1876 | { |
| 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1878 | rm -f conftest.$ac_objext |
| 1879 | if { { ac_try="$ac_compile" |
| 1880 | case "(($ac_try" in |
| 1881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1882 | *) ac_try_echo=$ac_try;; |
| 1883 | esac |
| 1884 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1885 | $as_echo "$ac_try_echo"; } >&5 |
| 1886 | (eval "$ac_compile") 2>conftest.err |
| 1887 | ac_status=$? |
| 1888 | if test -s conftest.err; then |
| 1889 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1890 | cat conftest.er1 >&5 |
| 1891 | mv -f conftest.er1 conftest.err |
| 1892 | fi |
| 1893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1894 | test $ac_status = 0; } && { |
| 1895 | test -z "$ac_cxx_werror_flag" || |
| 1896 | test ! -s conftest.err |
| 1897 | } && test -s conftest.$ac_objext; then : |
| 1898 | ac_retval=0 |
| 1899 | else |
| 1900 | $as_echo "$as_me: failed program was:" >&5 |
| 1901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1902 | |
| 1903 | ac_retval=1 |
| 1904 | fi |
| 1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1906 | as_fn_set_status $ac_retval |
| 1907 | |
| 1908 | } # ac_fn_cxx_try_compile |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1909 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1910 | # ac_fn_cxx_try_cpp LINENO |
| 1911 | # ------------------------ |
| 1912 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1913 | ac_fn_cxx_try_cpp () |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1914 | { |
| 1915 | 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] | 1916 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1917 | case "(($ac_try" in |
| 1918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1919 | *) ac_try_echo=$ac_try;; |
| 1920 | esac |
| 1921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1922 | $as_echo "$ac_try_echo"; } >&5 |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1924 | ac_status=$? |
| 1925 | if test -s conftest.err; then |
| 1926 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1927 | cat conftest.er1 >&5 |
| 1928 | mv -f conftest.er1 conftest.err |
| 1929 | fi |
| 1930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1931 | test $ac_status = 0; } > conftest.i && { |
| 1932 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1933 | test ! -s conftest.err |
| 1934 | }; then : |
| 1935 | ac_retval=0 |
| 1936 | else |
| 1937 | $as_echo "$as_me: failed program was:" >&5 |
| 1938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1939 | |
| 1940 | ac_retval=1 |
| 1941 | fi |
| 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1943 | as_fn_set_status $ac_retval |
| 1944 | |
| 1945 | } # ac_fn_cxx_try_cpp |
| 1946 | |
| 1947 | # ac_fn_cxx_try_link LINENO |
| 1948 | # ------------------------- |
| 1949 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1950 | ac_fn_cxx_try_link () |
| 1951 | { |
| 1952 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1954 | if { { ac_try="$ac_link" |
| 1955 | case "(($ac_try" in |
| 1956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1957 | *) ac_try_echo=$ac_try;; |
| 1958 | esac |
| 1959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1960 | $as_echo "$ac_try_echo"; } >&5 |
| 1961 | (eval "$ac_link") 2>conftest.err |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1962 | ac_status=$? |
| 1963 | if test -s conftest.err; then |
| 1964 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1965 | cat conftest.er1 >&5 |
| 1966 | mv -f conftest.er1 conftest.err |
| 1967 | fi |
| 1968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1969 | test $ac_status = 0; } && { |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1970 | test -z "$ac_cxx_werror_flag" || |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1971 | test ! -s conftest.err |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1972 | } && test -s conftest$ac_exeext && { |
| 1973 | test "$cross_compiling" = yes || |
| 1974 | test -x conftest$ac_exeext |
| 1975 | }; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1976 | ac_retval=0 |
| 1977 | else |
| 1978 | $as_echo "$as_me: failed program was:" >&5 |
| 1979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1980 | |
| 1981 | ac_retval=1 |
| 1982 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1983 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1984 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1985 | # interfere with the next link command; also delete a directory that is |
| 1986 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1987 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1988 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1989 | as_fn_set_status $ac_retval |
| 1990 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1991 | } # ac_fn_cxx_try_link |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1992 | |
| 1993 | # ac_fn_objcxx_try_compile LINENO |
| 1994 | # ------------------------------- |
| 1995 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1996 | ac_fn_objcxx_try_compile () |
| 1997 | { |
| 1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1999 | rm -f conftest.$ac_objext |
| 2000 | if { { ac_try="$ac_compile" |
| 2001 | case "(($ac_try" in |
| 2002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2003 | *) ac_try_echo=$ac_try;; |
| 2004 | esac |
| 2005 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2006 | $as_echo "$ac_try_echo"; } >&5 |
| 2007 | (eval "$ac_compile") 2>conftest.err |
| 2008 | ac_status=$? |
| 2009 | if test -s conftest.err; then |
| 2010 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2011 | cat conftest.er1 >&5 |
| 2012 | mv -f conftest.er1 conftest.err |
| 2013 | fi |
| 2014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2015 | test $ac_status = 0; } && { |
| 2016 | test -z "$ac_objcxx_werror_flag" || |
| 2017 | test ! -s conftest.err |
| 2018 | } && test -s conftest.$ac_objext; then : |
| 2019 | ac_retval=0 |
| 2020 | else |
| 2021 | $as_echo "$as_me: failed program was:" >&5 |
| 2022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2023 | |
| 2024 | ac_retval=1 |
| 2025 | fi |
| 2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2027 | as_fn_set_status $ac_retval |
| 2028 | |
| 2029 | } # ac_fn_objcxx_try_compile |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 2030 | |
| 2031 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
| 2032 | # --------------------------------------------- |
| 2033 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2034 | # variable VAR accordingly. |
| 2035 | ac_fn_cxx_check_type () |
| 2036 | { |
| 2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2039 | $as_echo_n "checking for $2... " >&6; } |
| 2040 | if eval \${$3+:} false; then : |
| 2041 | $as_echo_n "(cached) " >&6 |
| 2042 | else |
| 2043 | eval "$3=no" |
| 2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2045 | /* end confdefs.h. */ |
| 2046 | $4 |
| 2047 | int |
| 2048 | main () |
| 2049 | { |
| 2050 | if (sizeof ($2)) |
| 2051 | return 0; |
| 2052 | ; |
| 2053 | return 0; |
| 2054 | } |
| 2055 | _ACEOF |
| 2056 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2058 | /* end confdefs.h. */ |
| 2059 | $4 |
| 2060 | int |
| 2061 | main () |
| 2062 | { |
| 2063 | if (sizeof (($2))) |
| 2064 | return 0; |
| 2065 | ; |
| 2066 | return 0; |
| 2067 | } |
| 2068 | _ACEOF |
| 2069 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2070 | |
| 2071 | else |
| 2072 | eval "$3=yes" |
| 2073 | fi |
| 2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2075 | fi |
| 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2077 | fi |
| 2078 | eval ac_res=\$$3 |
| 2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2080 | $as_echo "$ac_res" >&6; } |
| 2081 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2082 | |
| 2083 | } # ac_fn_cxx_check_type |
| 2084 | |
| 2085 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2086 | # ----------------------------------- |
| 2087 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2088 | # accordingly. |
| 2089 | ac_fn_c_find_intX_t () |
| 2090 | { |
| 2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2093 | $as_echo_n "checking for int$2_t... " >&6; } |
| 2094 | if eval \${$3+:} false; then : |
| 2095 | $as_echo_n "(cached) " >&6 |
| 2096 | else |
| 2097 | eval "$3=no" |
| 2098 | # Order is important - never check a type that is potentially smaller |
| 2099 | # than half of the expected target width. |
| 2100 | for ac_type in int$2_t 'int' 'long int' \ |
| 2101 | 'long long int' 'short int' 'signed char'; do |
| 2102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2103 | /* end confdefs.h. */ |
| 2104 | $ac_includes_default |
| 2105 | enum { N = $2 / 2 - 1 }; |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2110 | test_array [0] = 0; |
| 2111 | return test_array [0]; |
| 2112 | |
| 2113 | ; |
| 2114 | return 0; |
| 2115 | } |
| 2116 | _ACEOF |
| 2117 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2119 | /* end confdefs.h. */ |
| 2120 | $ac_includes_default |
| 2121 | enum { N = $2 / 2 - 1 }; |
| 2122 | int |
| 2123 | main () |
| 2124 | { |
| 2125 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2126 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2127 | test_array [0] = 0; |
| 2128 | return test_array [0]; |
| 2129 | |
| 2130 | ; |
| 2131 | return 0; |
| 2132 | } |
| 2133 | _ACEOF |
| 2134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2135 | |
| 2136 | else |
| 2137 | case $ac_type in #( |
| 2138 | int$2_t) : |
| 2139 | eval "$3=yes" ;; #( |
| 2140 | *) : |
| 2141 | eval "$3=\$ac_type" ;; |
| 2142 | esac |
| 2143 | fi |
| 2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2145 | fi |
| 2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2147 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2148 | |
| 2149 | else |
| 2150 | break |
| 2151 | fi |
| 2152 | done |
| 2153 | fi |
| 2154 | eval ac_res=\$$3 |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2156 | $as_echo "$ac_res" >&6; } |
| 2157 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2158 | |
| 2159 | } # ac_fn_c_find_intX_t |
| 2160 | |
| 2161 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2162 | # ------------------------------------ |
| 2163 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2164 | # accordingly. |
| 2165 | ac_fn_c_find_uintX_t () |
| 2166 | { |
| 2167 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2169 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 2170 | if eval \${$3+:} false; then : |
| 2171 | $as_echo_n "(cached) " >&6 |
| 2172 | else |
| 2173 | eval "$3=no" |
| 2174 | # Order is important - never check a type that is potentially smaller |
| 2175 | # than half of the expected target width. |
| 2176 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2177 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2179 | /* end confdefs.h. */ |
| 2180 | $ac_includes_default |
| 2181 | int |
| 2182 | main () |
| 2183 | { |
| 2184 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2185 | test_array [0] = 0; |
| 2186 | return test_array [0]; |
| 2187 | |
| 2188 | ; |
| 2189 | return 0; |
| 2190 | } |
| 2191 | _ACEOF |
| 2192 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2193 | case $ac_type in #( |
| 2194 | uint$2_t) : |
| 2195 | eval "$3=yes" ;; #( |
| 2196 | *) : |
| 2197 | eval "$3=\$ac_type" ;; |
| 2198 | esac |
| 2199 | fi |
| 2200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2201 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2202 | |
| 2203 | else |
| 2204 | break |
| 2205 | fi |
| 2206 | done |
| 2207 | fi |
| 2208 | eval ac_res=\$$3 |
| 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2210 | $as_echo "$ac_res" >&6; } |
| 2211 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2212 | |
| 2213 | } # ac_fn_c_find_uintX_t |
| 2214 | |
| 2215 | # ac_fn_cxx_check_func LINENO FUNC VAR |
| 2216 | # ------------------------------------ |
| 2217 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2218 | ac_fn_cxx_check_func () |
| 2219 | { |
| 2220 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2222 | $as_echo_n "checking for $2... " >&6; } |
| 2223 | if eval \${$3+:} false; then : |
| 2224 | $as_echo_n "(cached) " >&6 |
| 2225 | else |
| 2226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2227 | /* end confdefs.h. */ |
| 2228 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2230 | #define $2 innocuous_$2 |
| 2231 | |
| 2232 | /* System header to define __stub macros and hopefully few prototypes, |
| 2233 | which can conflict with char $2 (); below. |
| 2234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2235 | <limits.h> exists even on freestanding compilers. */ |
| 2236 | |
| 2237 | #ifdef __STDC__ |
| 2238 | # include <limits.h> |
| 2239 | #else |
| 2240 | # include <assert.h> |
| 2241 | #endif |
| 2242 | |
| 2243 | #undef $2 |
| 2244 | |
| 2245 | /* Override any GCC internal prototype to avoid an error. |
| 2246 | Use char because int might match the return type of a GCC |
| 2247 | builtin and then its argument prototype would still apply. */ |
| 2248 | #ifdef __cplusplus |
| 2249 | extern "C" |
| 2250 | #endif |
| 2251 | char $2 (); |
| 2252 | /* The GNU C library defines this for functions which it implements |
| 2253 | to always fail with ENOSYS. Some functions are actually named |
| 2254 | something starting with __ and the normal name is an alias. */ |
| 2255 | #if defined __stub_$2 || defined __stub___$2 |
| 2256 | choke me |
| 2257 | #endif |
| 2258 | |
| 2259 | int |
| 2260 | main () |
| 2261 | { |
| 2262 | return $2 (); |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 2268 | eval "$3=yes" |
| 2269 | else |
| 2270 | eval "$3=no" |
| 2271 | fi |
| 2272 | rm -f core conftest.err conftest.$ac_objext \ |
| 2273 | conftest$ac_exeext conftest.$ac_ext |
| 2274 | fi |
| 2275 | eval ac_res=\$$3 |
| 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2277 | $as_echo "$ac_res" >&6; } |
| 2278 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2279 | |
| 2280 | } # ac_fn_cxx_check_func |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2281 | cat >config.log <<_ACEOF |
| 2282 | This file contains any messages produced by compilers while |
| 2283 | running configure, to aid debugging if configure makes a mistake. |
| 2284 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 2285 | It was created by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2286 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2287 | |
| 2288 | $ $0 $@ |
| 2289 | |
| 2290 | _ACEOF |
| 2291 | exec 5>>config.log |
| 2292 | { |
| 2293 | cat <<_ASUNAME |
| 2294 | ## --------- ## |
| 2295 | ## Platform. ## |
| 2296 | ## --------- ## |
| 2297 | |
| 2298 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2299 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2300 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2301 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2302 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2303 | |
| 2304 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2305 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2306 | |
| 2307 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2308 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2309 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2310 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2311 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2312 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2313 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2314 | |
| 2315 | _ASUNAME |
| 2316 | |
| 2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2318 | for as_dir in $PATH |
| 2319 | do |
| 2320 | IFS=$as_save_IFS |
| 2321 | test -z "$as_dir" && as_dir=. |
| 2322 | $as_echo "PATH: $as_dir" |
| 2323 | done |
| 2324 | IFS=$as_save_IFS |
| 2325 | |
| 2326 | } >&5 |
| 2327 | |
| 2328 | cat >&5 <<_ACEOF |
| 2329 | |
| 2330 | |
| 2331 | ## ----------- ## |
| 2332 | ## Core tests. ## |
| 2333 | ## ----------- ## |
| 2334 | |
| 2335 | _ACEOF |
| 2336 | |
| 2337 | |
| 2338 | # Keep a trace of the command line. |
| 2339 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2340 | # Strip out --silent because we don't want to record it for future runs. |
| 2341 | # Also quote any args containing shell meta-characters. |
| 2342 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2343 | ac_configure_args= |
| 2344 | ac_configure_args0= |
| 2345 | ac_configure_args1= |
| 2346 | ac_must_keep_next=false |
| 2347 | for ac_pass in 1 2 |
| 2348 | do |
| 2349 | for ac_arg |
| 2350 | do |
| 2351 | case $ac_arg in |
| 2352 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2354 | | -silent | --silent | --silen | --sile | --sil) |
| 2355 | continue ;; |
| 2356 | *\'*) |
| 2357 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2358 | esac |
| 2359 | case $ac_pass in |
| 2360 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2361 | 2) |
| 2362 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2363 | if test $ac_must_keep_next = true; then |
| 2364 | ac_must_keep_next=false # Got value, back to normal. |
| 2365 | else |
| 2366 | case $ac_arg in |
| 2367 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2368 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2369 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2370 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2371 | case "$ac_configure_args0 " in |
| 2372 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2373 | esac |
| 2374 | ;; |
| 2375 | -* ) ac_must_keep_next=true ;; |
| 2376 | esac |
| 2377 | fi |
| 2378 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2379 | ;; |
| 2380 | esac |
| 2381 | done |
| 2382 | done |
| 2383 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2384 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2385 | |
| 2386 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2387 | # config.log. We remove comments because anyway the quotes in there |
| 2388 | # would cause problems or look ugly. |
| 2389 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2390 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2391 | trap 'exit_status=$? |
| 2392 | # Save into config.log some information that might help in debugging. |
| 2393 | { |
| 2394 | echo |
| 2395 | |
| 2396 | $as_echo "## ---------------- ## |
| 2397 | ## Cache variables. ## |
| 2398 | ## ---------------- ##" |
| 2399 | echo |
| 2400 | # The following way of writing the cache mishandles newlines in values, |
| 2401 | ( |
| 2402 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2403 | eval ac_val=\$$ac_var |
| 2404 | case $ac_val in #( |
| 2405 | *${as_nl}*) |
| 2406 | case $ac_var in #( |
| 2407 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2408 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2409 | esac |
| 2410 | case $ac_var in #( |
| 2411 | _ | IFS | as_nl) ;; #( |
| 2412 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2413 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2414 | esac ;; |
| 2415 | esac |
| 2416 | done |
| 2417 | (set) 2>&1 | |
| 2418 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2419 | *${as_nl}ac_space=\ *) |
| 2420 | sed -n \ |
| 2421 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2423 | ;; #( |
| 2424 | *) |
| 2425 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2426 | ;; |
| 2427 | esac | |
| 2428 | sort |
| 2429 | ) |
| 2430 | echo |
| 2431 | |
| 2432 | $as_echo "## ----------------- ## |
| 2433 | ## Output variables. ## |
| 2434 | ## ----------------- ##" |
| 2435 | echo |
| 2436 | for ac_var in $ac_subst_vars |
| 2437 | do |
| 2438 | eval ac_val=\$$ac_var |
| 2439 | case $ac_val in |
| 2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2441 | esac |
| 2442 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2443 | done | sort |
| 2444 | echo |
| 2445 | |
| 2446 | if test -n "$ac_subst_files"; then |
| 2447 | $as_echo "## ------------------- ## |
| 2448 | ## File substitutions. ## |
| 2449 | ## ------------------- ##" |
| 2450 | echo |
| 2451 | for ac_var in $ac_subst_files |
| 2452 | do |
| 2453 | eval ac_val=\$$ac_var |
| 2454 | case $ac_val in |
| 2455 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2456 | esac |
| 2457 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2458 | done | sort |
| 2459 | echo |
| 2460 | fi |
| 2461 | |
| 2462 | if test -s confdefs.h; then |
| 2463 | $as_echo "## ----------- ## |
| 2464 | ## confdefs.h. ## |
| 2465 | ## ----------- ##" |
| 2466 | echo |
| 2467 | cat confdefs.h |
| 2468 | echo |
| 2469 | fi |
| 2470 | test "$ac_signal" != 0 && |
| 2471 | $as_echo "$as_me: caught signal $ac_signal" |
| 2472 | $as_echo "$as_me: exit $exit_status" |
| 2473 | } >&5 |
| 2474 | rm -f core *.core core.conftest.* && |
| 2475 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2476 | exit $exit_status |
| 2477 | ' 0 |
| 2478 | for ac_signal in 1 2 13 15; do |
| 2479 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2480 | done |
| 2481 | ac_signal=0 |
| 2482 | |
| 2483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2484 | rm -f -r conftest* confdefs.h |
| 2485 | |
| 2486 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2487 | |
| 2488 | # Predefined preprocessor variables. |
| 2489 | |
| 2490 | cat >>confdefs.h <<_ACEOF |
| 2491 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2492 | _ACEOF |
| 2493 | |
| 2494 | cat >>confdefs.h <<_ACEOF |
| 2495 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2496 | _ACEOF |
| 2497 | |
| 2498 | cat >>confdefs.h <<_ACEOF |
| 2499 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2500 | _ACEOF |
| 2501 | |
| 2502 | cat >>confdefs.h <<_ACEOF |
| 2503 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2504 | _ACEOF |
| 2505 | |
| 2506 | cat >>confdefs.h <<_ACEOF |
| 2507 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2508 | _ACEOF |
| 2509 | |
| 2510 | cat >>confdefs.h <<_ACEOF |
| 2511 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2512 | _ACEOF |
| 2513 | |
| 2514 | |
| 2515 | # Let the site file select an alternate cache file if it wants to. |
| 2516 | # Prefer an explicitly selected file to automatically selected ones. |
| 2517 | ac_site_file1=NONE |
| 2518 | ac_site_file2=NONE |
| 2519 | if test -n "$CONFIG_SITE"; then |
| 2520 | # We do not want a PATH search for config.site. |
| 2521 | case $CONFIG_SITE in #(( |
| 2522 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2523 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2524 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2525 | esac |
| 2526 | elif test "x$prefix" != xNONE; then |
| 2527 | ac_site_file1=$prefix/share/config.site |
| 2528 | ac_site_file2=$prefix/etc/config.site |
| 2529 | else |
| 2530 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2531 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2532 | fi |
| 2533 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2534 | do |
| 2535 | test "x$ac_site_file" = xNONE && continue |
| 2536 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2538 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2539 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2540 | . "$ac_site_file" \ |
| 2541 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2543 | as_fn_error $? "failed to load site script $ac_site_file |
| 2544 | See \`config.log' for more details" "$LINENO" 5; } |
| 2545 | fi |
| 2546 | done |
| 2547 | |
| 2548 | if test -r "$cache_file"; then |
| 2549 | # Some versions of bash will fail to source /dev/null (special files |
| 2550 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2551 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2553 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2554 | case $cache_file in |
| 2555 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2556 | *) . "./$cache_file";; |
| 2557 | esac |
| 2558 | fi |
| 2559 | else |
| 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2561 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2562 | >$cache_file |
| 2563 | fi |
| 2564 | |
| 2565 | # Check that the precious variables saved in the cache have kept the same |
| 2566 | # value. |
| 2567 | ac_cache_corrupted=false |
| 2568 | for ac_var in $ac_precious_vars; do |
| 2569 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2570 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2571 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2572 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2573 | case $ac_old_set,$ac_new_set in |
| 2574 | set,) |
| 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2576 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2577 | ac_cache_corrupted=: ;; |
| 2578 | ,set) |
| 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2580 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2581 | ac_cache_corrupted=: ;; |
| 2582 | ,);; |
| 2583 | *) |
| 2584 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2585 | # differences in whitespace do not lead to failure. |
| 2586 | ac_old_val_w=`echo x $ac_old_val` |
| 2587 | ac_new_val_w=`echo x $ac_new_val` |
| 2588 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2590 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2591 | ac_cache_corrupted=: |
| 2592 | else |
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2594 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2595 | eval $ac_var=\$ac_old_val |
| 2596 | fi |
| 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2598 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2600 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2601 | fi;; |
| 2602 | esac |
| 2603 | # Pass precious variables to config.status. |
| 2604 | if test "$ac_new_set" = set; then |
| 2605 | case $ac_new_val in |
| 2606 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2607 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2608 | esac |
| 2609 | case " $ac_configure_args " in |
| 2610 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2611 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2612 | esac |
| 2613 | fi |
| 2614 | done |
| 2615 | if $ac_cache_corrupted; then |
| 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2619 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2620 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2621 | fi |
| 2622 | ## -------------------- ## |
| 2623 | ## Main body of script. ## |
| 2624 | ## -------------------- ## |
| 2625 | |
| 2626 | ac_ext=c |
| 2627 | ac_cpp='$CPP $CPPFLAGS' |
| 2628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2631 | |
| 2632 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 2633 | am__api_version='1.14' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2634 | |
| 2635 | ac_aux_dir= |
| 2636 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2637 | if test -f "$ac_dir/install-sh"; then |
| 2638 | ac_aux_dir=$ac_dir |
| 2639 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2640 | break |
| 2641 | elif test -f "$ac_dir/install.sh"; then |
| 2642 | ac_aux_dir=$ac_dir |
| 2643 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2644 | break |
| 2645 | elif test -f "$ac_dir/shtool"; then |
| 2646 | ac_aux_dir=$ac_dir |
| 2647 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2648 | break |
| 2649 | fi |
| 2650 | done |
| 2651 | if test -z "$ac_aux_dir"; then |
| 2652 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2653 | fi |
| 2654 | |
| 2655 | # These three variables are undocumented and unsupported, |
| 2656 | # and are intended to be withdrawn in a future Autoconf release. |
| 2657 | # They can cause serious problems if a builder's source tree is in a directory |
| 2658 | # whose full name contains unusual characters. |
| 2659 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2660 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2661 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2662 | |
| 2663 | |
| 2664 | # Find a good install program. We prefer a C program (faster), |
| 2665 | # so one script is as good as another. But avoid the broken or |
| 2666 | # incompatible versions: |
| 2667 | # SysV /etc/install, /usr/sbin/install |
| 2668 | # SunOS /usr/etc/install |
| 2669 | # IRIX /sbin/install |
| 2670 | # AIX /bin/install |
| 2671 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2672 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2673 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2674 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2675 | # OS/2's system install, which has a completely different semantic |
| 2676 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2677 | # Reject install programs that cannot install multiple files. |
| 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2679 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2680 | if test -z "$INSTALL"; then |
| 2681 | if ${ac_cv_path_install+:} false; then : |
| 2682 | $as_echo_n "(cached) " >&6 |
| 2683 | else |
| 2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2685 | for as_dir in $PATH |
| 2686 | do |
| 2687 | IFS=$as_save_IFS |
| 2688 | test -z "$as_dir" && as_dir=. |
| 2689 | # Account for people who put trailing slashes in PATH elements. |
| 2690 | case $as_dir/ in #(( |
| 2691 | ./ | .// | /[cC]/* | \ |
| 2692 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2693 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2694 | /usr/ucb/* ) ;; |
| 2695 | *) |
| 2696 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2697 | # Don't use installbsd from OSF since it installs stuff as root |
| 2698 | # by default. |
| 2699 | for ac_prog in ginstall scoinst install; do |
| 2700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2701 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2702 | if test $ac_prog = install && |
| 2703 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2704 | # AIX install. It has an incompatible calling convention. |
| 2705 | : |
| 2706 | elif test $ac_prog = install && |
| 2707 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2708 | # program-specific install script used by HP pwplus--don't use. |
| 2709 | : |
| 2710 | else |
| 2711 | rm -rf conftest.one conftest.two conftest.dir |
| 2712 | echo one > conftest.one |
| 2713 | echo two > conftest.two |
| 2714 | mkdir conftest.dir |
| 2715 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2716 | test -s conftest.one && test -s conftest.two && |
| 2717 | test -s conftest.dir/conftest.one && |
| 2718 | test -s conftest.dir/conftest.two |
| 2719 | then |
| 2720 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2721 | break 3 |
| 2722 | fi |
| 2723 | fi |
| 2724 | fi |
| 2725 | done |
| 2726 | done |
| 2727 | ;; |
| 2728 | esac |
| 2729 | |
| 2730 | done |
| 2731 | IFS=$as_save_IFS |
| 2732 | |
| 2733 | rm -rf conftest.one conftest.two conftest.dir |
| 2734 | |
| 2735 | fi |
| 2736 | if test "${ac_cv_path_install+set}" = set; then |
| 2737 | INSTALL=$ac_cv_path_install |
| 2738 | else |
| 2739 | # As a last resort, use the slow shell script. Don't cache a |
| 2740 | # value for INSTALL within a source directory, because that will |
| 2741 | # break other packages using the cache if that directory is |
| 2742 | # removed, or if the value is a relative name. |
| 2743 | INSTALL=$ac_install_sh |
| 2744 | fi |
| 2745 | fi |
| 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2747 | $as_echo "$INSTALL" >&6; } |
| 2748 | |
| 2749 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2750 | # It thinks the first close brace ends the variable substitution. |
| 2751 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2752 | |
| 2753 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2754 | |
| 2755 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2756 | |
| 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2758 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2759 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2760 | # name. Accept space and tab only in the latter. |
| 2761 | am_lf=' |
| 2762 | ' |
| 2763 | case `pwd` in |
| 2764 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2765 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2766 | esac |
| 2767 | case $srcdir in |
| 2768 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2769 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2770 | esac |
| 2771 | |
| 2772 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2773 | # arguments. Must try -L first in case configure is actually a |
| 2774 | # symlink; some systems play weird games with the mod time of symlinks |
| 2775 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2776 | # directory). |
| 2777 | if ( |
| 2778 | am_has_slept=no |
| 2779 | for am_try in 1 2; do |
| 2780 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2781 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2782 | if test "$*" = "X"; then |
| 2783 | # -L didn't work. |
| 2784 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2785 | fi |
| 2786 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2787 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2788 | |
| 2789 | # If neither matched, then we have a broken ls. This can happen |
| 2790 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2791 | # broken ls alias from the environment. This has actually |
| 2792 | # happened. Such a system could not be considered "sane". |
| 2793 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2794 | alias in your environment" "$LINENO" 5 |
| 2795 | fi |
| 2796 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2797 | break |
| 2798 | fi |
| 2799 | # Just in case. |
| 2800 | sleep 1 |
| 2801 | am_has_slept=yes |
| 2802 | done |
| 2803 | test "$2" = conftest.file |
| 2804 | ) |
| 2805 | then |
| 2806 | # Ok. |
| 2807 | : |
| 2808 | else |
| 2809 | as_fn_error $? "newly created file is older than distributed files! |
| 2810 | Check your system clock" "$LINENO" 5 |
| 2811 | fi |
| 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2813 | $as_echo "yes" >&6; } |
| 2814 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2815 | # generated files are strictly newer. |
| 2816 | am_sleep_pid= |
| 2817 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2818 | ( sleep 1 ) & |
| 2819 | am_sleep_pid=$! |
| 2820 | fi |
| 2821 | |
| 2822 | rm -f conftest.file |
| 2823 | |
| 2824 | test "$program_prefix" != NONE && |
| 2825 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2826 | # Use a double $ so make ignores it. |
| 2827 | test "$program_suffix" != NONE && |
| 2828 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2829 | # Double any \ or $. |
| 2830 | # By default was `s,x,x', remove it if useless. |
| 2831 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2832 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2833 | |
| 2834 | # expand $ac_aux_dir to an absolute path |
| 2835 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2836 | |
| 2837 | if test x"${MISSING+set}" != xset; then |
| 2838 | case $am_aux_dir in |
| 2839 | *\ * | *\ *) |
| 2840 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2841 | *) |
| 2842 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2843 | esac |
| 2844 | fi |
| 2845 | # Use eval to expand $SHELL |
| 2846 | if eval "$MISSING --is-lightweight"; then |
| 2847 | am_missing_run="$MISSING " |
| 2848 | else |
| 2849 | am_missing_run= |
| 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2851 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2852 | fi |
| 2853 | |
| 2854 | if test x"${install_sh}" != xset; then |
| 2855 | case $am_aux_dir in |
| 2856 | *\ * | *\ *) |
| 2857 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2858 | *) |
| 2859 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2860 | esac |
| 2861 | fi |
| 2862 | |
| 2863 | # Installed binaries are usually stripped using 'strip' when the user |
| 2864 | # run "make install-strip". However 'strip' might not be the right |
| 2865 | # tool to use in cross-compilation environments, therefore Automake |
| 2866 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2867 | if test "$cross_compiling" != no; then |
| 2868 | if test -n "$ac_tool_prefix"; then |
| 2869 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2870 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2872 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2873 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2874 | $as_echo_n "(cached) " >&6 |
| 2875 | else |
| 2876 | if test -n "$STRIP"; then |
| 2877 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2878 | else |
| 2879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2880 | for as_dir in $PATH |
| 2881 | do |
| 2882 | IFS=$as_save_IFS |
| 2883 | test -z "$as_dir" && as_dir=. |
| 2884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2886 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2888 | break 2 |
| 2889 | fi |
| 2890 | done |
| 2891 | done |
| 2892 | IFS=$as_save_IFS |
| 2893 | |
| 2894 | fi |
| 2895 | fi |
| 2896 | STRIP=$ac_cv_prog_STRIP |
| 2897 | if test -n "$STRIP"; then |
| 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2899 | $as_echo "$STRIP" >&6; } |
| 2900 | else |
| 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2902 | $as_echo "no" >&6; } |
| 2903 | fi |
| 2904 | |
| 2905 | |
| 2906 | fi |
| 2907 | if test -z "$ac_cv_prog_STRIP"; then |
| 2908 | ac_ct_STRIP=$STRIP |
| 2909 | # Extract the first word of "strip", so it can be a program name with args. |
| 2910 | set dummy strip; ac_word=$2 |
| 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2912 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2913 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2914 | $as_echo_n "(cached) " >&6 |
| 2915 | else |
| 2916 | if test -n "$ac_ct_STRIP"; then |
| 2917 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2918 | else |
| 2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2920 | for as_dir in $PATH |
| 2921 | do |
| 2922 | IFS=$as_save_IFS |
| 2923 | test -z "$as_dir" && as_dir=. |
| 2924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2926 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2928 | break 2 |
| 2929 | fi |
| 2930 | done |
| 2931 | done |
| 2932 | IFS=$as_save_IFS |
| 2933 | |
| 2934 | fi |
| 2935 | fi |
| 2936 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2937 | if test -n "$ac_ct_STRIP"; then |
| 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2939 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2940 | else |
| 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2942 | $as_echo "no" >&6; } |
| 2943 | fi |
| 2944 | |
| 2945 | if test "x$ac_ct_STRIP" = x; then |
| 2946 | STRIP=":" |
| 2947 | else |
| 2948 | case $cross_compiling:$ac_tool_warned in |
| 2949 | yes:) |
| 2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2951 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2952 | ac_tool_warned=yes ;; |
| 2953 | esac |
| 2954 | STRIP=$ac_ct_STRIP |
| 2955 | fi |
| 2956 | else |
| 2957 | STRIP="$ac_cv_prog_STRIP" |
| 2958 | fi |
| 2959 | |
| 2960 | fi |
| 2961 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2962 | |
| 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2964 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2965 | if test -z "$MKDIR_P"; then |
| 2966 | if ${ac_cv_path_mkdir+:} false; then : |
| 2967 | $as_echo_n "(cached) " >&6 |
| 2968 | else |
| 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
| 2974 | for ac_prog in mkdir gmkdir; do |
| 2975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2976 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2977 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2978 | 'mkdir (GNU coreutils) '* | \ |
| 2979 | 'mkdir (coreutils) '* | \ |
| 2980 | 'mkdir (fileutils) '4.1*) |
| 2981 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2982 | break 3;; |
| 2983 | esac |
| 2984 | done |
| 2985 | done |
| 2986 | done |
| 2987 | IFS=$as_save_IFS |
| 2988 | |
| 2989 | fi |
| 2990 | |
| 2991 | test -d ./--version && rmdir ./--version |
| 2992 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2993 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2994 | else |
| 2995 | # As a last resort, use the slow shell script. Don't cache a |
| 2996 | # value for MKDIR_P within a source directory, because that will |
| 2997 | # break other packages using the cache if that directory is |
| 2998 | # removed, or if the value is a relative name. |
| 2999 | MKDIR_P="$ac_install_sh -d" |
| 3000 | fi |
| 3001 | fi |
| 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3003 | $as_echo "$MKDIR_P" >&6; } |
| 3004 | |
| 3005 | for ac_prog in gawk mawk nawk awk |
| 3006 | do |
| 3007 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3008 | set dummy $ac_prog; ac_word=$2 |
| 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3010 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3011 | if ${ac_cv_prog_AWK+:} false; then : |
| 3012 | $as_echo_n "(cached) " >&6 |
| 3013 | else |
| 3014 | if test -n "$AWK"; then |
| 3015 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3016 | else |
| 3017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3018 | for as_dir in $PATH |
| 3019 | do |
| 3020 | IFS=$as_save_IFS |
| 3021 | test -z "$as_dir" && as_dir=. |
| 3022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3024 | ac_cv_prog_AWK="$ac_prog" |
| 3025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3026 | break 2 |
| 3027 | fi |
| 3028 | done |
| 3029 | done |
| 3030 | IFS=$as_save_IFS |
| 3031 | |
| 3032 | fi |
| 3033 | fi |
| 3034 | AWK=$ac_cv_prog_AWK |
| 3035 | if test -n "$AWK"; then |
| 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3037 | $as_echo "$AWK" >&6; } |
| 3038 | else |
| 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3040 | $as_echo "no" >&6; } |
| 3041 | fi |
| 3042 | |
| 3043 | |
| 3044 | test -n "$AWK" && break |
| 3045 | done |
| 3046 | |
| 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3048 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3049 | set x ${MAKE-make} |
| 3050 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3051 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3052 | $as_echo_n "(cached) " >&6 |
| 3053 | else |
| 3054 | cat >conftest.make <<\_ACEOF |
| 3055 | SHELL = /bin/sh |
| 3056 | all: |
| 3057 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3058 | _ACEOF |
| 3059 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3060 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3061 | *@@@%%%=?*=@@@%%%*) |
| 3062 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3063 | *) |
| 3064 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3065 | esac |
| 3066 | rm -f conftest.make |
| 3067 | fi |
| 3068 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3070 | $as_echo "yes" >&6; } |
| 3071 | SET_MAKE= |
| 3072 | else |
| 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3074 | $as_echo "no" >&6; } |
| 3075 | SET_MAKE="MAKE=${MAKE-make}" |
| 3076 | fi |
| 3077 | |
| 3078 | rm -rf .tst 2>/dev/null |
| 3079 | mkdir .tst 2>/dev/null |
| 3080 | if test -d .tst; then |
| 3081 | am__leading_dot=. |
| 3082 | else |
| 3083 | am__leading_dot=_ |
| 3084 | fi |
| 3085 | rmdir .tst 2>/dev/null |
| 3086 | |
| 3087 | # Check whether --enable-silent-rules was given. |
| 3088 | if test "${enable_silent_rules+set}" = set; then : |
| 3089 | enableval=$enable_silent_rules; |
| 3090 | fi |
| 3091 | |
| 3092 | case $enable_silent_rules in # ((( |
| 3093 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3094 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3095 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3096 | esac |
| 3097 | am_make=${MAKE-make} |
| 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3099 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3100 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 3101 | $as_echo_n "(cached) " >&6 |
| 3102 | else |
| 3103 | if $as_echo 'TRUE=$(BAR$(V)) |
| 3104 | BAR0=false |
| 3105 | BAR1=true |
| 3106 | V=1 |
| 3107 | am__doit: |
| 3108 | @$(TRUE) |
| 3109 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3110 | am_cv_make_support_nested_variables=yes |
| 3111 | else |
| 3112 | am_cv_make_support_nested_variables=no |
| 3113 | fi |
| 3114 | fi |
| 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3116 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3117 | if test $am_cv_make_support_nested_variables = yes; then |
| 3118 | AM_V='$(V)' |
| 3119 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3120 | else |
| 3121 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3122 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3123 | fi |
| 3124 | AM_BACKSLASH='\' |
| 3125 | |
| 3126 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3127 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3128 | # is not polluted with repeated "-I." |
| 3129 | am__isrc=' -I$(srcdir)' |
| 3130 | # test to see if srcdir already configured |
| 3131 | if test -f $srcdir/config.status; then |
| 3132 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3133 | fi |
| 3134 | fi |
| 3135 | |
| 3136 | # test whether we have cygpath |
| 3137 | if test -z "$CYGPATH_W"; then |
| 3138 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3139 | CYGPATH_W='cygpath -w' |
| 3140 | else |
| 3141 | CYGPATH_W=echo |
| 3142 | fi |
| 3143 | fi |
| 3144 | |
| 3145 | |
| 3146 | # Define the identity of the package. |
| 3147 | PACKAGE='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3148 | VERSION='0.2' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3149 | |
| 3150 | |
| 3151 | # Some tools Automake needs. |
| 3152 | |
| 3153 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3154 | |
| 3155 | |
| 3156 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3157 | |
| 3158 | |
| 3159 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3160 | |
| 3161 | |
| 3162 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3163 | |
| 3164 | |
| 3165 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3166 | |
| 3167 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3168 | # dies out for good. For more background, see: |
| 3169 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3170 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3171 | mkdir_p='$(MKDIR_P)' |
| 3172 | |
| 3173 | # We need awk for the "check" target. The system "awk" is bad on |
| 3174 | # some platforms. |
| 3175 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3176 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3177 | AMTAR='$${TAR-tar}' |
| 3178 | |
| 3179 | |
| 3180 | # We'll loop over all known methods to create a tar archive until one works. |
| 3181 | _am_tools='gnutar pax cpio none' |
| 3182 | |
| 3183 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 3190 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3191 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3192 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3193 | # actually supported "in the wild" to an acceptable degree. |
| 3194 | # See automake bug#10828. |
| 3195 | # To make any issue more visible, cause the running configure to be aborted |
| 3196 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3197 | # user can still override this though. |
| 3198 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3199 | cat >&2 <<'END' |
| 3200 | Oops! |
| 3201 | |
| 3202 | Your 'rm' program seems unable to run without file operands specified |
| 3203 | on the command line, even when the '-f' option is present. This is contrary |
| 3204 | to the behaviour of most rm programs out there, and not conforming with |
| 3205 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3206 | |
| 3207 | Please tell bug-automake@gnu.org about your system, including the value |
| 3208 | of your $PATH and any error possibly output before this message. This |
| 3209 | can help us improve future automake versions. |
| 3210 | |
| 3211 | END |
| 3212 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3213 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3214 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3215 | echo >&2 |
| 3216 | else |
| 3217 | cat >&2 <<'END' |
| 3218 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3219 | |
| 3220 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3221 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3222 | |
| 3223 | If you want to complete the configuration process using your problematic |
| 3224 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3225 | to "yes", and re-run configure. |
| 3226 | |
| 3227 | END |
| 3228 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3229 | fi |
| 3230 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3231 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3232 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame^] | 3233 | |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 3234 | # Create config.h without prefixes. |
| 3235 | ac_config_headers="$ac_config_headers config.h" |
| 3236 | |
| 3237 | # Add prefixes and output to a unique file name. |
| 3238 | |
| 3239 | ac_config_commands="$ac_config_commands ndn-cpp/ndn-cpp-config.h" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3240 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 3241 | |
| 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3243 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3244 | # Check whether --enable-maintainer-mode was given. |
| 3245 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3246 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3247 | else |
| 3248 | USE_MAINTAINER_MODE=no |
| 3249 | fi |
| 3250 | |
| 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3252 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3253 | if test $USE_MAINTAINER_MODE = yes; then |
| 3254 | MAINTAINER_MODE_TRUE= |
| 3255 | MAINTAINER_MODE_FALSE='#' |
| 3256 | else |
| 3257 | MAINTAINER_MODE_TRUE='#' |
| 3258 | MAINTAINER_MODE_FALSE= |
| 3259 | fi |
| 3260 | |
| 3261 | MAINT=$MAINTAINER_MODE_TRUE |
| 3262 | |
| 3263 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3264 | DEPDIR="${am__leading_dot}deps" |
| 3265 | |
| 3266 | ac_config_commands="$ac_config_commands depfiles" |
| 3267 | |
| 3268 | |
| 3269 | am_make=${MAKE-make} |
| 3270 | cat > confinc << 'END' |
| 3271 | am__doit: |
| 3272 | @echo this is the am__doit target |
| 3273 | .PHONY: am__doit |
| 3274 | END |
| 3275 | # If we don't find an include directive, just comment out the code. |
| 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3277 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3278 | am__include="#" |
| 3279 | am__quote= |
| 3280 | _am_result=none |
| 3281 | # First try GNU make style include. |
| 3282 | echo "include confinc" > confmf |
| 3283 | # Ignore all kinds of additional output from 'make'. |
| 3284 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3285 | *the\ am__doit\ target*) |
| 3286 | am__include=include |
| 3287 | am__quote= |
| 3288 | _am_result=GNU |
| 3289 | ;; |
| 3290 | esac |
| 3291 | # Now try BSD make style include. |
| 3292 | if test "$am__include" = "#"; then |
| 3293 | echo '.include "confinc"' > confmf |
| 3294 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3295 | *the\ am__doit\ target*) |
| 3296 | am__include=.include |
| 3297 | am__quote="\"" |
| 3298 | _am_result=BSD |
| 3299 | ;; |
| 3300 | esac |
| 3301 | fi |
| 3302 | |
| 3303 | |
| 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3305 | $as_echo "$_am_result" >&6; } |
| 3306 | rm -f confinc confmf |
| 3307 | |
| 3308 | # Check whether --enable-dependency-tracking was given. |
| 3309 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3310 | enableval=$enable_dependency_tracking; |
| 3311 | fi |
| 3312 | |
| 3313 | if test "x$enable_dependency_tracking" != xno; then |
| 3314 | am_depcomp="$ac_aux_dir/depcomp" |
| 3315 | AMDEPBACKSLASH='\' |
| 3316 | am__nodep='_no' |
| 3317 | fi |
| 3318 | if test "x$enable_dependency_tracking" != xno; then |
| 3319 | AMDEP_TRUE= |
| 3320 | AMDEP_FALSE='#' |
| 3321 | else |
| 3322 | AMDEP_TRUE='#' |
| 3323 | AMDEP_FALSE= |
| 3324 | fi |
| 3325 | |
| 3326 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3327 | ac_ext=c |
| 3328 | ac_cpp='$CPP $CPPFLAGS' |
| 3329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3332 | if test -n "$ac_tool_prefix"; then |
| 3333 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3334 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3336 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3337 | if ${ac_cv_prog_CC+:} false; then : |
| 3338 | $as_echo_n "(cached) " >&6 |
| 3339 | else |
| 3340 | if test -n "$CC"; then |
| 3341 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3342 | else |
| 3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3344 | for as_dir in $PATH |
| 3345 | do |
| 3346 | IFS=$as_save_IFS |
| 3347 | test -z "$as_dir" && as_dir=. |
| 3348 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3350 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3352 | break 2 |
| 3353 | fi |
| 3354 | done |
| 3355 | done |
| 3356 | IFS=$as_save_IFS |
| 3357 | |
| 3358 | fi |
| 3359 | fi |
| 3360 | CC=$ac_cv_prog_CC |
| 3361 | if test -n "$CC"; then |
| 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3363 | $as_echo "$CC" >&6; } |
| 3364 | else |
| 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3366 | $as_echo "no" >&6; } |
| 3367 | fi |
| 3368 | |
| 3369 | |
| 3370 | fi |
| 3371 | if test -z "$ac_cv_prog_CC"; then |
| 3372 | ac_ct_CC=$CC |
| 3373 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3374 | set dummy gcc; ac_word=$2 |
| 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3376 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3377 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3378 | $as_echo_n "(cached) " >&6 |
| 3379 | else |
| 3380 | if test -n "$ac_ct_CC"; then |
| 3381 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3382 | else |
| 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3384 | for as_dir in $PATH |
| 3385 | do |
| 3386 | IFS=$as_save_IFS |
| 3387 | test -z "$as_dir" && as_dir=. |
| 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3390 | ac_cv_prog_ac_ct_CC="gcc" |
| 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3392 | break 2 |
| 3393 | fi |
| 3394 | done |
| 3395 | done |
| 3396 | IFS=$as_save_IFS |
| 3397 | |
| 3398 | fi |
| 3399 | fi |
| 3400 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3401 | if test -n "$ac_ct_CC"; then |
| 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3403 | $as_echo "$ac_ct_CC" >&6; } |
| 3404 | else |
| 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3406 | $as_echo "no" >&6; } |
| 3407 | fi |
| 3408 | |
| 3409 | if test "x$ac_ct_CC" = x; then |
| 3410 | CC="" |
| 3411 | else |
| 3412 | case $cross_compiling:$ac_tool_warned in |
| 3413 | yes:) |
| 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3416 | ac_tool_warned=yes ;; |
| 3417 | esac |
| 3418 | CC=$ac_ct_CC |
| 3419 | fi |
| 3420 | else |
| 3421 | CC="$ac_cv_prog_CC" |
| 3422 | fi |
| 3423 | |
| 3424 | if test -z "$CC"; then |
| 3425 | if test -n "$ac_tool_prefix"; then |
| 3426 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3427 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3429 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3430 | if ${ac_cv_prog_CC+:} false; then : |
| 3431 | $as_echo_n "(cached) " >&6 |
| 3432 | else |
| 3433 | if test -n "$CC"; then |
| 3434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3435 | else |
| 3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3437 | for as_dir in $PATH |
| 3438 | do |
| 3439 | IFS=$as_save_IFS |
| 3440 | test -z "$as_dir" && as_dir=. |
| 3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3443 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3445 | break 2 |
| 3446 | fi |
| 3447 | done |
| 3448 | done |
| 3449 | IFS=$as_save_IFS |
| 3450 | |
| 3451 | fi |
| 3452 | fi |
| 3453 | CC=$ac_cv_prog_CC |
| 3454 | if test -n "$CC"; then |
| 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3456 | $as_echo "$CC" >&6; } |
| 3457 | else |
| 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3459 | $as_echo "no" >&6; } |
| 3460 | fi |
| 3461 | |
| 3462 | |
| 3463 | fi |
| 3464 | fi |
| 3465 | if test -z "$CC"; then |
| 3466 | # Extract the first word of "cc", so it can be a program name with args. |
| 3467 | set dummy cc; ac_word=$2 |
| 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3469 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3470 | if ${ac_cv_prog_CC+:} false; then : |
| 3471 | $as_echo_n "(cached) " >&6 |
| 3472 | else |
| 3473 | if test -n "$CC"; then |
| 3474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3475 | else |
| 3476 | ac_prog_rejected=no |
| 3477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3478 | for as_dir in $PATH |
| 3479 | do |
| 3480 | IFS=$as_save_IFS |
| 3481 | test -z "$as_dir" && as_dir=. |
| 3482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3484 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3485 | ac_prog_rejected=yes |
| 3486 | continue |
| 3487 | fi |
| 3488 | ac_cv_prog_CC="cc" |
| 3489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3490 | break 2 |
| 3491 | fi |
| 3492 | done |
| 3493 | done |
| 3494 | IFS=$as_save_IFS |
| 3495 | |
| 3496 | if test $ac_prog_rejected = yes; then |
| 3497 | # We found a bogon in the path, so make sure we never use it. |
| 3498 | set dummy $ac_cv_prog_CC |
| 3499 | shift |
| 3500 | if test $# != 0; then |
| 3501 | # We chose a different compiler from the bogus one. |
| 3502 | # However, it has the same basename, so the bogon will be chosen |
| 3503 | # first if we set CC to just the basename; use the full file name. |
| 3504 | shift |
| 3505 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3506 | fi |
| 3507 | fi |
| 3508 | fi |
| 3509 | fi |
| 3510 | CC=$ac_cv_prog_CC |
| 3511 | if test -n "$CC"; then |
| 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3513 | $as_echo "$CC" >&6; } |
| 3514 | else |
| 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3516 | $as_echo "no" >&6; } |
| 3517 | fi |
| 3518 | |
| 3519 | |
| 3520 | fi |
| 3521 | if test -z "$CC"; then |
| 3522 | if test -n "$ac_tool_prefix"; then |
| 3523 | for ac_prog in cl.exe |
| 3524 | do |
| 3525 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3526 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3528 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3529 | if ${ac_cv_prog_CC+:} false; then : |
| 3530 | $as_echo_n "(cached) " >&6 |
| 3531 | else |
| 3532 | if test -n "$CC"; then |
| 3533 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3534 | else |
| 3535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3536 | for as_dir in $PATH |
| 3537 | do |
| 3538 | IFS=$as_save_IFS |
| 3539 | test -z "$as_dir" && as_dir=. |
| 3540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3542 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3544 | break 2 |
| 3545 | fi |
| 3546 | done |
| 3547 | done |
| 3548 | IFS=$as_save_IFS |
| 3549 | |
| 3550 | fi |
| 3551 | fi |
| 3552 | CC=$ac_cv_prog_CC |
| 3553 | if test -n "$CC"; then |
| 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3555 | $as_echo "$CC" >&6; } |
| 3556 | else |
| 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3558 | $as_echo "no" >&6; } |
| 3559 | fi |
| 3560 | |
| 3561 | |
| 3562 | test -n "$CC" && break |
| 3563 | done |
| 3564 | fi |
| 3565 | if test -z "$CC"; then |
| 3566 | ac_ct_CC=$CC |
| 3567 | for ac_prog in cl.exe |
| 3568 | do |
| 3569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3570 | set dummy $ac_prog; ac_word=$2 |
| 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3572 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3573 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3574 | $as_echo_n "(cached) " >&6 |
| 3575 | else |
| 3576 | if test -n "$ac_ct_CC"; then |
| 3577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3578 | else |
| 3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3580 | for as_dir in $PATH |
| 3581 | do |
| 3582 | IFS=$as_save_IFS |
| 3583 | test -z "$as_dir" && as_dir=. |
| 3584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3585 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3586 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3588 | break 2 |
| 3589 | fi |
| 3590 | done |
| 3591 | done |
| 3592 | IFS=$as_save_IFS |
| 3593 | |
| 3594 | fi |
| 3595 | fi |
| 3596 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3597 | if test -n "$ac_ct_CC"; then |
| 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3599 | $as_echo "$ac_ct_CC" >&6; } |
| 3600 | else |
| 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3602 | $as_echo "no" >&6; } |
| 3603 | fi |
| 3604 | |
| 3605 | |
| 3606 | test -n "$ac_ct_CC" && break |
| 3607 | done |
| 3608 | |
| 3609 | if test "x$ac_ct_CC" = x; then |
| 3610 | CC="" |
| 3611 | else |
| 3612 | case $cross_compiling:$ac_tool_warned in |
| 3613 | yes:) |
| 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3616 | ac_tool_warned=yes ;; |
| 3617 | esac |
| 3618 | CC=$ac_ct_CC |
| 3619 | fi |
| 3620 | fi |
| 3621 | |
| 3622 | fi |
| 3623 | |
| 3624 | |
| 3625 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3627 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3628 | See \`config.log' for more details" "$LINENO" 5; } |
| 3629 | |
| 3630 | # Provide some information about the compiler. |
| 3631 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3632 | set X $ac_compile |
| 3633 | ac_compiler=$2 |
| 3634 | for ac_option in --version -v -V -qversion; do |
| 3635 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3636 | case "(($ac_try" in |
| 3637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3638 | *) ac_try_echo=$ac_try;; |
| 3639 | esac |
| 3640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3641 | $as_echo "$ac_try_echo"; } >&5 |
| 3642 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3643 | ac_status=$? |
| 3644 | if test -s conftest.err; then |
| 3645 | sed '10a\ |
| 3646 | ... rest of stderr output deleted ... |
| 3647 | 10q' conftest.err >conftest.er1 |
| 3648 | cat conftest.er1 >&5 |
| 3649 | fi |
| 3650 | rm -f conftest.er1 conftest.err |
| 3651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3652 | test $ac_status = 0; } |
| 3653 | done |
| 3654 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 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 | ac_clean_files_save=$ac_clean_files |
| 3667 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3668 | # Try to create an executable without -o first, disregard a.out. |
| 3669 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3670 | # of exeext. |
| 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3672 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3673 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3674 | |
| 3675 | # The possible output files: |
| 3676 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3677 | |
| 3678 | ac_rmfiles= |
| 3679 | for ac_file in $ac_files |
| 3680 | do |
| 3681 | case $ac_file in |
| 3682 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3683 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3684 | esac |
| 3685 | done |
| 3686 | rm -f $ac_rmfiles |
| 3687 | |
| 3688 | if { { ac_try="$ac_link_default" |
| 3689 | case "(($ac_try" in |
| 3690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3691 | *) ac_try_echo=$ac_try;; |
| 3692 | esac |
| 3693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3694 | $as_echo "$ac_try_echo"; } >&5 |
| 3695 | (eval "$ac_link_default") 2>&5 |
| 3696 | ac_status=$? |
| 3697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3698 | test $ac_status = 0; }; then : |
| 3699 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3700 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3701 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3702 | # so that the user can short-circuit this test for compilers unknown to |
| 3703 | # Autoconf. |
| 3704 | for ac_file in $ac_files '' |
| 3705 | do |
| 3706 | test -f "$ac_file" || continue |
| 3707 | case $ac_file in |
| 3708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3709 | ;; |
| 3710 | [ab].out ) |
| 3711 | # We found the default executable, but exeext='' is most |
| 3712 | # certainly right. |
| 3713 | break;; |
| 3714 | *.* ) |
| 3715 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3716 | then :; else |
| 3717 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3718 | fi |
| 3719 | # We set ac_cv_exeext here because the later test for it is not |
| 3720 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3721 | # argument, so we may need to know it at that point already. |
| 3722 | # Even if this section looks crufty: it has the advantage of |
| 3723 | # actually working. |
| 3724 | break;; |
| 3725 | * ) |
| 3726 | break;; |
| 3727 | esac |
| 3728 | done |
| 3729 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3730 | |
| 3731 | else |
| 3732 | ac_file='' |
| 3733 | fi |
| 3734 | if test -z "$ac_file"; then : |
| 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3736 | $as_echo "no" >&6; } |
| 3737 | $as_echo "$as_me: failed program was:" >&5 |
| 3738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3739 | |
| 3740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3741 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3742 | as_fn_error 77 "C compiler cannot create executables |
| 3743 | See \`config.log' for more details" "$LINENO" 5; } |
| 3744 | else |
| 3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3746 | $as_echo "yes" >&6; } |
| 3747 | fi |
| 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3749 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3751 | $as_echo "$ac_file" >&6; } |
| 3752 | ac_exeext=$ac_cv_exeext |
| 3753 | |
| 3754 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3755 | ac_clean_files=$ac_clean_files_save |
| 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3757 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3758 | if { { ac_try="$ac_link" |
| 3759 | case "(($ac_try" in |
| 3760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3761 | *) ac_try_echo=$ac_try;; |
| 3762 | esac |
| 3763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3764 | $as_echo "$ac_try_echo"; } >&5 |
| 3765 | (eval "$ac_link") 2>&5 |
| 3766 | ac_status=$? |
| 3767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3768 | test $ac_status = 0; }; then : |
| 3769 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3770 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3771 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3772 | # `rm'. |
| 3773 | for ac_file in conftest.exe conftest conftest.*; do |
| 3774 | test -f "$ac_file" || continue |
| 3775 | case $ac_file in |
| 3776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3777 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3778 | break;; |
| 3779 | * ) break;; |
| 3780 | esac |
| 3781 | done |
| 3782 | else |
| 3783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3784 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3785 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3786 | See \`config.log' for more details" "$LINENO" 5; } |
| 3787 | fi |
| 3788 | rm -f conftest conftest$ac_cv_exeext |
| 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3790 | $as_echo "$ac_cv_exeext" >&6; } |
| 3791 | |
| 3792 | rm -f conftest.$ac_ext |
| 3793 | EXEEXT=$ac_cv_exeext |
| 3794 | ac_exeext=$EXEEXT |
| 3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3796 | /* end confdefs.h. */ |
| 3797 | #include <stdio.h> |
| 3798 | int |
| 3799 | main () |
| 3800 | { |
| 3801 | FILE *f = fopen ("conftest.out", "w"); |
| 3802 | return ferror (f) || fclose (f) != 0; |
| 3803 | |
| 3804 | ; |
| 3805 | return 0; |
| 3806 | } |
| 3807 | _ACEOF |
| 3808 | ac_clean_files="$ac_clean_files conftest.out" |
| 3809 | # Check that the compiler produces executables we can run. If not, either |
| 3810 | # the compiler is broken, or we cross compile. |
| 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3812 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3813 | if test "$cross_compiling" != yes; then |
| 3814 | { { ac_try="$ac_link" |
| 3815 | case "(($ac_try" in |
| 3816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3817 | *) ac_try_echo=$ac_try;; |
| 3818 | esac |
| 3819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3820 | $as_echo "$ac_try_echo"; } >&5 |
| 3821 | (eval "$ac_link") 2>&5 |
| 3822 | ac_status=$? |
| 3823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3824 | test $ac_status = 0; } |
| 3825 | if { ac_try='./conftest$ac_cv_exeext' |
| 3826 | { { case "(($ac_try" in |
| 3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3828 | *) ac_try_echo=$ac_try;; |
| 3829 | esac |
| 3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3831 | $as_echo "$ac_try_echo"; } >&5 |
| 3832 | (eval "$ac_try") 2>&5 |
| 3833 | ac_status=$? |
| 3834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3835 | test $ac_status = 0; }; }; then |
| 3836 | cross_compiling=no |
| 3837 | else |
| 3838 | if test "$cross_compiling" = maybe; then |
| 3839 | cross_compiling=yes |
| 3840 | else |
| 3841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3843 | as_fn_error $? "cannot run C compiled programs. |
| 3844 | If you meant to cross compile, use \`--host'. |
| 3845 | See \`config.log' for more details" "$LINENO" 5; } |
| 3846 | fi |
| 3847 | fi |
| 3848 | fi |
| 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3850 | $as_echo "$cross_compiling" >&6; } |
| 3851 | |
| 3852 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3853 | ac_clean_files=$ac_clean_files_save |
| 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3855 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3856 | if ${ac_cv_objext+:} false; then : |
| 3857 | $as_echo_n "(cached) " >&6 |
| 3858 | else |
| 3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3860 | /* end confdefs.h. */ |
| 3861 | |
| 3862 | int |
| 3863 | main () |
| 3864 | { |
| 3865 | |
| 3866 | ; |
| 3867 | return 0; |
| 3868 | } |
| 3869 | _ACEOF |
| 3870 | rm -f conftest.o conftest.obj |
| 3871 | if { { ac_try="$ac_compile" |
| 3872 | case "(($ac_try" in |
| 3873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3874 | *) ac_try_echo=$ac_try;; |
| 3875 | esac |
| 3876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3877 | $as_echo "$ac_try_echo"; } >&5 |
| 3878 | (eval "$ac_compile") 2>&5 |
| 3879 | ac_status=$? |
| 3880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3881 | test $ac_status = 0; }; then : |
| 3882 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3883 | test -f "$ac_file" || continue; |
| 3884 | case $ac_file in |
| 3885 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3886 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3887 | break;; |
| 3888 | esac |
| 3889 | done |
| 3890 | else |
| 3891 | $as_echo "$as_me: failed program was:" >&5 |
| 3892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3893 | |
| 3894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3896 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3897 | See \`config.log' for more details" "$LINENO" 5; } |
| 3898 | fi |
| 3899 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3900 | fi |
| 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3902 | $as_echo "$ac_cv_objext" >&6; } |
| 3903 | OBJEXT=$ac_cv_objext |
| 3904 | ac_objext=$OBJEXT |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3906 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3907 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3908 | $as_echo_n "(cached) " >&6 |
| 3909 | else |
| 3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3911 | /* end confdefs.h. */ |
| 3912 | |
| 3913 | int |
| 3914 | main () |
| 3915 | { |
| 3916 | #ifndef __GNUC__ |
| 3917 | choke me |
| 3918 | #endif |
| 3919 | |
| 3920 | ; |
| 3921 | return 0; |
| 3922 | } |
| 3923 | _ACEOF |
| 3924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3925 | ac_compiler_gnu=yes |
| 3926 | else |
| 3927 | ac_compiler_gnu=no |
| 3928 | fi |
| 3929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3930 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3931 | |
| 3932 | fi |
| 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3934 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3935 | if test $ac_compiler_gnu = yes; then |
| 3936 | GCC=yes |
| 3937 | else |
| 3938 | GCC= |
| 3939 | fi |
| 3940 | ac_test_CFLAGS=${CFLAGS+set} |
| 3941 | ac_save_CFLAGS=$CFLAGS |
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3943 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3944 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3945 | $as_echo_n "(cached) " >&6 |
| 3946 | else |
| 3947 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3948 | ac_c_werror_flag=yes |
| 3949 | ac_cv_prog_cc_g=no |
| 3950 | CFLAGS="-g" |
| 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3952 | /* end confdefs.h. */ |
| 3953 | |
| 3954 | int |
| 3955 | main () |
| 3956 | { |
| 3957 | |
| 3958 | ; |
| 3959 | return 0; |
| 3960 | } |
| 3961 | _ACEOF |
| 3962 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3963 | ac_cv_prog_cc_g=yes |
| 3964 | else |
| 3965 | CFLAGS="" |
| 3966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3967 | /* end confdefs.h. */ |
| 3968 | |
| 3969 | int |
| 3970 | main () |
| 3971 | { |
| 3972 | |
| 3973 | ; |
| 3974 | return 0; |
| 3975 | } |
| 3976 | _ACEOF |
| 3977 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3978 | |
| 3979 | else |
| 3980 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3981 | CFLAGS="-g" |
| 3982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3983 | /* end confdefs.h. */ |
| 3984 | |
| 3985 | int |
| 3986 | main () |
| 3987 | { |
| 3988 | |
| 3989 | ; |
| 3990 | return 0; |
| 3991 | } |
| 3992 | _ACEOF |
| 3993 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3994 | ac_cv_prog_cc_g=yes |
| 3995 | fi |
| 3996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3997 | fi |
| 3998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3999 | fi |
| 4000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4001 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4002 | fi |
| 4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4004 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4005 | if test "$ac_test_CFLAGS" = set; then |
| 4006 | CFLAGS=$ac_save_CFLAGS |
| 4007 | elif test $ac_cv_prog_cc_g = yes; then |
| 4008 | if test "$GCC" = yes; then |
| 4009 | CFLAGS="-g -O2" |
| 4010 | else |
| 4011 | CFLAGS="-g" |
| 4012 | fi |
| 4013 | else |
| 4014 | if test "$GCC" = yes; then |
| 4015 | CFLAGS="-O2" |
| 4016 | else |
| 4017 | CFLAGS= |
| 4018 | fi |
| 4019 | fi |
| 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4021 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4022 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4023 | $as_echo_n "(cached) " >&6 |
| 4024 | else |
| 4025 | ac_cv_prog_cc_c89=no |
| 4026 | ac_save_CC=$CC |
| 4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4028 | /* end confdefs.h. */ |
| 4029 | #include <stdarg.h> |
| 4030 | #include <stdio.h> |
| 4031 | struct stat; |
| 4032 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4033 | struct buf { int x; }; |
| 4034 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4035 | static char *e (p, i) |
| 4036 | char **p; |
| 4037 | int i; |
| 4038 | { |
| 4039 | return p[i]; |
| 4040 | } |
| 4041 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4042 | { |
| 4043 | char *s; |
| 4044 | va_list v; |
| 4045 | va_start (v,p); |
| 4046 | s = g (p, va_arg (v,int)); |
| 4047 | va_end (v); |
| 4048 | return s; |
| 4049 | } |
| 4050 | |
| 4051 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4052 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4053 | These don't provoke an error unfortunately, instead are silently treated |
| 4054 | as 'x'. The following induces an error, until -std is added to get |
| 4055 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4056 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4057 | that's true only with -std. */ |
| 4058 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4059 | |
| 4060 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4061 | inside strings and character constants. */ |
| 4062 | #define FOO(x) 'x' |
| 4063 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4064 | |
| 4065 | int test (int i, double x); |
| 4066 | struct s1 {int (*f) (int a);}; |
| 4067 | struct s2 {int (*f) (double a);}; |
| 4068 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4069 | int argc; |
| 4070 | char **argv; |
| 4071 | int |
| 4072 | main () |
| 4073 | { |
| 4074 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4075 | ; |
| 4076 | return 0; |
| 4077 | } |
| 4078 | _ACEOF |
| 4079 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4080 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4081 | do |
| 4082 | CC="$ac_save_CC $ac_arg" |
| 4083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4084 | ac_cv_prog_cc_c89=$ac_arg |
| 4085 | fi |
| 4086 | rm -f core conftest.err conftest.$ac_objext |
| 4087 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4088 | done |
| 4089 | rm -f conftest.$ac_ext |
| 4090 | CC=$ac_save_CC |
| 4091 | |
| 4092 | fi |
| 4093 | # AC_CACHE_VAL |
| 4094 | case "x$ac_cv_prog_cc_c89" in |
| 4095 | x) |
| 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4097 | $as_echo "none needed" >&6; } ;; |
| 4098 | xno) |
| 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4100 | $as_echo "unsupported" >&6; } ;; |
| 4101 | *) |
| 4102 | CC="$CC $ac_cv_prog_cc_c89" |
| 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4104 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4105 | esac |
| 4106 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4107 | |
| 4108 | fi |
| 4109 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4110 | ac_ext=c |
| 4111 | ac_cpp='$CPP $CPPFLAGS' |
| 4112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4115 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4116 | ac_ext=c |
| 4117 | ac_cpp='$CPP $CPPFLAGS' |
| 4118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4122 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4123 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4124 | $as_echo_n "(cached) " >&6 |
| 4125 | else |
| 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4127 | /* end confdefs.h. */ |
| 4128 | |
| 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | # Make sure it works both with $CC and with simple cc. |
| 4138 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4139 | # compilers refuse to overwrite an existing .o file with -o, |
| 4140 | # though they will create one. |
| 4141 | am_cv_prog_cc_c_o=yes |
| 4142 | for am_i in 1 2; do |
| 4143 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4144 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); } \ |
| 4148 | && test -f conftest2.$ac_objext; then |
| 4149 | : OK |
| 4150 | else |
| 4151 | am_cv_prog_cc_c_o=no |
| 4152 | break |
| 4153 | fi |
| 4154 | done |
| 4155 | rm -f core conftest* |
| 4156 | unset am_i |
| 4157 | fi |
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4159 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4160 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4161 | # Losing compiler, so override with the script. |
| 4162 | # FIXME: It is wrong to rewrite CC. |
| 4163 | # But if we don't then we get into trouble of one sort or another. |
| 4164 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4165 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4166 | CC="$am_aux_dir/compile $CC" |
| 4167 | fi |
| 4168 | ac_ext=c |
| 4169 | ac_cpp='$CPP $CPPFLAGS' |
| 4170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4173 | |
| 4174 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4175 | depcc="$CC" am_compiler_list= |
| 4176 | |
| 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4178 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4179 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4180 | $as_echo_n "(cached) " >&6 |
| 4181 | else |
| 4182 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4183 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4184 | # making bogus files that we don't know about and never remove. For |
| 4185 | # instance it was reported that on HP-UX the gcc test will end up |
| 4186 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4187 | # in D". |
| 4188 | rm -rf conftest.dir |
| 4189 | mkdir conftest.dir |
| 4190 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4191 | # using a relative directory. |
| 4192 | cp "$am_depcomp" conftest.dir |
| 4193 | cd conftest.dir |
| 4194 | # We will build objects and dependencies in a subdirectory because |
| 4195 | # it helps to detect inapplicable dependency modes. For instance |
| 4196 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4197 | # side effect of compilation, but ICC will put the dependencies in |
| 4198 | # the current directory while Tru64 will put them in the object |
| 4199 | # directory. |
| 4200 | mkdir sub |
| 4201 | |
| 4202 | am_cv_CC_dependencies_compiler_type=none |
| 4203 | if test "$am_compiler_list" = ""; then |
| 4204 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4205 | fi |
| 4206 | am__universal=false |
| 4207 | case " $depcc " in #( |
| 4208 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4209 | esac |
| 4210 | |
| 4211 | for depmode in $am_compiler_list; do |
| 4212 | # Setup a source with many dependencies, because some compilers |
| 4213 | # like to wrap large dependency lists on column 80 (with \), and |
| 4214 | # we should not choose a depcomp mode which is confused by this. |
| 4215 | # |
| 4216 | # We need to recreate these files for each test, as the compiler may |
| 4217 | # overwrite some of them when testing with obscure command lines. |
| 4218 | # This happens at least with the AIX C compiler. |
| 4219 | : > sub/conftest.c |
| 4220 | for i in 1 2 3 4 5 6; do |
| 4221 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4222 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4223 | # Solaris 10 /bin/sh. |
| 4224 | echo '/* dummy */' > sub/conftst$i.h |
| 4225 | done |
| 4226 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4227 | |
| 4228 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4229 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4230 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4231 | # versions had trouble with output in subdirs. |
| 4232 | am__obj=sub/conftest.${OBJEXT-o} |
| 4233 | am__minus_obj="-o $am__obj" |
| 4234 | case $depmode in |
| 4235 | gcc) |
| 4236 | # This depmode causes a compiler race in universal mode. |
| 4237 | test "$am__universal" = false || continue |
| 4238 | ;; |
| 4239 | nosideeffect) |
| 4240 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4241 | # only be used when explicitly requested. |
| 4242 | if test "x$enable_dependency_tracking" = xyes; then |
| 4243 | continue |
| 4244 | else |
| 4245 | break |
| 4246 | fi |
| 4247 | ;; |
| 4248 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4249 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4250 | # not run yet. These depmodes are late enough in the game, and |
| 4251 | # so weak that their functioning should not be impacted. |
| 4252 | am__obj=conftest.${OBJEXT-o} |
| 4253 | am__minus_obj= |
| 4254 | ;; |
| 4255 | none) break ;; |
| 4256 | esac |
| 4257 | if depmode=$depmode \ |
| 4258 | source=sub/conftest.c object=$am__obj \ |
| 4259 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4260 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4261 | >/dev/null 2>conftest.err && |
| 4262 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4263 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4264 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4265 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4266 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4267 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4268 | # that says an option was ignored or not supported. |
| 4269 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4270 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4271 | # The diagnosis changed in icc 8.0: |
| 4272 | # icc: Command line remark: option '-MP' not supported |
| 4273 | if (grep 'ignoring option' conftest.err || |
| 4274 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4275 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4276 | break |
| 4277 | fi |
| 4278 | fi |
| 4279 | done |
| 4280 | |
| 4281 | cd .. |
| 4282 | rm -rf conftest.dir |
| 4283 | else |
| 4284 | am_cv_CC_dependencies_compiler_type=none |
| 4285 | fi |
| 4286 | |
| 4287 | fi |
| 4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4289 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4290 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4291 | |
| 4292 | if |
| 4293 | test "x$enable_dependency_tracking" != xno \ |
| 4294 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4295 | am__fastdepCC_TRUE= |
| 4296 | am__fastdepCC_FALSE='#' |
| 4297 | else |
| 4298 | am__fastdepCC_TRUE='#' |
| 4299 | am__fastdepCC_FALSE= |
| 4300 | fi |
| 4301 | |
| 4302 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4303 | |
| 4304 | if test -n "$ac_tool_prefix"; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4305 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4306 | do |
| 4307 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4308 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4310 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4311 | if ${ac_cv_prog_AR+:} false; then : |
| 4312 | $as_echo_n "(cached) " >&6 |
| 4313 | else |
| 4314 | if test -n "$AR"; then |
| 4315 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4316 | else |
| 4317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4318 | for as_dir in $PATH |
| 4319 | do |
| 4320 | IFS=$as_save_IFS |
| 4321 | test -z "$as_dir" && as_dir=. |
| 4322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4324 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4326 | break 2 |
| 4327 | fi |
| 4328 | done |
| 4329 | done |
| 4330 | IFS=$as_save_IFS |
| 4331 | |
| 4332 | fi |
| 4333 | fi |
| 4334 | AR=$ac_cv_prog_AR |
| 4335 | if test -n "$AR"; then |
| 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4337 | $as_echo "$AR" >&6; } |
| 4338 | else |
| 4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4340 | $as_echo "no" >&6; } |
| 4341 | fi |
| 4342 | |
| 4343 | |
| 4344 | test -n "$AR" && break |
| 4345 | done |
| 4346 | fi |
| 4347 | if test -z "$AR"; then |
| 4348 | ac_ct_AR=$AR |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4349 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4350 | do |
| 4351 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4352 | set dummy $ac_prog; ac_word=$2 |
| 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4355 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4356 | $as_echo_n "(cached) " >&6 |
| 4357 | else |
| 4358 | if test -n "$ac_ct_AR"; then |
| 4359 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4360 | else |
| 4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 | for as_dir in $PATH |
| 4363 | do |
| 4364 | IFS=$as_save_IFS |
| 4365 | test -z "$as_dir" && as_dir=. |
| 4366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4368 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4370 | break 2 |
| 4371 | fi |
| 4372 | done |
| 4373 | done |
| 4374 | IFS=$as_save_IFS |
| 4375 | |
| 4376 | fi |
| 4377 | fi |
| 4378 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4379 | if test -n "$ac_ct_AR"; then |
| 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4381 | $as_echo "$ac_ct_AR" >&6; } |
| 4382 | else |
| 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4384 | $as_echo "no" >&6; } |
| 4385 | fi |
| 4386 | |
| 4387 | |
| 4388 | test -n "$ac_ct_AR" && break |
| 4389 | done |
| 4390 | |
| 4391 | if test "x$ac_ct_AR" = x; then |
| 4392 | AR="false" |
| 4393 | else |
| 4394 | case $cross_compiling:$ac_tool_warned in |
| 4395 | yes:) |
| 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4398 | ac_tool_warned=yes ;; |
| 4399 | esac |
| 4400 | AR=$ac_ct_AR |
| 4401 | fi |
| 4402 | fi |
| 4403 | |
| 4404 | : ${AR=ar} |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4405 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4407 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4408 | if ${am_cv_ar_interface+:} false; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4409 | $as_echo_n "(cached) " >&6 |
| 4410 | else |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4411 | ac_ext=c |
| 4412 | ac_cpp='$CPP $CPPFLAGS' |
| 4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4416 | |
| 4417 | am_cv_ar_interface=ar |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4419 | /* end confdefs.h. */ |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4420 | int some_variable = 0; |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4421 | _ACEOF |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4422 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4423 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4424 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4425 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4426 | ac_status=$? |
| 4427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4428 | test $ac_status = 0; } |
| 4429 | if test "$ac_status" -eq 0; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4430 | am_cv_ar_interface=ar |
| 4431 | else |
| 4432 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4434 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4435 | ac_status=$? |
| 4436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4437 | test $ac_status = 0; } |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4438 | if test "$ac_status" -eq 0; then |
| 4439 | am_cv_ar_interface=lib |
| 4440 | else |
| 4441 | am_cv_ar_interface=unknown |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4442 | fi |
| 4443 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4444 | rm -f conftest.lib libconftest.a |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4445 | |
| 4446 | fi |
| 4447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4448 | ac_ext=c |
| 4449 | ac_cpp='$CPP $CPPFLAGS' |
| 4450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4453 | |
| 4454 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4456 | $as_echo "$am_cv_ar_interface" >&6; } |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4457 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4458 | case $am_cv_ar_interface in |
| 4459 | ar) |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4460 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4461 | lib) |
| 4462 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4463 | # FIXME: It is wrong to rewrite AR. |
| 4464 | # But if we don't then we get into trouble of one sort or another. |
| 4465 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4466 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4467 | # similar. |
| 4468 | AR="$am_aux_dir/ar-lib $AR" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4469 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4470 | unknown) |
| 4471 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4472 | ;; |
| 4473 | esac |
| 4474 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 4475 | case `pwd` in |
| 4476 | *\ * | *\ *) |
| 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4478 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4479 | esac |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | macro_version='2.4.2' |
| 4484 | macro_revision='1.3337' |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4499 | |
| 4500 | # Make sure we can run config.sub. |
| 4501 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4502 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4503 | |
| 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4505 | $as_echo_n "checking build system type... " >&6; } |
| 4506 | if ${ac_cv_build+:} false; then : |
| 4507 | $as_echo_n "(cached) " >&6 |
| 4508 | else |
| 4509 | ac_build_alias=$build_alias |
| 4510 | test "x$ac_build_alias" = x && |
| 4511 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4512 | test "x$ac_build_alias" = x && |
| 4513 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4514 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4515 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4516 | |
| 4517 | fi |
| 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4519 | $as_echo "$ac_cv_build" >&6; } |
| 4520 | case $ac_cv_build in |
| 4521 | *-*-*) ;; |
| 4522 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4523 | esac |
| 4524 | build=$ac_cv_build |
| 4525 | ac_save_IFS=$IFS; IFS='-' |
| 4526 | set x $ac_cv_build |
| 4527 | shift |
| 4528 | build_cpu=$1 |
| 4529 | build_vendor=$2 |
| 4530 | shift; shift |
| 4531 | # Remember, the first character of IFS is used to create $*, |
| 4532 | # except with old shells: |
| 4533 | build_os=$* |
| 4534 | IFS=$ac_save_IFS |
| 4535 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4536 | |
| 4537 | |
| 4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4539 | $as_echo_n "checking host system type... " >&6; } |
| 4540 | if ${ac_cv_host+:} false; then : |
| 4541 | $as_echo_n "(cached) " >&6 |
| 4542 | else |
| 4543 | if test "x$host_alias" = x; then |
| 4544 | ac_cv_host=$ac_cv_build |
| 4545 | else |
| 4546 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4547 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4548 | fi |
| 4549 | |
| 4550 | fi |
| 4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4552 | $as_echo "$ac_cv_host" >&6; } |
| 4553 | case $ac_cv_host in |
| 4554 | *-*-*) ;; |
| 4555 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4556 | esac |
| 4557 | host=$ac_cv_host |
| 4558 | ac_save_IFS=$IFS; IFS='-' |
| 4559 | set x $ac_cv_host |
| 4560 | shift |
| 4561 | host_cpu=$1 |
| 4562 | host_vendor=$2 |
| 4563 | shift; shift |
| 4564 | # Remember, the first character of IFS is used to create $*, |
| 4565 | # except with old shells: |
| 4566 | host_os=$* |
| 4567 | IFS=$ac_save_IFS |
| 4568 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4569 | |
| 4570 | |
| 4571 | # Backslashify metacharacters that are still active within |
| 4572 | # double-quoted strings. |
| 4573 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4574 | |
| 4575 | # Same as above, but do not quote variable references. |
| 4576 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4577 | |
| 4578 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4579 | # double_quote_subst'ed string. |
| 4580 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4581 | |
| 4582 | # Sed substitution to delay expansion of an escaped single quote. |
| 4583 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4584 | |
| 4585 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4586 | no_glob_subst='s/\*/\\\*/g' |
| 4587 | |
| 4588 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4589 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4590 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4591 | |
| 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4593 | $as_echo_n "checking how to print strings... " >&6; } |
| 4594 | # Test print first, because it will be a builtin if present. |
| 4595 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4596 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4597 | ECHO='print -r --' |
| 4598 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4599 | ECHO='printf %s\n' |
| 4600 | else |
| 4601 | # Use this function as a fallback that always works. |
| 4602 | func_fallback_echo () |
| 4603 | { |
| 4604 | eval 'cat <<_LTECHO_EOF |
| 4605 | $1 |
| 4606 | _LTECHO_EOF' |
| 4607 | } |
| 4608 | ECHO='func_fallback_echo' |
| 4609 | fi |
| 4610 | |
| 4611 | # func_echo_all arg... |
| 4612 | # Invoke $ECHO with all args, space-separated. |
| 4613 | func_echo_all () |
| 4614 | { |
| 4615 | $ECHO "" |
| 4616 | } |
| 4617 | |
| 4618 | case "$ECHO" in |
| 4619 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4620 | $as_echo "printf" >&6; } ;; |
| 4621 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4622 | $as_echo "print -r" >&6; } ;; |
| 4623 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4624 | $as_echo "cat" >&6; } ;; |
| 4625 | esac |
| 4626 | |
| 4627 | |
| 4628 | |
| 4629 | |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4641 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4642 | if ${ac_cv_path_SED+:} false; then : |
| 4643 | $as_echo_n "(cached) " >&6 |
| 4644 | else |
| 4645 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4646 | for ac_i in 1 2 3 4 5 6 7; do |
| 4647 | ac_script="$ac_script$as_nl$ac_script" |
| 4648 | done |
| 4649 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4650 | { ac_script=; unset ac_script;} |
| 4651 | if test -z "$SED"; then |
| 4652 | ac_path_SED_found=false |
| 4653 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4655 | for as_dir in $PATH |
| 4656 | do |
| 4657 | IFS=$as_save_IFS |
| 4658 | test -z "$as_dir" && as_dir=. |
| 4659 | for ac_prog in sed gsed; do |
| 4660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4661 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4662 | as_fn_executable_p "$ac_path_SED" || continue |
| 4663 | # Check for GNU ac_path_SED and select it if it is found. |
| 4664 | # Check for GNU $ac_path_SED |
| 4665 | case `"$ac_path_SED" --version 2>&1` in |
| 4666 | *GNU*) |
| 4667 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4668 | *) |
| 4669 | ac_count=0 |
| 4670 | $as_echo_n 0123456789 >"conftest.in" |
| 4671 | while : |
| 4672 | do |
| 4673 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4674 | mv "conftest.tmp" "conftest.in" |
| 4675 | cp "conftest.in" "conftest.nl" |
| 4676 | $as_echo '' >> "conftest.nl" |
| 4677 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4679 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4680 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4681 | # Best one so far, save it but keep looking for a better one |
| 4682 | ac_cv_path_SED="$ac_path_SED" |
| 4683 | ac_path_SED_max=$ac_count |
| 4684 | fi |
| 4685 | # 10*(2^10) chars as input seems more than enough |
| 4686 | test $ac_count -gt 10 && break |
| 4687 | done |
| 4688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4689 | esac |
| 4690 | |
| 4691 | $ac_path_SED_found && break 3 |
| 4692 | done |
| 4693 | done |
| 4694 | done |
| 4695 | IFS=$as_save_IFS |
| 4696 | if test -z "$ac_cv_path_SED"; then |
| 4697 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4698 | fi |
| 4699 | else |
| 4700 | ac_cv_path_SED=$SED |
| 4701 | fi |
| 4702 | |
| 4703 | fi |
| 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4705 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4706 | SED="$ac_cv_path_SED" |
| 4707 | rm -f conftest.sed |
| 4708 | |
| 4709 | test -z "$SED" && SED=sed |
| 4710 | Xsed="$SED -e 1s/^X//" |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4723 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4724 | if ${ac_cv_path_GREP+:} false; then : |
| 4725 | $as_echo_n "(cached) " >&6 |
| 4726 | else |
| 4727 | if test -z "$GREP"; then |
| 4728 | ac_path_GREP_found=false |
| 4729 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4731 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4732 | do |
| 4733 | IFS=$as_save_IFS |
| 4734 | test -z "$as_dir" && as_dir=. |
| 4735 | for ac_prog in grep ggrep; do |
| 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4737 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4738 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4739 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4740 | # Check for GNU $ac_path_GREP |
| 4741 | case `"$ac_path_GREP" --version 2>&1` in |
| 4742 | *GNU*) |
| 4743 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4744 | *) |
| 4745 | ac_count=0 |
| 4746 | $as_echo_n 0123456789 >"conftest.in" |
| 4747 | while : |
| 4748 | do |
| 4749 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4750 | mv "conftest.tmp" "conftest.in" |
| 4751 | cp "conftest.in" "conftest.nl" |
| 4752 | $as_echo 'GREP' >> "conftest.nl" |
| 4753 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4754 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4755 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4756 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4757 | # Best one so far, save it but keep looking for a better one |
| 4758 | ac_cv_path_GREP="$ac_path_GREP" |
| 4759 | ac_path_GREP_max=$ac_count |
| 4760 | fi |
| 4761 | # 10*(2^10) chars as input seems more than enough |
| 4762 | test $ac_count -gt 10 && break |
| 4763 | done |
| 4764 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4765 | esac |
| 4766 | |
| 4767 | $ac_path_GREP_found && break 3 |
| 4768 | done |
| 4769 | done |
| 4770 | done |
| 4771 | IFS=$as_save_IFS |
| 4772 | if test -z "$ac_cv_path_GREP"; then |
| 4773 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4774 | fi |
| 4775 | else |
| 4776 | ac_cv_path_GREP=$GREP |
| 4777 | fi |
| 4778 | |
| 4779 | fi |
| 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4781 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4782 | GREP="$ac_cv_path_GREP" |
| 4783 | |
| 4784 | |
| 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4786 | $as_echo_n "checking for egrep... " >&6; } |
| 4787 | if ${ac_cv_path_EGREP+:} false; then : |
| 4788 | $as_echo_n "(cached) " >&6 |
| 4789 | else |
| 4790 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4791 | then ac_cv_path_EGREP="$GREP -E" |
| 4792 | else |
| 4793 | if test -z "$EGREP"; then |
| 4794 | ac_path_EGREP_found=false |
| 4795 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4797 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4798 | do |
| 4799 | IFS=$as_save_IFS |
| 4800 | test -z "$as_dir" && as_dir=. |
| 4801 | for ac_prog in egrep; do |
| 4802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4803 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4804 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4805 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4806 | # Check for GNU $ac_path_EGREP |
| 4807 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4808 | *GNU*) |
| 4809 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4810 | *) |
| 4811 | ac_count=0 |
| 4812 | $as_echo_n 0123456789 >"conftest.in" |
| 4813 | while : |
| 4814 | do |
| 4815 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4816 | mv "conftest.tmp" "conftest.in" |
| 4817 | cp "conftest.in" "conftest.nl" |
| 4818 | $as_echo 'EGREP' >> "conftest.nl" |
| 4819 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4820 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4821 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4822 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4823 | # Best one so far, save it but keep looking for a better one |
| 4824 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4825 | ac_path_EGREP_max=$ac_count |
| 4826 | fi |
| 4827 | # 10*(2^10) chars as input seems more than enough |
| 4828 | test $ac_count -gt 10 && break |
| 4829 | done |
| 4830 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4831 | esac |
| 4832 | |
| 4833 | $ac_path_EGREP_found && break 3 |
| 4834 | done |
| 4835 | done |
| 4836 | done |
| 4837 | IFS=$as_save_IFS |
| 4838 | if test -z "$ac_cv_path_EGREP"; then |
| 4839 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4840 | fi |
| 4841 | else |
| 4842 | ac_cv_path_EGREP=$EGREP |
| 4843 | fi |
| 4844 | |
| 4845 | fi |
| 4846 | fi |
| 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4848 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4849 | EGREP="$ac_cv_path_EGREP" |
| 4850 | |
| 4851 | |
| 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4853 | $as_echo_n "checking for fgrep... " >&6; } |
| 4854 | if ${ac_cv_path_FGREP+:} false; then : |
| 4855 | $as_echo_n "(cached) " >&6 |
| 4856 | else |
| 4857 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4858 | then ac_cv_path_FGREP="$GREP -F" |
| 4859 | else |
| 4860 | if test -z "$FGREP"; then |
| 4861 | ac_path_FGREP_found=false |
| 4862 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4865 | do |
| 4866 | IFS=$as_save_IFS |
| 4867 | test -z "$as_dir" && as_dir=. |
| 4868 | for ac_prog in fgrep; do |
| 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4870 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4871 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4872 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4873 | # Check for GNU $ac_path_FGREP |
| 4874 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4875 | *GNU*) |
| 4876 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4877 | *) |
| 4878 | ac_count=0 |
| 4879 | $as_echo_n 0123456789 >"conftest.in" |
| 4880 | while : |
| 4881 | do |
| 4882 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4883 | mv "conftest.tmp" "conftest.in" |
| 4884 | cp "conftest.in" "conftest.nl" |
| 4885 | $as_echo 'FGREP' >> "conftest.nl" |
| 4886 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4888 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4889 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4890 | # Best one so far, save it but keep looking for a better one |
| 4891 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4892 | ac_path_FGREP_max=$ac_count |
| 4893 | fi |
| 4894 | # 10*(2^10) chars as input seems more than enough |
| 4895 | test $ac_count -gt 10 && break |
| 4896 | done |
| 4897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4898 | esac |
| 4899 | |
| 4900 | $ac_path_FGREP_found && break 3 |
| 4901 | done |
| 4902 | done |
| 4903 | done |
| 4904 | IFS=$as_save_IFS |
| 4905 | if test -z "$ac_cv_path_FGREP"; then |
| 4906 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4907 | fi |
| 4908 | else |
| 4909 | ac_cv_path_FGREP=$FGREP |
| 4910 | fi |
| 4911 | |
| 4912 | fi |
| 4913 | fi |
| 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4915 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4916 | FGREP="$ac_cv_path_FGREP" |
| 4917 | |
| 4918 | |
| 4919 | test -z "$GREP" && GREP=grep |
| 4920 | |
| 4921 | |
| 4922 | |
| 4923 | |
| 4924 | |
| 4925 | |
| 4926 | |
| 4927 | |
| 4928 | |
| 4929 | |
| 4930 | |
| 4931 | |
| 4932 | |
| 4933 | |
| 4934 | |
| 4935 | |
| 4936 | |
| 4937 | |
| 4938 | |
| 4939 | # Check whether --with-gnu-ld was given. |
| 4940 | if test "${with_gnu_ld+set}" = set; then : |
| 4941 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4942 | else |
| 4943 | with_gnu_ld=no |
| 4944 | fi |
| 4945 | |
| 4946 | ac_prog=ld |
| 4947 | if test "$GCC" = yes; then |
| 4948 | # Check if gcc -print-prog-name=ld gives a path. |
| 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4950 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 4951 | case $host in |
| 4952 | *-*-mingw*) |
| 4953 | # gcc leaves a trailing carriage return which upsets mingw |
| 4954 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4955 | *) |
| 4956 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4957 | esac |
| 4958 | case $ac_prog in |
| 4959 | # Accept absolute paths. |
| 4960 | [\\/]* | ?:[\\/]*) |
| 4961 | re_direlt='/[^/][^/]*/\.\./' |
| 4962 | # Canonicalize the pathname of ld |
| 4963 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4964 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4965 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4966 | done |
| 4967 | test -z "$LD" && LD="$ac_prog" |
| 4968 | ;; |
| 4969 | "") |
| 4970 | # If it fails, then pretend we aren't using GCC. |
| 4971 | ac_prog=ld |
| 4972 | ;; |
| 4973 | *) |
| 4974 | # If it is relative, then search for the first ld in PATH. |
| 4975 | with_gnu_ld=unknown |
| 4976 | ;; |
| 4977 | esac |
| 4978 | elif test "$with_gnu_ld" = yes; then |
| 4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4980 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4981 | else |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4983 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 4984 | fi |
| 4985 | if ${lt_cv_path_LD+:} false; then : |
| 4986 | $as_echo_n "(cached) " >&6 |
| 4987 | else |
| 4988 | if test -z "$LD"; then |
| 4989 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4990 | for ac_dir in $PATH; do |
| 4991 | IFS="$lt_save_ifs" |
| 4992 | test -z "$ac_dir" && ac_dir=. |
| 4993 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4994 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4995 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4996 | # but apparently some variants of GNU ld only accept -v. |
| 4997 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4998 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4999 | *GNU* | *'with BFD'*) |
| 5000 | test "$with_gnu_ld" != no && break |
| 5001 | ;; |
| 5002 | *) |
| 5003 | test "$with_gnu_ld" != yes && break |
| 5004 | ;; |
| 5005 | esac |
| 5006 | fi |
| 5007 | done |
| 5008 | IFS="$lt_save_ifs" |
| 5009 | else |
| 5010 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5011 | fi |
| 5012 | fi |
| 5013 | |
| 5014 | LD="$lt_cv_path_LD" |
| 5015 | if test -n "$LD"; then |
| 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5017 | $as_echo "$LD" >&6; } |
| 5018 | else |
| 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5020 | $as_echo "no" >&6; } |
| 5021 | fi |
| 5022 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5024 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5025 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5026 | $as_echo_n "(cached) " >&6 |
| 5027 | else |
| 5028 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5029 | case `$LD -v 2>&1 </dev/null` in |
| 5030 | *GNU* | *'with BFD'*) |
| 5031 | lt_cv_prog_gnu_ld=yes |
| 5032 | ;; |
| 5033 | *) |
| 5034 | lt_cv_prog_gnu_ld=no |
| 5035 | ;; |
| 5036 | esac |
| 5037 | fi |
| 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5039 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5040 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | |
| 5045 | |
| 5046 | |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5051 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5052 | if ${lt_cv_path_NM+:} false; then : |
| 5053 | $as_echo_n "(cached) " >&6 |
| 5054 | else |
| 5055 | if test -n "$NM"; then |
| 5056 | # Let the user override the test. |
| 5057 | lt_cv_path_NM="$NM" |
| 5058 | else |
| 5059 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5060 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5061 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5062 | fi |
| 5063 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5064 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5065 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5066 | IFS="$lt_save_ifs" |
| 5067 | test -z "$ac_dir" && ac_dir=. |
| 5068 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5069 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5070 | # Check to see if the nm accepts a BSD-compat flag. |
| 5071 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5072 | # nm: unknown option "B" ignored |
| 5073 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5074 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5075 | */dev/null* | *'Invalid file or object type'*) |
| 5076 | lt_cv_path_NM="$tmp_nm -B" |
| 5077 | break |
| 5078 | ;; |
| 5079 | *) |
| 5080 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5081 | */dev/null*) |
| 5082 | lt_cv_path_NM="$tmp_nm -p" |
| 5083 | break |
| 5084 | ;; |
| 5085 | *) |
| 5086 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5087 | continue # so that we can try to find one that supports BSD flags |
| 5088 | ;; |
| 5089 | esac |
| 5090 | ;; |
| 5091 | esac |
| 5092 | fi |
| 5093 | done |
| 5094 | IFS="$lt_save_ifs" |
| 5095 | done |
| 5096 | : ${lt_cv_path_NM=no} |
| 5097 | fi |
| 5098 | fi |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5100 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5101 | if test "$lt_cv_path_NM" != "no"; then |
| 5102 | NM="$lt_cv_path_NM" |
| 5103 | else |
| 5104 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5105 | if test -n "$DUMPBIN"; then : |
| 5106 | # Let the user override the test. |
| 5107 | else |
| 5108 | if test -n "$ac_tool_prefix"; then |
| 5109 | for ac_prog in dumpbin "link -dump" |
| 5110 | do |
| 5111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5114 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5115 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | if test -n "$DUMPBIN"; then |
| 5119 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5120 | else |
| 5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 | for as_dir in $PATH |
| 5123 | do |
| 5124 | IFS=$as_save_IFS |
| 5125 | test -z "$as_dir" && as_dir=. |
| 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5128 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5130 | break 2 |
| 5131 | fi |
| 5132 | done |
| 5133 | done |
| 5134 | IFS=$as_save_IFS |
| 5135 | |
| 5136 | fi |
| 5137 | fi |
| 5138 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5139 | if test -n "$DUMPBIN"; then |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5141 | $as_echo "$DUMPBIN" >&6; } |
| 5142 | else |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5144 | $as_echo "no" >&6; } |
| 5145 | fi |
| 5146 | |
| 5147 | |
| 5148 | test -n "$DUMPBIN" && break |
| 5149 | done |
| 5150 | fi |
| 5151 | if test -z "$DUMPBIN"; then |
| 5152 | ac_ct_DUMPBIN=$DUMPBIN |
| 5153 | for ac_prog in dumpbin "link -dump" |
| 5154 | do |
| 5155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5156 | set dummy $ac_prog; ac_word=$2 |
| 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5158 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5159 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5160 | $as_echo_n "(cached) " >&6 |
| 5161 | else |
| 5162 | if test -n "$ac_ct_DUMPBIN"; then |
| 5163 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5164 | else |
| 5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5166 | for as_dir in $PATH |
| 5167 | do |
| 5168 | IFS=$as_save_IFS |
| 5169 | test -z "$as_dir" && as_dir=. |
| 5170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5172 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5174 | break 2 |
| 5175 | fi |
| 5176 | done |
| 5177 | done |
| 5178 | IFS=$as_save_IFS |
| 5179 | |
| 5180 | fi |
| 5181 | fi |
| 5182 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5183 | if test -n "$ac_ct_DUMPBIN"; then |
| 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5185 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5186 | else |
| 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5188 | $as_echo "no" >&6; } |
| 5189 | fi |
| 5190 | |
| 5191 | |
| 5192 | test -n "$ac_ct_DUMPBIN" && break |
| 5193 | done |
| 5194 | |
| 5195 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5196 | DUMPBIN=":" |
| 5197 | else |
| 5198 | case $cross_compiling:$ac_tool_warned in |
| 5199 | yes:) |
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5202 | ac_tool_warned=yes ;; |
| 5203 | esac |
| 5204 | DUMPBIN=$ac_ct_DUMPBIN |
| 5205 | fi |
| 5206 | fi |
| 5207 | |
| 5208 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5209 | *COFF*) |
| 5210 | DUMPBIN="$DUMPBIN -symbols" |
| 5211 | ;; |
| 5212 | *) |
| 5213 | DUMPBIN=: |
| 5214 | ;; |
| 5215 | esac |
| 5216 | fi |
| 5217 | |
| 5218 | if test "$DUMPBIN" != ":"; then |
| 5219 | NM="$DUMPBIN" |
| 5220 | fi |
| 5221 | fi |
| 5222 | test -z "$NM" && NM=nm |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5230 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5231 | if ${lt_cv_nm_interface+:} false; then : |
| 5232 | $as_echo_n "(cached) " >&6 |
| 5233 | else |
| 5234 | lt_cv_nm_interface="BSD nm" |
| 5235 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5236 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5237 | (eval "$ac_compile" 2>conftest.err) |
| 5238 | cat conftest.err >&5 |
| 5239 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5240 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5241 | cat conftest.err >&5 |
| 5242 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5243 | cat conftest.out >&5 |
| 5244 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5245 | lt_cv_nm_interface="MS dumpbin" |
| 5246 | fi |
| 5247 | rm -f conftest* |
| 5248 | fi |
| 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5250 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5251 | |
| 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5253 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 5254 | LN_S=$as_ln_s |
| 5255 | if test "$LN_S" = "ln -s"; then |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5257 | $as_echo "yes" >&6; } |
| 5258 | else |
| 5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5260 | $as_echo "no, using $LN_S" >&6; } |
| 5261 | fi |
| 5262 | |
| 5263 | # find the maximum length of command line arguments |
| 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5265 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5266 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5267 | $as_echo_n "(cached) " >&6 |
| 5268 | else |
| 5269 | i=0 |
| 5270 | teststring="ABCD" |
| 5271 | |
| 5272 | case $build_os in |
| 5273 | msdosdjgpp*) |
| 5274 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5275 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5276 | # during glob expansion). Even if it were fixed, the result of this |
| 5277 | # check would be larger than it should be. |
| 5278 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5279 | ;; |
| 5280 | |
| 5281 | gnu*) |
| 5282 | # Under GNU Hurd, this test is not required because there is |
| 5283 | # no limit to the length of command line arguments. |
| 5284 | # Libtool will interpret -1 as no limit whatsoever |
| 5285 | lt_cv_sys_max_cmd_len=-1; |
| 5286 | ;; |
| 5287 | |
| 5288 | cygwin* | mingw* | cegcc*) |
| 5289 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5290 | # about 5 minutes as the teststring grows exponentially. |
| 5291 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5292 | # you end up with a "frozen" computer, even though with patience |
| 5293 | # the test eventually succeeds (with a max line length of 256k). |
| 5294 | # Instead, let's just punt: use the minimum linelength reported by |
| 5295 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5296 | lt_cv_sys_max_cmd_len=8192; |
| 5297 | ;; |
| 5298 | |
| 5299 | mint*) |
| 5300 | # On MiNT this can take a long time and run out of memory. |
| 5301 | lt_cv_sys_max_cmd_len=8192; |
| 5302 | ;; |
| 5303 | |
| 5304 | amigaos*) |
| 5305 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5306 | # So we just punt and use a minimum line length of 8192. |
| 5307 | lt_cv_sys_max_cmd_len=8192; |
| 5308 | ;; |
| 5309 | |
| 5310 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5311 | # This has been around since 386BSD, at least. Likely further. |
| 5312 | if test -x /sbin/sysctl; then |
| 5313 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5314 | elif test -x /usr/sbin/sysctl; then |
| 5315 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5316 | else |
| 5317 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5318 | fi |
| 5319 | # And add a safety zone |
| 5320 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5321 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5322 | ;; |
| 5323 | |
| 5324 | interix*) |
| 5325 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5326 | lt_cv_sys_max_cmd_len=196608 |
| 5327 | ;; |
| 5328 | |
| 5329 | os2*) |
| 5330 | # The test takes a long time on OS/2. |
| 5331 | lt_cv_sys_max_cmd_len=8192 |
| 5332 | ;; |
| 5333 | |
| 5334 | osf*) |
| 5335 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5336 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5337 | # nice to cause kernel panics so lets avoid the loop below. |
| 5338 | # First set a reasonable default. |
| 5339 | lt_cv_sys_max_cmd_len=16384 |
| 5340 | # |
| 5341 | if test -x /sbin/sysconfig; then |
| 5342 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5343 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5344 | esac |
| 5345 | fi |
| 5346 | ;; |
| 5347 | sco3.2v5*) |
| 5348 | lt_cv_sys_max_cmd_len=102400 |
| 5349 | ;; |
| 5350 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5351 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5352 | if test -n "$kargmax"; then |
| 5353 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5354 | else |
| 5355 | lt_cv_sys_max_cmd_len=32768 |
| 5356 | fi |
| 5357 | ;; |
| 5358 | *) |
| 5359 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5360 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5361 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5362 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5363 | else |
| 5364 | # Make teststring a little bigger before we do anything with it. |
| 5365 | # a 1K string should be a reasonable start. |
| 5366 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5367 | teststring=$teststring$teststring |
| 5368 | done |
| 5369 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5370 | # If test is not a shell built-in, we'll probably end up computing a |
| 5371 | # maximum length that is only half of the actual maximum length, but |
| 5372 | # we can't tell. |
| 5373 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5374 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5375 | test $i != 17 # 1/2 MB should be enough |
| 5376 | do |
| 5377 | i=`expr $i + 1` |
| 5378 | teststring=$teststring$teststring |
| 5379 | done |
| 5380 | # Only check the string length outside the loop. |
| 5381 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5382 | teststring= |
| 5383 | # Add a significant safety factor because C++ compilers can tack on |
| 5384 | # massive amounts of additional arguments before passing them to the |
| 5385 | # linker. It appears as though 1/2 is a usable value. |
| 5386 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5387 | fi |
| 5388 | ;; |
| 5389 | esac |
| 5390 | |
| 5391 | fi |
| 5392 | |
| 5393 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5395 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5396 | else |
| 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5398 | $as_echo "none" >&6; } |
| 5399 | fi |
| 5400 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | : ${CP="cp -f"} |
| 5408 | : ${MV="mv -f"} |
| 5409 | : ${RM="rm -f"} |
| 5410 | |
| 5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5412 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5413 | # Try some XSI features |
| 5414 | xsi_shell=no |
| 5415 | ( _lt_dummy="a/b/c" |
| 5416 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5417 | = c,a/b,b/c, \ |
| 5418 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5419 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5420 | && xsi_shell=yes |
| 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5422 | $as_echo "$xsi_shell" >&6; } |
| 5423 | |
| 5424 | |
| 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5426 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5427 | lt_shell_append=no |
| 5428 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5429 | >/dev/null 2>&1 \ |
| 5430 | && lt_shell_append=yes |
| 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5432 | $as_echo "$lt_shell_append" >&6; } |
| 5433 | |
| 5434 | |
| 5435 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5436 | lt_unset=unset |
| 5437 | else |
| 5438 | lt_unset=false |
| 5439 | fi |
| 5440 | |
| 5441 | |
| 5442 | |
| 5443 | |
| 5444 | |
| 5445 | # test EBCDIC or ASCII |
| 5446 | case `echo X|tr X '\101'` in |
| 5447 | A) # ASCII based system |
| 5448 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5449 | lt_SP2NL='tr \040 \012' |
| 5450 | lt_NL2SP='tr \015\012 \040\040' |
| 5451 | ;; |
| 5452 | *) # EBCDIC based system |
| 5453 | lt_SP2NL='tr \100 \n' |
| 5454 | lt_NL2SP='tr \r\n \100\100' |
| 5455 | ;; |
| 5456 | esac |
| 5457 | |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
| 5463 | |
| 5464 | |
| 5465 | |
| 5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5467 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5468 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5469 | $as_echo_n "(cached) " >&6 |
| 5470 | else |
| 5471 | case $host in |
| 5472 | *-*-mingw* ) |
| 5473 | case $build in |
| 5474 | *-*-mingw* ) # actually msys |
| 5475 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5476 | ;; |
| 5477 | *-*-cygwin* ) |
| 5478 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5479 | ;; |
| 5480 | * ) # otherwise, assume *nix |
| 5481 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5482 | ;; |
| 5483 | esac |
| 5484 | ;; |
| 5485 | *-*-cygwin* ) |
| 5486 | case $build in |
| 5487 | *-*-mingw* ) # actually msys |
| 5488 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5489 | ;; |
| 5490 | *-*-cygwin* ) |
| 5491 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5492 | ;; |
| 5493 | * ) # otherwise, assume *nix |
| 5494 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5495 | ;; |
| 5496 | esac |
| 5497 | ;; |
| 5498 | * ) # unhandled hosts (and "normal" native builds) |
| 5499 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5500 | ;; |
| 5501 | esac |
| 5502 | |
| 5503 | fi |
| 5504 | |
| 5505 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5507 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5514 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5515 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5516 | $as_echo_n "(cached) " >&6 |
| 5517 | else |
| 5518 | #assume ordinary cross tools, or native build. |
| 5519 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5520 | case $host in |
| 5521 | *-*-mingw* ) |
| 5522 | case $build in |
| 5523 | *-*-mingw* ) # actually msys |
| 5524 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5525 | ;; |
| 5526 | esac |
| 5527 | ;; |
| 5528 | esac |
| 5529 | |
| 5530 | fi |
| 5531 | |
| 5532 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5534 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5541 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5542 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5543 | $as_echo_n "(cached) " >&6 |
| 5544 | else |
| 5545 | lt_cv_ld_reload_flag='-r' |
| 5546 | fi |
| 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5548 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5549 | reload_flag=$lt_cv_ld_reload_flag |
| 5550 | case $reload_flag in |
| 5551 | "" | " "*) ;; |
| 5552 | *) reload_flag=" $reload_flag" ;; |
| 5553 | esac |
| 5554 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5555 | case $host_os in |
| 5556 | cygwin* | mingw* | pw32* | cegcc*) |
| 5557 | if test "$GCC" != yes; then |
| 5558 | reload_cmds=false |
| 5559 | fi |
| 5560 | ;; |
| 5561 | darwin*) |
| 5562 | if test "$GCC" = yes; then |
| 5563 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5564 | else |
| 5565 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5566 | fi |
| 5567 | ;; |
| 5568 | esac |
| 5569 | |
| 5570 | |
| 5571 | |
| 5572 | |
| 5573 | |
| 5574 | |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 | if test -n "$ac_tool_prefix"; then |
| 5579 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5580 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5582 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5583 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5584 | $as_echo_n "(cached) " >&6 |
| 5585 | else |
| 5586 | if test -n "$OBJDUMP"; then |
| 5587 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5588 | else |
| 5589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5590 | for as_dir in $PATH |
| 5591 | do |
| 5592 | IFS=$as_save_IFS |
| 5593 | test -z "$as_dir" && as_dir=. |
| 5594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5596 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5598 | break 2 |
| 5599 | fi |
| 5600 | done |
| 5601 | done |
| 5602 | IFS=$as_save_IFS |
| 5603 | |
| 5604 | fi |
| 5605 | fi |
| 5606 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5607 | if test -n "$OBJDUMP"; then |
| 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5609 | $as_echo "$OBJDUMP" >&6; } |
| 5610 | else |
| 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5612 | $as_echo "no" >&6; } |
| 5613 | fi |
| 5614 | |
| 5615 | |
| 5616 | fi |
| 5617 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5618 | ac_ct_OBJDUMP=$OBJDUMP |
| 5619 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5620 | set dummy objdump; ac_word=$2 |
| 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5622 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5623 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5624 | $as_echo_n "(cached) " >&6 |
| 5625 | else |
| 5626 | if test -n "$ac_ct_OBJDUMP"; then |
| 5627 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5628 | else |
| 5629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5630 | for as_dir in $PATH |
| 5631 | do |
| 5632 | IFS=$as_save_IFS |
| 5633 | test -z "$as_dir" && as_dir=. |
| 5634 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5636 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5638 | break 2 |
| 5639 | fi |
| 5640 | done |
| 5641 | done |
| 5642 | IFS=$as_save_IFS |
| 5643 | |
| 5644 | fi |
| 5645 | fi |
| 5646 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5647 | if test -n "$ac_ct_OBJDUMP"; then |
| 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5649 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5650 | else |
| 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5652 | $as_echo "no" >&6; } |
| 5653 | fi |
| 5654 | |
| 5655 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5656 | OBJDUMP="false" |
| 5657 | else |
| 5658 | case $cross_compiling:$ac_tool_warned in |
| 5659 | yes:) |
| 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5662 | ac_tool_warned=yes ;; |
| 5663 | esac |
| 5664 | OBJDUMP=$ac_ct_OBJDUMP |
| 5665 | fi |
| 5666 | else |
| 5667 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5668 | fi |
| 5669 | |
| 5670 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | |
| 5678 | |
| 5679 | |
| 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5681 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5682 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5683 | $as_echo_n "(cached) " >&6 |
| 5684 | else |
| 5685 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5686 | lt_cv_file_magic_test_file= |
| 5687 | lt_cv_deplibs_check_method='unknown' |
| 5688 | # Need to set the preceding variable on all platforms that support |
| 5689 | # interlibrary dependencies. |
| 5690 | # 'none' -- dependencies not supported. |
| 5691 | # `unknown' -- same as none, but documents that we really don't know. |
| 5692 | # 'pass_all' -- all dependencies passed with no checks. |
| 5693 | # 'test_compile' -- check by making test program. |
| 5694 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5695 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5696 | # If you have `file' or equivalent on your system and you're not sure |
| 5697 | # whether `pass_all' will *always* work, you probably want this one. |
| 5698 | |
| 5699 | case $host_os in |
| 5700 | aix[4-9]*) |
| 5701 | lt_cv_deplibs_check_method=pass_all |
| 5702 | ;; |
| 5703 | |
| 5704 | beos*) |
| 5705 | lt_cv_deplibs_check_method=pass_all |
| 5706 | ;; |
| 5707 | |
| 5708 | bsdi[45]*) |
| 5709 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5710 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5711 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5712 | ;; |
| 5713 | |
| 5714 | cygwin*) |
| 5715 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5716 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5717 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5718 | ;; |
| 5719 | |
| 5720 | mingw* | pw32*) |
| 5721 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5722 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5723 | # unless we find 'file', for example because we are cross-compiling. |
| 5724 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5725 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5726 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5727 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5728 | else |
| 5729 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5730 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5731 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5732 | fi |
| 5733 | ;; |
| 5734 | |
| 5735 | cegcc*) |
| 5736 | # use the weaker test based on 'objdump'. See mingw*. |
| 5737 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5738 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5739 | ;; |
| 5740 | |
| 5741 | darwin* | rhapsody*) |
| 5742 | lt_cv_deplibs_check_method=pass_all |
| 5743 | ;; |
| 5744 | |
| 5745 | freebsd* | dragonfly*) |
| 5746 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5747 | case $host_cpu in |
| 5748 | i*86 ) |
| 5749 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5750 | # Let's accept both of them until this is cleared up. |
| 5751 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5752 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5753 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5754 | ;; |
| 5755 | esac |
| 5756 | else |
| 5757 | lt_cv_deplibs_check_method=pass_all |
| 5758 | fi |
| 5759 | ;; |
| 5760 | |
| 5761 | gnu*) |
| 5762 | lt_cv_deplibs_check_method=pass_all |
| 5763 | ;; |
| 5764 | |
| 5765 | haiku*) |
| 5766 | lt_cv_deplibs_check_method=pass_all |
| 5767 | ;; |
| 5768 | |
| 5769 | hpux10.20* | hpux11*) |
| 5770 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5771 | case $host_cpu in |
| 5772 | ia64*) |
| 5773 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5774 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5775 | ;; |
| 5776 | hppa*64*) |
| 5777 | 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]' |
| 5778 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5779 | ;; |
| 5780 | *) |
| 5781 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5782 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5783 | ;; |
| 5784 | esac |
| 5785 | ;; |
| 5786 | |
| 5787 | interix[3-9]*) |
| 5788 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5789 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5790 | ;; |
| 5791 | |
| 5792 | irix5* | irix6* | nonstopux*) |
| 5793 | case $LD in |
| 5794 | *-32|*"-32 ") libmagic=32-bit;; |
| 5795 | *-n32|*"-n32 ") libmagic=N32;; |
| 5796 | *-64|*"-64 ") libmagic=64-bit;; |
| 5797 | *) libmagic=never-match;; |
| 5798 | esac |
| 5799 | lt_cv_deplibs_check_method=pass_all |
| 5800 | ;; |
| 5801 | |
| 5802 | # This must be glibc/ELF. |
| 5803 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5804 | lt_cv_deplibs_check_method=pass_all |
| 5805 | ;; |
| 5806 | |
| 5807 | netbsd*) |
| 5808 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5809 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5810 | else |
| 5811 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5812 | fi |
| 5813 | ;; |
| 5814 | |
| 5815 | newos6*) |
| 5816 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5817 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5818 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5819 | ;; |
| 5820 | |
| 5821 | *nto* | *qnx*) |
| 5822 | lt_cv_deplibs_check_method=pass_all |
| 5823 | ;; |
| 5824 | |
| 5825 | openbsd*) |
| 5826 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5827 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5828 | else |
| 5829 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5830 | fi |
| 5831 | ;; |
| 5832 | |
| 5833 | osf3* | osf4* | osf5*) |
| 5834 | lt_cv_deplibs_check_method=pass_all |
| 5835 | ;; |
| 5836 | |
| 5837 | rdos*) |
| 5838 | lt_cv_deplibs_check_method=pass_all |
| 5839 | ;; |
| 5840 | |
| 5841 | solaris*) |
| 5842 | lt_cv_deplibs_check_method=pass_all |
| 5843 | ;; |
| 5844 | |
| 5845 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5846 | lt_cv_deplibs_check_method=pass_all |
| 5847 | ;; |
| 5848 | |
| 5849 | sysv4 | sysv4.3*) |
| 5850 | case $host_vendor in |
| 5851 | motorola) |
| 5852 | 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]' |
| 5853 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5854 | ;; |
| 5855 | ncr) |
| 5856 | lt_cv_deplibs_check_method=pass_all |
| 5857 | ;; |
| 5858 | sequent) |
| 5859 | lt_cv_file_magic_cmd='/bin/file' |
| 5860 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5861 | ;; |
| 5862 | sni) |
| 5863 | lt_cv_file_magic_cmd='/bin/file' |
| 5864 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5865 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5866 | ;; |
| 5867 | siemens) |
| 5868 | lt_cv_deplibs_check_method=pass_all |
| 5869 | ;; |
| 5870 | pc) |
| 5871 | lt_cv_deplibs_check_method=pass_all |
| 5872 | ;; |
| 5873 | esac |
| 5874 | ;; |
| 5875 | |
| 5876 | tpf*) |
| 5877 | lt_cv_deplibs_check_method=pass_all |
| 5878 | ;; |
| 5879 | esac |
| 5880 | |
| 5881 | fi |
| 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5883 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5884 | |
| 5885 | file_magic_glob= |
| 5886 | want_nocaseglob=no |
| 5887 | if test "$build" = "$host"; then |
| 5888 | case $host_os in |
| 5889 | mingw* | pw32*) |
| 5890 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5891 | want_nocaseglob=yes |
| 5892 | else |
| 5893 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5894 | fi |
| 5895 | ;; |
| 5896 | esac |
| 5897 | fi |
| 5898 | |
| 5899 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5900 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5901 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5902 | |
| 5903 | |
| 5904 | |
| 5905 | |
| 5906 | |
| 5907 | |
| 5908 | |
| 5909 | |
| 5910 | |
| 5911 | |
| 5912 | |
| 5913 | |
| 5914 | |
| 5915 | |
| 5916 | |
| 5917 | |
| 5918 | |
| 5919 | |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | |
| 5924 | if test -n "$ac_tool_prefix"; then |
| 5925 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5926 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5928 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5929 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5930 | $as_echo_n "(cached) " >&6 |
| 5931 | else |
| 5932 | if test -n "$DLLTOOL"; then |
| 5933 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5934 | else |
| 5935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5936 | for as_dir in $PATH |
| 5937 | do |
| 5938 | IFS=$as_save_IFS |
| 5939 | test -z "$as_dir" && as_dir=. |
| 5940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5942 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5944 | break 2 |
| 5945 | fi |
| 5946 | done |
| 5947 | done |
| 5948 | IFS=$as_save_IFS |
| 5949 | |
| 5950 | fi |
| 5951 | fi |
| 5952 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5953 | if test -n "$DLLTOOL"; then |
| 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5955 | $as_echo "$DLLTOOL" >&6; } |
| 5956 | else |
| 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5958 | $as_echo "no" >&6; } |
| 5959 | fi |
| 5960 | |
| 5961 | |
| 5962 | fi |
| 5963 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5964 | ac_ct_DLLTOOL=$DLLTOOL |
| 5965 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5966 | set dummy dlltool; ac_word=$2 |
| 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5968 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5969 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5970 | $as_echo_n "(cached) " >&6 |
| 5971 | else |
| 5972 | if test -n "$ac_ct_DLLTOOL"; then |
| 5973 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5974 | else |
| 5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5976 | for as_dir in $PATH |
| 5977 | do |
| 5978 | IFS=$as_save_IFS |
| 5979 | test -z "$as_dir" && as_dir=. |
| 5980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5982 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5984 | break 2 |
| 5985 | fi |
| 5986 | done |
| 5987 | done |
| 5988 | IFS=$as_save_IFS |
| 5989 | |
| 5990 | fi |
| 5991 | fi |
| 5992 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5993 | if test -n "$ac_ct_DLLTOOL"; then |
| 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5995 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5996 | else |
| 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5998 | $as_echo "no" >&6; } |
| 5999 | fi |
| 6000 | |
| 6001 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6002 | DLLTOOL="false" |
| 6003 | else |
| 6004 | case $cross_compiling:$ac_tool_warned in |
| 6005 | yes:) |
| 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6007 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6008 | ac_tool_warned=yes ;; |
| 6009 | esac |
| 6010 | DLLTOOL=$ac_ct_DLLTOOL |
| 6011 | fi |
| 6012 | else |
| 6013 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6014 | fi |
| 6015 | |
| 6016 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6017 | |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | |
| 6022 | |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 6028 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 6029 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 6030 | $as_echo_n "(cached) " >&6 |
| 6031 | else |
| 6032 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 6033 | |
| 6034 | case $host_os in |
| 6035 | cygwin* | mingw* | pw32* | cegcc*) |
| 6036 | # two different shell functions defined in ltmain.sh |
| 6037 | # decide which to use based on capabilities of $DLLTOOL |
| 6038 | case `$DLLTOOL --help 2>&1` in |
| 6039 | *--identify-strict*) |
| 6040 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6041 | ;; |
| 6042 | *) |
| 6043 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 6044 | ;; |
| 6045 | esac |
| 6046 | ;; |
| 6047 | *) |
| 6048 | # fallback: assume linklib IS sharedlib |
| 6049 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6050 | ;; |
| 6051 | esac |
| 6052 | |
| 6053 | fi |
| 6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6055 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6056 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6057 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | if test -n "$ac_tool_prefix"; then |
| 6066 | for ac_prog in ar |
| 6067 | do |
| 6068 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6069 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6071 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6072 | if ${ac_cv_prog_AR+:} false; then : |
| 6073 | $as_echo_n "(cached) " >&6 |
| 6074 | else |
| 6075 | if test -n "$AR"; then |
| 6076 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6077 | else |
| 6078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6079 | for as_dir in $PATH |
| 6080 | do |
| 6081 | IFS=$as_save_IFS |
| 6082 | test -z "$as_dir" && as_dir=. |
| 6083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6085 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6087 | break 2 |
| 6088 | fi |
| 6089 | done |
| 6090 | done |
| 6091 | IFS=$as_save_IFS |
| 6092 | |
| 6093 | fi |
| 6094 | fi |
| 6095 | AR=$ac_cv_prog_AR |
| 6096 | if test -n "$AR"; then |
| 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6098 | $as_echo "$AR" >&6; } |
| 6099 | else |
| 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6101 | $as_echo "no" >&6; } |
| 6102 | fi |
| 6103 | |
| 6104 | |
| 6105 | test -n "$AR" && break |
| 6106 | done |
| 6107 | fi |
| 6108 | if test -z "$AR"; then |
| 6109 | ac_ct_AR=$AR |
| 6110 | for ac_prog in ar |
| 6111 | do |
| 6112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6113 | set dummy $ac_prog; ac_word=$2 |
| 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6115 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6116 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6117 | $as_echo_n "(cached) " >&6 |
| 6118 | else |
| 6119 | if test -n "$ac_ct_AR"; then |
| 6120 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6121 | else |
| 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6123 | for as_dir in $PATH |
| 6124 | do |
| 6125 | IFS=$as_save_IFS |
| 6126 | test -z "$as_dir" && as_dir=. |
| 6127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6129 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6131 | break 2 |
| 6132 | fi |
| 6133 | done |
| 6134 | done |
| 6135 | IFS=$as_save_IFS |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6140 | if test -n "$ac_ct_AR"; then |
| 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6142 | $as_echo "$ac_ct_AR" >&6; } |
| 6143 | else |
| 6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6145 | $as_echo "no" >&6; } |
| 6146 | fi |
| 6147 | |
| 6148 | |
| 6149 | test -n "$ac_ct_AR" && break |
| 6150 | done |
| 6151 | |
| 6152 | if test "x$ac_ct_AR" = x; then |
| 6153 | AR="false" |
| 6154 | else |
| 6155 | case $cross_compiling:$ac_tool_warned in |
| 6156 | yes:) |
| 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6159 | ac_tool_warned=yes ;; |
| 6160 | esac |
| 6161 | AR=$ac_ct_AR |
| 6162 | fi |
| 6163 | fi |
| 6164 | |
| 6165 | : ${AR=ar} |
| 6166 | : ${AR_FLAGS=cru} |
| 6167 | |
| 6168 | |
| 6169 | |
| 6170 | |
| 6171 | |
| 6172 | |
| 6173 | |
| 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 6179 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 6180 | if ${lt_cv_ar_at_file+:} false; then : |
| 6181 | $as_echo_n "(cached) " >&6 |
| 6182 | else |
| 6183 | lt_cv_ar_at_file=no |
| 6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6185 | /* end confdefs.h. */ |
| 6186 | |
| 6187 | int |
| 6188 | main () |
| 6189 | { |
| 6190 | |
| 6191 | ; |
| 6192 | return 0; |
| 6193 | } |
| 6194 | _ACEOF |
| 6195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6196 | echo conftest.$ac_objext > conftest.lst |
| 6197 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 6198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6199 | (eval $lt_ar_try) 2>&5 |
| 6200 | ac_status=$? |
| 6201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6202 | test $ac_status = 0; } |
| 6203 | if test "$ac_status" -eq 0; then |
| 6204 | # Ensure the archiver fails upon bogus file names. |
| 6205 | rm -f conftest.$ac_objext libconftest.a |
| 6206 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6207 | (eval $lt_ar_try) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6210 | test $ac_status = 0; } |
| 6211 | if test "$ac_status" -ne 0; then |
| 6212 | lt_cv_ar_at_file=@ |
| 6213 | fi |
| 6214 | fi |
| 6215 | rm -f conftest.* libconftest.a |
| 6216 | |
| 6217 | fi |
| 6218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6219 | |
| 6220 | fi |
| 6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6222 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 6223 | |
| 6224 | if test "x$lt_cv_ar_at_file" = xno; then |
| 6225 | archiver_list_spec= |
| 6226 | else |
| 6227 | archiver_list_spec=$lt_cv_ar_at_file |
| 6228 | fi |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
| 6233 | |
| 6234 | |
| 6235 | |
| 6236 | if test -n "$ac_tool_prefix"; then |
| 6237 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6238 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6240 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6241 | if ${ac_cv_prog_STRIP+:} false; then : |
| 6242 | $as_echo_n "(cached) " >&6 |
| 6243 | else |
| 6244 | if test -n "$STRIP"; then |
| 6245 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6246 | else |
| 6247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6248 | for as_dir in $PATH |
| 6249 | do |
| 6250 | IFS=$as_save_IFS |
| 6251 | test -z "$as_dir" && as_dir=. |
| 6252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6254 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6256 | break 2 |
| 6257 | fi |
| 6258 | done |
| 6259 | done |
| 6260 | IFS=$as_save_IFS |
| 6261 | |
| 6262 | fi |
| 6263 | fi |
| 6264 | STRIP=$ac_cv_prog_STRIP |
| 6265 | if test -n "$STRIP"; then |
| 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6267 | $as_echo "$STRIP" >&6; } |
| 6268 | else |
| 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6270 | $as_echo "no" >&6; } |
| 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | fi |
| 6275 | if test -z "$ac_cv_prog_STRIP"; then |
| 6276 | ac_ct_STRIP=$STRIP |
| 6277 | # Extract the first word of "strip", so it can be a program name with args. |
| 6278 | set dummy strip; ac_word=$2 |
| 6279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6280 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6281 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6282 | $as_echo_n "(cached) " >&6 |
| 6283 | else |
| 6284 | if test -n "$ac_ct_STRIP"; then |
| 6285 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6286 | else |
| 6287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6288 | for as_dir in $PATH |
| 6289 | do |
| 6290 | IFS=$as_save_IFS |
| 6291 | test -z "$as_dir" && as_dir=. |
| 6292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6294 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6296 | break 2 |
| 6297 | fi |
| 6298 | done |
| 6299 | done |
| 6300 | IFS=$as_save_IFS |
| 6301 | |
| 6302 | fi |
| 6303 | fi |
| 6304 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6305 | if test -n "$ac_ct_STRIP"; then |
| 6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6307 | $as_echo "$ac_ct_STRIP" >&6; } |
| 6308 | else |
| 6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6310 | $as_echo "no" >&6; } |
| 6311 | fi |
| 6312 | |
| 6313 | if test "x$ac_ct_STRIP" = x; then |
| 6314 | STRIP=":" |
| 6315 | else |
| 6316 | case $cross_compiling:$ac_tool_warned in |
| 6317 | yes:) |
| 6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6320 | ac_tool_warned=yes ;; |
| 6321 | esac |
| 6322 | STRIP=$ac_ct_STRIP |
| 6323 | fi |
| 6324 | else |
| 6325 | STRIP="$ac_cv_prog_STRIP" |
| 6326 | fi |
| 6327 | |
| 6328 | test -z "$STRIP" && STRIP=: |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | if test -n "$ac_tool_prefix"; then |
| 6336 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6337 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6339 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6340 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6341 | $as_echo_n "(cached) " >&6 |
| 6342 | else |
| 6343 | if test -n "$RANLIB"; then |
| 6344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6345 | else |
| 6346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6347 | for as_dir in $PATH |
| 6348 | do |
| 6349 | IFS=$as_save_IFS |
| 6350 | test -z "$as_dir" && as_dir=. |
| 6351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6353 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6355 | break 2 |
| 6356 | fi |
| 6357 | done |
| 6358 | done |
| 6359 | IFS=$as_save_IFS |
| 6360 | |
| 6361 | fi |
| 6362 | fi |
| 6363 | RANLIB=$ac_cv_prog_RANLIB |
| 6364 | if test -n "$RANLIB"; then |
| 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6366 | $as_echo "$RANLIB" >&6; } |
| 6367 | else |
| 6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6369 | $as_echo "no" >&6; } |
| 6370 | fi |
| 6371 | |
| 6372 | |
| 6373 | fi |
| 6374 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6375 | ac_ct_RANLIB=$RANLIB |
| 6376 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6377 | set dummy ranlib; ac_word=$2 |
| 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6379 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6380 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6381 | $as_echo_n "(cached) " >&6 |
| 6382 | else |
| 6383 | if test -n "$ac_ct_RANLIB"; then |
| 6384 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6385 | else |
| 6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6387 | for as_dir in $PATH |
| 6388 | do |
| 6389 | IFS=$as_save_IFS |
| 6390 | test -z "$as_dir" && as_dir=. |
| 6391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6393 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6395 | break 2 |
| 6396 | fi |
| 6397 | done |
| 6398 | done |
| 6399 | IFS=$as_save_IFS |
| 6400 | |
| 6401 | fi |
| 6402 | fi |
| 6403 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6404 | if test -n "$ac_ct_RANLIB"; then |
| 6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6406 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6407 | else |
| 6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6409 | $as_echo "no" >&6; } |
| 6410 | fi |
| 6411 | |
| 6412 | if test "x$ac_ct_RANLIB" = x; then |
| 6413 | RANLIB=":" |
| 6414 | else |
| 6415 | case $cross_compiling:$ac_tool_warned in |
| 6416 | yes:) |
| 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6418 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6419 | ac_tool_warned=yes ;; |
| 6420 | esac |
| 6421 | RANLIB=$ac_ct_RANLIB |
| 6422 | fi |
| 6423 | else |
| 6424 | RANLIB="$ac_cv_prog_RANLIB" |
| 6425 | fi |
| 6426 | |
| 6427 | test -z "$RANLIB" && RANLIB=: |
| 6428 | |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | |
| 6433 | |
| 6434 | # Determine commands to create old-style static archives. |
| 6435 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6436 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6437 | old_postuninstall_cmds= |
| 6438 | |
| 6439 | if test -n "$RANLIB"; then |
| 6440 | case $host_os in |
| 6441 | openbsd*) |
| 6442 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6443 | ;; |
| 6444 | *) |
| 6445 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6446 | ;; |
| 6447 | esac |
| 6448 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6449 | fi |
| 6450 | |
| 6451 | case $host_os in |
| 6452 | darwin*) |
| 6453 | lock_old_archive_extraction=yes ;; |
| 6454 | *) |
| 6455 | lock_old_archive_extraction=no ;; |
| 6456 | esac |
| 6457 | |
| 6458 | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | |
| 6475 | |
| 6476 | |
| 6477 | |
| 6478 | |
| 6479 | |
| 6480 | |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | |
| 6485 | |
| 6486 | |
| 6487 | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | |
| 6495 | |
| 6496 | # If no C compiler was specified, use CC. |
| 6497 | LTCC=${LTCC-"$CC"} |
| 6498 | |
| 6499 | # If no C compiler flags were specified, use CFLAGS. |
| 6500 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6501 | |
| 6502 | # Allow CC to be a program name with arguments. |
| 6503 | compiler=$CC |
| 6504 | |
| 6505 | |
| 6506 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6508 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6509 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6510 | $as_echo_n "(cached) " >&6 |
| 6511 | else |
| 6512 | |
| 6513 | # These are sane defaults that work on at least a few old systems. |
| 6514 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6515 | |
| 6516 | # Character class describing NM global symbol codes. |
| 6517 | symcode='[BCDEGRST]' |
| 6518 | |
| 6519 | # Regexp to match symbols that can be accessed directly from C. |
| 6520 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6521 | |
| 6522 | # Define system-specific variables. |
| 6523 | case $host_os in |
| 6524 | aix*) |
| 6525 | symcode='[BCDT]' |
| 6526 | ;; |
| 6527 | cygwin* | mingw* | pw32* | cegcc*) |
| 6528 | symcode='[ABCDGISTW]' |
| 6529 | ;; |
| 6530 | hpux*) |
| 6531 | if test "$host_cpu" = ia64; then |
| 6532 | symcode='[ABCDEGRST]' |
| 6533 | fi |
| 6534 | ;; |
| 6535 | irix* | nonstopux*) |
| 6536 | symcode='[BCDEGRST]' |
| 6537 | ;; |
| 6538 | osf*) |
| 6539 | symcode='[BCDEGQRST]' |
| 6540 | ;; |
| 6541 | solaris*) |
| 6542 | symcode='[BDRT]' |
| 6543 | ;; |
| 6544 | sco3.2v5*) |
| 6545 | symcode='[DT]' |
| 6546 | ;; |
| 6547 | sysv4.2uw2*) |
| 6548 | symcode='[DT]' |
| 6549 | ;; |
| 6550 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6551 | symcode='[ABDT]' |
| 6552 | ;; |
| 6553 | sysv4) |
| 6554 | symcode='[DFNSTU]' |
| 6555 | ;; |
| 6556 | esac |
| 6557 | |
| 6558 | # If we're using GNU nm, then use its standard symbol codes. |
| 6559 | case `$NM -V 2>&1` in |
| 6560 | *GNU* | *'with BFD'*) |
| 6561 | symcode='[ABCDGIRSTW]' ;; |
| 6562 | esac |
| 6563 | |
| 6564 | # Transform an extracted symbol line into a proper C declaration. |
| 6565 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6566 | # so use this general approach. |
| 6567 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6568 | |
| 6569 | # Transform an extracted symbol line into symbol name and symbol address |
| 6570 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6571 | 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'" |
| 6572 | |
| 6573 | # Handle CRLF in mingw tool chain |
| 6574 | opt_cr= |
| 6575 | case $build_os in |
| 6576 | mingw*) |
| 6577 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6578 | ;; |
| 6579 | esac |
| 6580 | |
| 6581 | # Try without a prefix underscore, then with it. |
| 6582 | for ac_symprfx in "" "_"; do |
| 6583 | |
| 6584 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6585 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6586 | |
| 6587 | # Write the raw and C identifiers. |
| 6588 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6589 | # Fake it for dumpbin and say T for any non-static function |
| 6590 | # and D for any global variable. |
| 6591 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6592 | # which start with @ or ?. |
| 6593 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6594 | " {last_section=section; section=\$ 3};"\ |
| 6595 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6596 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6597 | " \$ 0!~/External *\|/{next};"\ |
| 6598 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6599 | " {if(hide[section]) next};"\ |
| 6600 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6601 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6602 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6603 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6604 | " ' prfx=^$ac_symprfx" |
| 6605 | else |
| 6606 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6607 | fi |
| 6608 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6609 | |
| 6610 | # Check to see that the pipe works correctly. |
| 6611 | pipe_works=no |
| 6612 | |
| 6613 | rm -f conftest* |
| 6614 | cat > conftest.$ac_ext <<_LT_EOF |
| 6615 | #ifdef __cplusplus |
| 6616 | extern "C" { |
| 6617 | #endif |
| 6618 | char nm_test_var; |
| 6619 | void nm_test_func(void); |
| 6620 | void nm_test_func(void){} |
| 6621 | #ifdef __cplusplus |
| 6622 | } |
| 6623 | #endif |
| 6624 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6625 | _LT_EOF |
| 6626 | |
| 6627 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6628 | (eval $ac_compile) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6631 | test $ac_status = 0; }; then |
| 6632 | # Now try to grab the symbols. |
| 6633 | nlist=conftest.nm |
| 6634 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6635 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6636 | ac_status=$? |
| 6637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6638 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6639 | # Try sorting and uniquifying the output. |
| 6640 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6641 | mv -f "$nlist"T "$nlist" |
| 6642 | else |
| 6643 | rm -f "$nlist"T |
| 6644 | fi |
| 6645 | |
| 6646 | # Make sure that we snagged all the symbols we need. |
| 6647 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6648 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6649 | cat <<_LT_EOF > conftest.$ac_ext |
| 6650 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6651 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6652 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6653 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6654 | # define LT_DLSYM_CONST |
| 6655 | #elif defined(__osf__) |
| 6656 | /* This system does not cope well with relocations in const data. */ |
| 6657 | # define LT_DLSYM_CONST |
| 6658 | #else |
| 6659 | # define LT_DLSYM_CONST const |
| 6660 | #endif |
| 6661 | |
| 6662 | #ifdef __cplusplus |
| 6663 | extern "C" { |
| 6664 | #endif |
| 6665 | |
| 6666 | _LT_EOF |
| 6667 | # Now generate the symbol file. |
| 6668 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6669 | |
| 6670 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6671 | |
| 6672 | /* The mapping between symbol names and symbols. */ |
| 6673 | LT_DLSYM_CONST struct { |
| 6674 | const char *name; |
| 6675 | void *address; |
| 6676 | } |
| 6677 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6678 | { |
| 6679 | { "@PROGRAM@", (void *) 0 }, |
| 6680 | _LT_EOF |
| 6681 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6682 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6683 | {0, (void *) 0} |
| 6684 | }; |
| 6685 | |
| 6686 | /* This works around a problem in FreeBSD linker */ |
| 6687 | #ifdef FREEBSD_WORKAROUND |
| 6688 | static const void *lt_preloaded_setup() { |
| 6689 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6690 | } |
| 6691 | #endif |
| 6692 | |
| 6693 | #ifdef __cplusplus |
| 6694 | } |
| 6695 | #endif |
| 6696 | _LT_EOF |
| 6697 | # Now try linking the two files. |
| 6698 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6699 | lt_globsym_save_LIBS=$LIBS |
| 6700 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6701 | LIBS="conftstm.$ac_objext" |
| 6702 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6703 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6704 | (eval $ac_link) 2>&5 |
| 6705 | ac_status=$? |
| 6706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6707 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6708 | pipe_works=yes |
| 6709 | fi |
| 6710 | LIBS=$lt_globsym_save_LIBS |
| 6711 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6712 | else |
| 6713 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6714 | fi |
| 6715 | else |
| 6716 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6717 | fi |
| 6718 | else |
| 6719 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6720 | fi |
| 6721 | else |
| 6722 | echo "$progname: failed program was:" >&5 |
| 6723 | cat conftest.$ac_ext >&5 |
| 6724 | fi |
| 6725 | rm -rf conftest* conftst* |
| 6726 | |
| 6727 | # Do not use the global_symbol_pipe unless it works. |
| 6728 | if test "$pipe_works" = yes; then |
| 6729 | break |
| 6730 | else |
| 6731 | lt_cv_sys_global_symbol_pipe= |
| 6732 | fi |
| 6733 | done |
| 6734 | |
| 6735 | fi |
| 6736 | |
| 6737 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6738 | lt_cv_sys_global_symbol_to_cdecl= |
| 6739 | fi |
| 6740 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6742 | $as_echo "failed" >&6; } |
| 6743 | else |
| 6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6745 | $as_echo "ok" >&6; } |
| 6746 | fi |
| 6747 | |
| 6748 | # Response file support. |
| 6749 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6750 | nm_file_list_spec='@' |
| 6751 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6752 | nm_file_list_spec='@' |
| 6753 | fi |
| 6754 | |
| 6755 | |
| 6756 | |
| 6757 | |
| 6758 | |
| 6759 | |
| 6760 | |
| 6761 | |
| 6762 | |
| 6763 | |
| 6764 | |
| 6765 | |
| 6766 | |
| 6767 | |
| 6768 | |
| 6769 | |
| 6770 | |
| 6771 | |
| 6772 | |
| 6773 | |
| 6774 | |
| 6775 | |
| 6776 | |
| 6777 | |
| 6778 | |
| 6779 | |
| 6780 | |
| 6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6782 | $as_echo_n "checking for sysroot... " >&6; } |
| 6783 | |
| 6784 | # Check whether --with-sysroot was given. |
| 6785 | if test "${with_sysroot+set}" = set; then : |
| 6786 | withval=$with_sysroot; |
| 6787 | else |
| 6788 | with_sysroot=no |
| 6789 | fi |
| 6790 | |
| 6791 | |
| 6792 | lt_sysroot= |
| 6793 | case ${with_sysroot} in #( |
| 6794 | yes) |
| 6795 | if test "$GCC" = yes; then |
| 6796 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6797 | fi |
| 6798 | ;; #( |
| 6799 | /*) |
| 6800 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6801 | ;; #( |
| 6802 | no|'') |
| 6803 | ;; #( |
| 6804 | *) |
| 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6806 | $as_echo "${with_sysroot}" >&6; } |
| 6807 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6808 | ;; |
| 6809 | esac |
| 6810 | |
| 6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6812 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6813 | |
| 6814 | |
| 6815 | |
| 6816 | |
| 6817 | |
| 6818 | # Check whether --enable-libtool-lock was given. |
| 6819 | if test "${enable_libtool_lock+set}" = set; then : |
| 6820 | enableval=$enable_libtool_lock; |
| 6821 | fi |
| 6822 | |
| 6823 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6824 | |
| 6825 | # Some flags need to be propagated to the compiler or linker for good |
| 6826 | # libtool support. |
| 6827 | case $host in |
| 6828 | ia64-*-hpux*) |
| 6829 | # Find out which ABI we are using. |
| 6830 | echo 'int i;' > conftest.$ac_ext |
| 6831 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6832 | (eval $ac_compile) 2>&5 |
| 6833 | ac_status=$? |
| 6834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6835 | test $ac_status = 0; }; then |
| 6836 | case `/usr/bin/file conftest.$ac_objext` in |
| 6837 | *ELF-32*) |
| 6838 | HPUX_IA64_MODE="32" |
| 6839 | ;; |
| 6840 | *ELF-64*) |
| 6841 | HPUX_IA64_MODE="64" |
| 6842 | ;; |
| 6843 | esac |
| 6844 | fi |
| 6845 | rm -rf conftest* |
| 6846 | ;; |
| 6847 | *-*-irix6*) |
| 6848 | # Find out which ABI we are using. |
| 6849 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6850 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6851 | (eval $ac_compile) 2>&5 |
| 6852 | ac_status=$? |
| 6853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6854 | test $ac_status = 0; }; then |
| 6855 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6856 | case `/usr/bin/file conftest.$ac_objext` in |
| 6857 | *32-bit*) |
| 6858 | LD="${LD-ld} -melf32bsmip" |
| 6859 | ;; |
| 6860 | *N32*) |
| 6861 | LD="${LD-ld} -melf32bmipn32" |
| 6862 | ;; |
| 6863 | *64-bit*) |
| 6864 | LD="${LD-ld} -melf64bmip" |
| 6865 | ;; |
| 6866 | esac |
| 6867 | else |
| 6868 | case `/usr/bin/file conftest.$ac_objext` in |
| 6869 | *32-bit*) |
| 6870 | LD="${LD-ld} -32" |
| 6871 | ;; |
| 6872 | *N32*) |
| 6873 | LD="${LD-ld} -n32" |
| 6874 | ;; |
| 6875 | *64-bit*) |
| 6876 | LD="${LD-ld} -64" |
| 6877 | ;; |
| 6878 | esac |
| 6879 | fi |
| 6880 | fi |
| 6881 | rm -rf conftest* |
| 6882 | ;; |
| 6883 | |
| 6884 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6885 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6886 | # Find out which ABI we are using. |
| 6887 | echo 'int i;' > conftest.$ac_ext |
| 6888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6889 | (eval $ac_compile) 2>&5 |
| 6890 | ac_status=$? |
| 6891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6892 | test $ac_status = 0; }; then |
| 6893 | case `/usr/bin/file conftest.o` in |
| 6894 | *32-bit*) |
| 6895 | case $host in |
| 6896 | x86_64-*kfreebsd*-gnu) |
| 6897 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6898 | ;; |
| 6899 | x86_64-*linux*) |
| 6900 | LD="${LD-ld} -m elf_i386" |
| 6901 | ;; |
| 6902 | ppc64-*linux*|powerpc64-*linux*) |
| 6903 | LD="${LD-ld} -m elf32ppclinux" |
| 6904 | ;; |
| 6905 | s390x-*linux*) |
| 6906 | LD="${LD-ld} -m elf_s390" |
| 6907 | ;; |
| 6908 | sparc64-*linux*) |
| 6909 | LD="${LD-ld} -m elf32_sparc" |
| 6910 | ;; |
| 6911 | esac |
| 6912 | ;; |
| 6913 | *64-bit*) |
| 6914 | case $host in |
| 6915 | x86_64-*kfreebsd*-gnu) |
| 6916 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6917 | ;; |
| 6918 | x86_64-*linux*) |
| 6919 | LD="${LD-ld} -m elf_x86_64" |
| 6920 | ;; |
| 6921 | ppc*-*linux*|powerpc*-*linux*) |
| 6922 | LD="${LD-ld} -m elf64ppc" |
| 6923 | ;; |
| 6924 | s390*-*linux*|s390*-*tpf*) |
| 6925 | LD="${LD-ld} -m elf64_s390" |
| 6926 | ;; |
| 6927 | sparc*-*linux*) |
| 6928 | LD="${LD-ld} -m elf64_sparc" |
| 6929 | ;; |
| 6930 | esac |
| 6931 | ;; |
| 6932 | esac |
| 6933 | fi |
| 6934 | rm -rf conftest* |
| 6935 | ;; |
| 6936 | |
| 6937 | *-*-sco3.2v5*) |
| 6938 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6939 | SAVE_CFLAGS="$CFLAGS" |
| 6940 | CFLAGS="$CFLAGS -belf" |
| 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6942 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6943 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 6944 | $as_echo_n "(cached) " >&6 |
| 6945 | else |
| 6946 | ac_ext=c |
| 6947 | ac_cpp='$CPP $CPPFLAGS' |
| 6948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6951 | |
| 6952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6953 | /* end confdefs.h. */ |
| 6954 | |
| 6955 | int |
| 6956 | main () |
| 6957 | { |
| 6958 | |
| 6959 | ; |
| 6960 | return 0; |
| 6961 | } |
| 6962 | _ACEOF |
| 6963 | if ac_fn_c_try_link "$LINENO"; then : |
| 6964 | lt_cv_cc_needs_belf=yes |
| 6965 | else |
| 6966 | lt_cv_cc_needs_belf=no |
| 6967 | fi |
| 6968 | rm -f core conftest.err conftest.$ac_objext \ |
| 6969 | conftest$ac_exeext conftest.$ac_ext |
| 6970 | ac_ext=c |
| 6971 | ac_cpp='$CPP $CPPFLAGS' |
| 6972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6975 | |
| 6976 | fi |
| 6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6978 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6979 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6980 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6981 | CFLAGS="$SAVE_CFLAGS" |
| 6982 | fi |
| 6983 | ;; |
| 6984 | *-*solaris*) |
| 6985 | # Find out which ABI we are using. |
| 6986 | echo 'int i;' > conftest.$ac_ext |
| 6987 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6988 | (eval $ac_compile) 2>&5 |
| 6989 | ac_status=$? |
| 6990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6991 | test $ac_status = 0; }; then |
| 6992 | case `/usr/bin/file conftest.o` in |
| 6993 | *64-bit*) |
| 6994 | case $lt_cv_prog_gnu_ld in |
| 6995 | yes*) |
| 6996 | case $host in |
| 6997 | i?86-*-solaris*) |
| 6998 | LD="${LD-ld} -m elf_x86_64" |
| 6999 | ;; |
| 7000 | sparc*-*-solaris*) |
| 7001 | LD="${LD-ld} -m elf64_sparc" |
| 7002 | ;; |
| 7003 | esac |
| 7004 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7005 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7006 | LD="${LD-ld}_sol2" |
| 7007 | fi |
| 7008 | ;; |
| 7009 | *) |
| 7010 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 7011 | LD="${LD-ld} -64" |
| 7012 | fi |
| 7013 | ;; |
| 7014 | esac |
| 7015 | ;; |
| 7016 | esac |
| 7017 | fi |
| 7018 | rm -rf conftest* |
| 7019 | ;; |
| 7020 | esac |
| 7021 | |
| 7022 | need_locks="$enable_libtool_lock" |
| 7023 | |
| 7024 | if test -n "$ac_tool_prefix"; then |
| 7025 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7026 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7028 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7029 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 7030 | $as_echo_n "(cached) " >&6 |
| 7031 | else |
| 7032 | if test -n "$MANIFEST_TOOL"; then |
| 7033 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 7034 | else |
| 7035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7036 | for as_dir in $PATH |
| 7037 | do |
| 7038 | IFS=$as_save_IFS |
| 7039 | test -z "$as_dir" && as_dir=. |
| 7040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7042 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 7043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7044 | break 2 |
| 7045 | fi |
| 7046 | done |
| 7047 | done |
| 7048 | IFS=$as_save_IFS |
| 7049 | |
| 7050 | fi |
| 7051 | fi |
| 7052 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 7053 | if test -n "$MANIFEST_TOOL"; then |
| 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 7055 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 7056 | else |
| 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7058 | $as_echo "no" >&6; } |
| 7059 | fi |
| 7060 | |
| 7061 | |
| 7062 | fi |
| 7063 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 7064 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 7065 | # Extract the first word of "mt", so it can be a program name with args. |
| 7066 | set dummy mt; ac_word=$2 |
| 7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7068 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7069 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 7070 | $as_echo_n "(cached) " >&6 |
| 7071 | else |
| 7072 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7073 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 7074 | else |
| 7075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7076 | for as_dir in $PATH |
| 7077 | do |
| 7078 | IFS=$as_save_IFS |
| 7079 | test -z "$as_dir" && as_dir=. |
| 7080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7082 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 7083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7084 | break 2 |
| 7085 | fi |
| 7086 | done |
| 7087 | done |
| 7088 | IFS=$as_save_IFS |
| 7089 | |
| 7090 | fi |
| 7091 | fi |
| 7092 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 7093 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 7095 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 7096 | else |
| 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7098 | $as_echo "no" >&6; } |
| 7099 | fi |
| 7100 | |
| 7101 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 7102 | MANIFEST_TOOL=":" |
| 7103 | else |
| 7104 | case $cross_compiling:$ac_tool_warned in |
| 7105 | yes:) |
| 7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7107 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7108 | ac_tool_warned=yes ;; |
| 7109 | esac |
| 7110 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 7111 | fi |
| 7112 | else |
| 7113 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 7114 | fi |
| 7115 | |
| 7116 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 7118 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 7119 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 7120 | $as_echo_n "(cached) " >&6 |
| 7121 | else |
| 7122 | lt_cv_path_mainfest_tool=no |
| 7123 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 7124 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 7125 | cat conftest.err >&5 |
| 7126 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 7127 | lt_cv_path_mainfest_tool=yes |
| 7128 | fi |
| 7129 | rm -f conftest* |
| 7130 | fi |
| 7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7132 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7133 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7134 | MANIFEST_TOOL=: |
| 7135 | fi |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
| 7140 | |
| 7141 | |
| 7142 | case $host_os in |
| 7143 | rhapsody* | darwin*) |
| 7144 | if test -n "$ac_tool_prefix"; then |
| 7145 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7146 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7148 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7149 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7150 | $as_echo_n "(cached) " >&6 |
| 7151 | else |
| 7152 | if test -n "$DSYMUTIL"; then |
| 7153 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7154 | else |
| 7155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7156 | for as_dir in $PATH |
| 7157 | do |
| 7158 | IFS=$as_save_IFS |
| 7159 | test -z "$as_dir" && as_dir=. |
| 7160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7162 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7164 | break 2 |
| 7165 | fi |
| 7166 | done |
| 7167 | done |
| 7168 | IFS=$as_save_IFS |
| 7169 | |
| 7170 | fi |
| 7171 | fi |
| 7172 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7173 | if test -n "$DSYMUTIL"; then |
| 7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7175 | $as_echo "$DSYMUTIL" >&6; } |
| 7176 | else |
| 7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7178 | $as_echo "no" >&6; } |
| 7179 | fi |
| 7180 | |
| 7181 | |
| 7182 | fi |
| 7183 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7184 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 7185 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 7186 | set dummy dsymutil; ac_word=$2 |
| 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7188 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7189 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7190 | $as_echo_n "(cached) " >&6 |
| 7191 | else |
| 7192 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7193 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7194 | else |
| 7195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7196 | for as_dir in $PATH |
| 7197 | do |
| 7198 | IFS=$as_save_IFS |
| 7199 | test -z "$as_dir" && as_dir=. |
| 7200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7202 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7204 | break 2 |
| 7205 | fi |
| 7206 | done |
| 7207 | done |
| 7208 | IFS=$as_save_IFS |
| 7209 | |
| 7210 | fi |
| 7211 | fi |
| 7212 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7213 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7215 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7216 | else |
| 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7218 | $as_echo "no" >&6; } |
| 7219 | fi |
| 7220 | |
| 7221 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7222 | DSYMUTIL=":" |
| 7223 | else |
| 7224 | case $cross_compiling:$ac_tool_warned in |
| 7225 | yes:) |
| 7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7227 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7228 | ac_tool_warned=yes ;; |
| 7229 | esac |
| 7230 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7231 | fi |
| 7232 | else |
| 7233 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7234 | fi |
| 7235 | |
| 7236 | if test -n "$ac_tool_prefix"; then |
| 7237 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7238 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7240 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7241 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7242 | $as_echo_n "(cached) " >&6 |
| 7243 | else |
| 7244 | if test -n "$NMEDIT"; then |
| 7245 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7246 | else |
| 7247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7248 | for as_dir in $PATH |
| 7249 | do |
| 7250 | IFS=$as_save_IFS |
| 7251 | test -z "$as_dir" && as_dir=. |
| 7252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7254 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7256 | break 2 |
| 7257 | fi |
| 7258 | done |
| 7259 | done |
| 7260 | IFS=$as_save_IFS |
| 7261 | |
| 7262 | fi |
| 7263 | fi |
| 7264 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7265 | if test -n "$NMEDIT"; then |
| 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7267 | $as_echo "$NMEDIT" >&6; } |
| 7268 | else |
| 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7270 | $as_echo "no" >&6; } |
| 7271 | fi |
| 7272 | |
| 7273 | |
| 7274 | fi |
| 7275 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7276 | ac_ct_NMEDIT=$NMEDIT |
| 7277 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7278 | set dummy nmedit; ac_word=$2 |
| 7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7280 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7281 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7282 | $as_echo_n "(cached) " >&6 |
| 7283 | else |
| 7284 | if test -n "$ac_ct_NMEDIT"; then |
| 7285 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7286 | else |
| 7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7288 | for as_dir in $PATH |
| 7289 | do |
| 7290 | IFS=$as_save_IFS |
| 7291 | test -z "$as_dir" && as_dir=. |
| 7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7294 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7296 | break 2 |
| 7297 | fi |
| 7298 | done |
| 7299 | done |
| 7300 | IFS=$as_save_IFS |
| 7301 | |
| 7302 | fi |
| 7303 | fi |
| 7304 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7305 | if test -n "$ac_ct_NMEDIT"; then |
| 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7307 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7308 | else |
| 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7310 | $as_echo "no" >&6; } |
| 7311 | fi |
| 7312 | |
| 7313 | if test "x$ac_ct_NMEDIT" = x; then |
| 7314 | NMEDIT=":" |
| 7315 | else |
| 7316 | case $cross_compiling:$ac_tool_warned in |
| 7317 | yes:) |
| 7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7320 | ac_tool_warned=yes ;; |
| 7321 | esac |
| 7322 | NMEDIT=$ac_ct_NMEDIT |
| 7323 | fi |
| 7324 | else |
| 7325 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7326 | fi |
| 7327 | |
| 7328 | if test -n "$ac_tool_prefix"; then |
| 7329 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7330 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7332 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7333 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7334 | $as_echo_n "(cached) " >&6 |
| 7335 | else |
| 7336 | if test -n "$LIPO"; then |
| 7337 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7338 | else |
| 7339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7340 | for as_dir in $PATH |
| 7341 | do |
| 7342 | IFS=$as_save_IFS |
| 7343 | test -z "$as_dir" && as_dir=. |
| 7344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7346 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7348 | break 2 |
| 7349 | fi |
| 7350 | done |
| 7351 | done |
| 7352 | IFS=$as_save_IFS |
| 7353 | |
| 7354 | fi |
| 7355 | fi |
| 7356 | LIPO=$ac_cv_prog_LIPO |
| 7357 | if test -n "$LIPO"; then |
| 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7359 | $as_echo "$LIPO" >&6; } |
| 7360 | else |
| 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7362 | $as_echo "no" >&6; } |
| 7363 | fi |
| 7364 | |
| 7365 | |
| 7366 | fi |
| 7367 | if test -z "$ac_cv_prog_LIPO"; then |
| 7368 | ac_ct_LIPO=$LIPO |
| 7369 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7370 | set dummy lipo; ac_word=$2 |
| 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7372 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7373 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7374 | $as_echo_n "(cached) " >&6 |
| 7375 | else |
| 7376 | if test -n "$ac_ct_LIPO"; then |
| 7377 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7378 | else |
| 7379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7380 | for as_dir in $PATH |
| 7381 | do |
| 7382 | IFS=$as_save_IFS |
| 7383 | test -z "$as_dir" && as_dir=. |
| 7384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7386 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7388 | break 2 |
| 7389 | fi |
| 7390 | done |
| 7391 | done |
| 7392 | IFS=$as_save_IFS |
| 7393 | |
| 7394 | fi |
| 7395 | fi |
| 7396 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7397 | if test -n "$ac_ct_LIPO"; then |
| 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7399 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7400 | else |
| 7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7402 | $as_echo "no" >&6; } |
| 7403 | fi |
| 7404 | |
| 7405 | if test "x$ac_ct_LIPO" = x; then |
| 7406 | LIPO=":" |
| 7407 | else |
| 7408 | case $cross_compiling:$ac_tool_warned in |
| 7409 | yes:) |
| 7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7412 | ac_tool_warned=yes ;; |
| 7413 | esac |
| 7414 | LIPO=$ac_ct_LIPO |
| 7415 | fi |
| 7416 | else |
| 7417 | LIPO="$ac_cv_prog_LIPO" |
| 7418 | fi |
| 7419 | |
| 7420 | if test -n "$ac_tool_prefix"; then |
| 7421 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7422 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7424 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7425 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7426 | $as_echo_n "(cached) " >&6 |
| 7427 | else |
| 7428 | if test -n "$OTOOL"; then |
| 7429 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7430 | else |
| 7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7432 | for as_dir in $PATH |
| 7433 | do |
| 7434 | IFS=$as_save_IFS |
| 7435 | test -z "$as_dir" && as_dir=. |
| 7436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7438 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7440 | break 2 |
| 7441 | fi |
| 7442 | done |
| 7443 | done |
| 7444 | IFS=$as_save_IFS |
| 7445 | |
| 7446 | fi |
| 7447 | fi |
| 7448 | OTOOL=$ac_cv_prog_OTOOL |
| 7449 | if test -n "$OTOOL"; then |
| 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7451 | $as_echo "$OTOOL" >&6; } |
| 7452 | else |
| 7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7454 | $as_echo "no" >&6; } |
| 7455 | fi |
| 7456 | |
| 7457 | |
| 7458 | fi |
| 7459 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7460 | ac_ct_OTOOL=$OTOOL |
| 7461 | # Extract the first word of "otool", so it can be a program name with args. |
| 7462 | set dummy otool; ac_word=$2 |
| 7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7464 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7465 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7466 | $as_echo_n "(cached) " >&6 |
| 7467 | else |
| 7468 | if test -n "$ac_ct_OTOOL"; then |
| 7469 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7470 | else |
| 7471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7472 | for as_dir in $PATH |
| 7473 | do |
| 7474 | IFS=$as_save_IFS |
| 7475 | test -z "$as_dir" && as_dir=. |
| 7476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7478 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7480 | break 2 |
| 7481 | fi |
| 7482 | done |
| 7483 | done |
| 7484 | IFS=$as_save_IFS |
| 7485 | |
| 7486 | fi |
| 7487 | fi |
| 7488 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7489 | if test -n "$ac_ct_OTOOL"; then |
| 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7491 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7492 | else |
| 7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7494 | $as_echo "no" >&6; } |
| 7495 | fi |
| 7496 | |
| 7497 | if test "x$ac_ct_OTOOL" = x; then |
| 7498 | OTOOL=":" |
| 7499 | else |
| 7500 | case $cross_compiling:$ac_tool_warned in |
| 7501 | yes:) |
| 7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7504 | ac_tool_warned=yes ;; |
| 7505 | esac |
| 7506 | OTOOL=$ac_ct_OTOOL |
| 7507 | fi |
| 7508 | else |
| 7509 | OTOOL="$ac_cv_prog_OTOOL" |
| 7510 | fi |
| 7511 | |
| 7512 | if test -n "$ac_tool_prefix"; then |
| 7513 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7514 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7516 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7517 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7518 | $as_echo_n "(cached) " >&6 |
| 7519 | else |
| 7520 | if test -n "$OTOOL64"; then |
| 7521 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7522 | else |
| 7523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7524 | for as_dir in $PATH |
| 7525 | do |
| 7526 | IFS=$as_save_IFS |
| 7527 | test -z "$as_dir" && as_dir=. |
| 7528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7530 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7532 | break 2 |
| 7533 | fi |
| 7534 | done |
| 7535 | done |
| 7536 | IFS=$as_save_IFS |
| 7537 | |
| 7538 | fi |
| 7539 | fi |
| 7540 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7541 | if test -n "$OTOOL64"; then |
| 7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7543 | $as_echo "$OTOOL64" >&6; } |
| 7544 | else |
| 7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7546 | $as_echo "no" >&6; } |
| 7547 | fi |
| 7548 | |
| 7549 | |
| 7550 | fi |
| 7551 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7552 | ac_ct_OTOOL64=$OTOOL64 |
| 7553 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7554 | set dummy otool64; ac_word=$2 |
| 7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7556 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7557 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7558 | $as_echo_n "(cached) " >&6 |
| 7559 | else |
| 7560 | if test -n "$ac_ct_OTOOL64"; then |
| 7561 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7562 | else |
| 7563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7564 | for as_dir in $PATH |
| 7565 | do |
| 7566 | IFS=$as_save_IFS |
| 7567 | test -z "$as_dir" && as_dir=. |
| 7568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7570 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7572 | break 2 |
| 7573 | fi |
| 7574 | done |
| 7575 | done |
| 7576 | IFS=$as_save_IFS |
| 7577 | |
| 7578 | fi |
| 7579 | fi |
| 7580 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7581 | if test -n "$ac_ct_OTOOL64"; then |
| 7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7583 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7584 | else |
| 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7586 | $as_echo "no" >&6; } |
| 7587 | fi |
| 7588 | |
| 7589 | if test "x$ac_ct_OTOOL64" = x; then |
| 7590 | OTOOL64=":" |
| 7591 | else |
| 7592 | case $cross_compiling:$ac_tool_warned in |
| 7593 | yes:) |
| 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7596 | ac_tool_warned=yes ;; |
| 7597 | esac |
| 7598 | OTOOL64=$ac_ct_OTOOL64 |
| 7599 | fi |
| 7600 | else |
| 7601 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7602 | fi |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | |
| 7608 | |
| 7609 | |
| 7610 | |
| 7611 | |
| 7612 | |
| 7613 | |
| 7614 | |
| 7615 | |
| 7616 | |
| 7617 | |
| 7618 | |
| 7619 | |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7631 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7632 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7633 | $as_echo_n "(cached) " >&6 |
| 7634 | else |
| 7635 | lt_cv_apple_cc_single_mod=no |
| 7636 | if test -z "${LT_MULTI_MODULE}"; then |
| 7637 | # By default we will add the -single_module flag. You can override |
| 7638 | # by either setting the environment variable LT_MULTI_MODULE |
| 7639 | # non-empty at configure time, or by adding -multi_module to the |
| 7640 | # link flags. |
| 7641 | rm -rf libconftest.dylib* |
| 7642 | echo "int foo(void){return 1;}" > conftest.c |
| 7643 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7644 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7645 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7646 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7647 | _lt_result=$? |
| 7648 | # If there is a non-empty error log, and "single_module" |
| 7649 | # appears in it, assume the flag caused a linker warning |
| 7650 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7651 | cat conftest.err >&5 |
| 7652 | # Otherwise, if the output was created with a 0 exit code from |
| 7653 | # the compiler, it worked. |
| 7654 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7655 | lt_cv_apple_cc_single_mod=yes |
| 7656 | else |
| 7657 | cat conftest.err >&5 |
| 7658 | fi |
| 7659 | rm -rf libconftest.dylib* |
| 7660 | rm -f conftest.* |
| 7661 | fi |
| 7662 | fi |
| 7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7664 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7665 | |
| 7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7667 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7668 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7669 | $as_echo_n "(cached) " >&6 |
| 7670 | else |
| 7671 | lt_cv_ld_exported_symbols_list=no |
| 7672 | save_LDFLAGS=$LDFLAGS |
| 7673 | echo "_main" > conftest.sym |
| 7674 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7676 | /* end confdefs.h. */ |
| 7677 | |
| 7678 | int |
| 7679 | main () |
| 7680 | { |
| 7681 | |
| 7682 | ; |
| 7683 | return 0; |
| 7684 | } |
| 7685 | _ACEOF |
| 7686 | if ac_fn_c_try_link "$LINENO"; then : |
| 7687 | lt_cv_ld_exported_symbols_list=yes |
| 7688 | else |
| 7689 | lt_cv_ld_exported_symbols_list=no |
| 7690 | fi |
| 7691 | rm -f core conftest.err conftest.$ac_objext \ |
| 7692 | conftest$ac_exeext conftest.$ac_ext |
| 7693 | LDFLAGS="$save_LDFLAGS" |
| 7694 | |
| 7695 | fi |
| 7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7697 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7698 | |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7700 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7701 | if ${lt_cv_ld_force_load+:} false; then : |
| 7702 | $as_echo_n "(cached) " >&6 |
| 7703 | else |
| 7704 | lt_cv_ld_force_load=no |
| 7705 | cat > conftest.c << _LT_EOF |
| 7706 | int forced_loaded() { return 2;} |
| 7707 | _LT_EOF |
| 7708 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7709 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7710 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7711 | $AR cru libconftest.a conftest.o 2>&5 |
| 7712 | echo "$RANLIB libconftest.a" >&5 |
| 7713 | $RANLIB libconftest.a 2>&5 |
| 7714 | cat > conftest.c << _LT_EOF |
| 7715 | int main() { return 0;} |
| 7716 | _LT_EOF |
| 7717 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7718 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7719 | _lt_result=$? |
| 7720 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7721 | cat conftest.err >&5 |
| 7722 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7723 | lt_cv_ld_force_load=yes |
| 7724 | else |
| 7725 | cat conftest.err >&5 |
| 7726 | fi |
| 7727 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7728 | rm -rf conftest.dSYM |
| 7729 | |
| 7730 | fi |
| 7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7732 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7733 | case $host_os in |
| 7734 | rhapsody* | darwin1.[012]) |
| 7735 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7736 | darwin1.*) |
| 7737 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7738 | darwin*) # darwin 5.x on |
| 7739 | # if running on 10.5 or later, the deployment target defaults |
| 7740 | # to the OS version, if on x86, and 10.4, the deployment |
| 7741 | # target defaults to 10.4. Don't you love it? |
| 7742 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7743 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7744 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7745 | 10.[012]*) |
| 7746 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7747 | 10.*) |
| 7748 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7749 | esac |
| 7750 | ;; |
| 7751 | esac |
| 7752 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7753 | _lt_dar_single_mod='$single_module' |
| 7754 | fi |
| 7755 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7756 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7757 | else |
| 7758 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7759 | fi |
| 7760 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7761 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7762 | else |
| 7763 | _lt_dsymutil= |
| 7764 | fi |
| 7765 | ;; |
| 7766 | esac |
| 7767 | |
| 7768 | ac_ext=c |
| 7769 | ac_cpp='$CPP $CPPFLAGS' |
| 7770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7774 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7775 | # On Suns, sometimes $CPP names a directory. |
| 7776 | if test -n "$CPP" && test -d "$CPP"; then |
| 7777 | CPP= |
| 7778 | fi |
| 7779 | if test -z "$CPP"; then |
| 7780 | if ${ac_cv_prog_CPP+:} false; then : |
| 7781 | $as_echo_n "(cached) " >&6 |
| 7782 | else |
| 7783 | # Double quotes because CPP needs to be expanded |
| 7784 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7785 | do |
| 7786 | ac_preproc_ok=false |
| 7787 | for ac_c_preproc_warn_flag in '' yes |
| 7788 | do |
| 7789 | # Use a header file that comes with gcc, so configuring glibc |
| 7790 | # with a fresh cross-compiler works. |
| 7791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7792 | # <limits.h> exists even on freestanding compilers. |
| 7793 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7794 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7796 | /* end confdefs.h. */ |
| 7797 | #ifdef __STDC__ |
| 7798 | # include <limits.h> |
| 7799 | #else |
| 7800 | # include <assert.h> |
| 7801 | #endif |
| 7802 | Syntax error |
| 7803 | _ACEOF |
| 7804 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7805 | |
| 7806 | else |
| 7807 | # Broken: fails on valid input. |
| 7808 | continue |
| 7809 | fi |
| 7810 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7811 | |
| 7812 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7813 | # can be detected and how. |
| 7814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7815 | /* end confdefs.h. */ |
| 7816 | #include <ac_nonexistent.h> |
| 7817 | _ACEOF |
| 7818 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7819 | # Broken: success on invalid input. |
| 7820 | continue |
| 7821 | else |
| 7822 | # Passes both tests. |
| 7823 | ac_preproc_ok=: |
| 7824 | break |
| 7825 | fi |
| 7826 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7827 | |
| 7828 | done |
| 7829 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7830 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7831 | if $ac_preproc_ok; then : |
| 7832 | break |
| 7833 | fi |
| 7834 | |
| 7835 | done |
| 7836 | ac_cv_prog_CPP=$CPP |
| 7837 | |
| 7838 | fi |
| 7839 | CPP=$ac_cv_prog_CPP |
| 7840 | else |
| 7841 | ac_cv_prog_CPP=$CPP |
| 7842 | fi |
| 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7844 | $as_echo "$CPP" >&6; } |
| 7845 | ac_preproc_ok=false |
| 7846 | for ac_c_preproc_warn_flag in '' yes |
| 7847 | do |
| 7848 | # Use a header file that comes with gcc, so configuring glibc |
| 7849 | # with a fresh cross-compiler works. |
| 7850 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7851 | # <limits.h> exists even on freestanding compilers. |
| 7852 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7853 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7855 | /* end confdefs.h. */ |
| 7856 | #ifdef __STDC__ |
| 7857 | # include <limits.h> |
| 7858 | #else |
| 7859 | # include <assert.h> |
| 7860 | #endif |
| 7861 | Syntax error |
| 7862 | _ACEOF |
| 7863 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7864 | |
| 7865 | else |
| 7866 | # Broken: fails on valid input. |
| 7867 | continue |
| 7868 | fi |
| 7869 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7870 | |
| 7871 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7872 | # can be detected and how. |
| 7873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7874 | /* end confdefs.h. */ |
| 7875 | #include <ac_nonexistent.h> |
| 7876 | _ACEOF |
| 7877 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7878 | # Broken: success on invalid input. |
| 7879 | continue |
| 7880 | else |
| 7881 | # Passes both tests. |
| 7882 | ac_preproc_ok=: |
| 7883 | break |
| 7884 | fi |
| 7885 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7886 | |
| 7887 | done |
| 7888 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7889 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7890 | if $ac_preproc_ok; then : |
| 7891 | |
| 7892 | else |
| 7893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7895 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7896 | See \`config.log' for more details" "$LINENO" 5; } |
| 7897 | fi |
| 7898 | |
| 7899 | ac_ext=c |
| 7900 | ac_cpp='$CPP $CPPFLAGS' |
| 7901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7904 | |
| 7905 | |
| 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7907 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7908 | if ${ac_cv_header_stdc+:} false; then : |
| 7909 | $as_echo_n "(cached) " >&6 |
| 7910 | else |
| 7911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7912 | /* end confdefs.h. */ |
| 7913 | #include <stdlib.h> |
| 7914 | #include <stdarg.h> |
| 7915 | #include <string.h> |
| 7916 | #include <float.h> |
| 7917 | |
| 7918 | int |
| 7919 | main () |
| 7920 | { |
| 7921 | |
| 7922 | ; |
| 7923 | return 0; |
| 7924 | } |
| 7925 | _ACEOF |
| 7926 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7927 | ac_cv_header_stdc=yes |
| 7928 | else |
| 7929 | ac_cv_header_stdc=no |
| 7930 | fi |
| 7931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7932 | |
| 7933 | if test $ac_cv_header_stdc = yes; then |
| 7934 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7936 | /* end confdefs.h. */ |
| 7937 | #include <string.h> |
| 7938 | |
| 7939 | _ACEOF |
| 7940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7941 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7942 | |
| 7943 | else |
| 7944 | ac_cv_header_stdc=no |
| 7945 | fi |
| 7946 | rm -f conftest* |
| 7947 | |
| 7948 | fi |
| 7949 | |
| 7950 | if test $ac_cv_header_stdc = yes; then |
| 7951 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7953 | /* end confdefs.h. */ |
| 7954 | #include <stdlib.h> |
| 7955 | |
| 7956 | _ACEOF |
| 7957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7958 | $EGREP "free" >/dev/null 2>&1; then : |
| 7959 | |
| 7960 | else |
| 7961 | ac_cv_header_stdc=no |
| 7962 | fi |
| 7963 | rm -f conftest* |
| 7964 | |
| 7965 | fi |
| 7966 | |
| 7967 | if test $ac_cv_header_stdc = yes; then |
| 7968 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7969 | if test "$cross_compiling" = yes; then : |
| 7970 | : |
| 7971 | else |
| 7972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7973 | /* end confdefs.h. */ |
| 7974 | #include <ctype.h> |
| 7975 | #include <stdlib.h> |
| 7976 | #if ((' ' & 0x0FF) == 0x020) |
| 7977 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7978 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7979 | #else |
| 7980 | # define ISLOWER(c) \ |
| 7981 | (('a' <= (c) && (c) <= 'i') \ |
| 7982 | || ('j' <= (c) && (c) <= 'r') \ |
| 7983 | || ('s' <= (c) && (c) <= 'z')) |
| 7984 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7985 | #endif |
| 7986 | |
| 7987 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7988 | int |
| 7989 | main () |
| 7990 | { |
| 7991 | int i; |
| 7992 | for (i = 0; i < 256; i++) |
| 7993 | if (XOR (islower (i), ISLOWER (i)) |
| 7994 | || toupper (i) != TOUPPER (i)) |
| 7995 | return 2; |
| 7996 | return 0; |
| 7997 | } |
| 7998 | _ACEOF |
| 7999 | if ac_fn_c_try_run "$LINENO"; then : |
| 8000 | |
| 8001 | else |
| 8002 | ac_cv_header_stdc=no |
| 8003 | fi |
| 8004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8005 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8006 | fi |
| 8007 | |
| 8008 | fi |
| 8009 | fi |
| 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 8011 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 8012 | if test $ac_cv_header_stdc = yes; then |
| 8013 | |
| 8014 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 8015 | |
| 8016 | fi |
| 8017 | |
| 8018 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8019 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 8020 | inttypes.h stdint.h unistd.h |
| 8021 | do : |
| 8022 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8023 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8024 | " |
| 8025 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8026 | cat >>confdefs.h <<_ACEOF |
| 8027 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8028 | _ACEOF |
| 8029 | |
| 8030 | fi |
| 8031 | |
| 8032 | done |
| 8033 | |
| 8034 | |
| 8035 | for ac_header in dlfcn.h |
| 8036 | do : |
| 8037 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 8038 | " |
| 8039 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 8040 | cat >>confdefs.h <<_ACEOF |
| 8041 | #define HAVE_DLFCN_H 1 |
| 8042 | _ACEOF |
| 8043 | |
| 8044 | fi |
| 8045 | |
| 8046 | done |
| 8047 | |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | # Set options |
| 8053 | |
| 8054 | |
| 8055 | |
| 8056 | enable_dlopen=no |
| 8057 | |
| 8058 | |
| 8059 | enable_win32_dll=no |
| 8060 | |
| 8061 | |
| 8062 | # Check whether --enable-shared was given. |
| 8063 | if test "${enable_shared+set}" = set; then : |
| 8064 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8065 | case $enableval in |
| 8066 | yes) enable_shared=yes ;; |
| 8067 | no) enable_shared=no ;; |
| 8068 | *) |
| 8069 | enable_shared=no |
| 8070 | # Look at the argument we got. We use all the common list separators. |
| 8071 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8072 | for pkg in $enableval; do |
| 8073 | IFS="$lt_save_ifs" |
| 8074 | if test "X$pkg" = "X$p"; then |
| 8075 | enable_shared=yes |
| 8076 | fi |
| 8077 | done |
| 8078 | IFS="$lt_save_ifs" |
| 8079 | ;; |
| 8080 | esac |
| 8081 | else |
| 8082 | enable_shared=yes |
| 8083 | fi |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | # Check whether --enable-static was given. |
| 8094 | if test "${enable_static+set}" = set; then : |
| 8095 | enableval=$enable_static; p=${PACKAGE-default} |
| 8096 | case $enableval in |
| 8097 | yes) enable_static=yes ;; |
| 8098 | no) enable_static=no ;; |
| 8099 | *) |
| 8100 | enable_static=no |
| 8101 | # Look at the argument we got. We use all the common list separators. |
| 8102 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8103 | for pkg in $enableval; do |
| 8104 | IFS="$lt_save_ifs" |
| 8105 | if test "X$pkg" = "X$p"; then |
| 8106 | enable_static=yes |
| 8107 | fi |
| 8108 | done |
| 8109 | IFS="$lt_save_ifs" |
| 8110 | ;; |
| 8111 | esac |
| 8112 | else |
| 8113 | enable_static=yes |
| 8114 | fi |
| 8115 | |
| 8116 | |
| 8117 | |
| 8118 | |
| 8119 | |
| 8120 | |
| 8121 | |
| 8122 | |
| 8123 | |
| 8124 | |
| 8125 | # Check whether --with-pic was given. |
| 8126 | if test "${with_pic+set}" = set; then : |
| 8127 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 8128 | case $withval in |
| 8129 | yes|no) pic_mode=$withval ;; |
| 8130 | *) |
| 8131 | pic_mode=default |
| 8132 | # Look at the argument we got. We use all the common list separators. |
| 8133 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8134 | for lt_pkg in $withval; do |
| 8135 | IFS="$lt_save_ifs" |
| 8136 | if test "X$lt_pkg" = "X$lt_p"; then |
| 8137 | pic_mode=yes |
| 8138 | fi |
| 8139 | done |
| 8140 | IFS="$lt_save_ifs" |
| 8141 | ;; |
| 8142 | esac |
| 8143 | else |
| 8144 | pic_mode=default |
| 8145 | fi |
| 8146 | |
| 8147 | |
| 8148 | test -z "$pic_mode" && pic_mode=default |
| 8149 | |
| 8150 | |
| 8151 | |
| 8152 | |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | # Check whether --enable-fast-install was given. |
| 8157 | if test "${enable_fast_install+set}" = set; then : |
| 8158 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8159 | case $enableval in |
| 8160 | yes) enable_fast_install=yes ;; |
| 8161 | no) enable_fast_install=no ;; |
| 8162 | *) |
| 8163 | enable_fast_install=no |
| 8164 | # Look at the argument we got. We use all the common list separators. |
| 8165 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8166 | for pkg in $enableval; do |
| 8167 | IFS="$lt_save_ifs" |
| 8168 | if test "X$pkg" = "X$p"; then |
| 8169 | enable_fast_install=yes |
| 8170 | fi |
| 8171 | done |
| 8172 | IFS="$lt_save_ifs" |
| 8173 | ;; |
| 8174 | esac |
| 8175 | else |
| 8176 | enable_fast_install=yes |
| 8177 | fi |
| 8178 | |
| 8179 | |
| 8180 | |
| 8181 | |
| 8182 | |
| 8183 | |
| 8184 | |
| 8185 | |
| 8186 | |
| 8187 | |
| 8188 | |
| 8189 | # This can be used to rebuild libtool when needed |
| 8190 | LIBTOOL_DEPS="$ltmain" |
| 8191 | |
| 8192 | # Always use our own libtool. |
| 8193 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8194 | |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | |
| 8221 | |
| 8222 | |
| 8223 | |
| 8224 | test -z "$LN_S" && LN_S="ln -s" |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | |
| 8239 | if test -n "${ZSH_VERSION+set}" ; then |
| 8240 | setopt NO_GLOB_SUBST |
| 8241 | fi |
| 8242 | |
| 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8244 | $as_echo_n "checking for objdir... " >&6; } |
| 8245 | if ${lt_cv_objdir+:} false; then : |
| 8246 | $as_echo_n "(cached) " >&6 |
| 8247 | else |
| 8248 | rm -f .libs 2>/dev/null |
| 8249 | mkdir .libs 2>/dev/null |
| 8250 | if test -d .libs; then |
| 8251 | lt_cv_objdir=.libs |
| 8252 | else |
| 8253 | # MS-DOS does not allow filenames that begin with a dot. |
| 8254 | lt_cv_objdir=_libs |
| 8255 | fi |
| 8256 | rmdir .libs 2>/dev/null |
| 8257 | fi |
| 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8259 | $as_echo "$lt_cv_objdir" >&6; } |
| 8260 | objdir=$lt_cv_objdir |
| 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | |
| 8266 | cat >>confdefs.h <<_ACEOF |
| 8267 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8268 | _ACEOF |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | case $host_os in |
| 8274 | aix3*) |
| 8275 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8276 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8277 | # vanish in a puff of smoke. |
| 8278 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8279 | COLLECT_NAMES= |
| 8280 | export COLLECT_NAMES |
| 8281 | fi |
| 8282 | ;; |
| 8283 | esac |
| 8284 | |
| 8285 | # Global variables: |
| 8286 | ofile=libtool |
| 8287 | can_build_shared=yes |
| 8288 | |
| 8289 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8290 | # which needs '.lib'). |
| 8291 | libext=a |
| 8292 | |
| 8293 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8294 | |
| 8295 | old_CC="$CC" |
| 8296 | old_CFLAGS="$CFLAGS" |
| 8297 | |
| 8298 | # Set sane defaults for various variables |
| 8299 | test -z "$CC" && CC=cc |
| 8300 | test -z "$LTCC" && LTCC=$CC |
| 8301 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8302 | test -z "$LD" && LD=ld |
| 8303 | test -z "$ac_objext" && ac_objext=o |
| 8304 | |
| 8305 | for cc_temp in $compiler""; do |
| 8306 | case $cc_temp in |
| 8307 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8308 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8309 | \-*) ;; |
| 8310 | *) break;; |
| 8311 | esac |
| 8312 | done |
| 8313 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8314 | |
| 8315 | |
| 8316 | # Only perform the check for file, if the check method requires it |
| 8317 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8318 | case $deplibs_check_method in |
| 8319 | file_magic*) |
| 8320 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8322 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8323 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8324 | $as_echo_n "(cached) " >&6 |
| 8325 | else |
| 8326 | case $MAGIC_CMD in |
| 8327 | [\\/*] | ?:[\\/]*) |
| 8328 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8329 | ;; |
| 8330 | *) |
| 8331 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8332 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8333 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8334 | for ac_dir in $ac_dummy; do |
| 8335 | IFS="$lt_save_ifs" |
| 8336 | test -z "$ac_dir" && ac_dir=. |
| 8337 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8338 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8339 | if test -n "$file_magic_test_file"; then |
| 8340 | case $deplibs_check_method in |
| 8341 | "file_magic "*) |
| 8342 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8343 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8344 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8345 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8346 | : |
| 8347 | else |
| 8348 | cat <<_LT_EOF 1>&2 |
| 8349 | |
| 8350 | *** Warning: the command libtool uses to detect shared libraries, |
| 8351 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8352 | *** The result is that libtool may fail to recognize shared libraries |
| 8353 | *** as such. This will affect the creation of libtool libraries that |
| 8354 | *** depend on shared libraries, but programs linked with such libtool |
| 8355 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8356 | *** may want to report the problem to your system manager and/or to |
| 8357 | *** bug-libtool@gnu.org |
| 8358 | |
| 8359 | _LT_EOF |
| 8360 | fi ;; |
| 8361 | esac |
| 8362 | fi |
| 8363 | break |
| 8364 | fi |
| 8365 | done |
| 8366 | IFS="$lt_save_ifs" |
| 8367 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8368 | ;; |
| 8369 | esac |
| 8370 | fi |
| 8371 | |
| 8372 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8373 | if test -n "$MAGIC_CMD"; then |
| 8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8375 | $as_echo "$MAGIC_CMD" >&6; } |
| 8376 | else |
| 8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8378 | $as_echo "no" >&6; } |
| 8379 | fi |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8386 | if test -n "$ac_tool_prefix"; then |
| 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8388 | $as_echo_n "checking for file... " >&6; } |
| 8389 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8390 | $as_echo_n "(cached) " >&6 |
| 8391 | else |
| 8392 | case $MAGIC_CMD in |
| 8393 | [\\/*] | ?:[\\/]*) |
| 8394 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8395 | ;; |
| 8396 | *) |
| 8397 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8398 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8399 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8400 | for ac_dir in $ac_dummy; do |
| 8401 | IFS="$lt_save_ifs" |
| 8402 | test -z "$ac_dir" && ac_dir=. |
| 8403 | if test -f $ac_dir/file; then |
| 8404 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8405 | if test -n "$file_magic_test_file"; then |
| 8406 | case $deplibs_check_method in |
| 8407 | "file_magic "*) |
| 8408 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8409 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8410 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8411 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8412 | : |
| 8413 | else |
| 8414 | cat <<_LT_EOF 1>&2 |
| 8415 | |
| 8416 | *** Warning: the command libtool uses to detect shared libraries, |
| 8417 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8418 | *** The result is that libtool may fail to recognize shared libraries |
| 8419 | *** as such. This will affect the creation of libtool libraries that |
| 8420 | *** depend on shared libraries, but programs linked with such libtool |
| 8421 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8422 | *** may want to report the problem to your system manager and/or to |
| 8423 | *** bug-libtool@gnu.org |
| 8424 | |
| 8425 | _LT_EOF |
| 8426 | fi ;; |
| 8427 | esac |
| 8428 | fi |
| 8429 | break |
| 8430 | fi |
| 8431 | done |
| 8432 | IFS="$lt_save_ifs" |
| 8433 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8434 | ;; |
| 8435 | esac |
| 8436 | fi |
| 8437 | |
| 8438 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8439 | if test -n "$MAGIC_CMD"; then |
| 8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8441 | $as_echo "$MAGIC_CMD" >&6; } |
| 8442 | else |
| 8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8444 | $as_echo "no" >&6; } |
| 8445 | fi |
| 8446 | |
| 8447 | |
| 8448 | else |
| 8449 | MAGIC_CMD=: |
| 8450 | fi |
| 8451 | fi |
| 8452 | |
| 8453 | fi |
| 8454 | ;; |
| 8455 | esac |
| 8456 | |
| 8457 | # Use C for the default configuration in the libtool script |
| 8458 | |
| 8459 | lt_save_CC="$CC" |
| 8460 | ac_ext=c |
| 8461 | ac_cpp='$CPP $CPPFLAGS' |
| 8462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8465 | |
| 8466 | |
| 8467 | # Source file extension for C test sources. |
| 8468 | ac_ext=c |
| 8469 | |
| 8470 | # Object file extension for compiled C test sources. |
| 8471 | objext=o |
| 8472 | objext=$objext |
| 8473 | |
| 8474 | # Code to be used in simple compile tests |
| 8475 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8476 | |
| 8477 | # Code to be used in simple link tests |
| 8478 | lt_simple_link_test_code='int main(){return(0);}' |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | |
| 8483 | |
| 8484 | |
| 8485 | |
| 8486 | # If no C compiler was specified, use CC. |
| 8487 | LTCC=${LTCC-"$CC"} |
| 8488 | |
| 8489 | # If no C compiler flags were specified, use CFLAGS. |
| 8490 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8491 | |
| 8492 | # Allow CC to be a program name with arguments. |
| 8493 | compiler=$CC |
| 8494 | |
| 8495 | # Save the default compiler, since it gets overwritten when the other |
| 8496 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8497 | compiler_DEFAULT=$CC |
| 8498 | |
| 8499 | # save warnings/boilerplate of simple test code |
| 8500 | ac_outfile=conftest.$ac_objext |
| 8501 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8502 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8503 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8504 | $RM conftest* |
| 8505 | |
| 8506 | ac_outfile=conftest.$ac_objext |
| 8507 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8508 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8509 | _lt_linker_boilerplate=`cat conftest.err` |
| 8510 | $RM -r conftest* |
| 8511 | |
| 8512 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame^] | 8513 | ## CAVEAT EMPTOR: |
| 8514 | ## There is no encapsulation within the following macros, do not change |
| 8515 | ## the running order or otherwise move them around unless you know exactly |
| 8516 | ## what you are doing... |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 8517 | if test -n "$compiler"; then |
| 8518 | |
| 8519 | lt_prog_compiler_no_builtin_flag= |
| 8520 | |
| 8521 | if test "$GCC" = yes; then |
| 8522 | case $cc_basename in |
| 8523 | nvcc*) |
| 8524 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8525 | *) |
| 8526 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8527 | esac |
| 8528 | |
| 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8530 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8531 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8532 | $as_echo_n "(cached) " >&6 |
| 8533 | else |
| 8534 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8535 | ac_outfile=conftest.$ac_objext |
| 8536 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8537 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8538 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8539 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8540 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8541 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8542 | # The option is referenced via a variable to avoid confusing sed. |
| 8543 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8544 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8546 | -e 's:$: $lt_compiler_flag:'` |
| 8547 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8548 | (eval "$lt_compile" 2>conftest.err) |
| 8549 | ac_status=$? |
| 8550 | cat conftest.err >&5 |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8553 | # The compiler can only warn and ignore the option if not recognized |
| 8554 | # So say no if there are warnings other than the usual output. |
| 8555 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8556 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8557 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8558 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8559 | fi |
| 8560 | fi |
| 8561 | $RM conftest* |
| 8562 | |
| 8563 | fi |
| 8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8565 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8566 | |
| 8567 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8568 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8569 | else |
| 8570 | : |
| 8571 | fi |
| 8572 | |
| 8573 | fi |
| 8574 | |
| 8575 | |
| 8576 | |
| 8577 | |
| 8578 | |
| 8579 | |
| 8580 | lt_prog_compiler_wl= |
| 8581 | lt_prog_compiler_pic= |
| 8582 | lt_prog_compiler_static= |
| 8583 | |
| 8584 | |
| 8585 | if test "$GCC" = yes; then |
| 8586 | lt_prog_compiler_wl='-Wl,' |
| 8587 | lt_prog_compiler_static='-static' |
| 8588 | |
| 8589 | case $host_os in |
| 8590 | aix*) |
| 8591 | # All AIX code is PIC. |
| 8592 | if test "$host_cpu" = ia64; then |
| 8593 | # AIX 5 now supports IA64 processor |
| 8594 | lt_prog_compiler_static='-Bstatic' |
| 8595 | fi |
| 8596 | ;; |
| 8597 | |
| 8598 | amigaos*) |
| 8599 | case $host_cpu in |
| 8600 | powerpc) |
| 8601 | # see comment about AmigaOS4 .so support |
| 8602 | lt_prog_compiler_pic='-fPIC' |
| 8603 | ;; |
| 8604 | m68k) |
| 8605 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8606 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8607 | # like `-m68040'. |
| 8608 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8609 | ;; |
| 8610 | esac |
| 8611 | ;; |
| 8612 | |
| 8613 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8614 | # PIC is the default for these OSes. |
| 8615 | ;; |
| 8616 | |
| 8617 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8618 | # This hack is so that the source file can tell whether it is being |
| 8619 | # built for inclusion in a dll (and should export symbols for example). |
| 8620 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8621 | # (--disable-auto-import) libraries |
| 8622 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8623 | ;; |
| 8624 | |
| 8625 | darwin* | rhapsody*) |
| 8626 | # PIC is the default on this platform |
| 8627 | # Common symbols not allowed in MH_DYLIB files |
| 8628 | lt_prog_compiler_pic='-fno-common' |
| 8629 | ;; |
| 8630 | |
| 8631 | haiku*) |
| 8632 | # PIC is the default for Haiku. |
| 8633 | # The "-static" flag exists, but is broken. |
| 8634 | lt_prog_compiler_static= |
| 8635 | ;; |
| 8636 | |
| 8637 | hpux*) |
| 8638 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8639 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8640 | # sets the default TLS model and affects inlining. |
| 8641 | case $host_cpu in |
| 8642 | hppa*64*) |
| 8643 | # +Z the default |
| 8644 | ;; |
| 8645 | *) |
| 8646 | lt_prog_compiler_pic='-fPIC' |
| 8647 | ;; |
| 8648 | esac |
| 8649 | ;; |
| 8650 | |
| 8651 | interix[3-9]*) |
| 8652 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8653 | # Instead, we relocate shared libraries at runtime. |
| 8654 | ;; |
| 8655 | |
| 8656 | msdosdjgpp*) |
| 8657 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8658 | # on systems that don't support them. |
| 8659 | lt_prog_compiler_can_build_shared=no |
| 8660 | enable_shared=no |
| 8661 | ;; |
| 8662 | |
| 8663 | *nto* | *qnx*) |
| 8664 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8665 | # it will coredump. |
| 8666 | lt_prog_compiler_pic='-fPIC -shared' |
| 8667 | ;; |
| 8668 | |
| 8669 | sysv4*MP*) |
| 8670 | if test -d /usr/nec; then |
| 8671 | lt_prog_compiler_pic=-Kconform_pic |
| 8672 | fi |
| 8673 | ;; |
| 8674 | |
| 8675 | *) |
| 8676 | lt_prog_compiler_pic='-fPIC' |
| 8677 | ;; |
| 8678 | esac |
| 8679 | |
| 8680 | case $cc_basename in |
| 8681 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8682 | lt_prog_compiler_wl='-Xlinker ' |
| 8683 | if test -n "$lt_prog_compiler_pic"; then |
| 8684 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8685 | fi |
| 8686 | ;; |
| 8687 | esac |
| 8688 | else |
| 8689 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8690 | case $host_os in |
| 8691 | aix*) |
| 8692 | lt_prog_compiler_wl='-Wl,' |
| 8693 | if test "$host_cpu" = ia64; then |
| 8694 | # AIX 5 now supports IA64 processor |
| 8695 | lt_prog_compiler_static='-Bstatic' |
| 8696 | else |
| 8697 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8698 | fi |
| 8699 | ;; |
| 8700 | |
| 8701 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8702 | # This hack is so that the source file can tell whether it is being |
| 8703 | # built for inclusion in a dll (and should export symbols for example). |
| 8704 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8705 | ;; |
| 8706 | |
| 8707 | hpux9* | hpux10* | hpux11*) |
| 8708 | lt_prog_compiler_wl='-Wl,' |
| 8709 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8710 | # not for PA HP-UX. |
| 8711 | case $host_cpu in |
| 8712 | hppa*64*|ia64*) |
| 8713 | # +Z the default |
| 8714 | ;; |
| 8715 | *) |
| 8716 | lt_prog_compiler_pic='+Z' |
| 8717 | ;; |
| 8718 | esac |
| 8719 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8720 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8721 | ;; |
| 8722 | |
| 8723 | irix5* | irix6* | nonstopux*) |
| 8724 | lt_prog_compiler_wl='-Wl,' |
| 8725 | # PIC (with -KPIC) is the default. |
| 8726 | lt_prog_compiler_static='-non_shared' |
| 8727 | ;; |
| 8728 | |
| 8729 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8730 | case $cc_basename in |
| 8731 | # old Intel for x86_64 which still supported -KPIC. |
| 8732 | ecc*) |
| 8733 | lt_prog_compiler_wl='-Wl,' |
| 8734 | lt_prog_compiler_pic='-KPIC' |
| 8735 | lt_prog_compiler_static='-static' |
| 8736 | ;; |
| 8737 | # icc used to be incompatible with GCC. |
| 8738 | # ICC 10 doesn't accept -KPIC any more. |
| 8739 | icc* | ifort*) |
| 8740 | lt_prog_compiler_wl='-Wl,' |
| 8741 | lt_prog_compiler_pic='-fPIC' |
| 8742 | lt_prog_compiler_static='-static' |
| 8743 | ;; |
| 8744 | # Lahey Fortran 8.1. |
| 8745 | lf95*) |
| 8746 | lt_prog_compiler_wl='-Wl,' |
| 8747 | lt_prog_compiler_pic='--shared' |
| 8748 | lt_prog_compiler_static='--static' |
| 8749 | ;; |
| 8750 | nagfor*) |
| 8751 | # NAG Fortran compiler |
| 8752 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8753 | lt_prog_compiler_pic='-PIC' |
| 8754 | lt_prog_compiler_static='-Bstatic' |
| 8755 | ;; |
| 8756 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8757 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8758 | # which looks to be a dead project) |
| 8759 | lt_prog_compiler_wl='-Wl,' |
| 8760 | lt_prog_compiler_pic='-fpic' |
| 8761 | lt_prog_compiler_static='-Bstatic' |
| 8762 | ;; |
| 8763 | ccc*) |
| 8764 | lt_prog_compiler_wl='-Wl,' |
| 8765 | # All Alpha code is PIC. |
| 8766 | lt_prog_compiler_static='-non_shared' |
| 8767 | ;; |
| 8768 | xl* | bgxl* | bgf* | mpixl*) |
| 8769 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8770 | lt_prog_compiler_wl='-Wl,' |
| 8771 | lt_prog_compiler_pic='-qpic' |
| 8772 | lt_prog_compiler_static='-qstaticlink' |
| 8773 | ;; |
| 8774 | *) |
| 8775 | case `$CC -V 2>&1 | sed 5q` in |
| 8776 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8777 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8778 | lt_prog_compiler_pic='-KPIC' |
| 8779 | lt_prog_compiler_static='-Bstatic' |
| 8780 | lt_prog_compiler_wl='' |
| 8781 | ;; |
| 8782 | *Sun\ F* | *Sun*Fortran*) |
| 8783 | lt_prog_compiler_pic='-KPIC' |
| 8784 | lt_prog_compiler_static='-Bstatic' |
| 8785 | lt_prog_compiler_wl='-Qoption ld ' |
| 8786 | ;; |
| 8787 | *Sun\ C*) |
| 8788 | # Sun C 5.9 |
| 8789 | lt_prog_compiler_pic='-KPIC' |
| 8790 | lt_prog_compiler_static='-Bstatic' |
| 8791 | lt_prog_compiler_wl='-Wl,' |
| 8792 | ;; |
| 8793 | *Intel*\ [CF]*Compiler*) |
| 8794 | lt_prog_compiler_wl='-Wl,' |
| 8795 | lt_prog_compiler_pic='-fPIC' |
| 8796 | lt_prog_compiler_static='-static' |
| 8797 | ;; |
| 8798 | *Portland\ Group*) |
| 8799 | lt_prog_compiler_wl='-Wl,' |
| 8800 | lt_prog_compiler_pic='-fpic' |
| 8801 | lt_prog_compiler_static='-Bstatic' |
| 8802 | ;; |
| 8803 | esac |
| 8804 | ;; |
| 8805 | esac |
| 8806 | ;; |
| 8807 | |
| 8808 | newsos6) |
| 8809 | lt_prog_compiler_pic='-KPIC' |
| 8810 | lt_prog_compiler_static='-Bstatic' |
| 8811 | ;; |
| 8812 | |
| 8813 | *nto* | *qnx*) |
| 8814 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8815 | # it will coredump. |
| 8816 | lt_prog_compiler_pic='-fPIC -shared' |
| 8817 | ;; |
| 8818 | |
| 8819 | osf3* | osf4* | osf5*) |
| 8820 | lt_prog_compiler_wl='-Wl,' |
| 8821 | # All OSF/1 code is PIC. |
| 8822 | lt_prog_compiler_static='-non_shared' |
| 8823 | ;; |
| 8824 | |
| 8825 | rdos*) |
| 8826 | lt_prog_compiler_static='-non_shared' |
| 8827 | ;; |
| 8828 | |
| 8829 | solaris*) |
| 8830 | lt_prog_compiler_pic='-KPIC' |
| 8831 | lt_prog_compiler_static='-Bstatic' |
| 8832 | case $cc_basename in |
| 8833 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8834 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8835 | *) |
| 8836 | lt_prog_compiler_wl='-Wl,';; |
| 8837 | esac |
| 8838 | ;; |
| 8839 | |
| 8840 | sunos4*) |
| 8841 | lt_prog_compiler_wl='-Qoption ld ' |
| 8842 | lt_prog_compiler_pic='-PIC' |
| 8843 | lt_prog_compiler_static='-Bstatic' |
| 8844 | ;; |
| 8845 | |
| 8846 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8847 | lt_prog_compiler_wl='-Wl,' |
| 8848 | lt_prog_compiler_pic='-KPIC' |
| 8849 | lt_prog_compiler_static='-Bstatic' |
| 8850 | ;; |
| 8851 | |
| 8852 | sysv4*MP*) |
| 8853 | if test -d /usr/nec ;then |
| 8854 | lt_prog_compiler_pic='-Kconform_pic' |
| 8855 | lt_prog_compiler_static='-Bstatic' |
| 8856 | fi |
| 8857 | ;; |
| 8858 | |
| 8859 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8860 | lt_prog_compiler_wl='-Wl,' |
| 8861 | lt_prog_compiler_pic='-KPIC' |
| 8862 | lt_prog_compiler_static='-Bstatic' |
| 8863 | ;; |
| 8864 | |
| 8865 | unicos*) |
| 8866 | lt_prog_compiler_wl='-Wl,' |
| 8867 | lt_prog_compiler_can_build_shared=no |
| 8868 | ;; |
| 8869 | |
| 8870 | uts4*) |
| 8871 | lt_prog_compiler_pic='-pic' |
| 8872 | lt_prog_compiler_static='-Bstatic' |
| 8873 | ;; |
| 8874 | |
| 8875 | *) |
| 8876 | lt_prog_compiler_can_build_shared=no |
| 8877 | ;; |
| 8878 | esac |
| 8879 | fi |
| 8880 | |
| 8881 | case $host_os in |
| 8882 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8883 | *djgpp*) |
| 8884 | lt_prog_compiler_pic= |
| 8885 | ;; |
| 8886 | *) |
| 8887 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8888 | ;; |
| 8889 | esac |
| 8890 | |
| 8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8892 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8893 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8894 | $as_echo_n "(cached) " >&6 |
| 8895 | else |
| 8896 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8897 | fi |
| 8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8899 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8900 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8901 | |
| 8902 | # |
| 8903 | # Check to make sure the PIC flag actually works. |
| 8904 | # |
| 8905 | if test -n "$lt_prog_compiler_pic"; then |
| 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8907 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8908 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8909 | $as_echo_n "(cached) " >&6 |
| 8910 | else |
| 8911 | lt_cv_prog_compiler_pic_works=no |
| 8912 | ac_outfile=conftest.$ac_objext |
| 8913 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8914 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8915 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8916 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8917 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8918 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8919 | # The option is referenced via a variable to avoid confusing sed. |
| 8920 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8921 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8922 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8923 | -e 's:$: $lt_compiler_flag:'` |
| 8924 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8925 | (eval "$lt_compile" 2>conftest.err) |
| 8926 | ac_status=$? |
| 8927 | cat conftest.err >&5 |
| 8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8929 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8930 | # The compiler can only warn and ignore the option if not recognized |
| 8931 | # So say no if there are warnings other than the usual output. |
| 8932 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8933 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8934 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8935 | lt_cv_prog_compiler_pic_works=yes |
| 8936 | fi |
| 8937 | fi |
| 8938 | $RM conftest* |
| 8939 | |
| 8940 | fi |
| 8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8942 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8943 | |
| 8944 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8945 | case $lt_prog_compiler_pic in |
| 8946 | "" | " "*) ;; |
| 8947 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8948 | esac |
| 8949 | else |
| 8950 | lt_prog_compiler_pic= |
| 8951 | lt_prog_compiler_can_build_shared=no |
| 8952 | fi |
| 8953 | |
| 8954 | fi |
| 8955 | |
| 8956 | |
| 8957 | |
| 8958 | |
| 8959 | |
| 8960 | |
| 8961 | |
| 8962 | |
| 8963 | |
| 8964 | |
| 8965 | |
| 8966 | # |
| 8967 | # Check to make sure the static flag actually works. |
| 8968 | # |
| 8969 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8971 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8972 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8973 | $as_echo_n "(cached) " >&6 |
| 8974 | else |
| 8975 | lt_cv_prog_compiler_static_works=no |
| 8976 | save_LDFLAGS="$LDFLAGS" |
| 8977 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8978 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8979 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8980 | # The linker can only warn and ignore the option if not recognized |
| 8981 | # So say no if there are warnings |
| 8982 | if test -s conftest.err; then |
| 8983 | # Append any errors to the config.log. |
| 8984 | cat conftest.err 1>&5 |
| 8985 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8986 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8987 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8988 | lt_cv_prog_compiler_static_works=yes |
| 8989 | fi |
| 8990 | else |
| 8991 | lt_cv_prog_compiler_static_works=yes |
| 8992 | fi |
| 8993 | fi |
| 8994 | $RM -r conftest* |
| 8995 | LDFLAGS="$save_LDFLAGS" |
| 8996 | |
| 8997 | fi |
| 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8999 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9000 | |
| 9001 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9002 | : |
| 9003 | else |
| 9004 | lt_prog_compiler_static= |
| 9005 | fi |
| 9006 | |
| 9007 | |
| 9008 | |
| 9009 | |
| 9010 | |
| 9011 | |
| 9012 | |
| 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9014 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9015 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9016 | $as_echo_n "(cached) " >&6 |
| 9017 | else |
| 9018 | lt_cv_prog_compiler_c_o=no |
| 9019 | $RM -r conftest 2>/dev/null |
| 9020 | mkdir conftest |
| 9021 | cd conftest |
| 9022 | mkdir out |
| 9023 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9024 | |
| 9025 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9026 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9027 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9028 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9029 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9030 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9031 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9032 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9033 | -e 's:$: $lt_compiler_flag:'` |
| 9034 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9035 | (eval "$lt_compile" 2>out/conftest.err) |
| 9036 | ac_status=$? |
| 9037 | cat out/conftest.err >&5 |
| 9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9039 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9040 | then |
| 9041 | # The compiler can only warn and ignore the option if not recognized |
| 9042 | # So say no if there are warnings |
| 9043 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9044 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9045 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9046 | lt_cv_prog_compiler_c_o=yes |
| 9047 | fi |
| 9048 | fi |
| 9049 | chmod u+w . 2>&5 |
| 9050 | $RM conftest* |
| 9051 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9052 | # template instantiation |
| 9053 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9054 | $RM out/* && rmdir out |
| 9055 | cd .. |
| 9056 | $RM -r conftest |
| 9057 | $RM conftest* |
| 9058 | |
| 9059 | fi |
| 9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9061 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9062 | |
| 9063 | |
| 9064 | |
| 9065 | |
| 9066 | |
| 9067 | |
| 9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9069 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9070 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9071 | $as_echo_n "(cached) " >&6 |
| 9072 | else |
| 9073 | lt_cv_prog_compiler_c_o=no |
| 9074 | $RM -r conftest 2>/dev/null |
| 9075 | mkdir conftest |
| 9076 | cd conftest |
| 9077 | mkdir out |
| 9078 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9079 | |
| 9080 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9081 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9082 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9083 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9084 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9085 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9086 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9087 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9088 | -e 's:$: $lt_compiler_flag:'` |
| 9089 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9090 | (eval "$lt_compile" 2>out/conftest.err) |
| 9091 | ac_status=$? |
| 9092 | cat out/conftest.err >&5 |
| 9093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9094 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9095 | then |
| 9096 | # The compiler can only warn and ignore the option if not recognized |
| 9097 | # So say no if there are warnings |
| 9098 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9099 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9100 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9101 | lt_cv_prog_compiler_c_o=yes |
| 9102 | fi |
| 9103 | fi |
| 9104 | chmod u+w . 2>&5 |
| 9105 | $RM conftest* |
| 9106 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9107 | # template instantiation |
| 9108 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9109 | $RM out/* && rmdir out |
| 9110 | cd .. |
| 9111 | $RM -r conftest |
| 9112 | $RM conftest* |
| 9113 | |
| 9114 | fi |
| 9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9116 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9117 | |
| 9118 | |
| 9119 | |
| 9120 | |
| 9121 | hard_links="nottested" |
| 9122 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9123 | # do not overwrite the value of need_locks provided by the user |
| 9124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9125 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9126 | hard_links=yes |
| 9127 | $RM conftest* |
| 9128 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9129 | touch conftest.a |
| 9130 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9131 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9133 | $as_echo "$hard_links" >&6; } |
| 9134 | if test "$hard_links" = no; then |
| 9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9136 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9137 | need_locks=warn |
| 9138 | fi |
| 9139 | else |
| 9140 | need_locks=no |
| 9141 | fi |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9149 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9150 | |
| 9151 | runpath_var= |
| 9152 | allow_undefined_flag= |
| 9153 | always_export_symbols=no |
| 9154 | archive_cmds= |
| 9155 | archive_expsym_cmds= |
| 9156 | compiler_needs_object=no |
| 9157 | enable_shared_with_static_runtimes=no |
| 9158 | export_dynamic_flag_spec= |
| 9159 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9160 | hardcode_automatic=no |
| 9161 | hardcode_direct=no |
| 9162 | hardcode_direct_absolute=no |
| 9163 | hardcode_libdir_flag_spec= |
| 9164 | hardcode_libdir_separator= |
| 9165 | hardcode_minus_L=no |
| 9166 | hardcode_shlibpath_var=unsupported |
| 9167 | inherit_rpath=no |
| 9168 | link_all_deplibs=unknown |
| 9169 | module_cmds= |
| 9170 | module_expsym_cmds= |
| 9171 | old_archive_from_new_cmds= |
| 9172 | old_archive_from_expsyms_cmds= |
| 9173 | thread_safe_flag_spec= |
| 9174 | whole_archive_flag_spec= |
| 9175 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9176 | # included in the symbol list |
| 9177 | include_expsyms= |
| 9178 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9179 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9180 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9181 | # as well as any symbol that contains `d'. |
| 9182 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9183 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9184 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9185 | # the symbol is explicitly referenced. Since portable code cannot |
| 9186 | # rely on this symbol name, it's probably fine to never include it in |
| 9187 | # preloaded symbol tables. |
| 9188 | # Exclude shared library initialization/finalization symbols. |
| 9189 | extract_expsyms_cmds= |
| 9190 | |
| 9191 | case $host_os in |
| 9192 | cygwin* | mingw* | pw32* | cegcc*) |
| 9193 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9194 | # When not using gcc, we currently assume that we are using |
| 9195 | # Microsoft Visual C++. |
| 9196 | if test "$GCC" != yes; then |
| 9197 | with_gnu_ld=no |
| 9198 | fi |
| 9199 | ;; |
| 9200 | interix*) |
| 9201 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9202 | with_gnu_ld=yes |
| 9203 | ;; |
| 9204 | openbsd*) |
| 9205 | with_gnu_ld=no |
| 9206 | ;; |
| 9207 | esac |
| 9208 | |
| 9209 | ld_shlibs=yes |
| 9210 | |
| 9211 | # On some targets, GNU ld is compatible enough with the native linker |
| 9212 | # that we're better off using the native interface for both. |
| 9213 | lt_use_gnu_ld_interface=no |
| 9214 | if test "$with_gnu_ld" = yes; then |
| 9215 | case $host_os in |
| 9216 | aix*) |
| 9217 | # The AIX port of GNU ld has always aspired to compatibility |
| 9218 | # with the native linker. However, as the warning in the GNU ld |
| 9219 | # block says, versions before 2.19.5* couldn't really create working |
| 9220 | # shared libraries, regardless of the interface used. |
| 9221 | case `$LD -v 2>&1` in |
| 9222 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9223 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9224 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9225 | *) |
| 9226 | lt_use_gnu_ld_interface=yes |
| 9227 | ;; |
| 9228 | esac |
| 9229 | ;; |
| 9230 | *) |
| 9231 | lt_use_gnu_ld_interface=yes |
| 9232 | ;; |
| 9233 | esac |
| 9234 | fi |
| 9235 | |
| 9236 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 9237 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9238 | wlarc='${wl}' |
| 9239 | |
| 9240 | # Set some defaults for GNU ld with shared library support. These |
| 9241 | # are reset later if shared libraries are not supported. Putting them |
| 9242 | # here allows them to be overridden if necessary. |
| 9243 | runpath_var=LD_RUN_PATH |
| 9244 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9245 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9246 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9247 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9248 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9249 | else |
| 9250 | whole_archive_flag_spec= |
| 9251 | fi |
| 9252 | supports_anon_versioning=no |
| 9253 | case `$LD -v 2>&1` in |
| 9254 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9255 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9256 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9257 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9258 | *\ 2.11.*) ;; # other 2.11 versions |
| 9259 | *) supports_anon_versioning=yes ;; |
| 9260 | esac |
| 9261 | |
| 9262 | # See if GNU ld supports shared libraries. |
| 9263 | case $host_os in |
| 9264 | aix[3-9]*) |
| 9265 | # On AIX/PPC, the GNU linker is very broken |
| 9266 | if test "$host_cpu" != ia64; then |
| 9267 | ld_shlibs=no |
| 9268 | cat <<_LT_EOF 1>&2 |
| 9269 | |
| 9270 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9271 | *** to be unable to reliably create shared libraries on AIX. |
| 9272 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9273 | *** really care for shared libraries, you may want to install binutils |
| 9274 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9275 | *** You will then need to restart the configuration process. |
| 9276 | |
| 9277 | _LT_EOF |
| 9278 | fi |
| 9279 | ;; |
| 9280 | |
| 9281 | amigaos*) |
| 9282 | case $host_cpu in |
| 9283 | powerpc) |
| 9284 | # see comment about AmigaOS4 .so support |
| 9285 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9286 | archive_expsym_cmds='' |
| 9287 | ;; |
| 9288 | m68k) |
| 9289 | 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)' |
| 9290 | hardcode_libdir_flag_spec='-L$libdir' |
| 9291 | hardcode_minus_L=yes |
| 9292 | ;; |
| 9293 | esac |
| 9294 | ;; |
| 9295 | |
| 9296 | beos*) |
| 9297 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9298 | allow_undefined_flag=unsupported |
| 9299 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9300 | # support --undefined. This deserves some investigation. FIXME |
| 9301 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9302 | else |
| 9303 | ld_shlibs=no |
| 9304 | fi |
| 9305 | ;; |
| 9306 | |
| 9307 | cygwin* | mingw* | pw32* | cegcc*) |
| 9308 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9309 | # as there is no search path for DLLs. |
| 9310 | hardcode_libdir_flag_spec='-L$libdir' |
| 9311 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9312 | allow_undefined_flag=unsupported |
| 9313 | always_export_symbols=no |
| 9314 | enable_shared_with_static_runtimes=yes |
| 9315 | 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' |
| 9316 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9317 | |
| 9318 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9319 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9320 | # If the export-symbols file already is a .def file (1st line |
| 9321 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9322 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9323 | cp $export_symbols $output_objdir/$soname.def; |
| 9324 | else |
| 9325 | echo EXPORTS > $output_objdir/$soname.def; |
| 9326 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9327 | fi~ |
| 9328 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9329 | else |
| 9330 | ld_shlibs=no |
| 9331 | fi |
| 9332 | ;; |
| 9333 | |
| 9334 | haiku*) |
| 9335 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9336 | link_all_deplibs=yes |
| 9337 | ;; |
| 9338 | |
| 9339 | interix[3-9]*) |
| 9340 | hardcode_direct=no |
| 9341 | hardcode_shlibpath_var=no |
| 9342 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9343 | export_dynamic_flag_spec='${wl}-E' |
| 9344 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9345 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9346 | # default) and relocated if they conflict, which is a slow very memory |
| 9347 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9348 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9349 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9350 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9351 | 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' |
| 9352 | ;; |
| 9353 | |
| 9354 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9355 | tmp_diet=no |
| 9356 | if test "$host_os" = linux-dietlibc; then |
| 9357 | case $cc_basename in |
| 9358 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9359 | esac |
| 9360 | fi |
| 9361 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9362 | && test "$tmp_diet" = no |
| 9363 | then |
| 9364 | tmp_addflag=' $pic_flag' |
| 9365 | tmp_sharedflag='-shared' |
| 9366 | case $cc_basename,$host_cpu in |
| 9367 | pgcc*) # Portland Group C compiler |
| 9368 | 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' |
| 9369 | tmp_addflag=' $pic_flag' |
| 9370 | ;; |
| 9371 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9372 | # Portland Group f77 and f90 compilers |
| 9373 | 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' |
| 9374 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9375 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9376 | tmp_addflag=' -i_dynamic' ;; |
| 9377 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9378 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9379 | ifc* | ifort*) # Intel Fortran compiler |
| 9380 | tmp_addflag=' -nofor_main' ;; |
| 9381 | lf95*) # Lahey Fortran 8.1 |
| 9382 | whole_archive_flag_spec= |
| 9383 | tmp_sharedflag='--shared' ;; |
| 9384 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9385 | tmp_sharedflag='-qmkshrobj' |
| 9386 | tmp_addflag= ;; |
| 9387 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9388 | 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' |
| 9389 | compiler_needs_object=yes |
| 9390 | ;; |
| 9391 | esac |
| 9392 | case `$CC -V 2>&1 | sed 5q` in |
| 9393 | *Sun\ C*) # Sun C 5.9 |
| 9394 | 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' |
| 9395 | compiler_needs_object=yes |
| 9396 | tmp_sharedflag='-G' ;; |
| 9397 | *Sun\ F*) # Sun Fortran 8.3 |
| 9398 | tmp_sharedflag='-G' ;; |
| 9399 | esac |
| 9400 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9401 | |
| 9402 | if test "x$supports_anon_versioning" = xyes; then |
| 9403 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9404 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9405 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9406 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9407 | fi |
| 9408 | |
| 9409 | case $cc_basename in |
| 9410 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9411 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9412 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9413 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9414 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9415 | if test "x$supports_anon_versioning" = xyes; then |
| 9416 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9417 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9418 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9419 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9420 | fi |
| 9421 | ;; |
| 9422 | esac |
| 9423 | else |
| 9424 | ld_shlibs=no |
| 9425 | fi |
| 9426 | ;; |
| 9427 | |
| 9428 | netbsd*) |
| 9429 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9430 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9431 | wlarc= |
| 9432 | else |
| 9433 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9434 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9435 | fi |
| 9436 | ;; |
| 9437 | |
| 9438 | solaris*) |
| 9439 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9440 | ld_shlibs=no |
| 9441 | cat <<_LT_EOF 1>&2 |
| 9442 | |
| 9443 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9444 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9445 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9446 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9447 | *** your PATH or compiler configuration so that the native linker is |
| 9448 | *** used, and then restart. |
| 9449 | |
| 9450 | _LT_EOF |
| 9451 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9452 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9453 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9454 | else |
| 9455 | ld_shlibs=no |
| 9456 | fi |
| 9457 | ;; |
| 9458 | |
| 9459 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9460 | case `$LD -v 2>&1` in |
| 9461 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9462 | ld_shlibs=no |
| 9463 | cat <<_LT_EOF 1>&2 |
| 9464 | |
| 9465 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9466 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9467 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9468 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9469 | *** your PATH or compiler configuration so that the native linker is |
| 9470 | *** used, and then restart. |
| 9471 | |
| 9472 | _LT_EOF |
| 9473 | ;; |
| 9474 | *) |
| 9475 | # For security reasons, it is highly recommended that you always |
| 9476 | # use absolute paths for naming shared libraries, and exclude the |
| 9477 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9478 | # requires that you compile everything twice, which is a pain. |
| 9479 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9480 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9481 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9482 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9483 | else |
| 9484 | ld_shlibs=no |
| 9485 | fi |
| 9486 | ;; |
| 9487 | esac |
| 9488 | ;; |
| 9489 | |
| 9490 | sunos4*) |
| 9491 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9492 | wlarc= |
| 9493 | hardcode_direct=yes |
| 9494 | hardcode_shlibpath_var=no |
| 9495 | ;; |
| 9496 | |
| 9497 | *) |
| 9498 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9499 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9500 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9501 | else |
| 9502 | ld_shlibs=no |
| 9503 | fi |
| 9504 | ;; |
| 9505 | esac |
| 9506 | |
| 9507 | if test "$ld_shlibs" = no; then |
| 9508 | runpath_var= |
| 9509 | hardcode_libdir_flag_spec= |
| 9510 | export_dynamic_flag_spec= |
| 9511 | whole_archive_flag_spec= |
| 9512 | fi |
| 9513 | else |
| 9514 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9515 | case $host_os in |
| 9516 | aix3*) |
| 9517 | allow_undefined_flag=unsupported |
| 9518 | always_export_symbols=yes |
| 9519 | 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' |
| 9520 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9521 | # are no directories specified by -L. |
| 9522 | hardcode_minus_L=yes |
| 9523 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9524 | # Neither direct hardcoding nor static linking is supported with a |
| 9525 | # broken collect2. |
| 9526 | hardcode_direct=unsupported |
| 9527 | fi |
| 9528 | ;; |
| 9529 | |
| 9530 | aix[4-9]*) |
| 9531 | if test "$host_cpu" = ia64; then |
| 9532 | # On IA64, the linker does run time linking by default, so we don't |
| 9533 | # have to do anything special. |
| 9534 | aix_use_runtimelinking=no |
| 9535 | exp_sym_flag='-Bexport' |
| 9536 | no_entry_flag="" |
| 9537 | else |
| 9538 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9539 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9540 | # Also, AIX nm treats weak defined symbols like other global |
| 9541 | # defined symbols, whereas GNU nm marks them as "W". |
| 9542 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9543 | 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' |
| 9544 | else |
| 9545 | 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' |
| 9546 | fi |
| 9547 | aix_use_runtimelinking=no |
| 9548 | |
| 9549 | # Test if we are trying to use run time linking or normal |
| 9550 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9551 | # need to do runtime linking. |
| 9552 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9553 | for ld_flag in $LDFLAGS; do |
| 9554 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9555 | aix_use_runtimelinking=yes |
| 9556 | break |
| 9557 | fi |
| 9558 | done |
| 9559 | ;; |
| 9560 | esac |
| 9561 | |
| 9562 | exp_sym_flag='-bexport' |
| 9563 | no_entry_flag='-bnoentry' |
| 9564 | fi |
| 9565 | |
| 9566 | # When large executables or shared objects are built, AIX ld can |
| 9567 | # have problems creating the table of contents. If linking a library |
| 9568 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9569 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9570 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9571 | |
| 9572 | archive_cmds='' |
| 9573 | hardcode_direct=yes |
| 9574 | hardcode_direct_absolute=yes |
| 9575 | hardcode_libdir_separator=':' |
| 9576 | link_all_deplibs=yes |
| 9577 | file_list_spec='${wl}-f,' |
| 9578 | |
| 9579 | if test "$GCC" = yes; then |
| 9580 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9581 | # We only want to do this on AIX 4.2 and lower, the check |
| 9582 | # below for broken collect2 doesn't work under 4.3+ |
| 9583 | collect2name=`${CC} -print-prog-name=collect2` |
| 9584 | if test -f "$collect2name" && |
| 9585 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9586 | then |
| 9587 | # We have reworked collect2 |
| 9588 | : |
| 9589 | else |
| 9590 | # We have old collect2 |
| 9591 | hardcode_direct=unsupported |
| 9592 | # It fails to find uninstalled libraries when the uninstalled |
| 9593 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9594 | # to unsupported forces relinking |
| 9595 | hardcode_minus_L=yes |
| 9596 | hardcode_libdir_flag_spec='-L$libdir' |
| 9597 | hardcode_libdir_separator= |
| 9598 | fi |
| 9599 | ;; |
| 9600 | esac |
| 9601 | shared_flag='-shared' |
| 9602 | if test "$aix_use_runtimelinking" = yes; then |
| 9603 | shared_flag="$shared_flag "'${wl}-G' |
| 9604 | fi |
| 9605 | else |
| 9606 | # not using gcc |
| 9607 | if test "$host_cpu" = ia64; then |
| 9608 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9609 | # chokes on -Wl,-G. The following line is correct: |
| 9610 | shared_flag='-G' |
| 9611 | else |
| 9612 | if test "$aix_use_runtimelinking" = yes; then |
| 9613 | shared_flag='${wl}-G' |
| 9614 | else |
| 9615 | shared_flag='${wl}-bM:SRE' |
| 9616 | fi |
| 9617 | fi |
| 9618 | fi |
| 9619 | |
| 9620 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9621 | # It seems that -bexpall does not export symbols beginning with |
| 9622 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9623 | always_export_symbols=yes |
| 9624 | if test "$aix_use_runtimelinking" = yes; then |
| 9625 | # Warning - without using the other runtime loading flags (-brtl), |
| 9626 | # -berok will link without error, but may produce a broken library. |
| 9627 | allow_undefined_flag='-berok' |
| 9628 | # Determine the default libpath from the value encoded in an |
| 9629 | # empty executable. |
| 9630 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9631 | aix_libpath=$lt_cv_aix_libpath |
| 9632 | else |
| 9633 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9634 | $as_echo_n "(cached) " >&6 |
| 9635 | else |
| 9636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9637 | /* end confdefs.h. */ |
| 9638 | |
| 9639 | int |
| 9640 | main () |
| 9641 | { |
| 9642 | |
| 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
| 9647 | if ac_fn_c_try_link "$LINENO"; then : |
| 9648 | |
| 9649 | lt_aix_libpath_sed=' |
| 9650 | /Import File Strings/,/^$/ { |
| 9651 | /^0/ { |
| 9652 | s/^0 *\([^ ]*\) *$/\1/ |
| 9653 | p |
| 9654 | } |
| 9655 | }' |
| 9656 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9657 | # Check for a 64-bit object if we didn't find anything. |
| 9658 | if test -z "$lt_cv_aix_libpath_"; then |
| 9659 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9660 | fi |
| 9661 | fi |
| 9662 | rm -f core conftest.err conftest.$ac_objext \ |
| 9663 | conftest$ac_exeext conftest.$ac_ext |
| 9664 | if test -z "$lt_cv_aix_libpath_"; then |
| 9665 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9666 | fi |
| 9667 | |
| 9668 | fi |
| 9669 | |
| 9670 | aix_libpath=$lt_cv_aix_libpath_ |
| 9671 | fi |
| 9672 | |
| 9673 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9674 | 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" |
| 9675 | else |
| 9676 | if test "$host_cpu" = ia64; then |
| 9677 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9678 | allow_undefined_flag="-z nodefs" |
| 9679 | 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" |
| 9680 | else |
| 9681 | # Determine the default libpath from the value encoded in an |
| 9682 | # empty executable. |
| 9683 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9684 | aix_libpath=$lt_cv_aix_libpath |
| 9685 | else |
| 9686 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9687 | $as_echo_n "(cached) " >&6 |
| 9688 | else |
| 9689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9690 | /* end confdefs.h. */ |
| 9691 | |
| 9692 | int |
| 9693 | main () |
| 9694 | { |
| 9695 | |
| 9696 | ; |
| 9697 | return 0; |
| 9698 | } |
| 9699 | _ACEOF |
| 9700 | if ac_fn_c_try_link "$LINENO"; then : |
| 9701 | |
| 9702 | lt_aix_libpath_sed=' |
| 9703 | /Import File Strings/,/^$/ { |
| 9704 | /^0/ { |
| 9705 | s/^0 *\([^ ]*\) *$/\1/ |
| 9706 | p |
| 9707 | } |
| 9708 | }' |
| 9709 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9710 | # Check for a 64-bit object if we didn't find anything. |
| 9711 | if test -z "$lt_cv_aix_libpath_"; then |
| 9712 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9713 | fi |
| 9714 | fi |
| 9715 | rm -f core conftest.err conftest.$ac_objext \ |
| 9716 | conftest$ac_exeext conftest.$ac_ext |
| 9717 | if test -z "$lt_cv_aix_libpath_"; then |
| 9718 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9719 | fi |
| 9720 | |
| 9721 | fi |
| 9722 | |
| 9723 | aix_libpath=$lt_cv_aix_libpath_ |
| 9724 | fi |
| 9725 | |
| 9726 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9727 | # Warning - without using the other run time loading flags, |
| 9728 | # -berok will link without error, but may produce a broken library. |
| 9729 | no_undefined_flag=' ${wl}-bernotok' |
| 9730 | allow_undefined_flag=' ${wl}-berok' |
| 9731 | if test "$with_gnu_ld" = yes; then |
| 9732 | # We only use this code for GNU lds that support --whole-archive. |
| 9733 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9734 | else |
| 9735 | # Exported symbols can be pulled into shared objects from archives |
| 9736 | whole_archive_flag_spec='$convenience' |
| 9737 | fi |
| 9738 | archive_cmds_need_lc=yes |
| 9739 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9740 | 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' |
| 9741 | fi |
| 9742 | fi |
| 9743 | ;; |
| 9744 | |
| 9745 | amigaos*) |
| 9746 | case $host_cpu in |
| 9747 | powerpc) |
| 9748 | # see comment about AmigaOS4 .so support |
| 9749 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9750 | archive_expsym_cmds='' |
| 9751 | ;; |
| 9752 | m68k) |
| 9753 | 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)' |
| 9754 | hardcode_libdir_flag_spec='-L$libdir' |
| 9755 | hardcode_minus_L=yes |
| 9756 | ;; |
| 9757 | esac |
| 9758 | ;; |
| 9759 | |
| 9760 | bsdi[45]*) |
| 9761 | export_dynamic_flag_spec=-rdynamic |
| 9762 | ;; |
| 9763 | |
| 9764 | cygwin* | mingw* | pw32* | cegcc*) |
| 9765 | # When not using gcc, we currently assume that we are using |
| 9766 | # Microsoft Visual C++. |
| 9767 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9768 | # no search path for DLLs. |
| 9769 | case $cc_basename in |
| 9770 | cl*) |
| 9771 | # Native MSVC |
| 9772 | hardcode_libdir_flag_spec=' ' |
| 9773 | allow_undefined_flag=unsupported |
| 9774 | always_export_symbols=yes |
| 9775 | file_list_spec='@' |
| 9776 | # Tell ltmain to make .lib files, not .a files. |
| 9777 | libext=lib |
| 9778 | # Tell ltmain to make .dll files, not .so files. |
| 9779 | shrext_cmds=".dll" |
| 9780 | # FIXME: Setting linknames here is a bad hack. |
| 9781 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9782 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9783 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9784 | else |
| 9785 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9786 | fi~ |
| 9787 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9788 | linknames=' |
| 9789 | # The linker will not automatically build a static lib if we build a DLL. |
| 9790 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9791 | enable_shared_with_static_runtimes=yes |
| 9792 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9793 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9794 | # Don't use ranlib |
| 9795 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9796 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9797 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9798 | case $lt_outputfile in |
| 9799 | *.exe|*.EXE) ;; |
| 9800 | *) |
| 9801 | lt_outputfile="$lt_outputfile.exe" |
| 9802 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9803 | ;; |
| 9804 | esac~ |
| 9805 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9806 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9807 | $RM "$lt_outputfile.manifest"; |
| 9808 | fi' |
| 9809 | ;; |
| 9810 | *) |
| 9811 | # Assume MSVC wrapper |
| 9812 | hardcode_libdir_flag_spec=' ' |
| 9813 | allow_undefined_flag=unsupported |
| 9814 | # Tell ltmain to make .lib files, not .a files. |
| 9815 | libext=lib |
| 9816 | # Tell ltmain to make .dll files, not .so files. |
| 9817 | shrext_cmds=".dll" |
| 9818 | # FIXME: Setting linknames here is a bad hack. |
| 9819 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9820 | # The linker will automatically build a .lib file if we build a DLL. |
| 9821 | old_archive_from_new_cmds='true' |
| 9822 | # FIXME: Should let the user specify the lib program. |
| 9823 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9824 | enable_shared_with_static_runtimes=yes |
| 9825 | ;; |
| 9826 | esac |
| 9827 | ;; |
| 9828 | |
| 9829 | darwin* | rhapsody*) |
| 9830 | |
| 9831 | |
| 9832 | archive_cmds_need_lc=no |
| 9833 | hardcode_direct=no |
| 9834 | hardcode_automatic=yes |
| 9835 | hardcode_shlibpath_var=unsupported |
| 9836 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9837 | 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\"`' |
| 9838 | |
| 9839 | else |
| 9840 | whole_archive_flag_spec='' |
| 9841 | fi |
| 9842 | link_all_deplibs=yes |
| 9843 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9844 | case $cc_basename in |
| 9845 | ifort*) _lt_dar_can_shared=yes ;; |
| 9846 | *) _lt_dar_can_shared=$GCC ;; |
| 9847 | esac |
| 9848 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9849 | output_verbose_link_cmd=func_echo_all |
| 9850 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9851 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9852 | 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}" |
| 9853 | 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}" |
| 9854 | |
| 9855 | else |
| 9856 | ld_shlibs=no |
| 9857 | fi |
| 9858 | |
| 9859 | ;; |
| 9860 | |
| 9861 | dgux*) |
| 9862 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9863 | hardcode_libdir_flag_spec='-L$libdir' |
| 9864 | hardcode_shlibpath_var=no |
| 9865 | ;; |
| 9866 | |
| 9867 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9868 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9869 | # does not break anything, and helps significantly (at the cost of a little |
| 9870 | # extra space). |
| 9871 | freebsd2.2*) |
| 9872 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9873 | hardcode_libdir_flag_spec='-R$libdir' |
| 9874 | hardcode_direct=yes |
| 9875 | hardcode_shlibpath_var=no |
| 9876 | ;; |
| 9877 | |
| 9878 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9879 | freebsd2.*) |
| 9880 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9881 | hardcode_direct=yes |
| 9882 | hardcode_minus_L=yes |
| 9883 | hardcode_shlibpath_var=no |
| 9884 | ;; |
| 9885 | |
| 9886 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9887 | freebsd* | dragonfly*) |
| 9888 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9889 | hardcode_libdir_flag_spec='-R$libdir' |
| 9890 | hardcode_direct=yes |
| 9891 | hardcode_shlibpath_var=no |
| 9892 | ;; |
| 9893 | |
| 9894 | hpux9*) |
| 9895 | if test "$GCC" = yes; then |
| 9896 | 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' |
| 9897 | else |
| 9898 | 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' |
| 9899 | fi |
| 9900 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9901 | hardcode_libdir_separator=: |
| 9902 | hardcode_direct=yes |
| 9903 | |
| 9904 | # hardcode_minus_L: Not really in the search PATH, |
| 9905 | # but as the default location of the library. |
| 9906 | hardcode_minus_L=yes |
| 9907 | export_dynamic_flag_spec='${wl}-E' |
| 9908 | ;; |
| 9909 | |
| 9910 | hpux10*) |
| 9911 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9912 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9913 | else |
| 9914 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9915 | fi |
| 9916 | if test "$with_gnu_ld" = no; then |
| 9917 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9918 | hardcode_libdir_separator=: |
| 9919 | hardcode_direct=yes |
| 9920 | hardcode_direct_absolute=yes |
| 9921 | export_dynamic_flag_spec='${wl}-E' |
| 9922 | # hardcode_minus_L: Not really in the search PATH, |
| 9923 | # but as the default location of the library. |
| 9924 | hardcode_minus_L=yes |
| 9925 | fi |
| 9926 | ;; |
| 9927 | |
| 9928 | hpux11*) |
| 9929 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9930 | case $host_cpu in |
| 9931 | hppa*64*) |
| 9932 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9933 | ;; |
| 9934 | ia64*) |
| 9935 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9936 | ;; |
| 9937 | *) |
| 9938 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9939 | ;; |
| 9940 | esac |
| 9941 | else |
| 9942 | case $host_cpu in |
| 9943 | hppa*64*) |
| 9944 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9945 | ;; |
| 9946 | ia64*) |
| 9947 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9948 | ;; |
| 9949 | *) |
| 9950 | |
| 9951 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9952 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9954 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9955 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9956 | $as_echo_n "(cached) " >&6 |
| 9957 | else |
| 9958 | lt_cv_prog_compiler__b=no |
| 9959 | save_LDFLAGS="$LDFLAGS" |
| 9960 | LDFLAGS="$LDFLAGS -b" |
| 9961 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9962 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9963 | # The linker can only warn and ignore the option if not recognized |
| 9964 | # So say no if there are warnings |
| 9965 | if test -s conftest.err; then |
| 9966 | # Append any errors to the config.log. |
| 9967 | cat conftest.err 1>&5 |
| 9968 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9969 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9970 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9971 | lt_cv_prog_compiler__b=yes |
| 9972 | fi |
| 9973 | else |
| 9974 | lt_cv_prog_compiler__b=yes |
| 9975 | fi |
| 9976 | fi |
| 9977 | $RM -r conftest* |
| 9978 | LDFLAGS="$save_LDFLAGS" |
| 9979 | |
| 9980 | fi |
| 9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9982 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9983 | |
| 9984 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9985 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9986 | else |
| 9987 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9988 | fi |
| 9989 | |
| 9990 | ;; |
| 9991 | esac |
| 9992 | fi |
| 9993 | if test "$with_gnu_ld" = no; then |
| 9994 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9995 | hardcode_libdir_separator=: |
| 9996 | |
| 9997 | case $host_cpu in |
| 9998 | hppa*64*|ia64*) |
| 9999 | hardcode_direct=no |
| 10000 | hardcode_shlibpath_var=no |
| 10001 | ;; |
| 10002 | *) |
| 10003 | hardcode_direct=yes |
| 10004 | hardcode_direct_absolute=yes |
| 10005 | export_dynamic_flag_spec='${wl}-E' |
| 10006 | |
| 10007 | # hardcode_minus_L: Not really in the search PATH, |
| 10008 | # but as the default location of the library. |
| 10009 | hardcode_minus_L=yes |
| 10010 | ;; |
| 10011 | esac |
| 10012 | fi |
| 10013 | ;; |
| 10014 | |
| 10015 | irix5* | irix6* | nonstopux*) |
| 10016 | if test "$GCC" = yes; then |
| 10017 | 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' |
| 10018 | # Try to use the -exported_symbol ld option, if it does not |
| 10019 | # work, assume that -exports_file does not work either and |
| 10020 | # implicitly export all symbols. |
| 10021 | # This should be the same for all languages, so no per-tag cache variable. |
| 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 10023 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 10024 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10025 | $as_echo_n "(cached) " >&6 |
| 10026 | else |
| 10027 | save_LDFLAGS="$LDFLAGS" |
| 10028 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10030 | /* end confdefs.h. */ |
| 10031 | int foo (void) { return 0; } |
| 10032 | _ACEOF |
| 10033 | if ac_fn_c_try_link "$LINENO"; then : |
| 10034 | lt_cv_irix_exported_symbol=yes |
| 10035 | else |
| 10036 | lt_cv_irix_exported_symbol=no |
| 10037 | fi |
| 10038 | rm -f core conftest.err conftest.$ac_objext \ |
| 10039 | conftest$ac_exeext conftest.$ac_ext |
| 10040 | LDFLAGS="$save_LDFLAGS" |
| 10041 | fi |
| 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10043 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10044 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10045 | 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' |
| 10046 | fi |
| 10047 | else |
| 10048 | 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' |
| 10049 | 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' |
| 10050 | fi |
| 10051 | archive_cmds_need_lc='no' |
| 10052 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10053 | hardcode_libdir_separator=: |
| 10054 | inherit_rpath=yes |
| 10055 | link_all_deplibs=yes |
| 10056 | ;; |
| 10057 | |
| 10058 | netbsd*) |
| 10059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10060 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10061 | else |
| 10062 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10063 | fi |
| 10064 | hardcode_libdir_flag_spec='-R$libdir' |
| 10065 | hardcode_direct=yes |
| 10066 | hardcode_shlibpath_var=no |
| 10067 | ;; |
| 10068 | |
| 10069 | newsos6) |
| 10070 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10071 | hardcode_direct=yes |
| 10072 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10073 | hardcode_libdir_separator=: |
| 10074 | hardcode_shlibpath_var=no |
| 10075 | ;; |
| 10076 | |
| 10077 | *nto* | *qnx*) |
| 10078 | ;; |
| 10079 | |
| 10080 | openbsd*) |
| 10081 | if test -f /usr/libexec/ld.so; then |
| 10082 | hardcode_direct=yes |
| 10083 | hardcode_shlibpath_var=no |
| 10084 | hardcode_direct_absolute=yes |
| 10085 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10086 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10087 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10088 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10089 | export_dynamic_flag_spec='${wl}-E' |
| 10090 | else |
| 10091 | case $host_os in |
| 10092 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10093 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10094 | hardcode_libdir_flag_spec='-R$libdir' |
| 10095 | ;; |
| 10096 | *) |
| 10097 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10098 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10099 | ;; |
| 10100 | esac |
| 10101 | fi |
| 10102 | else |
| 10103 | ld_shlibs=no |
| 10104 | fi |
| 10105 | ;; |
| 10106 | |
| 10107 | os2*) |
| 10108 | hardcode_libdir_flag_spec='-L$libdir' |
| 10109 | hardcode_minus_L=yes |
| 10110 | allow_undefined_flag=unsupported |
| 10111 | 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' |
| 10112 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10113 | ;; |
| 10114 | |
| 10115 | osf3*) |
| 10116 | if test "$GCC" = yes; then |
| 10117 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10118 | 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' |
| 10119 | else |
| 10120 | allow_undefined_flag=' -expect_unresolved \*' |
| 10121 | 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' |
| 10122 | fi |
| 10123 | archive_cmds_need_lc='no' |
| 10124 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10125 | hardcode_libdir_separator=: |
| 10126 | ;; |
| 10127 | |
| 10128 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10129 | if test "$GCC" = yes; then |
| 10130 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10131 | 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' |
| 10132 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10133 | else |
| 10134 | allow_undefined_flag=' -expect_unresolved \*' |
| 10135 | 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' |
| 10136 | 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~ |
| 10137 | $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' |
| 10138 | |
| 10139 | # Both c and cxx compiler support -rpath directly |
| 10140 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10141 | fi |
| 10142 | archive_cmds_need_lc='no' |
| 10143 | hardcode_libdir_separator=: |
| 10144 | ;; |
| 10145 | |
| 10146 | solaris*) |
| 10147 | no_undefined_flag=' -z defs' |
| 10148 | if test "$GCC" = yes; then |
| 10149 | wlarc='${wl}' |
| 10150 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10151 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10152 | $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' |
| 10153 | else |
| 10154 | case `$CC -V 2>&1` in |
| 10155 | *"Compilers 5.0"*) |
| 10156 | wlarc='' |
| 10157 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10158 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10159 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10160 | ;; |
| 10161 | *) |
| 10162 | wlarc='${wl}' |
| 10163 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10164 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10165 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10166 | ;; |
| 10167 | esac |
| 10168 | fi |
| 10169 | hardcode_libdir_flag_spec='-R$libdir' |
| 10170 | hardcode_shlibpath_var=no |
| 10171 | case $host_os in |
| 10172 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10173 | *) |
| 10174 | # The compiler driver will combine and reorder linker options, |
| 10175 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10176 | # but is careful enough not to reorder. |
| 10177 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10178 | if test "$GCC" = yes; then |
| 10179 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10180 | else |
| 10181 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10182 | fi |
| 10183 | ;; |
| 10184 | esac |
| 10185 | link_all_deplibs=yes |
| 10186 | ;; |
| 10187 | |
| 10188 | sunos4*) |
| 10189 | if test "x$host_vendor" = xsequent; then |
| 10190 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10191 | # files that make .init and .fini sections work. |
| 10192 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10193 | else |
| 10194 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10195 | fi |
| 10196 | hardcode_libdir_flag_spec='-L$libdir' |
| 10197 | hardcode_direct=yes |
| 10198 | hardcode_minus_L=yes |
| 10199 | hardcode_shlibpath_var=no |
| 10200 | ;; |
| 10201 | |
| 10202 | sysv4) |
| 10203 | case $host_vendor in |
| 10204 | sni) |
| 10205 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10206 | hardcode_direct=yes # is this really true??? |
| 10207 | ;; |
| 10208 | siemens) |
| 10209 | ## LD is ld it makes a PLAMLIB |
| 10210 | ## CC just makes a GrossModule. |
| 10211 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10212 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10213 | hardcode_direct=no |
| 10214 | ;; |
| 10215 | motorola) |
| 10216 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10217 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10218 | ;; |
| 10219 | esac |
| 10220 | runpath_var='LD_RUN_PATH' |
| 10221 | hardcode_shlibpath_var=no |
| 10222 | ;; |
| 10223 | |
| 10224 | sysv4.3*) |
| 10225 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10226 | hardcode_shlibpath_var=no |
| 10227 | export_dynamic_flag_spec='-Bexport' |
| 10228 | ;; |
| 10229 | |
| 10230 | sysv4*MP*) |
| 10231 | if test -d /usr/nec; then |
| 10232 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10233 | hardcode_shlibpath_var=no |
| 10234 | runpath_var=LD_RUN_PATH |
| 10235 | hardcode_runpath_var=yes |
| 10236 | ld_shlibs=yes |
| 10237 | fi |
| 10238 | ;; |
| 10239 | |
| 10240 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10241 | no_undefined_flag='${wl}-z,text' |
| 10242 | archive_cmds_need_lc=no |
| 10243 | hardcode_shlibpath_var=no |
| 10244 | runpath_var='LD_RUN_PATH' |
| 10245 | |
| 10246 | if test "$GCC" = yes; then |
| 10247 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10248 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10249 | else |
| 10250 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10251 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10252 | fi |
| 10253 | ;; |
| 10254 | |
| 10255 | sysv5* | sco3.2v5* | sco5v6*) |
| 10256 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10257 | # link with -lc, and that would cause any symbols used from libc to |
| 10258 | # always be unresolved, which means just about no library would |
| 10259 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10260 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10261 | # as -z defs. |
| 10262 | no_undefined_flag='${wl}-z,text' |
| 10263 | allow_undefined_flag='${wl}-z,nodefs' |
| 10264 | archive_cmds_need_lc=no |
| 10265 | hardcode_shlibpath_var=no |
| 10266 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10267 | hardcode_libdir_separator=':' |
| 10268 | link_all_deplibs=yes |
| 10269 | export_dynamic_flag_spec='${wl}-Bexport' |
| 10270 | runpath_var='LD_RUN_PATH' |
| 10271 | |
| 10272 | if test "$GCC" = yes; then |
| 10273 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10274 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10275 | else |
| 10276 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10277 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10278 | fi |
| 10279 | ;; |
| 10280 | |
| 10281 | uts4*) |
| 10282 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10283 | hardcode_libdir_flag_spec='-L$libdir' |
| 10284 | hardcode_shlibpath_var=no |
| 10285 | ;; |
| 10286 | |
| 10287 | *) |
| 10288 | ld_shlibs=no |
| 10289 | ;; |
| 10290 | esac |
| 10291 | |
| 10292 | if test x$host_vendor = xsni; then |
| 10293 | case $host in |
| 10294 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10295 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10296 | ;; |
| 10297 | esac |
| 10298 | fi |
| 10299 | fi |
| 10300 | |
| 10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10302 | $as_echo "$ld_shlibs" >&6; } |
| 10303 | test "$ld_shlibs" = no && can_build_shared=no |
| 10304 | |
| 10305 | with_gnu_ld=$with_gnu_ld |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | |
| 10315 | |
| 10316 | |
| 10317 | |
| 10318 | |
| 10319 | |
| 10320 | |
| 10321 | # |
| 10322 | # Do we need to explicitly link libc? |
| 10323 | # |
| 10324 | case "x$archive_cmds_need_lc" in |
| 10325 | x|xyes) |
| 10326 | # Assume -lc should be added |
| 10327 | archive_cmds_need_lc=yes |
| 10328 | |
| 10329 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10330 | case $archive_cmds in |
| 10331 | *'~'*) |
| 10332 | # FIXME: we may have to deal with multi-command sequences. |
| 10333 | ;; |
| 10334 | '$CC '*) |
| 10335 | # Test whether the compiler implicitly links with -lc since on some |
| 10336 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10337 | # to ld, don't add -lc before -lgcc. |
| 10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10339 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10340 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10341 | $as_echo_n "(cached) " >&6 |
| 10342 | else |
| 10343 | $RM conftest* |
| 10344 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10345 | |
| 10346 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10347 | (eval $ac_compile) 2>&5 |
| 10348 | ac_status=$? |
| 10349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10350 | test $ac_status = 0; } 2>conftest.err; then |
| 10351 | soname=conftest |
| 10352 | lib=conftest |
| 10353 | libobjs=conftest.$ac_objext |
| 10354 | deplibs= |
| 10355 | wl=$lt_prog_compiler_wl |
| 10356 | pic_flag=$lt_prog_compiler_pic |
| 10357 | compiler_flags=-v |
| 10358 | linker_flags=-v |
| 10359 | verstring= |
| 10360 | output_objdir=. |
| 10361 | libname=conftest |
| 10362 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10363 | allow_undefined_flag= |
| 10364 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10365 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10366 | ac_status=$? |
| 10367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10368 | test $ac_status = 0; } |
| 10369 | then |
| 10370 | lt_cv_archive_cmds_need_lc=no |
| 10371 | else |
| 10372 | lt_cv_archive_cmds_need_lc=yes |
| 10373 | fi |
| 10374 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10375 | else |
| 10376 | cat conftest.err 1>&5 |
| 10377 | fi |
| 10378 | $RM conftest* |
| 10379 | |
| 10380 | fi |
| 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10382 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10383 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10384 | ;; |
| 10385 | esac |
| 10386 | fi |
| 10387 | ;; |
| 10388 | esac |
| 10389 | |
| 10390 | |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | |
| 10396 | |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | |
| 10418 | |
| 10419 | |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | |
| 10430 | |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | |
| 10435 | |
| 10436 | |
| 10437 | |
| 10438 | |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | |
| 10447 | |
| 10448 | |
| 10449 | |
| 10450 | |
| 10451 | |
| 10452 | |
| 10453 | |
| 10454 | |
| 10455 | |
| 10456 | |
| 10457 | |
| 10458 | |
| 10459 | |
| 10460 | |
| 10461 | |
| 10462 | |
| 10463 | |
| 10464 | |
| 10465 | |
| 10466 | |
| 10467 | |
| 10468 | |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | |
| 10493 | |
| 10494 | |
| 10495 | |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10542 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10543 | |
| 10544 | if test "$GCC" = yes; then |
| 10545 | case $host_os in |
| 10546 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10547 | *) lt_awk_arg="/^libraries:/" ;; |
| 10548 | esac |
| 10549 | case $host_os in |
| 10550 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10551 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10552 | esac |
| 10553 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10554 | case $lt_search_path_spec in |
| 10555 | *\;*) |
| 10556 | # if the path contains ";" then we assume it to be the separator |
| 10557 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10558 | # assumed that no part of a normal pathname contains ";" but that should |
| 10559 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10560 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10561 | ;; |
| 10562 | *) |
| 10563 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10564 | ;; |
| 10565 | esac |
| 10566 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10567 | # and add multilib dir if necessary. |
| 10568 | lt_tmp_lt_search_path_spec= |
| 10569 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10570 | for lt_sys_path in $lt_search_path_spec; do |
| 10571 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10572 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10573 | else |
| 10574 | test -d "$lt_sys_path" && \ |
| 10575 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10576 | fi |
| 10577 | done |
| 10578 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10579 | BEGIN {RS=" "; FS="/|\n";} { |
| 10580 | lt_foo=""; |
| 10581 | lt_count=0; |
| 10582 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10583 | if ($lt_i != "" && $lt_i != ".") { |
| 10584 | if ($lt_i == "..") { |
| 10585 | lt_count++; |
| 10586 | } else { |
| 10587 | if (lt_count == 0) { |
| 10588 | lt_foo="/" $lt_i lt_foo; |
| 10589 | } else { |
| 10590 | lt_count--; |
| 10591 | } |
| 10592 | } |
| 10593 | } |
| 10594 | } |
| 10595 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10596 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10597 | }'` |
| 10598 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10599 | # for these hosts. |
| 10600 | case $host_os in |
| 10601 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10602 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10603 | esac |
| 10604 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10605 | else |
| 10606 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10607 | fi |
| 10608 | library_names_spec= |
| 10609 | libname_spec='lib$name' |
| 10610 | soname_spec= |
| 10611 | shrext_cmds=".so" |
| 10612 | postinstall_cmds= |
| 10613 | postuninstall_cmds= |
| 10614 | finish_cmds= |
| 10615 | finish_eval= |
| 10616 | shlibpath_var= |
| 10617 | shlibpath_overrides_runpath=unknown |
| 10618 | version_type=none |
| 10619 | dynamic_linker="$host_os ld.so" |
| 10620 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10621 | need_lib_prefix=unknown |
| 10622 | hardcode_into_libs=no |
| 10623 | |
| 10624 | # when you set need_version to no, make sure it does not cause -set_version |
| 10625 | # flags to be left without arguments |
| 10626 | need_version=unknown |
| 10627 | |
| 10628 | case $host_os in |
| 10629 | aix3*) |
| 10630 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10632 | shlibpath_var=LIBPATH |
| 10633 | |
| 10634 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10635 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10636 | ;; |
| 10637 | |
| 10638 | aix[4-9]*) |
| 10639 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10640 | need_lib_prefix=no |
| 10641 | need_version=no |
| 10642 | hardcode_into_libs=yes |
| 10643 | if test "$host_cpu" = ia64; then |
| 10644 | # AIX 5 supports IA64 |
| 10645 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10646 | shlibpath_var=LD_LIBRARY_PATH |
| 10647 | else |
| 10648 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10649 | # for dependence libraries. The import file would start with |
| 10650 | # the line `#! .'. This would cause the generated library to |
| 10651 | # depend on `.', always an invalid library. This was fixed in |
| 10652 | # development snapshots of GCC prior to 3.0. |
| 10653 | case $host_os in |
| 10654 | aix4 | aix4.[01] | aix4.[01].*) |
| 10655 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10656 | echo ' yes ' |
| 10657 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10658 | : |
| 10659 | else |
| 10660 | can_build_shared=no |
| 10661 | fi |
| 10662 | ;; |
| 10663 | esac |
| 10664 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10665 | # soname into executable. Probably we can add versioning support to |
| 10666 | # collect2, so additional links can be useful in future. |
| 10667 | if test "$aix_use_runtimelinking" = yes; then |
| 10668 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10669 | # instead of lib<name>.a to let people know that these are not |
| 10670 | # typical AIX shared libraries. |
| 10671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10672 | else |
| 10673 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10674 | # and later when we are not doing run time linking. |
| 10675 | library_names_spec='${libname}${release}.a $libname.a' |
| 10676 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10677 | fi |
| 10678 | shlibpath_var=LIBPATH |
| 10679 | fi |
| 10680 | ;; |
| 10681 | |
| 10682 | amigaos*) |
| 10683 | case $host_cpu in |
| 10684 | powerpc) |
| 10685 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10686 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10688 | ;; |
| 10689 | m68k) |
| 10690 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10691 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10692 | 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' |
| 10693 | ;; |
| 10694 | esac |
| 10695 | ;; |
| 10696 | |
| 10697 | beos*) |
| 10698 | library_names_spec='${libname}${shared_ext}' |
| 10699 | dynamic_linker="$host_os ld.so" |
| 10700 | shlibpath_var=LIBRARY_PATH |
| 10701 | ;; |
| 10702 | |
| 10703 | bsdi[45]*) |
| 10704 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10705 | need_version=no |
| 10706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10708 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10709 | shlibpath_var=LD_LIBRARY_PATH |
| 10710 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10711 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10712 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10713 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10714 | # libtool to hard-code these into programs |
| 10715 | ;; |
| 10716 | |
| 10717 | cygwin* | mingw* | pw32* | cegcc*) |
| 10718 | version_type=windows |
| 10719 | shrext_cmds=".dll" |
| 10720 | need_version=no |
| 10721 | need_lib_prefix=no |
| 10722 | |
| 10723 | case $GCC,$cc_basename in |
| 10724 | yes,*) |
| 10725 | # gcc |
| 10726 | library_names_spec='$libname.dll.a' |
| 10727 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10728 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10729 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10730 | dldir=$destdir/`dirname \$dlpath`~ |
| 10731 | test -d \$dldir || mkdir -p \$dldir~ |
| 10732 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10733 | chmod a+x \$dldir/$dlname~ |
| 10734 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10735 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10736 | fi' |
| 10737 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10738 | dlpath=$dir/\$dldll~ |
| 10739 | $RM \$dlpath' |
| 10740 | shlibpath_overrides_runpath=yes |
| 10741 | |
| 10742 | case $host_os in |
| 10743 | cygwin*) |
| 10744 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10745 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10746 | |
| 10747 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10748 | ;; |
| 10749 | mingw* | cegcc*) |
| 10750 | # MinGW DLLs use traditional 'lib' prefix |
| 10751 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10752 | ;; |
| 10753 | pw32*) |
| 10754 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10755 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10756 | ;; |
| 10757 | esac |
| 10758 | dynamic_linker='Win32 ld.exe' |
| 10759 | ;; |
| 10760 | |
| 10761 | *,cl*) |
| 10762 | # Native MSVC |
| 10763 | libname_spec='$name' |
| 10764 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10765 | library_names_spec='${libname}.dll.lib' |
| 10766 | |
| 10767 | case $build_os in |
| 10768 | mingw*) |
| 10769 | sys_lib_search_path_spec= |
| 10770 | lt_save_ifs=$IFS |
| 10771 | IFS=';' |
| 10772 | for lt_path in $LIB |
| 10773 | do |
| 10774 | IFS=$lt_save_ifs |
| 10775 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10776 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10777 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10778 | done |
| 10779 | IFS=$lt_save_ifs |
| 10780 | # Convert to MSYS style. |
| 10781 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10782 | ;; |
| 10783 | cygwin*) |
| 10784 | # Convert to unix form, then to dos form, then back to unix form |
| 10785 | # but this time dos style (no spaces!) so that the unix form looks |
| 10786 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10787 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10788 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10789 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10790 | ;; |
| 10791 | *) |
| 10792 | sys_lib_search_path_spec="$LIB" |
| 10793 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10794 | # It is most probably a Windows format PATH. |
| 10795 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10796 | else |
| 10797 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10798 | fi |
| 10799 | # FIXME: find the short name or the path components, as spaces are |
| 10800 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10801 | ;; |
| 10802 | esac |
| 10803 | |
| 10804 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10805 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10806 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10807 | dldir=$destdir/`dirname \$dlpath`~ |
| 10808 | test -d \$dldir || mkdir -p \$dldir~ |
| 10809 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10810 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10811 | dlpath=$dir/\$dldll~ |
| 10812 | $RM \$dlpath' |
| 10813 | shlibpath_overrides_runpath=yes |
| 10814 | dynamic_linker='Win32 link.exe' |
| 10815 | ;; |
| 10816 | |
| 10817 | *) |
| 10818 | # Assume MSVC wrapper |
| 10819 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10820 | dynamic_linker='Win32 ld.exe' |
| 10821 | ;; |
| 10822 | esac |
| 10823 | # FIXME: first we should search . and the directory the executable is in |
| 10824 | shlibpath_var=PATH |
| 10825 | ;; |
| 10826 | |
| 10827 | darwin* | rhapsody*) |
| 10828 | dynamic_linker="$host_os dyld" |
| 10829 | version_type=darwin |
| 10830 | need_lib_prefix=no |
| 10831 | need_version=no |
| 10832 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10833 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10834 | shlibpath_overrides_runpath=yes |
| 10835 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10836 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10837 | |
| 10838 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10839 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10840 | ;; |
| 10841 | |
| 10842 | dgux*) |
| 10843 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10844 | need_lib_prefix=no |
| 10845 | need_version=no |
| 10846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10848 | shlibpath_var=LD_LIBRARY_PATH |
| 10849 | ;; |
| 10850 | |
| 10851 | freebsd* | dragonfly*) |
| 10852 | # DragonFly does not have aout. When/if they implement a new |
| 10853 | # versioning mechanism, adjust this. |
| 10854 | if test -x /usr/bin/objformat; then |
| 10855 | objformat=`/usr/bin/objformat` |
| 10856 | else |
| 10857 | case $host_os in |
| 10858 | freebsd[23].*) objformat=aout ;; |
| 10859 | *) objformat=elf ;; |
| 10860 | esac |
| 10861 | fi |
| 10862 | version_type=freebsd-$objformat |
| 10863 | case $version_type in |
| 10864 | freebsd-elf*) |
| 10865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10866 | need_version=no |
| 10867 | need_lib_prefix=no |
| 10868 | ;; |
| 10869 | freebsd-*) |
| 10870 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10871 | need_version=yes |
| 10872 | ;; |
| 10873 | esac |
| 10874 | shlibpath_var=LD_LIBRARY_PATH |
| 10875 | case $host_os in |
| 10876 | freebsd2.*) |
| 10877 | shlibpath_overrides_runpath=yes |
| 10878 | ;; |
| 10879 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10880 | shlibpath_overrides_runpath=yes |
| 10881 | hardcode_into_libs=yes |
| 10882 | ;; |
| 10883 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10884 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10885 | shlibpath_overrides_runpath=no |
| 10886 | hardcode_into_libs=yes |
| 10887 | ;; |
| 10888 | *) # from 4.6 on, and DragonFly |
| 10889 | shlibpath_overrides_runpath=yes |
| 10890 | hardcode_into_libs=yes |
| 10891 | ;; |
| 10892 | esac |
| 10893 | ;; |
| 10894 | |
| 10895 | gnu*) |
| 10896 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10897 | need_lib_prefix=no |
| 10898 | need_version=no |
| 10899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10900 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10901 | shlibpath_var=LD_LIBRARY_PATH |
| 10902 | shlibpath_overrides_runpath=no |
| 10903 | hardcode_into_libs=yes |
| 10904 | ;; |
| 10905 | |
| 10906 | haiku*) |
| 10907 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10908 | need_lib_prefix=no |
| 10909 | need_version=no |
| 10910 | dynamic_linker="$host_os runtime_loader" |
| 10911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10913 | shlibpath_var=LIBRARY_PATH |
| 10914 | shlibpath_overrides_runpath=yes |
| 10915 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10916 | hardcode_into_libs=yes |
| 10917 | ;; |
| 10918 | |
| 10919 | hpux9* | hpux10* | hpux11*) |
| 10920 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10921 | # link against other versions. |
| 10922 | version_type=sunos |
| 10923 | need_lib_prefix=no |
| 10924 | need_version=no |
| 10925 | case $host_cpu in |
| 10926 | ia64*) |
| 10927 | shrext_cmds='.so' |
| 10928 | hardcode_into_libs=yes |
| 10929 | dynamic_linker="$host_os dld.so" |
| 10930 | shlibpath_var=LD_LIBRARY_PATH |
| 10931 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10934 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10935 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10936 | else |
| 10937 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10938 | fi |
| 10939 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10940 | ;; |
| 10941 | hppa*64*) |
| 10942 | shrext_cmds='.sl' |
| 10943 | hardcode_into_libs=yes |
| 10944 | dynamic_linker="$host_os dld.sl" |
| 10945 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10946 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10949 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10951 | ;; |
| 10952 | *) |
| 10953 | shrext_cmds='.sl' |
| 10954 | dynamic_linker="$host_os dld.sl" |
| 10955 | shlibpath_var=SHLIB_PATH |
| 10956 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10959 | ;; |
| 10960 | esac |
| 10961 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 10962 | postinstall_cmds='chmod 555 $lib' |
| 10963 | # or fails outright, so override atomically: |
| 10964 | install_override_mode=555 |
| 10965 | ;; |
| 10966 | |
| 10967 | interix[3-9]*) |
| 10968 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10969 | need_lib_prefix=no |
| 10970 | need_version=no |
| 10971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10973 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10974 | shlibpath_var=LD_LIBRARY_PATH |
| 10975 | shlibpath_overrides_runpath=no |
| 10976 | hardcode_into_libs=yes |
| 10977 | ;; |
| 10978 | |
| 10979 | irix5* | irix6* | nonstopux*) |
| 10980 | case $host_os in |
| 10981 | nonstopux*) version_type=nonstopux ;; |
| 10982 | *) |
| 10983 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10984 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10985 | else |
| 10986 | version_type=irix |
| 10987 | fi ;; |
| 10988 | esac |
| 10989 | need_lib_prefix=no |
| 10990 | need_version=no |
| 10991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10993 | case $host_os in |
| 10994 | irix5* | nonstopux*) |
| 10995 | libsuff= shlibsuff= |
| 10996 | ;; |
| 10997 | *) |
| 10998 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10999 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11000 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11001 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11002 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11003 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11004 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11005 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11006 | esac |
| 11007 | ;; |
| 11008 | esac |
| 11009 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11010 | shlibpath_overrides_runpath=no |
| 11011 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11012 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11013 | hardcode_into_libs=yes |
| 11014 | ;; |
| 11015 | |
| 11016 | # No shared lib support for Linux oldld, aout, or coff. |
| 11017 | linux*oldld* | linux*aout* | linux*coff*) |
| 11018 | dynamic_linker=no |
| 11019 | ;; |
| 11020 | |
| 11021 | # This must be glibc/ELF. |
| 11022 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11023 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11024 | need_lib_prefix=no |
| 11025 | need_version=no |
| 11026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11029 | shlibpath_var=LD_LIBRARY_PATH |
| 11030 | shlibpath_overrides_runpath=no |
| 11031 | |
| 11032 | # Some binutils ld are patched to set DT_RUNPATH |
| 11033 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11034 | $as_echo_n "(cached) " >&6 |
| 11035 | else |
| 11036 | lt_cv_shlibpath_overrides_runpath=no |
| 11037 | save_LDFLAGS=$LDFLAGS |
| 11038 | save_libdir=$libdir |
| 11039 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11040 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11042 | /* end confdefs.h. */ |
| 11043 | |
| 11044 | int |
| 11045 | main () |
| 11046 | { |
| 11047 | |
| 11048 | ; |
| 11049 | return 0; |
| 11050 | } |
| 11051 | _ACEOF |
| 11052 | if ac_fn_c_try_link "$LINENO"; then : |
| 11053 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11054 | lt_cv_shlibpath_overrides_runpath=yes |
| 11055 | fi |
| 11056 | fi |
| 11057 | rm -f core conftest.err conftest.$ac_objext \ |
| 11058 | conftest$ac_exeext conftest.$ac_ext |
| 11059 | LDFLAGS=$save_LDFLAGS |
| 11060 | libdir=$save_libdir |
| 11061 | |
| 11062 | fi |
| 11063 | |
| 11064 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11065 | |
| 11066 | # This implies no fast_install, which is unacceptable. |
| 11067 | # Some rework will be needed to allow for fast_install |
| 11068 | # before this can be enabled. |
| 11069 | hardcode_into_libs=yes |
| 11070 | |
| 11071 | # Append ld.so.conf contents to the search path |
| 11072 | if test -f /etc/ld.so.conf; then |
| 11073 | 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' ' '` |
| 11074 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11075 | fi |
| 11076 | |
| 11077 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11078 | # powerpc, because MkLinux only supported shared libraries with the |
| 11079 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11080 | # most powerpc-linux boxes support dynamic linking these days and |
| 11081 | # people can always --disable-shared, the test was removed, and we |
| 11082 | # assume the GNU/Linux dynamic linker is in use. |
| 11083 | dynamic_linker='GNU/Linux ld.so' |
| 11084 | ;; |
| 11085 | |
| 11086 | netbsd*) |
| 11087 | version_type=sunos |
| 11088 | need_lib_prefix=no |
| 11089 | need_version=no |
| 11090 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11093 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11094 | else |
| 11095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11097 | dynamic_linker='NetBSD ld.elf_so' |
| 11098 | fi |
| 11099 | shlibpath_var=LD_LIBRARY_PATH |
| 11100 | shlibpath_overrides_runpath=yes |
| 11101 | hardcode_into_libs=yes |
| 11102 | ;; |
| 11103 | |
| 11104 | newsos6) |
| 11105 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11107 | shlibpath_var=LD_LIBRARY_PATH |
| 11108 | shlibpath_overrides_runpath=yes |
| 11109 | ;; |
| 11110 | |
| 11111 | *nto* | *qnx*) |
| 11112 | version_type=qnx |
| 11113 | need_lib_prefix=no |
| 11114 | need_version=no |
| 11115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11117 | shlibpath_var=LD_LIBRARY_PATH |
| 11118 | shlibpath_overrides_runpath=no |
| 11119 | hardcode_into_libs=yes |
| 11120 | dynamic_linker='ldqnx.so' |
| 11121 | ;; |
| 11122 | |
| 11123 | openbsd*) |
| 11124 | version_type=sunos |
| 11125 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 11126 | need_lib_prefix=no |
| 11127 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11128 | case $host_os in |
| 11129 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11130 | *) need_version=no ;; |
| 11131 | esac |
| 11132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11134 | shlibpath_var=LD_LIBRARY_PATH |
| 11135 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11136 | case $host_os in |
| 11137 | openbsd2.[89] | openbsd2.[89].*) |
| 11138 | shlibpath_overrides_runpath=no |
| 11139 | ;; |
| 11140 | *) |
| 11141 | shlibpath_overrides_runpath=yes |
| 11142 | ;; |
| 11143 | esac |
| 11144 | else |
| 11145 | shlibpath_overrides_runpath=yes |
| 11146 | fi |
| 11147 | ;; |
| 11148 | |
| 11149 | os2*) |
| 11150 | libname_spec='$name' |
| 11151 | shrext_cmds=".dll" |
| 11152 | need_lib_prefix=no |
| 11153 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11154 | dynamic_linker='OS/2 ld.exe' |
| 11155 | shlibpath_var=LIBPATH |
| 11156 | ;; |
| 11157 | |
| 11158 | osf3* | osf4* | osf5*) |
| 11159 | version_type=osf |
| 11160 | need_lib_prefix=no |
| 11161 | need_version=no |
| 11162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11164 | shlibpath_var=LD_LIBRARY_PATH |
| 11165 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11166 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11167 | ;; |
| 11168 | |
| 11169 | rdos*) |
| 11170 | dynamic_linker=no |
| 11171 | ;; |
| 11172 | |
| 11173 | solaris*) |
| 11174 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11175 | need_lib_prefix=no |
| 11176 | need_version=no |
| 11177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11179 | shlibpath_var=LD_LIBRARY_PATH |
| 11180 | shlibpath_overrides_runpath=yes |
| 11181 | hardcode_into_libs=yes |
| 11182 | # ldd complains unless libraries are executable |
| 11183 | postinstall_cmds='chmod +x $lib' |
| 11184 | ;; |
| 11185 | |
| 11186 | sunos4*) |
| 11187 | version_type=sunos |
| 11188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11189 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11190 | shlibpath_var=LD_LIBRARY_PATH |
| 11191 | shlibpath_overrides_runpath=yes |
| 11192 | if test "$with_gnu_ld" = yes; then |
| 11193 | need_lib_prefix=no |
| 11194 | fi |
| 11195 | need_version=yes |
| 11196 | ;; |
| 11197 | |
| 11198 | sysv4 | sysv4.3*) |
| 11199 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11202 | shlibpath_var=LD_LIBRARY_PATH |
| 11203 | case $host_vendor in |
| 11204 | sni) |
| 11205 | shlibpath_overrides_runpath=no |
| 11206 | need_lib_prefix=no |
| 11207 | runpath_var=LD_RUN_PATH |
| 11208 | ;; |
| 11209 | siemens) |
| 11210 | need_lib_prefix=no |
| 11211 | ;; |
| 11212 | motorola) |
| 11213 | need_lib_prefix=no |
| 11214 | need_version=no |
| 11215 | shlibpath_overrides_runpath=no |
| 11216 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11217 | ;; |
| 11218 | esac |
| 11219 | ;; |
| 11220 | |
| 11221 | sysv4*MP*) |
| 11222 | if test -d /usr/nec ;then |
| 11223 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11224 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11225 | soname_spec='$libname${shared_ext}.$major' |
| 11226 | shlibpath_var=LD_LIBRARY_PATH |
| 11227 | fi |
| 11228 | ;; |
| 11229 | |
| 11230 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11231 | version_type=freebsd-elf |
| 11232 | need_lib_prefix=no |
| 11233 | need_version=no |
| 11234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11235 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11236 | shlibpath_var=LD_LIBRARY_PATH |
| 11237 | shlibpath_overrides_runpath=yes |
| 11238 | hardcode_into_libs=yes |
| 11239 | if test "$with_gnu_ld" = yes; then |
| 11240 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11241 | else |
| 11242 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11243 | case $host_os in |
| 11244 | sco3.2v5*) |
| 11245 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11246 | ;; |
| 11247 | esac |
| 11248 | fi |
| 11249 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11250 | ;; |
| 11251 | |
| 11252 | tpf*) |
| 11253 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11254 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11255 | need_lib_prefix=no |
| 11256 | need_version=no |
| 11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11258 | shlibpath_var=LD_LIBRARY_PATH |
| 11259 | shlibpath_overrides_runpath=no |
| 11260 | hardcode_into_libs=yes |
| 11261 | ;; |
| 11262 | |
| 11263 | uts4*) |
| 11264 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11267 | shlibpath_var=LD_LIBRARY_PATH |
| 11268 | ;; |
| 11269 | |
| 11270 | *) |
| 11271 | dynamic_linker=no |
| 11272 | ;; |
| 11273 | esac |
| 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11275 | $as_echo "$dynamic_linker" >&6; } |
| 11276 | test "$dynamic_linker" = no && can_build_shared=no |
| 11277 | |
| 11278 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11279 | if test "$GCC" = yes; then |
| 11280 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11281 | fi |
| 11282 | |
| 11283 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11284 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11285 | fi |
| 11286 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11287 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11288 | fi |
| 11289 | |
| 11290 | |
| 11291 | |
| 11292 | |
| 11293 | |
| 11294 | |
| 11295 | |
| 11296 | |
| 11297 | |
| 11298 | |
| 11299 | |
| 11300 | |
| 11301 | |
| 11302 | |
| 11303 | |
| 11304 | |
| 11305 | |
| 11306 | |
| 11307 | |
| 11308 | |
| 11309 | |
| 11310 | |
| 11311 | |
| 11312 | |
| 11313 | |
| 11314 | |
| 11315 | |
| 11316 | |
| 11317 | |
| 11318 | |
| 11319 | |
| 11320 | |
| 11321 | |
| 11322 | |
| 11323 | |
| 11324 | |
| 11325 | |
| 11326 | |
| 11327 | |
| 11328 | |
| 11329 | |
| 11330 | |
| 11331 | |
| 11332 | |
| 11333 | |
| 11334 | |
| 11335 | |
| 11336 | |
| 11337 | |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | |
| 11342 | |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | |
| 11347 | |
| 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11382 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11383 | hardcode_action= |
| 11384 | if test -n "$hardcode_libdir_flag_spec" || |
| 11385 | test -n "$runpath_var" || |
| 11386 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11387 | |
| 11388 | # We can hardcode non-existent directories. |
| 11389 | if test "$hardcode_direct" != no && |
| 11390 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11391 | # have to relink, otherwise we might link with an installed library |
| 11392 | # when we should be linking with a yet-to-be-installed one |
| 11393 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11394 | test "$hardcode_minus_L" != no; then |
| 11395 | # Linking always hardcodes the temporary library directory. |
| 11396 | hardcode_action=relink |
| 11397 | else |
| 11398 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11399 | hardcode_action=immediate |
| 11400 | fi |
| 11401 | else |
| 11402 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11403 | # directories. |
| 11404 | hardcode_action=unsupported |
| 11405 | fi |
| 11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11407 | $as_echo "$hardcode_action" >&6; } |
| 11408 | |
| 11409 | if test "$hardcode_action" = relink || |
| 11410 | test "$inherit_rpath" = yes; then |
| 11411 | # Fast installation is not supported |
| 11412 | enable_fast_install=no |
| 11413 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11414 | test "$enable_shared" = no; then |
| 11415 | # Fast installation is not necessary |
| 11416 | enable_fast_install=needless |
| 11417 | fi |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | if test "x$enable_dlopen" != xyes; then |
| 11425 | enable_dlopen=unknown |
| 11426 | enable_dlopen_self=unknown |
| 11427 | enable_dlopen_self_static=unknown |
| 11428 | else |
| 11429 | lt_cv_dlopen=no |
| 11430 | lt_cv_dlopen_libs= |
| 11431 | |
| 11432 | case $host_os in |
| 11433 | beos*) |
| 11434 | lt_cv_dlopen="load_add_on" |
| 11435 | lt_cv_dlopen_libs= |
| 11436 | lt_cv_dlopen_self=yes |
| 11437 | ;; |
| 11438 | |
| 11439 | mingw* | pw32* | cegcc*) |
| 11440 | lt_cv_dlopen="LoadLibrary" |
| 11441 | lt_cv_dlopen_libs= |
| 11442 | ;; |
| 11443 | |
| 11444 | cygwin*) |
| 11445 | lt_cv_dlopen="dlopen" |
| 11446 | lt_cv_dlopen_libs= |
| 11447 | ;; |
| 11448 | |
| 11449 | darwin*) |
| 11450 | # if libdl is installed we need to link against it |
| 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11452 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11453 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11454 | $as_echo_n "(cached) " >&6 |
| 11455 | else |
| 11456 | ac_check_lib_save_LIBS=$LIBS |
| 11457 | LIBS="-ldl $LIBS" |
| 11458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11459 | /* end confdefs.h. */ |
| 11460 | |
| 11461 | /* Override any GCC internal prototype to avoid an error. |
| 11462 | Use char because int might match the return type of a GCC |
| 11463 | builtin and then its argument prototype would still apply. */ |
| 11464 | #ifdef __cplusplus |
| 11465 | extern "C" |
| 11466 | #endif |
| 11467 | char dlopen (); |
| 11468 | int |
| 11469 | main () |
| 11470 | { |
| 11471 | return dlopen (); |
| 11472 | ; |
| 11473 | return 0; |
| 11474 | } |
| 11475 | _ACEOF |
| 11476 | if ac_fn_c_try_link "$LINENO"; then : |
| 11477 | ac_cv_lib_dl_dlopen=yes |
| 11478 | else |
| 11479 | ac_cv_lib_dl_dlopen=no |
| 11480 | fi |
| 11481 | rm -f core conftest.err conftest.$ac_objext \ |
| 11482 | conftest$ac_exeext conftest.$ac_ext |
| 11483 | LIBS=$ac_check_lib_save_LIBS |
| 11484 | fi |
| 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11486 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11487 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11488 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11489 | else |
| 11490 | |
| 11491 | lt_cv_dlopen="dyld" |
| 11492 | lt_cv_dlopen_libs= |
| 11493 | lt_cv_dlopen_self=yes |
| 11494 | |
| 11495 | fi |
| 11496 | |
| 11497 | ;; |
| 11498 | |
| 11499 | *) |
| 11500 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11501 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11502 | lt_cv_dlopen="shl_load" |
| 11503 | else |
| 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11505 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11506 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11507 | $as_echo_n "(cached) " >&6 |
| 11508 | else |
| 11509 | ac_check_lib_save_LIBS=$LIBS |
| 11510 | LIBS="-ldld $LIBS" |
| 11511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11512 | /* end confdefs.h. */ |
| 11513 | |
| 11514 | /* Override any GCC internal prototype to avoid an error. |
| 11515 | Use char because int might match the return type of a GCC |
| 11516 | builtin and then its argument prototype would still apply. */ |
| 11517 | #ifdef __cplusplus |
| 11518 | extern "C" |
| 11519 | #endif |
| 11520 | char shl_load (); |
| 11521 | int |
| 11522 | main () |
| 11523 | { |
| 11524 | return shl_load (); |
| 11525 | ; |
| 11526 | return 0; |
| 11527 | } |
| 11528 | _ACEOF |
| 11529 | if ac_fn_c_try_link "$LINENO"; then : |
| 11530 | ac_cv_lib_dld_shl_load=yes |
| 11531 | else |
| 11532 | ac_cv_lib_dld_shl_load=no |
| 11533 | fi |
| 11534 | rm -f core conftest.err conftest.$ac_objext \ |
| 11535 | conftest$ac_exeext conftest.$ac_ext |
| 11536 | LIBS=$ac_check_lib_save_LIBS |
| 11537 | fi |
| 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11539 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11540 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11541 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11542 | else |
| 11543 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11544 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11545 | lt_cv_dlopen="dlopen" |
| 11546 | else |
| 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11548 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11549 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11550 | $as_echo_n "(cached) " >&6 |
| 11551 | else |
| 11552 | ac_check_lib_save_LIBS=$LIBS |
| 11553 | LIBS="-ldl $LIBS" |
| 11554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11555 | /* end confdefs.h. */ |
| 11556 | |
| 11557 | /* Override any GCC internal prototype to avoid an error. |
| 11558 | Use char because int might match the return type of a GCC |
| 11559 | builtin and then its argument prototype would still apply. */ |
| 11560 | #ifdef __cplusplus |
| 11561 | extern "C" |
| 11562 | #endif |
| 11563 | char dlopen (); |
| 11564 | int |
| 11565 | main () |
| 11566 | { |
| 11567 | return dlopen (); |
| 11568 | ; |
| 11569 | return 0; |
| 11570 | } |
| 11571 | _ACEOF |
| 11572 | if ac_fn_c_try_link "$LINENO"; then : |
| 11573 | ac_cv_lib_dl_dlopen=yes |
| 11574 | else |
| 11575 | ac_cv_lib_dl_dlopen=no |
| 11576 | fi |
| 11577 | rm -f core conftest.err conftest.$ac_objext \ |
| 11578 | conftest$ac_exeext conftest.$ac_ext |
| 11579 | LIBS=$ac_check_lib_save_LIBS |
| 11580 | fi |
| 11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11582 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11583 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11584 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11585 | else |
| 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11587 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11588 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11589 | $as_echo_n "(cached) " >&6 |
| 11590 | else |
| 11591 | ac_check_lib_save_LIBS=$LIBS |
| 11592 | LIBS="-lsvld $LIBS" |
| 11593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11594 | /* end confdefs.h. */ |
| 11595 | |
| 11596 | /* Override any GCC internal prototype to avoid an error. |
| 11597 | Use char because int might match the return type of a GCC |
| 11598 | builtin and then its argument prototype would still apply. */ |
| 11599 | #ifdef __cplusplus |
| 11600 | extern "C" |
| 11601 | #endif |
| 11602 | char dlopen (); |
| 11603 | int |
| 11604 | main () |
| 11605 | { |
| 11606 | return dlopen (); |
| 11607 | ; |
| 11608 | return 0; |
| 11609 | } |
| 11610 | _ACEOF |
| 11611 | if ac_fn_c_try_link "$LINENO"; then : |
| 11612 | ac_cv_lib_svld_dlopen=yes |
| 11613 | else |
| 11614 | ac_cv_lib_svld_dlopen=no |
| 11615 | fi |
| 11616 | rm -f core conftest.err conftest.$ac_objext \ |
| 11617 | conftest$ac_exeext conftest.$ac_ext |
| 11618 | LIBS=$ac_check_lib_save_LIBS |
| 11619 | fi |
| 11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11621 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11622 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11623 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11624 | else |
| 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11626 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11627 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11628 | $as_echo_n "(cached) " >&6 |
| 11629 | else |
| 11630 | ac_check_lib_save_LIBS=$LIBS |
| 11631 | LIBS="-ldld $LIBS" |
| 11632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11633 | /* end confdefs.h. */ |
| 11634 | |
| 11635 | /* Override any GCC internal prototype to avoid an error. |
| 11636 | Use char because int might match the return type of a GCC |
| 11637 | builtin and then its argument prototype would still apply. */ |
| 11638 | #ifdef __cplusplus |
| 11639 | extern "C" |
| 11640 | #endif |
| 11641 | char dld_link (); |
| 11642 | int |
| 11643 | main () |
| 11644 | { |
| 11645 | return dld_link (); |
| 11646 | ; |
| 11647 | return 0; |
| 11648 | } |
| 11649 | _ACEOF |
| 11650 | if ac_fn_c_try_link "$LINENO"; then : |
| 11651 | ac_cv_lib_dld_dld_link=yes |
| 11652 | else |
| 11653 | ac_cv_lib_dld_dld_link=no |
| 11654 | fi |
| 11655 | rm -f core conftest.err conftest.$ac_objext \ |
| 11656 | conftest$ac_exeext conftest.$ac_ext |
| 11657 | LIBS=$ac_check_lib_save_LIBS |
| 11658 | fi |
| 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11660 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11661 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11662 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11663 | fi |
| 11664 | |
| 11665 | |
| 11666 | fi |
| 11667 | |
| 11668 | |
| 11669 | fi |
| 11670 | |
| 11671 | |
| 11672 | fi |
| 11673 | |
| 11674 | |
| 11675 | fi |
| 11676 | |
| 11677 | |
| 11678 | fi |
| 11679 | |
| 11680 | ;; |
| 11681 | esac |
| 11682 | |
| 11683 | if test "x$lt_cv_dlopen" != xno; then |
| 11684 | enable_dlopen=yes |
| 11685 | else |
| 11686 | enable_dlopen=no |
| 11687 | fi |
| 11688 | |
| 11689 | case $lt_cv_dlopen in |
| 11690 | dlopen) |
| 11691 | save_CPPFLAGS="$CPPFLAGS" |
| 11692 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11693 | |
| 11694 | save_LDFLAGS="$LDFLAGS" |
| 11695 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11696 | |
| 11697 | save_LIBS="$LIBS" |
| 11698 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11699 | |
| 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11701 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11702 | if ${lt_cv_dlopen_self+:} false; then : |
| 11703 | $as_echo_n "(cached) " >&6 |
| 11704 | else |
| 11705 | if test "$cross_compiling" = yes; then : |
| 11706 | lt_cv_dlopen_self=cross |
| 11707 | else |
| 11708 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11709 | lt_status=$lt_dlunknown |
| 11710 | cat > conftest.$ac_ext <<_LT_EOF |
| 11711 | #line $LINENO "configure" |
| 11712 | #include "confdefs.h" |
| 11713 | |
| 11714 | #if HAVE_DLFCN_H |
| 11715 | #include <dlfcn.h> |
| 11716 | #endif |
| 11717 | |
| 11718 | #include <stdio.h> |
| 11719 | |
| 11720 | #ifdef RTLD_GLOBAL |
| 11721 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11722 | #else |
| 11723 | # ifdef DL_GLOBAL |
| 11724 | # define LT_DLGLOBAL DL_GLOBAL |
| 11725 | # else |
| 11726 | # define LT_DLGLOBAL 0 |
| 11727 | # endif |
| 11728 | #endif |
| 11729 | |
| 11730 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11731 | find out it does not work in some platform. */ |
| 11732 | #ifndef LT_DLLAZY_OR_NOW |
| 11733 | # ifdef RTLD_LAZY |
| 11734 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11735 | # else |
| 11736 | # ifdef DL_LAZY |
| 11737 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11738 | # else |
| 11739 | # ifdef RTLD_NOW |
| 11740 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11741 | # else |
| 11742 | # ifdef DL_NOW |
| 11743 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11744 | # else |
| 11745 | # define LT_DLLAZY_OR_NOW 0 |
| 11746 | # endif |
| 11747 | # endif |
| 11748 | # endif |
| 11749 | # endif |
| 11750 | #endif |
| 11751 | |
| 11752 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11753 | correspondingly for the symbols needed. */ |
| 11754 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11755 | int fnord () __attribute__((visibility("default"))); |
| 11756 | #endif |
| 11757 | |
| 11758 | int fnord () { return 42; } |
| 11759 | int main () |
| 11760 | { |
| 11761 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11762 | int status = $lt_dlunknown; |
| 11763 | |
| 11764 | if (self) |
| 11765 | { |
| 11766 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11767 | else |
| 11768 | { |
| 11769 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11770 | else puts (dlerror ()); |
| 11771 | } |
| 11772 | /* dlclose (self); */ |
| 11773 | } |
| 11774 | else |
| 11775 | puts (dlerror ()); |
| 11776 | |
| 11777 | return status; |
| 11778 | } |
| 11779 | _LT_EOF |
| 11780 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11781 | (eval $ac_link) 2>&5 |
| 11782 | ac_status=$? |
| 11783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11784 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11785 | (./conftest; exit; ) >&5 2>/dev/null |
| 11786 | lt_status=$? |
| 11787 | case x$lt_status in |
| 11788 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11789 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11790 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11791 | esac |
| 11792 | else : |
| 11793 | # compilation failed |
| 11794 | lt_cv_dlopen_self=no |
| 11795 | fi |
| 11796 | fi |
| 11797 | rm -fr conftest* |
| 11798 | |
| 11799 | |
| 11800 | fi |
| 11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11802 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11803 | |
| 11804 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11805 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11807 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11808 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11809 | $as_echo_n "(cached) " >&6 |
| 11810 | else |
| 11811 | if test "$cross_compiling" = yes; then : |
| 11812 | lt_cv_dlopen_self_static=cross |
| 11813 | else |
| 11814 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11815 | lt_status=$lt_dlunknown |
| 11816 | cat > conftest.$ac_ext <<_LT_EOF |
| 11817 | #line $LINENO "configure" |
| 11818 | #include "confdefs.h" |
| 11819 | |
| 11820 | #if HAVE_DLFCN_H |
| 11821 | #include <dlfcn.h> |
| 11822 | #endif |
| 11823 | |
| 11824 | #include <stdio.h> |
| 11825 | |
| 11826 | #ifdef RTLD_GLOBAL |
| 11827 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11828 | #else |
| 11829 | # ifdef DL_GLOBAL |
| 11830 | # define LT_DLGLOBAL DL_GLOBAL |
| 11831 | # else |
| 11832 | # define LT_DLGLOBAL 0 |
| 11833 | # endif |
| 11834 | #endif |
| 11835 | |
| 11836 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11837 | find out it does not work in some platform. */ |
| 11838 | #ifndef LT_DLLAZY_OR_NOW |
| 11839 | # ifdef RTLD_LAZY |
| 11840 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11841 | # else |
| 11842 | # ifdef DL_LAZY |
| 11843 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11844 | # else |
| 11845 | # ifdef RTLD_NOW |
| 11846 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11847 | # else |
| 11848 | # ifdef DL_NOW |
| 11849 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11850 | # else |
| 11851 | # define LT_DLLAZY_OR_NOW 0 |
| 11852 | # endif |
| 11853 | # endif |
| 11854 | # endif |
| 11855 | # endif |
| 11856 | #endif |
| 11857 | |
| 11858 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11859 | correspondingly for the symbols needed. */ |
| 11860 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11861 | int fnord () __attribute__((visibility("default"))); |
| 11862 | #endif |
| 11863 | |
| 11864 | int fnord () { return 42; } |
| 11865 | int main () |
| 11866 | { |
| 11867 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11868 | int status = $lt_dlunknown; |
| 11869 | |
| 11870 | if (self) |
| 11871 | { |
| 11872 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11873 | else |
| 11874 | { |
| 11875 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11876 | else puts (dlerror ()); |
| 11877 | } |
| 11878 | /* dlclose (self); */ |
| 11879 | } |
| 11880 | else |
| 11881 | puts (dlerror ()); |
| 11882 | |
| 11883 | return status; |
| 11884 | } |
| 11885 | _LT_EOF |
| 11886 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11887 | (eval $ac_link) 2>&5 |
| 11888 | ac_status=$? |
| 11889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11890 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11891 | (./conftest; exit; ) >&5 2>/dev/null |
| 11892 | lt_status=$? |
| 11893 | case x$lt_status in |
| 11894 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11895 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11896 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11897 | esac |
| 11898 | else : |
| 11899 | # compilation failed |
| 11900 | lt_cv_dlopen_self_static=no |
| 11901 | fi |
| 11902 | fi |
| 11903 | rm -fr conftest* |
| 11904 | |
| 11905 | |
| 11906 | fi |
| 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11908 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 11909 | fi |
| 11910 | |
| 11911 | CPPFLAGS="$save_CPPFLAGS" |
| 11912 | LDFLAGS="$save_LDFLAGS" |
| 11913 | LIBS="$save_LIBS" |
| 11914 | ;; |
| 11915 | esac |
| 11916 | |
| 11917 | case $lt_cv_dlopen_self in |
| 11918 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11919 | *) enable_dlopen_self=unknown ;; |
| 11920 | esac |
| 11921 | |
| 11922 | case $lt_cv_dlopen_self_static in |
| 11923 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11924 | *) enable_dlopen_self_static=unknown ;; |
| 11925 | esac |
| 11926 | fi |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| 11942 | |
| 11943 | |
| 11944 | striplib= |
| 11945 | old_striplib= |
| 11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11947 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11948 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11949 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11950 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11952 | $as_echo "yes" >&6; } |
| 11953 | else |
| 11954 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11955 | case $host_os in |
| 11956 | darwin*) |
| 11957 | if test -n "$STRIP" ; then |
| 11958 | striplib="$STRIP -x" |
| 11959 | old_striplib="$STRIP -S" |
| 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11961 | $as_echo "yes" >&6; } |
| 11962 | else |
| 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11964 | $as_echo "no" >&6; } |
| 11965 | fi |
| 11966 | ;; |
| 11967 | *) |
| 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11969 | $as_echo "no" >&6; } |
| 11970 | ;; |
| 11971 | esac |
| 11972 | fi |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
| 11985 | # Report which library types will actually be built |
| 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11987 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11989 | $as_echo "$can_build_shared" >&6; } |
| 11990 | |
| 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11992 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11993 | test "$can_build_shared" = "no" && enable_shared=no |
| 11994 | |
| 11995 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11996 | # are all built from PIC. |
| 11997 | case $host_os in |
| 11998 | aix3*) |
| 11999 | test "$enable_shared" = yes && enable_static=no |
| 12000 | if test -n "$RANLIB"; then |
| 12001 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12002 | postinstall_cmds='$RANLIB $lib' |
| 12003 | fi |
| 12004 | ;; |
| 12005 | |
| 12006 | aix[4-9]*) |
| 12007 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12008 | test "$enable_shared" = yes && enable_static=no |
| 12009 | fi |
| 12010 | ;; |
| 12011 | esac |
| 12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 12013 | $as_echo "$enable_shared" >&6; } |
| 12014 | |
| 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12016 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12017 | # Make sure either enable_shared or enable_static is yes. |
| 12018 | test "$enable_shared" = yes || enable_static=yes |
| 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12020 | $as_echo "$enable_static" >&6; } |
| 12021 | |
| 12022 | |
| 12023 | |
| 12024 | |
| 12025 | fi |
| 12026 | ac_ext=c |
| 12027 | ac_cpp='$CPP $CPPFLAGS' |
| 12028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12031 | |
| 12032 | CC="$lt_save_CC" |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
| 12045 | |
| 12046 | |
| 12047 | |
| 12048 | ac_config_commands="$ac_config_commands libtool" |
| 12049 | |
| 12050 | |
| 12051 | |
| 12052 | |
| 12053 | # Only expand once: |
| 12054 | |
| 12055 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame^] | 12056 | |
| 12057 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 12058 | ac_ext=cpp |
| 12059 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12060 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12061 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12062 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12063 | if test -z "$CXX"; then |
| 12064 | if test -n "$CCC"; then |
| 12065 | CXX=$CCC |
| 12066 | else |
| 12067 | if test -n "$ac_tool_prefix"; then |
| 12068 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12069 | do |
| 12070 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12071 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12073 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12074 | if ${ac_cv_prog_CXX+:} false; then : |
| 12075 | $as_echo_n "(cached) " >&6 |
| 12076 | else |
| 12077 | if test -n "$CXX"; then |
| 12078 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 12079 | else |
| 12080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12081 | for as_dir in $PATH |
| 12082 | do |
| 12083 | IFS=$as_save_IFS |
| 12084 | test -z "$as_dir" && as_dir=. |
| 12085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12087 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 12088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12089 | break 2 |
| 12090 | fi |
| 12091 | done |
| 12092 | done |
| 12093 | IFS=$as_save_IFS |
| 12094 | |
| 12095 | fi |
| 12096 | fi |
| 12097 | CXX=$ac_cv_prog_CXX |
| 12098 | if test -n "$CXX"; then |
| 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 12100 | $as_echo "$CXX" >&6; } |
| 12101 | else |
| 12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12103 | $as_echo "no" >&6; } |
| 12104 | fi |
| 12105 | |
| 12106 | |
| 12107 | test -n "$CXX" && break |
| 12108 | done |
| 12109 | fi |
| 12110 | if test -z "$CXX"; then |
| 12111 | ac_ct_CXX=$CXX |
| 12112 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12113 | do |
| 12114 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12115 | set dummy $ac_prog; ac_word=$2 |
| 12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12117 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12118 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 12119 | $as_echo_n "(cached) " >&6 |
| 12120 | else |
| 12121 | if test -n "$ac_ct_CXX"; then |
| 12122 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 12123 | else |
| 12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12125 | for as_dir in $PATH |
| 12126 | do |
| 12127 | IFS=$as_save_IFS |
| 12128 | test -z "$as_dir" && as_dir=. |
| 12129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12130 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12131 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 12132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12133 | break 2 |
| 12134 | fi |
| 12135 | done |
| 12136 | done |
| 12137 | IFS=$as_save_IFS |
| 12138 | |
| 12139 | fi |
| 12140 | fi |
| 12141 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 12142 | if test -n "$ac_ct_CXX"; then |
| 12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 12144 | $as_echo "$ac_ct_CXX" >&6; } |
| 12145 | else |
| 12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12147 | $as_echo "no" >&6; } |
| 12148 | fi |
| 12149 | |
| 12150 | |
| 12151 | test -n "$ac_ct_CXX" && break |
| 12152 | done |
| 12153 | |
| 12154 | if test "x$ac_ct_CXX" = x; then |
| 12155 | CXX="g++" |
| 12156 | else |
| 12157 | case $cross_compiling:$ac_tool_warned in |
| 12158 | yes:) |
| 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12161 | ac_tool_warned=yes ;; |
| 12162 | esac |
| 12163 | CXX=$ac_ct_CXX |
| 12164 | fi |
| 12165 | fi |
| 12166 | |
| 12167 | fi |
| 12168 | fi |
| 12169 | # Provide some information about the compiler. |
| 12170 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 12171 | set X $ac_compile |
| 12172 | ac_compiler=$2 |
| 12173 | for ac_option in --version -v -V -qversion; do |
| 12174 | { { ac_try="$ac_compiler $ac_option >&5" |
| 12175 | case "(($ac_try" in |
| 12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12177 | *) ac_try_echo=$ac_try;; |
| 12178 | esac |
| 12179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12180 | $as_echo "$ac_try_echo"; } >&5 |
| 12181 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 12182 | ac_status=$? |
| 12183 | if test -s conftest.err; then |
| 12184 | sed '10a\ |
| 12185 | ... rest of stderr output deleted ... |
| 12186 | 10q' conftest.err >conftest.er1 |
| 12187 | cat conftest.er1 >&5 |
| 12188 | fi |
| 12189 | rm -f conftest.er1 conftest.err |
| 12190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12191 | test $ac_status = 0; } |
| 12192 | done |
| 12193 | |
| 12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 12195 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 12196 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 12197 | $as_echo_n "(cached) " >&6 |
| 12198 | else |
| 12199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12200 | /* end confdefs.h. */ |
| 12201 | |
| 12202 | int |
| 12203 | main () |
| 12204 | { |
| 12205 | #ifndef __GNUC__ |
| 12206 | choke me |
| 12207 | #endif |
| 12208 | |
| 12209 | ; |
| 12210 | return 0; |
| 12211 | } |
| 12212 | _ACEOF |
| 12213 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12214 | ac_compiler_gnu=yes |
| 12215 | else |
| 12216 | ac_compiler_gnu=no |
| 12217 | fi |
| 12218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12219 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 12220 | |
| 12221 | fi |
| 12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 12223 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 12224 | if test $ac_compiler_gnu = yes; then |
| 12225 | GXX=yes |
| 12226 | else |
| 12227 | GXX= |
| 12228 | fi |
| 12229 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 12230 | ac_save_CXXFLAGS=$CXXFLAGS |
| 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 12232 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 12233 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 12234 | $as_echo_n "(cached) " >&6 |
| 12235 | else |
| 12236 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 12237 | ac_cxx_werror_flag=yes |
| 12238 | ac_cv_prog_cxx_g=no |
| 12239 | CXXFLAGS="-g" |
| 12240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12241 | /* end confdefs.h. */ |
| 12242 | |
| 12243 | int |
| 12244 | main () |
| 12245 | { |
| 12246 | |
| 12247 | ; |
| 12248 | return 0; |
| 12249 | } |
| 12250 | _ACEOF |
| 12251 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12252 | ac_cv_prog_cxx_g=yes |
| 12253 | else |
| 12254 | CXXFLAGS="" |
| 12255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12256 | /* end confdefs.h. */ |
| 12257 | |
| 12258 | int |
| 12259 | main () |
| 12260 | { |
| 12261 | |
| 12262 | ; |
| 12263 | return 0; |
| 12264 | } |
| 12265 | _ACEOF |
| 12266 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12267 | |
| 12268 | else |
| 12269 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12270 | CXXFLAGS="-g" |
| 12271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12272 | /* end confdefs.h. */ |
| 12273 | |
| 12274 | int |
| 12275 | main () |
| 12276 | { |
| 12277 | |
| 12278 | ; |
| 12279 | return 0; |
| 12280 | } |
| 12281 | _ACEOF |
| 12282 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12283 | ac_cv_prog_cxx_g=yes |
| 12284 | fi |
| 12285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12286 | fi |
| 12287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12288 | fi |
| 12289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12290 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12291 | fi |
| 12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 12293 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 12294 | if test "$ac_test_CXXFLAGS" = set; then |
| 12295 | CXXFLAGS=$ac_save_CXXFLAGS |
| 12296 | elif test $ac_cv_prog_cxx_g = yes; then |
| 12297 | if test "$GXX" = yes; then |
| 12298 | CXXFLAGS="-g -O2" |
| 12299 | else |
| 12300 | CXXFLAGS="-g" |
| 12301 | fi |
| 12302 | else |
| 12303 | if test "$GXX" = yes; then |
| 12304 | CXXFLAGS="-O2" |
| 12305 | else |
| 12306 | CXXFLAGS= |
| 12307 | fi |
| 12308 | fi |
| 12309 | ac_ext=c |
| 12310 | ac_cpp='$CPP $CPPFLAGS' |
| 12311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12314 | |
| 12315 | depcc="$CXX" am_compiler_list= |
| 12316 | |
| 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 12318 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 12319 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 12320 | $as_echo_n "(cached) " >&6 |
| 12321 | else |
| 12322 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 12323 | # We make a subdir and do the tests there. Otherwise we can end up |
| 12324 | # making bogus files that we don't know about and never remove. For |
| 12325 | # instance it was reported that on HP-UX the gcc test will end up |
| 12326 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 12327 | # in D". |
| 12328 | rm -rf conftest.dir |
| 12329 | mkdir conftest.dir |
| 12330 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 12331 | # using a relative directory. |
| 12332 | cp "$am_depcomp" conftest.dir |
| 12333 | cd conftest.dir |
| 12334 | # We will build objects and dependencies in a subdirectory because |
| 12335 | # it helps to detect inapplicable dependency modes. For instance |
| 12336 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 12337 | # side effect of compilation, but ICC will put the dependencies in |
| 12338 | # the current directory while Tru64 will put them in the object |
| 12339 | # directory. |
| 12340 | mkdir sub |
| 12341 | |
| 12342 | am_cv_CXX_dependencies_compiler_type=none |
| 12343 | if test "$am_compiler_list" = ""; then |
| 12344 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 12345 | fi |
| 12346 | am__universal=false |
| 12347 | case " $depcc " in #( |
| 12348 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 12349 | esac |
| 12350 | |
| 12351 | for depmode in $am_compiler_list; do |
| 12352 | # Setup a source with many dependencies, because some compilers |
| 12353 | # like to wrap large dependency lists on column 80 (with \), and |
| 12354 | # we should not choose a depcomp mode which is confused by this. |
| 12355 | # |
| 12356 | # We need to recreate these files for each test, as the compiler may |
| 12357 | # overwrite some of them when testing with obscure command lines. |
| 12358 | # This happens at least with the AIX C compiler. |
| 12359 | : > sub/conftest.c |
| 12360 | for i in 1 2 3 4 5 6; do |
| 12361 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 12362 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 12363 | # Solaris 10 /bin/sh. |
| 12364 | echo '/* dummy */' > sub/conftst$i.h |
| 12365 | done |
| 12366 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 12367 | |
| 12368 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 12369 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 12370 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 12371 | # versions had trouble with output in subdirs. |
| 12372 | am__obj=sub/conftest.${OBJEXT-o} |
| 12373 | am__minus_obj="-o $am__obj" |
| 12374 | case $depmode in |
| 12375 | gcc) |
| 12376 | # This depmode causes a compiler race in universal mode. |
| 12377 | test "$am__universal" = false || continue |
| 12378 | ;; |
| 12379 | nosideeffect) |
| 12380 | # After this tag, mechanisms are not by side-effect, so they'll |
| 12381 | # only be used when explicitly requested. |
| 12382 | if test "x$enable_dependency_tracking" = xyes; then |
| 12383 | continue |
| 12384 | else |
| 12385 | break |
| 12386 | fi |
| 12387 | ;; |
| 12388 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 12389 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 12390 | # not run yet. These depmodes are late enough in the game, and |
| 12391 | # so weak that their functioning should not be impacted. |
| 12392 | am__obj=conftest.${OBJEXT-o} |
| 12393 | am__minus_obj= |
| 12394 | ;; |
| 12395 | none) break ;; |
| 12396 | esac |
| 12397 | if depmode=$depmode \ |
| 12398 | source=sub/conftest.c object=$am__obj \ |
| 12399 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 12400 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 12401 | >/dev/null 2>conftest.err && |
| 12402 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 12403 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 12404 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 12405 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 12406 | # icc doesn't choke on unknown options, it will just issue warnings |
| 12407 | # or remarks (even with -Werror). So we grep stderr for any message |
| 12408 | # that says an option was ignored or not supported. |
| 12409 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 12410 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 12411 | # The diagnosis changed in icc 8.0: |
| 12412 | # icc: Command line remark: option '-MP' not supported |
| 12413 | if (grep 'ignoring option' conftest.err || |
| 12414 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 12415 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 12416 | break |
| 12417 | fi |
| 12418 | fi |
| 12419 | done |
| 12420 | |
| 12421 | cd .. |
| 12422 | rm -rf conftest.dir |
| 12423 | else |
| 12424 | am_cv_CXX_dependencies_compiler_type=none |
| 12425 | fi |
| 12426 | |
| 12427 | fi |
| 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 12429 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 12430 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 12431 | |
| 12432 | if |
| 12433 | test "x$enable_dependency_tracking" != xno \ |
| 12434 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 12435 | am__fastdepCXX_TRUE= |
| 12436 | am__fastdepCXX_FALSE='#' |
| 12437 | else |
| 12438 | am__fastdepCXX_TRUE='#' |
| 12439 | am__fastdepCXX_FALSE= |
| 12440 | fi |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | func_stripname_cnf () |
| 12446 | { |
| 12447 | case ${2} in |
| 12448 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12449 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12450 | esac |
| 12451 | } # func_stripname_cnf |
| 12452 | |
| 12453 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12454 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12455 | (test "X$CXX" != "Xg++"))) ; then |
| 12456 | ac_ext=cpp |
| 12457 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12462 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12463 | if test -z "$CXXCPP"; then |
| 12464 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 12465 | $as_echo_n "(cached) " >&6 |
| 12466 | else |
| 12467 | # Double quotes because CXXCPP needs to be expanded |
| 12468 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12469 | do |
| 12470 | ac_preproc_ok=false |
| 12471 | for ac_cxx_preproc_warn_flag in '' yes |
| 12472 | do |
| 12473 | # Use a header file that comes with gcc, so configuring glibc |
| 12474 | # with a fresh cross-compiler works. |
| 12475 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12476 | # <limits.h> exists even on freestanding compilers. |
| 12477 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12478 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12480 | /* end confdefs.h. */ |
| 12481 | #ifdef __STDC__ |
| 12482 | # include <limits.h> |
| 12483 | #else |
| 12484 | # include <assert.h> |
| 12485 | #endif |
| 12486 | Syntax error |
| 12487 | _ACEOF |
| 12488 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12489 | |
| 12490 | else |
| 12491 | # Broken: fails on valid input. |
| 12492 | continue |
| 12493 | fi |
| 12494 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12495 | |
| 12496 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12497 | # can be detected and how. |
| 12498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12499 | /* end confdefs.h. */ |
| 12500 | #include <ac_nonexistent.h> |
| 12501 | _ACEOF |
| 12502 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12503 | # Broken: success on invalid input. |
| 12504 | continue |
| 12505 | else |
| 12506 | # Passes both tests. |
| 12507 | ac_preproc_ok=: |
| 12508 | break |
| 12509 | fi |
| 12510 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12511 | |
| 12512 | done |
| 12513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12514 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12515 | if $ac_preproc_ok; then : |
| 12516 | break |
| 12517 | fi |
| 12518 | |
| 12519 | done |
| 12520 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12521 | |
| 12522 | fi |
| 12523 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12524 | else |
| 12525 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12526 | fi |
| 12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12528 | $as_echo "$CXXCPP" >&6; } |
| 12529 | ac_preproc_ok=false |
| 12530 | for ac_cxx_preproc_warn_flag in '' yes |
| 12531 | do |
| 12532 | # Use a header file that comes with gcc, so configuring glibc |
| 12533 | # with a fresh cross-compiler works. |
| 12534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12535 | # <limits.h> exists even on freestanding compilers. |
| 12536 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12537 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12539 | /* end confdefs.h. */ |
| 12540 | #ifdef __STDC__ |
| 12541 | # include <limits.h> |
| 12542 | #else |
| 12543 | # include <assert.h> |
| 12544 | #endif |
| 12545 | Syntax error |
| 12546 | _ACEOF |
| 12547 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12548 | |
| 12549 | else |
| 12550 | # Broken: fails on valid input. |
| 12551 | continue |
| 12552 | fi |
| 12553 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12554 | |
| 12555 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12556 | # can be detected and how. |
| 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12558 | /* end confdefs.h. */ |
| 12559 | #include <ac_nonexistent.h> |
| 12560 | _ACEOF |
| 12561 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12562 | # Broken: success on invalid input. |
| 12563 | continue |
| 12564 | else |
| 12565 | # Passes both tests. |
| 12566 | ac_preproc_ok=: |
| 12567 | break |
| 12568 | fi |
| 12569 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12570 | |
| 12571 | done |
| 12572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12573 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12574 | if $ac_preproc_ok; then : |
| 12575 | |
| 12576 | else |
| 12577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12579 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12580 | See \`config.log' for more details" "$LINENO" 5; } |
| 12581 | fi |
| 12582 | |
| 12583 | ac_ext=c |
| 12584 | ac_cpp='$CPP $CPPFLAGS' |
| 12585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12588 | |
| 12589 | else |
| 12590 | _lt_caught_CXX_error=yes |
| 12591 | fi |
| 12592 | |
| 12593 | ac_ext=cpp |
| 12594 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12598 | |
| 12599 | archive_cmds_need_lc_CXX=no |
| 12600 | allow_undefined_flag_CXX= |
| 12601 | always_export_symbols_CXX=no |
| 12602 | archive_expsym_cmds_CXX= |
| 12603 | compiler_needs_object_CXX=no |
| 12604 | export_dynamic_flag_spec_CXX= |
| 12605 | hardcode_direct_CXX=no |
| 12606 | hardcode_direct_absolute_CXX=no |
| 12607 | hardcode_libdir_flag_spec_CXX= |
| 12608 | hardcode_libdir_separator_CXX= |
| 12609 | hardcode_minus_L_CXX=no |
| 12610 | hardcode_shlibpath_var_CXX=unsupported |
| 12611 | hardcode_automatic_CXX=no |
| 12612 | inherit_rpath_CXX=no |
| 12613 | module_cmds_CXX= |
| 12614 | module_expsym_cmds_CXX= |
| 12615 | link_all_deplibs_CXX=unknown |
| 12616 | old_archive_cmds_CXX=$old_archive_cmds |
| 12617 | reload_flag_CXX=$reload_flag |
| 12618 | reload_cmds_CXX=$reload_cmds |
| 12619 | no_undefined_flag_CXX= |
| 12620 | whole_archive_flag_spec_CXX= |
| 12621 | enable_shared_with_static_runtimes_CXX=no |
| 12622 | |
| 12623 | # Source file extension for C++ test sources. |
| 12624 | ac_ext=cpp |
| 12625 | |
| 12626 | # Object file extension for compiled C++ test sources. |
| 12627 | objext=o |
| 12628 | objext_CXX=$objext |
| 12629 | |
| 12630 | # No sense in running all these tests if we already determined that |
| 12631 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12632 | # are currently assumed to apply to all compilers on this platform, |
| 12633 | # and will be corrupted by setting them based on a non-working compiler. |
| 12634 | if test "$_lt_caught_CXX_error" != yes; then |
| 12635 | # Code to be used in simple compile tests |
| 12636 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12637 | |
| 12638 | # Code to be used in simple link tests |
| 12639 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 12640 | |
| 12641 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12642 | |
| 12643 | |
| 12644 | |
| 12645 | |
| 12646 | |
| 12647 | |
| 12648 | # If no C compiler was specified, use CC. |
| 12649 | LTCC=${LTCC-"$CC"} |
| 12650 | |
| 12651 | # If no C compiler flags were specified, use CFLAGS. |
| 12652 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12653 | |
| 12654 | # Allow CC to be a program name with arguments. |
| 12655 | compiler=$CC |
| 12656 | |
| 12657 | |
| 12658 | # save warnings/boilerplate of simple test code |
| 12659 | ac_outfile=conftest.$ac_objext |
| 12660 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12661 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12662 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12663 | $RM conftest* |
| 12664 | |
| 12665 | ac_outfile=conftest.$ac_objext |
| 12666 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12667 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12668 | _lt_linker_boilerplate=`cat conftest.err` |
| 12669 | $RM -r conftest* |
| 12670 | |
| 12671 | |
| 12672 | # Allow CC to be a program name with arguments. |
| 12673 | lt_save_CC=$CC |
| 12674 | lt_save_CFLAGS=$CFLAGS |
| 12675 | lt_save_LD=$LD |
| 12676 | lt_save_GCC=$GCC |
| 12677 | GCC=$GXX |
| 12678 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12679 | lt_save_path_LD=$lt_cv_path_LD |
| 12680 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12681 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12682 | else |
| 12683 | $as_unset lt_cv_prog_gnu_ld |
| 12684 | fi |
| 12685 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12686 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12687 | else |
| 12688 | $as_unset lt_cv_path_LD |
| 12689 | fi |
| 12690 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12691 | CC=${CXX-"c++"} |
| 12692 | CFLAGS=$CXXFLAGS |
| 12693 | compiler=$CC |
| 12694 | compiler_CXX=$CC |
| 12695 | for cc_temp in $compiler""; do |
| 12696 | case $cc_temp in |
| 12697 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12698 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12699 | \-*) ;; |
| 12700 | *) break;; |
| 12701 | esac |
| 12702 | done |
| 12703 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12704 | |
| 12705 | |
| 12706 | if test -n "$compiler"; then |
| 12707 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12708 | # no_builtin_flag separately |
| 12709 | if test "$GXX" = yes; then |
| 12710 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12711 | else |
| 12712 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12713 | fi |
| 12714 | |
| 12715 | if test "$GXX" = yes; then |
| 12716 | # Set up default GNU C++ configuration |
| 12717 | |
| 12718 | |
| 12719 | |
| 12720 | # Check whether --with-gnu-ld was given. |
| 12721 | if test "${with_gnu_ld+set}" = set; then : |
| 12722 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 12723 | else |
| 12724 | with_gnu_ld=no |
| 12725 | fi |
| 12726 | |
| 12727 | ac_prog=ld |
| 12728 | if test "$GCC" = yes; then |
| 12729 | # Check if gcc -print-prog-name=ld gives a path. |
| 12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 12731 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 12732 | case $host in |
| 12733 | *-*-mingw*) |
| 12734 | # gcc leaves a trailing carriage return which upsets mingw |
| 12735 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12736 | *) |
| 12737 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12738 | esac |
| 12739 | case $ac_prog in |
| 12740 | # Accept absolute paths. |
| 12741 | [\\/]* | ?:[\\/]*) |
| 12742 | re_direlt='/[^/][^/]*/\.\./' |
| 12743 | # Canonicalize the pathname of ld |
| 12744 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 12745 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 12746 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 12747 | done |
| 12748 | test -z "$LD" && LD="$ac_prog" |
| 12749 | ;; |
| 12750 | "") |
| 12751 | # If it fails, then pretend we aren't using GCC. |
| 12752 | ac_prog=ld |
| 12753 | ;; |
| 12754 | *) |
| 12755 | # If it is relative, then search for the first ld in PATH. |
| 12756 | with_gnu_ld=unknown |
| 12757 | ;; |
| 12758 | esac |
| 12759 | elif test "$with_gnu_ld" = yes; then |
| 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 12761 | $as_echo_n "checking for GNU ld... " >&6; } |
| 12762 | else |
| 12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 12764 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 12765 | fi |
| 12766 | if ${lt_cv_path_LD+:} false; then : |
| 12767 | $as_echo_n "(cached) " >&6 |
| 12768 | else |
| 12769 | if test -z "$LD"; then |
| 12770 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12771 | for ac_dir in $PATH; do |
| 12772 | IFS="$lt_save_ifs" |
| 12773 | test -z "$ac_dir" && ac_dir=. |
| 12774 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12775 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12776 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 12777 | # but apparently some variants of GNU ld only accept -v. |
| 12778 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12779 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12780 | *GNU* | *'with BFD'*) |
| 12781 | test "$with_gnu_ld" != no && break |
| 12782 | ;; |
| 12783 | *) |
| 12784 | test "$with_gnu_ld" != yes && break |
| 12785 | ;; |
| 12786 | esac |
| 12787 | fi |
| 12788 | done |
| 12789 | IFS="$lt_save_ifs" |
| 12790 | else |
| 12791 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12792 | fi |
| 12793 | fi |
| 12794 | |
| 12795 | LD="$lt_cv_path_LD" |
| 12796 | if test -n "$LD"; then |
| 12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 12798 | $as_echo "$LD" >&6; } |
| 12799 | else |
| 12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12801 | $as_echo "no" >&6; } |
| 12802 | fi |
| 12803 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 12805 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 12806 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 12807 | $as_echo_n "(cached) " >&6 |
| 12808 | else |
| 12809 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 12810 | case `$LD -v 2>&1 </dev/null` in |
| 12811 | *GNU* | *'with BFD'*) |
| 12812 | lt_cv_prog_gnu_ld=yes |
| 12813 | ;; |
| 12814 | *) |
| 12815 | lt_cv_prog_gnu_ld=no |
| 12816 | ;; |
| 12817 | esac |
| 12818 | fi |
| 12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 12820 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 12821 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12822 | |
| 12823 | |
| 12824 | |
| 12825 | |
| 12826 | |
| 12827 | |
| 12828 | |
| 12829 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12830 | # archiving commands below assume that GNU ld is being used. |
| 12831 | if test "$with_gnu_ld" = yes; then |
| 12832 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12833 | 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' |
| 12834 | |
| 12835 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12836 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12837 | |
| 12838 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12839 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12840 | # investigate it a little bit more. (MM) |
| 12841 | wlarc='${wl}' |
| 12842 | |
| 12843 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12844 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 12845 | $GREP 'no-whole-archive' > /dev/null; then |
| 12846 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12847 | else |
| 12848 | whole_archive_flag_spec_CXX= |
| 12849 | fi |
| 12850 | else |
| 12851 | with_gnu_ld=no |
| 12852 | wlarc= |
| 12853 | |
| 12854 | # A generic and very simple default shared library creation |
| 12855 | # command for GNU C++ for the case where it uses the native |
| 12856 | # linker, instead of GNU ld. If possible, this setting should |
| 12857 | # overridden to take advantage of the native linker features on |
| 12858 | # the platform it is being used on. |
| 12859 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12860 | fi |
| 12861 | |
| 12862 | # Commands to make compiler produce verbose output that lists |
| 12863 | # what "hidden" libraries, object files and flags are used when |
| 12864 | # linking a shared library. |
| 12865 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12866 | |
| 12867 | else |
| 12868 | GXX=no |
| 12869 | with_gnu_ld=no |
| 12870 | wlarc= |
| 12871 | fi |
| 12872 | |
| 12873 | # PORTME: fill in a description of your system's C++ link characteristics |
| 12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12875 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12876 | ld_shlibs_CXX=yes |
| 12877 | case $host_os in |
| 12878 | aix3*) |
| 12879 | # FIXME: insert proper C++ library support |
| 12880 | ld_shlibs_CXX=no |
| 12881 | ;; |
| 12882 | aix[4-9]*) |
| 12883 | if test "$host_cpu" = ia64; then |
| 12884 | # On IA64, the linker does run time linking by default, so we don't |
| 12885 | # have to do anything special. |
| 12886 | aix_use_runtimelinking=no |
| 12887 | exp_sym_flag='-Bexport' |
| 12888 | no_entry_flag="" |
| 12889 | else |
| 12890 | aix_use_runtimelinking=no |
| 12891 | |
| 12892 | # Test if we are trying to use run time linking or normal |
| 12893 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12894 | # need to do runtime linking. |
| 12895 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12896 | for ld_flag in $LDFLAGS; do |
| 12897 | case $ld_flag in |
| 12898 | *-brtl*) |
| 12899 | aix_use_runtimelinking=yes |
| 12900 | break |
| 12901 | ;; |
| 12902 | esac |
| 12903 | done |
| 12904 | ;; |
| 12905 | esac |
| 12906 | |
| 12907 | exp_sym_flag='-bexport' |
| 12908 | no_entry_flag='-bnoentry' |
| 12909 | fi |
| 12910 | |
| 12911 | # When large executables or shared objects are built, AIX ld can |
| 12912 | # have problems creating the table of contents. If linking a library |
| 12913 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12914 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12915 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12916 | |
| 12917 | archive_cmds_CXX='' |
| 12918 | hardcode_direct_CXX=yes |
| 12919 | hardcode_direct_absolute_CXX=yes |
| 12920 | hardcode_libdir_separator_CXX=':' |
| 12921 | link_all_deplibs_CXX=yes |
| 12922 | file_list_spec_CXX='${wl}-f,' |
| 12923 | |
| 12924 | if test "$GXX" = yes; then |
| 12925 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12926 | # We only want to do this on AIX 4.2 and lower, the check |
| 12927 | # below for broken collect2 doesn't work under 4.3+ |
| 12928 | collect2name=`${CC} -print-prog-name=collect2` |
| 12929 | if test -f "$collect2name" && |
| 12930 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12931 | then |
| 12932 | # We have reworked collect2 |
| 12933 | : |
| 12934 | else |
| 12935 | # We have old collect2 |
| 12936 | hardcode_direct_CXX=unsupported |
| 12937 | # It fails to find uninstalled libraries when the uninstalled |
| 12938 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12939 | # to unsupported forces relinking |
| 12940 | hardcode_minus_L_CXX=yes |
| 12941 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12942 | hardcode_libdir_separator_CXX= |
| 12943 | fi |
| 12944 | esac |
| 12945 | shared_flag='-shared' |
| 12946 | if test "$aix_use_runtimelinking" = yes; then |
| 12947 | shared_flag="$shared_flag "'${wl}-G' |
| 12948 | fi |
| 12949 | else |
| 12950 | # not using gcc |
| 12951 | if test "$host_cpu" = ia64; then |
| 12952 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12953 | # chokes on -Wl,-G. The following line is correct: |
| 12954 | shared_flag='-G' |
| 12955 | else |
| 12956 | if test "$aix_use_runtimelinking" = yes; then |
| 12957 | shared_flag='${wl}-G' |
| 12958 | else |
| 12959 | shared_flag='${wl}-bM:SRE' |
| 12960 | fi |
| 12961 | fi |
| 12962 | fi |
| 12963 | |
| 12964 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 12965 | # It seems that -bexpall does not export symbols beginning with |
| 12966 | # underscore (_), so it is better to generate a list of symbols to |
| 12967 | # export. |
| 12968 | always_export_symbols_CXX=yes |
| 12969 | if test "$aix_use_runtimelinking" = yes; then |
| 12970 | # Warning - without using the other runtime loading flags (-brtl), |
| 12971 | # -berok will link without error, but may produce a broken library. |
| 12972 | allow_undefined_flag_CXX='-berok' |
| 12973 | # Determine the default libpath from the value encoded in an empty |
| 12974 | # executable. |
| 12975 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 12976 | aix_libpath=$lt_cv_aix_libpath |
| 12977 | else |
| 12978 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 12979 | $as_echo_n "(cached) " >&6 |
| 12980 | else |
| 12981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12982 | /* end confdefs.h. */ |
| 12983 | |
| 12984 | int |
| 12985 | main () |
| 12986 | { |
| 12987 | |
| 12988 | ; |
| 12989 | return 0; |
| 12990 | } |
| 12991 | _ACEOF |
| 12992 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 12993 | |
| 12994 | lt_aix_libpath_sed=' |
| 12995 | /Import File Strings/,/^$/ { |
| 12996 | /^0/ { |
| 12997 | s/^0 *\([^ ]*\) *$/\1/ |
| 12998 | p |
| 12999 | } |
| 13000 | }' |
| 13001 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13002 | # Check for a 64-bit object if we didn't find anything. |
| 13003 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13004 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13005 | fi |
| 13006 | fi |
| 13007 | rm -f core conftest.err conftest.$ac_objext \ |
| 13008 | conftest$ac_exeext conftest.$ac_ext |
| 13009 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13010 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13011 | fi |
| 13012 | |
| 13013 | fi |
| 13014 | |
| 13015 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13016 | fi |
| 13017 | |
| 13018 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13019 | |
| 13020 | 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" |
| 13021 | else |
| 13022 | if test "$host_cpu" = ia64; then |
| 13023 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 13024 | allow_undefined_flag_CXX="-z nodefs" |
| 13025 | 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" |
| 13026 | else |
| 13027 | # Determine the default libpath from the value encoded in an |
| 13028 | # empty executable. |
| 13029 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13030 | aix_libpath=$lt_cv_aix_libpath |
| 13031 | else |
| 13032 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13033 | $as_echo_n "(cached) " >&6 |
| 13034 | else |
| 13035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13036 | /* end confdefs.h. */ |
| 13037 | |
| 13038 | int |
| 13039 | main () |
| 13040 | { |
| 13041 | |
| 13042 | ; |
| 13043 | return 0; |
| 13044 | } |
| 13045 | _ACEOF |
| 13046 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13047 | |
| 13048 | lt_aix_libpath_sed=' |
| 13049 | /Import File Strings/,/^$/ { |
| 13050 | /^0/ { |
| 13051 | s/^0 *\([^ ]*\) *$/\1/ |
| 13052 | p |
| 13053 | } |
| 13054 | }' |
| 13055 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13056 | # Check for a 64-bit object if we didn't find anything. |
| 13057 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13058 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13059 | fi |
| 13060 | fi |
| 13061 | rm -f core conftest.err conftest.$ac_objext \ |
| 13062 | conftest$ac_exeext conftest.$ac_ext |
| 13063 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13064 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13065 | fi |
| 13066 | |
| 13067 | fi |
| 13068 | |
| 13069 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13070 | fi |
| 13071 | |
| 13072 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13073 | # Warning - without using the other run time loading flags, |
| 13074 | # -berok will link without error, but may produce a broken library. |
| 13075 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 13076 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 13077 | if test "$with_gnu_ld" = yes; then |
| 13078 | # We only use this code for GNU lds that support --whole-archive. |
| 13079 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13080 | else |
| 13081 | # Exported symbols can be pulled into shared objects from archives |
| 13082 | whole_archive_flag_spec_CXX='$convenience' |
| 13083 | fi |
| 13084 | archive_cmds_need_lc_CXX=yes |
| 13085 | # This is similar to how AIX traditionally builds its shared |
| 13086 | # libraries. |
| 13087 | 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' |
| 13088 | fi |
| 13089 | fi |
| 13090 | ;; |
| 13091 | |
| 13092 | beos*) |
| 13093 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13094 | allow_undefined_flag_CXX=unsupported |
| 13095 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13096 | # support --undefined. This deserves some investigation. FIXME |
| 13097 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13098 | else |
| 13099 | ld_shlibs_CXX=no |
| 13100 | fi |
| 13101 | ;; |
| 13102 | |
| 13103 | chorus*) |
| 13104 | case $cc_basename in |
| 13105 | *) |
| 13106 | # FIXME: insert proper C++ library support |
| 13107 | ld_shlibs_CXX=no |
| 13108 | ;; |
| 13109 | esac |
| 13110 | ;; |
| 13111 | |
| 13112 | cygwin* | mingw* | pw32* | cegcc*) |
| 13113 | case $GXX,$cc_basename in |
| 13114 | ,cl* | no,cl*) |
| 13115 | # Native MSVC |
| 13116 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13117 | # no search path for DLLs. |
| 13118 | hardcode_libdir_flag_spec_CXX=' ' |
| 13119 | allow_undefined_flag_CXX=unsupported |
| 13120 | always_export_symbols_CXX=yes |
| 13121 | file_list_spec_CXX='@' |
| 13122 | # Tell ltmain to make .lib files, not .a files. |
| 13123 | libext=lib |
| 13124 | # Tell ltmain to make .dll files, not .so files. |
| 13125 | shrext_cmds=".dll" |
| 13126 | # FIXME: Setting linknames here is a bad hack. |
| 13127 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 13128 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13129 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 13130 | else |
| 13131 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 13132 | fi~ |
| 13133 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 13134 | linknames=' |
| 13135 | # The linker will not automatically build a static lib if we build a DLL. |
| 13136 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 13137 | enable_shared_with_static_runtimes_CXX=yes |
| 13138 | # Don't use ranlib |
| 13139 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 13140 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 13141 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 13142 | case $lt_outputfile in |
| 13143 | *.exe|*.EXE) ;; |
| 13144 | *) |
| 13145 | lt_outputfile="$lt_outputfile.exe" |
| 13146 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 13147 | ;; |
| 13148 | esac~ |
| 13149 | func_to_tool_file "$lt_outputfile"~ |
| 13150 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 13151 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 13152 | $RM "$lt_outputfile.manifest"; |
| 13153 | fi' |
| 13154 | ;; |
| 13155 | *) |
| 13156 | # g++ |
| 13157 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 13158 | # as there is no search path for DLLs. |
| 13159 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13160 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 13161 | allow_undefined_flag_CXX=unsupported |
| 13162 | always_export_symbols_CXX=no |
| 13163 | enable_shared_with_static_runtimes_CXX=yes |
| 13164 | |
| 13165 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13166 | 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' |
| 13167 | # If the export-symbols file already is a .def file (1st line |
| 13168 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13169 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13170 | cp $export_symbols $output_objdir/$soname.def; |
| 13171 | else |
| 13172 | echo EXPORTS > $output_objdir/$soname.def; |
| 13173 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13174 | fi~ |
| 13175 | $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' |
| 13176 | else |
| 13177 | ld_shlibs_CXX=no |
| 13178 | fi |
| 13179 | ;; |
| 13180 | esac |
| 13181 | ;; |
| 13182 | darwin* | rhapsody*) |
| 13183 | |
| 13184 | |
| 13185 | archive_cmds_need_lc_CXX=no |
| 13186 | hardcode_direct_CXX=no |
| 13187 | hardcode_automatic_CXX=yes |
| 13188 | hardcode_shlibpath_var_CXX=unsupported |
| 13189 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 13190 | 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\"`' |
| 13191 | |
| 13192 | else |
| 13193 | whole_archive_flag_spec_CXX='' |
| 13194 | fi |
| 13195 | link_all_deplibs_CXX=yes |
| 13196 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 13197 | case $cc_basename in |
| 13198 | ifort*) _lt_dar_can_shared=yes ;; |
| 13199 | *) _lt_dar_can_shared=$GCC ;; |
| 13200 | esac |
| 13201 | if test "$_lt_dar_can_shared" = "yes"; then |
| 13202 | output_verbose_link_cmd=func_echo_all |
| 13203 | 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}" |
| 13204 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 13205 | 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}" |
| 13206 | 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}" |
| 13207 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 13208 | 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}" |
| 13209 | 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}" |
| 13210 | fi |
| 13211 | |
| 13212 | else |
| 13213 | ld_shlibs_CXX=no |
| 13214 | fi |
| 13215 | |
| 13216 | ;; |
| 13217 | |
| 13218 | dgux*) |
| 13219 | case $cc_basename in |
| 13220 | ec++*) |
| 13221 | # FIXME: insert proper C++ library support |
| 13222 | ld_shlibs_CXX=no |
| 13223 | ;; |
| 13224 | ghcx*) |
| 13225 | # Green Hills C++ Compiler |
| 13226 | # FIXME: insert proper C++ library support |
| 13227 | ld_shlibs_CXX=no |
| 13228 | ;; |
| 13229 | *) |
| 13230 | # FIXME: insert proper C++ library support |
| 13231 | ld_shlibs_CXX=no |
| 13232 | ;; |
| 13233 | esac |
| 13234 | ;; |
| 13235 | |
| 13236 | freebsd2.*) |
| 13237 | # C++ shared libraries reported to be fairly broken before |
| 13238 | # switch to ELF |
| 13239 | ld_shlibs_CXX=no |
| 13240 | ;; |
| 13241 | |
| 13242 | freebsd-elf*) |
| 13243 | archive_cmds_need_lc_CXX=no |
| 13244 | ;; |
| 13245 | |
| 13246 | freebsd* | dragonfly*) |
| 13247 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 13248 | # conventions |
| 13249 | ld_shlibs_CXX=yes |
| 13250 | ;; |
| 13251 | |
| 13252 | gnu*) |
| 13253 | ;; |
| 13254 | |
| 13255 | haiku*) |
| 13256 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13257 | link_all_deplibs_CXX=yes |
| 13258 | ;; |
| 13259 | |
| 13260 | hpux9*) |
| 13261 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13262 | hardcode_libdir_separator_CXX=: |
| 13263 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13264 | hardcode_direct_CXX=yes |
| 13265 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13266 | # but as the default |
| 13267 | # location of the library. |
| 13268 | |
| 13269 | case $cc_basename in |
| 13270 | CC*) |
| 13271 | # FIXME: insert proper C++ library support |
| 13272 | ld_shlibs_CXX=no |
| 13273 | ;; |
| 13274 | aCC*) |
| 13275 | 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' |
| 13276 | # Commands to make compiler produce verbose output that lists |
| 13277 | # what "hidden" libraries, object files and flags are used when |
| 13278 | # linking a shared library. |
| 13279 | # |
| 13280 | # There doesn't appear to be a way to prevent this compiler from |
| 13281 | # explicitly linking system object files so we need to strip them |
| 13282 | # from the output so that they don't get included in the library |
| 13283 | # dependencies. |
| 13284 | 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"' |
| 13285 | ;; |
| 13286 | *) |
| 13287 | if test "$GXX" = yes; then |
| 13288 | 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' |
| 13289 | else |
| 13290 | # FIXME: insert proper C++ library support |
| 13291 | ld_shlibs_CXX=no |
| 13292 | fi |
| 13293 | ;; |
| 13294 | esac |
| 13295 | ;; |
| 13296 | |
| 13297 | hpux10*|hpux11*) |
| 13298 | if test $with_gnu_ld = no; then |
| 13299 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13300 | hardcode_libdir_separator_CXX=: |
| 13301 | |
| 13302 | case $host_cpu in |
| 13303 | hppa*64*|ia64*) |
| 13304 | ;; |
| 13305 | *) |
| 13306 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13307 | ;; |
| 13308 | esac |
| 13309 | fi |
| 13310 | case $host_cpu in |
| 13311 | hppa*64*|ia64*) |
| 13312 | hardcode_direct_CXX=no |
| 13313 | hardcode_shlibpath_var_CXX=no |
| 13314 | ;; |
| 13315 | *) |
| 13316 | hardcode_direct_CXX=yes |
| 13317 | hardcode_direct_absolute_CXX=yes |
| 13318 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13319 | # but as the default |
| 13320 | # location of the library. |
| 13321 | ;; |
| 13322 | esac |
| 13323 | |
| 13324 | case $cc_basename in |
| 13325 | CC*) |
| 13326 | # FIXME: insert proper C++ library support |
| 13327 | ld_shlibs_CXX=no |
| 13328 | ;; |
| 13329 | aCC*) |
| 13330 | case $host_cpu in |
| 13331 | hppa*64*) |
| 13332 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13333 | ;; |
| 13334 | ia64*) |
| 13335 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13336 | ;; |
| 13337 | *) |
| 13338 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13339 | ;; |
| 13340 | esac |
| 13341 | # Commands to make compiler produce verbose output that lists |
| 13342 | # what "hidden" libraries, object files and flags are used when |
| 13343 | # linking a shared library. |
| 13344 | # |
| 13345 | # There doesn't appear to be a way to prevent this compiler from |
| 13346 | # explicitly linking system object files so we need to strip them |
| 13347 | # from the output so that they don't get included in the library |
| 13348 | # dependencies. |
| 13349 | 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"' |
| 13350 | ;; |
| 13351 | *) |
| 13352 | if test "$GXX" = yes; then |
| 13353 | if test $with_gnu_ld = no; then |
| 13354 | case $host_cpu in |
| 13355 | hppa*64*) |
| 13356 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13357 | ;; |
| 13358 | ia64*) |
| 13359 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13360 | ;; |
| 13361 | *) |
| 13362 | 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' |
| 13363 | ;; |
| 13364 | esac |
| 13365 | fi |
| 13366 | else |
| 13367 | # FIXME: insert proper C++ library support |
| 13368 | ld_shlibs_CXX=no |
| 13369 | fi |
| 13370 | ;; |
| 13371 | esac |
| 13372 | ;; |
| 13373 | |
| 13374 | interix[3-9]*) |
| 13375 | hardcode_direct_CXX=no |
| 13376 | hardcode_shlibpath_var_CXX=no |
| 13377 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13378 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13379 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13380 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13381 | # default) and relocated if they conflict, which is a slow very memory |
| 13382 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13383 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13384 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13385 | 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' |
| 13386 | 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' |
| 13387 | ;; |
| 13388 | irix5* | irix6*) |
| 13389 | case $cc_basename in |
| 13390 | CC*) |
| 13391 | # SGI C++ |
| 13392 | 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' |
| 13393 | |
| 13394 | # Archives containing C++ object files must be created using |
| 13395 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13396 | # necessary to make sure instantiated templates are included |
| 13397 | # in the archive. |
| 13398 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13399 | ;; |
| 13400 | *) |
| 13401 | if test "$GXX" = yes; then |
| 13402 | if test "$with_gnu_ld" = no; then |
| 13403 | 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' |
| 13404 | else |
| 13405 | 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' |
| 13406 | fi |
| 13407 | fi |
| 13408 | link_all_deplibs_CXX=yes |
| 13409 | ;; |
| 13410 | esac |
| 13411 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13412 | hardcode_libdir_separator_CXX=: |
| 13413 | inherit_rpath_CXX=yes |
| 13414 | ;; |
| 13415 | |
| 13416 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13417 | case $cc_basename in |
| 13418 | KCC*) |
| 13419 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13420 | |
| 13421 | # KCC will only create a shared library if the output file |
| 13422 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13423 | # to its proper name (with version) after linking. |
| 13424 | 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' |
| 13425 | 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' |
| 13426 | # Commands to make compiler produce verbose output that lists |
| 13427 | # what "hidden" libraries, object files and flags are used when |
| 13428 | # linking a shared library. |
| 13429 | # |
| 13430 | # There doesn't appear to be a way to prevent this compiler from |
| 13431 | # explicitly linking system object files so we need to strip them |
| 13432 | # from the output so that they don't get included in the library |
| 13433 | # dependencies. |
| 13434 | 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"' |
| 13435 | |
| 13436 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13437 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13438 | |
| 13439 | # Archives containing C++ object files must be created using |
| 13440 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13441 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13442 | ;; |
| 13443 | icpc* | ecpc* ) |
| 13444 | # Intel C++ |
| 13445 | with_gnu_ld=yes |
| 13446 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13447 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13448 | # earlier do not add the objects themselves. |
| 13449 | case `$CC -V 2>&1` in |
| 13450 | *"Version 7."*) |
| 13451 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13452 | 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' |
| 13453 | ;; |
| 13454 | *) # Version 8.0 or newer |
| 13455 | tmp_idyn= |
| 13456 | case $host_cpu in |
| 13457 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13458 | esac |
| 13459 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13460 | 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' |
| 13461 | ;; |
| 13462 | esac |
| 13463 | archive_cmds_need_lc_CXX=no |
| 13464 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13465 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13466 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13467 | ;; |
| 13468 | pgCC* | pgcpp*) |
| 13469 | # Portland Group C++ compiler |
| 13470 | case `$CC -V` in |
| 13471 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 13472 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13473 | rm -rf $tpldir~ |
| 13474 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13475 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 13476 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13477 | rm -rf $tpldir~ |
| 13478 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13479 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 13480 | $RANLIB $oldlib' |
| 13481 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13482 | rm -rf $tpldir~ |
| 13483 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13484 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13485 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13486 | rm -rf $tpldir~ |
| 13487 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13488 | $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' |
| 13489 | ;; |
| 13490 | *) # Version 6 and above use weak symbols |
| 13491 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13492 | 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' |
| 13493 | ;; |
| 13494 | esac |
| 13495 | |
| 13496 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13497 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13498 | 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' |
| 13499 | ;; |
| 13500 | cxx*) |
| 13501 | # Compaq C++ |
| 13502 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13503 | 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' |
| 13504 | |
| 13505 | runpath_var=LD_RUN_PATH |
| 13506 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13507 | hardcode_libdir_separator_CXX=: |
| 13508 | |
| 13509 | # Commands to make compiler produce verbose output that lists |
| 13510 | # what "hidden" libraries, object files and flags are used when |
| 13511 | # linking a shared library. |
| 13512 | # |
| 13513 | # There doesn't appear to be a way to prevent this compiler from |
| 13514 | # explicitly linking system object files so we need to strip them |
| 13515 | # from the output so that they don't get included in the library |
| 13516 | # dependencies. |
| 13517 | 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' |
| 13518 | ;; |
| 13519 | xl* | mpixl* | bgxl*) |
| 13520 | # IBM XL 8.0 on PPC, with GNU ld |
| 13521 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13522 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13523 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13524 | if test "x$supports_anon_versioning" = xyes; then |
| 13525 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13526 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13527 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13528 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13529 | fi |
| 13530 | ;; |
| 13531 | *) |
| 13532 | case `$CC -V 2>&1 | sed 5q` in |
| 13533 | *Sun\ C*) |
| 13534 | # Sun C++ 5.9 |
| 13535 | no_undefined_flag_CXX=' -zdefs' |
| 13536 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13537 | 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' |
| 13538 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13539 | 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' |
| 13540 | compiler_needs_object_CXX=yes |
| 13541 | |
| 13542 | # Not sure whether something based on |
| 13543 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13544 | # would be better. |
| 13545 | output_verbose_link_cmd='func_echo_all' |
| 13546 | |
| 13547 | # Archives containing C++ object files must be created using |
| 13548 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13549 | # necessary to make sure instantiated templates are included |
| 13550 | # in the archive. |
| 13551 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13552 | ;; |
| 13553 | esac |
| 13554 | ;; |
| 13555 | esac |
| 13556 | ;; |
| 13557 | |
| 13558 | lynxos*) |
| 13559 | # FIXME: insert proper C++ library support |
| 13560 | ld_shlibs_CXX=no |
| 13561 | ;; |
| 13562 | |
| 13563 | m88k*) |
| 13564 | # FIXME: insert proper C++ library support |
| 13565 | ld_shlibs_CXX=no |
| 13566 | ;; |
| 13567 | |
| 13568 | mvs*) |
| 13569 | case $cc_basename in |
| 13570 | cxx*) |
| 13571 | # FIXME: insert proper C++ library support |
| 13572 | ld_shlibs_CXX=no |
| 13573 | ;; |
| 13574 | *) |
| 13575 | # FIXME: insert proper C++ library support |
| 13576 | ld_shlibs_CXX=no |
| 13577 | ;; |
| 13578 | esac |
| 13579 | ;; |
| 13580 | |
| 13581 | netbsd*) |
| 13582 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13583 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13584 | wlarc= |
| 13585 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13586 | hardcode_direct_CXX=yes |
| 13587 | hardcode_shlibpath_var_CXX=no |
| 13588 | fi |
| 13589 | # Workaround some broken pre-1.5 toolchains |
| 13590 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 13591 | ;; |
| 13592 | |
| 13593 | *nto* | *qnx*) |
| 13594 | ld_shlibs_CXX=yes |
| 13595 | ;; |
| 13596 | |
| 13597 | openbsd2*) |
| 13598 | # C++ shared libraries are fairly broken |
| 13599 | ld_shlibs_CXX=no |
| 13600 | ;; |
| 13601 | |
| 13602 | openbsd*) |
| 13603 | if test -f /usr/libexec/ld.so; then |
| 13604 | hardcode_direct_CXX=yes |
| 13605 | hardcode_shlibpath_var_CXX=no |
| 13606 | hardcode_direct_absolute_CXX=yes |
| 13607 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13608 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13609 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13610 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13611 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13612 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13613 | fi |
| 13614 | output_verbose_link_cmd=func_echo_all |
| 13615 | else |
| 13616 | ld_shlibs_CXX=no |
| 13617 | fi |
| 13618 | ;; |
| 13619 | |
| 13620 | osf3* | osf4* | osf5*) |
| 13621 | case $cc_basename in |
| 13622 | KCC*) |
| 13623 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13624 | |
| 13625 | # KCC will only create a shared library if the output file |
| 13626 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13627 | # to its proper name (with version) after linking. |
| 13628 | 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' |
| 13629 | |
| 13630 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13631 | hardcode_libdir_separator_CXX=: |
| 13632 | |
| 13633 | # Archives containing C++ object files must be created using |
| 13634 | # the KAI C++ compiler. |
| 13635 | case $host in |
| 13636 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13637 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13638 | esac |
| 13639 | ;; |
| 13640 | RCC*) |
| 13641 | # Rational C++ 2.4.1 |
| 13642 | # FIXME: insert proper C++ library support |
| 13643 | ld_shlibs_CXX=no |
| 13644 | ;; |
| 13645 | cxx*) |
| 13646 | case $host in |
| 13647 | osf3*) |
| 13648 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13649 | 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' |
| 13650 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13651 | ;; |
| 13652 | *) |
| 13653 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13654 | 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' |
| 13655 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13656 | echo "-hidden">> $lib.exp~ |
| 13657 | $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~ |
| 13658 | $RM $lib.exp' |
| 13659 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13660 | ;; |
| 13661 | esac |
| 13662 | |
| 13663 | hardcode_libdir_separator_CXX=: |
| 13664 | |
| 13665 | # Commands to make compiler produce verbose output that lists |
| 13666 | # what "hidden" libraries, object files and flags are used when |
| 13667 | # linking a shared library. |
| 13668 | # |
| 13669 | # There doesn't appear to be a way to prevent this compiler from |
| 13670 | # explicitly linking system object files so we need to strip them |
| 13671 | # from the output so that they don't get included in the library |
| 13672 | # dependencies. |
| 13673 | 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"' |
| 13674 | ;; |
| 13675 | *) |
| 13676 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13677 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13678 | case $host in |
| 13679 | osf3*) |
| 13680 | 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' |
| 13681 | ;; |
| 13682 | *) |
| 13683 | 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' |
| 13684 | ;; |
| 13685 | esac |
| 13686 | |
| 13687 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13688 | hardcode_libdir_separator_CXX=: |
| 13689 | |
| 13690 | # Commands to make compiler produce verbose output that lists |
| 13691 | # what "hidden" libraries, object files and flags are used when |
| 13692 | # linking a shared library. |
| 13693 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13694 | |
| 13695 | else |
| 13696 | # FIXME: insert proper C++ library support |
| 13697 | ld_shlibs_CXX=no |
| 13698 | fi |
| 13699 | ;; |
| 13700 | esac |
| 13701 | ;; |
| 13702 | |
| 13703 | psos*) |
| 13704 | # FIXME: insert proper C++ library support |
| 13705 | ld_shlibs_CXX=no |
| 13706 | ;; |
| 13707 | |
| 13708 | sunos4*) |
| 13709 | case $cc_basename in |
| 13710 | CC*) |
| 13711 | # Sun C++ 4.x |
| 13712 | # FIXME: insert proper C++ library support |
| 13713 | ld_shlibs_CXX=no |
| 13714 | ;; |
| 13715 | lcc*) |
| 13716 | # Lucid |
| 13717 | # FIXME: insert proper C++ library support |
| 13718 | ld_shlibs_CXX=no |
| 13719 | ;; |
| 13720 | *) |
| 13721 | # FIXME: insert proper C++ library support |
| 13722 | ld_shlibs_CXX=no |
| 13723 | ;; |
| 13724 | esac |
| 13725 | ;; |
| 13726 | |
| 13727 | solaris*) |
| 13728 | case $cc_basename in |
| 13729 | CC* | sunCC*) |
| 13730 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13731 | archive_cmds_need_lc_CXX=yes |
| 13732 | no_undefined_flag_CXX=' -zdefs' |
| 13733 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13734 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13735 | $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' |
| 13736 | |
| 13737 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13738 | hardcode_shlibpath_var_CXX=no |
| 13739 | case $host_os in |
| 13740 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13741 | *) |
| 13742 | # The compiler driver will combine and reorder linker options, |
| 13743 | # but understands `-z linker_flag'. |
| 13744 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13745 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13746 | ;; |
| 13747 | esac |
| 13748 | link_all_deplibs_CXX=yes |
| 13749 | |
| 13750 | output_verbose_link_cmd='func_echo_all' |
| 13751 | |
| 13752 | # Archives containing C++ object files must be created using |
| 13753 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13754 | # necessary to make sure instantiated templates are included |
| 13755 | # in the archive. |
| 13756 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13757 | ;; |
| 13758 | gcx*) |
| 13759 | # Green Hills C++ Compiler |
| 13760 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13761 | |
| 13762 | # The C++ compiler must be used to create the archive. |
| 13763 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 13764 | ;; |
| 13765 | *) |
| 13766 | # GNU C++ compiler with Solaris linker |
| 13767 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13768 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 13769 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 13770 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13771 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13772 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13773 | |
| 13774 | # Commands to make compiler produce verbose output that lists |
| 13775 | # what "hidden" libraries, object files and flags are used when |
| 13776 | # linking a shared library. |
| 13777 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13778 | else |
| 13779 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 13780 | # platform. |
| 13781 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13782 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13783 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13784 | |
| 13785 | # Commands to make compiler produce verbose output that lists |
| 13786 | # what "hidden" libraries, object files and flags are used when |
| 13787 | # linking a shared library. |
| 13788 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13789 | fi |
| 13790 | |
| 13791 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 13792 | case $host_os in |
| 13793 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13794 | *) |
| 13795 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13796 | ;; |
| 13797 | esac |
| 13798 | fi |
| 13799 | ;; |
| 13800 | esac |
| 13801 | ;; |
| 13802 | |
| 13803 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13804 | no_undefined_flag_CXX='${wl}-z,text' |
| 13805 | archive_cmds_need_lc_CXX=no |
| 13806 | hardcode_shlibpath_var_CXX=no |
| 13807 | runpath_var='LD_RUN_PATH' |
| 13808 | |
| 13809 | case $cc_basename in |
| 13810 | CC*) |
| 13811 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13812 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13813 | ;; |
| 13814 | *) |
| 13815 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13816 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13817 | ;; |
| 13818 | esac |
| 13819 | ;; |
| 13820 | |
| 13821 | sysv5* | sco3.2v5* | sco5v6*) |
| 13822 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13823 | # link with -lc, and that would cause any symbols used from libc to |
| 13824 | # always be unresolved, which means just about no library would |
| 13825 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13826 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13827 | # as -z defs. |
| 13828 | no_undefined_flag_CXX='${wl}-z,text' |
| 13829 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13830 | archive_cmds_need_lc_CXX=no |
| 13831 | hardcode_shlibpath_var_CXX=no |
| 13832 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 13833 | hardcode_libdir_separator_CXX=':' |
| 13834 | link_all_deplibs_CXX=yes |
| 13835 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13836 | runpath_var='LD_RUN_PATH' |
| 13837 | |
| 13838 | case $cc_basename in |
| 13839 | CC*) |
| 13840 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13841 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13842 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 13843 | '"$old_archive_cmds_CXX" |
| 13844 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 13845 | '"$reload_cmds_CXX" |
| 13846 | ;; |
| 13847 | *) |
| 13848 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13849 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13850 | ;; |
| 13851 | esac |
| 13852 | ;; |
| 13853 | |
| 13854 | tandem*) |
| 13855 | case $cc_basename in |
| 13856 | NCC*) |
| 13857 | # NonStop-UX NCC 3.20 |
| 13858 | # FIXME: insert proper C++ library support |
| 13859 | ld_shlibs_CXX=no |
| 13860 | ;; |
| 13861 | *) |
| 13862 | # FIXME: insert proper C++ library support |
| 13863 | ld_shlibs_CXX=no |
| 13864 | ;; |
| 13865 | esac |
| 13866 | ;; |
| 13867 | |
| 13868 | vxworks*) |
| 13869 | # FIXME: insert proper C++ library support |
| 13870 | ld_shlibs_CXX=no |
| 13871 | ;; |
| 13872 | |
| 13873 | *) |
| 13874 | # FIXME: insert proper C++ library support |
| 13875 | ld_shlibs_CXX=no |
| 13876 | ;; |
| 13877 | esac |
| 13878 | |
| 13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13880 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 13881 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13882 | |
| 13883 | GCC_CXX="$GXX" |
| 13884 | LD_CXX="$LD" |
| 13885 | |
| 13886 | ## CAVEAT EMPTOR: |
| 13887 | ## There is no encapsulation within the following macros, do not change |
| 13888 | ## the running order or otherwise move them around unless you know exactly |
| 13889 | ## what you are doing... |
| 13890 | # Dependencies to place before and after the object being linked: |
| 13891 | predep_objects_CXX= |
| 13892 | postdep_objects_CXX= |
| 13893 | predeps_CXX= |
| 13894 | postdeps_CXX= |
| 13895 | compiler_lib_search_path_CXX= |
| 13896 | |
| 13897 | cat > conftest.$ac_ext <<_LT_EOF |
| 13898 | class Foo |
| 13899 | { |
| 13900 | public: |
| 13901 | Foo (void) { a = 0; } |
| 13902 | private: |
| 13903 | int a; |
| 13904 | }; |
| 13905 | _LT_EOF |
| 13906 | |
| 13907 | |
| 13908 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 13909 | case "$CC $CFLAGS " in #( |
| 13910 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 13911 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 13912 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 13913 | esac |
| 13914 | |
| 13915 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 13916 | (eval $ac_compile) 2>&5 |
| 13917 | ac_status=$? |
| 13918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13919 | test $ac_status = 0; }; then |
| 13920 | # Parse the compiler output and extract the necessary |
| 13921 | # objects, libraries and library flags. |
| 13922 | |
| 13923 | # Sentinel used to keep track of whether or not we are before |
| 13924 | # the conftest object file. |
| 13925 | pre_test_object_deps_done=no |
| 13926 | |
| 13927 | for p in `eval "$output_verbose_link_cmd"`; do |
| 13928 | case ${prev}${p} in |
| 13929 | |
| 13930 | -L* | -R* | -l*) |
| 13931 | # Some compilers place space between "-{L,R}" and the path. |
| 13932 | # Remove the space. |
| 13933 | if test $p = "-L" || |
| 13934 | test $p = "-R"; then |
| 13935 | prev=$p |
| 13936 | continue |
| 13937 | fi |
| 13938 | |
| 13939 | # Expand the sysroot to ease extracting the directories later. |
| 13940 | if test -z "$prev"; then |
| 13941 | case $p in |
| 13942 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 13943 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 13944 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 13945 | esac |
| 13946 | fi |
| 13947 | case $p in |
| 13948 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 13949 | esac |
| 13950 | if test "$pre_test_object_deps_done" = no; then |
| 13951 | case ${prev} in |
| 13952 | -L | -R) |
| 13953 | # Internal compiler library paths should come after those |
| 13954 | # provided the user. The postdeps already come after the |
| 13955 | # user supplied libs so there is no need to process them. |
| 13956 | if test -z "$compiler_lib_search_path_CXX"; then |
| 13957 | compiler_lib_search_path_CXX="${prev}${p}" |
| 13958 | else |
| 13959 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 13960 | fi |
| 13961 | ;; |
| 13962 | # The "-l" case would never come before the object being |
| 13963 | # linked, so don't bother handling this case. |
| 13964 | esac |
| 13965 | else |
| 13966 | if test -z "$postdeps_CXX"; then |
| 13967 | postdeps_CXX="${prev}${p}" |
| 13968 | else |
| 13969 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 13970 | fi |
| 13971 | fi |
| 13972 | prev= |
| 13973 | ;; |
| 13974 | |
| 13975 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 13976 | *.$objext) |
| 13977 | # This assumes that the test object file only shows up |
| 13978 | # once in the compiler output. |
| 13979 | if test "$p" = "conftest.$objext"; then |
| 13980 | pre_test_object_deps_done=yes |
| 13981 | continue |
| 13982 | fi |
| 13983 | |
| 13984 | if test "$pre_test_object_deps_done" = no; then |
| 13985 | if test -z "$predep_objects_CXX"; then |
| 13986 | predep_objects_CXX="$p" |
| 13987 | else |
| 13988 | predep_objects_CXX="$predep_objects_CXX $p" |
| 13989 | fi |
| 13990 | else |
| 13991 | if test -z "$postdep_objects_CXX"; then |
| 13992 | postdep_objects_CXX="$p" |
| 13993 | else |
| 13994 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 13995 | fi |
| 13996 | fi |
| 13997 | ;; |
| 13998 | |
| 13999 | *) ;; # Ignore the rest. |
| 14000 | |
| 14001 | esac |
| 14002 | done |
| 14003 | |
| 14004 | # Clean up. |
| 14005 | rm -f a.out a.exe |
| 14006 | else |
| 14007 | echo "libtool.m4: error: problem compiling CXX test program" |
| 14008 | fi |
| 14009 | |
| 14010 | $RM -f confest.$objext |
| 14011 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 14012 | |
| 14013 | # PORTME: override above test on systems where it is broken |
| 14014 | case $host_os in |
| 14015 | interix[3-9]*) |
| 14016 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 14017 | # hack all around it, let's just trust "g++" to DTRT. |
| 14018 | predep_objects_CXX= |
| 14019 | postdep_objects_CXX= |
| 14020 | postdeps_CXX= |
| 14021 | ;; |
| 14022 | |
| 14023 | linux*) |
| 14024 | case `$CC -V 2>&1 | sed 5q` in |
| 14025 | *Sun\ C*) |
| 14026 | # Sun C++ 5.9 |
| 14027 | |
| 14028 | # The more standards-conforming stlport4 library is |
| 14029 | # incompatible with the Cstd library. Avoid specifying |
| 14030 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14031 | # -library=stlport4 depends on it. |
| 14032 | case " $CXX $CXXFLAGS " in |
| 14033 | *" -library=stlport4 "*) |
| 14034 | solaris_use_stlport4=yes |
| 14035 | ;; |
| 14036 | esac |
| 14037 | |
| 14038 | if test "$solaris_use_stlport4" != yes; then |
| 14039 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14040 | fi |
| 14041 | ;; |
| 14042 | esac |
| 14043 | ;; |
| 14044 | |
| 14045 | solaris*) |
| 14046 | case $cc_basename in |
| 14047 | CC* | sunCC*) |
| 14048 | # The more standards-conforming stlport4 library is |
| 14049 | # incompatible with the Cstd library. Avoid specifying |
| 14050 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14051 | # -library=stlport4 depends on it. |
| 14052 | case " $CXX $CXXFLAGS " in |
| 14053 | *" -library=stlport4 "*) |
| 14054 | solaris_use_stlport4=yes |
| 14055 | ;; |
| 14056 | esac |
| 14057 | |
| 14058 | # Adding this requires a known-good setup of shared libraries for |
| 14059 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 14060 | # archive will be linked into the output, leading to subtle bugs. |
| 14061 | if test "$solaris_use_stlport4" != yes; then |
| 14062 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14063 | fi |
| 14064 | ;; |
| 14065 | esac |
| 14066 | ;; |
| 14067 | esac |
| 14068 | |
| 14069 | |
| 14070 | case " $postdeps_CXX " in |
| 14071 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 14072 | esac |
| 14073 | compiler_lib_search_dirs_CXX= |
| 14074 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 14075 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 14076 | fi |
| 14077 | |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | |
| 14091 | |
| 14092 | |
| 14093 | |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
| 14100 | |
| 14101 | |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | |
| 14106 | |
| 14107 | |
| 14108 | lt_prog_compiler_wl_CXX= |
| 14109 | lt_prog_compiler_pic_CXX= |
| 14110 | lt_prog_compiler_static_CXX= |
| 14111 | |
| 14112 | |
| 14113 | # C++ specific cases for pic, static, wl, etc. |
| 14114 | if test "$GXX" = yes; then |
| 14115 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14116 | lt_prog_compiler_static_CXX='-static' |
| 14117 | |
| 14118 | case $host_os in |
| 14119 | aix*) |
| 14120 | # All AIX code is PIC. |
| 14121 | if test "$host_cpu" = ia64; then |
| 14122 | # AIX 5 now supports IA64 processor |
| 14123 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14124 | fi |
| 14125 | ;; |
| 14126 | |
| 14127 | amigaos*) |
| 14128 | case $host_cpu in |
| 14129 | powerpc) |
| 14130 | # see comment about AmigaOS4 .so support |
| 14131 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14132 | ;; |
| 14133 | m68k) |
| 14134 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14135 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14136 | # like `-m68040'. |
| 14137 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 14138 | ;; |
| 14139 | esac |
| 14140 | ;; |
| 14141 | |
| 14142 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14143 | # PIC is the default for these OSes. |
| 14144 | ;; |
| 14145 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14146 | # This hack is so that the source file can tell whether it is being |
| 14147 | # built for inclusion in a dll (and should export symbols for example). |
| 14148 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14149 | # (--disable-auto-import) libraries |
| 14150 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14151 | ;; |
| 14152 | darwin* | rhapsody*) |
| 14153 | # PIC is the default on this platform |
| 14154 | # Common symbols not allowed in MH_DYLIB files |
| 14155 | lt_prog_compiler_pic_CXX='-fno-common' |
| 14156 | ;; |
| 14157 | *djgpp*) |
| 14158 | # DJGPP does not support shared libraries at all |
| 14159 | lt_prog_compiler_pic_CXX= |
| 14160 | ;; |
| 14161 | haiku*) |
| 14162 | # PIC is the default for Haiku. |
| 14163 | # The "-static" flag exists, but is broken. |
| 14164 | lt_prog_compiler_static_CXX= |
| 14165 | ;; |
| 14166 | interix[3-9]*) |
| 14167 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14168 | # Instead, we relocate shared libraries at runtime. |
| 14169 | ;; |
| 14170 | sysv4*MP*) |
| 14171 | if test -d /usr/nec; then |
| 14172 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 14173 | fi |
| 14174 | ;; |
| 14175 | hpux*) |
| 14176 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14177 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14178 | # sets the default TLS model and affects inlining. |
| 14179 | case $host_cpu in |
| 14180 | hppa*64*) |
| 14181 | ;; |
| 14182 | *) |
| 14183 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14184 | ;; |
| 14185 | esac |
| 14186 | ;; |
| 14187 | *qnx* | *nto*) |
| 14188 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14189 | # it will coredump. |
| 14190 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14191 | ;; |
| 14192 | *) |
| 14193 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14194 | ;; |
| 14195 | esac |
| 14196 | else |
| 14197 | case $host_os in |
| 14198 | aix[4-9]*) |
| 14199 | # All AIX code is PIC. |
| 14200 | if test "$host_cpu" = ia64; then |
| 14201 | # AIX 5 now supports IA64 processor |
| 14202 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14203 | else |
| 14204 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 14205 | fi |
| 14206 | ;; |
| 14207 | chorus*) |
| 14208 | case $cc_basename in |
| 14209 | cxch68*) |
| 14210 | # Green Hills C++ Compiler |
| 14211 | # _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" |
| 14212 | ;; |
| 14213 | esac |
| 14214 | ;; |
| 14215 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14216 | # This hack is so that the source file can tell whether it is being |
| 14217 | # built for inclusion in a dll (and should export symbols for example). |
| 14218 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14219 | ;; |
| 14220 | dgux*) |
| 14221 | case $cc_basename in |
| 14222 | ec++*) |
| 14223 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14224 | ;; |
| 14225 | ghcx*) |
| 14226 | # Green Hills C++ Compiler |
| 14227 | lt_prog_compiler_pic_CXX='-pic' |
| 14228 | ;; |
| 14229 | *) |
| 14230 | ;; |
| 14231 | esac |
| 14232 | ;; |
| 14233 | freebsd* | dragonfly*) |
| 14234 | # FreeBSD uses GNU C++ |
| 14235 | ;; |
| 14236 | hpux9* | hpux10* | hpux11*) |
| 14237 | case $cc_basename in |
| 14238 | CC*) |
| 14239 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14240 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14241 | if test "$host_cpu" != ia64; then |
| 14242 | lt_prog_compiler_pic_CXX='+Z' |
| 14243 | fi |
| 14244 | ;; |
| 14245 | aCC*) |
| 14246 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14247 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14248 | case $host_cpu in |
| 14249 | hppa*64*|ia64*) |
| 14250 | # +Z the default |
| 14251 | ;; |
| 14252 | *) |
| 14253 | lt_prog_compiler_pic_CXX='+Z' |
| 14254 | ;; |
| 14255 | esac |
| 14256 | ;; |
| 14257 | *) |
| 14258 | ;; |
| 14259 | esac |
| 14260 | ;; |
| 14261 | interix*) |
| 14262 | # This is c89, which is MS Visual C++ (no shared libs) |
| 14263 | # Anyone wants to do a port? |
| 14264 | ;; |
| 14265 | irix5* | irix6* | nonstopux*) |
| 14266 | case $cc_basename in |
| 14267 | CC*) |
| 14268 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14269 | lt_prog_compiler_static_CXX='-non_shared' |
| 14270 | # CC pic flag -KPIC is the default. |
| 14271 | ;; |
| 14272 | *) |
| 14273 | ;; |
| 14274 | esac |
| 14275 | ;; |
| 14276 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14277 | case $cc_basename in |
| 14278 | KCC*) |
| 14279 | # KAI C++ Compiler |
| 14280 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14281 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14282 | ;; |
| 14283 | ecpc* ) |
| 14284 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 14285 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14286 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14287 | lt_prog_compiler_static_CXX='-static' |
| 14288 | ;; |
| 14289 | icpc* ) |
| 14290 | # Intel C++, used to be incompatible with GCC. |
| 14291 | # ICC 10 doesn't accept -KPIC any more. |
| 14292 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14293 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14294 | lt_prog_compiler_static_CXX='-static' |
| 14295 | ;; |
| 14296 | pgCC* | pgcpp*) |
| 14297 | # Portland Group C++ compiler |
| 14298 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14299 | lt_prog_compiler_pic_CXX='-fpic' |
| 14300 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14301 | ;; |
| 14302 | cxx*) |
| 14303 | # Compaq C++ |
| 14304 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14305 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14306 | lt_prog_compiler_pic_CXX= |
| 14307 | lt_prog_compiler_static_CXX='-non_shared' |
| 14308 | ;; |
| 14309 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 14310 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 14311 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14312 | lt_prog_compiler_pic_CXX='-qpic' |
| 14313 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 14314 | ;; |
| 14315 | *) |
| 14316 | case `$CC -V 2>&1 | sed 5q` in |
| 14317 | *Sun\ C*) |
| 14318 | # Sun C++ 5.9 |
| 14319 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14320 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14321 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14322 | ;; |
| 14323 | esac |
| 14324 | ;; |
| 14325 | esac |
| 14326 | ;; |
| 14327 | lynxos*) |
| 14328 | ;; |
| 14329 | m88k*) |
| 14330 | ;; |
| 14331 | mvs*) |
| 14332 | case $cc_basename in |
| 14333 | cxx*) |
| 14334 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14335 | ;; |
| 14336 | *) |
| 14337 | ;; |
| 14338 | esac |
| 14339 | ;; |
| 14340 | netbsd*) |
| 14341 | ;; |
| 14342 | *qnx* | *nto*) |
| 14343 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14344 | # it will coredump. |
| 14345 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14346 | ;; |
| 14347 | osf3* | osf4* | osf5*) |
| 14348 | case $cc_basename in |
| 14349 | KCC*) |
| 14350 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14351 | ;; |
| 14352 | RCC*) |
| 14353 | # Rational C++ 2.4.1 |
| 14354 | lt_prog_compiler_pic_CXX='-pic' |
| 14355 | ;; |
| 14356 | cxx*) |
| 14357 | # Digital/Compaq C++ |
| 14358 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14359 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14360 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14361 | lt_prog_compiler_pic_CXX= |
| 14362 | lt_prog_compiler_static_CXX='-non_shared' |
| 14363 | ;; |
| 14364 | *) |
| 14365 | ;; |
| 14366 | esac |
| 14367 | ;; |
| 14368 | psos*) |
| 14369 | ;; |
| 14370 | solaris*) |
| 14371 | case $cc_basename in |
| 14372 | CC* | sunCC*) |
| 14373 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14374 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14375 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14376 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14377 | ;; |
| 14378 | gcx*) |
| 14379 | # Green Hills C++ Compiler |
| 14380 | lt_prog_compiler_pic_CXX='-PIC' |
| 14381 | ;; |
| 14382 | *) |
| 14383 | ;; |
| 14384 | esac |
| 14385 | ;; |
| 14386 | sunos4*) |
| 14387 | case $cc_basename in |
| 14388 | CC*) |
| 14389 | # Sun C++ 4.x |
| 14390 | lt_prog_compiler_pic_CXX='-pic' |
| 14391 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14392 | ;; |
| 14393 | lcc*) |
| 14394 | # Lucid |
| 14395 | lt_prog_compiler_pic_CXX='-pic' |
| 14396 | ;; |
| 14397 | *) |
| 14398 | ;; |
| 14399 | esac |
| 14400 | ;; |
| 14401 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14402 | case $cc_basename in |
| 14403 | CC*) |
| 14404 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14405 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14406 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14407 | ;; |
| 14408 | esac |
| 14409 | ;; |
| 14410 | tandem*) |
| 14411 | case $cc_basename in |
| 14412 | NCC*) |
| 14413 | # NonStop-UX NCC 3.20 |
| 14414 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14415 | ;; |
| 14416 | *) |
| 14417 | ;; |
| 14418 | esac |
| 14419 | ;; |
| 14420 | vxworks*) |
| 14421 | ;; |
| 14422 | *) |
| 14423 | lt_prog_compiler_can_build_shared_CXX=no |
| 14424 | ;; |
| 14425 | esac |
| 14426 | fi |
| 14427 | |
| 14428 | case $host_os in |
| 14429 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14430 | *djgpp*) |
| 14431 | lt_prog_compiler_pic_CXX= |
| 14432 | ;; |
| 14433 | *) |
| 14434 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14435 | ;; |
| 14436 | esac |
| 14437 | |
| 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14439 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14440 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 14441 | $as_echo_n "(cached) " >&6 |
| 14442 | else |
| 14443 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 14444 | fi |
| 14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 14446 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 14447 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 14448 | |
| 14449 | # |
| 14450 | # Check to make sure the PIC flag actually works. |
| 14451 | # |
| 14452 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 14454 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 14455 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 14456 | $as_echo_n "(cached) " >&6 |
| 14457 | else |
| 14458 | lt_cv_prog_compiler_pic_works_CXX=no |
| 14459 | ac_outfile=conftest.$ac_objext |
| 14460 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14461 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14462 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14463 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14464 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14465 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14466 | # The option is referenced via a variable to avoid confusing sed. |
| 14467 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14468 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14469 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14470 | -e 's:$: $lt_compiler_flag:'` |
| 14471 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14472 | (eval "$lt_compile" 2>conftest.err) |
| 14473 | ac_status=$? |
| 14474 | cat conftest.err >&5 |
| 14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14476 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14477 | # The compiler can only warn and ignore the option if not recognized |
| 14478 | # So say no if there are warnings other than the usual output. |
| 14479 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14480 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14481 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14482 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 14483 | fi |
| 14484 | fi |
| 14485 | $RM conftest* |
| 14486 | |
| 14487 | fi |
| 14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 14489 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 14490 | |
| 14491 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 14492 | case $lt_prog_compiler_pic_CXX in |
| 14493 | "" | " "*) ;; |
| 14494 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14495 | esac |
| 14496 | else |
| 14497 | lt_prog_compiler_pic_CXX= |
| 14498 | lt_prog_compiler_can_build_shared_CXX=no |
| 14499 | fi |
| 14500 | |
| 14501 | fi |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | # |
| 14508 | # Check to make sure the static flag actually works. |
| 14509 | # |
| 14510 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14512 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14513 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 14514 | $as_echo_n "(cached) " >&6 |
| 14515 | else |
| 14516 | lt_cv_prog_compiler_static_works_CXX=no |
| 14517 | save_LDFLAGS="$LDFLAGS" |
| 14518 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14519 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14520 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14521 | # The linker can only warn and ignore the option if not recognized |
| 14522 | # So say no if there are warnings |
| 14523 | if test -s conftest.err; then |
| 14524 | # Append any errors to the config.log. |
| 14525 | cat conftest.err 1>&5 |
| 14526 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14527 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14528 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14529 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14530 | fi |
| 14531 | else |
| 14532 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14533 | fi |
| 14534 | fi |
| 14535 | $RM -r conftest* |
| 14536 | LDFLAGS="$save_LDFLAGS" |
| 14537 | |
| 14538 | fi |
| 14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 14540 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 14541 | |
| 14542 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 14543 | : |
| 14544 | else |
| 14545 | lt_prog_compiler_static_CXX= |
| 14546 | fi |
| 14547 | |
| 14548 | |
| 14549 | |
| 14550 | |
| 14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14552 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14553 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14554 | $as_echo_n "(cached) " >&6 |
| 14555 | else |
| 14556 | lt_cv_prog_compiler_c_o_CXX=no |
| 14557 | $RM -r conftest 2>/dev/null |
| 14558 | mkdir conftest |
| 14559 | cd conftest |
| 14560 | mkdir out |
| 14561 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14562 | |
| 14563 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14564 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14565 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14566 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14567 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14568 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14569 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14570 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14571 | -e 's:$: $lt_compiler_flag:'` |
| 14572 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14573 | (eval "$lt_compile" 2>out/conftest.err) |
| 14574 | ac_status=$? |
| 14575 | cat out/conftest.err >&5 |
| 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14577 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14578 | then |
| 14579 | # The compiler can only warn and ignore the option if not recognized |
| 14580 | # So say no if there are warnings |
| 14581 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14582 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14583 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14584 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14585 | fi |
| 14586 | fi |
| 14587 | chmod u+w . 2>&5 |
| 14588 | $RM conftest* |
| 14589 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14590 | # template instantiation |
| 14591 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14592 | $RM out/* && rmdir out |
| 14593 | cd .. |
| 14594 | $RM -r conftest |
| 14595 | $RM conftest* |
| 14596 | |
| 14597 | fi |
| 14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14599 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14600 | |
| 14601 | |
| 14602 | |
| 14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14604 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14605 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14606 | $as_echo_n "(cached) " >&6 |
| 14607 | else |
| 14608 | lt_cv_prog_compiler_c_o_CXX=no |
| 14609 | $RM -r conftest 2>/dev/null |
| 14610 | mkdir conftest |
| 14611 | cd conftest |
| 14612 | mkdir out |
| 14613 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14614 | |
| 14615 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14616 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14617 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14618 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14619 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14620 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14621 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14622 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14623 | -e 's:$: $lt_compiler_flag:'` |
| 14624 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14625 | (eval "$lt_compile" 2>out/conftest.err) |
| 14626 | ac_status=$? |
| 14627 | cat out/conftest.err >&5 |
| 14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14629 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14630 | then |
| 14631 | # The compiler can only warn and ignore the option if not recognized |
| 14632 | # So say no if there are warnings |
| 14633 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14634 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14635 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14636 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14637 | fi |
| 14638 | fi |
| 14639 | chmod u+w . 2>&5 |
| 14640 | $RM conftest* |
| 14641 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14642 | # template instantiation |
| 14643 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14644 | $RM out/* && rmdir out |
| 14645 | cd .. |
| 14646 | $RM -r conftest |
| 14647 | $RM conftest* |
| 14648 | |
| 14649 | fi |
| 14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14651 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14652 | |
| 14653 | |
| 14654 | |
| 14655 | |
| 14656 | hard_links="nottested" |
| 14657 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14658 | # do not overwrite the value of need_locks provided by the user |
| 14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14660 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14661 | hard_links=yes |
| 14662 | $RM conftest* |
| 14663 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14664 | touch conftest.a |
| 14665 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14666 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14668 | $as_echo "$hard_links" >&6; } |
| 14669 | if test "$hard_links" = no; then |
| 14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14671 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14672 | need_locks=warn |
| 14673 | fi |
| 14674 | else |
| 14675 | need_locks=no |
| 14676 | fi |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14681 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14682 | |
| 14683 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14684 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14685 | case $host_os in |
| 14686 | aix[4-9]*) |
| 14687 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14688 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14689 | # Also, AIX nm treats weak defined symbols like other global defined |
| 14690 | # symbols, whereas GNU nm marks them as "W". |
| 14691 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14692 | 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' |
| 14693 | else |
| 14694 | 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' |
| 14695 | fi |
| 14696 | ;; |
| 14697 | pw32*) |
| 14698 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14699 | ;; |
| 14700 | cygwin* | mingw* | cegcc*) |
| 14701 | case $cc_basename in |
| 14702 | cl*) |
| 14703 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 14704 | ;; |
| 14705 | *) |
| 14706 | 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' |
| 14707 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 14708 | ;; |
| 14709 | esac |
| 14710 | ;; |
| 14711 | *) |
| 14712 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14713 | ;; |
| 14714 | esac |
| 14715 | |
| 14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14717 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14718 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14719 | |
| 14720 | with_gnu_ld_CXX=$with_gnu_ld |
| 14721 | |
| 14722 | |
| 14723 | |
| 14724 | |
| 14725 | |
| 14726 | |
| 14727 | # |
| 14728 | # Do we need to explicitly link libc? |
| 14729 | # |
| 14730 | case "x$archive_cmds_need_lc_CXX" in |
| 14731 | x|xyes) |
| 14732 | # Assume -lc should be added |
| 14733 | archive_cmds_need_lc_CXX=yes |
| 14734 | |
| 14735 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14736 | case $archive_cmds_CXX in |
| 14737 | *'~'*) |
| 14738 | # FIXME: we may have to deal with multi-command sequences. |
| 14739 | ;; |
| 14740 | '$CC '*) |
| 14741 | # Test whether the compiler implicitly links with -lc since on some |
| 14742 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14743 | # to ld, don't add -lc before -lgcc. |
| 14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14745 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14746 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 14747 | $as_echo_n "(cached) " >&6 |
| 14748 | else |
| 14749 | $RM conftest* |
| 14750 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14751 | |
| 14752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14753 | (eval $ac_compile) 2>&5 |
| 14754 | ac_status=$? |
| 14755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14756 | test $ac_status = 0; } 2>conftest.err; then |
| 14757 | soname=conftest |
| 14758 | lib=conftest |
| 14759 | libobjs=conftest.$ac_objext |
| 14760 | deplibs= |
| 14761 | wl=$lt_prog_compiler_wl_CXX |
| 14762 | pic_flag=$lt_prog_compiler_pic_CXX |
| 14763 | compiler_flags=-v |
| 14764 | linker_flags=-v |
| 14765 | verstring= |
| 14766 | output_objdir=. |
| 14767 | libname=conftest |
| 14768 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14769 | allow_undefined_flag_CXX= |
| 14770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14771 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14772 | ac_status=$? |
| 14773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14774 | test $ac_status = 0; } |
| 14775 | then |
| 14776 | lt_cv_archive_cmds_need_lc_CXX=no |
| 14777 | else |
| 14778 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 14779 | fi |
| 14780 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14781 | else |
| 14782 | cat conftest.err 1>&5 |
| 14783 | fi |
| 14784 | $RM conftest* |
| 14785 | |
| 14786 | fi |
| 14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 14788 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 14789 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 14790 | ;; |
| 14791 | esac |
| 14792 | fi |
| 14793 | ;; |
| 14794 | esac |
| 14795 | |
| 14796 | |
| 14797 | |
| 14798 | |
| 14799 | |
| 14800 | |
| 14801 | |
| 14802 | |
| 14803 | |
| 14804 | |
| 14805 | |
| 14806 | |
| 14807 | |
| 14808 | |
| 14809 | |
| 14810 | |
| 14811 | |
| 14812 | |
| 14813 | |
| 14814 | |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | |
| 14819 | |
| 14820 | |
| 14821 | |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | |
| 14826 | |
| 14827 | |
| 14828 | |
| 14829 | |
| 14830 | |
| 14831 | |
| 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | |
| 14844 | |
| 14845 | |
| 14846 | |
| 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
| 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
| 14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 14858 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14859 | |
| 14860 | library_names_spec= |
| 14861 | libname_spec='lib$name' |
| 14862 | soname_spec= |
| 14863 | shrext_cmds=".so" |
| 14864 | postinstall_cmds= |
| 14865 | postuninstall_cmds= |
| 14866 | finish_cmds= |
| 14867 | finish_eval= |
| 14868 | shlibpath_var= |
| 14869 | shlibpath_overrides_runpath=unknown |
| 14870 | version_type=none |
| 14871 | dynamic_linker="$host_os ld.so" |
| 14872 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14873 | need_lib_prefix=unknown |
| 14874 | hardcode_into_libs=no |
| 14875 | |
| 14876 | # when you set need_version to no, make sure it does not cause -set_version |
| 14877 | # flags to be left without arguments |
| 14878 | need_version=unknown |
| 14879 | |
| 14880 | case $host_os in |
| 14881 | aix3*) |
| 14882 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14883 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14884 | shlibpath_var=LIBPATH |
| 14885 | |
| 14886 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14888 | ;; |
| 14889 | |
| 14890 | aix[4-9]*) |
| 14891 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14892 | need_lib_prefix=no |
| 14893 | need_version=no |
| 14894 | hardcode_into_libs=yes |
| 14895 | if test "$host_cpu" = ia64; then |
| 14896 | # AIX 5 supports IA64 |
| 14897 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14898 | shlibpath_var=LD_LIBRARY_PATH |
| 14899 | else |
| 14900 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14901 | # for dependence libraries. The import file would start with |
| 14902 | # the line `#! .'. This would cause the generated library to |
| 14903 | # depend on `.', always an invalid library. This was fixed in |
| 14904 | # development snapshots of GCC prior to 3.0. |
| 14905 | case $host_os in |
| 14906 | aix4 | aix4.[01] | aix4.[01].*) |
| 14907 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14908 | echo ' yes ' |
| 14909 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 14910 | : |
| 14911 | else |
| 14912 | can_build_shared=no |
| 14913 | fi |
| 14914 | ;; |
| 14915 | esac |
| 14916 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14917 | # soname into executable. Probably we can add versioning support to |
| 14918 | # collect2, so additional links can be useful in future. |
| 14919 | if test "$aix_use_runtimelinking" = yes; then |
| 14920 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14921 | # instead of lib<name>.a to let people know that these are not |
| 14922 | # typical AIX shared libraries. |
| 14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14924 | else |
| 14925 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14926 | # and later when we are not doing run time linking. |
| 14927 | library_names_spec='${libname}${release}.a $libname.a' |
| 14928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14929 | fi |
| 14930 | shlibpath_var=LIBPATH |
| 14931 | fi |
| 14932 | ;; |
| 14933 | |
| 14934 | amigaos*) |
| 14935 | case $host_cpu in |
| 14936 | powerpc) |
| 14937 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14938 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14940 | ;; |
| 14941 | m68k) |
| 14942 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14943 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14944 | 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' |
| 14945 | ;; |
| 14946 | esac |
| 14947 | ;; |
| 14948 | |
| 14949 | beos*) |
| 14950 | library_names_spec='${libname}${shared_ext}' |
| 14951 | dynamic_linker="$host_os ld.so" |
| 14952 | shlibpath_var=LIBRARY_PATH |
| 14953 | ;; |
| 14954 | |
| 14955 | bsdi[45]*) |
| 14956 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14957 | need_version=no |
| 14958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14960 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14961 | shlibpath_var=LD_LIBRARY_PATH |
| 14962 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14963 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14964 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14965 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14966 | # libtool to hard-code these into programs |
| 14967 | ;; |
| 14968 | |
| 14969 | cygwin* | mingw* | pw32* | cegcc*) |
| 14970 | version_type=windows |
| 14971 | shrext_cmds=".dll" |
| 14972 | need_version=no |
| 14973 | need_lib_prefix=no |
| 14974 | |
| 14975 | case $GCC,$cc_basename in |
| 14976 | yes,*) |
| 14977 | # gcc |
| 14978 | library_names_spec='$libname.dll.a' |
| 14979 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14980 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14981 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 14982 | dldir=$destdir/`dirname \$dlpath`~ |
| 14983 | test -d \$dldir || mkdir -p \$dldir~ |
| 14984 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14985 | chmod a+x \$dldir/$dlname~ |
| 14986 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14987 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14988 | fi' |
| 14989 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14990 | dlpath=$dir/\$dldll~ |
| 14991 | $RM \$dlpath' |
| 14992 | shlibpath_overrides_runpath=yes |
| 14993 | |
| 14994 | case $host_os in |
| 14995 | cygwin*) |
| 14996 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14997 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14998 | |
| 14999 | ;; |
| 15000 | mingw* | cegcc*) |
| 15001 | # MinGW DLLs use traditional 'lib' prefix |
| 15002 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15003 | ;; |
| 15004 | pw32*) |
| 15005 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15006 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15007 | ;; |
| 15008 | esac |
| 15009 | dynamic_linker='Win32 ld.exe' |
| 15010 | ;; |
| 15011 | |
| 15012 | *,cl*) |
| 15013 | # Native MSVC |
| 15014 | libname_spec='$name' |
| 15015 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15016 | library_names_spec='${libname}.dll.lib' |
| 15017 | |
| 15018 | case $build_os in |
| 15019 | mingw*) |
| 15020 | sys_lib_search_path_spec= |
| 15021 | lt_save_ifs=$IFS |
| 15022 | IFS=';' |
| 15023 | for lt_path in $LIB |
| 15024 | do |
| 15025 | IFS=$lt_save_ifs |
| 15026 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15027 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15028 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15029 | done |
| 15030 | IFS=$lt_save_ifs |
| 15031 | # Convert to MSYS style. |
| 15032 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15033 | ;; |
| 15034 | cygwin*) |
| 15035 | # Convert to unix form, then to dos form, then back to unix form |
| 15036 | # but this time dos style (no spaces!) so that the unix form looks |
| 15037 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15038 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15039 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15040 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15041 | ;; |
| 15042 | *) |
| 15043 | sys_lib_search_path_spec="$LIB" |
| 15044 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15045 | # It is most probably a Windows format PATH. |
| 15046 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15047 | else |
| 15048 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15049 | fi |
| 15050 | # FIXME: find the short name or the path components, as spaces are |
| 15051 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 15052 | ;; |
| 15053 | esac |
| 15054 | |
| 15055 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15056 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15057 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15058 | dldir=$destdir/`dirname \$dlpath`~ |
| 15059 | test -d \$dldir || mkdir -p \$dldir~ |
| 15060 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15061 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15062 | dlpath=$dir/\$dldll~ |
| 15063 | $RM \$dlpath' |
| 15064 | shlibpath_overrides_runpath=yes |
| 15065 | dynamic_linker='Win32 link.exe' |
| 15066 | ;; |
| 15067 | |
| 15068 | *) |
| 15069 | # Assume MSVC wrapper |
| 15070 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15071 | dynamic_linker='Win32 ld.exe' |
| 15072 | ;; |
| 15073 | esac |
| 15074 | # FIXME: first we should search . and the directory the executable is in |
| 15075 | shlibpath_var=PATH |
| 15076 | ;; |
| 15077 | |
| 15078 | darwin* | rhapsody*) |
| 15079 | dynamic_linker="$host_os dyld" |
| 15080 | version_type=darwin |
| 15081 | need_lib_prefix=no |
| 15082 | need_version=no |
| 15083 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15084 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15085 | shlibpath_overrides_runpath=yes |
| 15086 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15087 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15088 | |
| 15089 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15090 | ;; |
| 15091 | |
| 15092 | dgux*) |
| 15093 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15094 | need_lib_prefix=no |
| 15095 | need_version=no |
| 15096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15097 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15098 | shlibpath_var=LD_LIBRARY_PATH |
| 15099 | ;; |
| 15100 | |
| 15101 | freebsd* | dragonfly*) |
| 15102 | # DragonFly does not have aout. When/if they implement a new |
| 15103 | # versioning mechanism, adjust this. |
| 15104 | if test -x /usr/bin/objformat; then |
| 15105 | objformat=`/usr/bin/objformat` |
| 15106 | else |
| 15107 | case $host_os in |
| 15108 | freebsd[23].*) objformat=aout ;; |
| 15109 | *) objformat=elf ;; |
| 15110 | esac |
| 15111 | fi |
| 15112 | version_type=freebsd-$objformat |
| 15113 | case $version_type in |
| 15114 | freebsd-elf*) |
| 15115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15116 | need_version=no |
| 15117 | need_lib_prefix=no |
| 15118 | ;; |
| 15119 | freebsd-*) |
| 15120 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15121 | need_version=yes |
| 15122 | ;; |
| 15123 | esac |
| 15124 | shlibpath_var=LD_LIBRARY_PATH |
| 15125 | case $host_os in |
| 15126 | freebsd2.*) |
| 15127 | shlibpath_overrides_runpath=yes |
| 15128 | ;; |
| 15129 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15130 | shlibpath_overrides_runpath=yes |
| 15131 | hardcode_into_libs=yes |
| 15132 | ;; |
| 15133 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15134 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15135 | shlibpath_overrides_runpath=no |
| 15136 | hardcode_into_libs=yes |
| 15137 | ;; |
| 15138 | *) # from 4.6 on, and DragonFly |
| 15139 | shlibpath_overrides_runpath=yes |
| 15140 | hardcode_into_libs=yes |
| 15141 | ;; |
| 15142 | esac |
| 15143 | ;; |
| 15144 | |
| 15145 | gnu*) |
| 15146 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15147 | need_lib_prefix=no |
| 15148 | need_version=no |
| 15149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15150 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15151 | shlibpath_var=LD_LIBRARY_PATH |
| 15152 | shlibpath_overrides_runpath=no |
| 15153 | hardcode_into_libs=yes |
| 15154 | ;; |
| 15155 | |
| 15156 | haiku*) |
| 15157 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15158 | need_lib_prefix=no |
| 15159 | need_version=no |
| 15160 | dynamic_linker="$host_os runtime_loader" |
| 15161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15163 | shlibpath_var=LIBRARY_PATH |
| 15164 | shlibpath_overrides_runpath=yes |
| 15165 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15166 | hardcode_into_libs=yes |
| 15167 | ;; |
| 15168 | |
| 15169 | hpux9* | hpux10* | hpux11*) |
| 15170 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15171 | # link against other versions. |
| 15172 | version_type=sunos |
| 15173 | need_lib_prefix=no |
| 15174 | need_version=no |
| 15175 | case $host_cpu in |
| 15176 | ia64*) |
| 15177 | shrext_cmds='.so' |
| 15178 | hardcode_into_libs=yes |
| 15179 | dynamic_linker="$host_os dld.so" |
| 15180 | shlibpath_var=LD_LIBRARY_PATH |
| 15181 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15183 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15184 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15185 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15186 | else |
| 15187 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15188 | fi |
| 15189 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15190 | ;; |
| 15191 | hppa*64*) |
| 15192 | shrext_cmds='.sl' |
| 15193 | hardcode_into_libs=yes |
| 15194 | dynamic_linker="$host_os dld.sl" |
| 15195 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15196 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15199 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15200 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15201 | ;; |
| 15202 | *) |
| 15203 | shrext_cmds='.sl' |
| 15204 | dynamic_linker="$host_os dld.sl" |
| 15205 | shlibpath_var=SHLIB_PATH |
| 15206 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15209 | ;; |
| 15210 | esac |
| 15211 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 15212 | postinstall_cmds='chmod 555 $lib' |
| 15213 | # or fails outright, so override atomically: |
| 15214 | install_override_mode=555 |
| 15215 | ;; |
| 15216 | |
| 15217 | interix[3-9]*) |
| 15218 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15219 | need_lib_prefix=no |
| 15220 | need_version=no |
| 15221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15223 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15224 | shlibpath_var=LD_LIBRARY_PATH |
| 15225 | shlibpath_overrides_runpath=no |
| 15226 | hardcode_into_libs=yes |
| 15227 | ;; |
| 15228 | |
| 15229 | irix5* | irix6* | nonstopux*) |
| 15230 | case $host_os in |
| 15231 | nonstopux*) version_type=nonstopux ;; |
| 15232 | *) |
| 15233 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15234 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15235 | else |
| 15236 | version_type=irix |
| 15237 | fi ;; |
| 15238 | esac |
| 15239 | need_lib_prefix=no |
| 15240 | need_version=no |
| 15241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15243 | case $host_os in |
| 15244 | irix5* | nonstopux*) |
| 15245 | libsuff= shlibsuff= |
| 15246 | ;; |
| 15247 | *) |
| 15248 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15249 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15250 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15251 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15252 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15253 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15254 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15255 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15256 | esac |
| 15257 | ;; |
| 15258 | esac |
| 15259 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15260 | shlibpath_overrides_runpath=no |
| 15261 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15262 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15263 | hardcode_into_libs=yes |
| 15264 | ;; |
| 15265 | |
| 15266 | # No shared lib support for Linux oldld, aout, or coff. |
| 15267 | linux*oldld* | linux*aout* | linux*coff*) |
| 15268 | dynamic_linker=no |
| 15269 | ;; |
| 15270 | |
| 15271 | # This must be glibc/ELF. |
| 15272 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 15273 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15274 | need_lib_prefix=no |
| 15275 | need_version=no |
| 15276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15277 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15278 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15279 | shlibpath_var=LD_LIBRARY_PATH |
| 15280 | shlibpath_overrides_runpath=no |
| 15281 | |
| 15282 | # Some binutils ld are patched to set DT_RUNPATH |
| 15283 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 15284 | $as_echo_n "(cached) " >&6 |
| 15285 | else |
| 15286 | lt_cv_shlibpath_overrides_runpath=no |
| 15287 | save_LDFLAGS=$LDFLAGS |
| 15288 | save_libdir=$libdir |
| 15289 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 15290 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 15291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15292 | /* end confdefs.h. */ |
| 15293 | |
| 15294 | int |
| 15295 | main () |
| 15296 | { |
| 15297 | |
| 15298 | ; |
| 15299 | return 0; |
| 15300 | } |
| 15301 | _ACEOF |
| 15302 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 15303 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 15304 | lt_cv_shlibpath_overrides_runpath=yes |
| 15305 | fi |
| 15306 | fi |
| 15307 | rm -f core conftest.err conftest.$ac_objext \ |
| 15308 | conftest$ac_exeext conftest.$ac_ext |
| 15309 | LDFLAGS=$save_LDFLAGS |
| 15310 | libdir=$save_libdir |
| 15311 | |
| 15312 | fi |
| 15313 | |
| 15314 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 15315 | |
| 15316 | # This implies no fast_install, which is unacceptable. |
| 15317 | # Some rework will be needed to allow for fast_install |
| 15318 | # before this can be enabled. |
| 15319 | hardcode_into_libs=yes |
| 15320 | |
| 15321 | # Append ld.so.conf contents to the search path |
| 15322 | if test -f /etc/ld.so.conf; then |
| 15323 | 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' ' '` |
| 15324 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15325 | fi |
| 15326 | |
| 15327 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15328 | # powerpc, because MkLinux only supported shared libraries with the |
| 15329 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15330 | # most powerpc-linux boxes support dynamic linking these days and |
| 15331 | # people can always --disable-shared, the test was removed, and we |
| 15332 | # assume the GNU/Linux dynamic linker is in use. |
| 15333 | dynamic_linker='GNU/Linux ld.so' |
| 15334 | ;; |
| 15335 | |
| 15336 | netbsd*) |
| 15337 | version_type=sunos |
| 15338 | need_lib_prefix=no |
| 15339 | need_version=no |
| 15340 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15342 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15343 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15344 | else |
| 15345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15346 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15347 | dynamic_linker='NetBSD ld.elf_so' |
| 15348 | fi |
| 15349 | shlibpath_var=LD_LIBRARY_PATH |
| 15350 | shlibpath_overrides_runpath=yes |
| 15351 | hardcode_into_libs=yes |
| 15352 | ;; |
| 15353 | |
| 15354 | newsos6) |
| 15355 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15357 | shlibpath_var=LD_LIBRARY_PATH |
| 15358 | shlibpath_overrides_runpath=yes |
| 15359 | ;; |
| 15360 | |
| 15361 | *nto* | *qnx*) |
| 15362 | version_type=qnx |
| 15363 | need_lib_prefix=no |
| 15364 | need_version=no |
| 15365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15367 | shlibpath_var=LD_LIBRARY_PATH |
| 15368 | shlibpath_overrides_runpath=no |
| 15369 | hardcode_into_libs=yes |
| 15370 | dynamic_linker='ldqnx.so' |
| 15371 | ;; |
| 15372 | |
| 15373 | openbsd*) |
| 15374 | version_type=sunos |
| 15375 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15376 | need_lib_prefix=no |
| 15377 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15378 | case $host_os in |
| 15379 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15380 | *) need_version=no ;; |
| 15381 | esac |
| 15382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15383 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15384 | shlibpath_var=LD_LIBRARY_PATH |
| 15385 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15386 | case $host_os in |
| 15387 | openbsd2.[89] | openbsd2.[89].*) |
| 15388 | shlibpath_overrides_runpath=no |
| 15389 | ;; |
| 15390 | *) |
| 15391 | shlibpath_overrides_runpath=yes |
| 15392 | ;; |
| 15393 | esac |
| 15394 | else |
| 15395 | shlibpath_overrides_runpath=yes |
| 15396 | fi |
| 15397 | ;; |
| 15398 | |
| 15399 | os2*) |
| 15400 | libname_spec='$name' |
| 15401 | shrext_cmds=".dll" |
| 15402 | need_lib_prefix=no |
| 15403 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15404 | dynamic_linker='OS/2 ld.exe' |
| 15405 | shlibpath_var=LIBPATH |
| 15406 | ;; |
| 15407 | |
| 15408 | osf3* | osf4* | osf5*) |
| 15409 | version_type=osf |
| 15410 | need_lib_prefix=no |
| 15411 | need_version=no |
| 15412 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15414 | shlibpath_var=LD_LIBRARY_PATH |
| 15415 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15416 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15417 | ;; |
| 15418 | |
| 15419 | rdos*) |
| 15420 | dynamic_linker=no |
| 15421 | ;; |
| 15422 | |
| 15423 | solaris*) |
| 15424 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15425 | need_lib_prefix=no |
| 15426 | need_version=no |
| 15427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15428 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15429 | shlibpath_var=LD_LIBRARY_PATH |
| 15430 | shlibpath_overrides_runpath=yes |
| 15431 | hardcode_into_libs=yes |
| 15432 | # ldd complains unless libraries are executable |
| 15433 | postinstall_cmds='chmod +x $lib' |
| 15434 | ;; |
| 15435 | |
| 15436 | sunos4*) |
| 15437 | version_type=sunos |
| 15438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15439 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15440 | shlibpath_var=LD_LIBRARY_PATH |
| 15441 | shlibpath_overrides_runpath=yes |
| 15442 | if test "$with_gnu_ld" = yes; then |
| 15443 | need_lib_prefix=no |
| 15444 | fi |
| 15445 | need_version=yes |
| 15446 | ;; |
| 15447 | |
| 15448 | sysv4 | sysv4.3*) |
| 15449 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15451 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15452 | shlibpath_var=LD_LIBRARY_PATH |
| 15453 | case $host_vendor in |
| 15454 | sni) |
| 15455 | shlibpath_overrides_runpath=no |
| 15456 | need_lib_prefix=no |
| 15457 | runpath_var=LD_RUN_PATH |
| 15458 | ;; |
| 15459 | siemens) |
| 15460 | need_lib_prefix=no |
| 15461 | ;; |
| 15462 | motorola) |
| 15463 | need_lib_prefix=no |
| 15464 | need_version=no |
| 15465 | shlibpath_overrides_runpath=no |
| 15466 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15467 | ;; |
| 15468 | esac |
| 15469 | ;; |
| 15470 | |
| 15471 | sysv4*MP*) |
| 15472 | if test -d /usr/nec ;then |
| 15473 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15474 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15475 | soname_spec='$libname${shared_ext}.$major' |
| 15476 | shlibpath_var=LD_LIBRARY_PATH |
| 15477 | fi |
| 15478 | ;; |
| 15479 | |
| 15480 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15481 | version_type=freebsd-elf |
| 15482 | need_lib_prefix=no |
| 15483 | need_version=no |
| 15484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15486 | shlibpath_var=LD_LIBRARY_PATH |
| 15487 | shlibpath_overrides_runpath=yes |
| 15488 | hardcode_into_libs=yes |
| 15489 | if test "$with_gnu_ld" = yes; then |
| 15490 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15491 | else |
| 15492 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15493 | case $host_os in |
| 15494 | sco3.2v5*) |
| 15495 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15496 | ;; |
| 15497 | esac |
| 15498 | fi |
| 15499 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15500 | ;; |
| 15501 | |
| 15502 | tpf*) |
| 15503 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15504 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15505 | need_lib_prefix=no |
| 15506 | need_version=no |
| 15507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15508 | shlibpath_var=LD_LIBRARY_PATH |
| 15509 | shlibpath_overrides_runpath=no |
| 15510 | hardcode_into_libs=yes |
| 15511 | ;; |
| 15512 | |
| 15513 | uts4*) |
| 15514 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15517 | shlibpath_var=LD_LIBRARY_PATH |
| 15518 | ;; |
| 15519 | |
| 15520 | *) |
| 15521 | dynamic_linker=no |
| 15522 | ;; |
| 15523 | esac |
| 15524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15525 | $as_echo "$dynamic_linker" >&6; } |
| 15526 | test "$dynamic_linker" = no && can_build_shared=no |
| 15527 | |
| 15528 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15529 | if test "$GCC" = yes; then |
| 15530 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15531 | fi |
| 15532 | |
| 15533 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15534 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15535 | fi |
| 15536 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15537 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15538 | fi |
| 15539 | |
| 15540 | |
| 15541 | |
| 15542 | |
| 15543 | |
| 15544 | |
| 15545 | |
| 15546 | |
| 15547 | |
| 15548 | |
| 15549 | |
| 15550 | |
| 15551 | |
| 15552 | |
| 15553 | |
| 15554 | |
| 15555 | |
| 15556 | |
| 15557 | |
| 15558 | |
| 15559 | |
| 15560 | |
| 15561 | |
| 15562 | |
| 15563 | |
| 15564 | |
| 15565 | |
| 15566 | |
| 15567 | |
| 15568 | |
| 15569 | |
| 15570 | |
| 15571 | |
| 15572 | |
| 15573 | |
| 15574 | |
| 15575 | |
| 15576 | |
| 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15578 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15579 | hardcode_action_CXX= |
| 15580 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15581 | test -n "$runpath_var_CXX" || |
| 15582 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 15583 | |
| 15584 | # We can hardcode non-existent directories. |
| 15585 | if test "$hardcode_direct_CXX" != no && |
| 15586 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15587 | # have to relink, otherwise we might link with an installed library |
| 15588 | # when we should be linking with a yet-to-be-installed one |
| 15589 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 15590 | test "$hardcode_minus_L_CXX" != no; then |
| 15591 | # Linking always hardcodes the temporary library directory. |
| 15592 | hardcode_action_CXX=relink |
| 15593 | else |
| 15594 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15595 | hardcode_action_CXX=immediate |
| 15596 | fi |
| 15597 | else |
| 15598 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15599 | # directories. |
| 15600 | hardcode_action_CXX=unsupported |
| 15601 | fi |
| 15602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 15603 | $as_echo "$hardcode_action_CXX" >&6; } |
| 15604 | |
| 15605 | if test "$hardcode_action_CXX" = relink || |
| 15606 | test "$inherit_rpath_CXX" = yes; then |
| 15607 | # Fast installation is not supported |
| 15608 | enable_fast_install=no |
| 15609 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15610 | test "$enable_shared" = no; then |
| 15611 | # Fast installation is not necessary |
| 15612 | enable_fast_install=needless |
| 15613 | fi |
| 15614 | |
| 15615 | |
| 15616 | |
| 15617 | |
| 15618 | |
| 15619 | |
| 15620 | |
| 15621 | fi # test -n "$compiler" |
| 15622 | |
| 15623 | CC=$lt_save_CC |
| 15624 | CFLAGS=$lt_save_CFLAGS |
| 15625 | LDCXX=$LD |
| 15626 | LD=$lt_save_LD |
| 15627 | GCC=$lt_save_GCC |
| 15628 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15629 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15630 | lt_cv_path_LD=$lt_save_path_LD |
| 15631 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15632 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15633 | fi # test "$_lt_caught_CXX_error" != yes |
| 15634 | |
| 15635 | ac_ext=c |
| 15636 | ac_cpp='$CPP $CPPFLAGS' |
| 15637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15640 | |
| 15641 | |
Jeff Thompson | 1a1b4c0 | 2013-06-28 22:28:51 -0700 | [diff] [blame] | 15642 | |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 15643 | ac_ext=mm |
| 15644 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
| 15645 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15646 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15647 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu |
| 15648 | if test -n "$ac_tool_prefix"; then |
| 15649 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15650 | do |
| 15651 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 15652 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15654 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15655 | if ${ac_cv_prog_OBJCXX+:} false; then : |
| 15656 | $as_echo_n "(cached) " >&6 |
| 15657 | else |
| 15658 | if test -n "$OBJCXX"; then |
| 15659 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. |
| 15660 | else |
| 15661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15662 | for as_dir in $PATH |
| 15663 | do |
| 15664 | IFS=$as_save_IFS |
| 15665 | test -z "$as_dir" && as_dir=. |
| 15666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15668 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
| 15669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15670 | break 2 |
| 15671 | fi |
| 15672 | done |
| 15673 | done |
| 15674 | IFS=$as_save_IFS |
| 15675 | |
| 15676 | fi |
| 15677 | fi |
| 15678 | OBJCXX=$ac_cv_prog_OBJCXX |
| 15679 | if test -n "$OBJCXX"; then |
| 15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 |
| 15681 | $as_echo "$OBJCXX" >&6; } |
| 15682 | else |
| 15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15684 | $as_echo "no" >&6; } |
| 15685 | fi |
| 15686 | |
| 15687 | |
| 15688 | test -n "$OBJCXX" && break |
| 15689 | done |
| 15690 | fi |
| 15691 | if test -z "$OBJCXX"; then |
| 15692 | ac_ct_OBJCXX=$OBJCXX |
| 15693 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15694 | do |
| 15695 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15696 | set dummy $ac_prog; ac_word=$2 |
| 15697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15698 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15699 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
| 15700 | $as_echo_n "(cached) " >&6 |
| 15701 | else |
| 15702 | if test -n "$ac_ct_OBJCXX"; then |
| 15703 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. |
| 15704 | else |
| 15705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15706 | for as_dir in $PATH |
| 15707 | do |
| 15708 | IFS=$as_save_IFS |
| 15709 | test -z "$as_dir" && as_dir=. |
| 15710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15712 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
| 15713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15714 | break 2 |
| 15715 | fi |
| 15716 | done |
| 15717 | done |
| 15718 | IFS=$as_save_IFS |
| 15719 | |
| 15720 | fi |
| 15721 | fi |
| 15722 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
| 15723 | if test -n "$ac_ct_OBJCXX"; then |
| 15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 |
| 15725 | $as_echo "$ac_ct_OBJCXX" >&6; } |
| 15726 | else |
| 15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15728 | $as_echo "no" >&6; } |
| 15729 | fi |
| 15730 | |
| 15731 | |
| 15732 | test -n "$ac_ct_OBJCXX" && break |
| 15733 | done |
| 15734 | |
| 15735 | if test "x$ac_ct_OBJCXX" = x; then |
| 15736 | OBJCXX="g++" |
| 15737 | else |
| 15738 | case $cross_compiling:$ac_tool_warned in |
| 15739 | yes:) |
| 15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15742 | ac_tool_warned=yes ;; |
| 15743 | esac |
| 15744 | OBJCXX=$ac_ct_OBJCXX |
| 15745 | fi |
| 15746 | fi |
| 15747 | |
| 15748 | # Provide some information about the compiler. |
| 15749 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
| 15750 | set X $ac_compile |
| 15751 | ac_compiler=$2 |
| 15752 | for ac_option in --version -v -V -qversion; do |
| 15753 | { { ac_try="$ac_compiler $ac_option >&5" |
| 15754 | case "(($ac_try" in |
| 15755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15756 | *) ac_try_echo=$ac_try;; |
| 15757 | esac |
| 15758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 15759 | $as_echo "$ac_try_echo"; } >&5 |
| 15760 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 15761 | ac_status=$? |
| 15762 | if test -s conftest.err; then |
| 15763 | sed '10a\ |
| 15764 | ... rest of stderr output deleted ... |
| 15765 | 10q' conftest.err >conftest.er1 |
| 15766 | cat conftest.er1 >&5 |
| 15767 | fi |
| 15768 | rm -f conftest.er1 conftest.err |
| 15769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15770 | test $ac_status = 0; } |
| 15771 | done |
| 15772 | |
| 15773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
| 15774 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } |
| 15775 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : |
| 15776 | $as_echo_n "(cached) " >&6 |
| 15777 | else |
| 15778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15779 | /* end confdefs.h. */ |
| 15780 | |
| 15781 | int |
| 15782 | main () |
| 15783 | { |
| 15784 | #ifndef __GNUC__ |
| 15785 | choke me |
| 15786 | #endif |
| 15787 | |
| 15788 | ; |
| 15789 | return 0; |
| 15790 | } |
| 15791 | _ACEOF |
| 15792 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15793 | ac_compiler_gnu=yes |
| 15794 | else |
| 15795 | ac_compiler_gnu=no |
| 15796 | fi |
| 15797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15798 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
| 15799 | |
| 15800 | fi |
| 15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
| 15802 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } |
| 15803 | if test $ac_compiler_gnu = yes; then |
| 15804 | GOBJCXX=yes |
| 15805 | else |
| 15806 | GOBJCXX= |
| 15807 | fi |
| 15808 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
| 15809 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS |
| 15810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 |
| 15811 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } |
| 15812 | if ${ac_cv_prog_objcxx_g+:} false; then : |
| 15813 | $as_echo_n "(cached) " >&6 |
| 15814 | else |
| 15815 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
| 15816 | ac_objcxx_werror_flag=yes |
| 15817 | ac_cv_prog_objcxx_g=no |
| 15818 | OBJCXXFLAGS="-g" |
| 15819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15820 | /* end confdefs.h. */ |
| 15821 | |
| 15822 | int |
| 15823 | main () |
| 15824 | { |
| 15825 | |
| 15826 | ; |
| 15827 | return 0; |
| 15828 | } |
| 15829 | _ACEOF |
| 15830 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15831 | ac_cv_prog_objcxx_g=yes |
| 15832 | else |
| 15833 | OBJCXXFLAGS="" |
| 15834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15835 | /* end confdefs.h. */ |
| 15836 | |
| 15837 | int |
| 15838 | main () |
| 15839 | { |
| 15840 | |
| 15841 | ; |
| 15842 | return 0; |
| 15843 | } |
| 15844 | _ACEOF |
| 15845 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15846 | |
| 15847 | else |
| 15848 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
| 15849 | OBJCXXFLAGS="-g" |
| 15850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15851 | /* end confdefs.h. */ |
| 15852 | |
| 15853 | int |
| 15854 | main () |
| 15855 | { |
| 15856 | |
| 15857 | ; |
| 15858 | return 0; |
| 15859 | } |
| 15860 | _ACEOF |
| 15861 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15862 | ac_cv_prog_objcxx_g=yes |
| 15863 | fi |
| 15864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15865 | fi |
| 15866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15867 | fi |
| 15868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15869 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag |
| 15870 | fi |
| 15871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
| 15872 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } |
| 15873 | if test "$ac_test_OBJCXXFLAGS" = set; then |
| 15874 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS |
| 15875 | elif test $ac_cv_prog_objcxx_g = yes; then |
| 15876 | if test "$GOBJCXX" = yes; then |
| 15877 | OBJCXXFLAGS="-g -O2" |
| 15878 | else |
| 15879 | OBJCXXFLAGS="-g" |
| 15880 | fi |
| 15881 | else |
| 15882 | if test "$GOBJCXX" = yes; then |
| 15883 | OBJCXXFLAGS="-O2" |
| 15884 | else |
| 15885 | OBJCXXFLAGS= |
| 15886 | fi |
| 15887 | fi |
| 15888 | ac_ext=c |
| 15889 | ac_cpp='$CPP $CPPFLAGS' |
| 15890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15893 | |
| 15894 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
| 15895 | |
| 15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 15897 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 15898 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
| 15899 | $as_echo_n "(cached) " >&6 |
| 15900 | else |
| 15901 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 15902 | # We make a subdir and do the tests there. Otherwise we can end up |
| 15903 | # making bogus files that we don't know about and never remove. For |
| 15904 | # instance it was reported that on HP-UX the gcc test will end up |
| 15905 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 15906 | # in D". |
| 15907 | rm -rf conftest.dir |
| 15908 | mkdir conftest.dir |
| 15909 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 15910 | # using a relative directory. |
| 15911 | cp "$am_depcomp" conftest.dir |
| 15912 | cd conftest.dir |
| 15913 | # We will build objects and dependencies in a subdirectory because |
| 15914 | # it helps to detect inapplicable dependency modes. For instance |
| 15915 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 15916 | # side effect of compilation, but ICC will put the dependencies in |
| 15917 | # the current directory while Tru64 will put them in the object |
| 15918 | # directory. |
| 15919 | mkdir sub |
| 15920 | |
| 15921 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 15922 | if test "$am_compiler_list" = ""; then |
| 15923 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 15924 | fi |
| 15925 | am__universal=false |
| 15926 | |
| 15927 | |
| 15928 | for depmode in $am_compiler_list; do |
| 15929 | # Setup a source with many dependencies, because some compilers |
| 15930 | # like to wrap large dependency lists on column 80 (with \), and |
| 15931 | # we should not choose a depcomp mode which is confused by this. |
| 15932 | # |
| 15933 | # We need to recreate these files for each test, as the compiler may |
| 15934 | # overwrite some of them when testing with obscure command lines. |
| 15935 | # This happens at least with the AIX C compiler. |
| 15936 | : > sub/conftest.c |
| 15937 | for i in 1 2 3 4 5 6; do |
| 15938 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 15939 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 15940 | # Solaris 10 /bin/sh. |
| 15941 | echo '/* dummy */' > sub/conftst$i.h |
| 15942 | done |
| 15943 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 15944 | |
| 15945 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 15946 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 15947 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 15948 | # versions had trouble with output in subdirs. |
| 15949 | am__obj=sub/conftest.${OBJEXT-o} |
| 15950 | am__minus_obj="-o $am__obj" |
| 15951 | case $depmode in |
| 15952 | gcc) |
| 15953 | # This depmode causes a compiler race in universal mode. |
| 15954 | test "$am__universal" = false || continue |
| 15955 | ;; |
| 15956 | nosideeffect) |
| 15957 | # After this tag, mechanisms are not by side-effect, so they'll |
| 15958 | # only be used when explicitly requested. |
| 15959 | if test "x$enable_dependency_tracking" = xyes; then |
| 15960 | continue |
| 15961 | else |
| 15962 | break |
| 15963 | fi |
| 15964 | ;; |
| 15965 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 15966 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 15967 | # not run yet. These depmodes are late enough in the game, and |
| 15968 | # so weak that their functioning should not be impacted. |
| 15969 | am__obj=conftest.${OBJEXT-o} |
| 15970 | am__minus_obj= |
| 15971 | ;; |
| 15972 | none) break ;; |
| 15973 | esac |
| 15974 | if depmode=$depmode \ |
| 15975 | source=sub/conftest.c object=$am__obj \ |
| 15976 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 15977 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 15978 | >/dev/null 2>conftest.err && |
| 15979 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 15980 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 15981 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 15982 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 15983 | # icc doesn't choke on unknown options, it will just issue warnings |
| 15984 | # or remarks (even with -Werror). So we grep stderr for any message |
| 15985 | # that says an option was ignored or not supported. |
| 15986 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 15987 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 15988 | # The diagnosis changed in icc 8.0: |
| 15989 | # icc: Command line remark: option '-MP' not supported |
| 15990 | if (grep 'ignoring option' conftest.err || |
| 15991 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 15992 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
| 15993 | break |
| 15994 | fi |
| 15995 | fi |
| 15996 | done |
| 15997 | |
| 15998 | cd .. |
| 15999 | rm -rf conftest.dir |
| 16000 | else |
| 16001 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 16002 | fi |
| 16003 | |
| 16004 | fi |
| 16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
| 16006 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } |
| 16007 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type |
| 16008 | |
| 16009 | if |
| 16010 | test "x$enable_dependency_tracking" != xno \ |
| 16011 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
| 16012 | am__fastdepOBJCXX_TRUE= |
| 16013 | am__fastdepOBJCXX_FALSE='#' |
| 16014 | else |
| 16015 | am__fastdepOBJCXX_TRUE='#' |
| 16016 | am__fastdepOBJCXX_FALSE= |
| 16017 | fi |
| 16018 | |
| 16019 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 16020 | ac_ext=cpp |
| 16021 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16022 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16023 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16024 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16025 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 16026 | |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 16027 | |
| 16028 | # Check whether --with-sqlite3 was given. |
| 16029 | if test "${with_sqlite3+set}" = set; then : |
| 16030 | withval=$with_sqlite3; |
| 16031 | if test "$withval" = "no"; then |
| 16032 | WANT_SQLITE3="no" |
| 16033 | elif test "$withval" = "yes"; then |
| 16034 | WANT_SQLITE3="yes" |
| 16035 | ac_sqlite3_path="" |
| 16036 | else |
| 16037 | WANT_SQLITE3="yes" |
| 16038 | ac_sqlite3_path="$withval" |
| 16039 | fi |
| 16040 | |
| 16041 | else |
| 16042 | WANT_SQLITE3="yes" |
| 16043 | |
| 16044 | fi |
| 16045 | |
| 16046 | |
| 16047 | SQLITE3_CFLAGS="" |
| 16048 | SQLITE3_LDFLAGS="" |
| 16049 | SQLITE3_VERSION="" |
| 16050 | |
| 16051 | if test "x$WANT_SQLITE3" = "xyes"; then |
| 16052 | |
| 16053 | ac_sqlite3_header="sqlite3.h" |
| 16054 | |
| 16055 | sqlite3_version_req=3.0.0 |
| 16056 | sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'` |
| 16057 | sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'` |
| 16058 | sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'` |
| 16059 | sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` |
| 16060 | if test "x$sqlite3_version_req_micro" = "x" ; then |
| 16061 | sqlite3_version_req_micro="0" |
| 16062 | fi |
| 16063 | |
| 16064 | sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \ |
| 16065 | \+ $sqlite3_version_req_minor \* 1000 \ |
| 16066 | \+ $sqlite3_version_req_micro` |
| 16067 | |
| 16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5 |
| 16069 | $as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; } |
| 16070 | |
| 16071 | if test "$ac_sqlite3_path" != ""; then |
| 16072 | ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib" |
| 16073 | ac_sqlite3_cppflags="-I$ac_sqlite3_path/include" |
| 16074 | else |
| 16075 | for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do |
| 16076 | if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \ |
| 16077 | && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then |
| 16078 | ac_sqlite3_path=$ac_sqlite3_path_tmp |
| 16079 | ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include" |
| 16080 | ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib" |
| 16081 | break; |
| 16082 | fi |
| 16083 | done |
| 16084 | fi |
| 16085 | |
| 16086 | ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3" |
| 16087 | |
| 16088 | saved_CPPFLAGS="$CPPFLAGS" |
| 16089 | CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" |
| 16090 | |
| 16091 | ac_ext=c |
| 16092 | ac_cpp='$CPP $CPPFLAGS' |
| 16093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16096 | |
| 16097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16098 | /* end confdefs.h. */ |
| 16099 | |
| 16100 | #include <sqlite3.h> |
| 16101 | int |
| 16102 | main () |
| 16103 | { |
| 16104 | |
| 16105 | #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) |
| 16106 | /* Everything is okay */ |
| 16107 | #else |
| 16108 | # error SQLite version is too old |
| 16109 | #endif |
| 16110 | |
| 16111 | |
| 16112 | ; |
| 16113 | return 0; |
| 16114 | } |
| 16115 | |
| 16116 | _ACEOF |
| 16117 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16118 | |
| 16119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16120 | $as_echo "yes" >&6; } |
| 16121 | success="yes" |
| 16122 | |
| 16123 | else |
| 16124 | |
| 16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 16126 | $as_echo "not found" >&6; } |
| 16127 | success="no" |
| 16128 | |
| 16129 | |
| 16130 | fi |
| 16131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16132 | ac_ext=cpp |
| 16133 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16134 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16135 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16136 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16137 | |
| 16138 | |
| 16139 | CPPFLAGS="$saved_CPPFLAGS" |
| 16140 | |
| 16141 | if test "$success" = "yes"; then |
| 16142 | |
| 16143 | SQLITE3_CFLAGS="$ac_sqlite3_cppflags" |
| 16144 | SQLITE3_LDFLAGS="$ac_sqlite3_ldflags" |
| 16145 | |
| 16146 | ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header" |
| 16147 | |
| 16148 | if test "x$ac_sqlite3_header_path" != "x"; then |
| 16149 | ac_sqlite3_version=`cat $ac_sqlite3_header_path \ |
| 16150 | | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \ |
| 16151 | | sed -e 's/"//'` |
| 16152 | if test $ac_sqlite3_version != ""; then |
| 16153 | SQLITE3_VERSION=$ac_sqlite3_version |
| 16154 | else |
| 16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5 |
| 16156 | $as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;} |
| 16157 | fi |
| 16158 | fi |
| 16159 | |
| 16160 | |
| 16161 | |
| 16162 | |
| 16163 | |
| 16164 | $as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h |
| 16165 | |
| 16166 | fi |
| 16167 | fi |
| 16168 | |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16169 | ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 16170 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 16171 | |
| 16172 | else |
| 16173 | |
| 16174 | cat >>confdefs.h <<_ACEOF |
| 16175 | #define size_t unsigned int |
| 16176 | _ACEOF |
| 16177 | |
| 16178 | fi |
| 16179 | |
| 16180 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 16181 | case $ac_cv_c_int8_t in #( |
| 16182 | no|yes) ;; #( |
| 16183 | *) |
| 16184 | |
| 16185 | cat >>confdefs.h <<_ACEOF |
| 16186 | #define int8_t $ac_cv_c_int8_t |
| 16187 | _ACEOF |
| 16188 | ;; |
| 16189 | esac |
| 16190 | |
| 16191 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 16192 | case $ac_cv_c_int16_t in #( |
| 16193 | no|yes) ;; #( |
| 16194 | *) |
| 16195 | |
| 16196 | cat >>confdefs.h <<_ACEOF |
| 16197 | #define int16_t $ac_cv_c_int16_t |
| 16198 | _ACEOF |
| 16199 | ;; |
| 16200 | esac |
| 16201 | |
| 16202 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 16203 | case $ac_cv_c_int32_t in #( |
| 16204 | no|yes) ;; #( |
| 16205 | *) |
| 16206 | |
| 16207 | cat >>confdefs.h <<_ACEOF |
| 16208 | #define int32_t $ac_cv_c_int32_t |
| 16209 | _ACEOF |
| 16210 | ;; |
| 16211 | esac |
| 16212 | |
| 16213 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 16214 | case $ac_cv_c_int64_t in #( |
| 16215 | no|yes) ;; #( |
| 16216 | *) |
| 16217 | |
| 16218 | cat >>confdefs.h <<_ACEOF |
| 16219 | #define int64_t $ac_cv_c_int64_t |
| 16220 | _ACEOF |
| 16221 | ;; |
| 16222 | esac |
| 16223 | |
| 16224 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 16225 | case $ac_cv_c_uint8_t in #( |
| 16226 | no|yes) ;; #( |
| 16227 | *) |
| 16228 | |
| 16229 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 16230 | |
| 16231 | |
| 16232 | cat >>confdefs.h <<_ACEOF |
| 16233 | #define uint8_t $ac_cv_c_uint8_t |
| 16234 | _ACEOF |
| 16235 | ;; |
| 16236 | esac |
| 16237 | |
| 16238 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 16239 | case $ac_cv_c_uint16_t in #( |
| 16240 | no|yes) ;; #( |
| 16241 | *) |
| 16242 | |
| 16243 | |
| 16244 | cat >>confdefs.h <<_ACEOF |
| 16245 | #define uint16_t $ac_cv_c_uint16_t |
| 16246 | _ACEOF |
| 16247 | ;; |
| 16248 | esac |
| 16249 | |
| 16250 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 16251 | case $ac_cv_c_uint32_t in #( |
| 16252 | no|yes) ;; #( |
| 16253 | *) |
| 16254 | |
| 16255 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 16256 | |
| 16257 | |
| 16258 | cat >>confdefs.h <<_ACEOF |
| 16259 | #define uint32_t $ac_cv_c_uint32_t |
| 16260 | _ACEOF |
| 16261 | ;; |
| 16262 | esac |
| 16263 | |
| 16264 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 16265 | case $ac_cv_c_uint64_t in #( |
| 16266 | no|yes) ;; #( |
| 16267 | *) |
| 16268 | |
| 16269 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 16270 | |
| 16271 | |
| 16272 | cat >>confdefs.h <<_ACEOF |
| 16273 | #define uint64_t $ac_cv_c_uint64_t |
| 16274 | _ACEOF |
| 16275 | ;; |
| 16276 | esac |
| 16277 | |
| 16278 | for ac_func in memcmp |
| 16279 | do : |
| 16280 | ac_fn_cxx_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" |
| 16281 | if test "x$ac_cv_func_memcmp" = xyes; then : |
| 16282 | cat >>confdefs.h <<_ACEOF |
| 16283 | #define HAVE_MEMCMP 1 |
| 16284 | _ACEOF |
| 16285 | |
| 16286 | fi |
| 16287 | done |
| 16288 | |
| 16289 | for ac_func in memcpy |
| 16290 | do : |
| 16291 | ac_fn_cxx_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
| 16292 | if test "x$ac_cv_func_memcpy" = xyes; then : |
| 16293 | cat >>confdefs.h <<_ACEOF |
| 16294 | #define HAVE_MEMCPY 1 |
| 16295 | _ACEOF |
| 16296 | |
| 16297 | fi |
| 16298 | done |
| 16299 | |
| 16300 | for ac_func in memset |
| 16301 | do : |
| 16302 | ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 16303 | if test "x$ac_cv_func_memset" = xyes; then : |
| 16304 | cat >>confdefs.h <<_ACEOF |
| 16305 | #define HAVE_MEMSET 1 |
| 16306 | _ACEOF |
| 16307 | |
| 16308 | fi |
| 16309 | done |
| 16310 | |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 16311 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 16312 | ax_cxx_compile_cxx11_required=falsednl |
| 16313 | ac_ext=cpp |
| 16314 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16318 | ac_success=no |
| 16319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 16320 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 16321 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 16322 | $as_echo_n "(cached) " >&6 |
| 16323 | else |
| 16324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16325 | /* end confdefs.h. */ |
| 16326 | |
| 16327 | template <typename T> |
| 16328 | struct check |
| 16329 | { |
| 16330 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16331 | }; |
| 16332 | |
| 16333 | typedef check<check<bool>> right_angle_brackets; |
| 16334 | |
| 16335 | int a; |
| 16336 | decltype(a) b; |
| 16337 | |
| 16338 | typedef check<int> check_type; |
| 16339 | check_type c; |
| 16340 | check_type&& cr = static_cast<check_type&&>(c); |
| 16341 | |
| 16342 | auto d = a; |
| 16343 | |
| 16344 | _ACEOF |
| 16345 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16346 | ax_cv_cxx_compile_cxx11=yes |
| 16347 | else |
| 16348 | ax_cv_cxx_compile_cxx11=no |
| 16349 | fi |
| 16350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16351 | fi |
| 16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 16353 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 16354 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 16355 | ac_success=yes |
| 16356 | fi |
| 16357 | |
| 16358 | if test x$ac_success = xno; then |
| 16359 | for switch in -std=gnu++11 -std=gnu++0x; do |
| 16360 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16362 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16363 | if eval \${$cachevar+:} false; then : |
| 16364 | $as_echo_n "(cached) " >&6 |
| 16365 | else |
| 16366 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16367 | CXXFLAGS="$CXXFLAGS $switch" |
| 16368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16369 | /* end confdefs.h. */ |
| 16370 | |
| 16371 | template <typename T> |
| 16372 | struct check |
| 16373 | { |
| 16374 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16375 | }; |
| 16376 | |
| 16377 | typedef check<check<bool>> right_angle_brackets; |
| 16378 | |
| 16379 | int a; |
| 16380 | decltype(a) b; |
| 16381 | |
| 16382 | typedef check<int> check_type; |
| 16383 | check_type c; |
| 16384 | check_type&& cr = static_cast<check_type&&>(c); |
| 16385 | |
| 16386 | auto d = a; |
| 16387 | |
| 16388 | _ACEOF |
| 16389 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16390 | eval $cachevar=yes |
| 16391 | else |
| 16392 | eval $cachevar=no |
| 16393 | fi |
| 16394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16395 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16396 | fi |
| 16397 | eval ac_res=\$$cachevar |
| 16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16399 | $as_echo "$ac_res" >&6; } |
| 16400 | if eval test x\$$cachevar = xyes; then |
| 16401 | CXXFLAGS="$CXXFLAGS $switch" |
| 16402 | ac_success=yes |
| 16403 | break |
| 16404 | fi |
| 16405 | done |
| 16406 | fi |
| 16407 | |
| 16408 | if test x$ac_success = xno; then |
| 16409 | for switch in -std=c++11 -std=c++0x; do |
| 16410 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16412 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16413 | if eval \${$cachevar+:} false; then : |
| 16414 | $as_echo_n "(cached) " >&6 |
| 16415 | else |
| 16416 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16417 | CXXFLAGS="$CXXFLAGS $switch" |
| 16418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16419 | /* end confdefs.h. */ |
| 16420 | |
| 16421 | template <typename T> |
| 16422 | struct check |
| 16423 | { |
| 16424 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16425 | }; |
| 16426 | |
| 16427 | typedef check<check<bool>> right_angle_brackets; |
| 16428 | |
| 16429 | int a; |
| 16430 | decltype(a) b; |
| 16431 | |
| 16432 | typedef check<int> check_type; |
| 16433 | check_type c; |
| 16434 | check_type&& cr = static_cast<check_type&&>(c); |
| 16435 | |
| 16436 | auto d = a; |
| 16437 | |
| 16438 | _ACEOF |
| 16439 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16440 | eval $cachevar=yes |
| 16441 | else |
| 16442 | eval $cachevar=no |
| 16443 | fi |
| 16444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16445 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16446 | fi |
| 16447 | eval ac_res=\$$cachevar |
| 16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16449 | $as_echo "$ac_res" >&6; } |
| 16450 | if eval test x\$$cachevar = xyes; then |
| 16451 | CXXFLAGS="$CXXFLAGS $switch" |
| 16452 | ac_success=yes |
| 16453 | break |
| 16454 | fi |
| 16455 | done |
| 16456 | fi |
| 16457 | ac_ext=cpp |
| 16458 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16462 | |
| 16463 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 16464 | if test x$ac_success = xno; then |
| 16465 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 16466 | fi |
| 16467 | else |
| 16468 | if test x$ac_success = xno; then |
| 16469 | HAVE_CXX11=0 |
| 16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 16471 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 16472 | else |
| 16473 | HAVE_CXX11=1 |
| 16474 | |
| 16475 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 16476 | |
| 16477 | fi |
| 16478 | |
| 16479 | |
| 16480 | fi |
| 16481 | |
Jeff Thompson | 8a055e0 | 2013-08-09 10:44:28 -0700 | [diff] [blame] | 16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 16483 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 16484 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 16485 | $as_echo_n "(cached) " >&6 |
| 16486 | else |
| 16487 | ac_check_lib_save_LIBS=$LIBS |
| 16488 | LIBS="-lcrypto $LIBS" |
| 16489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16490 | /* end confdefs.h. */ |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 16491 | |
Jeff Thompson | 8a055e0 | 2013-08-09 10:44:28 -0700 | [diff] [blame] | 16492 | /* Override any GCC internal prototype to avoid an error. |
| 16493 | Use char because int might match the return type of a GCC |
| 16494 | builtin and then its argument prototype would still apply. */ |
| 16495 | #ifdef __cplusplus |
| 16496 | extern "C" |
| 16497 | #endif |
| 16498 | char EVP_EncryptInit (); |
| 16499 | int |
| 16500 | main () |
| 16501 | { |
| 16502 | return EVP_EncryptInit (); |
| 16503 | ; |
| 16504 | return 0; |
| 16505 | } |
| 16506 | _ACEOF |
| 16507 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16508 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 16509 | else |
| 16510 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 16511 | fi |
| 16512 | rm -f core conftest.err conftest.$ac_objext \ |
| 16513 | conftest$ac_exeext conftest.$ac_ext |
| 16514 | LIBS=$ac_check_lib_save_LIBS |
| 16515 | fi |
| 16516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 16517 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 16518 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 16519 | cat >>confdefs.h <<_ACEOF |
| 16520 | #define HAVE_LIBCRYPTO 1 |
| 16521 | _ACEOF |
| 16522 | |
| 16523 | LIBS="-lcrypto $LIBS" |
| 16524 | |
| 16525 | else |
| 16526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16528 | as_fn_error $? "can't find openssl crypto lib |
| 16529 | See \`config.log' for more details" "$LINENO" 5; } |
| 16530 | fi |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 16531 | |
| 16532 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5 |
| 16534 | $as_echo_n "checking for std::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16536 | /* end confdefs.h. */ |
| 16537 | #include <memory> |
| 16538 | std::shared_ptr<int> have_shared_ptr; |
| 16539 | int |
| 16540 | main () |
| 16541 | { |
| 16542 | |
| 16543 | ; |
| 16544 | return 0; |
| 16545 | } |
| 16546 | |
| 16547 | _ACEOF |
| 16548 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16549 | |
| 16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16551 | $as_echo "yes" >&6; } |
| 16552 | |
| 16553 | cat >>confdefs.h <<_ACEOF |
| 16554 | #define HAVE_STD_SHARED_PTR 1 |
| 16555 | _ACEOF |
| 16556 | |
| 16557 | |
| 16558 | else |
| 16559 | |
| 16560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16561 | $as_echo "no" >&6; } |
| 16562 | |
| 16563 | cat >>confdefs.h <<_ACEOF |
| 16564 | #define HAVE_STD_SHARED_PTR 0 |
| 16565 | _ACEOF |
| 16566 | |
| 16567 | |
| 16568 | fi |
| 16569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | 9e9ea9f | 2013-06-22 10:31:18 -0700 | [diff] [blame] | 16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5 |
| 16571 | $as_echo_n "checking for boost::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16573 | /* end confdefs.h. */ |
| 16574 | #include <boost/shared_ptr.hpp> |
| 16575 | boost::shared_ptr<int> have_shared_ptr; |
| 16576 | int |
| 16577 | main () |
| 16578 | { |
| 16579 | |
| 16580 | ; |
| 16581 | return 0; |
| 16582 | } |
| 16583 | |
| 16584 | _ACEOF |
| 16585 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16586 | |
| 16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16588 | $as_echo "yes" >&6; } |
| 16589 | |
| 16590 | cat >>confdefs.h <<_ACEOF |
| 16591 | #define HAVE_BOOST_SHARED_PTR 1 |
| 16592 | _ACEOF |
| 16593 | |
| 16594 | |
| 16595 | else |
| 16596 | |
| 16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16598 | $as_echo "no" >&6; } |
| 16599 | |
| 16600 | cat >>confdefs.h <<_ACEOF |
| 16601 | #define HAVE_BOOST_SHARED_PTR 0 |
| 16602 | _ACEOF |
| 16603 | |
| 16604 | |
| 16605 | fi |
| 16606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16607 | |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5 |
| 16609 | $as_echo_n "checking for std::function... " >&6; } |
| 16610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16611 | /* end confdefs.h. */ |
| 16612 | #include <functional> |
| 16613 | std::function<int> have_function(); |
| 16614 | int |
| 16615 | main () |
| 16616 | { |
| 16617 | |
| 16618 | ; |
| 16619 | return 0; |
| 16620 | } |
| 16621 | |
| 16622 | _ACEOF |
| 16623 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16624 | |
| 16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16626 | $as_echo "yes" >&6; } |
| 16627 | |
| 16628 | cat >>confdefs.h <<_ACEOF |
| 16629 | #define HAVE_STD_FUNCTION 1 |
| 16630 | _ACEOF |
| 16631 | |
| 16632 | |
| 16633 | else |
| 16634 | |
| 16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16636 | $as_echo "no" >&6; } |
| 16637 | |
| 16638 | cat >>confdefs.h <<_ACEOF |
| 16639 | #define HAVE_STD_FUNCTION 0 |
| 16640 | _ACEOF |
| 16641 | |
| 16642 | |
| 16643 | fi |
| 16644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5 |
| 16646 | $as_echo_n "checking for boost::function... " >&6; } |
| 16647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16648 | /* end confdefs.h. */ |
| 16649 | #include <boost/function.hpp> |
| 16650 | boost::function<int> have_function(); |
| 16651 | int |
| 16652 | main () |
| 16653 | { |
| 16654 | |
| 16655 | ; |
| 16656 | return 0; |
| 16657 | } |
| 16658 | |
| 16659 | _ACEOF |
| 16660 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16661 | |
| 16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16663 | $as_echo "yes" >&6; } |
| 16664 | |
| 16665 | cat >>confdefs.h <<_ACEOF |
| 16666 | #define HAVE_BOOST_FUNCTION 1 |
| 16667 | _ACEOF |
| 16668 | |
| 16669 | |
| 16670 | else |
| 16671 | |
| 16672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16673 | $as_echo "no" >&6; } |
| 16674 | |
| 16675 | cat >>confdefs.h <<_ACEOF |
| 16676 | #define HAVE_BOOST_FUNCTION 0 |
| 16677 | _ACEOF |
| 16678 | |
| 16679 | |
| 16680 | fi |
| 16681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16682 | |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX SecKeychain" >&5 |
| 16684 | $as_echo_n "checking for OSX SecKeychain... " >&6; } |
| 16685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16686 | /* end confdefs.h. */ |
| 16687 | #include <CoreFoundation/CoreFoundation.h> |
| 16688 | #include <Security/Security.h> |
| 16689 | #include <CoreServices/CoreServices.h> |
| 16690 | void test() { SecKeychainRef x; } |
| 16691 | int |
| 16692 | main () |
| 16693 | { |
| 16694 | |
| 16695 | ; |
| 16696 | return 0; |
| 16697 | } |
| 16698 | |
| 16699 | _ACEOF |
| 16700 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16701 | |
| 16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16703 | $as_echo "yes" >&6; } |
| 16704 | |
| 16705 | cat >>confdefs.h <<_ACEOF |
| 16706 | #define HAVE_OSX_SECKEYCHAIN 1 |
| 16707 | _ACEOF |
| 16708 | |
| 16709 | |
| 16710 | else |
| 16711 | |
| 16712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16713 | $as_echo "no" >&6; } |
| 16714 | |
| 16715 | cat >>confdefs.h <<_ACEOF |
| 16716 | #define HAVE_OSX_SECKEYCHAIN 0 |
| 16717 | _ACEOF |
| 16718 | |
| 16719 | |
| 16720 | fi |
| 16721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16722 | |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 16723 | |
| 16724 | |
| 16725 | |
| 16726 | |
| 16727 | |
| 16728 | |
| 16729 | |
| 16730 | |
| 16731 | |
| 16732 | |
| 16733 | # Files: |
| 16734 | DX_PROJECT=$PACKAGE_NAME |
| 16735 | |
| 16736 | DX_CONFIG=Doxyfile |
| 16737 | |
| 16738 | DX_DOCDIR=doxygen-doc |
| 16739 | |
| 16740 | |
| 16741 | # Environment variables used inside doxygen.cfg: |
| 16742 | DX_ENV="$DX_ENV SRCDIR='$srcdir'" |
| 16743 | |
| 16744 | DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" |
| 16745 | |
| 16746 | DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" |
| 16747 | |
| 16748 | DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" |
| 16749 | |
| 16750 | |
| 16751 | # Doxygen itself: |
| 16752 | |
| 16753 | |
| 16754 | |
| 16755 | # Check whether --enable-doxygen-doc was given. |
| 16756 | if test "${enable_doxygen_doc+set}" = set; then : |
| 16757 | enableval=$enable_doxygen_doc; |
| 16758 | case "$enableval" in |
| 16759 | #( |
| 16760 | y|Y|yes|Yes|YES) |
| 16761 | DX_FLAG_doc=1 |
| 16762 | |
| 16763 | |
| 16764 | ;; #( |
| 16765 | n|N|no|No|NO) |
| 16766 | DX_FLAG_doc=0 |
| 16767 | |
| 16768 | ;; #( |
| 16769 | *) |
| 16770 | as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 |
| 16771 | ;; |
| 16772 | esac |
| 16773 | |
| 16774 | else |
| 16775 | |
| 16776 | DX_FLAG_doc=1 |
| 16777 | |
| 16778 | |
| 16779 | |
| 16780 | fi |
| 16781 | |
| 16782 | if test "$DX_FLAG_doc" = 1; then |
| 16783 | |
| 16784 | if test -n "$ac_tool_prefix"; then |
| 16785 | # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. |
| 16786 | set dummy ${ac_tool_prefix}doxygen; ac_word=$2 |
| 16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16788 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16789 | if ${ac_cv_path_DX_DOXYGEN+:} false; then : |
| 16790 | $as_echo_n "(cached) " >&6 |
| 16791 | else |
| 16792 | case $DX_DOXYGEN in |
| 16793 | [\\/]* | ?:[\\/]*) |
| 16794 | ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. |
| 16795 | ;; |
| 16796 | *) |
| 16797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16798 | for as_dir in $PATH |
| 16799 | do |
| 16800 | IFS=$as_save_IFS |
| 16801 | test -z "$as_dir" && as_dir=. |
| 16802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16804 | ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 16805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16806 | break 2 |
| 16807 | fi |
| 16808 | done |
| 16809 | done |
| 16810 | IFS=$as_save_IFS |
| 16811 | |
| 16812 | ;; |
| 16813 | esac |
| 16814 | fi |
| 16815 | DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN |
| 16816 | if test -n "$DX_DOXYGEN"; then |
| 16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 |
| 16818 | $as_echo "$DX_DOXYGEN" >&6; } |
| 16819 | else |
| 16820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16821 | $as_echo "no" >&6; } |
| 16822 | fi |
| 16823 | |
| 16824 | |
| 16825 | fi |
| 16826 | if test -z "$ac_cv_path_DX_DOXYGEN"; then |
| 16827 | ac_pt_DX_DOXYGEN=$DX_DOXYGEN |
| 16828 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 16829 | set dummy doxygen; 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_ac_pt_DX_DOXYGEN+:} false; then : |
| 16833 | $as_echo_n "(cached) " >&6 |
| 16834 | else |
| 16835 | case $ac_pt_DX_DOXYGEN in |
| 16836 | [\\/]* | ?:[\\/]*) |
| 16837 | ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # 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_ac_pt_DX_DOXYGEN="$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 | ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN |
| 16859 | if test -n "$ac_pt_DX_DOXYGEN"; then |
| 16860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 |
| 16861 | $as_echo "$ac_pt_DX_DOXYGEN" >&6; } |
| 16862 | else |
| 16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16864 | $as_echo "no" >&6; } |
| 16865 | fi |
| 16866 | |
| 16867 | if test "x$ac_pt_DX_DOXYGEN" = x; then |
| 16868 | DX_DOXYGEN="" |
| 16869 | else |
| 16870 | case $cross_compiling:$ac_tool_warned in |
| 16871 | yes:) |
| 16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16874 | ac_tool_warned=yes ;; |
| 16875 | esac |
| 16876 | DX_DOXYGEN=$ac_pt_DX_DOXYGEN |
| 16877 | fi |
| 16878 | else |
| 16879 | DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" |
| 16880 | fi |
| 16881 | |
| 16882 | if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then |
| 16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 |
| 16884 | $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} |
| 16885 | DX_FLAG_doc=0 |
| 16886 | |
| 16887 | fi |
| 16888 | |
| 16889 | |
| 16890 | if test -n "$ac_tool_prefix"; then |
| 16891 | # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. |
| 16892 | set dummy ${ac_tool_prefix}perl; ac_word=$2 |
| 16893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16894 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16895 | if ${ac_cv_path_DX_PERL+:} false; then : |
| 16896 | $as_echo_n "(cached) " >&6 |
| 16897 | else |
| 16898 | case $DX_PERL in |
| 16899 | [\\/]* | ?:[\\/]*) |
| 16900 | ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. |
| 16901 | ;; |
| 16902 | *) |
| 16903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16904 | for as_dir in $PATH |
| 16905 | do |
| 16906 | IFS=$as_save_IFS |
| 16907 | test -z "$as_dir" && as_dir=. |
| 16908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16910 | ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 16911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16912 | break 2 |
| 16913 | fi |
| 16914 | done |
| 16915 | done |
| 16916 | IFS=$as_save_IFS |
| 16917 | |
| 16918 | ;; |
| 16919 | esac |
| 16920 | fi |
| 16921 | DX_PERL=$ac_cv_path_DX_PERL |
| 16922 | if test -n "$DX_PERL"; then |
| 16923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 |
| 16924 | $as_echo "$DX_PERL" >&6; } |
| 16925 | else |
| 16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16927 | $as_echo "no" >&6; } |
| 16928 | fi |
| 16929 | |
| 16930 | |
| 16931 | fi |
| 16932 | if test -z "$ac_cv_path_DX_PERL"; then |
| 16933 | ac_pt_DX_PERL=$DX_PERL |
| 16934 | # Extract the first word of "perl", so it can be a program name with args. |
| 16935 | set dummy perl; 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_ac_pt_DX_PERL+:} false; then : |
| 16939 | $as_echo_n "(cached) " >&6 |
| 16940 | else |
| 16941 | case $ac_pt_DX_PERL in |
| 16942 | [\\/]* | ?:[\\/]*) |
| 16943 | ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # 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_ac_pt_DX_PERL="$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 | ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL |
| 16965 | if test -n "$ac_pt_DX_PERL"; then |
| 16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 |
| 16967 | $as_echo "$ac_pt_DX_PERL" >&6; } |
| 16968 | else |
| 16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16970 | $as_echo "no" >&6; } |
| 16971 | fi |
| 16972 | |
| 16973 | if test "x$ac_pt_DX_PERL" = x; then |
| 16974 | DX_PERL="" |
| 16975 | else |
| 16976 | case $cross_compiling:$ac_tool_warned in |
| 16977 | yes:) |
| 16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16979 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16980 | ac_tool_warned=yes ;; |
| 16981 | esac |
| 16982 | DX_PERL=$ac_pt_DX_PERL |
| 16983 | fi |
| 16984 | else |
| 16985 | DX_PERL="$ac_cv_path_DX_PERL" |
| 16986 | fi |
| 16987 | |
| 16988 | if test "$DX_FLAG_doc$DX_PERL" = 1; then |
| 16989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 |
| 16990 | $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} |
| 16991 | DX_FLAG_doc=0 |
| 16992 | |
| 16993 | fi |
| 16994 | |
| 16995 | : |
| 16996 | fi |
| 16997 | if test "$DX_FLAG_doc" = 1; then |
| 16998 | DX_COND_doc_TRUE= |
| 16999 | DX_COND_doc_FALSE='#' |
| 17000 | else |
| 17001 | DX_COND_doc_TRUE='#' |
| 17002 | DX_COND_doc_FALSE= |
| 17003 | fi |
| 17004 | |
| 17005 | if test "$DX_FLAG_doc" = 1; then |
| 17006 | DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" |
| 17007 | |
| 17008 | : |
| 17009 | else |
| 17010 | |
| 17011 | : |
| 17012 | fi |
| 17013 | |
| 17014 | |
| 17015 | # Dot for graphics: |
| 17016 | |
| 17017 | |
| 17018 | |
| 17019 | # Check whether --enable-doxygen-dot was given. |
| 17020 | if test "${enable_doxygen_dot+set}" = set; then : |
| 17021 | enableval=$enable_doxygen_dot; |
| 17022 | case "$enableval" in |
| 17023 | #( |
| 17024 | y|Y|yes|Yes|YES) |
| 17025 | DX_FLAG_dot=1 |
| 17026 | |
| 17027 | |
| 17028 | test "$DX_FLAG_doc" = "1" \ |
| 17029 | || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 |
| 17030 | |
| 17031 | ;; #( |
| 17032 | n|N|no|No|NO) |
| 17033 | DX_FLAG_dot=0 |
| 17034 | |
| 17035 | ;; #( |
| 17036 | *) |
| 17037 | as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 |
| 17038 | ;; |
| 17039 | esac |
| 17040 | |
| 17041 | else |
| 17042 | |
| 17043 | DX_FLAG_dot=0 |
| 17044 | |
| 17045 | |
| 17046 | test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 |
| 17047 | |
| 17048 | |
| 17049 | |
| 17050 | fi |
| 17051 | |
| 17052 | if test "$DX_FLAG_dot" = 1; then |
| 17053 | |
| 17054 | if test -n "$ac_tool_prefix"; then |
| 17055 | # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. |
| 17056 | set dummy ${ac_tool_prefix}dot; ac_word=$2 |
| 17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17058 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17059 | if ${ac_cv_path_DX_DOT+:} false; then : |
| 17060 | $as_echo_n "(cached) " >&6 |
| 17061 | else |
| 17062 | case $DX_DOT in |
| 17063 | [\\/]* | ?:[\\/]*) |
| 17064 | ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. |
| 17065 | ;; |
| 17066 | *) |
| 17067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17068 | for as_dir in $PATH |
| 17069 | do |
| 17070 | IFS=$as_save_IFS |
| 17071 | test -z "$as_dir" && as_dir=. |
| 17072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17074 | ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17076 | break 2 |
| 17077 | fi |
| 17078 | done |
| 17079 | done |
| 17080 | IFS=$as_save_IFS |
| 17081 | |
| 17082 | ;; |
| 17083 | esac |
| 17084 | fi |
| 17085 | DX_DOT=$ac_cv_path_DX_DOT |
| 17086 | if test -n "$DX_DOT"; then |
| 17087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 |
| 17088 | $as_echo "$DX_DOT" >&6; } |
| 17089 | else |
| 17090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17091 | $as_echo "no" >&6; } |
| 17092 | fi |
| 17093 | |
| 17094 | |
| 17095 | fi |
| 17096 | if test -z "$ac_cv_path_DX_DOT"; then |
| 17097 | ac_pt_DX_DOT=$DX_DOT |
| 17098 | # Extract the first word of "dot", so it can be a program name with args. |
| 17099 | set dummy dot; ac_word=$2 |
| 17100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17101 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17102 | if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : |
| 17103 | $as_echo_n "(cached) " >&6 |
| 17104 | else |
| 17105 | case $ac_pt_DX_DOT in |
| 17106 | [\\/]* | ?:[\\/]*) |
| 17107 | ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. |
| 17108 | ;; |
| 17109 | *) |
| 17110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17111 | for as_dir in $PATH |
| 17112 | do |
| 17113 | IFS=$as_save_IFS |
| 17114 | test -z "$as_dir" && as_dir=. |
| 17115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17117 | ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17119 | break 2 |
| 17120 | fi |
| 17121 | done |
| 17122 | done |
| 17123 | IFS=$as_save_IFS |
| 17124 | |
| 17125 | ;; |
| 17126 | esac |
| 17127 | fi |
| 17128 | ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT |
| 17129 | if test -n "$ac_pt_DX_DOT"; then |
| 17130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 |
| 17131 | $as_echo "$ac_pt_DX_DOT" >&6; } |
| 17132 | else |
| 17133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17134 | $as_echo "no" >&6; } |
| 17135 | fi |
| 17136 | |
| 17137 | if test "x$ac_pt_DX_DOT" = x; then |
| 17138 | DX_DOT="" |
| 17139 | else |
| 17140 | case $cross_compiling:$ac_tool_warned in |
| 17141 | yes:) |
| 17142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17143 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17144 | ac_tool_warned=yes ;; |
| 17145 | esac |
| 17146 | DX_DOT=$ac_pt_DX_DOT |
| 17147 | fi |
| 17148 | else |
| 17149 | DX_DOT="$ac_cv_path_DX_DOT" |
| 17150 | fi |
| 17151 | |
| 17152 | if test "$DX_FLAG_dot$DX_DOT" = 1; then |
| 17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 |
| 17154 | $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} |
| 17155 | DX_FLAG_dot=0 |
| 17156 | |
| 17157 | fi |
| 17158 | |
| 17159 | : |
| 17160 | fi |
| 17161 | if test "$DX_FLAG_dot" = 1; then |
| 17162 | DX_COND_dot_TRUE= |
| 17163 | DX_COND_dot_FALSE='#' |
| 17164 | else |
| 17165 | DX_COND_dot_TRUE='#' |
| 17166 | DX_COND_dot_FALSE= |
| 17167 | fi |
| 17168 | |
| 17169 | if test "$DX_FLAG_dot" = 1; then |
| 17170 | DX_ENV="$DX_ENV HAVE_DOT='YES'" |
| 17171 | |
| 17172 | DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" |
| 17173 | |
| 17174 | : |
| 17175 | else |
| 17176 | DX_ENV="$DX_ENV HAVE_DOT='NO'" |
| 17177 | |
| 17178 | : |
| 17179 | fi |
| 17180 | |
| 17181 | |
| 17182 | # Man pages generation: |
| 17183 | |
| 17184 | |
| 17185 | |
| 17186 | # Check whether --enable-doxygen-man was given. |
| 17187 | if test "${enable_doxygen_man+set}" = set; then : |
| 17188 | enableval=$enable_doxygen_man; |
| 17189 | case "$enableval" in |
| 17190 | #( |
| 17191 | y|Y|yes|Yes|YES) |
| 17192 | DX_FLAG_man=1 |
| 17193 | |
| 17194 | |
| 17195 | test "$DX_FLAG_doc" = "1" \ |
| 17196 | || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 |
| 17197 | |
| 17198 | ;; #( |
| 17199 | n|N|no|No|NO) |
| 17200 | DX_FLAG_man=0 |
| 17201 | |
| 17202 | ;; #( |
| 17203 | *) |
| 17204 | as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 |
| 17205 | ;; |
| 17206 | esac |
| 17207 | |
| 17208 | else |
| 17209 | |
| 17210 | DX_FLAG_man=0 |
| 17211 | |
| 17212 | |
| 17213 | test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 |
| 17214 | |
| 17215 | |
| 17216 | |
| 17217 | fi |
| 17218 | |
| 17219 | if test "$DX_FLAG_man" = 1; then |
| 17220 | |
| 17221 | : |
| 17222 | fi |
| 17223 | if test "$DX_FLAG_man" = 1; then |
| 17224 | DX_COND_man_TRUE= |
| 17225 | DX_COND_man_FALSE='#' |
| 17226 | else |
| 17227 | DX_COND_man_TRUE='#' |
| 17228 | DX_COND_man_FALSE= |
| 17229 | fi |
| 17230 | |
| 17231 | if test "$DX_FLAG_man" = 1; then |
| 17232 | DX_ENV="$DX_ENV GENERATE_MAN='YES'" |
| 17233 | |
| 17234 | : |
| 17235 | else |
| 17236 | DX_ENV="$DX_ENV GENERATE_MAN='NO'" |
| 17237 | |
| 17238 | : |
| 17239 | fi |
| 17240 | |
| 17241 | |
| 17242 | # RTF file generation: |
| 17243 | |
| 17244 | |
| 17245 | |
| 17246 | # Check whether --enable-doxygen-rtf was given. |
| 17247 | if test "${enable_doxygen_rtf+set}" = set; then : |
| 17248 | enableval=$enable_doxygen_rtf; |
| 17249 | case "$enableval" in |
| 17250 | #( |
| 17251 | y|Y|yes|Yes|YES) |
| 17252 | DX_FLAG_rtf=1 |
| 17253 | |
| 17254 | |
| 17255 | test "$DX_FLAG_doc" = "1" \ |
| 17256 | || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 |
| 17257 | |
| 17258 | ;; #( |
| 17259 | n|N|no|No|NO) |
| 17260 | DX_FLAG_rtf=0 |
| 17261 | |
| 17262 | ;; #( |
| 17263 | *) |
| 17264 | as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 |
| 17265 | ;; |
| 17266 | esac |
| 17267 | |
| 17268 | else |
| 17269 | |
| 17270 | DX_FLAG_rtf=0 |
| 17271 | |
| 17272 | |
| 17273 | test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 |
| 17274 | |
| 17275 | |
| 17276 | |
| 17277 | fi |
| 17278 | |
| 17279 | if test "$DX_FLAG_rtf" = 1; then |
| 17280 | |
| 17281 | : |
| 17282 | fi |
| 17283 | if test "$DX_FLAG_rtf" = 1; then |
| 17284 | DX_COND_rtf_TRUE= |
| 17285 | DX_COND_rtf_FALSE='#' |
| 17286 | else |
| 17287 | DX_COND_rtf_TRUE='#' |
| 17288 | DX_COND_rtf_FALSE= |
| 17289 | fi |
| 17290 | |
| 17291 | if test "$DX_FLAG_rtf" = 1; then |
| 17292 | DX_ENV="$DX_ENV GENERATE_RTF='YES'" |
| 17293 | |
| 17294 | : |
| 17295 | else |
| 17296 | DX_ENV="$DX_ENV GENERATE_RTF='NO'" |
| 17297 | |
| 17298 | : |
| 17299 | fi |
| 17300 | |
| 17301 | |
| 17302 | # XML file generation: |
| 17303 | |
| 17304 | |
| 17305 | |
| 17306 | # Check whether --enable-doxygen-xml was given. |
| 17307 | if test "${enable_doxygen_xml+set}" = set; then : |
| 17308 | enableval=$enable_doxygen_xml; |
| 17309 | case "$enableval" in |
| 17310 | #( |
| 17311 | y|Y|yes|Yes|YES) |
| 17312 | DX_FLAG_xml=1 |
| 17313 | |
| 17314 | |
| 17315 | test "$DX_FLAG_doc" = "1" \ |
| 17316 | || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 |
| 17317 | |
| 17318 | ;; #( |
| 17319 | n|N|no|No|NO) |
| 17320 | DX_FLAG_xml=0 |
| 17321 | |
| 17322 | ;; #( |
| 17323 | *) |
| 17324 | as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 |
| 17325 | ;; |
| 17326 | esac |
| 17327 | |
| 17328 | else |
| 17329 | |
| 17330 | DX_FLAG_xml=0 |
| 17331 | |
| 17332 | |
| 17333 | test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 |
| 17334 | |
| 17335 | |
| 17336 | |
| 17337 | fi |
| 17338 | |
| 17339 | if test "$DX_FLAG_xml" = 1; then |
| 17340 | |
| 17341 | : |
| 17342 | fi |
| 17343 | if test "$DX_FLAG_xml" = 1; then |
| 17344 | DX_COND_xml_TRUE= |
| 17345 | DX_COND_xml_FALSE='#' |
| 17346 | else |
| 17347 | DX_COND_xml_TRUE='#' |
| 17348 | DX_COND_xml_FALSE= |
| 17349 | fi |
| 17350 | |
| 17351 | if test "$DX_FLAG_xml" = 1; then |
| 17352 | DX_ENV="$DX_ENV GENERATE_XML='YES'" |
| 17353 | |
| 17354 | : |
| 17355 | else |
| 17356 | DX_ENV="$DX_ENV GENERATE_XML='NO'" |
| 17357 | |
| 17358 | : |
| 17359 | fi |
| 17360 | |
| 17361 | |
| 17362 | # (Compressed) HTML help generation: |
| 17363 | |
| 17364 | |
| 17365 | |
| 17366 | # Check whether --enable-doxygen-chm was given. |
| 17367 | if test "${enable_doxygen_chm+set}" = set; then : |
| 17368 | enableval=$enable_doxygen_chm; |
| 17369 | case "$enableval" in |
| 17370 | #( |
| 17371 | y|Y|yes|Yes|YES) |
| 17372 | DX_FLAG_chm=1 |
| 17373 | |
| 17374 | |
| 17375 | test "$DX_FLAG_doc" = "1" \ |
| 17376 | || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 |
| 17377 | |
| 17378 | ;; #( |
| 17379 | n|N|no|No|NO) |
| 17380 | DX_FLAG_chm=0 |
| 17381 | |
| 17382 | ;; #( |
| 17383 | *) |
| 17384 | as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 |
| 17385 | ;; |
| 17386 | esac |
| 17387 | |
| 17388 | else |
| 17389 | |
| 17390 | DX_FLAG_chm=0 |
| 17391 | |
| 17392 | |
| 17393 | test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 |
| 17394 | |
| 17395 | |
| 17396 | |
| 17397 | fi |
| 17398 | |
| 17399 | if test "$DX_FLAG_chm" = 1; then |
| 17400 | |
| 17401 | if test -n "$ac_tool_prefix"; then |
| 17402 | # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. |
| 17403 | set dummy ${ac_tool_prefix}hhc; ac_word=$2 |
| 17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17405 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17406 | if ${ac_cv_path_DX_HHC+:} false; then : |
| 17407 | $as_echo_n "(cached) " >&6 |
| 17408 | else |
| 17409 | case $DX_HHC in |
| 17410 | [\\/]* | ?:[\\/]*) |
| 17411 | ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. |
| 17412 | ;; |
| 17413 | *) |
| 17414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17415 | for as_dir in $PATH |
| 17416 | do |
| 17417 | IFS=$as_save_IFS |
| 17418 | test -z "$as_dir" && as_dir=. |
| 17419 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17421 | ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17423 | break 2 |
| 17424 | fi |
| 17425 | done |
| 17426 | done |
| 17427 | IFS=$as_save_IFS |
| 17428 | |
| 17429 | ;; |
| 17430 | esac |
| 17431 | fi |
| 17432 | DX_HHC=$ac_cv_path_DX_HHC |
| 17433 | if test -n "$DX_HHC"; then |
| 17434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 |
| 17435 | $as_echo "$DX_HHC" >&6; } |
| 17436 | else |
| 17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17438 | $as_echo "no" >&6; } |
| 17439 | fi |
| 17440 | |
| 17441 | |
| 17442 | fi |
| 17443 | if test -z "$ac_cv_path_DX_HHC"; then |
| 17444 | ac_pt_DX_HHC=$DX_HHC |
| 17445 | # Extract the first word of "hhc", so it can be a program name with args. |
| 17446 | set dummy hhc; ac_word=$2 |
| 17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17448 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17449 | if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : |
| 17450 | $as_echo_n "(cached) " >&6 |
| 17451 | else |
| 17452 | case $ac_pt_DX_HHC in |
| 17453 | [\\/]* | ?:[\\/]*) |
| 17454 | ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. |
| 17455 | ;; |
| 17456 | *) |
| 17457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17458 | for as_dir in $PATH |
| 17459 | do |
| 17460 | IFS=$as_save_IFS |
| 17461 | test -z "$as_dir" && as_dir=. |
| 17462 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17464 | ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17466 | break 2 |
| 17467 | fi |
| 17468 | done |
| 17469 | done |
| 17470 | IFS=$as_save_IFS |
| 17471 | |
| 17472 | ;; |
| 17473 | esac |
| 17474 | fi |
| 17475 | ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC |
| 17476 | if test -n "$ac_pt_DX_HHC"; then |
| 17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 |
| 17478 | $as_echo "$ac_pt_DX_HHC" >&6; } |
| 17479 | else |
| 17480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17481 | $as_echo "no" >&6; } |
| 17482 | fi |
| 17483 | |
| 17484 | if test "x$ac_pt_DX_HHC" = x; then |
| 17485 | DX_HHC="" |
| 17486 | else |
| 17487 | case $cross_compiling:$ac_tool_warned in |
| 17488 | yes:) |
| 17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17491 | ac_tool_warned=yes ;; |
| 17492 | esac |
| 17493 | DX_HHC=$ac_pt_DX_HHC |
| 17494 | fi |
| 17495 | else |
| 17496 | DX_HHC="$ac_cv_path_DX_HHC" |
| 17497 | fi |
| 17498 | |
| 17499 | if test "$DX_FLAG_chm$DX_HHC" = 1; then |
| 17500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 |
| 17501 | $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} |
| 17502 | DX_FLAG_chm=0 |
| 17503 | |
| 17504 | fi |
| 17505 | |
| 17506 | : |
| 17507 | fi |
| 17508 | if test "$DX_FLAG_chm" = 1; then |
| 17509 | DX_COND_chm_TRUE= |
| 17510 | DX_COND_chm_FALSE='#' |
| 17511 | else |
| 17512 | DX_COND_chm_TRUE='#' |
| 17513 | DX_COND_chm_FALSE= |
| 17514 | fi |
| 17515 | |
| 17516 | if test "$DX_FLAG_chm" = 1; then |
| 17517 | DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" |
| 17518 | |
| 17519 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17520 | |
| 17521 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" |
| 17522 | |
| 17523 | : |
| 17524 | else |
| 17525 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" |
| 17526 | |
| 17527 | : |
| 17528 | fi |
| 17529 | |
| 17530 | |
| 17531 | # Seperate CHI file generation. |
| 17532 | |
| 17533 | |
| 17534 | |
| 17535 | # Check whether --enable-doxygen-chi was given. |
| 17536 | if test "${enable_doxygen_chi+set}" = set; then : |
| 17537 | enableval=$enable_doxygen_chi; |
| 17538 | case "$enableval" in |
| 17539 | #( |
| 17540 | y|Y|yes|Yes|YES) |
| 17541 | DX_FLAG_chi=1 |
| 17542 | |
| 17543 | |
| 17544 | test "$DX_FLAG_chm" = "1" \ |
| 17545 | || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 |
| 17546 | |
| 17547 | ;; #( |
| 17548 | n|N|no|No|NO) |
| 17549 | DX_FLAG_chi=0 |
| 17550 | |
| 17551 | ;; #( |
| 17552 | *) |
| 17553 | as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 |
| 17554 | ;; |
| 17555 | esac |
| 17556 | |
| 17557 | else |
| 17558 | |
| 17559 | DX_FLAG_chi=0 |
| 17560 | |
| 17561 | |
| 17562 | test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 |
| 17563 | |
| 17564 | |
| 17565 | |
| 17566 | fi |
| 17567 | |
| 17568 | if test "$DX_FLAG_chi" = 1; then |
| 17569 | |
| 17570 | : |
| 17571 | fi |
| 17572 | if test "$DX_FLAG_chi" = 1; then |
| 17573 | DX_COND_chi_TRUE= |
| 17574 | DX_COND_chi_FALSE='#' |
| 17575 | else |
| 17576 | DX_COND_chi_TRUE='#' |
| 17577 | DX_COND_chi_FALSE= |
| 17578 | fi |
| 17579 | |
| 17580 | if test "$DX_FLAG_chi" = 1; then |
| 17581 | DX_ENV="$DX_ENV GENERATE_CHI='YES'" |
| 17582 | |
| 17583 | : |
| 17584 | else |
| 17585 | DX_ENV="$DX_ENV GENERATE_CHI='NO'" |
| 17586 | |
| 17587 | : |
| 17588 | fi |
| 17589 | |
| 17590 | |
| 17591 | # Plain HTML pages generation: |
| 17592 | |
| 17593 | |
| 17594 | |
| 17595 | # Check whether --enable-doxygen-html was given. |
| 17596 | if test "${enable_doxygen_html+set}" = set; then : |
| 17597 | enableval=$enable_doxygen_html; |
| 17598 | case "$enableval" in |
| 17599 | #( |
| 17600 | y|Y|yes|Yes|YES) |
| 17601 | DX_FLAG_html=1 |
| 17602 | |
| 17603 | |
| 17604 | test "$DX_FLAG_doc" = "1" \ |
| 17605 | || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 |
| 17606 | |
| 17607 | test "$DX_FLAG_chm" = "0" \ |
| 17608 | || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 |
| 17609 | |
| 17610 | ;; #( |
| 17611 | n|N|no|No|NO) |
| 17612 | DX_FLAG_html=0 |
| 17613 | |
| 17614 | ;; #( |
| 17615 | *) |
| 17616 | as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 |
| 17617 | ;; |
| 17618 | esac |
| 17619 | |
| 17620 | else |
| 17621 | |
| 17622 | DX_FLAG_html=1 |
| 17623 | |
| 17624 | |
| 17625 | test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 |
| 17626 | |
| 17627 | |
| 17628 | test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 |
| 17629 | |
| 17630 | |
| 17631 | |
| 17632 | fi |
| 17633 | |
| 17634 | if test "$DX_FLAG_html" = 1; then |
| 17635 | |
| 17636 | : |
| 17637 | fi |
| 17638 | if test "$DX_FLAG_html" = 1; then |
| 17639 | DX_COND_html_TRUE= |
| 17640 | DX_COND_html_FALSE='#' |
| 17641 | else |
| 17642 | DX_COND_html_TRUE='#' |
| 17643 | DX_COND_html_FALSE= |
| 17644 | fi |
| 17645 | |
| 17646 | if test "$DX_FLAG_html" = 1; then |
| 17647 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17648 | |
| 17649 | : |
| 17650 | else |
| 17651 | test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" |
| 17652 | |
| 17653 | : |
| 17654 | fi |
| 17655 | |
| 17656 | |
| 17657 | # PostScript file generation: |
| 17658 | |
| 17659 | |
| 17660 | |
| 17661 | # Check whether --enable-doxygen-ps was given. |
| 17662 | if test "${enable_doxygen_ps+set}" = set; then : |
| 17663 | enableval=$enable_doxygen_ps; |
| 17664 | case "$enableval" in |
| 17665 | #( |
| 17666 | y|Y|yes|Yes|YES) |
| 17667 | DX_FLAG_ps=1 |
| 17668 | |
| 17669 | |
| 17670 | test "$DX_FLAG_doc" = "1" \ |
| 17671 | || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 |
| 17672 | |
| 17673 | ;; #( |
| 17674 | n|N|no|No|NO) |
| 17675 | DX_FLAG_ps=0 |
| 17676 | |
| 17677 | ;; #( |
| 17678 | *) |
| 17679 | as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 |
| 17680 | ;; |
| 17681 | esac |
| 17682 | |
| 17683 | else |
| 17684 | |
| 17685 | DX_FLAG_ps=0 |
| 17686 | |
| 17687 | |
| 17688 | test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 |
| 17689 | |
| 17690 | |
| 17691 | |
| 17692 | fi |
| 17693 | |
| 17694 | if test "$DX_FLAG_ps" = 1; then |
| 17695 | |
| 17696 | if test -n "$ac_tool_prefix"; then |
| 17697 | # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. |
| 17698 | set dummy ${ac_tool_prefix}latex; ac_word=$2 |
| 17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17700 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17701 | if ${ac_cv_path_DX_LATEX+:} false; then : |
| 17702 | $as_echo_n "(cached) " >&6 |
| 17703 | else |
| 17704 | case $DX_LATEX in |
| 17705 | [\\/]* | ?:[\\/]*) |
| 17706 | ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. |
| 17707 | ;; |
| 17708 | *) |
| 17709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17710 | for as_dir in $PATH |
| 17711 | do |
| 17712 | IFS=$as_save_IFS |
| 17713 | test -z "$as_dir" && as_dir=. |
| 17714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17716 | ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17718 | break 2 |
| 17719 | fi |
| 17720 | done |
| 17721 | done |
| 17722 | IFS=$as_save_IFS |
| 17723 | |
| 17724 | ;; |
| 17725 | esac |
| 17726 | fi |
| 17727 | DX_LATEX=$ac_cv_path_DX_LATEX |
| 17728 | if test -n "$DX_LATEX"; then |
| 17729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 |
| 17730 | $as_echo "$DX_LATEX" >&6; } |
| 17731 | else |
| 17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17733 | $as_echo "no" >&6; } |
| 17734 | fi |
| 17735 | |
| 17736 | |
| 17737 | fi |
| 17738 | if test -z "$ac_cv_path_DX_LATEX"; then |
| 17739 | ac_pt_DX_LATEX=$DX_LATEX |
| 17740 | # Extract the first word of "latex", so it can be a program name with args. |
| 17741 | set dummy latex; ac_word=$2 |
| 17742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17743 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17744 | if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : |
| 17745 | $as_echo_n "(cached) " >&6 |
| 17746 | else |
| 17747 | case $ac_pt_DX_LATEX in |
| 17748 | [\\/]* | ?:[\\/]*) |
| 17749 | ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. |
| 17750 | ;; |
| 17751 | *) |
| 17752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17753 | for as_dir in $PATH |
| 17754 | do |
| 17755 | IFS=$as_save_IFS |
| 17756 | test -z "$as_dir" && as_dir=. |
| 17757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17759 | ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17761 | break 2 |
| 17762 | fi |
| 17763 | done |
| 17764 | done |
| 17765 | IFS=$as_save_IFS |
| 17766 | |
| 17767 | ;; |
| 17768 | esac |
| 17769 | fi |
| 17770 | ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX |
| 17771 | if test -n "$ac_pt_DX_LATEX"; then |
| 17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 |
| 17773 | $as_echo "$ac_pt_DX_LATEX" >&6; } |
| 17774 | else |
| 17775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17776 | $as_echo "no" >&6; } |
| 17777 | fi |
| 17778 | |
| 17779 | if test "x$ac_pt_DX_LATEX" = x; then |
| 17780 | DX_LATEX="" |
| 17781 | else |
| 17782 | case $cross_compiling:$ac_tool_warned in |
| 17783 | yes:) |
| 17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17785 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17786 | ac_tool_warned=yes ;; |
| 17787 | esac |
| 17788 | DX_LATEX=$ac_pt_DX_LATEX |
| 17789 | fi |
| 17790 | else |
| 17791 | DX_LATEX="$ac_cv_path_DX_LATEX" |
| 17792 | fi |
| 17793 | |
| 17794 | if test "$DX_FLAG_ps$DX_LATEX" = 1; then |
| 17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 |
| 17796 | $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} |
| 17797 | DX_FLAG_ps=0 |
| 17798 | |
| 17799 | fi |
| 17800 | |
| 17801 | |
| 17802 | if test -n "$ac_tool_prefix"; then |
| 17803 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 17804 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17806 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17807 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 17808 | $as_echo_n "(cached) " >&6 |
| 17809 | else |
| 17810 | case $DX_MAKEINDEX in |
| 17811 | [\\/]* | ?:[\\/]*) |
| 17812 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 17813 | ;; |
| 17814 | *) |
| 17815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17816 | for as_dir in $PATH |
| 17817 | do |
| 17818 | IFS=$as_save_IFS |
| 17819 | test -z "$as_dir" && as_dir=. |
| 17820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17822 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17824 | break 2 |
| 17825 | fi |
| 17826 | done |
| 17827 | done |
| 17828 | IFS=$as_save_IFS |
| 17829 | |
| 17830 | ;; |
| 17831 | esac |
| 17832 | fi |
| 17833 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 17834 | if test -n "$DX_MAKEINDEX"; then |
| 17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 17836 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 17837 | else |
| 17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17839 | $as_echo "no" >&6; } |
| 17840 | fi |
| 17841 | |
| 17842 | |
| 17843 | fi |
| 17844 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 17845 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 17846 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 17847 | set dummy makeindex; ac_word=$2 |
| 17848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17849 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17850 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 17851 | $as_echo_n "(cached) " >&6 |
| 17852 | else |
| 17853 | case $ac_pt_DX_MAKEINDEX in |
| 17854 | [\\/]* | ?:[\\/]*) |
| 17855 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 17856 | ;; |
| 17857 | *) |
| 17858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17859 | for as_dir in $PATH |
| 17860 | do |
| 17861 | IFS=$as_save_IFS |
| 17862 | test -z "$as_dir" && as_dir=. |
| 17863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17865 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17867 | break 2 |
| 17868 | fi |
| 17869 | done |
| 17870 | done |
| 17871 | IFS=$as_save_IFS |
| 17872 | |
| 17873 | ;; |
| 17874 | esac |
| 17875 | fi |
| 17876 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 17877 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 17878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 17879 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 17880 | else |
| 17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17882 | $as_echo "no" >&6; } |
| 17883 | fi |
| 17884 | |
| 17885 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 17886 | DX_MAKEINDEX="" |
| 17887 | else |
| 17888 | case $cross_compiling:$ac_tool_warned in |
| 17889 | yes:) |
| 17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17891 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17892 | ac_tool_warned=yes ;; |
| 17893 | esac |
| 17894 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 17895 | fi |
| 17896 | else |
| 17897 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 17898 | fi |
| 17899 | |
| 17900 | if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then |
| 17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 |
| 17902 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} |
| 17903 | DX_FLAG_ps=0 |
| 17904 | |
| 17905 | fi |
| 17906 | |
| 17907 | |
| 17908 | if test -n "$ac_tool_prefix"; then |
| 17909 | # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. |
| 17910 | set dummy ${ac_tool_prefix}dvips; ac_word=$2 |
| 17911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17912 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17913 | if ${ac_cv_path_DX_DVIPS+:} false; then : |
| 17914 | $as_echo_n "(cached) " >&6 |
| 17915 | else |
| 17916 | case $DX_DVIPS in |
| 17917 | [\\/]* | ?:[\\/]*) |
| 17918 | ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. |
| 17919 | ;; |
| 17920 | *) |
| 17921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17922 | for as_dir in $PATH |
| 17923 | do |
| 17924 | IFS=$as_save_IFS |
| 17925 | test -z "$as_dir" && as_dir=. |
| 17926 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17928 | ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 17929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17930 | break 2 |
| 17931 | fi |
| 17932 | done |
| 17933 | done |
| 17934 | IFS=$as_save_IFS |
| 17935 | |
| 17936 | ;; |
| 17937 | esac |
| 17938 | fi |
| 17939 | DX_DVIPS=$ac_cv_path_DX_DVIPS |
| 17940 | if test -n "$DX_DVIPS"; then |
| 17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 |
| 17942 | $as_echo "$DX_DVIPS" >&6; } |
| 17943 | else |
| 17944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17945 | $as_echo "no" >&6; } |
| 17946 | fi |
| 17947 | |
| 17948 | |
| 17949 | fi |
| 17950 | if test -z "$ac_cv_path_DX_DVIPS"; then |
| 17951 | ac_pt_DX_DVIPS=$DX_DVIPS |
| 17952 | # Extract the first word of "dvips", so it can be a program name with args. |
| 17953 | set dummy dvips; ac_word=$2 |
| 17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17955 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17956 | if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : |
| 17957 | $as_echo_n "(cached) " >&6 |
| 17958 | else |
| 17959 | case $ac_pt_DX_DVIPS in |
| 17960 | [\\/]* | ?:[\\/]*) |
| 17961 | ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. |
| 17962 | ;; |
| 17963 | *) |
| 17964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17965 | for as_dir in $PATH |
| 17966 | do |
| 17967 | IFS=$as_save_IFS |
| 17968 | test -z "$as_dir" && as_dir=. |
| 17969 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17971 | ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 17972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17973 | break 2 |
| 17974 | fi |
| 17975 | done |
| 17976 | done |
| 17977 | IFS=$as_save_IFS |
| 17978 | |
| 17979 | ;; |
| 17980 | esac |
| 17981 | fi |
| 17982 | ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS |
| 17983 | if test -n "$ac_pt_DX_DVIPS"; then |
| 17984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 |
| 17985 | $as_echo "$ac_pt_DX_DVIPS" >&6; } |
| 17986 | else |
| 17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17988 | $as_echo "no" >&6; } |
| 17989 | fi |
| 17990 | |
| 17991 | if test "x$ac_pt_DX_DVIPS" = x; then |
| 17992 | DX_DVIPS="" |
| 17993 | else |
| 17994 | case $cross_compiling:$ac_tool_warned in |
| 17995 | yes:) |
| 17996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17997 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17998 | ac_tool_warned=yes ;; |
| 17999 | esac |
| 18000 | DX_DVIPS=$ac_pt_DX_DVIPS |
| 18001 | fi |
| 18002 | else |
| 18003 | DX_DVIPS="$ac_cv_path_DX_DVIPS" |
| 18004 | fi |
| 18005 | |
| 18006 | if test "$DX_FLAG_ps$DX_DVIPS" = 1; then |
| 18007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 |
| 18008 | $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} |
| 18009 | DX_FLAG_ps=0 |
| 18010 | |
| 18011 | fi |
| 18012 | |
| 18013 | |
| 18014 | if test -n "$ac_tool_prefix"; then |
| 18015 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18016 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18018 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18019 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18020 | $as_echo_n "(cached) " >&6 |
| 18021 | else |
| 18022 | case $DX_EGREP in |
| 18023 | [\\/]* | ?:[\\/]*) |
| 18024 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18025 | ;; |
| 18026 | *) |
| 18027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18028 | for as_dir in $PATH |
| 18029 | do |
| 18030 | IFS=$as_save_IFS |
| 18031 | test -z "$as_dir" && as_dir=. |
| 18032 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18034 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18036 | break 2 |
| 18037 | fi |
| 18038 | done |
| 18039 | done |
| 18040 | IFS=$as_save_IFS |
| 18041 | |
| 18042 | ;; |
| 18043 | esac |
| 18044 | fi |
| 18045 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18046 | if test -n "$DX_EGREP"; then |
| 18047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18048 | $as_echo "$DX_EGREP" >&6; } |
| 18049 | else |
| 18050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18051 | $as_echo "no" >&6; } |
| 18052 | fi |
| 18053 | |
| 18054 | |
| 18055 | fi |
| 18056 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18057 | ac_pt_DX_EGREP=$DX_EGREP |
| 18058 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18059 | set dummy egrep; ac_word=$2 |
| 18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18061 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18062 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18063 | $as_echo_n "(cached) " >&6 |
| 18064 | else |
| 18065 | case $ac_pt_DX_EGREP in |
| 18066 | [\\/]* | ?:[\\/]*) |
| 18067 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18068 | ;; |
| 18069 | *) |
| 18070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18071 | for as_dir in $PATH |
| 18072 | do |
| 18073 | IFS=$as_save_IFS |
| 18074 | test -z "$as_dir" && as_dir=. |
| 18075 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18077 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18079 | break 2 |
| 18080 | fi |
| 18081 | done |
| 18082 | done |
| 18083 | IFS=$as_save_IFS |
| 18084 | |
| 18085 | ;; |
| 18086 | esac |
| 18087 | fi |
| 18088 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18089 | if test -n "$ac_pt_DX_EGREP"; then |
| 18090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18091 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18092 | else |
| 18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18094 | $as_echo "no" >&6; } |
| 18095 | fi |
| 18096 | |
| 18097 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18098 | DX_EGREP="" |
| 18099 | else |
| 18100 | case $cross_compiling:$ac_tool_warned in |
| 18101 | yes:) |
| 18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18103 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18104 | ac_tool_warned=yes ;; |
| 18105 | esac |
| 18106 | DX_EGREP=$ac_pt_DX_EGREP |
| 18107 | fi |
| 18108 | else |
| 18109 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18110 | fi |
| 18111 | |
| 18112 | if test "$DX_FLAG_ps$DX_EGREP" = 1; then |
| 18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 |
| 18114 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} |
| 18115 | DX_FLAG_ps=0 |
| 18116 | |
| 18117 | fi |
| 18118 | |
| 18119 | : |
| 18120 | fi |
| 18121 | if test "$DX_FLAG_ps" = 1; then |
| 18122 | DX_COND_ps_TRUE= |
| 18123 | DX_COND_ps_FALSE='#' |
| 18124 | else |
| 18125 | DX_COND_ps_TRUE='#' |
| 18126 | DX_COND_ps_FALSE= |
| 18127 | fi |
| 18128 | |
| 18129 | if test "$DX_FLAG_ps" = 1; then |
| 18130 | |
| 18131 | : |
| 18132 | else |
| 18133 | |
| 18134 | : |
| 18135 | fi |
| 18136 | |
| 18137 | |
| 18138 | # PDF file generation: |
| 18139 | |
| 18140 | |
| 18141 | |
| 18142 | # Check whether --enable-doxygen-pdf was given. |
| 18143 | if test "${enable_doxygen_pdf+set}" = set; then : |
| 18144 | enableval=$enable_doxygen_pdf; |
| 18145 | case "$enableval" in |
| 18146 | #( |
| 18147 | y|Y|yes|Yes|YES) |
| 18148 | DX_FLAG_pdf=1 |
| 18149 | |
| 18150 | |
| 18151 | test "$DX_FLAG_doc" = "1" \ |
| 18152 | || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 |
| 18153 | |
| 18154 | ;; #( |
| 18155 | n|N|no|No|NO) |
| 18156 | DX_FLAG_pdf=0 |
| 18157 | |
| 18158 | ;; #( |
| 18159 | *) |
| 18160 | as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 |
| 18161 | ;; |
| 18162 | esac |
| 18163 | |
| 18164 | else |
| 18165 | |
| 18166 | DX_FLAG_pdf=0 |
| 18167 | |
| 18168 | |
| 18169 | test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 |
| 18170 | |
| 18171 | |
| 18172 | |
| 18173 | fi |
| 18174 | |
| 18175 | if test "$DX_FLAG_pdf" = 1; then |
| 18176 | |
| 18177 | if test -n "$ac_tool_prefix"; then |
| 18178 | # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. |
| 18179 | set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 |
| 18180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18181 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18182 | if ${ac_cv_path_DX_PDFLATEX+:} false; then : |
| 18183 | $as_echo_n "(cached) " >&6 |
| 18184 | else |
| 18185 | case $DX_PDFLATEX in |
| 18186 | [\\/]* | ?:[\\/]*) |
| 18187 | ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. |
| 18188 | ;; |
| 18189 | *) |
| 18190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18191 | for as_dir in $PATH |
| 18192 | do |
| 18193 | IFS=$as_save_IFS |
| 18194 | test -z "$as_dir" && as_dir=. |
| 18195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18197 | ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18199 | break 2 |
| 18200 | fi |
| 18201 | done |
| 18202 | done |
| 18203 | IFS=$as_save_IFS |
| 18204 | |
| 18205 | ;; |
| 18206 | esac |
| 18207 | fi |
| 18208 | DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX |
| 18209 | if test -n "$DX_PDFLATEX"; then |
| 18210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 |
| 18211 | $as_echo "$DX_PDFLATEX" >&6; } |
| 18212 | else |
| 18213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18214 | $as_echo "no" >&6; } |
| 18215 | fi |
| 18216 | |
| 18217 | |
| 18218 | fi |
| 18219 | if test -z "$ac_cv_path_DX_PDFLATEX"; then |
| 18220 | ac_pt_DX_PDFLATEX=$DX_PDFLATEX |
| 18221 | # Extract the first word of "pdflatex", so it can be a program name with args. |
| 18222 | set dummy pdflatex; ac_word=$2 |
| 18223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18224 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18225 | if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : |
| 18226 | $as_echo_n "(cached) " >&6 |
| 18227 | else |
| 18228 | case $ac_pt_DX_PDFLATEX in |
| 18229 | [\\/]* | ?:[\\/]*) |
| 18230 | ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. |
| 18231 | ;; |
| 18232 | *) |
| 18233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18234 | for as_dir in $PATH |
| 18235 | do |
| 18236 | IFS=$as_save_IFS |
| 18237 | test -z "$as_dir" && as_dir=. |
| 18238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18239 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18240 | ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18242 | break 2 |
| 18243 | fi |
| 18244 | done |
| 18245 | done |
| 18246 | IFS=$as_save_IFS |
| 18247 | |
| 18248 | ;; |
| 18249 | esac |
| 18250 | fi |
| 18251 | ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX |
| 18252 | if test -n "$ac_pt_DX_PDFLATEX"; then |
| 18253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 |
| 18254 | $as_echo "$ac_pt_DX_PDFLATEX" >&6; } |
| 18255 | else |
| 18256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18257 | $as_echo "no" >&6; } |
| 18258 | fi |
| 18259 | |
| 18260 | if test "x$ac_pt_DX_PDFLATEX" = x; then |
| 18261 | DX_PDFLATEX="" |
| 18262 | else |
| 18263 | case $cross_compiling:$ac_tool_warned in |
| 18264 | yes:) |
| 18265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18266 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18267 | ac_tool_warned=yes ;; |
| 18268 | esac |
| 18269 | DX_PDFLATEX=$ac_pt_DX_PDFLATEX |
| 18270 | fi |
| 18271 | else |
| 18272 | DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" |
| 18273 | fi |
| 18274 | |
| 18275 | if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then |
| 18276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 |
| 18277 | $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} |
| 18278 | DX_FLAG_pdf=0 |
| 18279 | |
| 18280 | fi |
| 18281 | |
| 18282 | |
| 18283 | if test -n "$ac_tool_prefix"; then |
| 18284 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 18285 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 18286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18287 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18288 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 18289 | $as_echo_n "(cached) " >&6 |
| 18290 | else |
| 18291 | case $DX_MAKEINDEX in |
| 18292 | [\\/]* | ?:[\\/]*) |
| 18293 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 18294 | ;; |
| 18295 | *) |
| 18296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18297 | for as_dir in $PATH |
| 18298 | do |
| 18299 | IFS=$as_save_IFS |
| 18300 | test -z "$as_dir" && as_dir=. |
| 18301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18303 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18305 | break 2 |
| 18306 | fi |
| 18307 | done |
| 18308 | done |
| 18309 | IFS=$as_save_IFS |
| 18310 | |
| 18311 | ;; |
| 18312 | esac |
| 18313 | fi |
| 18314 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 18315 | if test -n "$DX_MAKEINDEX"; then |
| 18316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 18317 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 18318 | else |
| 18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18320 | $as_echo "no" >&6; } |
| 18321 | fi |
| 18322 | |
| 18323 | |
| 18324 | fi |
| 18325 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 18326 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 18327 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 18328 | set dummy makeindex; ac_word=$2 |
| 18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18330 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18331 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 18332 | $as_echo_n "(cached) " >&6 |
| 18333 | else |
| 18334 | case $ac_pt_DX_MAKEINDEX in |
| 18335 | [\\/]* | ?:[\\/]*) |
| 18336 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 18337 | ;; |
| 18338 | *) |
| 18339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18340 | for as_dir in $PATH |
| 18341 | do |
| 18342 | IFS=$as_save_IFS |
| 18343 | test -z "$as_dir" && as_dir=. |
| 18344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18346 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18348 | break 2 |
| 18349 | fi |
| 18350 | done |
| 18351 | done |
| 18352 | IFS=$as_save_IFS |
| 18353 | |
| 18354 | ;; |
| 18355 | esac |
| 18356 | fi |
| 18357 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 18358 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 18360 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 18361 | else |
| 18362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18363 | $as_echo "no" >&6; } |
| 18364 | fi |
| 18365 | |
| 18366 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 18367 | DX_MAKEINDEX="" |
| 18368 | else |
| 18369 | case $cross_compiling:$ac_tool_warned in |
| 18370 | yes:) |
| 18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18373 | ac_tool_warned=yes ;; |
| 18374 | esac |
| 18375 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 18376 | fi |
| 18377 | else |
| 18378 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 18379 | fi |
| 18380 | |
| 18381 | if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then |
| 18382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 |
| 18383 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} |
| 18384 | DX_FLAG_pdf=0 |
| 18385 | |
| 18386 | fi |
| 18387 | |
| 18388 | |
| 18389 | if test -n "$ac_tool_prefix"; then |
| 18390 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18391 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18393 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18394 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18395 | $as_echo_n "(cached) " >&6 |
| 18396 | else |
| 18397 | case $DX_EGREP in |
| 18398 | [\\/]* | ?:[\\/]*) |
| 18399 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18400 | ;; |
| 18401 | *) |
| 18402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18403 | for as_dir in $PATH |
| 18404 | do |
| 18405 | IFS=$as_save_IFS |
| 18406 | test -z "$as_dir" && as_dir=. |
| 18407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18409 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18411 | break 2 |
| 18412 | fi |
| 18413 | done |
| 18414 | done |
| 18415 | IFS=$as_save_IFS |
| 18416 | |
| 18417 | ;; |
| 18418 | esac |
| 18419 | fi |
| 18420 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18421 | if test -n "$DX_EGREP"; then |
| 18422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18423 | $as_echo "$DX_EGREP" >&6; } |
| 18424 | else |
| 18425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18426 | $as_echo "no" >&6; } |
| 18427 | fi |
| 18428 | |
| 18429 | |
| 18430 | fi |
| 18431 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18432 | ac_pt_DX_EGREP=$DX_EGREP |
| 18433 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18434 | set dummy egrep; ac_word=$2 |
| 18435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18436 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18437 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18438 | $as_echo_n "(cached) " >&6 |
| 18439 | else |
| 18440 | case $ac_pt_DX_EGREP in |
| 18441 | [\\/]* | ?:[\\/]*) |
| 18442 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18443 | ;; |
| 18444 | *) |
| 18445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18446 | for as_dir in $PATH |
| 18447 | do |
| 18448 | IFS=$as_save_IFS |
| 18449 | test -z "$as_dir" && as_dir=. |
| 18450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18451 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18452 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18454 | break 2 |
| 18455 | fi |
| 18456 | done |
| 18457 | done |
| 18458 | IFS=$as_save_IFS |
| 18459 | |
| 18460 | ;; |
| 18461 | esac |
| 18462 | fi |
| 18463 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18464 | if test -n "$ac_pt_DX_EGREP"; then |
| 18465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18466 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18467 | else |
| 18468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18469 | $as_echo "no" >&6; } |
| 18470 | fi |
| 18471 | |
| 18472 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18473 | DX_EGREP="" |
| 18474 | else |
| 18475 | case $cross_compiling:$ac_tool_warned in |
| 18476 | yes:) |
| 18477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18478 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18479 | ac_tool_warned=yes ;; |
| 18480 | esac |
| 18481 | DX_EGREP=$ac_pt_DX_EGREP |
| 18482 | fi |
| 18483 | else |
| 18484 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18485 | fi |
| 18486 | |
| 18487 | if test "$DX_FLAG_pdf$DX_EGREP" = 1; then |
| 18488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 |
| 18489 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} |
| 18490 | DX_FLAG_pdf=0 |
| 18491 | |
| 18492 | fi |
| 18493 | |
| 18494 | : |
| 18495 | fi |
| 18496 | if test "$DX_FLAG_pdf" = 1; then |
| 18497 | DX_COND_pdf_TRUE= |
| 18498 | DX_COND_pdf_FALSE='#' |
| 18499 | else |
| 18500 | DX_COND_pdf_TRUE='#' |
| 18501 | DX_COND_pdf_FALSE= |
| 18502 | fi |
| 18503 | |
| 18504 | if test "$DX_FLAG_pdf" = 1; then |
| 18505 | |
| 18506 | : |
| 18507 | else |
| 18508 | |
| 18509 | : |
| 18510 | fi |
| 18511 | |
| 18512 | |
| 18513 | # LaTeX generation for PS and/or PDF: |
| 18514 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18515 | DX_COND_latex_TRUE= |
| 18516 | DX_COND_latex_FALSE='#' |
| 18517 | else |
| 18518 | DX_COND_latex_TRUE='#' |
| 18519 | DX_COND_latex_FALSE= |
| 18520 | fi |
| 18521 | |
| 18522 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18523 | DX_ENV="$DX_ENV GENERATE_LATEX='YES'" |
| 18524 | |
| 18525 | else |
| 18526 | DX_ENV="$DX_ENV GENERATE_LATEX='NO'" |
| 18527 | |
| 18528 | fi |
| 18529 | |
| 18530 | # Paper size for PS and/or PDF: |
| 18531 | |
| 18532 | case "$DOXYGEN_PAPER_SIZE" in |
| 18533 | #( |
| 18534 | "") |
| 18535 | DOXYGEN_PAPER_SIZE="" |
| 18536 | |
| 18537 | ;; #( |
| 18538 | a4wide|a4|letter|legal|executive) |
| 18539 | DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" |
| 18540 | |
| 18541 | ;; #( |
| 18542 | *) |
| 18543 | as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 |
| 18544 | ;; |
| 18545 | esac |
| 18546 | |
| 18547 | #For debugging: |
| 18548 | #echo DX_FLAG_doc=$DX_FLAG_doc |
| 18549 | #echo DX_FLAG_dot=$DX_FLAG_dot |
| 18550 | #echo DX_FLAG_man=$DX_FLAG_man |
| 18551 | #echo DX_FLAG_html=$DX_FLAG_html |
| 18552 | #echo DX_FLAG_chm=$DX_FLAG_chm |
| 18553 | #echo DX_FLAG_chi=$DX_FLAG_chi |
| 18554 | #echo DX_FLAG_rtf=$DX_FLAG_rtf |
| 18555 | #echo DX_FLAG_xml=$DX_FLAG_xml |
| 18556 | #echo DX_FLAG_pdf=$DX_FLAG_pdf |
| 18557 | #echo DX_FLAG_ps=$DX_FLAG_ps |
| 18558 | #echo DX_ENV=$DX_ENV |
| 18559 | |
| 18560 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18561 | ac_config_files="$ac_config_files Makefile" |
| 18562 | |
| 18563 | cat >confcache <<\_ACEOF |
| 18564 | # This file is a shell script that caches the results of configure |
| 18565 | # tests run on this system so they can be shared between configure |
| 18566 | # scripts and configure runs, see configure's option --config-cache. |
| 18567 | # It is not useful on other systems. If it contains results you don't |
| 18568 | # want to keep, you may remove or edit it. |
| 18569 | # |
| 18570 | # config.status only pays attention to the cache file if you give it |
| 18571 | # the --recheck option to rerun configure. |
| 18572 | # |
| 18573 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18574 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18575 | # following values. |
| 18576 | |
| 18577 | _ACEOF |
| 18578 | |
| 18579 | # The following way of writing the cache mishandles newlines in values, |
| 18580 | # but we know of no workaround that is simple, portable, and efficient. |
| 18581 | # So, we kill variables containing newlines. |
| 18582 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18583 | # and sets the high bit in the cache file unless we assign to the vars. |
| 18584 | ( |
| 18585 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18586 | eval ac_val=\$$ac_var |
| 18587 | case $ac_val in #( |
| 18588 | *${as_nl}*) |
| 18589 | case $ac_var in #( |
| 18590 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 18591 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18592 | esac |
| 18593 | case $ac_var in #( |
| 18594 | _ | IFS | as_nl) ;; #( |
| 18595 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 18596 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 18597 | esac ;; |
| 18598 | esac |
| 18599 | done |
| 18600 | |
| 18601 | (set) 2>&1 | |
| 18602 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18603 | *${as_nl}ac_space=\ *) |
| 18604 | # `set' does not quote correctly, so add quotes: double-quote |
| 18605 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 18606 | sed -n \ |
| 18607 | "s/'/'\\\\''/g; |
| 18608 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18609 | ;; #( |
| 18610 | *) |
| 18611 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18612 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18613 | ;; |
| 18614 | esac | |
| 18615 | sort |
| 18616 | ) | |
| 18617 | sed ' |
| 18618 | /^ac_cv_env_/b end |
| 18619 | t clear |
| 18620 | :clear |
| 18621 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18622 | t end |
| 18623 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18624 | :end' >>confcache |
| 18625 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18626 | if test -w "$cache_file"; then |
| 18627 | if test "x$cache_file" != "x/dev/null"; then |
| 18628 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 18629 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 18630 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 18631 | cat confcache >"$cache_file" |
| 18632 | else |
| 18633 | case $cache_file in #( |
| 18634 | */* | ?:*) |
| 18635 | mv -f confcache "$cache_file"$$ && |
| 18636 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 18637 | *) |
| 18638 | mv -f confcache "$cache_file" ;; |
| 18639 | esac |
| 18640 | fi |
| 18641 | fi |
| 18642 | else |
| 18643 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 18644 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18645 | fi |
| 18646 | fi |
| 18647 | rm -f confcache |
| 18648 | |
| 18649 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18650 | # Let make expand exec_prefix. |
| 18651 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18652 | |
| 18653 | DEFS=-DHAVE_CONFIG_H |
| 18654 | |
| 18655 | ac_libobjs= |
| 18656 | ac_ltlibobjs= |
| 18657 | U= |
| 18658 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18659 | # 1. Remove the extension, and $U if already installed. |
| 18660 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18661 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 18662 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18663 | # will be set to the directory where LIBOBJS objects are built. |
| 18664 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18665 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 18666 | done |
| 18667 | LIBOBJS=$ac_libobjs |
| 18668 | |
| 18669 | LTLIBOBJS=$ac_ltlibobjs |
| 18670 | |
| 18671 | |
| 18672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 18673 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 18674 | if test -n "$am_sleep_pid"; then |
| 18675 | # Hide warnings about reused PIDs. |
| 18676 | wait $am_sleep_pid 2>/dev/null |
| 18677 | fi |
| 18678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 18679 | $as_echo "done" >&6; } |
| 18680 | if test -n "$EXEEXT"; then |
| 18681 | am__EXEEXT_TRUE= |
| 18682 | am__EXEEXT_FALSE='#' |
| 18683 | else |
| 18684 | am__EXEEXT_TRUE='#' |
| 18685 | am__EXEEXT_FALSE= |
| 18686 | fi |
| 18687 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 18688 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 18689 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 18690 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18691 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18692 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 18693 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 18694 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18695 | fi |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 18696 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 18697 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 18698 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18699 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 18700 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 18701 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 18702 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18703 | fi |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 18704 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then |
| 18705 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. |
| 18706 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18707 | fi |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 18708 | if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then |
| 18709 | as_fn_error $? "conditional \"DX_COND_doc\" was never defined. |
| 18710 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18711 | fi |
| 18712 | if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then |
| 18713 | as_fn_error $? "conditional \"DX_COND_dot\" was never defined. |
| 18714 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18715 | fi |
| 18716 | if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then |
| 18717 | as_fn_error $? "conditional \"DX_COND_man\" was never defined. |
| 18718 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18719 | fi |
| 18720 | if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then |
| 18721 | as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. |
| 18722 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18723 | fi |
| 18724 | if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then |
| 18725 | as_fn_error $? "conditional \"DX_COND_xml\" was never defined. |
| 18726 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18727 | fi |
| 18728 | if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then |
| 18729 | as_fn_error $? "conditional \"DX_COND_chm\" was never defined. |
| 18730 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18731 | fi |
| 18732 | if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then |
| 18733 | as_fn_error $? "conditional \"DX_COND_chi\" was never defined. |
| 18734 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18735 | fi |
| 18736 | if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then |
| 18737 | as_fn_error $? "conditional \"DX_COND_html\" was never defined. |
| 18738 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18739 | fi |
| 18740 | if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then |
| 18741 | as_fn_error $? "conditional \"DX_COND_ps\" was never defined. |
| 18742 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18743 | fi |
| 18744 | if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then |
| 18745 | as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. |
| 18746 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18747 | fi |
| 18748 | if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then |
| 18749 | as_fn_error $? "conditional \"DX_COND_latex\" was never defined. |
| 18750 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18751 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18752 | |
| 18753 | : "${CONFIG_STATUS=./config.status}" |
| 18754 | ac_write_fail=0 |
| 18755 | ac_clean_files_save=$ac_clean_files |
| 18756 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18757 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 18758 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18759 | as_write_fail=0 |
| 18760 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 18761 | #! $SHELL |
| 18762 | # Generated by $as_me. |
| 18763 | # Run this file to recreate the current configuration. |
| 18764 | # Compiler output produced by configure, useful for debugging |
| 18765 | # configure, is in config.log if it exists. |
| 18766 | |
| 18767 | debug=false |
| 18768 | ac_cs_recheck=false |
| 18769 | ac_cs_silent=false |
| 18770 | |
| 18771 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18772 | export SHELL |
| 18773 | _ASEOF |
| 18774 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 18775 | ## -------------------- ## |
| 18776 | ## M4sh Initialization. ## |
| 18777 | ## -------------------- ## |
| 18778 | |
| 18779 | # Be more Bourne compatible |
| 18780 | DUALCASE=1; export DUALCASE # for MKS sh |
| 18781 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18782 | emulate sh |
| 18783 | NULLCMD=: |
| 18784 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 18785 | # is contrary to our usage. Disable this feature. |
| 18786 | alias -g '${1+"$@"}'='"$@"' |
| 18787 | setopt NO_GLOB_SUBST |
| 18788 | else |
| 18789 | case `(set -o) 2>/dev/null` in #( |
| 18790 | *posix*) : |
| 18791 | set -o posix ;; #( |
| 18792 | *) : |
| 18793 | ;; |
| 18794 | esac |
| 18795 | fi |
| 18796 | |
| 18797 | |
| 18798 | as_nl=' |
| 18799 | ' |
| 18800 | export as_nl |
| 18801 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 18802 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 18803 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18804 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18805 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 18806 | # but without wasting forks for bash or zsh. |
| 18807 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 18808 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18809 | as_echo='print -r --' |
| 18810 | as_echo_n='print -rn --' |
| 18811 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18812 | as_echo='printf %s\n' |
| 18813 | as_echo_n='printf %s' |
| 18814 | else |
| 18815 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 18816 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 18817 | as_echo_n='/usr/ucb/echo -n' |
| 18818 | else |
| 18819 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 18820 | as_echo_n_body='eval |
| 18821 | arg=$1; |
| 18822 | case $arg in #( |
| 18823 | *"$as_nl"*) |
| 18824 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 18825 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 18826 | esac; |
| 18827 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 18828 | ' |
| 18829 | export as_echo_n_body |
| 18830 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 18831 | fi |
| 18832 | export as_echo_body |
| 18833 | as_echo='sh -c $as_echo_body as_echo' |
| 18834 | fi |
| 18835 | |
| 18836 | # The user is always right. |
| 18837 | if test "${PATH_SEPARATOR+set}" != set; then |
| 18838 | PATH_SEPARATOR=: |
| 18839 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18840 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18841 | PATH_SEPARATOR=';' |
| 18842 | } |
| 18843 | fi |
| 18844 | |
| 18845 | |
| 18846 | # IFS |
| 18847 | # We need space, tab and new line, in precisely that order. Quoting is |
| 18848 | # there to prevent editors from complaining about space-tab. |
| 18849 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18850 | # splitting by setting IFS to empty value.) |
| 18851 | IFS=" "" $as_nl" |
| 18852 | |
| 18853 | # Find who we are. Look in the path if we contain no directory separator. |
| 18854 | as_myself= |
| 18855 | case $0 in #(( |
| 18856 | *[\\/]* ) as_myself=$0 ;; |
| 18857 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18858 | for as_dir in $PATH |
| 18859 | do |
| 18860 | IFS=$as_save_IFS |
| 18861 | test -z "$as_dir" && as_dir=. |
| 18862 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18863 | done |
| 18864 | IFS=$as_save_IFS |
| 18865 | |
| 18866 | ;; |
| 18867 | esac |
| 18868 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18869 | # in which case we are not to be found in the path. |
| 18870 | if test "x$as_myself" = x; then |
| 18871 | as_myself=$0 |
| 18872 | fi |
| 18873 | if test ! -f "$as_myself"; then |
| 18874 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18875 | exit 1 |
| 18876 | fi |
| 18877 | |
| 18878 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 18879 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 18880 | # suppresses any "Segmentation fault" message there. '((' could |
| 18881 | # trigger a bug in pdksh 5.2.14. |
| 18882 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 18883 | do eval test x\${$as_var+set} = xset \ |
| 18884 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 18885 | done |
| 18886 | PS1='$ ' |
| 18887 | PS2='> ' |
| 18888 | PS4='+ ' |
| 18889 | |
| 18890 | # NLS nuisances. |
| 18891 | LC_ALL=C |
| 18892 | export LC_ALL |
| 18893 | LANGUAGE=C |
| 18894 | export LANGUAGE |
| 18895 | |
| 18896 | # CDPATH. |
| 18897 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18898 | |
| 18899 | |
| 18900 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 18901 | # ---------------------------------------- |
| 18902 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 18903 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 18904 | # script with STATUS, using 1 if that was 0. |
| 18905 | as_fn_error () |
| 18906 | { |
| 18907 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 18908 | if test "$4"; then |
| 18909 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 18910 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 18911 | fi |
| 18912 | $as_echo "$as_me: error: $2" >&2 |
| 18913 | as_fn_exit $as_status |
| 18914 | } # as_fn_error |
| 18915 | |
| 18916 | |
| 18917 | # as_fn_set_status STATUS |
| 18918 | # ----------------------- |
| 18919 | # Set $? to STATUS, without forking. |
| 18920 | as_fn_set_status () |
| 18921 | { |
| 18922 | return $1 |
| 18923 | } # as_fn_set_status |
| 18924 | |
| 18925 | # as_fn_exit STATUS |
| 18926 | # ----------------- |
| 18927 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18928 | as_fn_exit () |
| 18929 | { |
| 18930 | set +e |
| 18931 | as_fn_set_status $1 |
| 18932 | exit $1 |
| 18933 | } # as_fn_exit |
| 18934 | |
| 18935 | # as_fn_unset VAR |
| 18936 | # --------------- |
| 18937 | # Portably unset VAR. |
| 18938 | as_fn_unset () |
| 18939 | { |
| 18940 | { eval $1=; unset $1;} |
| 18941 | } |
| 18942 | as_unset=as_fn_unset |
| 18943 | # as_fn_append VAR VALUE |
| 18944 | # ---------------------- |
| 18945 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18946 | # advantage of any shell optimizations that allow amortized linear growth over |
| 18947 | # repeated appends, instead of the typical quadratic growth present in naive |
| 18948 | # implementations. |
| 18949 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 18950 | eval 'as_fn_append () |
| 18951 | { |
| 18952 | eval $1+=\$2 |
| 18953 | }' |
| 18954 | else |
| 18955 | as_fn_append () |
| 18956 | { |
| 18957 | eval $1=\$$1\$2 |
| 18958 | } |
| 18959 | fi # as_fn_append |
| 18960 | |
| 18961 | # as_fn_arith ARG... |
| 18962 | # ------------------ |
| 18963 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18964 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18965 | # must be portable across $(()) and expr. |
| 18966 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 18967 | eval 'as_fn_arith () |
| 18968 | { |
| 18969 | as_val=$(( $* )) |
| 18970 | }' |
| 18971 | else |
| 18972 | as_fn_arith () |
| 18973 | { |
| 18974 | as_val=`expr "$@" || test $? -eq 1` |
| 18975 | } |
| 18976 | fi # as_fn_arith |
| 18977 | |
| 18978 | |
| 18979 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18980 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18981 | as_expr=expr |
| 18982 | else |
| 18983 | as_expr=false |
| 18984 | fi |
| 18985 | |
| 18986 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18987 | as_basename=basename |
| 18988 | else |
| 18989 | as_basename=false |
| 18990 | fi |
| 18991 | |
| 18992 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18993 | as_dirname=dirname |
| 18994 | else |
| 18995 | as_dirname=false |
| 18996 | fi |
| 18997 | |
| 18998 | as_me=`$as_basename -- "$0" || |
| 18999 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19000 | X"$0" : 'X\(//\)$' \| \ |
| 19001 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 19002 | $as_echo X/"$0" | |
| 19003 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 19004 | s//\1/ |
| 19005 | q |
| 19006 | } |
| 19007 | /^X\/\(\/\/\)$/{ |
| 19008 | s//\1/ |
| 19009 | q |
| 19010 | } |
| 19011 | /^X\/\(\/\).*/{ |
| 19012 | s//\1/ |
| 19013 | q |
| 19014 | } |
| 19015 | s/.*/./; q'` |
| 19016 | |
| 19017 | # Avoid depending upon Character Ranges. |
| 19018 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19019 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19020 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19021 | as_cr_digits='0123456789' |
| 19022 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19023 | |
| 19024 | ECHO_C= ECHO_N= ECHO_T= |
| 19025 | case `echo -n x` in #((((( |
| 19026 | -n*) |
| 19027 | case `echo 'xy\c'` in |
| 19028 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 19029 | xy) ECHO_C='\c';; |
| 19030 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 19031 | ECHO_T=' ';; |
| 19032 | esac;; |
| 19033 | *) |
| 19034 | ECHO_N='-n';; |
| 19035 | esac |
| 19036 | |
| 19037 | rm -f conf$$ conf$$.exe conf$$.file |
| 19038 | if test -d conf$$.dir; then |
| 19039 | rm -f conf$$.dir/conf$$.file |
| 19040 | else |
| 19041 | rm -f conf$$.dir |
| 19042 | mkdir conf$$.dir 2>/dev/null |
| 19043 | fi |
| 19044 | if (echo >conf$$.file) 2>/dev/null; then |
| 19045 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19046 | as_ln_s='ln -s' |
| 19047 | # ... but there are two gotchas: |
| 19048 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19049 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19050 | # In both cases, we have to default to `cp -pR'. |
| 19051 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 19052 | as_ln_s='cp -pR' |
| 19053 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19054 | as_ln_s=ln |
| 19055 | else |
| 19056 | as_ln_s='cp -pR' |
| 19057 | fi |
| 19058 | else |
| 19059 | as_ln_s='cp -pR' |
| 19060 | fi |
| 19061 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19062 | rmdir conf$$.dir 2>/dev/null |
| 19063 | |
| 19064 | |
| 19065 | # as_fn_mkdir_p |
| 19066 | # ------------- |
| 19067 | # Create "$as_dir" as a directory, including parents if necessary. |
| 19068 | as_fn_mkdir_p () |
| 19069 | { |
| 19070 | |
| 19071 | case $as_dir in #( |
| 19072 | -*) as_dir=./$as_dir;; |
| 19073 | esac |
| 19074 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 19075 | as_dirs= |
| 19076 | while :; do |
| 19077 | case $as_dir in #( |
| 19078 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19079 | *) as_qdir=$as_dir;; |
| 19080 | esac |
| 19081 | as_dirs="'$as_qdir' $as_dirs" |
| 19082 | as_dir=`$as_dirname -- "$as_dir" || |
| 19083 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19084 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19085 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19086 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19087 | $as_echo X"$as_dir" | |
| 19088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19089 | s//\1/ |
| 19090 | q |
| 19091 | } |
| 19092 | /^X\(\/\/\)[^/].*/{ |
| 19093 | s//\1/ |
| 19094 | q |
| 19095 | } |
| 19096 | /^X\(\/\/\)$/{ |
| 19097 | s//\1/ |
| 19098 | q |
| 19099 | } |
| 19100 | /^X\(\/\).*/{ |
| 19101 | s//\1/ |
| 19102 | q |
| 19103 | } |
| 19104 | s/.*/./; q'` |
| 19105 | test -d "$as_dir" && break |
| 19106 | done |
| 19107 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19108 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 19109 | |
| 19110 | |
| 19111 | } # as_fn_mkdir_p |
| 19112 | if mkdir -p . 2>/dev/null; then |
| 19113 | as_mkdir_p='mkdir -p "$as_dir"' |
| 19114 | else |
| 19115 | test -d ./-p && rmdir ./-p |
| 19116 | as_mkdir_p=false |
| 19117 | fi |
| 19118 | |
| 19119 | |
| 19120 | # as_fn_executable_p FILE |
| 19121 | # ----------------------- |
| 19122 | # Test if FILE is an executable regular file. |
| 19123 | as_fn_executable_p () |
| 19124 | { |
| 19125 | test -f "$1" && test -x "$1" |
| 19126 | } # as_fn_executable_p |
| 19127 | as_test_x='test -x' |
| 19128 | as_executable_p=as_fn_executable_p |
| 19129 | |
| 19130 | # Sed expression to map a string onto a valid CPP name. |
| 19131 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19132 | |
| 19133 | # Sed expression to map a string onto a valid variable name. |
| 19134 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19135 | |
| 19136 | |
| 19137 | exec 6>&1 |
| 19138 | ## ----------------------------------- ## |
| 19139 | ## Main body of $CONFIG_STATUS script. ## |
| 19140 | ## ----------------------------------- ## |
| 19141 | _ASEOF |
| 19142 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 19143 | |
| 19144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19145 | # Save the log message, to keep $0 and so on meaningful, and to |
| 19146 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19147 | # values after options handling. |
| 19148 | ac_log=" |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19149 | 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] | 19150 | generated by GNU Autoconf 2.69. Invocation command line was |
| 19151 | |
| 19152 | CONFIG_FILES = $CONFIG_FILES |
| 19153 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19154 | CONFIG_LINKS = $CONFIG_LINKS |
| 19155 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19156 | $ $0 $@ |
| 19157 | |
| 19158 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19159 | " |
| 19160 | |
| 19161 | _ACEOF |
| 19162 | |
| 19163 | case $ac_config_files in *" |
| 19164 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 19165 | esac |
| 19166 | |
| 19167 | case $ac_config_headers in *" |
| 19168 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 19169 | esac |
| 19170 | |
| 19171 | |
| 19172 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19173 | # Files that config.status was made for. |
| 19174 | config_files="$ac_config_files" |
| 19175 | config_headers="$ac_config_headers" |
| 19176 | config_commands="$ac_config_commands" |
| 19177 | |
| 19178 | _ACEOF |
| 19179 | |
| 19180 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19181 | ac_cs_usage="\ |
| 19182 | \`$as_me' instantiates files and other configuration actions |
| 19183 | from templates according to the current configuration. Unless the files |
| 19184 | and actions are specified as TAGs, all are instantiated by default. |
| 19185 | |
| 19186 | Usage: $0 [OPTION]... [TAG]... |
| 19187 | |
| 19188 | -h, --help print this help, then exit |
| 19189 | -V, --version print version number and configuration settings, then exit |
| 19190 | --config print configuration, then exit |
| 19191 | -q, --quiet, --silent |
| 19192 | do not print progress messages |
| 19193 | -d, --debug don't remove temporary files |
| 19194 | --recheck update $as_me by reconfiguring in the same conditions |
| 19195 | --file=FILE[:TEMPLATE] |
| 19196 | instantiate the configuration file FILE |
| 19197 | --header=FILE[:TEMPLATE] |
| 19198 | instantiate the configuration header FILE |
| 19199 | |
| 19200 | Configuration files: |
| 19201 | $config_files |
| 19202 | |
| 19203 | Configuration headers: |
| 19204 | $config_headers |
| 19205 | |
| 19206 | Configuration commands: |
| 19207 | $config_commands |
| 19208 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19209 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19210 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>." |
| 19211 | |
| 19212 | _ACEOF |
| 19213 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19214 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 19215 | ac_cs_version="\\ |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19216 | ndn-cpp config.status 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19217 | configured by $0, generated by GNU Autoconf 2.69, |
| 19218 | with options \\"\$ac_cs_config\\" |
| 19219 | |
| 19220 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 19221 | This config.status script is free software; the Free Software Foundation |
| 19222 | gives unlimited permission to copy, distribute and modify it." |
| 19223 | |
| 19224 | ac_pwd='$ac_pwd' |
| 19225 | srcdir='$srcdir' |
| 19226 | INSTALL='$INSTALL' |
| 19227 | MKDIR_P='$MKDIR_P' |
| 19228 | AWK='$AWK' |
| 19229 | test -n "\$AWK" || AWK=awk |
| 19230 | _ACEOF |
| 19231 | |
| 19232 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19233 | # The default lists apply if the user does not specify any file. |
| 19234 | ac_need_defaults=: |
| 19235 | while test $# != 0 |
| 19236 | do |
| 19237 | case $1 in |
| 19238 | --*=?*) |
| 19239 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19240 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 19241 | ac_shift=: |
| 19242 | ;; |
| 19243 | --*=) |
| 19244 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19245 | ac_optarg= |
| 19246 | ac_shift=: |
| 19247 | ;; |
| 19248 | *) |
| 19249 | ac_option=$1 |
| 19250 | ac_optarg=$2 |
| 19251 | ac_shift=shift |
| 19252 | ;; |
| 19253 | esac |
| 19254 | |
| 19255 | case $ac_option in |
| 19256 | # Handling of the options. |
| 19257 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19258 | ac_cs_recheck=: ;; |
| 19259 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 19260 | $as_echo "$ac_cs_version"; exit ;; |
| 19261 | --config | --confi | --conf | --con | --co | --c ) |
| 19262 | $as_echo "$ac_cs_config"; exit ;; |
| 19263 | --debug | --debu | --deb | --de | --d | -d ) |
| 19264 | debug=: ;; |
| 19265 | --file | --fil | --fi | --f ) |
| 19266 | $ac_shift |
| 19267 | case $ac_optarg in |
| 19268 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19269 | '') as_fn_error $? "missing file argument" ;; |
| 19270 | esac |
| 19271 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 19272 | ac_need_defaults=false;; |
| 19273 | --header | --heade | --head | --hea ) |
| 19274 | $ac_shift |
| 19275 | case $ac_optarg in |
| 19276 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19277 | esac |
| 19278 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 19279 | ac_need_defaults=false;; |
| 19280 | --he | --h) |
| 19281 | # Conflict between --help and --header |
| 19282 | as_fn_error $? "ambiguous option: \`$1' |
| 19283 | Try \`$0 --help' for more information.";; |
| 19284 | --help | --hel | -h ) |
| 19285 | $as_echo "$ac_cs_usage"; exit ;; |
| 19286 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19287 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19288 | ac_cs_silent=: ;; |
| 19289 | |
| 19290 | # This is an error. |
| 19291 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 19292 | Try \`$0 --help' for more information." ;; |
| 19293 | |
| 19294 | *) as_fn_append ac_config_targets " $1" |
| 19295 | ac_need_defaults=false ;; |
| 19296 | |
| 19297 | esac |
| 19298 | shift |
| 19299 | done |
| 19300 | |
| 19301 | ac_configure_extra_args= |
| 19302 | |
| 19303 | if $ac_cs_silent; then |
| 19304 | exec 6>/dev/null |
| 19305 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19306 | fi |
| 19307 | |
| 19308 | _ACEOF |
| 19309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19310 | if \$ac_cs_recheck; then |
| 19311 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19312 | shift |
| 19313 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 19314 | CONFIG_SHELL='$SHELL' |
| 19315 | export CONFIG_SHELL |
| 19316 | exec "\$@" |
| 19317 | fi |
| 19318 | |
| 19319 | _ACEOF |
| 19320 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19321 | exec 5>>config.log |
| 19322 | { |
| 19323 | echo |
| 19324 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19325 | ## Running $as_me. ## |
| 19326 | _ASBOX |
| 19327 | $as_echo "$ac_log" |
| 19328 | } >&5 |
| 19329 | |
| 19330 | _ACEOF |
| 19331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19332 | # |
| 19333 | # INIT-COMMANDS |
| 19334 | # |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 19335 | PACKAGE="$PACKAGE" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19336 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 19337 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19338 | |
| 19339 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 19340 | # if CDPATH is set. |
| 19341 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 19342 | |
| 19343 | sed_quote_subst='$sed_quote_subst' |
| 19344 | double_quote_subst='$double_quote_subst' |
| 19345 | delay_variable_subst='$delay_variable_subst' |
| 19346 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 19347 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 19348 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 19349 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 19350 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 19351 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 19352 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 19353 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 19354 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 19355 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 19356 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 19357 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 19358 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 19359 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 19360 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 19361 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 19362 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 19363 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 19364 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 19365 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 19366 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 19367 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 19368 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 19369 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 19370 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 19371 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 19372 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 19373 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 19374 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 19375 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19376 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19377 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 19378 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 19379 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 19380 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 19381 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 19382 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 19383 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 19384 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 19385 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 19386 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 19387 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 19388 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19389 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 19390 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 19391 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19392 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19393 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19394 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 19395 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 19396 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 19397 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 19398 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 19399 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 19400 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 19401 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 19402 | 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"`' |
| 19403 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19404 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 19405 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 19406 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 19407 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 19408 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 19409 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 19410 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 19411 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 19412 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 19413 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 19414 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 19415 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 19416 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 19417 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 19418 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 19419 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 19420 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 19421 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19422 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 19423 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 19424 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19425 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19426 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 19427 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 19428 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19429 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19430 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19431 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 19432 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19433 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 19434 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19435 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19436 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19437 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 19438 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 19439 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 19440 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 19441 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19442 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 19443 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 19444 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 19445 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 19446 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 19447 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19448 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19449 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19450 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19451 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19452 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 19453 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 19454 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 19455 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 19456 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 19457 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19458 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 19459 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 19460 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 19461 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 19462 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 19463 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19464 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19465 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 19466 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 19467 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 19468 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19469 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19470 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 19471 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 19472 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 19473 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 19474 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 19475 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 19476 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 19477 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 19478 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 19479 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 19480 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 19481 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 19482 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 19483 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19484 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19485 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19486 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 19487 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 19488 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19489 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19490 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 19491 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 19492 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 19493 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 19494 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 19495 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19496 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19497 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 19498 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19499 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19500 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19501 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19502 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19503 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19504 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 19505 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19506 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19507 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19508 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 19509 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 19510 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 19511 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 19512 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 19513 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19514 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 19515 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19516 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 19517 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19518 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19519 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19520 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19521 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19522 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19523 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 19524 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19525 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19526 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19527 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19528 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19529 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 19530 | |
| 19531 | LTCC='$LTCC' |
| 19532 | LTCFLAGS='$LTCFLAGS' |
| 19533 | compiler='$compiler_DEFAULT' |
| 19534 | |
| 19535 | # A function that is used when there is no print builtin or printf. |
| 19536 | func_fallback_echo () |
| 19537 | { |
| 19538 | eval 'cat <<_LTECHO_EOF |
| 19539 | \$1 |
| 19540 | _LTECHO_EOF' |
| 19541 | } |
| 19542 | |
| 19543 | # Quote evaled strings. |
| 19544 | for var in SHELL \ |
| 19545 | ECHO \ |
| 19546 | PATH_SEPARATOR \ |
| 19547 | SED \ |
| 19548 | GREP \ |
| 19549 | EGREP \ |
| 19550 | FGREP \ |
| 19551 | LD \ |
| 19552 | NM \ |
| 19553 | LN_S \ |
| 19554 | lt_SP2NL \ |
| 19555 | lt_NL2SP \ |
| 19556 | reload_flag \ |
| 19557 | OBJDUMP \ |
| 19558 | deplibs_check_method \ |
| 19559 | file_magic_cmd \ |
| 19560 | file_magic_glob \ |
| 19561 | want_nocaseglob \ |
| 19562 | DLLTOOL \ |
| 19563 | sharedlib_from_linklib_cmd \ |
| 19564 | AR \ |
| 19565 | AR_FLAGS \ |
| 19566 | archiver_list_spec \ |
| 19567 | STRIP \ |
| 19568 | RANLIB \ |
| 19569 | CC \ |
| 19570 | CFLAGS \ |
| 19571 | compiler \ |
| 19572 | lt_cv_sys_global_symbol_pipe \ |
| 19573 | lt_cv_sys_global_symbol_to_cdecl \ |
| 19574 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19575 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 19576 | nm_file_list_spec \ |
| 19577 | lt_prog_compiler_no_builtin_flag \ |
| 19578 | lt_prog_compiler_pic \ |
| 19579 | lt_prog_compiler_wl \ |
| 19580 | lt_prog_compiler_static \ |
| 19581 | lt_cv_prog_compiler_c_o \ |
| 19582 | need_locks \ |
| 19583 | MANIFEST_TOOL \ |
| 19584 | DSYMUTIL \ |
| 19585 | NMEDIT \ |
| 19586 | LIPO \ |
| 19587 | OTOOL \ |
| 19588 | OTOOL64 \ |
| 19589 | shrext_cmds \ |
| 19590 | export_dynamic_flag_spec \ |
| 19591 | whole_archive_flag_spec \ |
| 19592 | compiler_needs_object \ |
| 19593 | with_gnu_ld \ |
| 19594 | allow_undefined_flag \ |
| 19595 | no_undefined_flag \ |
| 19596 | hardcode_libdir_flag_spec \ |
| 19597 | hardcode_libdir_separator \ |
| 19598 | exclude_expsyms \ |
| 19599 | include_expsyms \ |
| 19600 | file_list_spec \ |
| 19601 | variables_saved_for_relink \ |
| 19602 | libname_spec \ |
| 19603 | library_names_spec \ |
| 19604 | soname_spec \ |
| 19605 | install_override_mode \ |
| 19606 | finish_eval \ |
| 19607 | old_striplib \ |
| 19608 | striplib \ |
| 19609 | compiler_lib_search_dirs \ |
| 19610 | predep_objects \ |
| 19611 | postdep_objects \ |
| 19612 | predeps \ |
| 19613 | postdeps \ |
| 19614 | compiler_lib_search_path \ |
| 19615 | LD_CXX \ |
| 19616 | reload_flag_CXX \ |
| 19617 | compiler_CXX \ |
| 19618 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 19619 | lt_prog_compiler_pic_CXX \ |
| 19620 | lt_prog_compiler_wl_CXX \ |
| 19621 | lt_prog_compiler_static_CXX \ |
| 19622 | lt_cv_prog_compiler_c_o_CXX \ |
| 19623 | export_dynamic_flag_spec_CXX \ |
| 19624 | whole_archive_flag_spec_CXX \ |
| 19625 | compiler_needs_object_CXX \ |
| 19626 | with_gnu_ld_CXX \ |
| 19627 | allow_undefined_flag_CXX \ |
| 19628 | no_undefined_flag_CXX \ |
| 19629 | hardcode_libdir_flag_spec_CXX \ |
| 19630 | hardcode_libdir_separator_CXX \ |
| 19631 | exclude_expsyms_CXX \ |
| 19632 | include_expsyms_CXX \ |
| 19633 | file_list_spec_CXX \ |
| 19634 | compiler_lib_search_dirs_CXX \ |
| 19635 | predep_objects_CXX \ |
| 19636 | postdep_objects_CXX \ |
| 19637 | predeps_CXX \ |
| 19638 | postdeps_CXX \ |
| 19639 | compiler_lib_search_path_CXX; do |
| 19640 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19641 | *[\\\\\\\`\\"\\\$]*) |
| 19642 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 19643 | ;; |
| 19644 | *) |
| 19645 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19646 | ;; |
| 19647 | esac |
| 19648 | done |
| 19649 | |
| 19650 | # Double-quote double-evaled strings. |
| 19651 | for var in reload_cmds \ |
| 19652 | old_postinstall_cmds \ |
| 19653 | old_postuninstall_cmds \ |
| 19654 | old_archive_cmds \ |
| 19655 | extract_expsyms_cmds \ |
| 19656 | old_archive_from_new_cmds \ |
| 19657 | old_archive_from_expsyms_cmds \ |
| 19658 | archive_cmds \ |
| 19659 | archive_expsym_cmds \ |
| 19660 | module_cmds \ |
| 19661 | module_expsym_cmds \ |
| 19662 | export_symbols_cmds \ |
| 19663 | prelink_cmds \ |
| 19664 | postlink_cmds \ |
| 19665 | postinstall_cmds \ |
| 19666 | postuninstall_cmds \ |
| 19667 | finish_cmds \ |
| 19668 | sys_lib_search_path_spec \ |
| 19669 | sys_lib_dlsearch_path_spec \ |
| 19670 | reload_cmds_CXX \ |
| 19671 | old_archive_cmds_CXX \ |
| 19672 | old_archive_from_new_cmds_CXX \ |
| 19673 | old_archive_from_expsyms_cmds_CXX \ |
| 19674 | archive_cmds_CXX \ |
| 19675 | archive_expsym_cmds_CXX \ |
| 19676 | module_cmds_CXX \ |
| 19677 | module_expsym_cmds_CXX \ |
| 19678 | export_symbols_cmds_CXX \ |
| 19679 | prelink_cmds_CXX \ |
| 19680 | postlink_cmds_CXX; do |
| 19681 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19682 | *[\\\\\\\`\\"\\\$]*) |
| 19683 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 19684 | ;; |
| 19685 | *) |
| 19686 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19687 | ;; |
| 19688 | esac |
| 19689 | done |
| 19690 | |
| 19691 | ac_aux_dir='$ac_aux_dir' |
| 19692 | xsi_shell='$xsi_shell' |
| 19693 | lt_shell_append='$lt_shell_append' |
| 19694 | |
| 19695 | # See if we are running on zsh, and set the options which allow our |
| 19696 | # commands through without removal of \ escapes INIT. |
| 19697 | if test -n "\${ZSH_VERSION+set}" ; then |
| 19698 | setopt NO_GLOB_SUBST |
| 19699 | fi |
| 19700 | |
| 19701 | |
| 19702 | PACKAGE='$PACKAGE' |
| 19703 | VERSION='$VERSION' |
| 19704 | TIMESTAMP='$TIMESTAMP' |
| 19705 | RM='$RM' |
| 19706 | ofile='$ofile' |
| 19707 | |
| 19708 | |
| 19709 | |
| 19710 | |
| 19711 | |
| 19712 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19713 | _ACEOF |
| 19714 | |
| 19715 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19716 | |
| 19717 | # Handling of arguments. |
| 19718 | for ac_config_target in $ac_config_targets |
| 19719 | do |
| 19720 | case $ac_config_target in |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 19721 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 19722 | "ndn-cpp/ndn-cpp-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ndn-cpp/ndn-cpp-config.h" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19723 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19724 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19725 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 19726 | |
| 19727 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 19728 | esac |
| 19729 | done |
| 19730 | |
| 19731 | |
| 19732 | # If the user did not use the arguments to specify the items to instantiate, |
| 19733 | # then the envvar interface is used. Set only those that are not. |
| 19734 | # We use the long form for the default assignment because of an extremely |
| 19735 | # bizarre bug on SunOS 4.1.3. |
| 19736 | if $ac_need_defaults; then |
| 19737 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19738 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19739 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 19740 | fi |
| 19741 | |
| 19742 | # Have a temporary directory for convenience. Make it in the build tree |
| 19743 | # simply because there is no reason against having it here, and in addition, |
| 19744 | # creating and moving files from /tmp can sometimes cause problems. |
| 19745 | # Hook for its removal unless debugging. |
| 19746 | # Note that there is a small window in which the directory will not be cleaned: |
| 19747 | # after its creation but before its name has been assigned to `$tmp'. |
| 19748 | $debug || |
| 19749 | { |
| 19750 | tmp= ac_tmp= |
| 19751 | trap 'exit_status=$? |
| 19752 | : "${ac_tmp:=$tmp}" |
| 19753 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 19754 | ' 0 |
| 19755 | trap 'as_fn_exit 1' 1 2 13 15 |
| 19756 | } |
| 19757 | # Create a (secure) tmp directory for tmp files. |
| 19758 | |
| 19759 | { |
| 19760 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 19761 | test -d "$tmp" |
| 19762 | } || |
| 19763 | { |
| 19764 | tmp=./conf$$-$RANDOM |
| 19765 | (umask 077 && mkdir "$tmp") |
| 19766 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 19767 | ac_tmp=$tmp |
| 19768 | |
| 19769 | # Set up the scripts for CONFIG_FILES section. |
| 19770 | # No need to generate them if there are no CONFIG_FILES. |
| 19771 | # This happens for instance with `./config.status config.h'. |
| 19772 | if test -n "$CONFIG_FILES"; then |
| 19773 | |
| 19774 | |
| 19775 | ac_cr=`echo X | tr X '\015'` |
| 19776 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 19777 | # But we know of no other shell where ac_cr would be empty at this |
| 19778 | # point, so we can use a bashism as a fallback. |
| 19779 | if test "x$ac_cr" = x; then |
| 19780 | eval ac_cr=\$\'\\r\' |
| 19781 | fi |
| 19782 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19783 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 19784 | ac_cs_awk_cr='\\r' |
| 19785 | else |
| 19786 | ac_cs_awk_cr=$ac_cr |
| 19787 | fi |
| 19788 | |
| 19789 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 19790 | _ACEOF |
| 19791 | |
| 19792 | |
| 19793 | { |
| 19794 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19795 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19796 | echo "_ACEOF" |
| 19797 | } >conf$$subs.sh || |
| 19798 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19799 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 19800 | ac_delim='%!_!# ' |
| 19801 | for ac_last_try in false false false false false :; do |
| 19802 | . ./conf$$subs.sh || |
| 19803 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19804 | |
| 19805 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 19806 | if test $ac_delim_n = $ac_delim_num; then |
| 19807 | break |
| 19808 | elif $ac_last_try; then |
| 19809 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19810 | else |
| 19811 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19812 | fi |
| 19813 | done |
| 19814 | rm -f conf$$subs.sh |
| 19815 | |
| 19816 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19817 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 19818 | _ACEOF |
| 19819 | sed -n ' |
| 19820 | h |
| 19821 | s/^/S["/; s/!.*/"]=/ |
| 19822 | p |
| 19823 | g |
| 19824 | s/^[^!]*!// |
| 19825 | :repl |
| 19826 | t repl |
| 19827 | s/'"$ac_delim"'$// |
| 19828 | t delim |
| 19829 | :nl |
| 19830 | h |
| 19831 | s/\(.\{148\}\)..*/\1/ |
| 19832 | t more1 |
| 19833 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19834 | p |
| 19835 | n |
| 19836 | b repl |
| 19837 | :more1 |
| 19838 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19839 | p |
| 19840 | g |
| 19841 | s/.\{148\}// |
| 19842 | t nl |
| 19843 | :delim |
| 19844 | h |
| 19845 | s/\(.\{148\}\)..*/\1/ |
| 19846 | t more2 |
| 19847 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19848 | p |
| 19849 | b |
| 19850 | :more2 |
| 19851 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19852 | p |
| 19853 | g |
| 19854 | s/.\{148\}// |
| 19855 | t delim |
| 19856 | ' <conf$$subs.awk | sed ' |
| 19857 | /^[^""]/{ |
| 19858 | N |
| 19859 | s/\n// |
| 19860 | } |
| 19861 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19862 | rm -f conf$$subs.awk |
| 19863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19864 | _ACAWK |
| 19865 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 19866 | for (key in S) S_is_set[key] = 1 |
| 19867 | FS = "" |
| 19868 | |
| 19869 | } |
| 19870 | { |
| 19871 | line = $ 0 |
| 19872 | nfields = split(line, field, "@") |
| 19873 | substed = 0 |
| 19874 | len = length(field[1]) |
| 19875 | for (i = 2; i < nfields; i++) { |
| 19876 | key = field[i] |
| 19877 | keylen = length(key) |
| 19878 | if (S_is_set[key]) { |
| 19879 | value = S[key] |
| 19880 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19881 | len += length(value) + length(field[++i]) |
| 19882 | substed = 1 |
| 19883 | } else |
| 19884 | len += 1 + keylen |
| 19885 | } |
| 19886 | |
| 19887 | print line |
| 19888 | } |
| 19889 | |
| 19890 | _ACAWK |
| 19891 | _ACEOF |
| 19892 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19893 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19894 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19895 | else |
| 19896 | cat |
| 19897 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19898 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 19899 | _ACEOF |
| 19900 | |
| 19901 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 19902 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 19903 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19904 | # (actually we leave an empty line to preserve line numbers). |
| 19905 | if test "x$srcdir" = x.; then |
| 19906 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 19907 | h |
| 19908 | s/// |
| 19909 | s/^/:/ |
| 19910 | s/[ ]*$/:/ |
| 19911 | s/:\$(srcdir):/:/g |
| 19912 | s/:\${srcdir}:/:/g |
| 19913 | s/:@srcdir@:/:/g |
| 19914 | s/^:*// |
| 19915 | s/:*$// |
| 19916 | x |
| 19917 | s/\(=[ ]*\).*/\1/ |
| 19918 | G |
| 19919 | s/\n// |
| 19920 | s/^[^=]*=[ ]*$// |
| 19921 | }' |
| 19922 | fi |
| 19923 | |
| 19924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19925 | fi # test -n "$CONFIG_FILES" |
| 19926 | |
| 19927 | # Set up the scripts for CONFIG_HEADERS section. |
| 19928 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19929 | # This happens for instance with `./config.status Makefile'. |
| 19930 | if test -n "$CONFIG_HEADERS"; then |
| 19931 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19932 | BEGIN { |
| 19933 | _ACEOF |
| 19934 | |
| 19935 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19936 | # here-document in config.status, that substitutes the proper values into |
| 19937 | # config.h.in to produce config.h. |
| 19938 | |
| 19939 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19940 | # handling of long lines. |
| 19941 | ac_delim='%!_!# ' |
| 19942 | for ac_last_try in false false :; do |
| 19943 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19944 | if test -z "$ac_tt"; then |
| 19945 | break |
| 19946 | elif $ac_last_try; then |
| 19947 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19948 | else |
| 19949 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19950 | fi |
| 19951 | done |
| 19952 | |
| 19953 | # For the awk script, D is an array of macro values keyed by name, |
| 19954 | # likewise P contains macro parameters if any. Preserve backslash |
| 19955 | # newline sequences. |
| 19956 | |
| 19957 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19958 | sed -n ' |
| 19959 | s/.\{148\}/&'"$ac_delim"'/g |
| 19960 | t rset |
| 19961 | :rset |
| 19962 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19963 | t def |
| 19964 | d |
| 19965 | :def |
| 19966 | s/\\$// |
| 19967 | t bsnl |
| 19968 | s/["\\]/\\&/g |
| 19969 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19970 | D["\1"]=" \3"/p |
| 19971 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19972 | d |
| 19973 | :bsnl |
| 19974 | s/["\\]/\\&/g |
| 19975 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19976 | D["\1"]=" \3\\\\\\n"\\/p |
| 19977 | t cont |
| 19978 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19979 | t cont |
| 19980 | d |
| 19981 | :cont |
| 19982 | n |
| 19983 | s/.\{148\}/&'"$ac_delim"'/g |
| 19984 | t clear |
| 19985 | :clear |
| 19986 | s/\\$// |
| 19987 | t bsnlc |
| 19988 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19989 | d |
| 19990 | :bsnlc |
| 19991 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19992 | b cont |
| 19993 | ' <confdefs.h | sed ' |
| 19994 | s/'"$ac_delim"'/"\\\ |
| 19995 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19996 | |
| 19997 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19998 | for (key in D) D_is_set[key] = 1 |
| 19999 | FS = "" |
| 20000 | } |
| 20001 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 20002 | line = \$ 0 |
| 20003 | split(line, arg, " ") |
| 20004 | if (arg[1] == "#") { |
| 20005 | defundef = arg[2] |
| 20006 | mac1 = arg[3] |
| 20007 | } else { |
| 20008 | defundef = substr(arg[1], 2) |
| 20009 | mac1 = arg[2] |
| 20010 | } |
| 20011 | split(mac1, mac2, "(") #) |
| 20012 | macro = mac2[1] |
| 20013 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 20014 | if (D_is_set[macro]) { |
| 20015 | # Preserve the white space surrounding the "#". |
| 20016 | print prefix "define", macro P[macro] D[macro] |
| 20017 | next |
| 20018 | } else { |
| 20019 | # Replace #undef with comments. This is necessary, for example, |
| 20020 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 20021 | # on some systems where configure will not decide to define it. |
| 20022 | if (defundef == "undef") { |
| 20023 | print "/*", prefix defundef, macro, "*/" |
| 20024 | next |
| 20025 | } |
| 20026 | } |
| 20027 | } |
| 20028 | { print } |
| 20029 | _ACAWK |
| 20030 | _ACEOF |
| 20031 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20032 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 20033 | fi # test -n "$CONFIG_HEADERS" |
| 20034 | |
| 20035 | |
| 20036 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 20037 | shift |
| 20038 | for ac_tag |
| 20039 | do |
| 20040 | case $ac_tag in |
| 20041 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20042 | esac |
| 20043 | case $ac_mode$ac_tag in |
| 20044 | :[FHL]*:*);; |
| 20045 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 20046 | :[FH]-) ac_tag=-:-;; |
| 20047 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20048 | esac |
| 20049 | ac_save_IFS=$IFS |
| 20050 | IFS=: |
| 20051 | set x $ac_tag |
| 20052 | IFS=$ac_save_IFS |
| 20053 | shift |
| 20054 | ac_file=$1 |
| 20055 | shift |
| 20056 | |
| 20057 | case $ac_mode in |
| 20058 | :L) ac_source=$1;; |
| 20059 | :[FH]) |
| 20060 | ac_file_inputs= |
| 20061 | for ac_f |
| 20062 | do |
| 20063 | case $ac_f in |
| 20064 | -) ac_f="$ac_tmp/stdin";; |
| 20065 | *) # Look for the file first in the build tree, then in the source tree |
| 20066 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20067 | # because $ac_f cannot contain `:'. |
| 20068 | test -f "$ac_f" || |
| 20069 | case $ac_f in |
| 20070 | [\\/$]*) false;; |
| 20071 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20072 | esac || |
| 20073 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 20074 | esac |
| 20075 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 20076 | as_fn_append ac_file_inputs " '$ac_f'" |
| 20077 | done |
| 20078 | |
| 20079 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20080 | # use $as_me), people would be surprised to read: |
| 20081 | # /* config.h. Generated by config.status. */ |
| 20082 | configure_input='Generated from '` |
| 20083 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 20084 | `' by configure.' |
| 20085 | if test x"$ac_file" != x-; then |
| 20086 | configure_input="$ac_file. $configure_input" |
| 20087 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 20088 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 20089 | fi |
| 20090 | # Neutralize special characters interpreted by sed in replacement strings. |
| 20091 | case $configure_input in #( |
| 20092 | *\&* | *\|* | *\\* ) |
| 20093 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 20094 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 20095 | *) ac_sed_conf_input=$configure_input;; |
| 20096 | esac |
| 20097 | |
| 20098 | case $ac_tag in |
| 20099 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 20100 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 20101 | esac |
| 20102 | ;; |
| 20103 | esac |
| 20104 | |
| 20105 | ac_dir=`$as_dirname -- "$ac_file" || |
| 20106 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20107 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20108 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20109 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 20110 | $as_echo X"$ac_file" | |
| 20111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20112 | s//\1/ |
| 20113 | q |
| 20114 | } |
| 20115 | /^X\(\/\/\)[^/].*/{ |
| 20116 | s//\1/ |
| 20117 | q |
| 20118 | } |
| 20119 | /^X\(\/\/\)$/{ |
| 20120 | s//\1/ |
| 20121 | q |
| 20122 | } |
| 20123 | /^X\(\/\).*/{ |
| 20124 | s//\1/ |
| 20125 | q |
| 20126 | } |
| 20127 | s/.*/./; q'` |
| 20128 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20129 | ac_builddir=. |
| 20130 | |
| 20131 | case "$ac_dir" in |
| 20132 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20133 | *) |
| 20134 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 20135 | # A ".." for each directory in $ac_dir_suffix. |
| 20136 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 20137 | case $ac_top_builddir_sub in |
| 20138 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20139 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20140 | esac ;; |
| 20141 | esac |
| 20142 | ac_abs_top_builddir=$ac_pwd |
| 20143 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20144 | # for backward compatibility: |
| 20145 | ac_top_builddir=$ac_top_build_prefix |
| 20146 | |
| 20147 | case $srcdir in |
| 20148 | .) # We are building in place. |
| 20149 | ac_srcdir=. |
| 20150 | ac_top_srcdir=$ac_top_builddir_sub |
| 20151 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20152 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 20153 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20154 | ac_top_srcdir=$srcdir |
| 20155 | ac_abs_top_srcdir=$srcdir ;; |
| 20156 | *) # Relative name. |
| 20157 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20158 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20159 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 20160 | esac |
| 20161 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 20162 | |
| 20163 | |
| 20164 | case $ac_mode in |
| 20165 | :F) |
| 20166 | # |
| 20167 | # CONFIG_FILE |
| 20168 | # |
| 20169 | |
| 20170 | case $INSTALL in |
| 20171 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20172 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 20173 | esac |
| 20174 | ac_MKDIR_P=$MKDIR_P |
| 20175 | case $MKDIR_P in |
| 20176 | [\\/$]* | ?:[\\/]* ) ;; |
| 20177 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 20178 | esac |
| 20179 | _ACEOF |
| 20180 | |
| 20181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20182 | # If the template does not know about datarootdir, expand it. |
| 20183 | # FIXME: This hack should be removed a few years after 2.60. |
| 20184 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20185 | ac_sed_dataroot=' |
| 20186 | /datarootdir/ { |
| 20187 | p |
| 20188 | q |
| 20189 | } |
| 20190 | /@datadir@/p |
| 20191 | /@docdir@/p |
| 20192 | /@infodir@/p |
| 20193 | /@localedir@/p |
| 20194 | /@mandir@/p' |
| 20195 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 20196 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20197 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20199 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20200 | _ACEOF |
| 20201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20202 | ac_datarootdir_hack=' |
| 20203 | s&@datadir@&$datadir&g |
| 20204 | s&@docdir@&$docdir&g |
| 20205 | s&@infodir@&$infodir&g |
| 20206 | s&@localedir@&$localedir&g |
| 20207 | s&@mandir@&$mandir&g |
| 20208 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20209 | esac |
| 20210 | _ACEOF |
| 20211 | |
| 20212 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20213 | # Shell code in configure.ac might set extrasub. |
| 20214 | # FIXME: do we really want to maintain this feature? |
| 20215 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20216 | ac_sed_extra="$ac_vpsub |
| 20217 | $extrasub |
| 20218 | _ACEOF |
| 20219 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20220 | :t |
| 20221 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20222 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 20223 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20224 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 20225 | s&@srcdir@&$ac_srcdir&;t t |
| 20226 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20227 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20228 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20229 | s&@builddir@&$ac_builddir&;t t |
| 20230 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20231 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20232 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20233 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 20234 | $ac_datarootdir_hack |
| 20235 | " |
| 20236 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 20237 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20238 | |
| 20239 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20240 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 20241 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 20242 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 20243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20244 | which seems to be undefined. Please make sure it is defined" >&5 |
| 20245 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20246 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 20247 | |
| 20248 | rm -f "$ac_tmp/stdin" |
| 20249 | case $ac_file in |
| 20250 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 20251 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 20252 | esac \ |
| 20253 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20254 | ;; |
| 20255 | :H) |
| 20256 | # |
| 20257 | # CONFIG_HEADER |
| 20258 | # |
| 20259 | if test x"$ac_file" != x-; then |
| 20260 | { |
| 20261 | $as_echo "/* $configure_input */" \ |
| 20262 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 20263 | } >"$ac_tmp/config.h" \ |
| 20264 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20265 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 20266 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 20267 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 20268 | else |
| 20269 | rm -f "$ac_file" |
| 20270 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 20271 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20272 | fi |
| 20273 | else |
| 20274 | $as_echo "/* $configure_input */" \ |
| 20275 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 20276 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 20277 | fi |
| 20278 | # Compute "$ac_file"'s index in $config_headers. |
| 20279 | _am_arg="$ac_file" |
| 20280 | _am_stamp_count=1 |
| 20281 | for _am_header in $config_headers :; do |
| 20282 | case $_am_header in |
| 20283 | $_am_arg | $_am_arg:* ) |
| 20284 | break ;; |
| 20285 | * ) |
| 20286 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 20287 | esac |
| 20288 | done |
| 20289 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 20290 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20291 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 20292 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 20293 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 20294 | $as_echo X"$_am_arg" | |
| 20295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20296 | s//\1/ |
| 20297 | q |
| 20298 | } |
| 20299 | /^X\(\/\/\)[^/].*/{ |
| 20300 | s//\1/ |
| 20301 | q |
| 20302 | } |
| 20303 | /^X\(\/\/\)$/{ |
| 20304 | s//\1/ |
| 20305 | q |
| 20306 | } |
| 20307 | /^X\(\/\).*/{ |
| 20308 | s//\1/ |
| 20309 | q |
| 20310 | } |
| 20311 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 20312 | ;; |
| 20313 | |
| 20314 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 20315 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 20316 | ;; |
| 20317 | esac |
| 20318 | |
| 20319 | |
| 20320 | case $ac_file$ac_mode in |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 20321 | "ndn-cpp/ndn-cpp-config.h":C) ac_prefix_conf_OUT=`echo ndn-cpp/ndn-cpp-config.h` |
| 20322 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 20323 | ac_prefix_conf_PKG=`echo $PACKAGE` |
| 20324 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 20325 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 20326 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 20327 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20328 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 20329 | case "$ac_file" in |
| 20330 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 20331 | *) |
| 20332 | esac |
| 20333 | test ".$ac_prefix_conf_INP" != "." && break |
| 20334 | done |
| 20335 | fi |
| 20336 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20337 | case "$ac_prefix_conf_OUT" in |
| 20338 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 20339 | ;; |
| 20340 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 20341 | ;; |
| 20342 | *) ac_prefix_conf_INP=config.h |
| 20343 | ;; |
| 20344 | esac |
| 20345 | fi |
| 20346 | if test -z "$ac_prefix_conf_PKG" ; then |
| 20347 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| 20348 | else |
| 20349 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 20350 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 20351 | fi fi |
| 20352 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 20353 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 20354 | if test -f $ac_prefix_conf_INP ; then |
| 20355 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 20356 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 20357 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 20358 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 20359 | $as_echo "#endif/" >> conftest.prefix |
| 20360 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 20361 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 20362 | $as_echo "#endif/" >> conftest.prefix |
| 20363 | # now executing _script on _DEF input to create _OUT output file |
| 20364 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 20365 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 20366 | echo ' ' >>$tmp/pconfig.h |
| 20367 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 20368 | |
| 20369 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 20370 | echo ' ' >>$tmp/pconfig.h |
| 20371 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 20372 | echo "#endif" >>$tmp/pconfig.h |
| 20373 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 20374 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 20375 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 20376 | else |
| 20377 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 20378 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20379 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 20380 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 20381 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 20382 | $as_echo X"$ac_prefix_conf_OUT" | |
| 20383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20384 | s//\1/ |
| 20385 | q |
| 20386 | } |
| 20387 | /^X\(\/\/\)[^/].*/{ |
| 20388 | s//\1/ |
| 20389 | q |
| 20390 | } |
| 20391 | /^X\(\/\/\)$/{ |
| 20392 | s//\1/ |
| 20393 | q |
| 20394 | } |
| 20395 | /^X\(\/\).*/{ |
| 20396 | s//\1/ |
| 20397 | q |
| 20398 | } |
| 20399 | s/.*/./; q'` |
| 20400 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20401 | rm -f "$ac_prefix_conf_OUT" |
| 20402 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 20403 | fi |
| 20404 | cp conftest.prefix _configs.sed |
| 20405 | else |
| 20406 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| 20407 | fi |
| 20408 | rm -f conftest.* |
| 20409 | fi |
| 20410 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20411 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 20412 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 20413 | # are listed without --file. Let's play safe and only enable the eval |
| 20414 | # if we detect the quoting. |
| 20415 | case $CONFIG_FILES in |
| 20416 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 20417 | *) set x $CONFIG_FILES ;; |
| 20418 | esac |
| 20419 | shift |
| 20420 | for mf |
| 20421 | do |
| 20422 | # Strip MF so we end up with the name of the file. |
| 20423 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 20424 | # Check whether this is an Automake generated Makefile or not. |
| 20425 | # We used to match only the files named 'Makefile.in', but |
| 20426 | # some people rename them; so instead we look at the file content. |
| 20427 | # Grep'ing the first line is not enough: some people post-process |
| 20428 | # each Makefile.in and add a new line on top of each file to say so. |
| 20429 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 20430 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 20431 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 20432 | dirpart=`$as_dirname -- "$mf" || |
| 20433 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20434 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 20435 | X"$mf" : 'X\(//\)$' \| \ |
| 20436 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 20437 | $as_echo X"$mf" | |
| 20438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20439 | s//\1/ |
| 20440 | q |
| 20441 | } |
| 20442 | /^X\(\/\/\)[^/].*/{ |
| 20443 | s//\1/ |
| 20444 | q |
| 20445 | } |
| 20446 | /^X\(\/\/\)$/{ |
| 20447 | s//\1/ |
| 20448 | q |
| 20449 | } |
| 20450 | /^X\(\/\).*/{ |
| 20451 | s//\1/ |
| 20452 | q |
| 20453 | } |
| 20454 | s/.*/./; q'` |
| 20455 | else |
| 20456 | continue |
| 20457 | fi |
| 20458 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 20459 | # from the Makefile without running 'make'. |
| 20460 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 20461 | test -z "$DEPDIR" && continue |
| 20462 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 20463 | test -z "$am__include" && continue |
| 20464 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 20465 | # Find all dependency output files, they are included files with |
| 20466 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 20467 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 20468 | # expansion. |
| 20469 | for file in `sed -n " |
| 20470 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 20471 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 20472 | # Make sure the directory exists. |
| 20473 | test -f "$dirpart/$file" && continue |
| 20474 | fdir=`$as_dirname -- "$file" || |
| 20475 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20476 | X"$file" : 'X\(//\)[^/]' \| \ |
| 20477 | X"$file" : 'X\(//\)$' \| \ |
| 20478 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 20479 | $as_echo X"$file" | |
| 20480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20481 | s//\1/ |
| 20482 | q |
| 20483 | } |
| 20484 | /^X\(\/\/\)[^/].*/{ |
| 20485 | s//\1/ |
| 20486 | q |
| 20487 | } |
| 20488 | /^X\(\/\/\)$/{ |
| 20489 | s//\1/ |
| 20490 | q |
| 20491 | } |
| 20492 | /^X\(\/\).*/{ |
| 20493 | s//\1/ |
| 20494 | q |
| 20495 | } |
| 20496 | s/.*/./; q'` |
| 20497 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 20498 | # echo "creating $dirpart/$file" |
| 20499 | echo '# dummy' > "$dirpart/$file" |
| 20500 | done |
| 20501 | done |
| 20502 | } |
| 20503 | ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 20504 | "libtool":C) |
| 20505 | |
| 20506 | # See if we are running on zsh, and set the options which allow our |
| 20507 | # commands through without removal of \ escapes. |
| 20508 | if test -n "${ZSH_VERSION+set}" ; then |
| 20509 | setopt NO_GLOB_SUBST |
| 20510 | fi |
| 20511 | |
| 20512 | cfgfile="${ofile}T" |
| 20513 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 20514 | $RM "$cfgfile" |
| 20515 | |
| 20516 | cat <<_LT_EOF >> "$cfgfile" |
| 20517 | #! $SHELL |
| 20518 | |
| 20519 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 20520 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 20521 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20522 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 20523 | # |
| 20524 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 20525 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 20526 | # Foundation, Inc. |
| 20527 | # Written by Gordon Matzigkeit, 1996 |
| 20528 | # |
| 20529 | # This file is part of GNU Libtool. |
| 20530 | # |
| 20531 | # GNU Libtool is free software; you can redistribute it and/or |
| 20532 | # modify it under the terms of the GNU General Public License as |
| 20533 | # published by the Free Software Foundation; either version 2 of |
| 20534 | # the License, or (at your option) any later version. |
| 20535 | # |
| 20536 | # As a special exception to the GNU General Public License, |
| 20537 | # if you distribute this file as part of a program or library that |
| 20538 | # is built using GNU Libtool, you may include this file under the |
| 20539 | # same distribution terms that you use for the rest of that program. |
| 20540 | # |
| 20541 | # GNU Libtool is distributed in the hope that it will be useful, |
| 20542 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20543 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20544 | # GNU General Public License for more details. |
| 20545 | # |
| 20546 | # You should have received a copy of the GNU General Public License |
| 20547 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 20548 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 20549 | # obtained by writing to the Free Software Foundation, Inc., |
| 20550 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20551 | |
| 20552 | |
| 20553 | # The names of the tagged configurations supported by this script. |
| 20554 | available_tags="CXX " |
| 20555 | |
| 20556 | # ### BEGIN LIBTOOL CONFIG |
| 20557 | |
| 20558 | # Which release of libtool.m4 was used? |
| 20559 | macro_version=$macro_version |
| 20560 | macro_revision=$macro_revision |
| 20561 | |
| 20562 | # Whether or not to build shared libraries. |
| 20563 | build_libtool_libs=$enable_shared |
| 20564 | |
| 20565 | # Whether or not to build static libraries. |
| 20566 | build_old_libs=$enable_static |
| 20567 | |
| 20568 | # What type of objects to build. |
| 20569 | pic_mode=$pic_mode |
| 20570 | |
| 20571 | # Whether or not to optimize for fast installation. |
| 20572 | fast_install=$enable_fast_install |
| 20573 | |
| 20574 | # Shell to use when invoking shell scripts. |
| 20575 | SHELL=$lt_SHELL |
| 20576 | |
| 20577 | # An echo program that protects backslashes. |
| 20578 | ECHO=$lt_ECHO |
| 20579 | |
| 20580 | # The PATH separator for the build system. |
| 20581 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 20582 | |
| 20583 | # The host system. |
| 20584 | host_alias=$host_alias |
| 20585 | host=$host |
| 20586 | host_os=$host_os |
| 20587 | |
| 20588 | # The build system. |
| 20589 | build_alias=$build_alias |
| 20590 | build=$build |
| 20591 | build_os=$build_os |
| 20592 | |
| 20593 | # A sed program that does not truncate output. |
| 20594 | SED=$lt_SED |
| 20595 | |
| 20596 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 20597 | Xsed="\$SED -e 1s/^X//" |
| 20598 | |
| 20599 | # A grep program that handles long lines. |
| 20600 | GREP=$lt_GREP |
| 20601 | |
| 20602 | # An ERE matcher. |
| 20603 | EGREP=$lt_EGREP |
| 20604 | |
| 20605 | # A literal string matcher. |
| 20606 | FGREP=$lt_FGREP |
| 20607 | |
| 20608 | # A BSD- or MS-compatible name lister. |
| 20609 | NM=$lt_NM |
| 20610 | |
| 20611 | # Whether we need soft or hard links. |
| 20612 | LN_S=$lt_LN_S |
| 20613 | |
| 20614 | # What is the maximum length of a command? |
| 20615 | max_cmd_len=$max_cmd_len |
| 20616 | |
| 20617 | # Object file suffix (normally "o"). |
| 20618 | objext=$ac_objext |
| 20619 | |
| 20620 | # Executable file suffix (normally ""). |
| 20621 | exeext=$exeext |
| 20622 | |
| 20623 | # whether the shell understands "unset". |
| 20624 | lt_unset=$lt_unset |
| 20625 | |
| 20626 | # turn spaces into newlines. |
| 20627 | SP2NL=$lt_lt_SP2NL |
| 20628 | |
| 20629 | # turn newlines into spaces. |
| 20630 | NL2SP=$lt_lt_NL2SP |
| 20631 | |
| 20632 | # convert \$build file names to \$host format. |
| 20633 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 20634 | |
| 20635 | # convert \$build files to toolchain format. |
| 20636 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 20637 | |
| 20638 | # An object symbol dumper. |
| 20639 | OBJDUMP=$lt_OBJDUMP |
| 20640 | |
| 20641 | # Method to check whether dependent libraries are shared objects. |
| 20642 | deplibs_check_method=$lt_deplibs_check_method |
| 20643 | |
| 20644 | # Command to use when deplibs_check_method = "file_magic". |
| 20645 | file_magic_cmd=$lt_file_magic_cmd |
| 20646 | |
| 20647 | # How to find potential files when deplibs_check_method = "file_magic". |
| 20648 | file_magic_glob=$lt_file_magic_glob |
| 20649 | |
| 20650 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 20651 | want_nocaseglob=$lt_want_nocaseglob |
| 20652 | |
| 20653 | # DLL creation program. |
| 20654 | DLLTOOL=$lt_DLLTOOL |
| 20655 | |
| 20656 | # Command to associate shared and link libraries. |
| 20657 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 20658 | |
| 20659 | # The archiver. |
| 20660 | AR=$lt_AR |
| 20661 | |
| 20662 | # Flags to create an archive. |
| 20663 | AR_FLAGS=$lt_AR_FLAGS |
| 20664 | |
| 20665 | # How to feed a file listing to the archiver. |
| 20666 | archiver_list_spec=$lt_archiver_list_spec |
| 20667 | |
| 20668 | # A symbol stripping program. |
| 20669 | STRIP=$lt_STRIP |
| 20670 | |
| 20671 | # Commands used to install an old-style archive. |
| 20672 | RANLIB=$lt_RANLIB |
| 20673 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20674 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20675 | |
| 20676 | # Whether to use a lock for old archive extraction. |
| 20677 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 20678 | |
| 20679 | # A C compiler. |
| 20680 | LTCC=$lt_CC |
| 20681 | |
| 20682 | # LTCC compiler flags. |
| 20683 | LTCFLAGS=$lt_CFLAGS |
| 20684 | |
| 20685 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20686 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20687 | |
| 20688 | # Transform the output of nm in a proper C declaration. |
| 20689 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20690 | |
| 20691 | # Transform the output of nm in a C name address pair. |
| 20692 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20693 | |
| 20694 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 20695 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 20696 | |
| 20697 | # Specify filename containing input files for \$NM. |
| 20698 | nm_file_list_spec=$lt_nm_file_list_spec |
| 20699 | |
| 20700 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 20701 | lt_sysroot=$lt_sysroot |
| 20702 | |
| 20703 | # The name of the directory that contains temporary libtool files. |
| 20704 | objdir=$objdir |
| 20705 | |
| 20706 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 20707 | MAGIC_CMD=$MAGIC_CMD |
| 20708 | |
| 20709 | # Must we lock files when doing compilation? |
| 20710 | need_locks=$lt_need_locks |
| 20711 | |
| 20712 | # Manifest tool. |
| 20713 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 20714 | |
| 20715 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 20716 | DSYMUTIL=$lt_DSYMUTIL |
| 20717 | |
| 20718 | # Tool to change global to local symbols on Mac OS X. |
| 20719 | NMEDIT=$lt_NMEDIT |
| 20720 | |
| 20721 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 20722 | LIPO=$lt_LIPO |
| 20723 | |
| 20724 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 20725 | OTOOL=$lt_OTOOL |
| 20726 | |
| 20727 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 20728 | OTOOL64=$lt_OTOOL64 |
| 20729 | |
| 20730 | # Old archive suffix (normally "a"). |
| 20731 | libext=$libext |
| 20732 | |
| 20733 | # Shared library suffix (normally ".so"). |
| 20734 | shrext_cmds=$lt_shrext_cmds |
| 20735 | |
| 20736 | # The commands to extract the exported symbol list from a shared archive. |
| 20737 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20738 | |
| 20739 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20740 | # restored at link time. |
| 20741 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 20742 | |
| 20743 | # Do we need the "lib" prefix for modules? |
| 20744 | need_lib_prefix=$need_lib_prefix |
| 20745 | |
| 20746 | # Do we need a version for libraries? |
| 20747 | need_version=$need_version |
| 20748 | |
| 20749 | # Library versioning type. |
| 20750 | version_type=$version_type |
| 20751 | |
| 20752 | # Shared library runtime path variable. |
| 20753 | runpath_var=$runpath_var |
| 20754 | |
| 20755 | # Shared library path variable. |
| 20756 | shlibpath_var=$shlibpath_var |
| 20757 | |
| 20758 | # Is shlibpath searched before the hard-coded library search path? |
| 20759 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20760 | |
| 20761 | # Format of library name prefix. |
| 20762 | libname_spec=$lt_libname_spec |
| 20763 | |
| 20764 | # List of archive names. First name is the real one, the rest are links. |
| 20765 | # The last name is the one that the linker finds with -lNAME |
| 20766 | library_names_spec=$lt_library_names_spec |
| 20767 | |
| 20768 | # The coded name of the library, if different from the real name. |
| 20769 | soname_spec=$lt_soname_spec |
| 20770 | |
| 20771 | # Permission mode override for installation of shared libraries. |
| 20772 | install_override_mode=$lt_install_override_mode |
| 20773 | |
| 20774 | # Command to use after installation of a shared archive. |
| 20775 | postinstall_cmds=$lt_postinstall_cmds |
| 20776 | |
| 20777 | # Command to use after uninstallation of a shared archive. |
| 20778 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20779 | |
| 20780 | # Commands used to finish a libtool library installation in a directory. |
| 20781 | finish_cmds=$lt_finish_cmds |
| 20782 | |
| 20783 | # As "finish_cmds", except a single script fragment to be evaled but |
| 20784 | # not shown. |
| 20785 | finish_eval=$lt_finish_eval |
| 20786 | |
| 20787 | # Whether we should hardcode library paths into libraries. |
| 20788 | hardcode_into_libs=$hardcode_into_libs |
| 20789 | |
| 20790 | # Compile-time system search path for libraries. |
| 20791 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20792 | |
| 20793 | # Run-time system search path for libraries. |
| 20794 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20795 | |
| 20796 | # Whether dlopen is supported. |
| 20797 | dlopen_support=$enable_dlopen |
| 20798 | |
| 20799 | # Whether dlopen of programs is supported. |
| 20800 | dlopen_self=$enable_dlopen_self |
| 20801 | |
| 20802 | # Whether dlopen of statically linked programs is supported. |
| 20803 | dlopen_self_static=$enable_dlopen_self_static |
| 20804 | |
| 20805 | # Commands to strip libraries. |
| 20806 | old_striplib=$lt_old_striplib |
| 20807 | striplib=$lt_striplib |
| 20808 | |
| 20809 | |
| 20810 | # The linker used to build libraries. |
| 20811 | LD=$lt_LD |
| 20812 | |
| 20813 | # How to create reloadable object files. |
| 20814 | reload_flag=$lt_reload_flag |
| 20815 | reload_cmds=$lt_reload_cmds |
| 20816 | |
| 20817 | # Commands used to build an old-style archive. |
| 20818 | old_archive_cmds=$lt_old_archive_cmds |
| 20819 | |
| 20820 | # A language specific compiler. |
| 20821 | CC=$lt_compiler |
| 20822 | |
| 20823 | # Is the compiler the GNU compiler? |
| 20824 | with_gcc=$GCC |
| 20825 | |
| 20826 | # Compiler flag to turn off builtin functions. |
| 20827 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 20828 | |
| 20829 | # Additional compiler flags for building library objects. |
| 20830 | pic_flag=$lt_lt_prog_compiler_pic |
| 20831 | |
| 20832 | # How to pass a linker flag through the compiler. |
| 20833 | wl=$lt_lt_prog_compiler_wl |
| 20834 | |
| 20835 | # Compiler flag to prevent dynamic linking. |
| 20836 | link_static_flag=$lt_lt_prog_compiler_static |
| 20837 | |
| 20838 | # Does compiler simultaneously support -c and -o options? |
| 20839 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 20840 | |
| 20841 | # Whether or not to add -lc for building shared libraries. |
| 20842 | build_libtool_need_lc=$archive_cmds_need_lc |
| 20843 | |
| 20844 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20845 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 20846 | |
| 20847 | # Compiler flag to allow reflexive dlopens. |
| 20848 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 20849 | |
| 20850 | # Compiler flag to generate shared objects directly from archives. |
| 20851 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 20852 | |
| 20853 | # Whether the compiler copes with passing no objects directly. |
| 20854 | compiler_needs_object=$lt_compiler_needs_object |
| 20855 | |
| 20856 | # Create an old-style archive from a shared archive. |
| 20857 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 20858 | |
| 20859 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20860 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 20861 | |
| 20862 | # Commands used to build a shared archive. |
| 20863 | archive_cmds=$lt_archive_cmds |
| 20864 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 20865 | |
| 20866 | # Commands used to build a loadable module if different from building |
| 20867 | # a shared archive. |
| 20868 | module_cmds=$lt_module_cmds |
| 20869 | module_expsym_cmds=$lt_module_expsym_cmds |
| 20870 | |
| 20871 | # Whether we are building with GNU ld or not. |
| 20872 | with_gnu_ld=$lt_with_gnu_ld |
| 20873 | |
| 20874 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20875 | allow_undefined_flag=$lt_allow_undefined_flag |
| 20876 | |
| 20877 | # Flag that enforces no undefined symbols. |
| 20878 | no_undefined_flag=$lt_no_undefined_flag |
| 20879 | |
| 20880 | # Flag to hardcode \$libdir into a binary during linking. |
| 20881 | # This must work even if \$libdir does not exist |
| 20882 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 20883 | |
| 20884 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20885 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 20886 | |
| 20887 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20888 | # DIR into the resulting binary. |
| 20889 | hardcode_direct=$hardcode_direct |
| 20890 | |
| 20891 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20892 | # DIR into the resulting binary and the resulting library dependency is |
| 20893 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20894 | # library is relocated. |
| 20895 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 20896 | |
| 20897 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20898 | # into the resulting binary. |
| 20899 | hardcode_minus_L=$hardcode_minus_L |
| 20900 | |
| 20901 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20902 | # into the resulting binary. |
| 20903 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 20904 | |
| 20905 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20906 | # into the library and all subsequent libraries and executables linked |
| 20907 | # against it. |
| 20908 | hardcode_automatic=$hardcode_automatic |
| 20909 | |
| 20910 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20911 | # to runtime path list. |
| 20912 | inherit_rpath=$inherit_rpath |
| 20913 | |
| 20914 | # Whether libtool must link a program against all its dependency libraries. |
| 20915 | link_all_deplibs=$link_all_deplibs |
| 20916 | |
| 20917 | # Set to "yes" if exported symbols are required. |
| 20918 | always_export_symbols=$always_export_symbols |
| 20919 | |
| 20920 | # The commands to list exported symbols. |
| 20921 | export_symbols_cmds=$lt_export_symbols_cmds |
| 20922 | |
| 20923 | # Symbols that should not be listed in the preloaded symbols. |
| 20924 | exclude_expsyms=$lt_exclude_expsyms |
| 20925 | |
| 20926 | # Symbols that must always be exported. |
| 20927 | include_expsyms=$lt_include_expsyms |
| 20928 | |
| 20929 | # Commands necessary for linking programs (against libraries) with templates. |
| 20930 | prelink_cmds=$lt_prelink_cmds |
| 20931 | |
| 20932 | # Commands necessary for finishing linking programs. |
| 20933 | postlink_cmds=$lt_postlink_cmds |
| 20934 | |
| 20935 | # Specify filename containing input files. |
| 20936 | file_list_spec=$lt_file_list_spec |
| 20937 | |
| 20938 | # How to hardcode a shared library path into an executable. |
| 20939 | hardcode_action=$hardcode_action |
| 20940 | |
| 20941 | # The directories searched by this compiler when creating a shared library. |
| 20942 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 20943 | |
| 20944 | # Dependencies to place before and after the objects being linked to |
| 20945 | # create a shared library. |
| 20946 | predep_objects=$lt_predep_objects |
| 20947 | postdep_objects=$lt_postdep_objects |
| 20948 | predeps=$lt_predeps |
| 20949 | postdeps=$lt_postdeps |
| 20950 | |
| 20951 | # The library search path used internally by the compiler when linking |
| 20952 | # a shared library. |
| 20953 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 20954 | |
| 20955 | # ### END LIBTOOL CONFIG |
| 20956 | |
| 20957 | _LT_EOF |
| 20958 | |
| 20959 | case $host_os in |
| 20960 | aix3*) |
| 20961 | cat <<\_LT_EOF >> "$cfgfile" |
| 20962 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 20963 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 20964 | # vanish in a puff of smoke. |
| 20965 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 20966 | COLLECT_NAMES= |
| 20967 | export COLLECT_NAMES |
| 20968 | fi |
| 20969 | _LT_EOF |
| 20970 | ;; |
| 20971 | esac |
| 20972 | |
| 20973 | |
| 20974 | ltmain="$ac_aux_dir/ltmain.sh" |
| 20975 | |
| 20976 | |
| 20977 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 20978 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 20979 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 20980 | # is reportedly fixed, but why not run on old versions too? |
| 20981 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 20982 | || (rm -f "$cfgfile"; exit 1) |
| 20983 | |
| 20984 | if test x"$xsi_shell" = xyes; then |
| 20985 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 20986 | func_dirname ()\ |
| 20987 | {\ |
| 20988 | \ case ${1} in\ |
| 20989 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 20990 | \ * ) func_dirname_result="${3}" ;;\ |
| 20991 | \ esac\ |
| 20992 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 20993 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 20994 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 20995 | test 0 -eq $? || _lt_function_replace_fail=: |
| 20996 | |
| 20997 | |
| 20998 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 20999 | func_basename ()\ |
| 21000 | {\ |
| 21001 | \ func_basename_result="${1##*/}"\ |
| 21002 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21003 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21004 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21005 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21006 | |
| 21007 | |
| 21008 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 21009 | func_dirname_and_basename ()\ |
| 21010 | {\ |
| 21011 | \ case ${1} in\ |
| 21012 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 21013 | \ * ) func_dirname_result="${3}" ;;\ |
| 21014 | \ esac\ |
| 21015 | \ func_basename_result="${1##*/}"\ |
| 21016 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21017 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21018 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21019 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21020 | |
| 21021 | |
| 21022 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 21023 | func_stripname ()\ |
| 21024 | {\ |
| 21025 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 21026 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 21027 | \ func_stripname_result=${3}\ |
| 21028 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 21029 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 21030 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21031 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21032 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21033 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21034 | |
| 21035 | |
| 21036 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 21037 | func_split_long_opt ()\ |
| 21038 | {\ |
| 21039 | \ func_split_long_opt_name=${1%%=*}\ |
| 21040 | \ func_split_long_opt_arg=${1#*=}\ |
| 21041 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21042 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21043 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21044 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21045 | |
| 21046 | |
| 21047 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 21048 | func_split_short_opt ()\ |
| 21049 | {\ |
| 21050 | \ func_split_short_opt_arg=${1#??}\ |
| 21051 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 21052 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21053 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21054 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21055 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21056 | |
| 21057 | |
| 21058 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 21059 | func_lo2o ()\ |
| 21060 | {\ |
| 21061 | \ case ${1} in\ |
| 21062 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 21063 | \ *) func_lo2o_result=${1} ;;\ |
| 21064 | \ esac\ |
| 21065 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21066 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21067 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21068 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21069 | |
| 21070 | |
| 21071 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 21072 | func_xform ()\ |
| 21073 | {\ |
| 21074 | func_xform_result=${1%.*}.lo\ |
| 21075 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21076 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21077 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21078 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21079 | |
| 21080 | |
| 21081 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 21082 | func_arith ()\ |
| 21083 | {\ |
| 21084 | func_arith_result=$(( $* ))\ |
| 21085 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21086 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21087 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21088 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21089 | |
| 21090 | |
| 21091 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 21092 | func_len ()\ |
| 21093 | {\ |
| 21094 | func_len_result=${#1}\ |
| 21095 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21096 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21097 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21098 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21099 | |
| 21100 | fi |
| 21101 | |
| 21102 | if test x"$lt_shell_append" = xyes; then |
| 21103 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 21104 | func_append ()\ |
| 21105 | {\ |
| 21106 | eval "${1}+=\\${2}"\ |
| 21107 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21108 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21109 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21110 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21111 | |
| 21112 | |
| 21113 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 21114 | func_append_quoted ()\ |
| 21115 | {\ |
| 21116 | \ func_quote_for_eval "${2}"\ |
| 21117 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 21118 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21119 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21120 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21121 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21122 | |
| 21123 | |
| 21124 | # Save a `func_append' function call where possible by direct use of '+=' |
| 21125 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 21126 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21127 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21128 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21129 | else |
| 21130 | # Save a `func_append' function call even when '+=' is not available |
| 21131 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 21132 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21133 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21134 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21135 | fi |
| 21136 | |
| 21137 | if test x"$_lt_function_replace_fail" = x":"; then |
| 21138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 21139 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 21140 | fi |
| 21141 | |
| 21142 | |
| 21143 | mv -f "$cfgfile" "$ofile" || |
| 21144 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 21145 | chmod +x "$ofile" |
| 21146 | |
| 21147 | |
| 21148 | cat <<_LT_EOF >> "$ofile" |
| 21149 | |
| 21150 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 21151 | |
| 21152 | # The linker used to build libraries. |
| 21153 | LD=$lt_LD_CXX |
| 21154 | |
| 21155 | # How to create reloadable object files. |
| 21156 | reload_flag=$lt_reload_flag_CXX |
| 21157 | reload_cmds=$lt_reload_cmds_CXX |
| 21158 | |
| 21159 | # Commands used to build an old-style archive. |
| 21160 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21161 | |
| 21162 | # A language specific compiler. |
| 21163 | CC=$lt_compiler_CXX |
| 21164 | |
| 21165 | # Is the compiler the GNU compiler? |
| 21166 | with_gcc=$GCC_CXX |
| 21167 | |
| 21168 | # Compiler flag to turn off builtin functions. |
| 21169 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21170 | |
| 21171 | # Additional compiler flags for building library objects. |
| 21172 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21173 | |
| 21174 | # How to pass a linker flag through the compiler. |
| 21175 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21176 | |
| 21177 | # Compiler flag to prevent dynamic linking. |
| 21178 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21179 | |
| 21180 | # Does compiler simultaneously support -c and -o options? |
| 21181 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21182 | |
| 21183 | # Whether or not to add -lc for building shared libraries. |
| 21184 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21185 | |
| 21186 | # Whether or not to disallow shared libs when runtime libs are static. |
| 21187 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21188 | |
| 21189 | # Compiler flag to allow reflexive dlopens. |
| 21190 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21191 | |
| 21192 | # Compiler flag to generate shared objects directly from archives. |
| 21193 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21194 | |
| 21195 | # Whether the compiler copes with passing no objects directly. |
| 21196 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 21197 | |
| 21198 | # Create an old-style archive from a shared archive. |
| 21199 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21200 | |
| 21201 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21202 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21203 | |
| 21204 | # Commands used to build a shared archive. |
| 21205 | archive_cmds=$lt_archive_cmds_CXX |
| 21206 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21207 | |
| 21208 | # Commands used to build a loadable module if different from building |
| 21209 | # a shared archive. |
| 21210 | module_cmds=$lt_module_cmds_CXX |
| 21211 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21212 | |
| 21213 | # Whether we are building with GNU ld or not. |
| 21214 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 21215 | |
| 21216 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21217 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21218 | |
| 21219 | # Flag that enforces no undefined symbols. |
| 21220 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21221 | |
| 21222 | # Flag to hardcode \$libdir into a binary during linking. |
| 21223 | # This must work even if \$libdir does not exist |
| 21224 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21225 | |
| 21226 | # Whether we need a single "-rpath" flag with a separated argument. |
| 21227 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21228 | |
| 21229 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21230 | # DIR into the resulting binary. |
| 21231 | hardcode_direct=$hardcode_direct_CXX |
| 21232 | |
| 21233 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21234 | # DIR into the resulting binary and the resulting library dependency is |
| 21235 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 21236 | # library is relocated. |
| 21237 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 21238 | |
| 21239 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 21240 | # into the resulting binary. |
| 21241 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21242 | |
| 21243 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21244 | # into the resulting binary. |
| 21245 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21246 | |
| 21247 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 21248 | # into the library and all subsequent libraries and executables linked |
| 21249 | # against it. |
| 21250 | hardcode_automatic=$hardcode_automatic_CXX |
| 21251 | |
| 21252 | # Set to yes if linker adds runtime paths of dependent libraries |
| 21253 | # to runtime path list. |
| 21254 | inherit_rpath=$inherit_rpath_CXX |
| 21255 | |
| 21256 | # Whether libtool must link a program against all its dependency libraries. |
| 21257 | link_all_deplibs=$link_all_deplibs_CXX |
| 21258 | |
| 21259 | # Set to "yes" if exported symbols are required. |
| 21260 | always_export_symbols=$always_export_symbols_CXX |
| 21261 | |
| 21262 | # The commands to list exported symbols. |
| 21263 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21264 | |
| 21265 | # Symbols that should not be listed in the preloaded symbols. |
| 21266 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21267 | |
| 21268 | # Symbols that must always be exported. |
| 21269 | include_expsyms=$lt_include_expsyms_CXX |
| 21270 | |
| 21271 | # Commands necessary for linking programs (against libraries) with templates. |
| 21272 | prelink_cmds=$lt_prelink_cmds_CXX |
| 21273 | |
| 21274 | # Commands necessary for finishing linking programs. |
| 21275 | postlink_cmds=$lt_postlink_cmds_CXX |
| 21276 | |
| 21277 | # Specify filename containing input files. |
| 21278 | file_list_spec=$lt_file_list_spec_CXX |
| 21279 | |
| 21280 | # How to hardcode a shared library path into an executable. |
| 21281 | hardcode_action=$hardcode_action_CXX |
| 21282 | |
| 21283 | # The directories searched by this compiler when creating a shared library. |
| 21284 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 21285 | |
| 21286 | # Dependencies to place before and after the objects being linked to |
| 21287 | # create a shared library. |
| 21288 | predep_objects=$lt_predep_objects_CXX |
| 21289 | postdep_objects=$lt_postdep_objects_CXX |
| 21290 | predeps=$lt_predeps_CXX |
| 21291 | postdeps=$lt_postdeps_CXX |
| 21292 | |
| 21293 | # The library search path used internally by the compiler when linking |
| 21294 | # a shared library. |
| 21295 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21296 | |
| 21297 | # ### END LIBTOOL TAG CONFIG: CXX |
| 21298 | _LT_EOF |
| 21299 | |
| 21300 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 21301 | |
| 21302 | esac |
| 21303 | done # for ac_tag |
| 21304 | |
| 21305 | |
| 21306 | as_fn_exit 0 |
| 21307 | _ACEOF |
| 21308 | ac_clean_files=$ac_clean_files_save |
| 21309 | |
| 21310 | test $ac_write_fail = 0 || |
| 21311 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 21312 | |
| 21313 | |
| 21314 | # configure is writing to config.log, and then calls config.status. |
| 21315 | # config.status does its own redirection, appending to config.log. |
| 21316 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21317 | # by configure, so config.status won't be able to write to it; its |
| 21318 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21319 | # effectively closing config.log, so it can be properly (re)opened and |
| 21320 | # appended to by config.status. When coming back to configure, we |
| 21321 | # need to make the FD available again. |
| 21322 | if test "$no_create" != yes; then |
| 21323 | ac_cs_success=: |
| 21324 | ac_config_status_args= |
| 21325 | test "$silent" = yes && |
| 21326 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21327 | exec 5>/dev/null |
| 21328 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21329 | exec 5>>config.log |
| 21330 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21331 | # would make configure fail if this is the last instruction. |
| 21332 | $ac_cs_success || as_fn_exit 1 |
| 21333 | fi |
| 21334 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 21335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 21336 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 21337 | fi |
| 21338 | |