Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.63 for iperf 3.0.1. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4 | # |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 5 | # Report bugs to <https://github.com/esnet/iperf>. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6 | # |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in |
| 26 | *posix*) set -o posix ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 27 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 28 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 32 | |
| 33 | |
| 34 | # PATH needs CR |
| 35 | # Avoid depending upon Character Ranges. |
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 39 | as_cr_digits='0123456789' |
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 42 | as_nl=' |
| 43 | ' |
| 44 | export as_nl |
| 45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 60 | case $arg in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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 |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 73 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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 | } |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 81 | fi |
| 82 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 83 | # Support unset when possible. |
| 84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 85 | as_unset=unset |
| 86 | else |
| 87 | as_unset=false |
| 88 | fi |
| 89 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 90 | |
| 91 | # IFS |
| 92 | # We need space, tab and new line, in precisely that order. Quoting is |
| 93 | # there to prevent editors from complaining about space-tab. |
| 94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 95 | # splitting by setting IFS to empty value.) |
| 96 | IFS=" "" $as_nl" |
| 97 | |
| 98 | # Find who we are. Look in the path if we contain no directory separator. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 99 | case $0 in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 100 | *[\\/]* ) as_myself=$0 ;; |
| 101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 102 | for as_dir in $PATH |
| 103 | do |
| 104 | IFS=$as_save_IFS |
| 105 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 107 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 108 | IFS=$as_save_IFS |
| 109 | |
| 110 | ;; |
| 111 | esac |
| 112 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 113 | # in which case we are not to be found in the path. |
| 114 | if test "x$as_myself" = x; then |
| 115 | as_myself=$0 |
| 116 | fi |
| 117 | if test ! -f "$as_myself"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 119 | { (exit 1); exit 1; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 120 | fi |
| 121 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
| 123 | for as_var in ENV MAIL MAILPATH |
| 124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 135 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 136 | # Required to use basename. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 139 | as_expr=expr |
| 140 | else |
| 141 | as_expr=false |
| 142 | fi |
| 143 | |
| 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 145 | as_basename=basename |
| 146 | else |
| 147 | as_basename=false |
| 148 | fi |
| 149 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 150 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 151 | # Name of the executable. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 152 | as_me=`$as_basename -- "$0" || |
| 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 154 | X"$0" : 'X\(//\)$' \| \ |
| 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 156 | $as_echo X/"$0" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 158 | s//\1/ |
| 159 | q |
| 160 | } |
| 161 | /^X\/\(\/\/\)$/{ |
| 162 | s//\1/ |
| 163 | q |
| 164 | } |
| 165 | /^X\/\(\/\).*/{ |
| 166 | s//\1/ |
| 167 | q |
| 168 | } |
| 169 | s/.*/./; q'` |
| 170 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 171 | # CDPATH. |
| 172 | $as_unset CDPATH |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 173 | |
| 174 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 175 | if test "x$CONFIG_SHELL" = x; then |
| 176 | if (eval ":") 2>/dev/null; then |
| 177 | as_have_required=yes |
| 178 | else |
| 179 | as_have_required=no |
| 180 | fi |
| 181 | |
| 182 | if test $as_have_required = yes && (eval ": |
| 183 | (as_func_return () { |
| 184 | (exit \$1) |
| 185 | } |
| 186 | as_func_success () { |
| 187 | as_func_return 0 |
| 188 | } |
| 189 | as_func_failure () { |
| 190 | as_func_return 1 |
| 191 | } |
| 192 | as_func_ret_success () { |
| 193 | return 0 |
| 194 | } |
| 195 | as_func_ret_failure () { |
| 196 | return 1 |
| 197 | } |
| 198 | |
| 199 | exitcode=0 |
| 200 | if as_func_success; then |
| 201 | : |
| 202 | else |
| 203 | exitcode=1 |
| 204 | echo as_func_success failed. |
| 205 | fi |
| 206 | |
| 207 | if as_func_failure; then |
| 208 | exitcode=1 |
| 209 | echo as_func_failure succeeded. |
| 210 | fi |
| 211 | |
| 212 | if as_func_ret_success; then |
| 213 | : |
| 214 | else |
| 215 | exitcode=1 |
| 216 | echo as_func_ret_success failed. |
| 217 | fi |
| 218 | |
| 219 | if as_func_ret_failure; then |
| 220 | exitcode=1 |
| 221 | echo as_func_ret_failure succeeded. |
| 222 | fi |
| 223 | |
| 224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 225 | : |
| 226 | else |
| 227 | exitcode=1 |
| 228 | echo positional parameters were not saved. |
| 229 | fi |
| 230 | |
| 231 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 232 | |
| 233 | ( |
| 234 | as_lineno_1=\$LINENO |
| 235 | as_lineno_2=\$LINENO |
| 236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 238 | ") 2> /dev/null; then |
| 239 | : |
| 240 | else |
| 241 | as_candidate_shells= |
| 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 244 | do |
| 245 | IFS=$as_save_IFS |
| 246 | test -z "$as_dir" && as_dir=. |
| 247 | case $as_dir in |
| 248 | /*) |
| 249 | for as_base in sh bash ksh sh5; do |
| 250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 251 | done;; |
| 252 | esac |
| 253 | done |
| 254 | IFS=$as_save_IFS |
| 255 | |
| 256 | |
| 257 | for as_shell in $as_candidate_shells $SHELL; do |
| 258 | # Try only shells that exist, to save several forks. |
| 259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 260 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | _ASEOF |
| 278 | }; then |
| 279 | CONFIG_SHELL=$as_shell |
| 280 | as_have_required=yes |
| 281 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 283 | emulate sh |
| 284 | NULLCMD=: |
| 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 286 | # is contrary to our usage. Disable this feature. |
| 287 | alias -g '${1+"$@"}'='"$@"' |
| 288 | setopt NO_GLOB_SUBST |
| 289 | else |
| 290 | case `(set -o) 2>/dev/null` in |
| 291 | *posix*) set -o posix ;; |
| 292 | esac |
| 293 | |
| 294 | fi |
| 295 | |
| 296 | |
| 297 | : |
| 298 | (as_func_return () { |
| 299 | (exit $1) |
| 300 | } |
| 301 | as_func_success () { |
| 302 | as_func_return 0 |
| 303 | } |
| 304 | as_func_failure () { |
| 305 | as_func_return 1 |
| 306 | } |
| 307 | as_func_ret_success () { |
| 308 | return 0 |
| 309 | } |
| 310 | as_func_ret_failure () { |
| 311 | return 1 |
| 312 | } |
| 313 | |
| 314 | exitcode=0 |
| 315 | if as_func_success; then |
| 316 | : |
| 317 | else |
| 318 | exitcode=1 |
| 319 | echo as_func_success failed. |
| 320 | fi |
| 321 | |
| 322 | if as_func_failure; then |
| 323 | exitcode=1 |
| 324 | echo as_func_failure succeeded. |
| 325 | fi |
| 326 | |
| 327 | if as_func_ret_success; then |
| 328 | : |
| 329 | else |
| 330 | exitcode=1 |
| 331 | echo as_func_ret_success failed. |
| 332 | fi |
| 333 | |
| 334 | if as_func_ret_failure; then |
| 335 | exitcode=1 |
| 336 | echo as_func_ret_failure succeeded. |
| 337 | fi |
| 338 | |
| 339 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 340 | : |
| 341 | else |
| 342 | exitcode=1 |
| 343 | echo positional parameters were not saved. |
| 344 | fi |
| 345 | |
| 346 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 347 | |
| 348 | ( |
| 349 | as_lineno_1=$LINENO |
| 350 | as_lineno_2=$LINENO |
| 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 353 | |
| 354 | _ASEOF |
| 355 | }; then |
| 356 | break |
| 357 | fi |
| 358 | |
| 359 | fi |
| 360 | |
| 361 | done |
| 362 | |
| 363 | if test "x$CONFIG_SHELL" != x; then |
| 364 | for as_var in BASH_ENV ENV |
| 365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 366 | done |
| 367 | export CONFIG_SHELL |
| 368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 369 | fi |
| 370 | |
| 371 | |
| 372 | if test $as_have_required = no; then |
| 373 | echo This script requires a shell more modern than all the |
| 374 | echo shells that I found on your system. Please install a |
| 375 | echo modern shell, or manually run the script under such a |
| 376 | echo shell if you do have one. |
| 377 | { (exit 1); exit 1; } |
| 378 | fi |
| 379 | |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | fi |
| 384 | |
| 385 | |
| 386 | |
| 387 | (eval "as_func_return () { |
| 388 | (exit \$1) |
| 389 | } |
| 390 | as_func_success () { |
| 391 | as_func_return 0 |
| 392 | } |
| 393 | as_func_failure () { |
| 394 | as_func_return 1 |
| 395 | } |
| 396 | as_func_ret_success () { |
| 397 | return 0 |
| 398 | } |
| 399 | as_func_ret_failure () { |
| 400 | return 1 |
| 401 | } |
| 402 | |
| 403 | exitcode=0 |
| 404 | if as_func_success; then |
| 405 | : |
| 406 | else |
| 407 | exitcode=1 |
| 408 | echo as_func_success failed. |
| 409 | fi |
| 410 | |
| 411 | if as_func_failure; then |
| 412 | exitcode=1 |
| 413 | echo as_func_failure succeeded. |
| 414 | fi |
| 415 | |
| 416 | if as_func_ret_success; then |
| 417 | : |
| 418 | else |
| 419 | exitcode=1 |
| 420 | echo as_func_ret_success failed. |
| 421 | fi |
| 422 | |
| 423 | if as_func_ret_failure; then |
| 424 | exitcode=1 |
| 425 | echo as_func_ret_failure succeeded. |
| 426 | fi |
| 427 | |
| 428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 429 | : |
| 430 | else |
| 431 | exitcode=1 |
| 432 | echo positional parameters were not saved. |
| 433 | fi |
| 434 | |
| 435 | test \$exitcode = 0") || { |
| 436 | echo No shell found that supports shell functions. |
| 437 | echo Please tell bug-autoconf@gnu.org about your system, |
| 438 | echo including any error possibly output before this message. |
| 439 | echo This can help us improve future autoconf versions. |
| 440 | echo Configuration will now proceed without shell functions. |
| 441 | } |
| 442 | |
| 443 | |
| 444 | |
| 445 | as_lineno_1=$LINENO |
| 446 | as_lineno_2=$LINENO |
| 447 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 449 | |
| 450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 451 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 452 | # line-number line after each line using $LINENO; the second 'sed' |
| 453 | # does the real work. The second script uses 'N' to pair each |
| 454 | # line-number line with the line containing $LINENO, and appends |
| 455 | # trailing '-' during substitution so that $LINENO is not a special |
| 456 | # case at line end. |
| 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 459 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 460 | sed -n ' |
| 461 | p |
| 462 | /[$]LINENO/= |
| 463 | ' <$as_myself | |
| 464 | sed ' |
| 465 | s/[$]LINENO.*/&-/ |
| 466 | t lineno |
| 467 | b |
| 468 | :lineno |
| 469 | N |
| 470 | :loop |
| 471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 472 | t loop |
| 473 | s/-\n.*// |
| 474 | ' >$as_me.lineno && |
| 475 | chmod +x "$as_me.lineno" || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 477 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 478 | |
| 479 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 480 | # (the dirname of $[0] is not the place where we might find the |
| 481 | # original and so on. Autoconf is especially sensitive to this). |
| 482 | . "./$as_me.lineno" |
| 483 | # Exit status is that of the last command. |
| 484 | exit |
| 485 | } |
| 486 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 487 | |
| 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 489 | as_dirname=dirname |
| 490 | else |
| 491 | as_dirname=false |
| 492 | fi |
| 493 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 494 | ECHO_C= ECHO_N= ECHO_T= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 495 | case `echo -n x` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 496 | -n*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 497 | case `echo 'x\c'` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 499 | *) ECHO_C='\c';; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 500 | esac;; |
| 501 | *) |
| 502 | ECHO_N='-n';; |
| 503 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 506 | as_expr=expr |
| 507 | else |
| 508 | as_expr=false |
| 509 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 510 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.file |
| 512 | if test -d conf$$.dir; then |
| 513 | rm -f conf$$.dir/conf$$.file |
| 514 | else |
| 515 | rm -f conf$$.dir |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 516 | mkdir conf$$.dir 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 517 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 518 | if (echo >conf$$.file) 2>/dev/null; then |
| 519 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 520 | as_ln_s='ln -s' |
| 521 | # ... but there are two gotchas: |
| 522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 524 | # In both cases, we have to default to `cp -p'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 526 | as_ln_s='cp -p' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 528 | as_ln_s=ln |
| 529 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 530 | as_ln_s='cp -p' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 531 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 532 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 533 | as_ln_s='cp -p' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 534 | fi |
| 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 536 | rmdir conf$$.dir 2>/dev/null |
| 537 | |
| 538 | if mkdir -p . 2>/dev/null; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 539 | as_mkdir_p=: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 540 | else |
| 541 | test -d ./-p && rmdir ./-p |
| 542 | as_mkdir_p=false |
| 543 | fi |
| 544 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 545 | if test -x / >/dev/null 2>&1; then |
| 546 | as_test_x='test -x' |
| 547 | else |
| 548 | if ls -dL / >/dev/null 2>&1; then |
| 549 | as_ls_L_option=L |
| 550 | else |
| 551 | as_ls_L_option= |
| 552 | fi |
| 553 | as_test_x=' |
| 554 | eval sh -c '\'' |
| 555 | if test -d "$1"; then |
| 556 | test -d "$1/."; |
| 557 | else |
| 558 | case $1 in |
| 559 | -*)set "./$1";; |
| 560 | esac; |
| 561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 562 | ???[sx]*):;;*)false;;esac;fi |
| 563 | '\'' sh |
| 564 | ' |
| 565 | fi |
| 566 | as_executable_p=$as_test_x |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 567 | |
| 568 | # Sed expression to map a string onto a valid CPP name. |
| 569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 570 | |
| 571 | # Sed expression to map a string onto a valid variable name. |
| 572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 573 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 574 | |
| 575 | |
| 576 | |
| 577 | # Check that we are running under the correct shell. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 578 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 579 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 580 | case X$lt_ECHO in |
| 581 | X*--fallback-echo) |
| 582 | # Remove one level of quotation (which was required for Make). |
| 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 584 | ;; |
| 585 | esac |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 586 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 587 | ECHO=${lt_ECHO-echo} |
| 588 | if test "X$1" = X--no-reexec; then |
| 589 | # Discard the --no-reexec flag, and continue. |
| 590 | shift |
| 591 | elif test "X$1" = X--fallback-echo; then |
| 592 | # Avoid inline document here, it may be left over |
| 593 | : |
| 594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 595 | # Yippee, $ECHO works! |
| 596 | : |
| 597 | else |
| 598 | # Restart under the correct shell. |
| 599 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 600 | fi |
| 601 | |
| 602 | if test "X$1" = X--fallback-echo; then |
| 603 | # used as fallback echo |
| 604 | shift |
| 605 | cat <<_LT_EOF |
| 606 | $* |
| 607 | _LT_EOF |
| 608 | exit 0 |
| 609 | fi |
| 610 | |
| 611 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 612 | # if CDPATH is set. |
| 613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 614 | |
| 615 | if test -z "$lt_ECHO"; then |
| 616 | if test "X${echo_test_string+set}" != Xset; then |
| 617 | # find a string as large as possible, as long as the shell can cope with it |
| 618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 622 | then |
| 623 | break |
| 624 | fi |
| 625 | done |
| 626 | fi |
| 627 | |
| 628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 630 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 631 | : |
| 632 | else |
| 633 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 634 | # backslashes. This makes it impossible to quote backslashes using |
| 635 | # echo "$something" | sed 's/\\/\\\\/g' |
| 636 | # |
| 637 | # So, first we look for a working echo in the user's PATH. |
| 638 | |
| 639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 640 | for dir in $PATH /usr/ucb; do |
| 641 | IFS="$lt_save_ifs" |
| 642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 645 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 646 | ECHO="$dir/echo" |
| 647 | break |
| 648 | fi |
| 649 | done |
| 650 | IFS="$lt_save_ifs" |
| 651 | |
| 652 | if test "X$ECHO" = Xecho; then |
| 653 | # We didn't find a better echo, so look for alternatives. |
| 654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 656 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 657 | # This shell has a builtin print -r that does the trick. |
| 658 | ECHO='print -r' |
| 659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 660 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 661 | # If we have ksh, try running configure again with it. |
| 662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 663 | export ORIGINAL_CONFIG_SHELL |
| 664 | CONFIG_SHELL=/bin/ksh |
| 665 | export CONFIG_SHELL |
| 666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 667 | else |
| 668 | # Try using printf. |
| 669 | ECHO='printf %s\n' |
| 670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 672 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 673 | # Cool, printf works |
| 674 | : |
| 675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 676 | test "X$echo_testing_string" = 'X\t' && |
| 677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 678 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 680 | export CONFIG_SHELL |
| 681 | SHELL="$CONFIG_SHELL" |
| 682 | export SHELL |
| 683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 685 | test "X$echo_testing_string" = 'X\t' && |
| 686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 687 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 689 | else |
| 690 | # maybe with a smaller string... |
| 691 | prev=: |
| 692 | |
| 693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 695 | then |
| 696 | break |
| 697 | fi |
| 698 | prev="$cmd" |
| 699 | done |
| 700 | |
| 701 | if test "$prev" != 'sed 50q "$0"'; then |
| 702 | echo_test_string=`eval $prev` |
| 703 | export echo_test_string |
| 704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 705 | else |
| 706 | # Oops. We lost completely, so just stick with echo. |
| 707 | ECHO=echo |
| 708 | fi |
| 709 | fi |
| 710 | fi |
| 711 | fi |
| 712 | fi |
| 713 | fi |
| 714 | |
| 715 | # Copy echo and quote the copy suitably for passing to libtool from |
| 716 | # the Makefile, instead of quoting the original, which is used later. |
| 717 | lt_ECHO=$ECHO |
| 718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 720 | fi |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | exec 7<&0 </dev/null 6>&1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 726 | |
| 727 | # Name of the host. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 729 | # so uname gets run too. |
| 730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 731 | |
| 732 | # |
| 733 | # Initializations. |
| 734 | # |
| 735 | ac_default_prefix=/usr/local |
| 736 | ac_clean_files= |
| 737 | ac_config_libobj_dir=. |
| 738 | LIBOBJS= |
| 739 | cross_compiling=no |
| 740 | subdirs= |
| 741 | MFLAGS= |
| 742 | MAKEFLAGS= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 743 | SHELL=${CONFIG_SHELL-/bin/sh} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 744 | |
| 745 | # Identity of this package. |
| 746 | PACKAGE_NAME='iperf' |
| 747 | PACKAGE_TARNAME='iperf' |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 748 | PACKAGE_VERSION='3.0.1' |
| 749 | PACKAGE_STRING='iperf 3.0.1' |
| 750 | PACKAGE_BUGREPORT='https://github.com/esnet/iperf' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 751 | |
| 752 | # Factoring default headers for most tests. |
| 753 | ac_includes_default="\ |
| 754 | #include <stdio.h> |
| 755 | #ifdef HAVE_SYS_TYPES_H |
| 756 | # include <sys/types.h> |
| 757 | #endif |
| 758 | #ifdef HAVE_SYS_STAT_H |
| 759 | # include <sys/stat.h> |
| 760 | #endif |
| 761 | #ifdef STDC_HEADERS |
| 762 | # include <stdlib.h> |
| 763 | # include <stddef.h> |
| 764 | #else |
| 765 | # ifdef HAVE_STDLIB_H |
| 766 | # include <stdlib.h> |
| 767 | # endif |
| 768 | #endif |
| 769 | #ifdef HAVE_STRING_H |
| 770 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 771 | # include <memory.h> |
| 772 | # endif |
| 773 | # include <string.h> |
| 774 | #endif |
| 775 | #ifdef HAVE_STRINGS_H |
| 776 | # include <strings.h> |
| 777 | #endif |
| 778 | #ifdef HAVE_INTTYPES_H |
| 779 | # include <inttypes.h> |
| 780 | #endif |
| 781 | #ifdef HAVE_STDINT_H |
| 782 | # include <stdint.h> |
| 783 | #endif |
| 784 | #ifdef HAVE_UNISTD_H |
| 785 | # include <unistd.h> |
| 786 | #endif" |
| 787 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 788 | ac_subst_vars='am__EXEEXT_FALSE |
| 789 | am__EXEEXT_TRUE |
| 790 | LTLIBOBJS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 791 | LIBOBJS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 792 | CPP |
| 793 | OTOOL64 |
| 794 | OTOOL |
| 795 | LIPO |
| 796 | NMEDIT |
| 797 | DSYMUTIL |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 798 | lt_ECHO |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 799 | AR |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 800 | OBJDUMP |
| 801 | NM |
| 802 | ac_ct_DUMPBIN |
| 803 | DUMPBIN |
| 804 | LD |
| 805 | FGREP |
| 806 | EGREP |
| 807 | GREP |
| 808 | SED |
| 809 | LIBTOOL |
| 810 | LN_S |
| 811 | RANLIB |
| 812 | am__fastdepCC_FALSE |
| 813 | am__fastdepCC_TRUE |
| 814 | CCDEPMODE |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 815 | AMDEPBACKSLASH |
| 816 | AMDEP_FALSE |
| 817 | AMDEP_TRUE |
| 818 | am__quote |
| 819 | am__include |
| 820 | DEPDIR |
| 821 | OBJEXT |
| 822 | EXEEXT |
| 823 | ac_ct_CC |
| 824 | CPPFLAGS |
| 825 | LDFLAGS |
| 826 | CFLAGS |
| 827 | CC |
| 828 | host_os |
| 829 | host_vendor |
| 830 | host_cpu |
| 831 | host |
| 832 | build_os |
| 833 | build_vendor |
| 834 | build_cpu |
| 835 | build |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 836 | am__untar |
| 837 | am__tar |
| 838 | AMTAR |
| 839 | am__leading_dot |
| 840 | SET_MAKE |
| 841 | AWK |
| 842 | mkdir_p |
| 843 | MKDIR_P |
| 844 | INSTALL_STRIP_PROGRAM |
| 845 | STRIP |
| 846 | install_sh |
| 847 | MAKEINFO |
| 848 | AUTOHEADER |
| 849 | AUTOMAKE |
| 850 | AUTOCONF |
| 851 | ACLOCAL |
| 852 | VERSION |
| 853 | PACKAGE |
| 854 | CYGPATH_W |
| 855 | am__isrc |
| 856 | INSTALL_DATA |
| 857 | INSTALL_SCRIPT |
| 858 | INSTALL_PROGRAM |
| 859 | target_alias |
| 860 | host_alias |
| 861 | build_alias |
| 862 | LIBS |
| 863 | ECHO_T |
| 864 | ECHO_N |
| 865 | ECHO_C |
| 866 | DEFS |
| 867 | mandir |
| 868 | localedir |
| 869 | libdir |
| 870 | psdir |
| 871 | pdfdir |
| 872 | dvidir |
| 873 | htmldir |
| 874 | infodir |
| 875 | docdir |
| 876 | oldincludedir |
| 877 | includedir |
| 878 | localstatedir |
| 879 | sharedstatedir |
| 880 | sysconfdir |
| 881 | datadir |
| 882 | datarootdir |
| 883 | libexecdir |
| 884 | sbindir |
| 885 | bindir |
| 886 | program_transform_name |
| 887 | prefix |
| 888 | exec_prefix |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 889 | PACKAGE_BUGREPORT |
| 890 | PACKAGE_STRING |
| 891 | PACKAGE_VERSION |
| 892 | PACKAGE_TARNAME |
| 893 | PACKAGE_NAME |
| 894 | PATH_SEPARATOR |
| 895 | SHELL' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 896 | ac_subst_files='' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 897 | ac_user_opts=' |
| 898 | enable_option_checking |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 899 | enable_dependency_tracking |
| 900 | enable_shared |
| 901 | enable_static |
| 902 | with_pic |
| 903 | enable_fast_install |
| 904 | with_gnu_ld |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 905 | enable_libtool_lock |
| 906 | ' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 907 | ac_precious_vars='build_alias |
| 908 | host_alias |
| 909 | target_alias |
| 910 | CC |
| 911 | CFLAGS |
| 912 | LDFLAGS |
| 913 | LIBS |
| 914 | CPPFLAGS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 915 | CPP' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 916 | |
| 917 | |
| 918 | # Initialize some variables set by options. |
| 919 | ac_init_help= |
| 920 | ac_init_version=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 921 | ac_unrecognized_opts= |
| 922 | ac_unrecognized_sep= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 923 | # The variables have the same names as the options, with |
| 924 | # dashes changed to underlines. |
| 925 | cache_file=/dev/null |
| 926 | exec_prefix=NONE |
| 927 | no_create= |
| 928 | no_recursion= |
| 929 | prefix=NONE |
| 930 | program_prefix=NONE |
| 931 | program_suffix=NONE |
| 932 | program_transform_name=s,x,x, |
| 933 | silent= |
| 934 | site= |
| 935 | srcdir= |
| 936 | verbose= |
| 937 | x_includes=NONE |
| 938 | x_libraries=NONE |
| 939 | |
| 940 | # Installation directory options. |
| 941 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 942 | # and all the variables that are supposed to be based on exec_prefix |
| 943 | # by default will actually change. |
| 944 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 945 | # (The list follows the same order as the GNU Coding Standards.) |
| 946 | bindir='${exec_prefix}/bin' |
| 947 | sbindir='${exec_prefix}/sbin' |
| 948 | libexecdir='${exec_prefix}/libexec' |
| 949 | datarootdir='${prefix}/share' |
| 950 | datadir='${datarootdir}' |
| 951 | sysconfdir='${prefix}/etc' |
| 952 | sharedstatedir='${prefix}/com' |
| 953 | localstatedir='${prefix}/var' |
| 954 | includedir='${prefix}/include' |
| 955 | oldincludedir='/usr/include' |
| 956 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 957 | infodir='${datarootdir}/info' |
| 958 | htmldir='${docdir}' |
| 959 | dvidir='${docdir}' |
| 960 | pdfdir='${docdir}' |
| 961 | psdir='${docdir}' |
| 962 | libdir='${exec_prefix}/lib' |
| 963 | localedir='${datarootdir}/locale' |
| 964 | mandir='${datarootdir}/man' |
| 965 | |
| 966 | ac_prev= |
| 967 | ac_dashdash= |
| 968 | for ac_option |
| 969 | do |
| 970 | # If the previous option needs an argument, assign it. |
| 971 | if test -n "$ac_prev"; then |
| 972 | eval $ac_prev=\$ac_option |
| 973 | ac_prev= |
| 974 | continue |
| 975 | fi |
| 976 | |
| 977 | case $ac_option in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 978 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 979 | *) ac_optarg=yes ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 980 | esac |
| 981 | |
| 982 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 983 | |
| 984 | case $ac_dashdash$ac_option in |
| 985 | --) |
| 986 | ac_dashdash=yes ;; |
| 987 | |
| 988 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 989 | ac_prev=bindir ;; |
| 990 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 991 | bindir=$ac_optarg ;; |
| 992 | |
| 993 | -build | --build | --buil | --bui | --bu) |
| 994 | ac_prev=build_alias ;; |
| 995 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 996 | build_alias=$ac_optarg ;; |
| 997 | |
| 998 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 999 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1000 | ac_prev=cache_file ;; |
| 1001 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1002 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1003 | cache_file=$ac_optarg ;; |
| 1004 | |
| 1005 | --config-cache | -C) |
| 1006 | cache_file=config.cache ;; |
| 1007 | |
| 1008 | -datadir | --datadir | --datadi | --datad) |
| 1009 | ac_prev=datadir ;; |
| 1010 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1011 | datadir=$ac_optarg ;; |
| 1012 | |
| 1013 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1014 | | --dataroo | --dataro | --datar) |
| 1015 | ac_prev=datarootdir ;; |
| 1016 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1017 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1018 | datarootdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -disable-* | --disable-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1021 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1022 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1023 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1024 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1025 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1026 | ac_useropt_orig=$ac_useropt |
| 1027 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1028 | case $ac_user_opts in |
| 1029 | *" |
| 1030 | "enable_$ac_useropt" |
| 1031 | "*) ;; |
| 1032 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1033 | ac_unrecognized_sep=', ';; |
| 1034 | esac |
| 1035 | eval enable_$ac_useropt=no ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1036 | |
| 1037 | -docdir | --docdir | --docdi | --doc | --do) |
| 1038 | ac_prev=docdir ;; |
| 1039 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1040 | docdir=$ac_optarg ;; |
| 1041 | |
| 1042 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1043 | ac_prev=dvidir ;; |
| 1044 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1045 | dvidir=$ac_optarg ;; |
| 1046 | |
| 1047 | -enable-* | --enable-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1048 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1049 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1050 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1051 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1052 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1053 | ac_useropt_orig=$ac_useropt |
| 1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1055 | case $ac_user_opts in |
| 1056 | *" |
| 1057 | "enable_$ac_useropt" |
| 1058 | "*) ;; |
| 1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1060 | ac_unrecognized_sep=', ';; |
| 1061 | esac |
| 1062 | eval enable_$ac_useropt=\$ac_optarg ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1063 | |
| 1064 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1065 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1066 | | --exec | --exe | --ex) |
| 1067 | ac_prev=exec_prefix ;; |
| 1068 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1069 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1070 | | --exec=* | --exe=* | --ex=*) |
| 1071 | exec_prefix=$ac_optarg ;; |
| 1072 | |
| 1073 | -gas | --gas | --ga | --g) |
| 1074 | # Obsolete; use --with-gas. |
| 1075 | with_gas=yes ;; |
| 1076 | |
| 1077 | -help | --help | --hel | --he | -h) |
| 1078 | ac_init_help=long ;; |
| 1079 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1080 | ac_init_help=recursive ;; |
| 1081 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1082 | ac_init_help=short ;; |
| 1083 | |
| 1084 | -host | --host | --hos | --ho) |
| 1085 | ac_prev=host_alias ;; |
| 1086 | -host=* | --host=* | --hos=* | --ho=*) |
| 1087 | host_alias=$ac_optarg ;; |
| 1088 | |
| 1089 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1090 | ac_prev=htmldir ;; |
| 1091 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1092 | | --ht=*) |
| 1093 | htmldir=$ac_optarg ;; |
| 1094 | |
| 1095 | -includedir | --includedir | --includedi | --included | --include \ |
| 1096 | | --includ | --inclu | --incl | --inc) |
| 1097 | ac_prev=includedir ;; |
| 1098 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1099 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1100 | includedir=$ac_optarg ;; |
| 1101 | |
| 1102 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1103 | ac_prev=infodir ;; |
| 1104 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1105 | infodir=$ac_optarg ;; |
| 1106 | |
| 1107 | -libdir | --libdir | --libdi | --libd) |
| 1108 | ac_prev=libdir ;; |
| 1109 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1110 | libdir=$ac_optarg ;; |
| 1111 | |
| 1112 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1113 | | --libexe | --libex | --libe) |
| 1114 | ac_prev=libexecdir ;; |
| 1115 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1116 | | --libexe=* | --libex=* | --libe=*) |
| 1117 | libexecdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1120 | ac_prev=localedir ;; |
| 1121 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1122 | localedir=$ac_optarg ;; |
| 1123 | |
| 1124 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1125 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1126 | ac_prev=localstatedir ;; |
| 1127 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1128 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1129 | localstatedir=$ac_optarg ;; |
| 1130 | |
| 1131 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1132 | ac_prev=mandir ;; |
| 1133 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1134 | mandir=$ac_optarg ;; |
| 1135 | |
| 1136 | -nfp | --nfp | --nf) |
| 1137 | # Obsolete; use --without-fp. |
| 1138 | with_fp=no ;; |
| 1139 | |
| 1140 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1141 | | --no-cr | --no-c | -n) |
| 1142 | no_create=yes ;; |
| 1143 | |
| 1144 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1145 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1146 | no_recursion=yes ;; |
| 1147 | |
| 1148 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1149 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1150 | | --oldin | --oldi | --old | --ol | --o) |
| 1151 | ac_prev=oldincludedir ;; |
| 1152 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1153 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1154 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1155 | oldincludedir=$ac_optarg ;; |
| 1156 | |
| 1157 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1158 | ac_prev=prefix ;; |
| 1159 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1160 | prefix=$ac_optarg ;; |
| 1161 | |
| 1162 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1163 | | --program-pre | --program-pr | --program-p) |
| 1164 | ac_prev=program_prefix ;; |
| 1165 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1166 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1167 | program_prefix=$ac_optarg ;; |
| 1168 | |
| 1169 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1170 | | --program-suf | --program-su | --program-s) |
| 1171 | ac_prev=program_suffix ;; |
| 1172 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1173 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1174 | program_suffix=$ac_optarg ;; |
| 1175 | |
| 1176 | -program-transform-name | --program-transform-name \ |
| 1177 | | --program-transform-nam | --program-transform-na \ |
| 1178 | | --program-transform-n | --program-transform- \ |
| 1179 | | --program-transform | --program-transfor \ |
| 1180 | | --program-transfo | --program-transf \ |
| 1181 | | --program-trans | --program-tran \ |
| 1182 | | --progr-tra | --program-tr | --program-t) |
| 1183 | ac_prev=program_transform_name ;; |
| 1184 | -program-transform-name=* | --program-transform-name=* \ |
| 1185 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1186 | | --program-transform-n=* | --program-transform-=* \ |
| 1187 | | --program-transform=* | --program-transfor=* \ |
| 1188 | | --program-transfo=* | --program-transf=* \ |
| 1189 | | --program-trans=* | --program-tran=* \ |
| 1190 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1191 | program_transform_name=$ac_optarg ;; |
| 1192 | |
| 1193 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1194 | ac_prev=pdfdir ;; |
| 1195 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1196 | pdfdir=$ac_optarg ;; |
| 1197 | |
| 1198 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1199 | ac_prev=psdir ;; |
| 1200 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1201 | psdir=$ac_optarg ;; |
| 1202 | |
| 1203 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1204 | | -silent | --silent | --silen | --sile | --sil) |
| 1205 | silent=yes ;; |
| 1206 | |
| 1207 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1208 | ac_prev=sbindir ;; |
| 1209 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1210 | | --sbi=* | --sb=*) |
| 1211 | sbindir=$ac_optarg ;; |
| 1212 | |
| 1213 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1214 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1215 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1216 | | --sha | --sh) |
| 1217 | ac_prev=sharedstatedir ;; |
| 1218 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1219 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1220 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1221 | | --sha=* | --sh=*) |
| 1222 | sharedstatedir=$ac_optarg ;; |
| 1223 | |
| 1224 | -site | --site | --sit) |
| 1225 | ac_prev=site ;; |
| 1226 | -site=* | --site=* | --sit=*) |
| 1227 | site=$ac_optarg ;; |
| 1228 | |
| 1229 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1230 | ac_prev=srcdir ;; |
| 1231 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1232 | srcdir=$ac_optarg ;; |
| 1233 | |
| 1234 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1235 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1236 | ac_prev=sysconfdir ;; |
| 1237 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1238 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1239 | sysconfdir=$ac_optarg ;; |
| 1240 | |
| 1241 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1242 | ac_prev=target_alias ;; |
| 1243 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1244 | target_alias=$ac_optarg ;; |
| 1245 | |
| 1246 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1247 | verbose=yes ;; |
| 1248 | |
| 1249 | -version | --version | --versio | --versi | --vers | -V) |
| 1250 | ac_init_version=: ;; |
| 1251 | |
| 1252 | -with-* | --with-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1253 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1254 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1255 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1256 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1257 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1258 | ac_useropt_orig=$ac_useropt |
| 1259 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1260 | case $ac_user_opts in |
| 1261 | *" |
| 1262 | "with_$ac_useropt" |
| 1263 | "*) ;; |
| 1264 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1265 | ac_unrecognized_sep=', ';; |
| 1266 | esac |
| 1267 | eval with_$ac_useropt=\$ac_optarg ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1268 | |
| 1269 | -without-* | --without-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1270 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1271 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1272 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1273 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1274 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1275 | ac_useropt_orig=$ac_useropt |
| 1276 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1277 | case $ac_user_opts in |
| 1278 | *" |
| 1279 | "with_$ac_useropt" |
| 1280 | "*) ;; |
| 1281 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1282 | ac_unrecognized_sep=', ';; |
| 1283 | esac |
| 1284 | eval with_$ac_useropt=no ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1285 | |
| 1286 | --x) |
| 1287 | # Obsolete; use --with-x. |
| 1288 | with_x=yes ;; |
| 1289 | |
| 1290 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1291 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1292 | ac_prev=x_includes ;; |
| 1293 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1294 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1295 | x_includes=$ac_optarg ;; |
| 1296 | |
| 1297 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1298 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1299 | ac_prev=x_libraries ;; |
| 1300 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1301 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1302 | x_libraries=$ac_optarg ;; |
| 1303 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1304 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
| 1305 | Try \`$0 --help' for more information." >&2 |
| 1306 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1307 | ;; |
| 1308 | |
| 1309 | *=*) |
| 1310 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1311 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1312 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1313 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1314 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1315 | eval $ac_envvar=\$ac_optarg |
| 1316 | export $ac_envvar ;; |
| 1317 | |
| 1318 | *) |
| 1319 | # FIXME: should be removed in autoconf 3.0. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1320 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1321 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1322 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1323 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1324 | ;; |
| 1325 | |
| 1326 | esac |
| 1327 | done |
| 1328 | |
| 1329 | if test -n "$ac_prev"; then |
| 1330 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1331 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1332 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1333 | fi |
| 1334 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1335 | if test -n "$ac_unrecognized_opts"; then |
| 1336 | case $enable_option_checking in |
| 1337 | no) ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1338 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1339 | { (exit 1); exit 1; }; } ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1340 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1341 | esac |
| 1342 | fi |
| 1343 | |
| 1344 | # Check all directory arguments for consistency. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1345 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1346 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1347 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1348 | libdir localedir mandir |
| 1349 | do |
| 1350 | eval ac_val=\$$ac_var |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1351 | # Remove trailing slashes. |
| 1352 | case $ac_val in |
| 1353 | */ ) |
| 1354 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1355 | eval $ac_var=\$ac_val;; |
| 1356 | esac |
| 1357 | # Be sure to have absolute directory names. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1358 | case $ac_val in |
| 1359 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1360 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1361 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1362 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1363 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1364 | done |
| 1365 | |
| 1366 | # There might be people who depend on the old broken behavior: `$host' |
| 1367 | # used to hold the argument of --host etc. |
| 1368 | # FIXME: To remove some day. |
| 1369 | build=$build_alias |
| 1370 | host=$host_alias |
| 1371 | target=$target_alias |
| 1372 | |
| 1373 | # FIXME: To remove some day. |
| 1374 | if test "x$host_alias" != x; then |
| 1375 | if test "x$build_alias" = x; then |
| 1376 | cross_compiling=maybe |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1377 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1378 | If a cross compiler is detected then cross compile mode will be used." >&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1379 | elif test "x$build_alias" != "x$host_alias"; then |
| 1380 | cross_compiling=yes |
| 1381 | fi |
| 1382 | fi |
| 1383 | |
| 1384 | ac_tool_prefix= |
| 1385 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1386 | |
| 1387 | test "$silent" = yes && exec 6>/dev/null |
| 1388 | |
| 1389 | |
| 1390 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1391 | ac_ls_di=`ls -di .` && |
| 1392 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1393 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
| 1394 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1395 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1396 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1397 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1398 | |
| 1399 | |
| 1400 | # Find the source files, if location was not specified. |
| 1401 | if test -z "$srcdir"; then |
| 1402 | ac_srcdir_defaulted=yes |
| 1403 | # Try the directory containing this script, then the parent directory. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1404 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1405 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1406 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1407 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1408 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1409 | $as_echo X"$as_myself" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1411 | s//\1/ |
| 1412 | q |
| 1413 | } |
| 1414 | /^X\(\/\/\)[^/].*/{ |
| 1415 | s//\1/ |
| 1416 | q |
| 1417 | } |
| 1418 | /^X\(\/\/\)$/{ |
| 1419 | s//\1/ |
| 1420 | q |
| 1421 | } |
| 1422 | /^X\(\/\).*/{ |
| 1423 | s//\1/ |
| 1424 | q |
| 1425 | } |
| 1426 | s/.*/./; q'` |
| 1427 | srcdir=$ac_confdir |
| 1428 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1429 | srcdir=.. |
| 1430 | fi |
| 1431 | else |
| 1432 | ac_srcdir_defaulted=no |
| 1433 | fi |
| 1434 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1435 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1436 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1437 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1438 | fi |
| 1439 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1440 | ac_abs_confdir=`( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1441 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
| 1442 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1443 | pwd)` |
| 1444 | # When building in place, set srcdir=. |
| 1445 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1446 | srcdir=. |
| 1447 | fi |
| 1448 | # Remove unnecessary trailing slashes from srcdir. |
| 1449 | # Double slashes in file names in object file debugging info |
| 1450 | # mess up M-x gdb in Emacs. |
| 1451 | case $srcdir in |
| 1452 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1453 | esac |
| 1454 | for ac_var in $ac_precious_vars; do |
| 1455 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1456 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1457 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1458 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1459 | done |
| 1460 | |
| 1461 | # |
| 1462 | # Report the --help message. |
| 1463 | # |
| 1464 | if test "$ac_init_help" = "long"; then |
| 1465 | # Omit some internal or obsolete options to make the list less imposing. |
| 1466 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1467 | cat <<_ACEOF |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1468 | \`configure' configures iperf 3.0.1 to adapt to many kinds of systems. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1469 | |
| 1470 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1471 | |
| 1472 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1473 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1474 | |
| 1475 | Defaults for the options are specified in brackets. |
| 1476 | |
| 1477 | Configuration: |
| 1478 | -h, --help display this help and exit |
| 1479 | --help=short display options specific to this package |
| 1480 | --help=recursive display the short help of all the included packages |
| 1481 | -V, --version display version information and exit |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1482 | -q, --quiet, --silent do not print \`checking...' messages |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1483 | --cache-file=FILE cache test results in FILE [disabled] |
| 1484 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1485 | -n, --no-create do not create output files |
| 1486 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1487 | |
| 1488 | Installation directories: |
| 1489 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1490 | [$ac_default_prefix] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1491 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1492 | [PREFIX] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1493 | |
| 1494 | By default, \`make install' will install all the files in |
| 1495 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1496 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1497 | for instance \`--prefix=\$HOME'. |
| 1498 | |
| 1499 | For better control, use the options below. |
| 1500 | |
| 1501 | Fine tuning of the installation directories: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1502 | --bindir=DIR user executables [EPREFIX/bin] |
| 1503 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1504 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1505 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1506 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1507 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1508 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1509 | --includedir=DIR C header files [PREFIX/include] |
| 1510 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1511 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1512 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1513 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1514 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1515 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1516 | --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] |
| 1517 | --htmldir=DIR html documentation [DOCDIR] |
| 1518 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1519 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1520 | --psdir=DIR ps documentation [DOCDIR] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1521 | _ACEOF |
| 1522 | |
| 1523 | cat <<\_ACEOF |
| 1524 | |
| 1525 | Program names: |
| 1526 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1527 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1528 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1529 | |
| 1530 | System types: |
| 1531 | --build=BUILD configure for building on BUILD [guessed] |
| 1532 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1533 | _ACEOF |
| 1534 | fi |
| 1535 | |
| 1536 | if test -n "$ac_init_help"; then |
| 1537 | case $ac_init_help in |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1538 | short | recursive ) echo "Configuration of iperf 3.0.1:";; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1539 | esac |
| 1540 | cat <<\_ACEOF |
| 1541 | |
| 1542 | Optional Features: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1543 | --disable-option-checking ignore unrecognized --enable/--with options |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1544 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1545 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1546 | --disable-dependency-tracking speeds up one-time build |
| 1547 | --enable-dependency-tracking do not reject slow dependency extractors |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1548 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1549 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1550 | --enable-fast-install[=PKGS] |
| 1551 | optimize for fast installation [default=yes] |
| 1552 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1553 | |
| 1554 | Optional Packages: |
| 1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1557 | --with-pic try to use only PIC/non-PIC objects [default=use |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1558 | both] |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 1559 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1560 | |
| 1561 | Some influential environment variables: |
| 1562 | CC C compiler command |
| 1563 | CFLAGS C compiler flags |
| 1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1565 | nonstandard directory <lib dir> |
| 1566 | LIBS libraries to pass to the linker, e.g. -l<library> |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1567 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1568 | you have headers in a nonstandard directory <include dir> |
| 1569 | CPP C preprocessor |
| 1570 | |
| 1571 | Use these variables to override the choices made by `configure' or to help |
| 1572 | it to find libraries and programs with nonstandard names/locations. |
| 1573 | |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1574 | Report bugs to <https://github.com/esnet/iperf>. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1575 | _ACEOF |
| 1576 | ac_status=$? |
| 1577 | fi |
| 1578 | |
| 1579 | if test "$ac_init_help" = "recursive"; then |
| 1580 | # If there are subdirs, report their specific --help. |
| 1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1582 | test -d "$ac_dir" || |
| 1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1584 | continue |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1585 | ac_builddir=. |
| 1586 | |
| 1587 | case "$ac_dir" in |
| 1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1589 | *) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1591 | # A ".." for each directory in $ac_dir_suffix. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1593 | case $ac_top_builddir_sub in |
| 1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1596 | esac ;; |
| 1597 | esac |
| 1598 | ac_abs_top_builddir=$ac_pwd |
| 1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1600 | # for backward compatibility: |
| 1601 | ac_top_builddir=$ac_top_build_prefix |
| 1602 | |
| 1603 | case $srcdir in |
| 1604 | .) # We are building in place. |
| 1605 | ac_srcdir=. |
| 1606 | ac_top_srcdir=$ac_top_builddir_sub |
| 1607 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1608 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1609 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1610 | ac_top_srcdir=$srcdir |
| 1611 | ac_abs_top_srcdir=$srcdir ;; |
| 1612 | *) # Relative name. |
| 1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1616 | esac |
| 1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1618 | |
| 1619 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1620 | # Check for guested configure. |
| 1621 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1622 | echo && |
| 1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1624 | elif test -f "$ac_srcdir/configure"; then |
| 1625 | echo && |
| 1626 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1627 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1629 | fi || ac_status=$? |
| 1630 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1631 | done |
| 1632 | fi |
| 1633 | |
| 1634 | test -n "$ac_init_help" && exit $ac_status |
| 1635 | if $ac_init_version; then |
| 1636 | cat <<\_ACEOF |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1637 | iperf configure 3.0.1 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1638 | generated by GNU Autoconf 2.63 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1639 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1640 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1641 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1642 | This configure script is free software; the Free Software Foundation |
| 1643 | gives unlimited permission to copy, distribute and modify it. |
| 1644 | _ACEOF |
| 1645 | exit |
| 1646 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1647 | cat >config.log <<_ACEOF |
| 1648 | This file contains any messages produced by compilers while |
| 1649 | running configure, to aid debugging if configure makes a mistake. |
| 1650 | |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1651 | It was created by iperf $as_me 3.0.1, which was |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1652 | generated by GNU Autoconf 2.63. Invocation command line was |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1653 | |
| 1654 | $ $0 $@ |
| 1655 | |
| 1656 | _ACEOF |
| 1657 | exec 5>>config.log |
| 1658 | { |
| 1659 | cat <<_ASUNAME |
| 1660 | ## --------- ## |
| 1661 | ## Platform. ## |
| 1662 | ## --------- ## |
| 1663 | |
| 1664 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1665 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1666 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1667 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1668 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1669 | |
| 1670 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1671 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1672 | |
| 1673 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1674 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1675 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1676 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1677 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1678 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1679 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1680 | |
| 1681 | _ASUNAME |
| 1682 | |
| 1683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1684 | for as_dir in $PATH |
| 1685 | do |
| 1686 | IFS=$as_save_IFS |
| 1687 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1688 | $as_echo "PATH: $as_dir" |
| 1689 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1690 | IFS=$as_save_IFS |
| 1691 | |
| 1692 | } >&5 |
| 1693 | |
| 1694 | cat >&5 <<_ACEOF |
| 1695 | |
| 1696 | |
| 1697 | ## ----------- ## |
| 1698 | ## Core tests. ## |
| 1699 | ## ----------- ## |
| 1700 | |
| 1701 | _ACEOF |
| 1702 | |
| 1703 | |
| 1704 | # Keep a trace of the command line. |
| 1705 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1706 | # Strip out --silent because we don't want to record it for future runs. |
| 1707 | # Also quote any args containing shell meta-characters. |
| 1708 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1709 | ac_configure_args= |
| 1710 | ac_configure_args0= |
| 1711 | ac_configure_args1= |
| 1712 | ac_must_keep_next=false |
| 1713 | for ac_pass in 1 2 |
| 1714 | do |
| 1715 | for ac_arg |
| 1716 | do |
| 1717 | case $ac_arg in |
| 1718 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1719 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1720 | | -silent | --silent | --silen | --sile | --sil) |
| 1721 | continue ;; |
| 1722 | *\'*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1723 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1724 | esac |
| 1725 | case $ac_pass in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1726 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1727 | 2) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1728 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1729 | if test $ac_must_keep_next = true; then |
| 1730 | ac_must_keep_next=false # Got value, back to normal. |
| 1731 | else |
| 1732 | case $ac_arg in |
| 1733 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1734 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1735 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1736 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1737 | case "$ac_configure_args0 " in |
| 1738 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1739 | esac |
| 1740 | ;; |
| 1741 | -* ) ac_must_keep_next=true ;; |
| 1742 | esac |
| 1743 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1744 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1745 | ;; |
| 1746 | esac |
| 1747 | done |
| 1748 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1749 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1750 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1751 | |
| 1752 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1753 | # config.log. We remove comments because anyway the quotes in there |
| 1754 | # would cause problems or look ugly. |
| 1755 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1756 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1757 | trap 'exit_status=$? |
| 1758 | # Save into config.log some information that might help in debugging. |
| 1759 | { |
| 1760 | echo |
| 1761 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1762 | cat <<\_ASBOX |
| 1763 | ## ---------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1764 | ## Cache variables. ## |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1765 | ## ---------------- ## |
| 1766 | _ASBOX |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1767 | echo |
| 1768 | # The following way of writing the cache mishandles newlines in values, |
| 1769 | ( |
| 1770 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1771 | eval ac_val=\$$ac_var |
| 1772 | case $ac_val in #( |
| 1773 | *${as_nl}*) |
| 1774 | case $ac_var in #( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1775 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1776 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1777 | esac |
| 1778 | case $ac_var in #( |
| 1779 | _ | IFS | as_nl) ;; #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1780 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1781 | *) $as_unset $ac_var ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1782 | esac ;; |
| 1783 | esac |
| 1784 | done |
| 1785 | (set) 2>&1 | |
| 1786 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1787 | *${as_nl}ac_space=\ *) |
| 1788 | sed -n \ |
| 1789 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1790 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1791 | ;; #( |
| 1792 | *) |
| 1793 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1794 | ;; |
| 1795 | esac | |
| 1796 | sort |
| 1797 | ) |
| 1798 | echo |
| 1799 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1800 | cat <<\_ASBOX |
| 1801 | ## ----------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1802 | ## Output variables. ## |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1803 | ## ----------------- ## |
| 1804 | _ASBOX |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1805 | echo |
| 1806 | for ac_var in $ac_subst_vars |
| 1807 | do |
| 1808 | eval ac_val=\$$ac_var |
| 1809 | case $ac_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1810 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1811 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1812 | $as_echo "$ac_var='\''$ac_val'\''" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1813 | done | sort |
| 1814 | echo |
| 1815 | |
| 1816 | if test -n "$ac_subst_files"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1817 | cat <<\_ASBOX |
| 1818 | ## ------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1819 | ## File substitutions. ## |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1820 | ## ------------------- ## |
| 1821 | _ASBOX |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1822 | echo |
| 1823 | for ac_var in $ac_subst_files |
| 1824 | do |
| 1825 | eval ac_val=\$$ac_var |
| 1826 | case $ac_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1827 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1828 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1829 | $as_echo "$ac_var='\''$ac_val'\''" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1830 | done | sort |
| 1831 | echo |
| 1832 | fi |
| 1833 | |
| 1834 | if test -s confdefs.h; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1835 | cat <<\_ASBOX |
| 1836 | ## ----------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1837 | ## confdefs.h. ## |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1838 | ## ----------- ## |
| 1839 | _ASBOX |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1840 | echo |
| 1841 | cat confdefs.h |
| 1842 | echo |
| 1843 | fi |
| 1844 | test "$ac_signal" != 0 && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1845 | $as_echo "$as_me: caught signal $ac_signal" |
| 1846 | $as_echo "$as_me: exit $exit_status" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1847 | } >&5 |
| 1848 | rm -f core *.core core.conftest.* && |
| 1849 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1850 | exit $exit_status |
| 1851 | ' 0 |
| 1852 | for ac_signal in 1 2 13 15; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1853 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1854 | done |
| 1855 | ac_signal=0 |
| 1856 | |
| 1857 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1858 | rm -f -r conftest* confdefs.h |
| 1859 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1860 | # Predefined preprocessor variables. |
| 1861 | |
| 1862 | cat >>confdefs.h <<_ACEOF |
| 1863 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1864 | _ACEOF |
| 1865 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1866 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1867 | cat >>confdefs.h <<_ACEOF |
| 1868 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1869 | _ACEOF |
| 1870 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1871 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1872 | cat >>confdefs.h <<_ACEOF |
| 1873 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1874 | _ACEOF |
| 1875 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1876 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1877 | cat >>confdefs.h <<_ACEOF |
| 1878 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1879 | _ACEOF |
| 1880 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1881 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 1882 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1883 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 1884 | _ACEOF |
| 1885 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1886 | |
| 1887 | # Let the site file select an alternate cache file if it wants to. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1888 | # Prefer an explicitly selected file to automatically selected ones. |
| 1889 | ac_site_file1=NONE |
| 1890 | ac_site_file2=NONE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1891 | if test -n "$CONFIG_SITE"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1892 | ac_site_file1=$CONFIG_SITE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1893 | elif test "x$prefix" != xNONE; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1894 | ac_site_file1=$prefix/share/config.site |
| 1895 | ac_site_file2=$prefix/etc/config.site |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1896 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1897 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1898 | ac_site_file2=$ac_default_prefix/etc/config.site |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1899 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1900 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1901 | do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1902 | test "x$ac_site_file" = xNONE && continue |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1903 | if test -r "$ac_site_file"; then |
| 1904 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1905 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1906 | sed 's/^/| /' "$ac_site_file" >&5 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1907 | . "$ac_site_file" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1908 | fi |
| 1909 | done |
| 1910 | |
| 1911 | if test -r "$cache_file"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1912 | # Some versions of bash will fail to source /dev/null (special |
| 1913 | # files actually), so we avoid doing that. |
| 1914 | if test -f "$cache_file"; then |
| 1915 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1916 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1917 | case $cache_file in |
| 1918 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1919 | *) . "./$cache_file";; |
| 1920 | esac |
| 1921 | fi |
| 1922 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1923 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1924 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1925 | >$cache_file |
| 1926 | fi |
| 1927 | |
| 1928 | # Check that the precious variables saved in the cache have kept the same |
| 1929 | # value. |
| 1930 | ac_cache_corrupted=false |
| 1931 | for ac_var in $ac_precious_vars; do |
| 1932 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1933 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1934 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1935 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1936 | case $ac_old_set,$ac_new_set in |
| 1937 | set,) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1938 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1939 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1940 | ac_cache_corrupted=: ;; |
| 1941 | ,set) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1942 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1943 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1944 | ac_cache_corrupted=: ;; |
| 1945 | ,);; |
| 1946 | *) |
| 1947 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1948 | # differences in whitespace do not lead to failure. |
| 1949 | ac_old_val_w=`echo x $ac_old_val` |
| 1950 | ac_new_val_w=`echo x $ac_new_val` |
| 1951 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1952 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1953 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1954 | ac_cache_corrupted=: |
| 1955 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1956 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1957 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1958 | eval $ac_var=\$ac_old_val |
| 1959 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1960 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1961 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1962 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1963 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1964 | fi;; |
| 1965 | esac |
| 1966 | # Pass precious variables to config.status. |
| 1967 | if test "$ac_new_set" = set; then |
| 1968 | case $ac_new_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1969 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1970 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1971 | esac |
| 1972 | case " $ac_configure_args " in |
| 1973 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1974 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1975 | esac |
| 1976 | fi |
| 1977 | done |
| 1978 | if $ac_cache_corrupted; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1979 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1981 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1982 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1983 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1984 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1985 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1986 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
| 1995 | |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2011 | |
| 2012 | ac_ext=c |
| 2013 | ac_cpp='$CPP $CPPFLAGS' |
| 2014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | # Specify where the auxiliary files created by configure should go. The config |
| 2021 | # directory is picked so that they don't clutter up more useful directories. |
| 2022 | ac_aux_dir= |
| 2023 | for ac_dir in config "$srcdir"/config; do |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 2024 | if test -f "$ac_dir/install-sh"; then |
| 2025 | ac_aux_dir=$ac_dir |
| 2026 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2027 | break |
| 2028 | elif test -f "$ac_dir/install.sh"; then |
| 2029 | ac_aux_dir=$ac_dir |
| 2030 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2031 | break |
| 2032 | elif test -f "$ac_dir/shtool"; then |
| 2033 | ac_aux_dir=$ac_dir |
| 2034 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2035 | break |
| 2036 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2037 | done |
| 2038 | if test -z "$ac_aux_dir"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2039 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 2040 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
| 2041 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2042 | fi |
| 2043 | |
| 2044 | # These three variables are undocumented and unsupported, |
| 2045 | # and are intended to be withdrawn in a future Autoconf release. |
| 2046 | # They can cause serious problems if a builder's source tree is in a directory |
| 2047 | # whose full name contains unusual characters. |
| 2048 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2049 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2050 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
| 2055 | # Initialize the automake system |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2056 | am__api_version='1.11' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2057 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2058 | # Find a good install program. We prefer a C program (faster), |
| 2059 | # so one script is as good as another. But avoid the broken or |
| 2060 | # incompatible versions: |
| 2061 | # SysV /etc/install, /usr/sbin/install |
| 2062 | # SunOS /usr/etc/install |
| 2063 | # IRIX /sbin/install |
| 2064 | # AIX /bin/install |
| 2065 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2066 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2067 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2068 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2069 | # OS/2's system install, which has a completely different semantic |
| 2070 | # ./install, which can be erroneously created by make from ./install.sh. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2071 | # Reject install programs that cannot install multiple files. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2072 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2073 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2074 | if test -z "$INSTALL"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2075 | if test "${ac_cv_path_install+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2076 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2077 | else |
| 2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2079 | for as_dir in $PATH |
| 2080 | do |
| 2081 | IFS=$as_save_IFS |
| 2082 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2083 | # Account for people who put trailing slashes in PATH elements. |
| 2084 | case $as_dir/ in |
| 2085 | ./ | .// | /cC/* | \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2086 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2087 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2088 | /usr/ucb/* ) ;; |
| 2089 | *) |
| 2090 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2091 | # Don't use installbsd from OSF since it installs stuff as root |
| 2092 | # by default. |
| 2093 | for ac_prog in ginstall scoinst install; do |
| 2094 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2095 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2096 | if test $ac_prog = install && |
| 2097 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2098 | # AIX install. It has an incompatible calling convention. |
| 2099 | : |
| 2100 | elif test $ac_prog = install && |
| 2101 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2102 | # program-specific install script used by HP pwplus--don't use. |
| 2103 | : |
| 2104 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2105 | rm -rf conftest.one conftest.two conftest.dir |
| 2106 | echo one > conftest.one |
| 2107 | echo two > conftest.two |
| 2108 | mkdir conftest.dir |
| 2109 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2110 | test -s conftest.one && test -s conftest.two && |
| 2111 | test -s conftest.dir/conftest.one && |
| 2112 | test -s conftest.dir/conftest.two |
| 2113 | then |
| 2114 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2115 | break 3 |
| 2116 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2117 | fi |
| 2118 | fi |
| 2119 | done |
| 2120 | done |
| 2121 | ;; |
| 2122 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2123 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2124 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2125 | IFS=$as_save_IFS |
| 2126 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2127 | rm -rf conftest.one conftest.two conftest.dir |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2128 | |
| 2129 | fi |
| 2130 | if test "${ac_cv_path_install+set}" = set; then |
| 2131 | INSTALL=$ac_cv_path_install |
| 2132 | else |
| 2133 | # As a last resort, use the slow shell script. Don't cache a |
| 2134 | # value for INSTALL within a source directory, because that will |
| 2135 | # break other packages using the cache if that directory is |
| 2136 | # removed, or if the value is a relative name. |
| 2137 | INSTALL=$ac_install_sh |
| 2138 | fi |
| 2139 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2140 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2141 | $as_echo "$INSTALL" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2142 | |
| 2143 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2144 | # It thinks the first close brace ends the variable substitution. |
| 2145 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2146 | |
| 2147 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2148 | |
| 2149 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2150 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2151 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2152 | $as_echo_n "checking whether build environment is sane... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2153 | # Just in case |
| 2154 | sleep 1 |
| 2155 | echo timestamp > conftest.file |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2156 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2157 | # name. Accept space and tab only in the latter. |
| 2158 | am_lf=' |
| 2159 | ' |
| 2160 | case `pwd` in |
| 2161 | *[\\\"\#\$\&\'\`$am_lf]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2162 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 |
| 2163 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} |
| 2164 | { (exit 1); exit 1; }; };; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2165 | esac |
| 2166 | case $srcdir in |
| 2167 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2168 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 |
| 2169 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} |
| 2170 | { (exit 1); exit 1; }; };; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2171 | esac |
| 2172 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2173 | # Do `set' in a subshell so we don't clobber the current shell's |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2174 | # arguments. Must try -L first in case configure is actually a |
| 2175 | # symlink; some systems play weird games with the mod time of symlinks |
| 2176 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2177 | # directory). |
| 2178 | if ( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2179 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2180 | if test "$*" = "X"; then |
| 2181 | # -L didn't work. |
| 2182 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2183 | fi |
| 2184 | rm -f conftest.file |
| 2185 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2186 | && test "$*" != "X conftest.file $srcdir/configure"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2187 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2188 | # If neither matched, then we have a broken ls. This can happen |
| 2189 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2190 | # broken ls alias from the environment. This has actually |
| 2191 | # happened. Such a system could not be considered "sane". |
| 2192 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2193 | alias in your environment" >&5 |
| 2194 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2195 | alias in your environment" >&2;} |
| 2196 | { (exit 1); exit 1; }; } |
| 2197 | fi |
| 2198 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2199 | test "$2" = conftest.file |
| 2200 | ) |
| 2201 | then |
| 2202 | # Ok. |
| 2203 | : |
| 2204 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2205 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2206 | Check your system clock" >&5 |
| 2207 | $as_echo "$as_me: error: newly created file is older than distributed files! |
| 2208 | Check your system clock" >&2;} |
| 2209 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2210 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2211 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2212 | $as_echo "yes" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2213 | test "$program_prefix" != NONE && |
| 2214 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2215 | # Use a double $ so make ignores it. |
| 2216 | test "$program_suffix" != NONE && |
| 2217 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2218 | # Double any \ or $. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2219 | # By default was `s,x,x', remove it if useless. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2220 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2221 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2222 | |
| 2223 | # expand $ac_aux_dir to an absolute path |
| 2224 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2225 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2226 | if test x"${MISSING+set}" != xset; then |
| 2227 | case $am_aux_dir in |
| 2228 | *\ * | *\ *) |
| 2229 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2230 | *) |
| 2231 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2232 | esac |
| 2233 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2234 | # Use eval to expand $SHELL |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2235 | if eval "$MISSING --run true"; then |
| 2236 | am_missing_run="$MISSING --run " |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2237 | else |
| 2238 | am_missing_run= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2239 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2240 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2241 | fi |
| 2242 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2243 | if test x"${install_sh}" != xset; then |
| 2244 | case $am_aux_dir in |
| 2245 | *\ * | *\ *) |
| 2246 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2247 | *) |
| 2248 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2249 | esac |
| 2250 | fi |
| 2251 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2252 | # Installed binaries are usually stripped using `strip' when the user |
| 2253 | # run `make install-strip'. However `strip' might not be the right |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2254 | # tool to use in cross-compilation environments, therefore Automake |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2255 | # will honor the `STRIP' environment variable to overrule this program. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2256 | if test "$cross_compiling" != no; then |
| 2257 | if test -n "$ac_tool_prefix"; then |
| 2258 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2259 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2260 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2261 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2262 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2263 | $as_echo_n "(cached) " >&6 |
| 2264 | else |
| 2265 | if test -n "$STRIP"; then |
| 2266 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2267 | else |
| 2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2269 | for as_dir in $PATH |
| 2270 | do |
| 2271 | IFS=$as_save_IFS |
| 2272 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2275 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2276 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2277 | break 2 |
| 2278 | fi |
| 2279 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2280 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2281 | IFS=$as_save_IFS |
| 2282 | |
| 2283 | fi |
| 2284 | fi |
| 2285 | STRIP=$ac_cv_prog_STRIP |
| 2286 | if test -n "$STRIP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2287 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2288 | $as_echo "$STRIP" >&6; } |
| 2289 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2290 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2291 | $as_echo "no" >&6; } |
| 2292 | fi |
| 2293 | |
| 2294 | |
| 2295 | fi |
| 2296 | if test -z "$ac_cv_prog_STRIP"; then |
| 2297 | ac_ct_STRIP=$STRIP |
| 2298 | # Extract the first word of "strip", so it can be a program name with args. |
| 2299 | set dummy strip; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2300 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2301 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2302 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2303 | $as_echo_n "(cached) " >&6 |
| 2304 | else |
| 2305 | if test -n "$ac_ct_STRIP"; then |
| 2306 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2307 | else |
| 2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2309 | for as_dir in $PATH |
| 2310 | do |
| 2311 | IFS=$as_save_IFS |
| 2312 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2315 | ac_cv_prog_ac_ct_STRIP="strip" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2316 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2317 | break 2 |
| 2318 | fi |
| 2319 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2320 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2321 | IFS=$as_save_IFS |
| 2322 | |
| 2323 | fi |
| 2324 | fi |
| 2325 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2326 | if test -n "$ac_ct_STRIP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2327 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2328 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2329 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2330 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2331 | $as_echo "no" >&6; } |
| 2332 | fi |
| 2333 | |
| 2334 | if test "x$ac_ct_STRIP" = x; then |
| 2335 | STRIP=":" |
| 2336 | else |
| 2337 | case $cross_compiling:$ac_tool_warned in |
| 2338 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2339 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2341 | ac_tool_warned=yes ;; |
| 2342 | esac |
| 2343 | STRIP=$ac_ct_STRIP |
| 2344 | fi |
| 2345 | else |
| 2346 | STRIP="$ac_cv_prog_STRIP" |
| 2347 | fi |
| 2348 | |
| 2349 | fi |
| 2350 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2351 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2352 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2353 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2354 | if test -z "$MKDIR_P"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2355 | if test "${ac_cv_path_mkdir+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2356 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2357 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2359 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2360 | do |
| 2361 | IFS=$as_save_IFS |
| 2362 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2363 | for ac_prog in mkdir gmkdir; do |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2365 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2366 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2367 | 'mkdir (GNU coreutils) '* | \ |
| 2368 | 'mkdir (coreutils) '* | \ |
| 2369 | 'mkdir (fileutils) '4.1*) |
| 2370 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2371 | break 3;; |
| 2372 | esac |
| 2373 | done |
| 2374 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2375 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2376 | IFS=$as_save_IFS |
| 2377 | |
| 2378 | fi |
| 2379 | |
| 2380 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2381 | MKDIR_P="$ac_cv_path_mkdir -p" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2382 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2383 | # As a last resort, use the slow shell script. Don't cache a |
| 2384 | # value for MKDIR_P within a source directory, because that will |
| 2385 | # break other packages using the cache if that directory is |
| 2386 | # removed, or if the value is a relative name. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2387 | test -d ./--version && rmdir ./--version |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2388 | MKDIR_P="$ac_install_sh -d" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2389 | fi |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 2390 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2391 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2392 | $as_echo "$MKDIR_P" >&6; } |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 2393 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2394 | mkdir_p="$MKDIR_P" |
| 2395 | case $mkdir_p in |
| 2396 | [\\/$]* | ?:[\\/]*) ;; |
| 2397 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2398 | esac |
| 2399 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2400 | for ac_prog in gawk mawk nawk awk |
| 2401 | do |
| 2402 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2403 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2404 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2405 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2406 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2407 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2408 | else |
| 2409 | if test -n "$AWK"; then |
| 2410 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2411 | else |
| 2412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2413 | for as_dir in $PATH |
| 2414 | do |
| 2415 | IFS=$as_save_IFS |
| 2416 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2419 | ac_cv_prog_AWK="$ac_prog" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2420 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2421 | break 2 |
| 2422 | fi |
| 2423 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2424 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2425 | IFS=$as_save_IFS |
| 2426 | |
| 2427 | fi |
| 2428 | fi |
| 2429 | AWK=$ac_cv_prog_AWK |
| 2430 | if test -n "$AWK"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2431 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2432 | $as_echo "$AWK" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2433 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2434 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2435 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2436 | fi |
| 2437 | |
| 2438 | |
| 2439 | test -n "$AWK" && break |
| 2440 | done |
| 2441 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2442 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2443 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2444 | set x ${MAKE-make} |
| 2445 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2446 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2447 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2448 | else |
| 2449 | cat >conftest.make <<\_ACEOF |
| 2450 | SHELL = /bin/sh |
| 2451 | all: |
| 2452 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2453 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2454 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2455 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2456 | *@@@%%%=?*=@@@%%%*) |
| 2457 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2458 | *) |
| 2459 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2460 | esac |
| 2461 | rm -f conftest.make |
| 2462 | fi |
| 2463 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2464 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2465 | $as_echo "yes" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2466 | SET_MAKE= |
| 2467 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2468 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2469 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2470 | SET_MAKE="MAKE=${MAKE-make}" |
| 2471 | fi |
| 2472 | |
| 2473 | rm -rf .tst 2>/dev/null |
| 2474 | mkdir .tst 2>/dev/null |
| 2475 | if test -d .tst; then |
| 2476 | am__leading_dot=. |
| 2477 | else |
| 2478 | am__leading_dot=_ |
| 2479 | fi |
| 2480 | rmdir .tst 2>/dev/null |
| 2481 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2482 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2483 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2484 | # is not polluted with repeated "-I." |
| 2485 | am__isrc=' -I$(srcdir)' |
| 2486 | # test to see if srcdir already configured |
| 2487 | if test -f $srcdir/config.status; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2488 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2489 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2490 | { (exit 1); exit 1; }; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2491 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2492 | fi |
| 2493 | |
| 2494 | # test whether we have cygpath |
| 2495 | if test -z "$CYGPATH_W"; then |
| 2496 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2497 | CYGPATH_W='cygpath -w' |
| 2498 | else |
| 2499 | CYGPATH_W=echo |
| 2500 | fi |
| 2501 | fi |
| 2502 | |
| 2503 | |
| 2504 | # Define the identity of the package. |
| 2505 | PACKAGE='iperf' |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 2506 | VERSION='3.0.1' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2507 | |
| 2508 | |
| 2509 | cat >>confdefs.h <<_ACEOF |
| 2510 | #define PACKAGE "$PACKAGE" |
| 2511 | _ACEOF |
| 2512 | |
| 2513 | |
| 2514 | cat >>confdefs.h <<_ACEOF |
| 2515 | #define VERSION "$VERSION" |
| 2516 | _ACEOF |
| 2517 | |
| 2518 | # Some tools Automake needs. |
| 2519 | |
| 2520 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2521 | |
| 2522 | |
| 2523 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2524 | |
| 2525 | |
| 2526 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2527 | |
| 2528 | |
| 2529 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2530 | |
| 2531 | |
| 2532 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2533 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2534 | # We need awk for the "check" target. The system "awk" is bad on |
| 2535 | # some platforms. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2536 | # Always define AMTAR for backward compatibility. |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2537 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2538 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2539 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2540 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2541 | |
| 2542 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2543 | |
| 2544 | |
| 2545 | |
| 2546 | |
Bruce A. Mah | a57bcc2 | 2014-04-14 13:37:47 -0700 | [diff] [blame^] | 2547 | ac_config_headers="$ac_config_headers src/iperf_config.h" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2548 | |
| 2549 | |
| 2550 | # Make sure we can run config.sub. |
| 2551 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2552 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2553 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2554 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2555 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2556 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2557 | $as_echo_n "checking build system type... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2558 | if test "${ac_cv_build+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2559 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2560 | else |
| 2561 | ac_build_alias=$build_alias |
| 2562 | test "x$ac_build_alias" = x && |
| 2563 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2564 | test "x$ac_build_alias" = x && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2565 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2566 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2567 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2568 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2569 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2570 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2571 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2572 | |
| 2573 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2575 | $as_echo "$ac_cv_build" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2576 | case $ac_cv_build in |
| 2577 | *-*-*) ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2578 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2579 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2580 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2581 | esac |
| 2582 | build=$ac_cv_build |
| 2583 | ac_save_IFS=$IFS; IFS='-' |
| 2584 | set x $ac_cv_build |
| 2585 | shift |
| 2586 | build_cpu=$1 |
| 2587 | build_vendor=$2 |
| 2588 | shift; shift |
| 2589 | # Remember, the first character of IFS is used to create $*, |
| 2590 | # except with old shells: |
| 2591 | build_os=$* |
| 2592 | IFS=$ac_save_IFS |
| 2593 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2594 | |
| 2595 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2596 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2597 | $as_echo_n "checking host system type... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2598 | if test "${ac_cv_host+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2599 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2600 | else |
| 2601 | if test "x$host_alias" = x; then |
| 2602 | ac_cv_host=$ac_cv_build |
| 2603 | else |
| 2604 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2605 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2606 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2607 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | |
| 2610 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2611 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2612 | $as_echo "$ac_cv_host" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2613 | case $ac_cv_host in |
| 2614 | *-*-*) ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2615 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2616 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2617 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2618 | esac |
| 2619 | host=$ac_cv_host |
| 2620 | ac_save_IFS=$IFS; IFS='-' |
| 2621 | set x $ac_cv_host |
| 2622 | shift |
| 2623 | host_cpu=$1 |
| 2624 | host_vendor=$2 |
| 2625 | shift; shift |
| 2626 | # Remember, the first character of IFS is used to create $*, |
| 2627 | # except with old shells: |
| 2628 | host_os=$* |
| 2629 | IFS=$ac_save_IFS |
| 2630 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2631 | |
| 2632 | |
| 2633 | |
| 2634 | # Checks for tools: c compiler, ranlib (used for creating static libraries), |
| 2635 | # symlinks and libtool |
| 2636 | ac_ext=c |
| 2637 | ac_cpp='$CPP $CPPFLAGS' |
| 2638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2641 | if test -n "$ac_tool_prefix"; then |
| 2642 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2643 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2644 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2645 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2646 | if test "${ac_cv_prog_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2647 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2648 | else |
| 2649 | if test -n "$CC"; then |
| 2650 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2651 | else |
| 2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2653 | for as_dir in $PATH |
| 2654 | do |
| 2655 | IFS=$as_save_IFS |
| 2656 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2657 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2659 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2660 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2661 | break 2 |
| 2662 | fi |
| 2663 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2664 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2665 | IFS=$as_save_IFS |
| 2666 | |
| 2667 | fi |
| 2668 | fi |
| 2669 | CC=$ac_cv_prog_CC |
| 2670 | if test -n "$CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2671 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2672 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2673 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2675 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2676 | fi |
| 2677 | |
| 2678 | |
| 2679 | fi |
| 2680 | if test -z "$ac_cv_prog_CC"; then |
| 2681 | ac_ct_CC=$CC |
| 2682 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2683 | set dummy gcc; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2684 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2685 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2686 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2687 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2688 | else |
| 2689 | if test -n "$ac_ct_CC"; then |
| 2690 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2691 | else |
| 2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2693 | for as_dir in $PATH |
| 2694 | do |
| 2695 | IFS=$as_save_IFS |
| 2696 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2697 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2699 | ac_cv_prog_ac_ct_CC="gcc" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2700 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2701 | break 2 |
| 2702 | fi |
| 2703 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2704 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2705 | IFS=$as_save_IFS |
| 2706 | |
| 2707 | fi |
| 2708 | fi |
| 2709 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2710 | if test -n "$ac_ct_CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2711 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2712 | $as_echo "$ac_ct_CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2713 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2714 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2715 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2716 | fi |
| 2717 | |
| 2718 | if test "x$ac_ct_CC" = x; then |
| 2719 | CC="" |
| 2720 | else |
| 2721 | case $cross_compiling:$ac_tool_warned in |
| 2722 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2723 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2724 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2725 | ac_tool_warned=yes ;; |
| 2726 | esac |
| 2727 | CC=$ac_ct_CC |
| 2728 | fi |
| 2729 | else |
| 2730 | CC="$ac_cv_prog_CC" |
| 2731 | fi |
| 2732 | |
| 2733 | if test -z "$CC"; then |
| 2734 | if test -n "$ac_tool_prefix"; then |
| 2735 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2736 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2737 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2738 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2739 | if test "${ac_cv_prog_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2740 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2741 | else |
| 2742 | if test -n "$CC"; then |
| 2743 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2744 | else |
| 2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2746 | for as_dir in $PATH |
| 2747 | do |
| 2748 | IFS=$as_save_IFS |
| 2749 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2752 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2753 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2754 | break 2 |
| 2755 | fi |
| 2756 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2757 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2758 | IFS=$as_save_IFS |
| 2759 | |
| 2760 | fi |
| 2761 | fi |
| 2762 | CC=$ac_cv_prog_CC |
| 2763 | if test -n "$CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2764 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2765 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2766 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2767 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2768 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2769 | fi |
| 2770 | |
| 2771 | |
| 2772 | fi |
| 2773 | fi |
| 2774 | if test -z "$CC"; then |
| 2775 | # Extract the first word of "cc", so it can be a program name with args. |
| 2776 | set dummy cc; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2777 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2778 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2779 | if test "${ac_cv_prog_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2780 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2781 | else |
| 2782 | if test -n "$CC"; then |
| 2783 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2784 | else |
| 2785 | ac_prog_rejected=no |
| 2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2787 | for as_dir in $PATH |
| 2788 | do |
| 2789 | IFS=$as_save_IFS |
| 2790 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2793 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2794 | ac_prog_rejected=yes |
| 2795 | continue |
| 2796 | fi |
| 2797 | ac_cv_prog_CC="cc" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2798 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2799 | break 2 |
| 2800 | fi |
| 2801 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2802 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2803 | IFS=$as_save_IFS |
| 2804 | |
| 2805 | if test $ac_prog_rejected = yes; then |
| 2806 | # We found a bogon in the path, so make sure we never use it. |
| 2807 | set dummy $ac_cv_prog_CC |
| 2808 | shift |
| 2809 | if test $# != 0; then |
| 2810 | # We chose a different compiler from the bogus one. |
| 2811 | # However, it has the same basename, so the bogon will be chosen |
| 2812 | # first if we set CC to just the basename; use the full file name. |
| 2813 | shift |
| 2814 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2815 | fi |
| 2816 | fi |
| 2817 | fi |
| 2818 | fi |
| 2819 | CC=$ac_cv_prog_CC |
| 2820 | if test -n "$CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2821 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2822 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2823 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2824 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2825 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2826 | fi |
| 2827 | |
| 2828 | |
| 2829 | fi |
| 2830 | if test -z "$CC"; then |
| 2831 | if test -n "$ac_tool_prefix"; then |
| 2832 | for ac_prog in cl.exe |
| 2833 | do |
| 2834 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2835 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2836 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2837 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2838 | if test "${ac_cv_prog_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2839 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2840 | else |
| 2841 | if test -n "$CC"; then |
| 2842 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2843 | else |
| 2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2845 | for as_dir in $PATH |
| 2846 | do |
| 2847 | IFS=$as_save_IFS |
| 2848 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2851 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2852 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2853 | break 2 |
| 2854 | fi |
| 2855 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2856 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2857 | IFS=$as_save_IFS |
| 2858 | |
| 2859 | fi |
| 2860 | fi |
| 2861 | CC=$ac_cv_prog_CC |
| 2862 | if test -n "$CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2863 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2864 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2865 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2866 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2867 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2868 | fi |
| 2869 | |
| 2870 | |
| 2871 | test -n "$CC" && break |
| 2872 | done |
| 2873 | fi |
| 2874 | if test -z "$CC"; then |
| 2875 | ac_ct_CC=$CC |
| 2876 | for ac_prog in cl.exe |
| 2877 | do |
| 2878 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2879 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2880 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2881 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2882 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2883 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2884 | else |
| 2885 | if test -n "$ac_ct_CC"; then |
| 2886 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2887 | else |
| 2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2889 | for as_dir in $PATH |
| 2890 | do |
| 2891 | IFS=$as_save_IFS |
| 2892 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2895 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2896 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2897 | break 2 |
| 2898 | fi |
| 2899 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2900 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2901 | IFS=$as_save_IFS |
| 2902 | |
| 2903 | fi |
| 2904 | fi |
| 2905 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2906 | if test -n "$ac_ct_CC"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2907 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2908 | $as_echo "$ac_ct_CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2909 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2910 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2911 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2912 | fi |
| 2913 | |
| 2914 | |
| 2915 | test -n "$ac_ct_CC" && break |
| 2916 | done |
| 2917 | |
| 2918 | if test "x$ac_ct_CC" = x; then |
| 2919 | CC="" |
| 2920 | else |
| 2921 | case $cross_compiling:$ac_tool_warned in |
| 2922 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2923 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2924 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2925 | ac_tool_warned=yes ;; |
| 2926 | esac |
| 2927 | CC=$ac_ct_CC |
| 2928 | fi |
| 2929 | fi |
| 2930 | |
| 2931 | fi |
| 2932 | |
| 2933 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2934 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2936 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2937 | See \`config.log' for more details." >&5 |
| 2938 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2939 | See \`config.log' for more details." >&2;} |
| 2940 | { (exit 1); exit 1; }; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2941 | |
| 2942 | # Provide some information about the compiler. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2943 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2944 | set X $ac_compile |
| 2945 | ac_compiler=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2946 | { (ac_try="$ac_compiler --version >&5" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2947 | case "(($ac_try" in |
| 2948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2949 | *) ac_try_echo=$ac_try;; |
| 2950 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2952 | $as_echo "$ac_try_echo") >&5 |
| 2953 | (eval "$ac_compiler --version >&5") 2>&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2954 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2956 | (exit $ac_status); } |
| 2957 | { (ac_try="$ac_compiler -v >&5" |
| 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
| 2962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2963 | $as_echo "$ac_try_echo") >&5 |
| 2964 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2965 | ac_status=$? |
| 2966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2967 | (exit $ac_status); } |
| 2968 | { (ac_try="$ac_compiler -V >&5" |
| 2969 | case "(($ac_try" in |
| 2970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2971 | *) ac_try_echo=$ac_try;; |
| 2972 | esac |
| 2973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2974 | $as_echo "$ac_try_echo") >&5 |
| 2975 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2976 | ac_status=$? |
| 2977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2979 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2980 | cat >conftest.$ac_ext <<_ACEOF |
| 2981 | /* confdefs.h. */ |
| 2982 | _ACEOF |
| 2983 | cat confdefs.h >>conftest.$ac_ext |
| 2984 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2985 | /* end confdefs.h. */ |
| 2986 | |
| 2987 | int |
| 2988 | main () |
| 2989 | { |
| 2990 | |
| 2991 | ; |
| 2992 | return 0; |
| 2993 | } |
| 2994 | _ACEOF |
| 2995 | ac_clean_files_save=$ac_clean_files |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2996 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2997 | # Try to create an executable without -o first, disregard a.out. |
| 2998 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2999 | # of exeext. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3000 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 3001 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3002 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3003 | |
| 3004 | # The possible output files: |
| 3005 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3006 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3007 | ac_rmfiles= |
| 3008 | for ac_file in $ac_files |
| 3009 | do |
| 3010 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3012 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3013 | esac |
| 3014 | done |
| 3015 | rm -f $ac_rmfiles |
| 3016 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3017 | if { (ac_try="$ac_link_default" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3018 | case "(($ac_try" in |
| 3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3020 | *) ac_try_echo=$ac_try;; |
| 3021 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3023 | $as_echo "$ac_try_echo") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3024 | (eval "$ac_link_default") 2>&5 |
| 3025 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3028 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3029 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3030 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3031 | # so that the user can short-circuit this test for compilers unknown to |
| 3032 | # Autoconf. |
| 3033 | for ac_file in $ac_files '' |
| 3034 | do |
| 3035 | test -f "$ac_file" || continue |
| 3036 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3038 | ;; |
| 3039 | [ab].out ) |
| 3040 | # We found the default executable, but exeext='' is most |
| 3041 | # certainly right. |
| 3042 | break;; |
| 3043 | *.* ) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3044 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3045 | then :; else |
| 3046 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3047 | fi |
| 3048 | # We set ac_cv_exeext here because the later test for it is not |
| 3049 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3050 | # argument, so we may need to know it at that point already. |
| 3051 | # Even if this section looks crufty: it has the advantage of |
| 3052 | # actually working. |
| 3053 | break;; |
| 3054 | * ) |
| 3055 | break;; |
| 3056 | esac |
| 3057 | done |
| 3058 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3059 | |
| 3060 | else |
| 3061 | ac_file='' |
| 3062 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3063 | |
| 3064 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3065 | $as_echo "$ac_file" >&6; } |
| 3066 | if test -z "$ac_file"; then |
| 3067 | $as_echo "$as_me: failed program was:" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3069 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3070 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3072 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 3073 | See \`config.log' for more details." >&5 |
| 3074 | $as_echo "$as_me: error: C compiler cannot create executables |
| 3075 | See \`config.log' for more details." >&2;} |
| 3076 | { (exit 77); exit 77; }; }; } |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 3077 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3078 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 3079 | ac_exeext=$ac_cv_exeext |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 3080 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3081 | # Check that the compiler produces executables we can run. If not, either |
| 3082 | # the compiler is broken, or we cross compile. |
| 3083 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3084 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3085 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3086 | # If not cross compiling, check that we can run a simple program. |
| 3087 | if test "$cross_compiling" != yes; then |
| 3088 | if { ac_try='./$ac_file' |
| 3089 | { (case "(($ac_try" in |
| 3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3091 | *) ac_try_echo=$ac_try;; |
| 3092 | esac |
| 3093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3094 | $as_echo "$ac_try_echo") >&5 |
| 3095 | (eval "$ac_try") 2>&5 |
| 3096 | ac_status=$? |
| 3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); }; }; then |
| 3099 | cross_compiling=no |
| 3100 | else |
| 3101 | if test "$cross_compiling" = maybe; then |
| 3102 | cross_compiling=yes |
| 3103 | else |
| 3104 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3105 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3106 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3107 | If you meant to cross compile, use \`--host'. |
| 3108 | See \`config.log' for more details." >&5 |
| 3109 | $as_echo "$as_me: error: cannot run C compiled programs. |
| 3110 | If you meant to cross compile, use \`--host'. |
| 3111 | See \`config.log' for more details." >&2;} |
| 3112 | { (exit 1); exit 1; }; }; } |
| 3113 | fi |
| 3114 | fi |
| 3115 | fi |
| 3116 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3117 | $as_echo "yes" >&6; } |
| 3118 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3119 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3120 | ac_clean_files=$ac_clean_files_save |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3121 | # Check that the compiler produces executables we can run. If not, either |
| 3122 | # the compiler is broken, or we cross compile. |
| 3123 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3124 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3125 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3126 | $as_echo "$cross_compiling" >&6; } |
| 3127 | |
| 3128 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3129 | $as_echo_n "checking for suffix of executables... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3130 | if { (ac_try="$ac_link" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3131 | case "(($ac_try" in |
| 3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3133 | *) ac_try_echo=$ac_try;; |
| 3134 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3136 | $as_echo "$ac_try_echo") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3137 | (eval "$ac_link") 2>&5 |
| 3138 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3141 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3142 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3143 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3144 | # `rm'. |
| 3145 | for ac_file in conftest.exe conftest conftest.*; do |
| 3146 | test -f "$ac_file" || continue |
| 3147 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3148 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3149 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3150 | break;; |
| 3151 | * ) break;; |
| 3152 | esac |
| 3153 | done |
| 3154 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3155 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3157 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3158 | See \`config.log' for more details." >&5 |
| 3159 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3160 | See \`config.log' for more details." >&2;} |
| 3161 | { (exit 1); exit 1; }; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3162 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3163 | |
| 3164 | rm -f conftest$ac_cv_exeext |
| 3165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3166 | $as_echo "$ac_cv_exeext" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3167 | |
| 3168 | rm -f conftest.$ac_ext |
| 3169 | EXEEXT=$ac_cv_exeext |
| 3170 | ac_exeext=$EXEEXT |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3171 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3172 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3173 | if test "${ac_cv_objext+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3174 | $as_echo_n "(cached) " >&6 |
| 3175 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3176 | cat >conftest.$ac_ext <<_ACEOF |
| 3177 | /* confdefs.h. */ |
| 3178 | _ACEOF |
| 3179 | cat confdefs.h >>conftest.$ac_ext |
| 3180 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3181 | /* end confdefs.h. */ |
| 3182 | |
| 3183 | int |
| 3184 | main () |
| 3185 | { |
| 3186 | |
| 3187 | ; |
| 3188 | return 0; |
| 3189 | } |
| 3190 | _ACEOF |
| 3191 | rm -f conftest.o conftest.obj |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3192 | if { (ac_try="$ac_compile" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3193 | case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3198 | $as_echo "$ac_try_echo") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3199 | (eval "$ac_compile") 2>&5 |
| 3200 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3202 | (exit $ac_status); }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3203 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3204 | test -f "$ac_file" || continue; |
| 3205 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3207 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3208 | break;; |
| 3209 | esac |
| 3210 | done |
| 3211 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3212 | $as_echo "$as_me: failed program was:" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3214 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3215 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3217 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3218 | See \`config.log' for more details." >&5 |
| 3219 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3220 | See \`config.log' for more details." >&2;} |
| 3221 | { (exit 1); exit 1; }; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3222 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3223 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3224 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3225 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3227 | $as_echo "$ac_cv_objext" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3228 | OBJEXT=$ac_cv_objext |
| 3229 | ac_objext=$OBJEXT |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3230 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3231 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3232 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3233 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3234 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3235 | cat >conftest.$ac_ext <<_ACEOF |
| 3236 | /* confdefs.h. */ |
| 3237 | _ACEOF |
| 3238 | cat confdefs.h >>conftest.$ac_ext |
| 3239 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3240 | /* end confdefs.h. */ |
| 3241 | |
| 3242 | int |
| 3243 | main () |
| 3244 | { |
| 3245 | #ifndef __GNUC__ |
| 3246 | choke me |
| 3247 | #endif |
| 3248 | |
| 3249 | ; |
| 3250 | return 0; |
| 3251 | } |
| 3252 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3253 | rm -f conftest.$ac_objext |
| 3254 | if { (ac_try="$ac_compile" |
| 3255 | case "(($ac_try" in |
| 3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3257 | *) ac_try_echo=$ac_try;; |
| 3258 | esac |
| 3259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3260 | $as_echo "$ac_try_echo") >&5 |
| 3261 | (eval "$ac_compile") 2>conftest.er1 |
| 3262 | ac_status=$? |
| 3263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3264 | rm -f conftest.er1 |
| 3265 | cat conftest.err >&5 |
| 3266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3267 | (exit $ac_status); } && { |
| 3268 | test -z "$ac_c_werror_flag" || |
| 3269 | test ! -s conftest.err |
| 3270 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3271 | ac_compiler_gnu=yes |
| 3272 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3273 | $as_echo "$as_me: failed program was:" >&5 |
| 3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3275 | |
| 3276 | ac_compiler_gnu=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3277 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3278 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3281 | |
| 3282 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3283 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3284 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3285 | if test $ac_compiler_gnu = yes; then |
| 3286 | GCC=yes |
| 3287 | else |
| 3288 | GCC= |
| 3289 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3290 | ac_test_CFLAGS=${CFLAGS+set} |
| 3291 | ac_save_CFLAGS=$CFLAGS |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3292 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3293 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3294 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3295 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3296 | else |
| 3297 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3298 | ac_c_werror_flag=yes |
| 3299 | ac_cv_prog_cc_g=no |
| 3300 | CFLAGS="-g" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3301 | cat >conftest.$ac_ext <<_ACEOF |
| 3302 | /* confdefs.h. */ |
| 3303 | _ACEOF |
| 3304 | cat confdefs.h >>conftest.$ac_ext |
| 3305 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3306 | /* end confdefs.h. */ |
| 3307 | |
| 3308 | int |
| 3309 | main () |
| 3310 | { |
| 3311 | |
| 3312 | ; |
| 3313 | return 0; |
| 3314 | } |
| 3315 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3316 | rm -f conftest.$ac_objext |
| 3317 | if { (ac_try="$ac_compile" |
| 3318 | case "(($ac_try" in |
| 3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3320 | *) ac_try_echo=$ac_try;; |
| 3321 | esac |
| 3322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3323 | $as_echo "$ac_try_echo") >&5 |
| 3324 | (eval "$ac_compile") 2>conftest.er1 |
| 3325 | ac_status=$? |
| 3326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3327 | rm -f conftest.er1 |
| 3328 | cat conftest.err >&5 |
| 3329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3330 | (exit $ac_status); } && { |
| 3331 | test -z "$ac_c_werror_flag" || |
| 3332 | test ! -s conftest.err |
| 3333 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3334 | ac_cv_prog_cc_g=yes |
| 3335 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3336 | $as_echo "$as_me: failed program was:" >&5 |
| 3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3338 | |
| 3339 | CFLAGS="" |
| 3340 | cat >conftest.$ac_ext <<_ACEOF |
| 3341 | /* confdefs.h. */ |
| 3342 | _ACEOF |
| 3343 | cat confdefs.h >>conftest.$ac_ext |
| 3344 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3345 | /* end confdefs.h. */ |
| 3346 | |
| 3347 | int |
| 3348 | main () |
| 3349 | { |
| 3350 | |
| 3351 | ; |
| 3352 | return 0; |
| 3353 | } |
| 3354 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3355 | rm -f conftest.$ac_objext |
| 3356 | if { (ac_try="$ac_compile" |
| 3357 | case "(($ac_try" in |
| 3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3359 | *) ac_try_echo=$ac_try;; |
| 3360 | esac |
| 3361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3362 | $as_echo "$ac_try_echo") >&5 |
| 3363 | (eval "$ac_compile") 2>conftest.er1 |
| 3364 | ac_status=$? |
| 3365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3366 | rm -f conftest.er1 |
| 3367 | cat conftest.err >&5 |
| 3368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3369 | (exit $ac_status); } && { |
| 3370 | test -z "$ac_c_werror_flag" || |
| 3371 | test ! -s conftest.err |
| 3372 | } && test -s conftest.$ac_objext; then |
| 3373 | : |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 3374 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3375 | $as_echo "$as_me: failed program was:" >&5 |
| 3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3377 | |
| 3378 | ac_c_werror_flag=$ac_save_c_werror_flag |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3379 | CFLAGS="-g" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3380 | cat >conftest.$ac_ext <<_ACEOF |
| 3381 | /* confdefs.h. */ |
| 3382 | _ACEOF |
| 3383 | cat confdefs.h >>conftest.$ac_ext |
| 3384 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3385 | /* end confdefs.h. */ |
| 3386 | |
| 3387 | int |
| 3388 | main () |
| 3389 | { |
| 3390 | |
| 3391 | ; |
| 3392 | return 0; |
| 3393 | } |
| 3394 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3395 | rm -f conftest.$ac_objext |
| 3396 | if { (ac_try="$ac_compile" |
| 3397 | case "(($ac_try" in |
| 3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3399 | *) ac_try_echo=$ac_try;; |
| 3400 | esac |
| 3401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3402 | $as_echo "$ac_try_echo") >&5 |
| 3403 | (eval "$ac_compile") 2>conftest.er1 |
| 3404 | ac_status=$? |
| 3405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3406 | rm -f conftest.er1 |
| 3407 | cat conftest.err >&5 |
| 3408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3409 | (exit $ac_status); } && { |
| 3410 | test -z "$ac_c_werror_flag" || |
| 3411 | test ! -s conftest.err |
| 3412 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3413 | ac_cv_prog_cc_g=yes |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3414 | else |
| 3415 | $as_echo "$as_me: failed program was:" >&5 |
| 3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3417 | |
| 3418 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3419 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3420 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3422 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3423 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3425 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3426 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3428 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3429 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3431 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3432 | if test "$ac_test_CFLAGS" = set; then |
| 3433 | CFLAGS=$ac_save_CFLAGS |
| 3434 | elif test $ac_cv_prog_cc_g = yes; then |
| 3435 | if test "$GCC" = yes; then |
| 3436 | CFLAGS="-g -O2" |
| 3437 | else |
| 3438 | CFLAGS="-g" |
| 3439 | fi |
| 3440 | else |
| 3441 | if test "$GCC" = yes; then |
| 3442 | CFLAGS="-O2" |
| 3443 | else |
| 3444 | CFLAGS= |
| 3445 | fi |
| 3446 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3447 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3448 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3449 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3450 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3451 | else |
| 3452 | ac_cv_prog_cc_c89=no |
| 3453 | ac_save_CC=$CC |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3454 | cat >conftest.$ac_ext <<_ACEOF |
| 3455 | /* confdefs.h. */ |
| 3456 | _ACEOF |
| 3457 | cat confdefs.h >>conftest.$ac_ext |
| 3458 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3459 | /* end confdefs.h. */ |
| 3460 | #include <stdarg.h> |
| 3461 | #include <stdio.h> |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3462 | #include <sys/types.h> |
| 3463 | #include <sys/stat.h> |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3464 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3465 | struct buf { int x; }; |
| 3466 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3467 | static char *e (p, i) |
| 3468 | char **p; |
| 3469 | int i; |
| 3470 | { |
| 3471 | return p[i]; |
| 3472 | } |
| 3473 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3474 | { |
| 3475 | char *s; |
| 3476 | va_list v; |
| 3477 | va_start (v,p); |
| 3478 | s = g (p, va_arg (v,int)); |
| 3479 | va_end (v); |
| 3480 | return s; |
| 3481 | } |
| 3482 | |
| 3483 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3484 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3485 | These don't provoke an error unfortunately, instead are silently treated |
| 3486 | as 'x'. The following induces an error, until -std is added to get |
| 3487 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3488 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3489 | that's true only with -std. */ |
| 3490 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3491 | |
| 3492 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3493 | inside strings and character constants. */ |
| 3494 | #define FOO(x) 'x' |
| 3495 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3496 | |
| 3497 | int test (int i, double x); |
| 3498 | struct s1 {int (*f) (int a);}; |
| 3499 | struct s2 {int (*f) (double a);}; |
| 3500 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3501 | int argc; |
| 3502 | char **argv; |
| 3503 | int |
| 3504 | main () |
| 3505 | { |
| 3506 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3507 | ; |
| 3508 | return 0; |
| 3509 | } |
| 3510 | _ACEOF |
| 3511 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3512 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3513 | do |
| 3514 | CC="$ac_save_CC $ac_arg" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3515 | rm -f conftest.$ac_objext |
| 3516 | if { (ac_try="$ac_compile" |
| 3517 | case "(($ac_try" in |
| 3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3519 | *) ac_try_echo=$ac_try;; |
| 3520 | esac |
| 3521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3522 | $as_echo "$ac_try_echo") >&5 |
| 3523 | (eval "$ac_compile") 2>conftest.er1 |
| 3524 | ac_status=$? |
| 3525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3526 | rm -f conftest.er1 |
| 3527 | cat conftest.err >&5 |
| 3528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3529 | (exit $ac_status); } && { |
| 3530 | test -z "$ac_c_werror_flag" || |
| 3531 | test ! -s conftest.err |
| 3532 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3533 | ac_cv_prog_cc_c89=$ac_arg |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3534 | else |
| 3535 | $as_echo "$as_me: failed program was:" >&5 |
| 3536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3537 | |
| 3538 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3539 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3540 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3541 | rm -f core conftest.err conftest.$ac_objext |
| 3542 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3543 | done |
| 3544 | rm -f conftest.$ac_ext |
| 3545 | CC=$ac_save_CC |
| 3546 | |
| 3547 | fi |
| 3548 | # AC_CACHE_VAL |
| 3549 | case "x$ac_cv_prog_cc_c89" in |
| 3550 | x) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3551 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3552 | $as_echo "none needed" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3553 | xno) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3554 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3555 | $as_echo "unsupported" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3556 | *) |
| 3557 | CC="$CC $ac_cv_prog_cc_c89" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3559 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3560 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3561 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3562 | |
| 3563 | ac_ext=c |
| 3564 | ac_cpp='$CPP $CPPFLAGS' |
| 3565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3568 | DEPDIR="${am__leading_dot}deps" |
| 3569 | |
| 3570 | ac_config_commands="$ac_config_commands depfiles" |
| 3571 | |
| 3572 | |
| 3573 | am_make=${MAKE-make} |
| 3574 | cat > confinc << 'END' |
| 3575 | am__doit: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3576 | @echo this is the am__doit target |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3577 | .PHONY: am__doit |
| 3578 | END |
| 3579 | # If we don't find an include directive, just comment out the code. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3580 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3581 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3582 | am__include="#" |
| 3583 | am__quote= |
| 3584 | _am_result=none |
| 3585 | # First try GNU make style include. |
| 3586 | echo "include confinc" > confmf |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3587 | # Ignore all kinds of additional output from `make'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3588 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3589 | *the\ am__doit\ target*) |
| 3590 | am__include=include |
| 3591 | am__quote= |
| 3592 | _am_result=GNU |
| 3593 | ;; |
| 3594 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3595 | # Now try BSD make style include. |
| 3596 | if test "$am__include" = "#"; then |
| 3597 | echo '.include "confinc"' > confmf |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3598 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3599 | *the\ am__doit\ target*) |
| 3600 | am__include=.include |
| 3601 | am__quote="\"" |
| 3602 | _am_result=BSD |
| 3603 | ;; |
| 3604 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3605 | fi |
| 3606 | |
| 3607 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3608 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3609 | $as_echo "$_am_result" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3610 | rm -f confinc confmf |
| 3611 | |
| 3612 | # Check whether --enable-dependency-tracking was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3613 | if test "${enable_dependency_tracking+set}" = set; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3614 | enableval=$enable_dependency_tracking; |
| 3615 | fi |
| 3616 | |
| 3617 | if test "x$enable_dependency_tracking" != xno; then |
| 3618 | am_depcomp="$ac_aux_dir/depcomp" |
| 3619 | AMDEPBACKSLASH='\' |
| 3620 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3621 | if test "x$enable_dependency_tracking" != xno; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3622 | AMDEP_TRUE= |
| 3623 | AMDEP_FALSE='#' |
| 3624 | else |
| 3625 | AMDEP_TRUE='#' |
| 3626 | AMDEP_FALSE= |
| 3627 | fi |
| 3628 | |
| 3629 | |
| 3630 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3631 | depcc="$CC" am_compiler_list= |
| 3632 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3633 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3634 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3635 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3636 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3637 | else |
| 3638 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3639 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3640 | # making bogus files that we don't know about and never remove. For |
| 3641 | # instance it was reported that on HP-UX the gcc test will end up |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3642 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3643 | # in D'. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3644 | mkdir conftest.dir |
| 3645 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3646 | # using a relative directory. |
| 3647 | cp "$am_depcomp" conftest.dir |
| 3648 | cd conftest.dir |
| 3649 | # We will build objects and dependencies in a subdirectory because |
| 3650 | # it helps to detect inapplicable dependency modes. For instance |
| 3651 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3652 | # side effect of compilation, but ICC will put the dependencies in |
| 3653 | # the current directory while Tru64 will put them in the object |
| 3654 | # directory. |
| 3655 | mkdir sub |
| 3656 | |
| 3657 | am_cv_CC_dependencies_compiler_type=none |
| 3658 | if test "$am_compiler_list" = ""; then |
| 3659 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3660 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3661 | am__universal=false |
| 3662 | case " $depcc " in #( |
| 3663 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3664 | esac |
| 3665 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3666 | for depmode in $am_compiler_list; do |
| 3667 | # Setup a source with many dependencies, because some compilers |
| 3668 | # like to wrap large dependency lists on column 80 (with \), and |
| 3669 | # we should not choose a depcomp mode which is confused by this. |
| 3670 | # |
| 3671 | # We need to recreate these files for each test, as the compiler may |
| 3672 | # overwrite some of them when testing with obscure command lines. |
| 3673 | # This happens at least with the AIX C compiler. |
| 3674 | : > sub/conftest.c |
| 3675 | for i in 1 2 3 4 5 6; do |
| 3676 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3677 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3678 | # Solaris 8's {/usr,}/bin/sh. |
| 3679 | touch sub/conftst$i.h |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3680 | done |
| 3681 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3682 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3683 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3684 | # mode. It turns out that the SunPro C++ compiler does not properly |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3685 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3686 | # versions had trouble with output in subdirs |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3687 | am__obj=sub/conftest.${OBJEXT-o} |
| 3688 | am__minus_obj="-o $am__obj" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3689 | case $depmode in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3690 | gcc) |
| 3691 | # This depmode causes a compiler race in universal mode. |
| 3692 | test "$am__universal" = false || continue |
| 3693 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3694 | nosideeffect) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3695 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3696 | # only be used when explicitly requested |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3697 | if test "x$enable_dependency_tracking" = xyes; then |
| 3698 | continue |
| 3699 | else |
| 3700 | break |
| 3701 | fi |
| 3702 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3703 | msvisualcpp | msvcmsys) |
| 3704 | # This compiler won't grok `-c -o', but also, the minuso test has |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3705 | # not run yet. These depmodes are late enough in the game, and |
| 3706 | # so weak that their functioning should not be impacted. |
| 3707 | am__obj=conftest.${OBJEXT-o} |
| 3708 | am__minus_obj= |
| 3709 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3710 | none) break ;; |
| 3711 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3712 | if depmode=$depmode \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3713 | source=sub/conftest.c object=$am__obj \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3714 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3715 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3716 | >/dev/null 2>conftest.err && |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3717 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3718 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3719 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3720 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3721 | # icc doesn't choke on unknown options, it will just issue warnings |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 3722 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3723 | # that says an option was ignored or not supported. |
| 3724 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3725 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3726 | # The diagnosis changed in icc 8.0: |
| 3727 | # icc: Command line remark: option '-MP' not supported |
| 3728 | if (grep 'ignoring option' conftest.err || |
| 3729 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3730 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3731 | break |
| 3732 | fi |
| 3733 | fi |
| 3734 | done |
| 3735 | |
| 3736 | cd .. |
| 3737 | rm -rf conftest.dir |
| 3738 | else |
| 3739 | am_cv_CC_dependencies_compiler_type=none |
| 3740 | fi |
| 3741 | |
| 3742 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3743 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3744 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3745 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3746 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3747 | if |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3748 | test "x$enable_dependency_tracking" != xno \ |
| 3749 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3750 | am__fastdepCC_TRUE= |
| 3751 | am__fastdepCC_FALSE='#' |
| 3752 | else |
| 3753 | am__fastdepCC_TRUE='#' |
| 3754 | am__fastdepCC_FALSE= |
| 3755 | fi |
| 3756 | |
| 3757 | |
| 3758 | if test -n "$ac_tool_prefix"; then |
| 3759 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3760 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3761 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3762 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3763 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3765 | else |
| 3766 | if test -n "$RANLIB"; then |
| 3767 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3768 | else |
| 3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3770 | for as_dir in $PATH |
| 3771 | do |
| 3772 | IFS=$as_save_IFS |
| 3773 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3776 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3777 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3778 | break 2 |
| 3779 | fi |
| 3780 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3781 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3782 | IFS=$as_save_IFS |
| 3783 | |
| 3784 | fi |
| 3785 | fi |
| 3786 | RANLIB=$ac_cv_prog_RANLIB |
| 3787 | if test -n "$RANLIB"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3788 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3789 | $as_echo "$RANLIB" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3790 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3791 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3792 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3793 | fi |
| 3794 | |
| 3795 | |
| 3796 | fi |
| 3797 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3798 | ac_ct_RANLIB=$RANLIB |
| 3799 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3800 | set dummy ranlib; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3801 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3802 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3803 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3804 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3805 | else |
| 3806 | if test -n "$ac_ct_RANLIB"; then |
| 3807 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3808 | else |
| 3809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3810 | for as_dir in $PATH |
| 3811 | do |
| 3812 | IFS=$as_save_IFS |
| 3813 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3816 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3817 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3818 | break 2 |
| 3819 | fi |
| 3820 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3821 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3822 | IFS=$as_save_IFS |
| 3823 | |
| 3824 | fi |
| 3825 | fi |
| 3826 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3827 | if test -n "$ac_ct_RANLIB"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3828 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3829 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3830 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3831 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3832 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3833 | fi |
| 3834 | |
| 3835 | if test "x$ac_ct_RANLIB" = x; then |
| 3836 | RANLIB=":" |
| 3837 | else |
| 3838 | case $cross_compiling:$ac_tool_warned in |
| 3839 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3840 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3841 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3842 | ac_tool_warned=yes ;; |
| 3843 | esac |
| 3844 | RANLIB=$ac_ct_RANLIB |
| 3845 | fi |
| 3846 | else |
| 3847 | RANLIB="$ac_cv_prog_RANLIB" |
| 3848 | fi |
| 3849 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3850 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3851 | $as_echo_n "checking whether ln -s works... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3852 | LN_S=$as_ln_s |
| 3853 | if test "$LN_S" = "ln -s"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3854 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3855 | $as_echo "yes" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3856 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3857 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3858 | $as_echo "no, using $LN_S" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3859 | fi |
| 3860 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3861 | case `pwd` in |
| 3862 | *\ * | *\ *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3863 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3864 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3865 | esac |
| 3866 | |
| 3867 | |
| 3868 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3869 | macro_version='2.2.6b' |
| 3870 | macro_revision='1.3017' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | |
| 3882 | |
| 3883 | |
| 3884 | ltmain="$ac_aux_dir/ltmain.sh" |
| 3885 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3886 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3887 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3888 | if test "${ac_cv_path_SED+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3889 | $as_echo_n "(cached) " >&6 |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 3890 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3891 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3892 | for ac_i in 1 2 3 4 5 6 7; do |
| 3893 | ac_script="$ac_script$as_nl$ac_script" |
| 3894 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3895 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3896 | $as_unset ac_script || ac_script= |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3897 | if test -z "$SED"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3898 | ac_path_SED_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3899 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3901 | for as_dir in $PATH |
| 3902 | do |
| 3903 | IFS=$as_save_IFS |
| 3904 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3905 | for ac_prog in sed gsed; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3906 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3907 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3908 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3909 | # Check for GNU ac_path_SED and select it if it is found. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3910 | # Check for GNU $ac_path_SED |
| 3911 | case `"$ac_path_SED" --version 2>&1` in |
| 3912 | *GNU*) |
| 3913 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3914 | *) |
| 3915 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3916 | $as_echo_n 0123456789 >"conftest.in" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3917 | while : |
| 3918 | do |
| 3919 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3920 | mv "conftest.tmp" "conftest.in" |
| 3921 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3922 | $as_echo '' >> "conftest.nl" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3923 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3924 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3925 | ac_count=`expr $ac_count + 1` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3926 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3927 | # Best one so far, save it but keep looking for a better one |
| 3928 | ac_cv_path_SED="$ac_path_SED" |
| 3929 | ac_path_SED_max=$ac_count |
| 3930 | fi |
| 3931 | # 10*(2^10) chars as input seems more than enough |
| 3932 | test $ac_count -gt 10 && break |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3933 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3934 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3935 | esac |
| 3936 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3937 | $ac_path_SED_found && break 3 |
| 3938 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3939 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3940 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3941 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3942 | if test -z "$ac_cv_path_SED"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3943 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
| 3944 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
| 3945 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3946 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3947 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3948 | ac_cv_path_SED=$SED |
| 3949 | fi |
| 3950 | |
| 3951 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3953 | $as_echo "$ac_cv_path_SED" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3954 | SED="$ac_cv_path_SED" |
| 3955 | rm -f conftest.sed |
| 3956 | |
| 3957 | test -z "$SED" && SED=sed |
| 3958 | Xsed="$SED -e 1s/^X//" |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3970 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3971 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3972 | if test "${ac_cv_path_GREP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3973 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3974 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3975 | if test -z "$GREP"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3976 | ac_path_GREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3977 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3979 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3980 | do |
| 3981 | IFS=$as_save_IFS |
| 3982 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3983 | for ac_prog in grep ggrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3985 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3986 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3987 | # Check for GNU ac_path_GREP and select it if it is found. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3988 | # Check for GNU $ac_path_GREP |
| 3989 | case `"$ac_path_GREP" --version 2>&1` in |
| 3990 | *GNU*) |
| 3991 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3992 | *) |
| 3993 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3994 | $as_echo_n 0123456789 >"conftest.in" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3995 | while : |
| 3996 | do |
| 3997 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3998 | mv "conftest.tmp" "conftest.in" |
| 3999 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4000 | $as_echo 'GREP' >> "conftest.nl" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4001 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4002 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4003 | ac_count=`expr $ac_count + 1` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4004 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4005 | # Best one so far, save it but keep looking for a better one |
| 4006 | ac_cv_path_GREP="$ac_path_GREP" |
| 4007 | ac_path_GREP_max=$ac_count |
| 4008 | fi |
| 4009 | # 10*(2^10) chars as input seems more than enough |
| 4010 | test $ac_count -gt 10 && break |
| 4011 | done |
| 4012 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4013 | esac |
| 4014 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4015 | $ac_path_GREP_found && break 3 |
| 4016 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4017 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4018 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4019 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4020 | if test -z "$ac_cv_path_GREP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4021 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4022 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4023 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4024 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4025 | else |
| 4026 | ac_cv_path_GREP=$GREP |
| 4027 | fi |
| 4028 | |
| 4029 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4030 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4031 | $as_echo "$ac_cv_path_GREP" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4032 | GREP="$ac_cv_path_GREP" |
| 4033 | |
| 4034 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4035 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4036 | $as_echo_n "checking for egrep... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4037 | if test "${ac_cv_path_EGREP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4038 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4039 | else |
| 4040 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4041 | then ac_cv_path_EGREP="$GREP -E" |
| 4042 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4043 | if test -z "$EGREP"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4044 | ac_path_EGREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4045 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4047 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4048 | do |
| 4049 | IFS=$as_save_IFS |
| 4050 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4051 | for ac_prog in egrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4052 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4053 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4054 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4055 | # Check for GNU ac_path_EGREP and select it if it is found. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4056 | # Check for GNU $ac_path_EGREP |
| 4057 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4058 | *GNU*) |
| 4059 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4060 | *) |
| 4061 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4062 | $as_echo_n 0123456789 >"conftest.in" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4063 | while : |
| 4064 | do |
| 4065 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4066 | mv "conftest.tmp" "conftest.in" |
| 4067 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4068 | $as_echo 'EGREP' >> "conftest.nl" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4069 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4070 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4071 | ac_count=`expr $ac_count + 1` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4072 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4073 | # Best one so far, save it but keep looking for a better one |
| 4074 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4075 | ac_path_EGREP_max=$ac_count |
| 4076 | fi |
| 4077 | # 10*(2^10) chars as input seems more than enough |
| 4078 | test $ac_count -gt 10 && break |
| 4079 | done |
| 4080 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4081 | esac |
| 4082 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4083 | $ac_path_EGREP_found && break 3 |
| 4084 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4085 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4086 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4087 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4088 | if test -z "$ac_cv_path_EGREP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4089 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4090 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4091 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4092 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4093 | else |
| 4094 | ac_cv_path_EGREP=$EGREP |
| 4095 | fi |
| 4096 | |
| 4097 | fi |
| 4098 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4099 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4100 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4101 | EGREP="$ac_cv_path_EGREP" |
| 4102 | |
| 4103 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4104 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4105 | $as_echo_n "checking for fgrep... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4106 | if test "${ac_cv_path_FGREP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4107 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4108 | else |
| 4109 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4110 | then ac_cv_path_FGREP="$GREP -F" |
| 4111 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4112 | if test -z "$FGREP"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4113 | ac_path_FGREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4114 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4116 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4117 | do |
| 4118 | IFS=$as_save_IFS |
| 4119 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4120 | for ac_prog in fgrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4122 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4123 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4124 | # Check for GNU ac_path_FGREP and select it if it is found. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4125 | # Check for GNU $ac_path_FGREP |
| 4126 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4127 | *GNU*) |
| 4128 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4129 | *) |
| 4130 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4131 | $as_echo_n 0123456789 >"conftest.in" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4132 | while : |
| 4133 | do |
| 4134 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4135 | mv "conftest.tmp" "conftest.in" |
| 4136 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4137 | $as_echo 'FGREP' >> "conftest.nl" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4138 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4139 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4140 | ac_count=`expr $ac_count + 1` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4141 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4142 | # Best one so far, save it but keep looking for a better one |
| 4143 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4144 | ac_path_FGREP_max=$ac_count |
| 4145 | fi |
| 4146 | # 10*(2^10) chars as input seems more than enough |
| 4147 | test $ac_count -gt 10 && break |
| 4148 | done |
| 4149 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4150 | esac |
| 4151 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4152 | $ac_path_FGREP_found && break 3 |
| 4153 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4154 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4155 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4156 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4157 | if test -z "$ac_cv_path_FGREP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4158 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4159 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4160 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4161 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4162 | else |
| 4163 | ac_cv_path_FGREP=$FGREP |
| 4164 | fi |
| 4165 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4166 | fi |
| 4167 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4168 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4169 | $as_echo "$ac_cv_path_FGREP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4170 | FGREP="$ac_cv_path_FGREP" |
| 4171 | |
| 4172 | |
| 4173 | test -z "$GREP" && GREP=grep |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4192 | |
| 4193 | # Check whether --with-gnu-ld was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4194 | if test "${with_gnu_ld+set}" = set; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4195 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4196 | else |
| 4197 | with_gnu_ld=no |
| 4198 | fi |
| 4199 | |
| 4200 | ac_prog=ld |
| 4201 | if test "$GCC" = yes; then |
| 4202 | # Check if gcc -print-prog-name=ld gives a path. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4203 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4204 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4205 | case $host in |
| 4206 | *-*-mingw*) |
| 4207 | # gcc leaves a trailing carriage return which upsets mingw |
| 4208 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4209 | *) |
| 4210 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4211 | esac |
| 4212 | case $ac_prog in |
| 4213 | # Accept absolute paths. |
| 4214 | [\\/]* | ?:[\\/]*) |
| 4215 | re_direlt='/[^/][^/]*/\.\./' |
| 4216 | # Canonicalize the pathname of ld |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4217 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4218 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4219 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4220 | done |
| 4221 | test -z "$LD" && LD="$ac_prog" |
| 4222 | ;; |
| 4223 | "") |
| 4224 | # If it fails, then pretend we aren't using GCC. |
| 4225 | ac_prog=ld |
| 4226 | ;; |
| 4227 | *) |
| 4228 | # If it is relative, then search for the first ld in PATH. |
| 4229 | with_gnu_ld=unknown |
| 4230 | ;; |
| 4231 | esac |
| 4232 | elif test "$with_gnu_ld" = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4233 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4234 | $as_echo_n "checking for GNU ld... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4235 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4236 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4237 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4238 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4239 | if test "${lt_cv_path_LD+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4240 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4241 | else |
| 4242 | if test -z "$LD"; then |
| 4243 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4244 | for ac_dir in $PATH; do |
| 4245 | IFS="$lt_save_ifs" |
| 4246 | test -z "$ac_dir" && ac_dir=. |
| 4247 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4248 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4249 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4250 | # but apparently some variants of GNU ld only accept -v. |
| 4251 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4252 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4253 | *GNU* | *'with BFD'*) |
| 4254 | test "$with_gnu_ld" != no && break |
| 4255 | ;; |
| 4256 | *) |
| 4257 | test "$with_gnu_ld" != yes && break |
| 4258 | ;; |
| 4259 | esac |
| 4260 | fi |
| 4261 | done |
| 4262 | IFS="$lt_save_ifs" |
| 4263 | else |
| 4264 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4265 | fi |
| 4266 | fi |
| 4267 | |
| 4268 | LD="$lt_cv_path_LD" |
| 4269 | if test -n "$LD"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4270 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4271 | $as_echo "$LD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4272 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4273 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4274 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4275 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4276 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4277 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4278 | { (exit 1); exit 1; }; } |
| 4279 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4280 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4281 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4282 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4283 | else |
| 4284 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4285 | case `$LD -v 2>&1 </dev/null` in |
| 4286 | *GNU* | *'with BFD'*) |
| 4287 | lt_cv_prog_gnu_ld=yes |
| 4288 | ;; |
| 4289 | *) |
| 4290 | lt_cv_prog_gnu_ld=no |
| 4291 | ;; |
| 4292 | esac |
| 4293 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4294 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4295 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4296 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4297 | |
| 4298 | |
| 4299 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4300 | |
| 4301 | |
| 4302 | |
| 4303 | |
| 4304 | |
| 4305 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4306 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4307 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4308 | if test "${lt_cv_path_NM+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4309 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4310 | else |
| 4311 | if test -n "$NM"; then |
| 4312 | # Let the user override the test. |
| 4313 | lt_cv_path_NM="$NM" |
| 4314 | else |
| 4315 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4316 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4317 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4318 | fi |
| 4319 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4320 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4321 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4322 | IFS="$lt_save_ifs" |
| 4323 | test -z "$ac_dir" && ac_dir=. |
| 4324 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4325 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4326 | # Check to see if the nm accepts a BSD-compat flag. |
| 4327 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4328 | # nm: unknown option "B" ignored |
| 4329 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4330 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4331 | */dev/null* | *'Invalid file or object type'*) |
| 4332 | lt_cv_path_NM="$tmp_nm -B" |
| 4333 | break |
| 4334 | ;; |
| 4335 | *) |
| 4336 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4337 | */dev/null*) |
| 4338 | lt_cv_path_NM="$tmp_nm -p" |
| 4339 | break |
| 4340 | ;; |
| 4341 | *) |
| 4342 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4343 | continue # so that we can try to find one that supports BSD flags |
| 4344 | ;; |
| 4345 | esac |
| 4346 | ;; |
| 4347 | esac |
| 4348 | fi |
| 4349 | done |
| 4350 | IFS="$lt_save_ifs" |
| 4351 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4352 | : ${lt_cv_path_NM=no} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4353 | fi |
| 4354 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4355 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4356 | $as_echo "$lt_cv_path_NM" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4357 | if test "$lt_cv_path_NM" != "no"; then |
| 4358 | NM="$lt_cv_path_NM" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4359 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4360 | # Didn't find any BSD compatible name lister, look for dumpbin. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4361 | if test -n "$ac_tool_prefix"; then |
| 4362 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4363 | do |
| 4364 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4365 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4366 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4367 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4368 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4369 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4370 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4371 | if test -n "$DUMPBIN"; then |
| 4372 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4373 | else |
| 4374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4375 | for as_dir in $PATH |
| 4376 | do |
| 4377 | IFS=$as_save_IFS |
| 4378 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4379 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4381 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4382 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4383 | break 2 |
| 4384 | fi |
| 4385 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4386 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4387 | IFS=$as_save_IFS |
| 4388 | |
| 4389 | fi |
| 4390 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4391 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4392 | if test -n "$DUMPBIN"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4393 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4394 | $as_echo "$DUMPBIN" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4395 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4396 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4397 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4398 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4399 | |
| 4400 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4401 | test -n "$DUMPBIN" && break |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4402 | done |
| 4403 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4404 | if test -z "$DUMPBIN"; then |
| 4405 | ac_ct_DUMPBIN=$DUMPBIN |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4406 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4407 | do |
| 4408 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4409 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4411 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4412 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4413 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4414 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4415 | if test -n "$ac_ct_DUMPBIN"; then |
| 4416 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4417 | else |
| 4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4419 | for as_dir in $PATH |
| 4420 | do |
| 4421 | IFS=$as_save_IFS |
| 4422 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4425 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4426 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4427 | break 2 |
| 4428 | fi |
| 4429 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4430 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4431 | IFS=$as_save_IFS |
| 4432 | |
| 4433 | fi |
| 4434 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4435 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4436 | if test -n "$ac_ct_DUMPBIN"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4437 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4438 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4439 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4440 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4441 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4442 | fi |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 4443 | |
| 4444 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4445 | test -n "$ac_ct_DUMPBIN" && break |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4446 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4447 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4448 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4449 | DUMPBIN=":" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4450 | else |
| 4451 | case $cross_compiling:$ac_tool_warned in |
| 4452 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4453 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4454 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4455 | ac_tool_warned=yes ;; |
| 4456 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4457 | DUMPBIN=$ac_ct_DUMPBIN |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4458 | fi |
| 4459 | fi |
| 4460 | |
| 4461 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4462 | if test "$DUMPBIN" != ":"; then |
| 4463 | NM="$DUMPBIN" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4464 | fi |
| 4465 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4466 | test -z "$NM" && NM=nm |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4467 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4468 | |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4473 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4474 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4475 | if test "${lt_cv_nm_interface+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4476 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4477 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4478 | lt_cv_nm_interface="BSD nm" |
| 4479 | echo "int some_variable = 0;" > conftest.$ac_ext |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 4480 | (eval echo "\"\$as_me:4480: $ac_compile\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4481 | (eval "$ac_compile" 2>conftest.err) |
| 4482 | cat conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 4483 | (eval echo "\"\$as_me:4483: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4484 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4485 | cat conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 4486 | (eval echo "\"\$as_me:4486: output\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4487 | cat conftest.out >&5 |
| 4488 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4489 | lt_cv_nm_interface="MS dumpbin" |
| 4490 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4491 | rm -f conftest* |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4492 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4493 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4494 | $as_echo "$lt_cv_nm_interface" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4495 | |
| 4496 | # find the maximum length of command line arguments |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4497 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4498 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4499 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4500 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4501 | else |
| 4502 | i=0 |
| 4503 | teststring="ABCD" |
| 4504 | |
| 4505 | case $build_os in |
| 4506 | msdosdjgpp*) |
| 4507 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4508 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4509 | # during glob expansion). Even if it were fixed, the result of this |
| 4510 | # check would be larger than it should be. |
| 4511 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4512 | ;; |
| 4513 | |
| 4514 | gnu*) |
| 4515 | # Under GNU Hurd, this test is not required because there is |
| 4516 | # no limit to the length of command line arguments. |
| 4517 | # Libtool will interpret -1 as no limit whatsoever |
| 4518 | lt_cv_sys_max_cmd_len=-1; |
| 4519 | ;; |
| 4520 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4521 | cygwin* | mingw* | cegcc*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4522 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4523 | # about 5 minutes as the teststring grows exponentially. |
| 4524 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4525 | # you end up with a "frozen" computer, even though with patience |
| 4526 | # the test eventually succeeds (with a max line length of 256k). |
| 4527 | # Instead, let's just punt: use the minimum linelength reported by |
| 4528 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4529 | lt_cv_sys_max_cmd_len=8192; |
| 4530 | ;; |
| 4531 | |
| 4532 | amigaos*) |
| 4533 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4534 | # So we just punt and use a minimum line length of 8192. |
| 4535 | lt_cv_sys_max_cmd_len=8192; |
| 4536 | ;; |
| 4537 | |
| 4538 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4539 | # This has been around since 386BSD, at least. Likely further. |
| 4540 | if test -x /sbin/sysctl; then |
| 4541 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4542 | elif test -x /usr/sbin/sysctl; then |
| 4543 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4544 | else |
| 4545 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4546 | fi |
| 4547 | # And add a safety zone |
| 4548 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4549 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4550 | ;; |
| 4551 | |
| 4552 | interix*) |
| 4553 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4554 | lt_cv_sys_max_cmd_len=196608 |
| 4555 | ;; |
| 4556 | |
| 4557 | osf*) |
| 4558 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4559 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4560 | # nice to cause kernel panics so lets avoid the loop below. |
| 4561 | # First set a reasonable default. |
| 4562 | lt_cv_sys_max_cmd_len=16384 |
| 4563 | # |
| 4564 | if test -x /sbin/sysconfig; then |
| 4565 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4566 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4567 | esac |
| 4568 | fi |
| 4569 | ;; |
| 4570 | sco3.2v5*) |
| 4571 | lt_cv_sys_max_cmd_len=102400 |
| 4572 | ;; |
| 4573 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4574 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4575 | if test -n "$kargmax"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4576 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4577 | else |
| 4578 | lt_cv_sys_max_cmd_len=32768 |
| 4579 | fi |
| 4580 | ;; |
| 4581 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4582 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4583 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4584 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4585 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4586 | else |
| 4587 | # Make teststring a little bigger before we do anything with it. |
| 4588 | # a 1K string should be a reasonable start. |
| 4589 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4590 | teststring=$teststring$teststring |
| 4591 | done |
| 4592 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4593 | # If test is not a shell built-in, we'll probably end up computing a |
| 4594 | # maximum length that is only half of the actual maximum length, but |
| 4595 | # we can't tell. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4596 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 4597 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4598 | test $i != 17 # 1/2 MB should be enough |
| 4599 | do |
| 4600 | i=`expr $i + 1` |
| 4601 | teststring=$teststring$teststring |
| 4602 | done |
| 4603 | # Only check the string length outside the loop. |
| 4604 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4605 | teststring= |
| 4606 | # Add a significant safety factor because C++ compilers can tack on |
| 4607 | # massive amounts of additional arguments before passing them to the |
| 4608 | # linker. It appears as though 1/2 is a usable value. |
| 4609 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4610 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4611 | ;; |
| 4612 | esac |
| 4613 | |
| 4614 | fi |
| 4615 | |
| 4616 | if test -n $lt_cv_sys_max_cmd_len ; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4617 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4618 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4619 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4620 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4621 | $as_echo "none" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4622 | fi |
| 4623 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4624 | |
| 4625 | |
| 4626 | |
| 4627 | |
| 4628 | |
| 4629 | |
| 4630 | : ${CP="cp -f"} |
| 4631 | : ${MV="mv -f"} |
| 4632 | : ${RM="rm -f"} |
| 4633 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4634 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4635 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4636 | # Try some XSI features |
| 4637 | xsi_shell=no |
| 4638 | ( _lt_dummy="a/b/c" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4639 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 4640 | = c,a/b,, \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4641 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4642 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4643 | && xsi_shell=yes |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4644 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4645 | $as_echo "$xsi_shell" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4646 | |
| 4647 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4648 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4649 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4650 | lt_shell_append=no |
| 4651 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4652 | >/dev/null 2>&1 \ |
| 4653 | && lt_shell_append=yes |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4654 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4655 | $as_echo "$lt_shell_append" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4656 | |
| 4657 | |
| 4658 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4659 | lt_unset=unset |
| 4660 | else |
| 4661 | lt_unset=false |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4662 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4667 | |
| 4668 | # test EBCDIC or ASCII |
| 4669 | case `echo X|tr X '\101'` in |
| 4670 | A) # ASCII based system |
| 4671 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4672 | lt_SP2NL='tr \040 \012' |
| 4673 | lt_NL2SP='tr \015\012 \040\040' |
| 4674 | ;; |
| 4675 | *) # EBCDIC based system |
| 4676 | lt_SP2NL='tr \100 \n' |
| 4677 | lt_NL2SP='tr \r\n \100\100' |
| 4678 | ;; |
| 4679 | esac |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4689 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4690 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4691 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4692 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4693 | else |
| 4694 | lt_cv_ld_reload_flag='-r' |
| 4695 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4696 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4697 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4698 | reload_flag=$lt_cv_ld_reload_flag |
| 4699 | case $reload_flag in |
| 4700 | "" | " "*) ;; |
| 4701 | *) reload_flag=" $reload_flag" ;; |
| 4702 | esac |
| 4703 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4704 | case $host_os in |
| 4705 | darwin*) |
| 4706 | if test "$GCC" = yes; then |
| 4707 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4708 | else |
| 4709 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4710 | fi |
| 4711 | ;; |
| 4712 | esac |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4722 | if test -n "$ac_tool_prefix"; then |
| 4723 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4724 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4725 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4726 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4727 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4728 | $as_echo_n "(cached) " >&6 |
| 4729 | else |
| 4730 | if test -n "$OBJDUMP"; then |
| 4731 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4732 | else |
| 4733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4734 | for as_dir in $PATH |
| 4735 | do |
| 4736 | IFS=$as_save_IFS |
| 4737 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4740 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4741 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4742 | break 2 |
| 4743 | fi |
| 4744 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4745 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4746 | IFS=$as_save_IFS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4747 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4748 | fi |
| 4749 | fi |
| 4750 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4751 | if test -n "$OBJDUMP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4752 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4753 | $as_echo "$OBJDUMP" >&6; } |
| 4754 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4755 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4756 | $as_echo "no" >&6; } |
| 4757 | fi |
| 4758 | |
| 4759 | |
| 4760 | fi |
| 4761 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4762 | ac_ct_OBJDUMP=$OBJDUMP |
| 4763 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4764 | set dummy objdump; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4765 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4766 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4767 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4768 | $as_echo_n "(cached) " >&6 |
| 4769 | else |
| 4770 | if test -n "$ac_ct_OBJDUMP"; then |
| 4771 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4772 | else |
| 4773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4774 | for as_dir in $PATH |
| 4775 | do |
| 4776 | IFS=$as_save_IFS |
| 4777 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4780 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4781 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4782 | break 2 |
| 4783 | fi |
| 4784 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4785 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4786 | IFS=$as_save_IFS |
| 4787 | |
| 4788 | fi |
| 4789 | fi |
| 4790 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4791 | if test -n "$ac_ct_OBJDUMP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4792 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4793 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4794 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4795 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4796 | $as_echo "no" >&6; } |
| 4797 | fi |
| 4798 | |
| 4799 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4800 | OBJDUMP="false" |
| 4801 | else |
| 4802 | case $cross_compiling:$ac_tool_warned in |
| 4803 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4804 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4806 | ac_tool_warned=yes ;; |
| 4807 | esac |
| 4808 | OBJDUMP=$ac_ct_OBJDUMP |
| 4809 | fi |
| 4810 | else |
| 4811 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4812 | fi |
| 4813 | |
| 4814 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | |
| 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4824 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4825 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4826 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4827 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4828 | else |
| 4829 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4830 | lt_cv_file_magic_test_file= |
| 4831 | lt_cv_deplibs_check_method='unknown' |
| 4832 | # Need to set the preceding variable on all platforms that support |
| 4833 | # interlibrary dependencies. |
| 4834 | # 'none' -- dependencies not supported. |
| 4835 | # `unknown' -- same as none, but documents that we really don't know. |
| 4836 | # 'pass_all' -- all dependencies passed with no checks. |
| 4837 | # 'test_compile' -- check by making test program. |
| 4838 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4839 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4840 | # If you have `file' or equivalent on your system and you're not sure |
| 4841 | # whether `pass_all' will *always* work, you probably want this one. |
| 4842 | |
| 4843 | case $host_os in |
| 4844 | aix[4-9]*) |
| 4845 | lt_cv_deplibs_check_method=pass_all |
| 4846 | ;; |
| 4847 | |
| 4848 | beos*) |
| 4849 | lt_cv_deplibs_check_method=pass_all |
| 4850 | ;; |
| 4851 | |
| 4852 | bsdi[45]*) |
| 4853 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4854 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4855 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4856 | ;; |
| 4857 | |
| 4858 | cygwin*) |
| 4859 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4860 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4861 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4862 | ;; |
| 4863 | |
| 4864 | mingw* | pw32*) |
| 4865 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4866 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4867 | # unless we find 'file', for example because we are cross-compiling. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4868 | if ( file / ) >/dev/null 2>&1; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4869 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4870 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4871 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4872 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4873 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4874 | fi |
| 4875 | ;; |
| 4876 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4877 | cegcc) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4878 | # use the weaker test based on 'objdump'. See mingw*. |
| 4879 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 4880 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4881 | ;; |
| 4882 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4883 | darwin* | rhapsody*) |
| 4884 | lt_cv_deplibs_check_method=pass_all |
| 4885 | ;; |
| 4886 | |
| 4887 | freebsd* | dragonfly*) |
| 4888 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4889 | case $host_cpu in |
| 4890 | i*86 ) |
| 4891 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4892 | # Let's accept both of them until this is cleared up. |
| 4893 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4894 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4895 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4896 | ;; |
| 4897 | esac |
| 4898 | else |
| 4899 | lt_cv_deplibs_check_method=pass_all |
| 4900 | fi |
| 4901 | ;; |
| 4902 | |
| 4903 | gnu*) |
| 4904 | lt_cv_deplibs_check_method=pass_all |
| 4905 | ;; |
| 4906 | |
| 4907 | hpux10.20* | hpux11*) |
| 4908 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4909 | case $host_cpu in |
| 4910 | ia64*) |
| 4911 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4912 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4913 | ;; |
| 4914 | hppa*64*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4915 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4916 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4917 | ;; |
| 4918 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4919 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4920 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4921 | ;; |
| 4922 | esac |
| 4923 | ;; |
| 4924 | |
| 4925 | interix[3-9]*) |
| 4926 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4927 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4928 | ;; |
| 4929 | |
| 4930 | irix5* | irix6* | nonstopux*) |
| 4931 | case $LD in |
| 4932 | *-32|*"-32 ") libmagic=32-bit;; |
| 4933 | *-n32|*"-n32 ") libmagic=N32;; |
| 4934 | *-64|*"-64 ") libmagic=64-bit;; |
| 4935 | *) libmagic=never-match;; |
| 4936 | esac |
| 4937 | lt_cv_deplibs_check_method=pass_all |
| 4938 | ;; |
| 4939 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 4940 | # This must be Linux ELF. |
| 4941 | linux* | k*bsd*-gnu) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4942 | lt_cv_deplibs_check_method=pass_all |
| 4943 | ;; |
| 4944 | |
| 4945 | netbsd*) |
| 4946 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4947 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4948 | else |
| 4949 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4950 | fi |
| 4951 | ;; |
| 4952 | |
| 4953 | newos6*) |
| 4954 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4955 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4956 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4957 | ;; |
| 4958 | |
| 4959 | *nto* | *qnx*) |
| 4960 | lt_cv_deplibs_check_method=pass_all |
| 4961 | ;; |
| 4962 | |
| 4963 | openbsd*) |
| 4964 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4965 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4966 | else |
| 4967 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4968 | fi |
| 4969 | ;; |
| 4970 | |
| 4971 | osf3* | osf4* | osf5*) |
| 4972 | lt_cv_deplibs_check_method=pass_all |
| 4973 | ;; |
| 4974 | |
| 4975 | rdos*) |
| 4976 | lt_cv_deplibs_check_method=pass_all |
| 4977 | ;; |
| 4978 | |
| 4979 | solaris*) |
| 4980 | lt_cv_deplibs_check_method=pass_all |
| 4981 | ;; |
| 4982 | |
| 4983 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4984 | lt_cv_deplibs_check_method=pass_all |
| 4985 | ;; |
| 4986 | |
| 4987 | sysv4 | sysv4.3*) |
| 4988 | case $host_vendor in |
| 4989 | motorola) |
| 4990 | 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]' |
| 4991 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4992 | ;; |
| 4993 | ncr) |
| 4994 | lt_cv_deplibs_check_method=pass_all |
| 4995 | ;; |
| 4996 | sequent) |
| 4997 | lt_cv_file_magic_cmd='/bin/file' |
| 4998 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4999 | ;; |
| 5000 | sni) |
| 5001 | lt_cv_file_magic_cmd='/bin/file' |
| 5002 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5003 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5004 | ;; |
| 5005 | siemens) |
| 5006 | lt_cv_deplibs_check_method=pass_all |
| 5007 | ;; |
| 5008 | pc) |
| 5009 | lt_cv_deplibs_check_method=pass_all |
| 5010 | ;; |
| 5011 | esac |
| 5012 | ;; |
| 5013 | |
| 5014 | tpf*) |
| 5015 | lt_cv_deplibs_check_method=pass_all |
| 5016 | ;; |
| 5017 | esac |
| 5018 | |
| 5019 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5020 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5021 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5022 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5023 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5024 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5025 | |
| 5026 | |
| 5027 | |
| 5028 | |
| 5029 | |
| 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | |
| 5035 | |
| 5036 | |
| 5037 | if test -n "$ac_tool_prefix"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5038 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5039 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5040 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5041 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5042 | if test "${ac_cv_prog_AR+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5043 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5044 | else |
| 5045 | if test -n "$AR"; then |
| 5046 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5047 | else |
| 5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5049 | for as_dir in $PATH |
| 5050 | do |
| 5051 | IFS=$as_save_IFS |
| 5052 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5053 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5055 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5056 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5057 | break 2 |
| 5058 | fi |
| 5059 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5060 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5061 | IFS=$as_save_IFS |
| 5062 | |
| 5063 | fi |
| 5064 | fi |
| 5065 | AR=$ac_cv_prog_AR |
| 5066 | if test -n "$AR"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5067 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5068 | $as_echo "$AR" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5069 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5070 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5071 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5072 | fi |
| 5073 | |
| 5074 | |
| 5075 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5076 | if test -z "$ac_cv_prog_AR"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5077 | ac_ct_AR=$AR |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5078 | # Extract the first word of "ar", so it can be a program name with args. |
| 5079 | set dummy ar; ac_word=$2 |
| 5080 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5081 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5082 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5083 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5084 | else |
| 5085 | if test -n "$ac_ct_AR"; then |
| 5086 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5087 | else |
| 5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5089 | for as_dir in $PATH |
| 5090 | do |
| 5091 | IFS=$as_save_IFS |
| 5092 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5093 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5095 | ac_cv_prog_ac_ct_AR="ar" |
| 5096 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5097 | break 2 |
| 5098 | fi |
| 5099 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5100 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5101 | IFS=$as_save_IFS |
| 5102 | |
| 5103 | fi |
| 5104 | fi |
| 5105 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5106 | if test -n "$ac_ct_AR"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5107 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5108 | $as_echo "$ac_ct_AR" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5109 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5110 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5111 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5112 | fi |
| 5113 | |
| 5114 | if test "x$ac_ct_AR" = x; then |
| 5115 | AR="false" |
| 5116 | else |
| 5117 | case $cross_compiling:$ac_tool_warned in |
| 5118 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5119 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5121 | ac_tool_warned=yes ;; |
| 5122 | esac |
| 5123 | AR=$ac_ct_AR |
| 5124 | fi |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5125 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5126 | AR="$ac_cv_prog_AR" |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5127 | fi |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5128 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5129 | test -z "$AR" && AR=ar |
| 5130 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5131 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5132 | |
| 5133 | |
| 5134 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5135 | |
| 5136 | |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5142 | if test -n "$ac_tool_prefix"; then |
| 5143 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5144 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5146 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5147 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5148 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5149 | else |
| 5150 | if test -n "$STRIP"; then |
| 5151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5152 | else |
| 5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5154 | for as_dir in $PATH |
| 5155 | do |
| 5156 | IFS=$as_save_IFS |
| 5157 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5160 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5161 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5162 | break 2 |
| 5163 | fi |
| 5164 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5165 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5166 | IFS=$as_save_IFS |
| 5167 | |
| 5168 | fi |
| 5169 | fi |
| 5170 | STRIP=$ac_cv_prog_STRIP |
| 5171 | if test -n "$STRIP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5172 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5173 | $as_echo "$STRIP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5174 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5176 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5177 | fi |
| 5178 | |
| 5179 | |
| 5180 | fi |
| 5181 | if test -z "$ac_cv_prog_STRIP"; then |
| 5182 | ac_ct_STRIP=$STRIP |
| 5183 | # Extract the first word of "strip", so it can be a program name with args. |
| 5184 | set dummy strip; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5185 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5186 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5187 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5188 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5189 | else |
| 5190 | if test -n "$ac_ct_STRIP"; then |
| 5191 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5192 | else |
| 5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5194 | for as_dir in $PATH |
| 5195 | do |
| 5196 | IFS=$as_save_IFS |
| 5197 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5200 | ac_cv_prog_ac_ct_STRIP="strip" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5201 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5202 | break 2 |
| 5203 | fi |
| 5204 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5205 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5206 | IFS=$as_save_IFS |
| 5207 | |
| 5208 | fi |
| 5209 | fi |
| 5210 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5211 | if test -n "$ac_ct_STRIP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5212 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5213 | $as_echo "$ac_ct_STRIP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5214 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5215 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5216 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5217 | fi |
| 5218 | |
| 5219 | if test "x$ac_ct_STRIP" = x; then |
| 5220 | STRIP=":" |
| 5221 | else |
| 5222 | case $cross_compiling:$ac_tool_warned in |
| 5223 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5224 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5226 | ac_tool_warned=yes ;; |
| 5227 | esac |
| 5228 | STRIP=$ac_ct_STRIP |
| 5229 | fi |
| 5230 | else |
| 5231 | STRIP="$ac_cv_prog_STRIP" |
| 5232 | fi |
| 5233 | |
| 5234 | test -z "$STRIP" && STRIP=: |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | |
| 5241 | if test -n "$ac_tool_prefix"; then |
| 5242 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5243 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5244 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5245 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5246 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5247 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5248 | else |
| 5249 | if test -n "$RANLIB"; then |
| 5250 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5251 | else |
| 5252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5253 | for as_dir in $PATH |
| 5254 | do |
| 5255 | IFS=$as_save_IFS |
| 5256 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5259 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5260 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5261 | break 2 |
| 5262 | fi |
| 5263 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5264 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5265 | IFS=$as_save_IFS |
| 5266 | |
| 5267 | fi |
| 5268 | fi |
| 5269 | RANLIB=$ac_cv_prog_RANLIB |
| 5270 | if test -n "$RANLIB"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5271 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5272 | $as_echo "$RANLIB" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5273 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5274 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5275 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | fi |
| 5280 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5281 | ac_ct_RANLIB=$RANLIB |
| 5282 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5283 | set dummy ranlib; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5284 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5285 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5286 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5287 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5288 | else |
| 5289 | if test -n "$ac_ct_RANLIB"; then |
| 5290 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5291 | else |
| 5292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5293 | for as_dir in $PATH |
| 5294 | do |
| 5295 | IFS=$as_save_IFS |
| 5296 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5299 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5300 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5301 | break 2 |
| 5302 | fi |
| 5303 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5304 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5305 | IFS=$as_save_IFS |
| 5306 | |
| 5307 | fi |
| 5308 | fi |
| 5309 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5310 | if test -n "$ac_ct_RANLIB"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5311 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5312 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5313 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5314 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5315 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5316 | fi |
| 5317 | |
| 5318 | if test "x$ac_ct_RANLIB" = x; then |
| 5319 | RANLIB=":" |
| 5320 | else |
| 5321 | case $cross_compiling:$ac_tool_warned in |
| 5322 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5323 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5324 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5325 | ac_tool_warned=yes ;; |
| 5326 | esac |
| 5327 | RANLIB=$ac_ct_RANLIB |
| 5328 | fi |
| 5329 | else |
| 5330 | RANLIB="$ac_cv_prog_RANLIB" |
| 5331 | fi |
| 5332 | |
| 5333 | test -z "$RANLIB" && RANLIB=: |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | # Determine commands to create old-style static archives. |
| 5341 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5342 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5343 | old_postuninstall_cmds= |
| 5344 | |
| 5345 | if test -n "$RANLIB"; then |
| 5346 | case $host_os in |
| 5347 | openbsd*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5348 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5349 | ;; |
| 5350 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5351 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5352 | ;; |
| 5353 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5354 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5355 | fi |
| 5356 | |
| 5357 | |
| 5358 | |
| 5359 | |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | # If no C compiler was specified, use CC. |
| 5391 | LTCC=${LTCC-"$CC"} |
| 5392 | |
| 5393 | # If no C compiler flags were specified, use CFLAGS. |
| 5394 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5395 | |
| 5396 | # Allow CC to be a program name with arguments. |
| 5397 | compiler=$CC |
| 5398 | |
| 5399 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5400 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5401 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5402 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5403 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5404 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5405 | else |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5406 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5407 | # These are sane defaults that work on at least a few old systems. |
| 5408 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5409 | |
| 5410 | # Character class describing NM global symbol codes. |
| 5411 | symcode='[BCDEGRST]' |
| 5412 | |
| 5413 | # Regexp to match symbols that can be accessed directly from C. |
| 5414 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5415 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5416 | # Define system-specific variables. |
| 5417 | case $host_os in |
| 5418 | aix*) |
| 5419 | symcode='[BCDT]' |
| 5420 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5421 | cygwin* | mingw* | pw32* | cegcc*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5422 | symcode='[ABCDGISTW]' |
| 5423 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5424 | hpux*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5425 | if test "$host_cpu" = ia64; then |
| 5426 | symcode='[ABCDEGRST]' |
| 5427 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5428 | ;; |
| 5429 | irix* | nonstopux*) |
| 5430 | symcode='[BCDEGRST]' |
| 5431 | ;; |
| 5432 | osf*) |
| 5433 | symcode='[BCDEGQRST]' |
| 5434 | ;; |
| 5435 | solaris*) |
| 5436 | symcode='[BDRT]' |
| 5437 | ;; |
| 5438 | sco3.2v5*) |
| 5439 | symcode='[DT]' |
| 5440 | ;; |
| 5441 | sysv4.2uw2*) |
| 5442 | symcode='[DT]' |
| 5443 | ;; |
| 5444 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5445 | symcode='[ABDT]' |
| 5446 | ;; |
| 5447 | sysv4) |
| 5448 | symcode='[DFNSTU]' |
| 5449 | ;; |
| 5450 | esac |
| 5451 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5452 | # If we're using GNU nm, then use its standard symbol codes. |
| 5453 | case `$NM -V 2>&1` in |
| 5454 | *GNU* | *'with BFD'*) |
| 5455 | symcode='[ABCDGIRSTW]' ;; |
| 5456 | esac |
| 5457 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5458 | # Transform an extracted symbol line into a proper C declaration. |
| 5459 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5460 | # so use this general approach. |
| 5461 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5462 | |
| 5463 | # Transform an extracted symbol line into symbol name and symbol address |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5464 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5465 | 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'" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5466 | |
| 5467 | # Handle CRLF in mingw tool chain |
| 5468 | opt_cr= |
| 5469 | case $build_os in |
| 5470 | mingw*) |
| 5471 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5472 | ;; |
| 5473 | esac |
| 5474 | |
| 5475 | # Try without a prefix underscore, then with it. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5476 | for ac_symprfx in "" "_"; do |
| 5477 | |
| 5478 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5479 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5480 | |
| 5481 | # Write the raw and C identifiers. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5482 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5483 | # Fake it for dumpbin and say T for any non-static function |
| 5484 | # and D for any global variable. |
| 5485 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5486 | # which start with @ or ?. |
| 5487 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5488 | " {last_section=section; section=\$ 3};"\ |
| 5489 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5490 | " \$ 0!~/External *\|/{next};"\ |
| 5491 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5492 | " {if(hide[section]) next};"\ |
| 5493 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5494 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5495 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5496 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5497 | " ' prfx=^$ac_symprfx" |
| 5498 | else |
| 5499 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5500 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5501 | |
| 5502 | # Check to see that the pipe works correctly. |
| 5503 | pipe_works=no |
| 5504 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5505 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5506 | cat > conftest.$ac_ext <<_LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5507 | #ifdef __cplusplus |
| 5508 | extern "C" { |
| 5509 | #endif |
| 5510 | char nm_test_var; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5511 | void nm_test_func(void); |
| 5512 | void nm_test_func(void){} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5513 | #ifdef __cplusplus |
| 5514 | } |
| 5515 | #endif |
| 5516 | int main(){nm_test_var='a';nm_test_func();return(0);} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5517 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5518 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5520 | (eval $ac_compile) 2>&5 |
| 5521 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5523 | (exit $ac_status); }; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5524 | # Now try to grab the symbols. |
| 5525 | nlist=conftest.nm |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5526 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5527 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5528 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5530 | (exit $ac_status); } && test -s "$nlist"; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5531 | # Try sorting and uniquifying the output. |
| 5532 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5533 | mv -f "$nlist"T "$nlist" |
| 5534 | else |
| 5535 | rm -f "$nlist"T |
| 5536 | fi |
| 5537 | |
| 5538 | # Make sure that we snagged all the symbols we need. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5539 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5540 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5541 | cat <<_LT_EOF > conftest.$ac_ext |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5542 | #ifdef __cplusplus |
| 5543 | extern "C" { |
| 5544 | #endif |
| 5545 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5546 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5547 | # Now generate the symbol file. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5548 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5549 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5550 | cat <<_LT_EOF >> conftest.$ac_ext |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5551 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5552 | /* The mapping between symbol names and symbols. */ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5553 | const struct { |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5554 | const char *name; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5555 | void *address; |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5556 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5557 | lt__PROGRAM__LTX_preloaded_symbols[] = |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5558 | { |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5559 | { "@PROGRAM@", (void *) 0 }, |
| 5560 | _LT_EOF |
| 5561 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5562 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5563 | {0, (void *) 0} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5564 | }; |
| 5565 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5566 | /* This works around a problem in FreeBSD linker */ |
| 5567 | #ifdef FREEBSD_WORKAROUND |
| 5568 | static const void *lt_preloaded_setup() { |
| 5569 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5570 | } |
| 5571 | #endif |
| 5572 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5573 | #ifdef __cplusplus |
| 5574 | } |
| 5575 | #endif |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5576 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5577 | # Now try linking the two files. |
| 5578 | mv conftest.$ac_objext conftstm.$ac_objext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5579 | lt_save_LIBS="$LIBS" |
| 5580 | lt_save_CFLAGS="$CFLAGS" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5581 | LIBS="conftstm.$ac_objext" |
| 5582 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5584 | (eval $ac_link) 2>&5 |
| 5585 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5587 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5588 | pipe_works=yes |
| 5589 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5590 | LIBS="$lt_save_LIBS" |
| 5591 | CFLAGS="$lt_save_CFLAGS" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5592 | else |
| 5593 | echo "cannot find nm_test_func in $nlist" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5594 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5595 | else |
| 5596 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5597 | fi |
| 5598 | else |
| 5599 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5600 | fi |
| 5601 | else |
| 5602 | echo "$progname: failed program was:" >&5 |
| 5603 | cat conftest.$ac_ext >&5 |
| 5604 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5605 | rm -rf conftest* conftst* |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5606 | |
| 5607 | # Do not use the global_symbol_pipe unless it works. |
| 5608 | if test "$pipe_works" = yes; then |
| 5609 | break |
| 5610 | else |
| 5611 | lt_cv_sys_global_symbol_pipe= |
| 5612 | fi |
| 5613 | done |
| 5614 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5615 | fi |
| 5616 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5617 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5618 | lt_cv_sys_global_symbol_to_cdecl= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5619 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5620 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5621 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5622 | $as_echo "failed" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5623 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5624 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5625 | $as_echo "ok" >&6; } |
| 5626 | fi |
| 5627 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5628 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5629 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | |
| 5648 | |
| 5649 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5650 | # Check whether --enable-libtool-lock was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5651 | if test "${enable_libtool_lock+set}" = set; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5652 | enableval=$enable_libtool_lock; |
| 5653 | fi |
| 5654 | |
| 5655 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5656 | |
| 5657 | # Some flags need to be propagated to the compiler or linker for good |
| 5658 | # libtool support. |
| 5659 | case $host in |
| 5660 | ia64-*-hpux*) |
| 5661 | # Find out which ABI we are using. |
| 5662 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5664 | (eval $ac_compile) 2>&5 |
| 5665 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5667 | (exit $ac_status); }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5668 | case `/usr/bin/file conftest.$ac_objext` in |
| 5669 | *ELF-32*) |
| 5670 | HPUX_IA64_MODE="32" |
| 5671 | ;; |
| 5672 | *ELF-64*) |
| 5673 | HPUX_IA64_MODE="64" |
| 5674 | ;; |
| 5675 | esac |
| 5676 | fi |
| 5677 | rm -rf conftest* |
| 5678 | ;; |
| 5679 | *-*-irix6*) |
| 5680 | # Find out which ABI we are using. |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 5681 | echo '#line 5681 "configure"' > conftest.$ac_ext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5683 | (eval $ac_compile) 2>&5 |
| 5684 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5686 | (exit $ac_status); }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5687 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5688 | case `/usr/bin/file conftest.$ac_objext` in |
| 5689 | *32-bit*) |
| 5690 | LD="${LD-ld} -melf32bsmip" |
| 5691 | ;; |
| 5692 | *N32*) |
| 5693 | LD="${LD-ld} -melf32bmipn32" |
| 5694 | ;; |
| 5695 | *64-bit*) |
| 5696 | LD="${LD-ld} -melf64bmip" |
| 5697 | ;; |
| 5698 | esac |
| 5699 | else |
| 5700 | case `/usr/bin/file conftest.$ac_objext` in |
| 5701 | *32-bit*) |
| 5702 | LD="${LD-ld} -32" |
| 5703 | ;; |
| 5704 | *N32*) |
| 5705 | LD="${LD-ld} -n32" |
| 5706 | ;; |
| 5707 | *64-bit*) |
| 5708 | LD="${LD-ld} -64" |
| 5709 | ;; |
| 5710 | esac |
| 5711 | fi |
| 5712 | fi |
| 5713 | rm -rf conftest* |
| 5714 | ;; |
| 5715 | |
| 5716 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 5717 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 5718 | # Find out which ABI we are using. |
| 5719 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5721 | (eval $ac_compile) 2>&5 |
| 5722 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5724 | (exit $ac_status); }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5725 | case `/usr/bin/file conftest.o` in |
| 5726 | *32-bit*) |
| 5727 | case $host in |
| 5728 | x86_64-*kfreebsd*-gnu) |
| 5729 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5730 | ;; |
| 5731 | x86_64-*linux*) |
| 5732 | LD="${LD-ld} -m elf_i386" |
| 5733 | ;; |
| 5734 | ppc64-*linux*|powerpc64-*linux*) |
| 5735 | LD="${LD-ld} -m elf32ppclinux" |
| 5736 | ;; |
| 5737 | s390x-*linux*) |
| 5738 | LD="${LD-ld} -m elf_s390" |
| 5739 | ;; |
| 5740 | sparc64-*linux*) |
| 5741 | LD="${LD-ld} -m elf32_sparc" |
| 5742 | ;; |
| 5743 | esac |
| 5744 | ;; |
| 5745 | *64-bit*) |
| 5746 | case $host in |
| 5747 | x86_64-*kfreebsd*-gnu) |
| 5748 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5749 | ;; |
| 5750 | x86_64-*linux*) |
| 5751 | LD="${LD-ld} -m elf_x86_64" |
| 5752 | ;; |
| 5753 | ppc*-*linux*|powerpc*-*linux*) |
| 5754 | LD="${LD-ld} -m elf64ppc" |
| 5755 | ;; |
| 5756 | s390*-*linux*|s390*-*tpf*) |
| 5757 | LD="${LD-ld} -m elf64_s390" |
| 5758 | ;; |
| 5759 | sparc*-*linux*) |
| 5760 | LD="${LD-ld} -m elf64_sparc" |
| 5761 | ;; |
| 5762 | esac |
| 5763 | ;; |
| 5764 | esac |
| 5765 | fi |
| 5766 | rm -rf conftest* |
| 5767 | ;; |
| 5768 | |
| 5769 | *-*-sco3.2v5*) |
| 5770 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5771 | SAVE_CFLAGS="$CFLAGS" |
| 5772 | CFLAGS="$CFLAGS -belf" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5773 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5774 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5775 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5776 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5777 | else |
| 5778 | ac_ext=c |
| 5779 | ac_cpp='$CPP $CPPFLAGS' |
| 5780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5783 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5784 | cat >conftest.$ac_ext <<_ACEOF |
| 5785 | /* confdefs.h. */ |
| 5786 | _ACEOF |
| 5787 | cat confdefs.h >>conftest.$ac_ext |
| 5788 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5789 | /* end confdefs.h. */ |
| 5790 | |
| 5791 | int |
| 5792 | main () |
| 5793 | { |
| 5794 | |
| 5795 | ; |
| 5796 | return 0; |
| 5797 | } |
| 5798 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5800 | if { (ac_try="$ac_link" |
| 5801 | case "(($ac_try" in |
| 5802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5803 | *) ac_try_echo=$ac_try;; |
| 5804 | esac |
| 5805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5806 | $as_echo "$ac_try_echo") >&5 |
| 5807 | (eval "$ac_link") 2>conftest.er1 |
| 5808 | ac_status=$? |
| 5809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5810 | rm -f conftest.er1 |
| 5811 | cat conftest.err >&5 |
| 5812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5813 | (exit $ac_status); } && { |
| 5814 | test -z "$ac_c_werror_flag" || |
| 5815 | test ! -s conftest.err |
| 5816 | } && test -s conftest$ac_exeext && { |
| 5817 | test "$cross_compiling" = yes || |
| 5818 | $as_test_x conftest$ac_exeext |
| 5819 | }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5820 | lt_cv_cc_needs_belf=yes |
| 5821 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5822 | $as_echo "$as_me: failed program was:" >&5 |
| 5823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5824 | |
| 5825 | lt_cv_cc_needs_belf=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5826 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5827 | |
| 5828 | rm -rf conftest.dSYM |
| 5829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5830 | conftest$ac_exeext conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5831 | ac_ext=c |
| 5832 | ac_cpp='$CPP $CPPFLAGS' |
| 5833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5836 | |
| 5837 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5838 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5839 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5840 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5841 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5842 | CFLAGS="$SAVE_CFLAGS" |
| 5843 | fi |
| 5844 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5845 | sparc*-*solaris*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5846 | # Find out which ABI we are using. |
| 5847 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5849 | (eval $ac_compile) 2>&5 |
| 5850 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5852 | (exit $ac_status); }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5853 | case `/usr/bin/file conftest.o` in |
| 5854 | *64-bit*) |
| 5855 | case $lt_cv_prog_gnu_ld in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5856 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5857 | *) |
| 5858 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 5859 | LD="${LD-ld} -64" |
| 5860 | fi |
| 5861 | ;; |
| 5862 | esac |
| 5863 | ;; |
| 5864 | esac |
| 5865 | fi |
| 5866 | rm -rf conftest* |
| 5867 | ;; |
| 5868 | esac |
| 5869 | |
| 5870 | need_locks="$enable_libtool_lock" |
| 5871 | |
| 5872 | |
| 5873 | case $host_os in |
| 5874 | rhapsody* | darwin*) |
| 5875 | if test -n "$ac_tool_prefix"; then |
| 5876 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5877 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5878 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5879 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5880 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5881 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5882 | else |
| 5883 | if test -n "$DSYMUTIL"; then |
| 5884 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5885 | else |
| 5886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5887 | for as_dir in $PATH |
| 5888 | do |
| 5889 | IFS=$as_save_IFS |
| 5890 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5893 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5894 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5895 | break 2 |
| 5896 | fi |
| 5897 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5898 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5899 | IFS=$as_save_IFS |
| 5900 | |
| 5901 | fi |
| 5902 | fi |
| 5903 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5904 | if test -n "$DSYMUTIL"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5905 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5906 | $as_echo "$DSYMUTIL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5907 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5908 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5909 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5910 | fi |
| 5911 | |
| 5912 | |
| 5913 | fi |
| 5914 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5915 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 5916 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 5917 | set dummy dsymutil; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5918 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5919 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5920 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5921 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5922 | else |
| 5923 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5924 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5925 | else |
| 5926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5927 | for as_dir in $PATH |
| 5928 | do |
| 5929 | IFS=$as_save_IFS |
| 5930 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5931 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5933 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5934 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5935 | break 2 |
| 5936 | fi |
| 5937 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5938 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5939 | IFS=$as_save_IFS |
| 5940 | |
| 5941 | fi |
| 5942 | fi |
| 5943 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5944 | if test -n "$ac_ct_DSYMUTIL"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5945 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5946 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5947 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5948 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5949 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5950 | fi |
| 5951 | |
| 5952 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 5953 | DSYMUTIL=":" |
| 5954 | else |
| 5955 | case $cross_compiling:$ac_tool_warned in |
| 5956 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5957 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5958 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5959 | ac_tool_warned=yes ;; |
| 5960 | esac |
| 5961 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 5962 | fi |
| 5963 | else |
| 5964 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5965 | fi |
| 5966 | |
| 5967 | if test -n "$ac_tool_prefix"; then |
| 5968 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5969 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5970 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5971 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5972 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5973 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5974 | else |
| 5975 | if test -n "$NMEDIT"; then |
| 5976 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5977 | else |
| 5978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5979 | for as_dir in $PATH |
| 5980 | do |
| 5981 | IFS=$as_save_IFS |
| 5982 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5985 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5986 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5987 | break 2 |
| 5988 | fi |
| 5989 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5990 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5991 | IFS=$as_save_IFS |
| 5992 | |
| 5993 | fi |
| 5994 | fi |
| 5995 | NMEDIT=$ac_cv_prog_NMEDIT |
| 5996 | if test -n "$NMEDIT"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5997 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5998 | $as_echo "$NMEDIT" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5999 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6000 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6001 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6002 | fi |
| 6003 | |
| 6004 | |
| 6005 | fi |
| 6006 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6007 | ac_ct_NMEDIT=$NMEDIT |
| 6008 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6009 | set dummy nmedit; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6010 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6011 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6012 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6013 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6014 | else |
| 6015 | if test -n "$ac_ct_NMEDIT"; then |
| 6016 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6017 | else |
| 6018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6019 | for as_dir in $PATH |
| 6020 | do |
| 6021 | IFS=$as_save_IFS |
| 6022 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6025 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6026 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6027 | break 2 |
| 6028 | fi |
| 6029 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6030 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6031 | IFS=$as_save_IFS |
| 6032 | |
| 6033 | fi |
| 6034 | fi |
| 6035 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6036 | if test -n "$ac_ct_NMEDIT"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6037 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6038 | $as_echo "$ac_ct_NMEDIT" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6039 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6040 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6041 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6042 | fi |
| 6043 | |
| 6044 | if test "x$ac_ct_NMEDIT" = x; then |
| 6045 | NMEDIT=":" |
| 6046 | else |
| 6047 | case $cross_compiling:$ac_tool_warned in |
| 6048 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6049 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6051 | ac_tool_warned=yes ;; |
| 6052 | esac |
| 6053 | NMEDIT=$ac_ct_NMEDIT |
| 6054 | fi |
| 6055 | else |
| 6056 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6057 | fi |
| 6058 | |
| 6059 | if test -n "$ac_tool_prefix"; then |
| 6060 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6061 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6062 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6063 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6064 | if test "${ac_cv_prog_LIPO+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6065 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6066 | else |
| 6067 | if test -n "$LIPO"; then |
| 6068 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6069 | else |
| 6070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6071 | for as_dir in $PATH |
| 6072 | do |
| 6073 | IFS=$as_save_IFS |
| 6074 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6075 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6077 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6078 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6079 | break 2 |
| 6080 | fi |
| 6081 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6082 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6083 | IFS=$as_save_IFS |
| 6084 | |
| 6085 | fi |
| 6086 | fi |
| 6087 | LIPO=$ac_cv_prog_LIPO |
| 6088 | if test -n "$LIPO"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6089 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6090 | $as_echo "$LIPO" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6091 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6093 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6094 | fi |
| 6095 | |
| 6096 | |
| 6097 | fi |
| 6098 | if test -z "$ac_cv_prog_LIPO"; then |
| 6099 | ac_ct_LIPO=$LIPO |
| 6100 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6101 | set dummy lipo; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6103 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6104 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6105 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6106 | else |
| 6107 | if test -n "$ac_ct_LIPO"; then |
| 6108 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6109 | else |
| 6110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6111 | for as_dir in $PATH |
| 6112 | do |
| 6113 | IFS=$as_save_IFS |
| 6114 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6117 | ac_cv_prog_ac_ct_LIPO="lipo" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6118 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6119 | break 2 |
| 6120 | fi |
| 6121 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6122 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6123 | IFS=$as_save_IFS |
| 6124 | |
| 6125 | fi |
| 6126 | fi |
| 6127 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6128 | if test -n "$ac_ct_LIPO"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6129 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6130 | $as_echo "$ac_ct_LIPO" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6131 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6132 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6133 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6134 | fi |
| 6135 | |
| 6136 | if test "x$ac_ct_LIPO" = x; then |
| 6137 | LIPO=":" |
| 6138 | else |
| 6139 | case $cross_compiling:$ac_tool_warned in |
| 6140 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6141 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6143 | ac_tool_warned=yes ;; |
| 6144 | esac |
| 6145 | LIPO=$ac_ct_LIPO |
| 6146 | fi |
| 6147 | else |
| 6148 | LIPO="$ac_cv_prog_LIPO" |
| 6149 | fi |
| 6150 | |
| 6151 | if test -n "$ac_tool_prefix"; then |
| 6152 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6153 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6154 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6155 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6156 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6157 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6158 | else |
| 6159 | if test -n "$OTOOL"; then |
| 6160 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6161 | else |
| 6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6163 | for as_dir in $PATH |
| 6164 | do |
| 6165 | IFS=$as_save_IFS |
| 6166 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6167 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6169 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6170 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6171 | break 2 |
| 6172 | fi |
| 6173 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6174 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6175 | IFS=$as_save_IFS |
| 6176 | |
| 6177 | fi |
| 6178 | fi |
| 6179 | OTOOL=$ac_cv_prog_OTOOL |
| 6180 | if test -n "$OTOOL"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6181 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6182 | $as_echo "$OTOOL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6183 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6184 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6185 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6186 | fi |
| 6187 | |
| 6188 | |
| 6189 | fi |
| 6190 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6191 | ac_ct_OTOOL=$OTOOL |
| 6192 | # Extract the first word of "otool", so it can be a program name with args. |
| 6193 | set dummy otool; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6194 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6195 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6196 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6197 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6198 | else |
| 6199 | if test -n "$ac_ct_OTOOL"; then |
| 6200 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6201 | else |
| 6202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6203 | for as_dir in $PATH |
| 6204 | do |
| 6205 | IFS=$as_save_IFS |
| 6206 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6209 | ac_cv_prog_ac_ct_OTOOL="otool" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6210 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6211 | break 2 |
| 6212 | fi |
| 6213 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6214 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6215 | IFS=$as_save_IFS |
| 6216 | |
| 6217 | fi |
| 6218 | fi |
| 6219 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6220 | if test -n "$ac_ct_OTOOL"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6221 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6222 | $as_echo "$ac_ct_OTOOL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6223 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6224 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6225 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6226 | fi |
| 6227 | |
| 6228 | if test "x$ac_ct_OTOOL" = x; then |
| 6229 | OTOOL=":" |
| 6230 | else |
| 6231 | case $cross_compiling:$ac_tool_warned in |
| 6232 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6233 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6235 | ac_tool_warned=yes ;; |
| 6236 | esac |
| 6237 | OTOOL=$ac_ct_OTOOL |
| 6238 | fi |
| 6239 | else |
| 6240 | OTOOL="$ac_cv_prog_OTOOL" |
| 6241 | fi |
| 6242 | |
| 6243 | if test -n "$ac_tool_prefix"; then |
| 6244 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6245 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6246 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6247 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6248 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6249 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6250 | else |
| 6251 | if test -n "$OTOOL64"; then |
| 6252 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6253 | else |
| 6254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6255 | for as_dir in $PATH |
| 6256 | do |
| 6257 | IFS=$as_save_IFS |
| 6258 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6261 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6262 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6263 | break 2 |
| 6264 | fi |
| 6265 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6266 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6267 | IFS=$as_save_IFS |
| 6268 | |
| 6269 | fi |
| 6270 | fi |
| 6271 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6272 | if test -n "$OTOOL64"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6273 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6274 | $as_echo "$OTOOL64" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6275 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6277 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6278 | fi |
| 6279 | |
| 6280 | |
| 6281 | fi |
| 6282 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6283 | ac_ct_OTOOL64=$OTOOL64 |
| 6284 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6285 | set dummy otool64; ac_word=$2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6286 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6287 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6288 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6289 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6290 | else |
| 6291 | if test -n "$ac_ct_OTOOL64"; then |
| 6292 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6293 | else |
| 6294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6295 | for as_dir in $PATH |
| 6296 | do |
| 6297 | IFS=$as_save_IFS |
| 6298 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6299 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6301 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6302 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6303 | break 2 |
| 6304 | fi |
| 6305 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6306 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6307 | IFS=$as_save_IFS |
| 6308 | |
| 6309 | fi |
| 6310 | fi |
| 6311 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6312 | if test -n "$ac_ct_OTOOL64"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6313 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6314 | $as_echo "$ac_ct_OTOOL64" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6315 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6316 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6317 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6318 | fi |
| 6319 | |
| 6320 | if test "x$ac_ct_OTOOL64" = x; then |
| 6321 | OTOOL64=":" |
| 6322 | else |
| 6323 | case $cross_compiling:$ac_tool_warned in |
| 6324 | yes:) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6325 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6326 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6327 | ac_tool_warned=yes ;; |
| 6328 | esac |
| 6329 | OTOOL64=$ac_ct_OTOOL64 |
| 6330 | fi |
| 6331 | else |
| 6332 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6333 | fi |
| 6334 | |
| 6335 | |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | |
| 6340 | |
| 6341 | |
| 6342 | |
| 6343 | |
| 6344 | |
| 6345 | |
| 6346 | |
| 6347 | |
| 6348 | |
| 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6361 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6362 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6363 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6364 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6365 | else |
| 6366 | lt_cv_apple_cc_single_mod=no |
| 6367 | if test -z "${LT_MULTI_MODULE}"; then |
| 6368 | # By default we will add the -single_module flag. You can override |
| 6369 | # by either setting the environment variable LT_MULTI_MODULE |
| 6370 | # non-empty at configure time, or by adding -multi_module to the |
| 6371 | # link flags. |
| 6372 | rm -rf libconftest.dylib* |
| 6373 | echo "int foo(void){return 1;}" > conftest.c |
| 6374 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6375 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6376 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6377 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6378 | _lt_result=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6379 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6380 | lt_cv_apple_cc_single_mod=yes |
| 6381 | else |
| 6382 | cat conftest.err >&5 |
| 6383 | fi |
| 6384 | rm -rf libconftest.dylib* |
| 6385 | rm -f conftest.* |
| 6386 | fi |
| 6387 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6388 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6389 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6390 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6391 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6392 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6393 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6394 | else |
| 6395 | lt_cv_ld_exported_symbols_list=no |
| 6396 | save_LDFLAGS=$LDFLAGS |
| 6397 | echo "_main" > conftest.sym |
| 6398 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6399 | cat >conftest.$ac_ext <<_ACEOF |
| 6400 | /* confdefs.h. */ |
| 6401 | _ACEOF |
| 6402 | cat confdefs.h >>conftest.$ac_ext |
| 6403 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6404 | /* end confdefs.h. */ |
| 6405 | |
| 6406 | int |
| 6407 | main () |
| 6408 | { |
| 6409 | |
| 6410 | ; |
| 6411 | return 0; |
| 6412 | } |
| 6413 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6415 | if { (ac_try="$ac_link" |
| 6416 | case "(($ac_try" in |
| 6417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6418 | *) ac_try_echo=$ac_try;; |
| 6419 | esac |
| 6420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6421 | $as_echo "$ac_try_echo") >&5 |
| 6422 | (eval "$ac_link") 2>conftest.er1 |
| 6423 | ac_status=$? |
| 6424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6425 | rm -f conftest.er1 |
| 6426 | cat conftest.err >&5 |
| 6427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); } && { |
| 6429 | test -z "$ac_c_werror_flag" || |
| 6430 | test ! -s conftest.err |
| 6431 | } && test -s conftest$ac_exeext && { |
| 6432 | test "$cross_compiling" = yes || |
| 6433 | $as_test_x conftest$ac_exeext |
| 6434 | }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6435 | lt_cv_ld_exported_symbols_list=yes |
| 6436 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6437 | $as_echo "$as_me: failed program was:" >&5 |
| 6438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6439 | |
| 6440 | lt_cv_ld_exported_symbols_list=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6441 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6442 | |
| 6443 | rm -rf conftest.dSYM |
| 6444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6445 | conftest$ac_exeext conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6446 | LDFLAGS="$save_LDFLAGS" |
| 6447 | |
| 6448 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6449 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6450 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6451 | case $host_os in |
| 6452 | rhapsody* | darwin1.[012]) |
| 6453 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 6454 | darwin1.*) |
| 6455 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6456 | darwin*) # darwin 5.x on |
| 6457 | # if running on 10.5 or later, the deployment target defaults |
| 6458 | # to the OS version, if on x86, and 10.4, the deployment |
| 6459 | # target defaults to 10.4. Don't you love it? |
| 6460 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 6461 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 6462 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6463 | 10.[012]*) |
| 6464 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6465 | 10.*) |
| 6466 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6467 | esac |
| 6468 | ;; |
| 6469 | esac |
| 6470 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 6471 | _lt_dar_single_mod='$single_module' |
| 6472 | fi |
| 6473 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 6474 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 6475 | else |
| 6476 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6477 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6478 | if test "$DSYMUTIL" != ":"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6479 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 6480 | else |
| 6481 | _lt_dsymutil= |
| 6482 | fi |
| 6483 | ;; |
| 6484 | esac |
| 6485 | |
| 6486 | ac_ext=c |
| 6487 | ac_cpp='$CPP $CPPFLAGS' |
| 6488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6491 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6492 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6493 | # On Suns, sometimes $CPP names a directory. |
| 6494 | if test -n "$CPP" && test -d "$CPP"; then |
| 6495 | CPP= |
| 6496 | fi |
| 6497 | if test -z "$CPP"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6498 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6499 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6500 | else |
| 6501 | # Double quotes because CPP needs to be expanded |
| 6502 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 6503 | do |
| 6504 | ac_preproc_ok=false |
| 6505 | for ac_c_preproc_warn_flag in '' yes |
| 6506 | do |
| 6507 | # Use a header file that comes with gcc, so configuring glibc |
| 6508 | # with a fresh cross-compiler works. |
| 6509 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6510 | # <limits.h> exists even on freestanding compilers. |
| 6511 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6512 | # not just through cpp. "Syntax error" is here to catch this case. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | /* confdefs.h. */ |
| 6515 | _ACEOF |
| 6516 | cat confdefs.h >>conftest.$ac_ext |
| 6517 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6518 | /* end confdefs.h. */ |
| 6519 | #ifdef __STDC__ |
| 6520 | # include <limits.h> |
| 6521 | #else |
| 6522 | # include <assert.h> |
| 6523 | #endif |
| 6524 | Syntax error |
| 6525 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6527 | case "(($ac_try" in |
| 6528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6529 | *) ac_try_echo=$ac_try;; |
| 6530 | esac |
| 6531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6532 | $as_echo "$ac_try_echo") >&5 |
| 6533 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6534 | ac_status=$? |
| 6535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6536 | rm -f conftest.er1 |
| 6537 | cat conftest.err >&5 |
| 6538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6539 | (exit $ac_status); } >/dev/null && { |
| 6540 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6541 | test ! -s conftest.err |
| 6542 | }; then |
| 6543 | : |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 6544 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6545 | $as_echo "$as_me: failed program was:" >&5 |
| 6546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6547 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6548 | # Broken: fails on valid input. |
| 6549 | continue |
| 6550 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6551 | |
| 6552 | rm -f conftest.err conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6553 | |
| 6554 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6555 | # can be detected and how. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6556 | cat >conftest.$ac_ext <<_ACEOF |
| 6557 | /* confdefs.h. */ |
| 6558 | _ACEOF |
| 6559 | cat confdefs.h >>conftest.$ac_ext |
| 6560 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6561 | /* end confdefs.h. */ |
| 6562 | #include <ac_nonexistent.h> |
| 6563 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6564 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6565 | case "(($ac_try" in |
| 6566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6567 | *) ac_try_echo=$ac_try;; |
| 6568 | esac |
| 6569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6570 | $as_echo "$ac_try_echo") >&5 |
| 6571 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6572 | ac_status=$? |
| 6573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6574 | rm -f conftest.er1 |
| 6575 | cat conftest.err >&5 |
| 6576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); } >/dev/null && { |
| 6578 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6579 | test ! -s conftest.err |
| 6580 | }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6581 | # Broken: success on invalid input. |
| 6582 | continue |
| 6583 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6584 | $as_echo "$as_me: failed program was:" >&5 |
| 6585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6586 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6587 | # Passes both tests. |
| 6588 | ac_preproc_ok=: |
| 6589 | break |
| 6590 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6591 | |
| 6592 | rm -f conftest.err conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6593 | |
| 6594 | done |
| 6595 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6596 | rm -f conftest.err conftest.$ac_ext |
| 6597 | if $ac_preproc_ok; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6598 | break |
| 6599 | fi |
| 6600 | |
| 6601 | done |
| 6602 | ac_cv_prog_CPP=$CPP |
| 6603 | |
| 6604 | fi |
| 6605 | CPP=$ac_cv_prog_CPP |
| 6606 | else |
| 6607 | ac_cv_prog_CPP=$CPP |
| 6608 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6609 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6610 | $as_echo "$CPP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6611 | ac_preproc_ok=false |
| 6612 | for ac_c_preproc_warn_flag in '' yes |
| 6613 | do |
| 6614 | # Use a header file that comes with gcc, so configuring glibc |
| 6615 | # with a fresh cross-compiler works. |
| 6616 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6617 | # <limits.h> exists even on freestanding compilers. |
| 6618 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6619 | # not just through cpp. "Syntax error" is here to catch this case. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6620 | cat >conftest.$ac_ext <<_ACEOF |
| 6621 | /* confdefs.h. */ |
| 6622 | _ACEOF |
| 6623 | cat confdefs.h >>conftest.$ac_ext |
| 6624 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6625 | /* end confdefs.h. */ |
| 6626 | #ifdef __STDC__ |
| 6627 | # include <limits.h> |
| 6628 | #else |
| 6629 | # include <assert.h> |
| 6630 | #endif |
| 6631 | Syntax error |
| 6632 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6633 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6634 | case "(($ac_try" in |
| 6635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6636 | *) ac_try_echo=$ac_try;; |
| 6637 | esac |
| 6638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6639 | $as_echo "$ac_try_echo") >&5 |
| 6640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6641 | ac_status=$? |
| 6642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6643 | rm -f conftest.er1 |
| 6644 | cat conftest.err >&5 |
| 6645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6646 | (exit $ac_status); } >/dev/null && { |
| 6647 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6648 | test ! -s conftest.err |
| 6649 | }; then |
| 6650 | : |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 6651 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6652 | $as_echo "$as_me: failed program was:" >&5 |
| 6653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6654 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6655 | # Broken: fails on valid input. |
| 6656 | continue |
| 6657 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6658 | |
| 6659 | rm -f conftest.err conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6660 | |
| 6661 | # OK, works on sane cases. Now check whether nonexistent headers |
| 6662 | # can be detected and how. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6663 | cat >conftest.$ac_ext <<_ACEOF |
| 6664 | /* confdefs.h. */ |
| 6665 | _ACEOF |
| 6666 | cat confdefs.h >>conftest.$ac_ext |
| 6667 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6668 | /* end confdefs.h. */ |
| 6669 | #include <ac_nonexistent.h> |
| 6670 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6671 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6672 | case "(($ac_try" in |
| 6673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6674 | *) ac_try_echo=$ac_try;; |
| 6675 | esac |
| 6676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6677 | $as_echo "$ac_try_echo") >&5 |
| 6678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6679 | ac_status=$? |
| 6680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6681 | rm -f conftest.er1 |
| 6682 | cat conftest.err >&5 |
| 6683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6684 | (exit $ac_status); } >/dev/null && { |
| 6685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6686 | test ! -s conftest.err |
| 6687 | }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6688 | # Broken: success on invalid input. |
| 6689 | continue |
| 6690 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6691 | $as_echo "$as_me: failed program was:" >&5 |
| 6692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6693 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6694 | # Passes both tests. |
| 6695 | ac_preproc_ok=: |
| 6696 | break |
| 6697 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6698 | |
| 6699 | rm -f conftest.err conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6700 | |
| 6701 | done |
| 6702 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6703 | rm -f conftest.err conftest.$ac_ext |
| 6704 | if $ac_preproc_ok; then |
| 6705 | : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6706 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6707 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6709 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 6710 | See \`config.log' for more details." >&5 |
| 6711 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 6712 | See \`config.log' for more details." >&2;} |
| 6713 | { (exit 1); exit 1; }; }; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6714 | fi |
| 6715 | |
| 6716 | ac_ext=c |
| 6717 | ac_cpp='$CPP $CPPFLAGS' |
| 6718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6721 | |
| 6722 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6723 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6724 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6725 | if test "${ac_cv_header_stdc+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6726 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6727 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6728 | cat >conftest.$ac_ext <<_ACEOF |
| 6729 | /* confdefs.h. */ |
| 6730 | _ACEOF |
| 6731 | cat confdefs.h >>conftest.$ac_ext |
| 6732 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6733 | /* end confdefs.h. */ |
| 6734 | #include <stdlib.h> |
| 6735 | #include <stdarg.h> |
| 6736 | #include <string.h> |
| 6737 | #include <float.h> |
| 6738 | |
| 6739 | int |
| 6740 | main () |
| 6741 | { |
| 6742 | |
| 6743 | ; |
| 6744 | return 0; |
| 6745 | } |
| 6746 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6747 | rm -f conftest.$ac_objext |
| 6748 | if { (ac_try="$ac_compile" |
| 6749 | case "(($ac_try" in |
| 6750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6751 | *) ac_try_echo=$ac_try;; |
| 6752 | esac |
| 6753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6754 | $as_echo "$ac_try_echo") >&5 |
| 6755 | (eval "$ac_compile") 2>conftest.er1 |
| 6756 | ac_status=$? |
| 6757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6758 | rm -f conftest.er1 |
| 6759 | cat conftest.err >&5 |
| 6760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6761 | (exit $ac_status); } && { |
| 6762 | test -z "$ac_c_werror_flag" || |
| 6763 | test ! -s conftest.err |
| 6764 | } && test -s conftest.$ac_objext; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6765 | ac_cv_header_stdc=yes |
| 6766 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6767 | $as_echo "$as_me: failed program was:" >&5 |
| 6768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6769 | |
| 6770 | ac_cv_header_stdc=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6771 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6772 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6774 | |
| 6775 | if test $ac_cv_header_stdc = yes; then |
| 6776 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6777 | cat >conftest.$ac_ext <<_ACEOF |
| 6778 | /* confdefs.h. */ |
| 6779 | _ACEOF |
| 6780 | cat confdefs.h >>conftest.$ac_ext |
| 6781 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6782 | /* end confdefs.h. */ |
| 6783 | #include <string.h> |
| 6784 | |
| 6785 | _ACEOF |
| 6786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6787 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6788 | : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6789 | else |
| 6790 | ac_cv_header_stdc=no |
| 6791 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6792 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6793 | |
| 6794 | fi |
| 6795 | |
| 6796 | if test $ac_cv_header_stdc = yes; then |
| 6797 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6798 | cat >conftest.$ac_ext <<_ACEOF |
| 6799 | /* confdefs.h. */ |
| 6800 | _ACEOF |
| 6801 | cat confdefs.h >>conftest.$ac_ext |
| 6802 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6803 | /* end confdefs.h. */ |
| 6804 | #include <stdlib.h> |
| 6805 | |
| 6806 | _ACEOF |
| 6807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6808 | $EGREP "free" >/dev/null 2>&1; then |
| 6809 | : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6810 | else |
| 6811 | ac_cv_header_stdc=no |
| 6812 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6813 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6814 | |
| 6815 | fi |
| 6816 | |
| 6817 | if test $ac_cv_header_stdc = yes; then |
| 6818 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6819 | if test "$cross_compiling" = yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6820 | : |
| 6821 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | /* confdefs.h. */ |
| 6824 | _ACEOF |
| 6825 | cat confdefs.h >>conftest.$ac_ext |
| 6826 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6827 | /* end confdefs.h. */ |
| 6828 | #include <ctype.h> |
| 6829 | #include <stdlib.h> |
| 6830 | #if ((' ' & 0x0FF) == 0x020) |
| 6831 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6832 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6833 | #else |
| 6834 | # define ISLOWER(c) \ |
| 6835 | (('a' <= (c) && (c) <= 'i') \ |
| 6836 | || ('j' <= (c) && (c) <= 'r') \ |
| 6837 | || ('s' <= (c) && (c) <= 'z')) |
| 6838 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6839 | #endif |
| 6840 | |
| 6841 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6842 | int |
| 6843 | main () |
| 6844 | { |
| 6845 | int i; |
| 6846 | for (i = 0; i < 256; i++) |
| 6847 | if (XOR (islower (i), ISLOWER (i)) |
| 6848 | || toupper (i) != TOUPPER (i)) |
| 6849 | return 2; |
| 6850 | return 0; |
| 6851 | } |
| 6852 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6853 | rm -f conftest$ac_exeext |
| 6854 | if { (ac_try="$ac_link" |
| 6855 | case "(($ac_try" in |
| 6856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6857 | *) ac_try_echo=$ac_try;; |
| 6858 | esac |
| 6859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6860 | $as_echo "$ac_try_echo") >&5 |
| 6861 | (eval "$ac_link") 2>&5 |
| 6862 | ac_status=$? |
| 6863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6865 | { (case "(($ac_try" in |
| 6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6867 | *) ac_try_echo=$ac_try;; |
| 6868 | esac |
| 6869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6870 | $as_echo "$ac_try_echo") >&5 |
| 6871 | (eval "$ac_try") 2>&5 |
| 6872 | ac_status=$? |
| 6873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6874 | (exit $ac_status); }; }; then |
| 6875 | : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6876 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6877 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6878 | $as_echo "$as_me: failed program was:" >&5 |
| 6879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6880 | |
| 6881 | ( exit $ac_status ) |
| 6882 | ac_cv_header_stdc=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6883 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6884 | rm -rf conftest.dSYM |
| 6885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6886 | fi |
| 6887 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6888 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6889 | fi |
| 6890 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6892 | $as_echo "$ac_cv_header_stdc" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6893 | if test $ac_cv_header_stdc = yes; then |
| 6894 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6895 | cat >>confdefs.h <<\_ACEOF |
| 6896 | #define STDC_HEADERS 1 |
| 6897 | _ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6898 | |
| 6899 | fi |
| 6900 | |
| 6901 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6902 | |
| 6903 | |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | |
| 6909 | |
| 6910 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6911 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6912 | inttypes.h stdint.h unistd.h |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6913 | do |
| 6914 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6916 | $as_echo_n "checking for $ac_header... " >&6; } |
| 6917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6918 | $as_echo_n "(cached) " >&6 |
| 6919 | else |
| 6920 | cat >conftest.$ac_ext <<_ACEOF |
| 6921 | /* confdefs.h. */ |
| 6922 | _ACEOF |
| 6923 | cat confdefs.h >>conftest.$ac_ext |
| 6924 | cat >>conftest.$ac_ext <<_ACEOF |
| 6925 | /* end confdefs.h. */ |
| 6926 | $ac_includes_default |
| 6927 | |
| 6928 | #include <$ac_header> |
| 6929 | _ACEOF |
| 6930 | rm -f conftest.$ac_objext |
| 6931 | if { (ac_try="$ac_compile" |
| 6932 | case "(($ac_try" in |
| 6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6934 | *) ac_try_echo=$ac_try;; |
| 6935 | esac |
| 6936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6937 | $as_echo "$ac_try_echo") >&5 |
| 6938 | (eval "$ac_compile") 2>conftest.er1 |
| 6939 | ac_status=$? |
| 6940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6941 | rm -f conftest.er1 |
| 6942 | cat conftest.err >&5 |
| 6943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6944 | (exit $ac_status); } && { |
| 6945 | test -z "$ac_c_werror_flag" || |
| 6946 | test ! -s conftest.err |
| 6947 | } && test -s conftest.$ac_objext; then |
| 6948 | eval "$as_ac_Header=yes" |
| 6949 | else |
| 6950 | $as_echo "$as_me: failed program was:" >&5 |
| 6951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6952 | |
| 6953 | eval "$as_ac_Header=no" |
| 6954 | fi |
| 6955 | |
| 6956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6957 | fi |
| 6958 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6959 | $as_echo "$as_val"'` |
| 6960 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6961 | $as_echo "$ac_res" >&6; } |
| 6962 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6963 | $as_echo "$as_val"'` |
| 6964 | if test "x$as_val" = x""yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6965 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6967 | _ACEOF |
| 6968 | |
| 6969 | fi |
| 6970 | |
| 6971 | done |
| 6972 | |
| 6973 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6974 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6975 | for ac_header in dlfcn.h |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 6976 | do |
| 6977 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6978 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6979 | $as_echo_n "checking for $ac_header... " >&6; } |
| 6980 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6981 | $as_echo_n "(cached) " >&6 |
| 6982 | else |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
| 6989 | $ac_includes_default |
| 6990 | |
| 6991 | #include <$ac_header> |
| 6992 | _ACEOF |
| 6993 | rm -f conftest.$ac_objext |
| 6994 | if { (ac_try="$ac_compile" |
| 6995 | case "(($ac_try" in |
| 6996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6997 | *) ac_try_echo=$ac_try;; |
| 6998 | esac |
| 6999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7000 | $as_echo "$ac_try_echo") >&5 |
| 7001 | (eval "$ac_compile") 2>conftest.er1 |
| 7002 | ac_status=$? |
| 7003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7004 | rm -f conftest.er1 |
| 7005 | cat conftest.err >&5 |
| 7006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7007 | (exit $ac_status); } && { |
| 7008 | test -z "$ac_c_werror_flag" || |
| 7009 | test ! -s conftest.err |
| 7010 | } && test -s conftest.$ac_objext; then |
| 7011 | eval "$as_ac_Header=yes" |
| 7012 | else |
| 7013 | $as_echo "$as_me: failed program was:" >&5 |
| 7014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7015 | |
| 7016 | eval "$as_ac_Header=no" |
| 7017 | fi |
| 7018 | |
| 7019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7020 | fi |
| 7021 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7022 | $as_echo "$as_val"'` |
| 7023 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7024 | $as_echo "$ac_res" >&6; } |
| 7025 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7026 | $as_echo "$as_val"'` |
| 7027 | if test "x$as_val" = x""yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7028 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7029 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7030 | _ACEOF |
| 7031 | |
| 7032 | fi |
| 7033 | |
| 7034 | done |
| 7035 | |
| 7036 | |
| 7037 | |
| 7038 | # Set options |
| 7039 | |
| 7040 | |
| 7041 | |
| 7042 | enable_dlopen=no |
| 7043 | |
| 7044 | |
| 7045 | enable_win32_dll=no |
| 7046 | |
| 7047 | |
| 7048 | # Check whether --enable-shared was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7049 | if test "${enable_shared+set}" = set; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7050 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7051 | case $enableval in |
| 7052 | yes) enable_shared=yes ;; |
| 7053 | no) enable_shared=no ;; |
| 7054 | *) |
| 7055 | enable_shared=no |
| 7056 | # Look at the argument we got. We use all the common list separators. |
| 7057 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7058 | for pkg in $enableval; do |
| 7059 | IFS="$lt_save_ifs" |
| 7060 | if test "X$pkg" = "X$p"; then |
| 7061 | enable_shared=yes |
| 7062 | fi |
| 7063 | done |
| 7064 | IFS="$lt_save_ifs" |
| 7065 | ;; |
| 7066 | esac |
| 7067 | else |
| 7068 | enable_shared=yes |
| 7069 | fi |
| 7070 | |
| 7071 | |
| 7072 | |
| 7073 | |
| 7074 | |
| 7075 | |
| 7076 | |
| 7077 | |
| 7078 | |
| 7079 | # Check whether --enable-static was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7080 | if test "${enable_static+set}" = set; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7081 | enableval=$enable_static; p=${PACKAGE-default} |
| 7082 | case $enableval in |
| 7083 | yes) enable_static=yes ;; |
| 7084 | no) enable_static=no ;; |
| 7085 | *) |
| 7086 | enable_static=no |
| 7087 | # Look at the argument we got. We use all the common list separators. |
| 7088 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7089 | for pkg in $enableval; do |
| 7090 | IFS="$lt_save_ifs" |
| 7091 | if test "X$pkg" = "X$p"; then |
| 7092 | enable_static=yes |
| 7093 | fi |
| 7094 | done |
| 7095 | IFS="$lt_save_ifs" |
| 7096 | ;; |
| 7097 | esac |
| 7098 | else |
| 7099 | enable_static=yes |
| 7100 | fi |
| 7101 | |
| 7102 | |
| 7103 | |
| 7104 | |
| 7105 | |
| 7106 | |
| 7107 | |
| 7108 | |
| 7109 | |
| 7110 | |
| 7111 | # Check whether --with-pic was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7112 | if test "${with_pic+set}" = set; then |
| 7113 | withval=$with_pic; pic_mode="$withval" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7114 | else |
| 7115 | pic_mode=default |
| 7116 | fi |
| 7117 | |
| 7118 | |
| 7119 | test -z "$pic_mode" && pic_mode=default |
| 7120 | |
| 7121 | |
| 7122 | |
| 7123 | |
| 7124 | |
| 7125 | |
| 7126 | |
| 7127 | # Check whether --enable-fast-install was given. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7128 | if test "${enable_fast_install+set}" = set; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7129 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7130 | case $enableval in |
| 7131 | yes) enable_fast_install=yes ;; |
| 7132 | no) enable_fast_install=no ;; |
| 7133 | *) |
| 7134 | enable_fast_install=no |
| 7135 | # Look at the argument we got. We use all the common list separators. |
| 7136 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7137 | for pkg in $enableval; do |
| 7138 | IFS="$lt_save_ifs" |
| 7139 | if test "X$pkg" = "X$p"; then |
| 7140 | enable_fast_install=yes |
| 7141 | fi |
| 7142 | done |
| 7143 | IFS="$lt_save_ifs" |
| 7144 | ;; |
| 7145 | esac |
| 7146 | else |
| 7147 | enable_fast_install=yes |
| 7148 | fi |
| 7149 | |
| 7150 | |
| 7151 | |
| 7152 | |
| 7153 | |
| 7154 | |
| 7155 | |
| 7156 | |
| 7157 | |
| 7158 | |
| 7159 | |
| 7160 | # This can be used to rebuild libtool when needed |
| 7161 | LIBTOOL_DEPS="$ltmain" |
| 7162 | |
| 7163 | # Always use our own libtool. |
| 7164 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7165 | |
| 7166 | |
| 7167 | |
| 7168 | |
| 7169 | |
| 7170 | |
| 7171 | |
| 7172 | |
| 7173 | |
| 7174 | |
| 7175 | |
| 7176 | |
| 7177 | |
| 7178 | |
| 7179 | |
| 7180 | |
| 7181 | |
| 7182 | |
| 7183 | |
| 7184 | |
| 7185 | |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | test -z "$LN_S" && LN_S="ln -s" |
| 7191 | |
| 7192 | |
| 7193 | |
| 7194 | |
| 7195 | |
| 7196 | |
| 7197 | |
| 7198 | |
| 7199 | |
| 7200 | |
| 7201 | |
| 7202 | |
| 7203 | |
| 7204 | |
| 7205 | if test -n "${ZSH_VERSION+set}" ; then |
| 7206 | setopt NO_GLOB_SUBST |
| 7207 | fi |
| 7208 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7209 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7210 | $as_echo_n "checking for objdir... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7211 | if test "${lt_cv_objdir+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7212 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7213 | else |
| 7214 | rm -f .libs 2>/dev/null |
| 7215 | mkdir .libs 2>/dev/null |
| 7216 | if test -d .libs; then |
| 7217 | lt_cv_objdir=.libs |
| 7218 | else |
| 7219 | # MS-DOS does not allow filenames that begin with a dot. |
| 7220 | lt_cv_objdir=_libs |
| 7221 | fi |
| 7222 | rmdir .libs 2>/dev/null |
| 7223 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7224 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7225 | $as_echo "$lt_cv_objdir" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7226 | objdir=$lt_cv_objdir |
| 7227 | |
| 7228 | |
| 7229 | |
| 7230 | |
| 7231 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7232 | cat >>confdefs.h <<_ACEOF |
| 7233 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7234 | _ACEOF |
| 7235 | |
| 7236 | |
| 7237 | |
| 7238 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7239 | |
| 7240 | |
| 7241 | |
| 7242 | |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | |
| 7247 | |
| 7248 | |
| 7249 | |
| 7250 | |
| 7251 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7252 | case $host_os in |
| 7253 | aix3*) |
| 7254 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7255 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7256 | # vanish in a puff of smoke. |
| 7257 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7258 | COLLECT_NAMES= |
| 7259 | export COLLECT_NAMES |
| 7260 | fi |
| 7261 | ;; |
| 7262 | esac |
| 7263 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7264 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 7265 | # metacharacters that are still active within double-quoted strings. |
| 7266 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 7267 | |
| 7268 | # Same as above, but do not quote variable references. |
| 7269 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 7270 | |
| 7271 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 7272 | # double_quote_subst'ed string. |
| 7273 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7274 | |
| 7275 | # Sed substitution to delay expansion of an escaped single quote. |
| 7276 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 7277 | |
| 7278 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 7279 | no_glob_subst='s/\*/\\\*/g' |
| 7280 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7281 | # Global variables: |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7282 | ofile=libtool |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7283 | can_build_shared=yes |
| 7284 | |
| 7285 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7286 | # which needs '.lib'). |
| 7287 | libext=a |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7288 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7289 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7290 | |
| 7291 | old_CC="$CC" |
| 7292 | old_CFLAGS="$CFLAGS" |
| 7293 | |
| 7294 | # Set sane defaults for various variables |
| 7295 | test -z "$CC" && CC=cc |
| 7296 | test -z "$LTCC" && LTCC=$CC |
| 7297 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7298 | test -z "$LD" && LD=ld |
| 7299 | test -z "$ac_objext" && ac_objext=o |
| 7300 | |
| 7301 | for cc_temp in $compiler""; do |
| 7302 | case $cc_temp in |
| 7303 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7304 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7305 | \-*) ;; |
| 7306 | *) break;; |
| 7307 | esac |
| 7308 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7309 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7310 | |
| 7311 | |
| 7312 | # Only perform the check for file, if the check method requires it |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7313 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7314 | case $deplibs_check_method in |
| 7315 | file_magic*) |
| 7316 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7317 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7318 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7319 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7320 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7321 | else |
| 7322 | case $MAGIC_CMD in |
| 7323 | [\\/*] | ?:[\\/]*) |
| 7324 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7325 | ;; |
| 7326 | *) |
| 7327 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7328 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7329 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7330 | for ac_dir in $ac_dummy; do |
| 7331 | IFS="$lt_save_ifs" |
| 7332 | test -z "$ac_dir" && ac_dir=. |
| 7333 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7334 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7335 | if test -n "$file_magic_test_file"; then |
| 7336 | case $deplibs_check_method in |
| 7337 | "file_magic "*) |
| 7338 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7339 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7340 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7341 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7342 | : |
| 7343 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7344 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7345 | |
| 7346 | *** Warning: the command libtool uses to detect shared libraries, |
| 7347 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7348 | *** The result is that libtool may fail to recognize shared libraries |
| 7349 | *** as such. This will affect the creation of libtool libraries that |
| 7350 | *** depend on shared libraries, but programs linked with such libtool |
| 7351 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7352 | *** may want to report the problem to your system manager and/or to |
| 7353 | *** bug-libtool@gnu.org |
| 7354 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7355 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7356 | fi ;; |
| 7357 | esac |
| 7358 | fi |
| 7359 | break |
| 7360 | fi |
| 7361 | done |
| 7362 | IFS="$lt_save_ifs" |
| 7363 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7364 | ;; |
| 7365 | esac |
| 7366 | fi |
| 7367 | |
| 7368 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7369 | if test -n "$MAGIC_CMD"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7370 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7371 | $as_echo "$MAGIC_CMD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7372 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7373 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7374 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7375 | fi |
| 7376 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7377 | |
| 7378 | |
| 7379 | |
| 7380 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7381 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7382 | if test -n "$ac_tool_prefix"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7383 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7384 | $as_echo_n "checking for file... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7385 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7386 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7387 | else |
| 7388 | case $MAGIC_CMD in |
| 7389 | [\\/*] | ?:[\\/]*) |
| 7390 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7391 | ;; |
| 7392 | *) |
| 7393 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7394 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7395 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7396 | for ac_dir in $ac_dummy; do |
| 7397 | IFS="$lt_save_ifs" |
| 7398 | test -z "$ac_dir" && ac_dir=. |
| 7399 | if test -f $ac_dir/file; then |
| 7400 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7401 | if test -n "$file_magic_test_file"; then |
| 7402 | case $deplibs_check_method in |
| 7403 | "file_magic "*) |
| 7404 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7405 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7406 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7407 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7408 | : |
| 7409 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7410 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7411 | |
| 7412 | *** Warning: the command libtool uses to detect shared libraries, |
| 7413 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7414 | *** The result is that libtool may fail to recognize shared libraries |
| 7415 | *** as such. This will affect the creation of libtool libraries that |
| 7416 | *** depend on shared libraries, but programs linked with such libtool |
| 7417 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7418 | *** may want to report the problem to your system manager and/or to |
| 7419 | *** bug-libtool@gnu.org |
| 7420 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7421 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7422 | fi ;; |
| 7423 | esac |
| 7424 | fi |
| 7425 | break |
| 7426 | fi |
| 7427 | done |
| 7428 | IFS="$lt_save_ifs" |
| 7429 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7430 | ;; |
| 7431 | esac |
| 7432 | fi |
| 7433 | |
| 7434 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7435 | if test -n "$MAGIC_CMD"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7436 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7437 | $as_echo "$MAGIC_CMD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7438 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7440 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7441 | fi |
| 7442 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7443 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7444 | else |
| 7445 | MAGIC_CMD=: |
| 7446 | fi |
| 7447 | fi |
| 7448 | |
| 7449 | fi |
| 7450 | ;; |
| 7451 | esac |
| 7452 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 7453 | # Use C for the default configuration in the libtool script |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7454 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7455 | lt_save_CC="$CC" |
| 7456 | ac_ext=c |
| 7457 | ac_cpp='$CPP $CPPFLAGS' |
| 7458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7461 | |
| 7462 | |
| 7463 | # Source file extension for C test sources. |
| 7464 | ac_ext=c |
| 7465 | |
| 7466 | # Object file extension for compiled C test sources. |
| 7467 | objext=o |
| 7468 | objext=$objext |
| 7469 | |
| 7470 | # Code to be used in simple compile tests |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7471 | lt_simple_compile_test_code="int some_variable = 0;" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7472 | |
| 7473 | # Code to be used in simple link tests |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7474 | lt_simple_link_test_code='int main(){return(0);}' |
| 7475 | |
| 7476 | |
| 7477 | |
| 7478 | |
| 7479 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7480 | |
| 7481 | |
| 7482 | # If no C compiler was specified, use CC. |
| 7483 | LTCC=${LTCC-"$CC"} |
| 7484 | |
| 7485 | # If no C compiler flags were specified, use CFLAGS. |
| 7486 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7487 | |
| 7488 | # Allow CC to be a program name with arguments. |
| 7489 | compiler=$CC |
| 7490 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7491 | # Save the default compiler, since it gets overwritten when the other |
| 7492 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7493 | compiler_DEFAULT=$CC |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7494 | |
| 7495 | # save warnings/boilerplate of simple test code |
| 7496 | ac_outfile=conftest.$ac_objext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7497 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7498 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7499 | _lt_compiler_boilerplate=`cat conftest.err` |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7500 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7501 | |
| 7502 | ac_outfile=conftest.$ac_objext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7503 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7504 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7505 | _lt_linker_boilerplate=`cat conftest.err` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7506 | $RM -r conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7507 | |
| 7508 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7509 | if test -n "$compiler"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7510 | |
| 7511 | lt_prog_compiler_no_builtin_flag= |
| 7512 | |
| 7513 | if test "$GCC" = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7514 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7515 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7516 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7517 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7518 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7519 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7520 | else |
| 7521 | lt_cv_prog_compiler_rtti_exceptions=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7522 | ac_outfile=conftest.$ac_objext |
| 7523 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7524 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7525 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7526 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7527 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7528 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7529 | # The option is referenced via a variable to avoid confusing sed. |
| 7530 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7531 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7532 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7533 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7534 | (eval echo "\"\$as_me:7534: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7535 | (eval "$lt_compile" 2>conftest.err) |
| 7536 | ac_status=$? |
| 7537 | cat conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7538 | echo "$as_me:7538: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7539 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7540 | # The compiler can only warn and ignore the option if not recognized |
| 7541 | # So say no if there are warnings other than the usual output. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7542 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7543 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7544 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7545 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7546 | fi |
| 7547 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7548 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7549 | |
| 7550 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7551 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7552 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7553 | |
| 7554 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7555 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7556 | else |
| 7557 | : |
| 7558 | fi |
| 7559 | |
| 7560 | fi |
| 7561 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7562 | |
| 7563 | |
| 7564 | |
| 7565 | |
| 7566 | |
| 7567 | lt_prog_compiler_wl= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7568 | lt_prog_compiler_pic= |
| 7569 | lt_prog_compiler_static= |
| 7570 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7571 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7572 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7573 | |
| 7574 | if test "$GCC" = yes; then |
| 7575 | lt_prog_compiler_wl='-Wl,' |
| 7576 | lt_prog_compiler_static='-static' |
| 7577 | |
| 7578 | case $host_os in |
| 7579 | aix*) |
| 7580 | # All AIX code is PIC. |
| 7581 | if test "$host_cpu" = ia64; then |
| 7582 | # AIX 5 now supports IA64 processor |
| 7583 | lt_prog_compiler_static='-Bstatic' |
| 7584 | fi |
| 7585 | ;; |
| 7586 | |
| 7587 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7588 | case $host_cpu in |
| 7589 | powerpc) |
| 7590 | # see comment about AmigaOS4 .so support |
| 7591 | lt_prog_compiler_pic='-fPIC' |
| 7592 | ;; |
| 7593 | m68k) |
| 7594 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7595 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7596 | # like `-m68040'. |
| 7597 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7598 | ;; |
| 7599 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7600 | ;; |
| 7601 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7602 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7603 | # PIC is the default for these OSes. |
| 7604 | ;; |
| 7605 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7606 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7607 | # This hack is so that the source file can tell whether it is being |
| 7608 | # built for inclusion in a dll (and should export symbols for example). |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7609 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7610 | # (--disable-auto-import) libraries |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7611 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7612 | ;; |
| 7613 | |
| 7614 | darwin* | rhapsody*) |
| 7615 | # PIC is the default on this platform |
| 7616 | # Common symbols not allowed in MH_DYLIB files |
| 7617 | lt_prog_compiler_pic='-fno-common' |
| 7618 | ;; |
| 7619 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 7620 | hpux*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7621 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 7622 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 7623 | # sets the default TLS model and affects inlining. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 7624 | case $host_cpu in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7625 | hppa*64*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 7626 | # +Z the default |
| 7627 | ;; |
| 7628 | *) |
| 7629 | lt_prog_compiler_pic='-fPIC' |
| 7630 | ;; |
| 7631 | esac |
| 7632 | ;; |
| 7633 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7634 | interix[3-9]*) |
| 7635 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7636 | # Instead, we relocate shared libraries at runtime. |
| 7637 | ;; |
| 7638 | |
| 7639 | msdosdjgpp*) |
| 7640 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7641 | # on systems that don't support them. |
| 7642 | lt_prog_compiler_can_build_shared=no |
| 7643 | enable_shared=no |
| 7644 | ;; |
| 7645 | |
| 7646 | *nto* | *qnx*) |
| 7647 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7648 | # it will coredump. |
| 7649 | lt_prog_compiler_pic='-fPIC -shared' |
| 7650 | ;; |
| 7651 | |
| 7652 | sysv4*MP*) |
| 7653 | if test -d /usr/nec; then |
| 7654 | lt_prog_compiler_pic=-Kconform_pic |
| 7655 | fi |
| 7656 | ;; |
| 7657 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7658 | *) |
| 7659 | lt_prog_compiler_pic='-fPIC' |
| 7660 | ;; |
| 7661 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7662 | else |
| 7663 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7664 | case $host_os in |
| 7665 | aix*) |
| 7666 | lt_prog_compiler_wl='-Wl,' |
| 7667 | if test "$host_cpu" = ia64; then |
| 7668 | # AIX 5 now supports IA64 processor |
| 7669 | lt_prog_compiler_static='-Bstatic' |
| 7670 | else |
| 7671 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7672 | fi |
| 7673 | ;; |
| 7674 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7675 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7676 | # This hack is so that the source file can tell whether it is being |
| 7677 | # built for inclusion in a dll (and should export symbols for example). |
| 7678 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7679 | ;; |
| 7680 | |
| 7681 | hpux9* | hpux10* | hpux11*) |
| 7682 | lt_prog_compiler_wl='-Wl,' |
| 7683 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7684 | # not for PA HP-UX. |
| 7685 | case $host_cpu in |
| 7686 | hppa*64*|ia64*) |
| 7687 | # +Z the default |
| 7688 | ;; |
| 7689 | *) |
| 7690 | lt_prog_compiler_pic='+Z' |
| 7691 | ;; |
| 7692 | esac |
| 7693 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7694 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7695 | ;; |
| 7696 | |
| 7697 | irix5* | irix6* | nonstopux*) |
| 7698 | lt_prog_compiler_wl='-Wl,' |
| 7699 | # PIC (with -KPIC) is the default. |
| 7700 | lt_prog_compiler_static='-non_shared' |
| 7701 | ;; |
| 7702 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7703 | linux* | k*bsd*-gnu) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7704 | case $cc_basename in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7705 | # old Intel for x86_64 which still supported -KPIC. |
| 7706 | ecc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7707 | lt_prog_compiler_wl='-Wl,' |
| 7708 | lt_prog_compiler_pic='-KPIC' |
| 7709 | lt_prog_compiler_static='-static' |
| 7710 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7711 | # icc used to be incompatible with GCC. |
| 7712 | # ICC 10 doesn't accept -KPIC any more. |
| 7713 | icc* | ifort*) |
| 7714 | lt_prog_compiler_wl='-Wl,' |
| 7715 | lt_prog_compiler_pic='-fPIC' |
| 7716 | lt_prog_compiler_static='-static' |
| 7717 | ;; |
| 7718 | # Lahey Fortran 8.1. |
| 7719 | lf95*) |
| 7720 | lt_prog_compiler_wl='-Wl,' |
| 7721 | lt_prog_compiler_pic='--shared' |
| 7722 | lt_prog_compiler_static='--static' |
| 7723 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7724 | pgcc* | pgf77* | pgf90* | pgf95*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7725 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7726 | # which looks to be a dead project) |
| 7727 | lt_prog_compiler_wl='-Wl,' |
| 7728 | lt_prog_compiler_pic='-fpic' |
| 7729 | lt_prog_compiler_static='-Bstatic' |
| 7730 | ;; |
| 7731 | ccc*) |
| 7732 | lt_prog_compiler_wl='-Wl,' |
| 7733 | # All Alpha code is PIC. |
| 7734 | lt_prog_compiler_static='-non_shared' |
| 7735 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7736 | xl*) |
| 7737 | # IBM XL C 8.0/Fortran 10.1 on PPC |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7738 | lt_prog_compiler_wl='-Wl,' |
| 7739 | lt_prog_compiler_pic='-qpic' |
| 7740 | lt_prog_compiler_static='-qstaticlink' |
| 7741 | ;; |
| 7742 | *) |
| 7743 | case `$CC -V 2>&1 | sed 5q` in |
| 7744 | *Sun\ C*) |
| 7745 | # Sun C 5.9 |
| 7746 | lt_prog_compiler_pic='-KPIC' |
| 7747 | lt_prog_compiler_static='-Bstatic' |
| 7748 | lt_prog_compiler_wl='-Wl,' |
| 7749 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7750 | *Sun\ F*) |
| 7751 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 7752 | lt_prog_compiler_pic='-KPIC' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7753 | lt_prog_compiler_static='-Bstatic' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7754 | lt_prog_compiler_wl='' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7755 | ;; |
| 7756 | esac |
| 7757 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7758 | esac |
| 7759 | ;; |
| 7760 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7761 | newsos6) |
| 7762 | lt_prog_compiler_pic='-KPIC' |
| 7763 | lt_prog_compiler_static='-Bstatic' |
| 7764 | ;; |
| 7765 | |
| 7766 | *nto* | *qnx*) |
| 7767 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7768 | # it will coredump. |
| 7769 | lt_prog_compiler_pic='-fPIC -shared' |
| 7770 | ;; |
| 7771 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7772 | osf3* | osf4* | osf5*) |
| 7773 | lt_prog_compiler_wl='-Wl,' |
| 7774 | # All OSF/1 code is PIC. |
| 7775 | lt_prog_compiler_static='-non_shared' |
| 7776 | ;; |
| 7777 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7778 | rdos*) |
| 7779 | lt_prog_compiler_static='-non_shared' |
| 7780 | ;; |
| 7781 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7782 | solaris*) |
| 7783 | lt_prog_compiler_pic='-KPIC' |
| 7784 | lt_prog_compiler_static='-Bstatic' |
| 7785 | case $cc_basename in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7786 | f77* | f90* | f95*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7787 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7788 | *) |
| 7789 | lt_prog_compiler_wl='-Wl,';; |
| 7790 | esac |
| 7791 | ;; |
| 7792 | |
| 7793 | sunos4*) |
| 7794 | lt_prog_compiler_wl='-Qoption ld ' |
| 7795 | lt_prog_compiler_pic='-PIC' |
| 7796 | lt_prog_compiler_static='-Bstatic' |
| 7797 | ;; |
| 7798 | |
| 7799 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 7800 | lt_prog_compiler_wl='-Wl,' |
| 7801 | lt_prog_compiler_pic='-KPIC' |
| 7802 | lt_prog_compiler_static='-Bstatic' |
| 7803 | ;; |
| 7804 | |
| 7805 | sysv4*MP*) |
| 7806 | if test -d /usr/nec ;then |
| 7807 | lt_prog_compiler_pic='-Kconform_pic' |
| 7808 | lt_prog_compiler_static='-Bstatic' |
| 7809 | fi |
| 7810 | ;; |
| 7811 | |
| 7812 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7813 | lt_prog_compiler_wl='-Wl,' |
| 7814 | lt_prog_compiler_pic='-KPIC' |
| 7815 | lt_prog_compiler_static='-Bstatic' |
| 7816 | ;; |
| 7817 | |
| 7818 | unicos*) |
| 7819 | lt_prog_compiler_wl='-Wl,' |
| 7820 | lt_prog_compiler_can_build_shared=no |
| 7821 | ;; |
| 7822 | |
| 7823 | uts4*) |
| 7824 | lt_prog_compiler_pic='-pic' |
| 7825 | lt_prog_compiler_static='-Bstatic' |
| 7826 | ;; |
| 7827 | |
| 7828 | *) |
| 7829 | lt_prog_compiler_can_build_shared=no |
| 7830 | ;; |
| 7831 | esac |
| 7832 | fi |
| 7833 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7834 | case $host_os in |
| 7835 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7836 | *djgpp*) |
| 7837 | lt_prog_compiler_pic= |
| 7838 | ;; |
| 7839 | *) |
| 7840 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7841 | ;; |
| 7842 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7843 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7844 | $as_echo "$lt_prog_compiler_pic" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7845 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7846 | |
| 7847 | |
| 7848 | |
| 7849 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7850 | |
| 7851 | # |
| 7852 | # Check to make sure the PIC flag actually works. |
| 7853 | # |
| 7854 | if test -n "$lt_prog_compiler_pic"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7855 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7856 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7857 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7858 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7859 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7860 | lt_cv_prog_compiler_pic_works=no |
| 7861 | ac_outfile=conftest.$ac_objext |
| 7862 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7863 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7864 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7865 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7866 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7867 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7868 | # The option is referenced via a variable to avoid confusing sed. |
| 7869 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7870 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7871 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7872 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7873 | (eval echo "\"\$as_me:7873: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7874 | (eval "$lt_compile" 2>conftest.err) |
| 7875 | ac_status=$? |
| 7876 | cat conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7877 | echo "$as_me:7877: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7878 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7879 | # The compiler can only warn and ignore the option if not recognized |
| 7880 | # So say no if there are warnings other than the usual output. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7881 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7882 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7883 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7884 | lt_cv_prog_compiler_pic_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7885 | fi |
| 7886 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7887 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7888 | |
| 7889 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7890 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7891 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7892 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7893 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7894 | case $lt_prog_compiler_pic in |
| 7895 | "" | " "*) ;; |
| 7896 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7897 | esac |
| 7898 | else |
| 7899 | lt_prog_compiler_pic= |
| 7900 | lt_prog_compiler_can_build_shared=no |
| 7901 | fi |
| 7902 | |
| 7903 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7904 | |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 7909 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7910 | # |
| 7911 | # Check to make sure the static flag actually works. |
| 7912 | # |
| 7913 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7914 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7915 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7916 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7917 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7918 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7919 | lt_cv_prog_compiler_static_works=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7920 | save_LDFLAGS="$LDFLAGS" |
| 7921 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7922 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7923 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7924 | # The linker can only warn and ignore the option if not recognized |
| 7925 | # So say no if there are warnings |
| 7926 | if test -s conftest.err; then |
| 7927 | # Append any errors to the config.log. |
| 7928 | cat conftest.err 1>&5 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7929 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7930 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7931 | if diff conftest.exp conftest.er2 >/dev/null; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7932 | lt_cv_prog_compiler_static_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7933 | fi |
| 7934 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7935 | lt_cv_prog_compiler_static_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7936 | fi |
| 7937 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7938 | $RM -r conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7939 | LDFLAGS="$save_LDFLAGS" |
| 7940 | |
| 7941 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7942 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7943 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7944 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7945 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7946 | : |
| 7947 | else |
| 7948 | lt_prog_compiler_static= |
| 7949 | fi |
| 7950 | |
| 7951 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7957 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7958 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7959 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7960 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7961 | else |
| 7962 | lt_cv_prog_compiler_c_o=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7963 | $RM -r conftest 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7964 | mkdir conftest |
| 7965 | cd conftest |
| 7966 | mkdir out |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7967 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7968 | |
| 7969 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7970 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7971 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7972 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7973 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7974 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7975 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7976 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7977 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7978 | (eval echo "\"\$as_me:7978: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7979 | (eval "$lt_compile" 2>out/conftest.err) |
| 7980 | ac_status=$? |
| 7981 | cat out/conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 7982 | echo "$as_me:7982: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7983 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7984 | then |
| 7985 | # The compiler can only warn and ignore the option if not recognized |
| 7986 | # So say no if there are warnings |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7987 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7988 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7989 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7990 | lt_cv_prog_compiler_c_o=yes |
| 7991 | fi |
| 7992 | fi |
| 7993 | chmod u+w . 2>&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7994 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7995 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7996 | # template instantiation |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7997 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7998 | $RM out/* && rmdir out |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 7999 | cd .. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8000 | $RM -r conftest |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8001 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8002 | |
| 8003 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8004 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8005 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8006 | |
| 8007 | |
| 8008 | |
| 8009 | |
| 8010 | |
| 8011 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8012 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8013 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8014 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8015 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8016 | else |
| 8017 | lt_cv_prog_compiler_c_o=no |
| 8018 | $RM -r conftest 2>/dev/null |
| 8019 | mkdir conftest |
| 8020 | cd conftest |
| 8021 | mkdir out |
| 8022 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8023 | |
| 8024 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8025 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8026 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8027 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8028 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8029 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8030 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8031 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8032 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 8033 | (eval echo "\"\$as_me:8033: $lt_compile\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8034 | (eval "$lt_compile" 2>out/conftest.err) |
| 8035 | ac_status=$? |
| 8036 | cat out/conftest.err >&5 |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 8037 | echo "$as_me:8037: \$? = $ac_status" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8038 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8039 | then |
| 8040 | # The compiler can only warn and ignore the option if not recognized |
| 8041 | # So say no if there are warnings |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8042 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8043 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8044 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8045 | lt_cv_prog_compiler_c_o=yes |
| 8046 | fi |
| 8047 | fi |
| 8048 | chmod u+w . 2>&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8049 | $RM conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8050 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8051 | # template instantiation |
| 8052 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8053 | $RM out/* && rmdir out |
| 8054 | cd .. |
| 8055 | $RM -r conftest |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8056 | $RM conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8057 | |
| 8058 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8059 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8060 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8061 | |
| 8062 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8063 | |
| 8064 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8065 | hard_links="nottested" |
| 8066 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8067 | # do not overwrite the value of need_locks provided by the user |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8068 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8069 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8070 | hard_links=yes |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8071 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8072 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8073 | touch conftest.a |
| 8074 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8075 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8076 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8077 | $as_echo "$hard_links" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8078 | if test "$hard_links" = no; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8079 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8080 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8081 | need_locks=warn |
| 8082 | fi |
| 8083 | else |
| 8084 | need_locks=no |
| 8085 | fi |
| 8086 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8092 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8093 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8094 | |
| 8095 | runpath_var= |
| 8096 | allow_undefined_flag= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8097 | always_export_symbols=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8098 | archive_cmds= |
| 8099 | archive_expsym_cmds= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8100 | compiler_needs_object=no |
| 8101 | enable_shared_with_static_runtimes=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8102 | export_dynamic_flag_spec= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8103 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8104 | hardcode_automatic=no |
| 8105 | hardcode_direct=no |
| 8106 | hardcode_direct_absolute=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8107 | hardcode_libdir_flag_spec= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8108 | hardcode_libdir_flag_spec_ld= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8109 | hardcode_libdir_separator= |
| 8110 | hardcode_minus_L=no |
| 8111 | hardcode_shlibpath_var=unsupported |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8112 | inherit_rpath=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8113 | link_all_deplibs=unknown |
| 8114 | module_cmds= |
| 8115 | module_expsym_cmds= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8116 | old_archive_from_new_cmds= |
| 8117 | old_archive_from_expsyms_cmds= |
| 8118 | thread_safe_flag_spec= |
| 8119 | whole_archive_flag_spec= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8120 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8121 | # included in the symbol list |
| 8122 | include_expsyms= |
| 8123 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8124 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8125 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8126 | # as well as any symbol that contains `d'. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8127 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8128 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8129 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8130 | # the symbol is explicitly referenced. Since portable code cannot |
| 8131 | # rely on this symbol name, it's probably fine to never include it in |
| 8132 | # preloaded symbol tables. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8133 | # Exclude shared library initialization/finalization symbols. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8134 | extract_expsyms_cmds= |
| 8135 | |
| 8136 | case $host_os in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8137 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8138 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8139 | # When not using gcc, we currently assume that we are using |
| 8140 | # Microsoft Visual C++. |
| 8141 | if test "$GCC" != yes; then |
| 8142 | with_gnu_ld=no |
| 8143 | fi |
| 8144 | ;; |
| 8145 | interix*) |
| 8146 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8147 | with_gnu_ld=yes |
| 8148 | ;; |
| 8149 | openbsd*) |
| 8150 | with_gnu_ld=no |
| 8151 | ;; |
| 8152 | esac |
| 8153 | |
| 8154 | ld_shlibs=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8155 | if test "$with_gnu_ld" = yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8156 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8157 | wlarc='${wl}' |
| 8158 | |
| 8159 | # Set some defaults for GNU ld with shared library support. These |
| 8160 | # are reset later if shared libraries are not supported. Putting them |
| 8161 | # here allows them to be overridden if necessary. |
| 8162 | runpath_var=LD_RUN_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8163 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8164 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8165 | # ancient GNU ld didn't support --whole-archive et. al. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8166 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8167 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8168 | else |
| 8169 | whole_archive_flag_spec= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8170 | fi |
| 8171 | supports_anon_versioning=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8172 | case `$LD -v 2>&1` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8173 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8174 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8175 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8176 | *\ 2.11.*) ;; # other 2.11 versions |
| 8177 | *) supports_anon_versioning=yes ;; |
| 8178 | esac |
| 8179 | |
| 8180 | # See if GNU ld supports shared libraries. |
| 8181 | case $host_os in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8182 | aix[3-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8183 | # On AIX/PPC, the GNU linker is very broken |
| 8184 | if test "$host_cpu" != ia64; then |
| 8185 | ld_shlibs=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8186 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8187 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8188 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8189 | *** to be unable to reliably create shared libraries on AIX. |
| 8190 | *** Therefore, libtool is disabling shared libraries support. If you |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8191 | *** really care for shared libraries, you may want to modify your PATH |
| 8192 | *** so that a non-GNU linker is found, and then restart. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8193 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8194 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8195 | fi |
| 8196 | ;; |
| 8197 | |
| 8198 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8199 | case $host_cpu in |
| 8200 | powerpc) |
| 8201 | # see comment about AmigaOS4 .so support |
| 8202 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8203 | archive_expsym_cmds='' |
| 8204 | ;; |
| 8205 | m68k) |
| 8206 | 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)' |
| 8207 | hardcode_libdir_flag_spec='-L$libdir' |
| 8208 | hardcode_minus_L=yes |
| 8209 | ;; |
| 8210 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8211 | ;; |
| 8212 | |
| 8213 | beos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8214 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8215 | allow_undefined_flag=unsupported |
| 8216 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8217 | # support --undefined. This deserves some investigation. FIXME |
| 8218 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8219 | else |
| 8220 | ld_shlibs=no |
| 8221 | fi |
| 8222 | ;; |
| 8223 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8224 | cygwin* | mingw* | pw32* | cegcc*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8225 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8226 | # as there is no search path for DLLs. |
| 8227 | hardcode_libdir_flag_spec='-L$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8228 | allow_undefined_flag=unsupported |
| 8229 | always_export_symbols=no |
| 8230 | enable_shared_with_static_runtimes=yes |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8231 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8232 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8233 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8234 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8235 | # If the export-symbols file already is a .def file (1st line |
| 8236 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8237 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8238 | cp $export_symbols $output_objdir/$soname.def; |
| 8239 | else |
| 8240 | echo EXPORTS > $output_objdir/$soname.def; |
| 8241 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8242 | fi~ |
| 8243 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8244 | else |
| 8245 | ld_shlibs=no |
| 8246 | fi |
| 8247 | ;; |
| 8248 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8249 | interix[3-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8250 | hardcode_direct=no |
| 8251 | hardcode_shlibpath_var=no |
| 8252 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8253 | export_dynamic_flag_spec='${wl}-E' |
| 8254 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8255 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8256 | # default) and relocated if they conflict, which is a slow very memory |
| 8257 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8258 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8259 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8260 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8261 | 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' |
| 8262 | ;; |
| 8263 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8264 | gnu* | linux* | tpf* | k*bsd*-gnu) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8265 | tmp_diet=no |
| 8266 | if test "$host_os" = linux-dietlibc; then |
| 8267 | case $cc_basename in |
| 8268 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8269 | esac |
| 8270 | fi |
| 8271 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8272 | && test "$tmp_diet" = no |
| 8273 | then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8274 | tmp_addflag= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8275 | tmp_sharedflag='-shared' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8276 | case $cc_basename,$host_cpu in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8277 | pgcc*) # Portland Group C compiler |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8278 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8279 | tmp_addflag=' $pic_flag' |
| 8280 | ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8281 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8282 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8283 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8284 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8285 | tmp_addflag=' -i_dynamic' ;; |
| 8286 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8287 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8288 | ifc* | ifort*) # Intel Fortran compiler |
| 8289 | tmp_addflag=' -nofor_main' ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8290 | lf95*) # Lahey Fortran 8.1 |
| 8291 | whole_archive_flag_spec= |
| 8292 | tmp_sharedflag='--shared' ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8293 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8294 | tmp_sharedflag='-qmkshrobj' |
| 8295 | tmp_addflag= ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8296 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8297 | case `$CC -V 2>&1 | sed 5q` in |
| 8298 | *Sun\ C*) # Sun C 5.9 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8299 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8300 | compiler_needs_object=yes |
| 8301 | tmp_sharedflag='-G' ;; |
| 8302 | *Sun\ F*) # Sun Fortran 8.3 |
| 8303 | tmp_sharedflag='-G' ;; |
| 8304 | esac |
| 8305 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8306 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8307 | if test "x$supports_anon_versioning" = xyes; then |
| 8308 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8309 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8310 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8311 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8312 | fi |
| 8313 | |
| 8314 | case $cc_basename in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8315 | xlf*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8316 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8317 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8318 | hardcode_libdir_flag_spec= |
| 8319 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8320 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8321 | if test "x$supports_anon_versioning" = xyes; then |
| 8322 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8323 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8324 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8325 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8326 | fi |
| 8327 | ;; |
| 8328 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8329 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8330 | ld_shlibs=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8331 | fi |
| 8332 | ;; |
| 8333 | |
| 8334 | netbsd*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8335 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8336 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8337 | wlarc= |
| 8338 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8339 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8340 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8341 | fi |
| 8342 | ;; |
| 8343 | |
| 8344 | solaris*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8345 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8346 | ld_shlibs=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8347 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8348 | |
| 8349 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8350 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8351 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8352 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8353 | *** your PATH or compiler configuration so that the native linker is |
| 8354 | *** used, and then restart. |
| 8355 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8356 | _LT_EOF |
| 8357 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8358 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8359 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8360 | else |
| 8361 | ld_shlibs=no |
| 8362 | fi |
| 8363 | ;; |
| 8364 | |
| 8365 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8366 | case `$LD -v 2>&1` in |
| 8367 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8368 | ld_shlibs=no |
| 8369 | cat <<_LT_EOF 1>&2 |
| 8370 | |
| 8371 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8372 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8373 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8374 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8375 | *** your PATH or compiler configuration so that the native linker is |
| 8376 | *** used, and then restart. |
| 8377 | |
| 8378 | _LT_EOF |
| 8379 | ;; |
| 8380 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8381 | # For security reasons, it is highly recommended that you always |
| 8382 | # use absolute paths for naming shared libraries, and exclude the |
| 8383 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 8384 | # requires that you compile everything twice, which is a pain. |
| 8385 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8386 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8388 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8389 | else |
| 8390 | ld_shlibs=no |
| 8391 | fi |
| 8392 | ;; |
| 8393 | esac |
| 8394 | ;; |
| 8395 | |
| 8396 | sunos4*) |
| 8397 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8398 | wlarc= |
| 8399 | hardcode_direct=yes |
| 8400 | hardcode_shlibpath_var=no |
| 8401 | ;; |
| 8402 | |
| 8403 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8404 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8405 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8406 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8407 | else |
| 8408 | ld_shlibs=no |
| 8409 | fi |
| 8410 | ;; |
| 8411 | esac |
| 8412 | |
| 8413 | if test "$ld_shlibs" = no; then |
| 8414 | runpath_var= |
| 8415 | hardcode_libdir_flag_spec= |
| 8416 | export_dynamic_flag_spec= |
| 8417 | whole_archive_flag_spec= |
| 8418 | fi |
| 8419 | else |
| 8420 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8421 | case $host_os in |
| 8422 | aix3*) |
| 8423 | allow_undefined_flag=unsupported |
| 8424 | always_export_symbols=yes |
| 8425 | 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' |
| 8426 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8427 | # are no directories specified by -L. |
| 8428 | hardcode_minus_L=yes |
| 8429 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8430 | # Neither direct hardcoding nor static linking is supported with a |
| 8431 | # broken collect2. |
| 8432 | hardcode_direct=unsupported |
| 8433 | fi |
| 8434 | ;; |
| 8435 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8436 | aix[4-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8437 | if test "$host_cpu" = ia64; then |
| 8438 | # On IA64, the linker does run time linking by default, so we don't |
| 8439 | # have to do anything special. |
| 8440 | aix_use_runtimelinking=no |
| 8441 | exp_sym_flag='-Bexport' |
| 8442 | no_entry_flag="" |
| 8443 | else |
| 8444 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8445 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8446 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8447 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8448 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8449 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8450 | fi |
| 8451 | aix_use_runtimelinking=no |
| 8452 | |
| 8453 | # Test if we are trying to use run time linking or normal |
| 8454 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8455 | # need to do runtime linking. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8456 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8457 | for ld_flag in $LDFLAGS; do |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8458 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8459 | aix_use_runtimelinking=yes |
| 8460 | break |
| 8461 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8462 | done |
| 8463 | ;; |
| 8464 | esac |
| 8465 | |
| 8466 | exp_sym_flag='-bexport' |
| 8467 | no_entry_flag='-bnoentry' |
| 8468 | fi |
| 8469 | |
| 8470 | # When large executables or shared objects are built, AIX ld can |
| 8471 | # have problems creating the table of contents. If linking a library |
| 8472 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8473 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8474 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8475 | |
| 8476 | archive_cmds='' |
| 8477 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8478 | hardcode_direct_absolute=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8479 | hardcode_libdir_separator=':' |
| 8480 | link_all_deplibs=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8481 | file_list_spec='${wl}-f,' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8482 | |
| 8483 | if test "$GCC" = yes; then |
| 8484 | case $host_os in aix4.[012]|aix4.[012].*) |
| 8485 | # We only want to do this on AIX 4.2 and lower, the check |
| 8486 | # below for broken collect2 doesn't work under 4.3+ |
| 8487 | collect2name=`${CC} -print-prog-name=collect2` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8488 | if test -f "$collect2name" && |
| 8489 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8490 | then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8491 | # We have reworked collect2 |
| 8492 | : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8493 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8494 | # We have old collect2 |
| 8495 | hardcode_direct=unsupported |
| 8496 | # It fails to find uninstalled libraries when the uninstalled |
| 8497 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8498 | # to unsupported forces relinking |
| 8499 | hardcode_minus_L=yes |
| 8500 | hardcode_libdir_flag_spec='-L$libdir' |
| 8501 | hardcode_libdir_separator= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8502 | fi |
| 8503 | ;; |
| 8504 | esac |
| 8505 | shared_flag='-shared' |
| 8506 | if test "$aix_use_runtimelinking" = yes; then |
| 8507 | shared_flag="$shared_flag "'${wl}-G' |
| 8508 | fi |
| 8509 | else |
| 8510 | # not using gcc |
| 8511 | if test "$host_cpu" = ia64; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8512 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8513 | # chokes on -Wl,-G. The following line is correct: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8514 | shared_flag='-G' |
| 8515 | else |
| 8516 | if test "$aix_use_runtimelinking" = yes; then |
| 8517 | shared_flag='${wl}-G' |
| 8518 | else |
| 8519 | shared_flag='${wl}-bM:SRE' |
| 8520 | fi |
| 8521 | fi |
| 8522 | fi |
| 8523 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8524 | export_dynamic_flag_spec='${wl}-bexpall' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8525 | # It seems that -bexpall does not export symbols beginning with |
| 8526 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8527 | always_export_symbols=yes |
| 8528 | if test "$aix_use_runtimelinking" = yes; then |
| 8529 | # Warning - without using the other runtime loading flags (-brtl), |
| 8530 | # -berok will link without error, but may produce a broken library. |
| 8531 | allow_undefined_flag='-berok' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8532 | # Determine the default libpath from the value encoded in an |
| 8533 | # empty executable. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8534 | cat >conftest.$ac_ext <<_ACEOF |
| 8535 | /* confdefs.h. */ |
| 8536 | _ACEOF |
| 8537 | cat confdefs.h >>conftest.$ac_ext |
| 8538 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8539 | /* end confdefs.h. */ |
| 8540 | |
| 8541 | int |
| 8542 | main () |
| 8543 | { |
| 8544 | |
| 8545 | ; |
| 8546 | return 0; |
| 8547 | } |
| 8548 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8550 | if { (ac_try="$ac_link" |
| 8551 | case "(($ac_try" in |
| 8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8553 | *) ac_try_echo=$ac_try;; |
| 8554 | esac |
| 8555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8556 | $as_echo "$ac_try_echo") >&5 |
| 8557 | (eval "$ac_link") 2>conftest.er1 |
| 8558 | ac_status=$? |
| 8559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8560 | rm -f conftest.er1 |
| 8561 | cat conftest.err >&5 |
| 8562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8563 | (exit $ac_status); } && { |
| 8564 | test -z "$ac_c_werror_flag" || |
| 8565 | test ! -s conftest.err |
| 8566 | } && test -s conftest$ac_exeext && { |
| 8567 | test "$cross_compiling" = yes || |
| 8568 | $as_test_x conftest$ac_exeext |
| 8569 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8570 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8571 | lt_aix_libpath_sed=' |
| 8572 | /Import File Strings/,/^$/ { |
| 8573 | /^0/ { |
| 8574 | s/^0 *\(.*\)$/\1/ |
| 8575 | p |
| 8576 | } |
| 8577 | }' |
| 8578 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8579 | # Check for a 64-bit object if we didn't find anything. |
| 8580 | if test -z "$aix_libpath"; then |
| 8581 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8582 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8583 | else |
| 8584 | $as_echo "$as_me: failed program was:" >&5 |
| 8585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8586 | |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 8587 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8588 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 8589 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8590 | rm -rf conftest.dSYM |
| 8591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8592 | conftest$ac_exeext conftest.$ac_ext |
| 8593 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 8594 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8595 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8596 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8597 | else |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8598 | if test "$host_cpu" = ia64; then |
| 8599 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8600 | allow_undefined_flag="-z nodefs" |
| 8601 | 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" |
| 8602 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8603 | # Determine the default libpath from the value encoded in an |
| 8604 | # empty executable. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8605 | cat >conftest.$ac_ext <<_ACEOF |
| 8606 | /* confdefs.h. */ |
| 8607 | _ACEOF |
| 8608 | cat confdefs.h >>conftest.$ac_ext |
| 8609 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8610 | /* end confdefs.h. */ |
| 8611 | |
| 8612 | int |
| 8613 | main () |
| 8614 | { |
| 8615 | |
| 8616 | ; |
| 8617 | return 0; |
| 8618 | } |
| 8619 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8621 | if { (ac_try="$ac_link" |
| 8622 | case "(($ac_try" in |
| 8623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8624 | *) ac_try_echo=$ac_try;; |
| 8625 | esac |
| 8626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8627 | $as_echo "$ac_try_echo") >&5 |
| 8628 | (eval "$ac_link") 2>conftest.er1 |
| 8629 | ac_status=$? |
| 8630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8631 | rm -f conftest.er1 |
| 8632 | cat conftest.err >&5 |
| 8633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8634 | (exit $ac_status); } && { |
| 8635 | test -z "$ac_c_werror_flag" || |
| 8636 | test ! -s conftest.err |
| 8637 | } && test -s conftest$ac_exeext && { |
| 8638 | test "$cross_compiling" = yes || |
| 8639 | $as_test_x conftest$ac_exeext |
| 8640 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8641 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8642 | lt_aix_libpath_sed=' |
| 8643 | /Import File Strings/,/^$/ { |
| 8644 | /^0/ { |
| 8645 | s/^0 *\(.*\)$/\1/ |
| 8646 | p |
| 8647 | } |
| 8648 | }' |
| 8649 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8650 | # Check for a 64-bit object if we didn't find anything. |
| 8651 | if test -z "$aix_libpath"; then |
| 8652 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8653 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8654 | else |
| 8655 | $as_echo "$as_me: failed program was:" >&5 |
| 8656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8657 | |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 8658 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8659 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 8660 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8661 | rm -rf conftest.dSYM |
| 8662 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8663 | conftest$ac_exeext conftest.$ac_ext |
| 8664 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8665 | |
| 8666 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8667 | # Warning - without using the other run time loading flags, |
| 8668 | # -berok will link without error, but may produce a broken library. |
| 8669 | no_undefined_flag=' ${wl}-bernotok' |
| 8670 | allow_undefined_flag=' ${wl}-berok' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8671 | # Exported symbols can be pulled into shared objects from archives |
| 8672 | whole_archive_flag_spec='$convenience' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8673 | archive_cmds_need_lc=yes |
| 8674 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8675 | 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' |
| 8676 | fi |
| 8677 | fi |
| 8678 | ;; |
| 8679 | |
| 8680 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8681 | case $host_cpu in |
| 8682 | powerpc) |
| 8683 | # see comment about AmigaOS4 .so support |
| 8684 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8685 | archive_expsym_cmds='' |
| 8686 | ;; |
| 8687 | m68k) |
| 8688 | 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)' |
| 8689 | hardcode_libdir_flag_spec='-L$libdir' |
| 8690 | hardcode_minus_L=yes |
| 8691 | ;; |
| 8692 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8693 | ;; |
| 8694 | |
| 8695 | bsdi[45]*) |
| 8696 | export_dynamic_flag_spec=-rdynamic |
| 8697 | ;; |
| 8698 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8699 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8700 | # When not using gcc, we currently assume that we are using |
| 8701 | # Microsoft Visual C++. |
| 8702 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8703 | # no search path for DLLs. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8704 | hardcode_libdir_flag_spec=' ' |
| 8705 | allow_undefined_flag=unsupported |
| 8706 | # Tell ltmain to make .lib files, not .a files. |
| 8707 | libext=lib |
| 8708 | # Tell ltmain to make .dll files, not .so files. |
| 8709 | shrext_cmds=".dll" |
| 8710 | # FIXME: Setting linknames here is a bad hack. |
| 8711 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8712 | # The linker will automatically build a .lib file if we build a DLL. |
| 8713 | old_archive_from_new_cmds='true' |
| 8714 | # FIXME: Should let the user specify the lib program. |
| 8715 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 8716 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8717 | enable_shared_with_static_runtimes=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8718 | ;; |
| 8719 | |
| 8720 | darwin* | rhapsody*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8721 | |
| 8722 | |
| 8723 | archive_cmds_need_lc=no |
| 8724 | hardcode_direct=no |
| 8725 | hardcode_automatic=yes |
| 8726 | hardcode_shlibpath_var=unsupported |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8727 | whole_archive_flag_spec='' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8728 | link_all_deplibs=yes |
| 8729 | allow_undefined_flag="$_lt_dar_allow_undefined" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8730 | case $cc_basename in |
| 8731 | ifort*) _lt_dar_can_shared=yes ;; |
| 8732 | *) _lt_dar_can_shared=$GCC ;; |
| 8733 | esac |
| 8734 | if test "$_lt_dar_can_shared" = "yes"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8735 | output_verbose_link_cmd=echo |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8736 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 8737 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 8738 | 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}" |
| 8739 | 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}" |
| 8740 | |
| 8741 | else |
| 8742 | ld_shlibs=no |
| 8743 | fi |
| 8744 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8745 | ;; |
| 8746 | |
| 8747 | dgux*) |
| 8748 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8749 | hardcode_libdir_flag_spec='-L$libdir' |
| 8750 | hardcode_shlibpath_var=no |
| 8751 | ;; |
| 8752 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8753 | freebsd1*) |
| 8754 | ld_shlibs=no |
| 8755 | ;; |
| 8756 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8757 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8758 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8759 | # does not break anything, and helps significantly (at the cost of a little |
| 8760 | # extra space). |
| 8761 | freebsd2.2*) |
| 8762 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8763 | hardcode_libdir_flag_spec='-R$libdir' |
| 8764 | hardcode_direct=yes |
| 8765 | hardcode_shlibpath_var=no |
| 8766 | ;; |
| 8767 | |
| 8768 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8769 | freebsd2*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8770 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8771 | hardcode_direct=yes |
| 8772 | hardcode_minus_L=yes |
| 8773 | hardcode_shlibpath_var=no |
| 8774 | ;; |
| 8775 | |
| 8776 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8777 | freebsd* | dragonfly*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8778 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8779 | hardcode_libdir_flag_spec='-R$libdir' |
| 8780 | hardcode_direct=yes |
| 8781 | hardcode_shlibpath_var=no |
| 8782 | ;; |
| 8783 | |
| 8784 | hpux9*) |
| 8785 | if test "$GCC" = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8786 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8787 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8788 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8789 | fi |
| 8790 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8791 | hardcode_libdir_separator=: |
| 8792 | hardcode_direct=yes |
| 8793 | |
| 8794 | # hardcode_minus_L: Not really in the search PATH, |
| 8795 | # but as the default location of the library. |
| 8796 | hardcode_minus_L=yes |
| 8797 | export_dynamic_flag_spec='${wl}-E' |
| 8798 | ;; |
| 8799 | |
| 8800 | hpux10*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8801 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8802 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8803 | else |
| 8804 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8805 | fi |
| 8806 | if test "$with_gnu_ld" = no; then |
| 8807 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8808 | hardcode_libdir_flag_spec_ld='+b $libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8809 | hardcode_libdir_separator=: |
| 8810 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8811 | hardcode_direct_absolute=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8812 | export_dynamic_flag_spec='${wl}-E' |
| 8813 | # hardcode_minus_L: Not really in the search PATH, |
| 8814 | # but as the default location of the library. |
| 8815 | hardcode_minus_L=yes |
| 8816 | fi |
| 8817 | ;; |
| 8818 | |
| 8819 | hpux11*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8820 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8821 | case $host_cpu in |
| 8822 | hppa*64*) |
| 8823 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8824 | ;; |
| 8825 | ia64*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8826 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8827 | ;; |
| 8828 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8829 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8830 | ;; |
| 8831 | esac |
| 8832 | else |
| 8833 | case $host_cpu in |
| 8834 | hppa*64*) |
| 8835 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8836 | ;; |
| 8837 | ia64*) |
| 8838 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8839 | ;; |
| 8840 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8841 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8842 | ;; |
| 8843 | esac |
| 8844 | fi |
| 8845 | if test "$with_gnu_ld" = no; then |
| 8846 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8847 | hardcode_libdir_separator=: |
| 8848 | |
| 8849 | case $host_cpu in |
| 8850 | hppa*64*|ia64*) |
| 8851 | hardcode_direct=no |
| 8852 | hardcode_shlibpath_var=no |
| 8853 | ;; |
| 8854 | *) |
| 8855 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8856 | hardcode_direct_absolute=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8857 | export_dynamic_flag_spec='${wl}-E' |
| 8858 | |
| 8859 | # hardcode_minus_L: Not really in the search PATH, |
| 8860 | # but as the default location of the library. |
| 8861 | hardcode_minus_L=yes |
| 8862 | ;; |
| 8863 | esac |
| 8864 | fi |
| 8865 | ;; |
| 8866 | |
| 8867 | irix5* | irix6* | nonstopux*) |
| 8868 | if test "$GCC" = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8870 | # Try to use the -exported_symbol ld option, if it does not |
| 8871 | # work, assume that -exports_file does not work either and |
| 8872 | # implicitly export all symbols. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8873 | save_LDFLAGS="$LDFLAGS" |
| 8874 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 8875 | cat >conftest.$ac_ext <<_ACEOF |
| 8876 | int foo(void) {} |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 8877 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8878 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8879 | if { (ac_try="$ac_link" |
| 8880 | case "(($ac_try" in |
| 8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8882 | *) ac_try_echo=$ac_try;; |
| 8883 | esac |
| 8884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8885 | $as_echo "$ac_try_echo") >&5 |
| 8886 | (eval "$ac_link") 2>conftest.er1 |
| 8887 | ac_status=$? |
| 8888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8889 | rm -f conftest.er1 |
| 8890 | cat conftest.err >&5 |
| 8891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8892 | (exit $ac_status); } && { |
| 8893 | test -z "$ac_c_werror_flag" || |
| 8894 | test ! -s conftest.err |
| 8895 | } && test -s conftest$ac_exeext && { |
| 8896 | test "$cross_compiling" = yes || |
| 8897 | $as_test_x conftest$ac_exeext |
| 8898 | }; then |
| 8899 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 8900 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 8901 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8902 | $as_echo "$as_me: failed program was:" >&5 |
| 8903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8904 | |
| 8905 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8906 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8907 | |
| 8908 | rm -rf conftest.dSYM |
| 8909 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8910 | conftest$ac_exeext conftest.$ac_ext |
| 8911 | LDFLAGS="$save_LDFLAGS" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8912 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8913 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8914 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8915 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8916 | archive_cmds_need_lc='no' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8917 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8918 | hardcode_libdir_separator=: |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8919 | inherit_rpath=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8920 | link_all_deplibs=yes |
| 8921 | ;; |
| 8922 | |
| 8923 | netbsd*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8924 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8925 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8926 | else |
| 8927 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8928 | fi |
| 8929 | hardcode_libdir_flag_spec='-R$libdir' |
| 8930 | hardcode_direct=yes |
| 8931 | hardcode_shlibpath_var=no |
| 8932 | ;; |
| 8933 | |
| 8934 | newsos6) |
| 8935 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8936 | hardcode_direct=yes |
| 8937 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8938 | hardcode_libdir_separator=: |
| 8939 | hardcode_shlibpath_var=no |
| 8940 | ;; |
| 8941 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8942 | *nto* | *qnx*) |
| 8943 | ;; |
| 8944 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8945 | openbsd*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8946 | if test -f /usr/libexec/ld.so; then |
| 8947 | hardcode_direct=yes |
| 8948 | hardcode_shlibpath_var=no |
| 8949 | hardcode_direct_absolute=yes |
| 8950 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8951 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8952 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8953 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8954 | export_dynamic_flag_spec='${wl}-E' |
| 8955 | else |
| 8956 | case $host_os in |
| 8957 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8958 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8959 | hardcode_libdir_flag_spec='-R$libdir' |
| 8960 | ;; |
| 8961 | *) |
| 8962 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8963 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8964 | ;; |
| 8965 | esac |
| 8966 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8967 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8968 | ld_shlibs=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8969 | fi |
| 8970 | ;; |
| 8971 | |
| 8972 | os2*) |
| 8973 | hardcode_libdir_flag_spec='-L$libdir' |
| 8974 | hardcode_minus_L=yes |
| 8975 | allow_undefined_flag=unsupported |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8976 | 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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8977 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8978 | ;; |
| 8979 | |
| 8980 | osf3*) |
| 8981 | if test "$GCC" = yes; then |
| 8982 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8983 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8984 | else |
| 8985 | allow_undefined_flag=' -expect_unresolved \*' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8986 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8987 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8988 | archive_cmds_need_lc='no' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8989 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8990 | hardcode_libdir_separator=: |
| 8991 | ;; |
| 8992 | |
| 8993 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8994 | if test "$GCC" = yes; then |
| 8995 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 8996 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8997 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8998 | else |
| 8999 | allow_undefined_flag=' -expect_unresolved \*' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9000 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9001 | 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~ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9002 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9003 | |
| 9004 | # Both c and cxx compiler support -rpath directly |
| 9005 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9006 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9007 | archive_cmds_need_lc='no' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9008 | hardcode_libdir_separator=: |
| 9009 | ;; |
| 9010 | |
| 9011 | solaris*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9012 | no_undefined_flag=' -z defs' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9013 | if test "$GCC" = yes; then |
| 9014 | wlarc='${wl}' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9015 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9016 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9017 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9018 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9019 | case `$CC -V 2>&1` in |
| 9020 | *"Compilers 5.0"*) |
| 9021 | wlarc='' |
| 9022 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9023 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9024 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9025 | ;; |
| 9026 | *) |
| 9027 | wlarc='${wl}' |
| 9028 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9029 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9030 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9031 | ;; |
| 9032 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9033 | fi |
| 9034 | hardcode_libdir_flag_spec='-R$libdir' |
| 9035 | hardcode_shlibpath_var=no |
| 9036 | case $host_os in |
| 9037 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9038 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9039 | # The compiler driver will combine and reorder linker options, |
| 9040 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9041 | # but is careful enough not to reorder. |
| 9042 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9043 | if test "$GCC" = yes; then |
| 9044 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9045 | else |
| 9046 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9047 | fi |
| 9048 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9049 | esac |
| 9050 | link_all_deplibs=yes |
| 9051 | ;; |
| 9052 | |
| 9053 | sunos4*) |
| 9054 | if test "x$host_vendor" = xsequent; then |
| 9055 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9056 | # files that make .init and .fini sections work. |
| 9057 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9058 | else |
| 9059 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9060 | fi |
| 9061 | hardcode_libdir_flag_spec='-L$libdir' |
| 9062 | hardcode_direct=yes |
| 9063 | hardcode_minus_L=yes |
| 9064 | hardcode_shlibpath_var=no |
| 9065 | ;; |
| 9066 | |
| 9067 | sysv4) |
| 9068 | case $host_vendor in |
| 9069 | sni) |
| 9070 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9071 | hardcode_direct=yes # is this really true??? |
| 9072 | ;; |
| 9073 | siemens) |
| 9074 | ## LD is ld it makes a PLAMLIB |
| 9075 | ## CC just makes a GrossModule. |
| 9076 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9077 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9078 | hardcode_direct=no |
| 9079 | ;; |
| 9080 | motorola) |
| 9081 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9082 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9083 | ;; |
| 9084 | esac |
| 9085 | runpath_var='LD_RUN_PATH' |
| 9086 | hardcode_shlibpath_var=no |
| 9087 | ;; |
| 9088 | |
| 9089 | sysv4.3*) |
| 9090 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9091 | hardcode_shlibpath_var=no |
| 9092 | export_dynamic_flag_spec='-Bexport' |
| 9093 | ;; |
| 9094 | |
| 9095 | sysv4*MP*) |
| 9096 | if test -d /usr/nec; then |
| 9097 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9098 | hardcode_shlibpath_var=no |
| 9099 | runpath_var=LD_RUN_PATH |
| 9100 | hardcode_runpath_var=yes |
| 9101 | ld_shlibs=yes |
| 9102 | fi |
| 9103 | ;; |
| 9104 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9105 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9106 | no_undefined_flag='${wl}-z,text' |
| 9107 | archive_cmds_need_lc=no |
| 9108 | hardcode_shlibpath_var=no |
| 9109 | runpath_var='LD_RUN_PATH' |
| 9110 | |
| 9111 | if test "$GCC" = yes; then |
| 9112 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9113 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9114 | else |
| 9115 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9116 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9117 | fi |
| 9118 | ;; |
| 9119 | |
| 9120 | sysv5* | sco3.2v5* | sco5v6*) |
| 9121 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9122 | # link with -lc, and that would cause any symbols used from libc to |
| 9123 | # always be unresolved, which means just about no library would |
| 9124 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9125 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9126 | # as -z defs. |
| 9127 | no_undefined_flag='${wl}-z,text' |
| 9128 | allow_undefined_flag='${wl}-z,nodefs' |
| 9129 | archive_cmds_need_lc=no |
| 9130 | hardcode_shlibpath_var=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9131 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9132 | hardcode_libdir_separator=':' |
| 9133 | link_all_deplibs=yes |
| 9134 | export_dynamic_flag_spec='${wl}-Bexport' |
| 9135 | runpath_var='LD_RUN_PATH' |
| 9136 | |
| 9137 | if test "$GCC" = yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9138 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9139 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9140 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9141 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9142 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9143 | fi |
| 9144 | ;; |
| 9145 | |
| 9146 | uts4*) |
| 9147 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9148 | hardcode_libdir_flag_spec='-L$libdir' |
| 9149 | hardcode_shlibpath_var=no |
| 9150 | ;; |
| 9151 | |
| 9152 | *) |
| 9153 | ld_shlibs=no |
| 9154 | ;; |
| 9155 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9156 | |
| 9157 | if test x$host_vendor = xsni; then |
| 9158 | case $host in |
| 9159 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9160 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9161 | ;; |
| 9162 | esac |
| 9163 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9164 | fi |
| 9165 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9166 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9167 | $as_echo "$ld_shlibs" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9168 | test "$ld_shlibs" = no && can_build_shared=no |
| 9169 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9170 | with_gnu_ld=$with_gnu_ld |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | |
| 9183 | |
| 9184 | |
| 9185 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9186 | # |
| 9187 | # Do we need to explicitly link libc? |
| 9188 | # |
| 9189 | case "x$archive_cmds_need_lc" in |
| 9190 | x|xyes) |
| 9191 | # Assume -lc should be added |
| 9192 | archive_cmds_need_lc=yes |
| 9193 | |
| 9194 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9195 | case $archive_cmds in |
| 9196 | *'~'*) |
| 9197 | # FIXME: we may have to deal with multi-command sequences. |
| 9198 | ;; |
| 9199 | '$CC '*) |
| 9200 | # Test whether the compiler implicitly links with -lc since on some |
| 9201 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9202 | # to ld, don't add -lc before -lgcc. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9203 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9204 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9205 | $RM conftest* |
| 9206 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9207 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9209 | (eval $ac_compile) 2>&5 |
| 9210 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); } 2>conftest.err; then |
| 9213 | soname=conftest |
| 9214 | lib=conftest |
| 9215 | libobjs=conftest.$ac_objext |
| 9216 | deplibs= |
| 9217 | wl=$lt_prog_compiler_wl |
| 9218 | pic_flag=$lt_prog_compiler_pic |
| 9219 | compiler_flags=-v |
| 9220 | linker_flags=-v |
| 9221 | verstring= |
| 9222 | output_objdir=. |
| 9223 | libname=conftest |
| 9224 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9225 | allow_undefined_flag= |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9227 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9228 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); } |
| 9231 | then |
| 9232 | archive_cmds_need_lc=no |
| 9233 | else |
| 9234 | archive_cmds_need_lc=yes |
| 9235 | fi |
| 9236 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9237 | else |
| 9238 | cat conftest.err 1>&5 |
| 9239 | fi |
| 9240 | $RM conftest* |
| 9241 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 9242 | $as_echo "$archive_cmds_need_lc" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9243 | ;; |
| 9244 | esac |
| 9245 | fi |
| 9246 | ;; |
| 9247 | esac |
| 9248 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9249 | |
| 9250 | |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | |
| 9279 | |
| 9280 | |
| 9281 | |
| 9282 | |
| 9283 | |
| 9284 | |
| 9285 | |
| 9286 | |
| 9287 | |
| 9288 | |
| 9289 | |
| 9290 | |
| 9291 | |
| 9292 | |
| 9293 | |
| 9294 | |
| 9295 | |
| 9296 | |
| 9297 | |
| 9298 | |
| 9299 | |
| 9300 | |
| 9301 | |
| 9302 | |
| 9303 | |
| 9304 | |
| 9305 | |
| 9306 | |
| 9307 | |
| 9308 | |
| 9309 | |
| 9310 | |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 | |
| 9316 | |
| 9317 | |
| 9318 | |
| 9319 | |
| 9320 | |
| 9321 | |
| 9322 | |
| 9323 | |
| 9324 | |
| 9325 | |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | |
| 9335 | |
| 9336 | |
| 9337 | |
| 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | |
| 9343 | |
| 9344 | |
| 9345 | |
| 9346 | |
| 9347 | |
| 9348 | |
| 9349 | |
| 9350 | |
| 9351 | |
| 9352 | |
| 9353 | |
| 9354 | |
| 9355 | |
| 9356 | |
| 9357 | |
| 9358 | |
| 9359 | |
| 9360 | |
| 9361 | |
| 9362 | |
| 9363 | |
| 9364 | |
| 9365 | |
| 9366 | |
| 9367 | |
| 9368 | |
| 9369 | |
| 9370 | |
| 9371 | |
| 9372 | |
| 9373 | |
| 9374 | |
| 9375 | |
| 9376 | |
| 9377 | |
| 9378 | |
| 9379 | |
| 9380 | |
| 9381 | |
| 9382 | |
| 9383 | |
| 9384 | |
| 9385 | |
| 9386 | |
| 9387 | |
| 9388 | |
| 9389 | |
| 9390 | |
| 9391 | |
| 9392 | |
| 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | |
| 9398 | |
| 9399 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9400 | |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | |
| 9405 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9406 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9407 | |
| 9408 | if test "$GCC" = yes; then |
| 9409 | case $host_os in |
| 9410 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9411 | *) lt_awk_arg="/^libraries:/" ;; |
| 9412 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9413 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9414 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9415 | # if the path contains ";" then we assume it to be the separator |
| 9416 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9417 | # assumed that no part of a normal pathname contains ";" but that should |
| 9418 | # okay in the real world where ";" in dirpaths is itself problematic. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9419 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 9420 | else |
| 9421 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9422 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9423 | # Ok, now we have the path, separated by spaces, we can step through it |
| 9424 | # and add multilib dir if necessary. |
| 9425 | lt_tmp_lt_search_path_spec= |
| 9426 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 9427 | for lt_sys_path in $lt_search_path_spec; do |
| 9428 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9429 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 9430 | else |
| 9431 | test -d "$lt_sys_path" && \ |
| 9432 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9433 | fi |
| 9434 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9435 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9436 | BEGIN {RS=" "; FS="/|\n";} { |
| 9437 | lt_foo=""; |
| 9438 | lt_count=0; |
| 9439 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9440 | if ($lt_i != "" && $lt_i != ".") { |
| 9441 | if ($lt_i == "..") { |
| 9442 | lt_count++; |
| 9443 | } else { |
| 9444 | if (lt_count == 0) { |
| 9445 | lt_foo="/" $lt_i lt_foo; |
| 9446 | } else { |
| 9447 | lt_count--; |
| 9448 | } |
| 9449 | } |
| 9450 | } |
| 9451 | } |
| 9452 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9453 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9454 | }'` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9455 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9456 | else |
| 9457 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9458 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9459 | library_names_spec= |
| 9460 | libname_spec='lib$name' |
| 9461 | soname_spec= |
| 9462 | shrext_cmds=".so" |
| 9463 | postinstall_cmds= |
| 9464 | postuninstall_cmds= |
| 9465 | finish_cmds= |
| 9466 | finish_eval= |
| 9467 | shlibpath_var= |
| 9468 | shlibpath_overrides_runpath=unknown |
| 9469 | version_type=none |
| 9470 | dynamic_linker="$host_os ld.so" |
| 9471 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9472 | need_lib_prefix=unknown |
| 9473 | hardcode_into_libs=no |
| 9474 | |
| 9475 | # when you set need_version to no, make sure it does not cause -set_version |
| 9476 | # flags to be left without arguments |
| 9477 | need_version=unknown |
| 9478 | |
| 9479 | case $host_os in |
| 9480 | aix3*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9481 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9482 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9483 | shlibpath_var=LIBPATH |
| 9484 | |
| 9485 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9487 | ;; |
| 9488 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9489 | aix[4-9]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9490 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9491 | need_lib_prefix=no |
| 9492 | need_version=no |
| 9493 | hardcode_into_libs=yes |
| 9494 | if test "$host_cpu" = ia64; then |
| 9495 | # AIX 5 supports IA64 |
| 9496 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9497 | shlibpath_var=LD_LIBRARY_PATH |
| 9498 | else |
| 9499 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9500 | # for dependence libraries. The import file would start with |
| 9501 | # the line `#! .'. This would cause the generated library to |
| 9502 | # depend on `.', always an invalid library. This was fixed in |
| 9503 | # development snapshots of GCC prior to 3.0. |
| 9504 | case $host_os in |
| 9505 | aix4 | aix4.[01] | aix4.[01].*) |
| 9506 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9507 | echo ' yes ' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9508 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9509 | : |
| 9510 | else |
| 9511 | can_build_shared=no |
| 9512 | fi |
| 9513 | ;; |
| 9514 | esac |
| 9515 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9516 | # soname into executable. Probably we can add versioning support to |
| 9517 | # collect2, so additional links can be useful in future. |
| 9518 | if test "$aix_use_runtimelinking" = yes; then |
| 9519 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9520 | # instead of lib<name>.a to let people know that these are not |
| 9521 | # typical AIX shared libraries. |
| 9522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9523 | else |
| 9524 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9525 | # and later when we are not doing run time linking. |
| 9526 | library_names_spec='${libname}${release}.a $libname.a' |
| 9527 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9528 | fi |
| 9529 | shlibpath_var=LIBPATH |
| 9530 | fi |
| 9531 | ;; |
| 9532 | |
| 9533 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9534 | case $host_cpu in |
| 9535 | powerpc) |
| 9536 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 9537 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 9538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9539 | ;; |
| 9540 | m68k) |
| 9541 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9542 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9543 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9544 | ;; |
| 9545 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9546 | ;; |
| 9547 | |
| 9548 | beos*) |
| 9549 | library_names_spec='${libname}${shared_ext}' |
| 9550 | dynamic_linker="$host_os ld.so" |
| 9551 | shlibpath_var=LIBRARY_PATH |
| 9552 | ;; |
| 9553 | |
| 9554 | bsdi[45]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9555 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9556 | need_version=no |
| 9557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9560 | shlibpath_var=LD_LIBRARY_PATH |
| 9561 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9562 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9563 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9564 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9565 | # libtool to hard-code these into programs |
| 9566 | ;; |
| 9567 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9568 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9569 | version_type=windows |
| 9570 | shrext_cmds=".dll" |
| 9571 | need_version=no |
| 9572 | need_lib_prefix=no |
| 9573 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9574 | case $GCC,$host_os in |
| 9575 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9576 | library_names_spec='$libname.dll.a' |
| 9577 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9578 | postinstall_cmds='base_file=`basename \${file}`~ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9579 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9580 | dldir=$destdir/`dirname \$dlpath`~ |
| 9581 | test -d \$dldir || mkdir -p \$dldir~ |
| 9582 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9583 | chmod a+x \$dldir/$dlname~ |
| 9584 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 9585 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 9586 | fi' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9587 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9588 | dlpath=$dir/\$dldll~ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9589 | $RM \$dlpath' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9590 | shlibpath_overrides_runpath=yes |
| 9591 | |
| 9592 | case $host_os in |
| 9593 | cygwin*) |
| 9594 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9595 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9596 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9597 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9598 | mingw* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9599 | # MinGW DLLs use traditional 'lib' prefix |
| 9600 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9601 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9602 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 9603 | # It is most probably a Windows format PATH printed by |
| 9604 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9605 | # path with ; separators, and with drive letters. We can handle the |
| 9606 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9607 | # especially as we might pass files found there to a mingw objdump, |
| 9608 | # which wouldn't understand a cygwinified path. Ahh. |
| 9609 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9610 | else |
| 9611 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9612 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9613 | ;; |
| 9614 | pw32*) |
| 9615 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 9616 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9617 | ;; |
| 9618 | esac |
| 9619 | ;; |
| 9620 | |
| 9621 | *) |
| 9622 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9623 | ;; |
| 9624 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9625 | dynamic_linker='Win32 ld.exe' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9626 | # FIXME: first we should search . and the directory the executable is in |
| 9627 | shlibpath_var=PATH |
| 9628 | ;; |
| 9629 | |
| 9630 | darwin* | rhapsody*) |
| 9631 | dynamic_linker="$host_os dyld" |
| 9632 | version_type=darwin |
| 9633 | need_lib_prefix=no |
| 9634 | need_version=no |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9635 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9636 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9637 | shlibpath_overrides_runpath=yes |
| 9638 | shlibpath_var=DYLD_LIBRARY_PATH |
| 9639 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9640 | |
| 9641 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9642 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9643 | ;; |
| 9644 | |
| 9645 | dgux*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9646 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9647 | need_lib_prefix=no |
| 9648 | need_version=no |
| 9649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9650 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9651 | shlibpath_var=LD_LIBRARY_PATH |
| 9652 | ;; |
| 9653 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9654 | freebsd1*) |
| 9655 | dynamic_linker=no |
| 9656 | ;; |
| 9657 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9658 | freebsd* | dragonfly*) |
| 9659 | # DragonFly does not have aout. When/if they implement a new |
| 9660 | # versioning mechanism, adjust this. |
| 9661 | if test -x /usr/bin/objformat; then |
| 9662 | objformat=`/usr/bin/objformat` |
| 9663 | else |
| 9664 | case $host_os in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9665 | freebsd[123]*) objformat=aout ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9666 | *) objformat=elf ;; |
| 9667 | esac |
| 9668 | fi |
| 9669 | version_type=freebsd-$objformat |
| 9670 | case $version_type in |
| 9671 | freebsd-elf*) |
| 9672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9673 | need_version=no |
| 9674 | need_lib_prefix=no |
| 9675 | ;; |
| 9676 | freebsd-*) |
| 9677 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9678 | need_version=yes |
| 9679 | ;; |
| 9680 | esac |
| 9681 | shlibpath_var=LD_LIBRARY_PATH |
| 9682 | case $host_os in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9683 | freebsd2*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9684 | shlibpath_overrides_runpath=yes |
| 9685 | ;; |
| 9686 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 9687 | shlibpath_overrides_runpath=yes |
| 9688 | hardcode_into_libs=yes |
| 9689 | ;; |
| 9690 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9691 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 9692 | shlibpath_overrides_runpath=no |
| 9693 | hardcode_into_libs=yes |
| 9694 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9695 | *) # from 4.6 on, and DragonFly |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9696 | shlibpath_overrides_runpath=yes |
| 9697 | hardcode_into_libs=yes |
| 9698 | ;; |
| 9699 | esac |
| 9700 | ;; |
| 9701 | |
| 9702 | gnu*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9703 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9704 | need_lib_prefix=no |
| 9705 | need_version=no |
| 9706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9708 | shlibpath_var=LD_LIBRARY_PATH |
| 9709 | hardcode_into_libs=yes |
| 9710 | ;; |
| 9711 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9712 | hpux9* | hpux10* | hpux11*) |
| 9713 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9714 | # link against other versions. |
| 9715 | version_type=sunos |
| 9716 | need_lib_prefix=no |
| 9717 | need_version=no |
| 9718 | case $host_cpu in |
| 9719 | ia64*) |
| 9720 | shrext_cmds='.so' |
| 9721 | hardcode_into_libs=yes |
| 9722 | dynamic_linker="$host_os dld.so" |
| 9723 | shlibpath_var=LD_LIBRARY_PATH |
| 9724 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9727 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9728 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9729 | else |
| 9730 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9731 | fi |
| 9732 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9733 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9734 | hppa*64*) |
| 9735 | shrext_cmds='.sl' |
| 9736 | hardcode_into_libs=yes |
| 9737 | dynamic_linker="$host_os dld.sl" |
| 9738 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9739 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9741 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9742 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9743 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9744 | ;; |
| 9745 | *) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9746 | shrext_cmds='.sl' |
| 9747 | dynamic_linker="$host_os dld.sl" |
| 9748 | shlibpath_var=SHLIB_PATH |
| 9749 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9751 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9752 | ;; |
| 9753 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9754 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9755 | postinstall_cmds='chmod 555 $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9756 | ;; |
| 9757 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9758 | interix[3-9]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9759 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9760 | need_lib_prefix=no |
| 9761 | need_version=no |
| 9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9764 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9765 | shlibpath_var=LD_LIBRARY_PATH |
| 9766 | shlibpath_overrides_runpath=no |
| 9767 | hardcode_into_libs=yes |
| 9768 | ;; |
| 9769 | |
| 9770 | irix5* | irix6* | nonstopux*) |
| 9771 | case $host_os in |
| 9772 | nonstopux*) version_type=nonstopux ;; |
| 9773 | *) |
| 9774 | if test "$lt_cv_prog_gnu_ld" = yes; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9775 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9776 | else |
| 9777 | version_type=irix |
| 9778 | fi ;; |
| 9779 | esac |
| 9780 | need_lib_prefix=no |
| 9781 | need_version=no |
| 9782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9784 | case $host_os in |
| 9785 | irix5* | nonstopux*) |
| 9786 | libsuff= shlibsuff= |
| 9787 | ;; |
| 9788 | *) |
| 9789 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9790 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9791 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9792 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9793 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9794 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9795 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9796 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9797 | esac |
| 9798 | ;; |
| 9799 | esac |
| 9800 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9801 | shlibpath_overrides_runpath=no |
| 9802 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9803 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9804 | hardcode_into_libs=yes |
| 9805 | ;; |
| 9806 | |
| 9807 | # No shared lib support for Linux oldld, aout, or coff. |
| 9808 | linux*oldld* | linux*aout* | linux*coff*) |
| 9809 | dynamic_linker=no |
| 9810 | ;; |
| 9811 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9812 | # This must be Linux ELF. |
| 9813 | linux* | k*bsd*-gnu) |
| 9814 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9815 | need_lib_prefix=no |
| 9816 | need_version=no |
| 9817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9818 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9820 | shlibpath_var=LD_LIBRARY_PATH |
| 9821 | shlibpath_overrides_runpath=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9822 | # Some binutils ld are patched to set DT_RUNPATH |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9823 | save_LDFLAGS=$LDFLAGS |
| 9824 | save_libdir=$libdir |
| 9825 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 9826 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 9827 | cat >conftest.$ac_ext <<_ACEOF |
| 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9832 | /* end confdefs.h. */ |
| 9833 | |
| 9834 | int |
| 9835 | main () |
| 9836 | { |
| 9837 | |
| 9838 | ; |
| 9839 | return 0; |
| 9840 | } |
| 9841 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9842 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9843 | if { (ac_try="$ac_link" |
| 9844 | case "(($ac_try" in |
| 9845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9846 | *) ac_try_echo=$ac_try;; |
| 9847 | esac |
| 9848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9849 | $as_echo "$ac_try_echo") >&5 |
| 9850 | (eval "$ac_link") 2>conftest.er1 |
| 9851 | ac_status=$? |
| 9852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9853 | rm -f conftest.er1 |
| 9854 | cat conftest.err >&5 |
| 9855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9856 | (exit $ac_status); } && { |
| 9857 | test -z "$ac_c_werror_flag" || |
| 9858 | test ! -s conftest.err |
| 9859 | } && test -s conftest$ac_exeext && { |
| 9860 | test "$cross_compiling" = yes || |
| 9861 | $as_test_x conftest$ac_exeext |
| 9862 | }; then |
| 9863 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 9864 | shlibpath_overrides_runpath=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9865 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9866 | |
| 9867 | else |
| 9868 | $as_echo "$as_me: failed program was:" >&5 |
| 9869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9870 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9871 | |
| 9872 | fi |
| 9873 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9874 | rm -rf conftest.dSYM |
| 9875 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9876 | conftest$ac_exeext conftest.$ac_ext |
| 9877 | LDFLAGS=$save_LDFLAGS |
| 9878 | libdir=$save_libdir |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9879 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9880 | # This implies no fast_install, which is unacceptable. |
| 9881 | # Some rework will be needed to allow for fast_install |
| 9882 | # before this can be enabled. |
| 9883 | hardcode_into_libs=yes |
| 9884 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9885 | # Add ABI-specific directories to the system library path. |
| 9886 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 9887 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9888 | # Append ld.so.conf contents to the search path |
| 9889 | if test -f /etc/ld.so.conf; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9890 | 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;/^$/d' | tr '\n' ' '` |
| 9891 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9892 | fi |
| 9893 | |
| 9894 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9895 | # powerpc, because MkLinux only supported shared libraries with the |
| 9896 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9897 | # most powerpc-linux boxes support dynamic linking these days and |
| 9898 | # people can always --disable-shared, the test was removed, and we |
| 9899 | # assume the GNU/Linux dynamic linker is in use. |
| 9900 | dynamic_linker='GNU/Linux ld.so' |
| 9901 | ;; |
| 9902 | |
| 9903 | netbsd*) |
| 9904 | version_type=sunos |
| 9905 | need_lib_prefix=no |
| 9906 | need_version=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9907 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9910 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9911 | else |
| 9912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9913 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9914 | dynamic_linker='NetBSD ld.elf_so' |
| 9915 | fi |
| 9916 | shlibpath_var=LD_LIBRARY_PATH |
| 9917 | shlibpath_overrides_runpath=yes |
| 9918 | hardcode_into_libs=yes |
| 9919 | ;; |
| 9920 | |
| 9921 | newsos6) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9922 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9924 | shlibpath_var=LD_LIBRARY_PATH |
| 9925 | shlibpath_overrides_runpath=yes |
| 9926 | ;; |
| 9927 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9928 | *nto* | *qnx*) |
| 9929 | version_type=qnx |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9930 | need_lib_prefix=no |
| 9931 | need_version=no |
| 9932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9934 | shlibpath_var=LD_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9935 | shlibpath_overrides_runpath=no |
| 9936 | hardcode_into_libs=yes |
| 9937 | dynamic_linker='ldqnx.so' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9938 | ;; |
| 9939 | |
| 9940 | openbsd*) |
| 9941 | version_type=sunos |
| 9942 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9943 | need_lib_prefix=no |
| 9944 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9945 | case $host_os in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9946 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9947 | *) need_version=no ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9948 | esac |
| 9949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9950 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9951 | shlibpath_var=LD_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9952 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9953 | case $host_os in |
| 9954 | openbsd2.[89] | openbsd2.[89].*) |
| 9955 | shlibpath_overrides_runpath=no |
| 9956 | ;; |
| 9957 | *) |
| 9958 | shlibpath_overrides_runpath=yes |
| 9959 | ;; |
| 9960 | esac |
| 9961 | else |
| 9962 | shlibpath_overrides_runpath=yes |
| 9963 | fi |
| 9964 | ;; |
| 9965 | |
| 9966 | os2*) |
| 9967 | libname_spec='$name' |
| 9968 | shrext_cmds=".dll" |
| 9969 | need_lib_prefix=no |
| 9970 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9971 | dynamic_linker='OS/2 ld.exe' |
| 9972 | shlibpath_var=LIBPATH |
| 9973 | ;; |
| 9974 | |
| 9975 | osf3* | osf4* | osf5*) |
| 9976 | version_type=osf |
| 9977 | need_lib_prefix=no |
| 9978 | need_version=no |
| 9979 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9981 | shlibpath_var=LD_LIBRARY_PATH |
| 9982 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9983 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9984 | ;; |
| 9985 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9986 | rdos*) |
| 9987 | dynamic_linker=no |
| 9988 | ;; |
| 9989 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9990 | solaris*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 9991 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9992 | need_lib_prefix=no |
| 9993 | need_version=no |
| 9994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9996 | shlibpath_var=LD_LIBRARY_PATH |
| 9997 | shlibpath_overrides_runpath=yes |
| 9998 | hardcode_into_libs=yes |
| 9999 | # ldd complains unless libraries are executable |
| 10000 | postinstall_cmds='chmod +x $lib' |
| 10001 | ;; |
| 10002 | |
| 10003 | sunos4*) |
| 10004 | version_type=sunos |
| 10005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10006 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10007 | shlibpath_var=LD_LIBRARY_PATH |
| 10008 | shlibpath_overrides_runpath=yes |
| 10009 | if test "$with_gnu_ld" = yes; then |
| 10010 | need_lib_prefix=no |
| 10011 | fi |
| 10012 | need_version=yes |
| 10013 | ;; |
| 10014 | |
| 10015 | sysv4 | sysv4.3*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10016 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10019 | shlibpath_var=LD_LIBRARY_PATH |
| 10020 | case $host_vendor in |
| 10021 | sni) |
| 10022 | shlibpath_overrides_runpath=no |
| 10023 | need_lib_prefix=no |
| 10024 | runpath_var=LD_RUN_PATH |
| 10025 | ;; |
| 10026 | siemens) |
| 10027 | need_lib_prefix=no |
| 10028 | ;; |
| 10029 | motorola) |
| 10030 | need_lib_prefix=no |
| 10031 | need_version=no |
| 10032 | shlibpath_overrides_runpath=no |
| 10033 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10034 | ;; |
| 10035 | esac |
| 10036 | ;; |
| 10037 | |
| 10038 | sysv4*MP*) |
| 10039 | if test -d /usr/nec ;then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10040 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10041 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10042 | soname_spec='$libname${shared_ext}.$major' |
| 10043 | shlibpath_var=LD_LIBRARY_PATH |
| 10044 | fi |
| 10045 | ;; |
| 10046 | |
| 10047 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10048 | version_type=freebsd-elf |
| 10049 | need_lib_prefix=no |
| 10050 | need_version=no |
| 10051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10052 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10053 | shlibpath_var=LD_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10054 | shlibpath_overrides_runpath=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10055 | hardcode_into_libs=yes |
| 10056 | if test "$with_gnu_ld" = yes; then |
| 10057 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10058 | else |
| 10059 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10060 | case $host_os in |
| 10061 | sco3.2v5*) |
| 10062 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10063 | ;; |
| 10064 | esac |
| 10065 | fi |
| 10066 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10067 | ;; |
| 10068 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10069 | tpf*) |
| 10070 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10071 | version_type=linux |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10072 | need_lib_prefix=no |
| 10073 | need_version=no |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10075 | shlibpath_var=LD_LIBRARY_PATH |
| 10076 | shlibpath_overrides_runpath=no |
| 10077 | hardcode_into_libs=yes |
| 10078 | ;; |
| 10079 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10080 | uts4*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10081 | version_type=linux |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10084 | shlibpath_var=LD_LIBRARY_PATH |
| 10085 | ;; |
| 10086 | |
| 10087 | *) |
| 10088 | dynamic_linker=no |
| 10089 | ;; |
| 10090 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10091 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10092 | $as_echo "$dynamic_linker" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10093 | test "$dynamic_linker" = no && can_build_shared=no |
| 10094 | |
| 10095 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10096 | if test "$GCC" = yes; then |
| 10097 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10098 | fi |
| 10099 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10100 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10101 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10102 | fi |
| 10103 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10104 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10105 | fi |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
| 10112 | |
| 10113 | |
| 10114 | |
| 10115 | |
| 10116 | |
| 10117 | |
| 10118 | |
| 10119 | |
| 10120 | |
| 10121 | |
| 10122 | |
| 10123 | |
| 10124 | |
| 10125 | |
| 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | |
| 10190 | |
| 10191 | |
| 10192 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10193 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10194 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10195 | hardcode_action= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10196 | if test -n "$hardcode_libdir_flag_spec" || |
| 10197 | test -n "$runpath_var" || |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10198 | test "X$hardcode_automatic" = "Xyes" ; then |
| 10199 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10200 | # We can hardcode non-existent directories. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10201 | if test "$hardcode_direct" != no && |
| 10202 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10203 | # have to relink, otherwise we might link with an installed library |
| 10204 | # when we should be linking with a yet-to-be-installed one |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10205 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10206 | test "$hardcode_minus_L" != no; then |
| 10207 | # Linking always hardcodes the temporary library directory. |
| 10208 | hardcode_action=relink |
| 10209 | else |
| 10210 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10211 | hardcode_action=immediate |
| 10212 | fi |
| 10213 | else |
| 10214 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10215 | # directories. |
| 10216 | hardcode_action=unsupported |
| 10217 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10218 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10219 | $as_echo "$hardcode_action" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10220 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10221 | if test "$hardcode_action" = relink || |
| 10222 | test "$inherit_rpath" = yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10223 | # Fast installation is not supported |
| 10224 | enable_fast_install=no |
| 10225 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10226 | test "$enable_shared" = no; then |
| 10227 | # Fast installation is not necessary |
| 10228 | enable_fast_install=needless |
| 10229 | fi |
| 10230 | |
| 10231 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10232 | |
| 10233 | |
| 10234 | |
| 10235 | |
| 10236 | if test "x$enable_dlopen" != xyes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10237 | enable_dlopen=unknown |
| 10238 | enable_dlopen_self=unknown |
| 10239 | enable_dlopen_self_static=unknown |
| 10240 | else |
| 10241 | lt_cv_dlopen=no |
| 10242 | lt_cv_dlopen_libs= |
| 10243 | |
| 10244 | case $host_os in |
| 10245 | beos*) |
| 10246 | lt_cv_dlopen="load_add_on" |
| 10247 | lt_cv_dlopen_libs= |
| 10248 | lt_cv_dlopen_self=yes |
| 10249 | ;; |
| 10250 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10251 | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10252 | lt_cv_dlopen="LoadLibrary" |
| 10253 | lt_cv_dlopen_libs= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10254 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10255 | |
| 10256 | cygwin*) |
| 10257 | lt_cv_dlopen="dlopen" |
| 10258 | lt_cv_dlopen_libs= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10259 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10260 | |
| 10261 | darwin*) |
| 10262 | # if libdl is installed we need to link against it |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10263 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10264 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10265 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10266 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10267 | else |
| 10268 | ac_check_lib_save_LIBS=$LIBS |
| 10269 | LIBS="-ldl $LIBS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10270 | cat >conftest.$ac_ext <<_ACEOF |
| 10271 | /* confdefs.h. */ |
| 10272 | _ACEOF |
| 10273 | cat confdefs.h >>conftest.$ac_ext |
| 10274 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10275 | /* end confdefs.h. */ |
| 10276 | |
| 10277 | /* Override any GCC internal prototype to avoid an error. |
| 10278 | Use char because int might match the return type of a GCC |
| 10279 | builtin and then its argument prototype would still apply. */ |
| 10280 | #ifdef __cplusplus |
| 10281 | extern "C" |
| 10282 | #endif |
| 10283 | char dlopen (); |
| 10284 | int |
| 10285 | main () |
| 10286 | { |
| 10287 | return dlopen (); |
| 10288 | ; |
| 10289 | return 0; |
| 10290 | } |
| 10291 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10292 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10293 | if { (ac_try="$ac_link" |
| 10294 | case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
| 10298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10299 | $as_echo "$ac_try_echo") >&5 |
| 10300 | (eval "$ac_link") 2>conftest.er1 |
| 10301 | ac_status=$? |
| 10302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10303 | rm -f conftest.er1 |
| 10304 | cat conftest.err >&5 |
| 10305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10306 | (exit $ac_status); } && { |
| 10307 | test -z "$ac_c_werror_flag" || |
| 10308 | test ! -s conftest.err |
| 10309 | } && test -s conftest$ac_exeext && { |
| 10310 | test "$cross_compiling" = yes || |
| 10311 | $as_test_x conftest$ac_exeext |
| 10312 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10313 | ac_cv_lib_dl_dlopen=yes |
| 10314 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10315 | $as_echo "$as_me: failed program was:" >&5 |
| 10316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10317 | |
| 10318 | ac_cv_lib_dl_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10319 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10320 | |
| 10321 | rm -rf conftest.dSYM |
| 10322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10323 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10324 | LIBS=$ac_check_lib_save_LIBS |
| 10325 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10327 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10328 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10329 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10330 | else |
| 10331 | |
| 10332 | lt_cv_dlopen="dyld" |
| 10333 | lt_cv_dlopen_libs= |
| 10334 | lt_cv_dlopen_self=yes |
| 10335 | |
| 10336 | fi |
| 10337 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10338 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10339 | |
| 10340 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10341 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10342 | $as_echo_n "checking for shl_load... " >&6; } |
| 10343 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10344 | $as_echo_n "(cached) " >&6 |
| 10345 | else |
| 10346 | cat >conftest.$ac_ext <<_ACEOF |
| 10347 | /* confdefs.h. */ |
| 10348 | _ACEOF |
| 10349 | cat confdefs.h >>conftest.$ac_ext |
| 10350 | cat >>conftest.$ac_ext <<_ACEOF |
| 10351 | /* end confdefs.h. */ |
| 10352 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10353 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10354 | #define shl_load innocuous_shl_load |
| 10355 | |
| 10356 | /* System header to define __stub macros and hopefully few prototypes, |
| 10357 | which can conflict with char shl_load (); below. |
| 10358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10359 | <limits.h> exists even on freestanding compilers. */ |
| 10360 | |
| 10361 | #ifdef __STDC__ |
| 10362 | # include <limits.h> |
| 10363 | #else |
| 10364 | # include <assert.h> |
| 10365 | #endif |
| 10366 | |
| 10367 | #undef shl_load |
| 10368 | |
| 10369 | /* Override any GCC internal prototype to avoid an error. |
| 10370 | Use char because int might match the return type of a GCC |
| 10371 | builtin and then its argument prototype would still apply. */ |
| 10372 | #ifdef __cplusplus |
| 10373 | extern "C" |
| 10374 | #endif |
| 10375 | char shl_load (); |
| 10376 | /* The GNU C library defines this for functions which it implements |
| 10377 | to always fail with ENOSYS. Some functions are actually named |
| 10378 | something starting with __ and the normal name is an alias. */ |
| 10379 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10380 | choke me |
| 10381 | #endif |
| 10382 | |
| 10383 | int |
| 10384 | main () |
| 10385 | { |
| 10386 | return shl_load (); |
| 10387 | ; |
| 10388 | return 0; |
| 10389 | } |
| 10390 | _ACEOF |
| 10391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10392 | if { (ac_try="$ac_link" |
| 10393 | case "(($ac_try" in |
| 10394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10395 | *) ac_try_echo=$ac_try;; |
| 10396 | esac |
| 10397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10398 | $as_echo "$ac_try_echo") >&5 |
| 10399 | (eval "$ac_link") 2>conftest.er1 |
| 10400 | ac_status=$? |
| 10401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10402 | rm -f conftest.er1 |
| 10403 | cat conftest.err >&5 |
| 10404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10405 | (exit $ac_status); } && { |
| 10406 | test -z "$ac_c_werror_flag" || |
| 10407 | test ! -s conftest.err |
| 10408 | } && test -s conftest$ac_exeext && { |
| 10409 | test "$cross_compiling" = yes || |
| 10410 | $as_test_x conftest$ac_exeext |
| 10411 | }; then |
| 10412 | ac_cv_func_shl_load=yes |
| 10413 | else |
| 10414 | $as_echo "$as_me: failed program was:" >&5 |
| 10415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10416 | |
| 10417 | ac_cv_func_shl_load=no |
| 10418 | fi |
| 10419 | |
| 10420 | rm -rf conftest.dSYM |
| 10421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10422 | conftest$ac_exeext conftest.$ac_ext |
| 10423 | fi |
| 10424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10425 | $as_echo "$ac_cv_func_shl_load" >&6; } |
| 10426 | if test "x$ac_cv_func_shl_load" = x""yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10427 | lt_cv_dlopen="shl_load" |
| 10428 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10429 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10430 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10431 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10432 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10433 | else |
| 10434 | ac_check_lib_save_LIBS=$LIBS |
| 10435 | LIBS="-ldld $LIBS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10436 | cat >conftest.$ac_ext <<_ACEOF |
| 10437 | /* confdefs.h. */ |
| 10438 | _ACEOF |
| 10439 | cat confdefs.h >>conftest.$ac_ext |
| 10440 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10441 | /* end confdefs.h. */ |
| 10442 | |
| 10443 | /* Override any GCC internal prototype to avoid an error. |
| 10444 | Use char because int might match the return type of a GCC |
| 10445 | builtin and then its argument prototype would still apply. */ |
| 10446 | #ifdef __cplusplus |
| 10447 | extern "C" |
| 10448 | #endif |
| 10449 | char shl_load (); |
| 10450 | int |
| 10451 | main () |
| 10452 | { |
| 10453 | return shl_load (); |
| 10454 | ; |
| 10455 | return 0; |
| 10456 | } |
| 10457 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10458 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10459 | if { (ac_try="$ac_link" |
| 10460 | case "(($ac_try" in |
| 10461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10462 | *) ac_try_echo=$ac_try;; |
| 10463 | esac |
| 10464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10465 | $as_echo "$ac_try_echo") >&5 |
| 10466 | (eval "$ac_link") 2>conftest.er1 |
| 10467 | ac_status=$? |
| 10468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10469 | rm -f conftest.er1 |
| 10470 | cat conftest.err >&5 |
| 10471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10472 | (exit $ac_status); } && { |
| 10473 | test -z "$ac_c_werror_flag" || |
| 10474 | test ! -s conftest.err |
| 10475 | } && test -s conftest$ac_exeext && { |
| 10476 | test "$cross_compiling" = yes || |
| 10477 | $as_test_x conftest$ac_exeext |
| 10478 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10479 | ac_cv_lib_dld_shl_load=yes |
| 10480 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10481 | $as_echo "$as_me: failed program was:" >&5 |
| 10482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10483 | |
| 10484 | ac_cv_lib_dld_shl_load=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10485 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10486 | |
| 10487 | rm -rf conftest.dSYM |
| 10488 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10489 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10490 | LIBS=$ac_check_lib_save_LIBS |
| 10491 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10492 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10493 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10494 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10495 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10496 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10497 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 10498 | $as_echo_n "checking for dlopen... " >&6; } |
| 10499 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 10500 | $as_echo_n "(cached) " >&6 |
| 10501 | else |
| 10502 | cat >conftest.$ac_ext <<_ACEOF |
| 10503 | /* confdefs.h. */ |
| 10504 | _ACEOF |
| 10505 | cat confdefs.h >>conftest.$ac_ext |
| 10506 | cat >>conftest.$ac_ext <<_ACEOF |
| 10507 | /* end confdefs.h. */ |
| 10508 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 10509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10510 | #define dlopen innocuous_dlopen |
| 10511 | |
| 10512 | /* System header to define __stub macros and hopefully few prototypes, |
| 10513 | which can conflict with char dlopen (); below. |
| 10514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10515 | <limits.h> exists even on freestanding compilers. */ |
| 10516 | |
| 10517 | #ifdef __STDC__ |
| 10518 | # include <limits.h> |
| 10519 | #else |
| 10520 | # include <assert.h> |
| 10521 | #endif |
| 10522 | |
| 10523 | #undef dlopen |
| 10524 | |
| 10525 | /* Override any GCC internal prototype to avoid an error. |
| 10526 | Use char because int might match the return type of a GCC |
| 10527 | builtin and then its argument prototype would still apply. */ |
| 10528 | #ifdef __cplusplus |
| 10529 | extern "C" |
| 10530 | #endif |
| 10531 | char dlopen (); |
| 10532 | /* The GNU C library defines this for functions which it implements |
| 10533 | to always fail with ENOSYS. Some functions are actually named |
| 10534 | something starting with __ and the normal name is an alias. */ |
| 10535 | #if defined __stub_dlopen || defined __stub___dlopen |
| 10536 | choke me |
| 10537 | #endif |
| 10538 | |
| 10539 | int |
| 10540 | main () |
| 10541 | { |
| 10542 | return dlopen (); |
| 10543 | ; |
| 10544 | return 0; |
| 10545 | } |
| 10546 | _ACEOF |
| 10547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10548 | if { (ac_try="$ac_link" |
| 10549 | case "(($ac_try" in |
| 10550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10551 | *) ac_try_echo=$ac_try;; |
| 10552 | esac |
| 10553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10554 | $as_echo "$ac_try_echo") >&5 |
| 10555 | (eval "$ac_link") 2>conftest.er1 |
| 10556 | ac_status=$? |
| 10557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10558 | rm -f conftest.er1 |
| 10559 | cat conftest.err >&5 |
| 10560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10561 | (exit $ac_status); } && { |
| 10562 | test -z "$ac_c_werror_flag" || |
| 10563 | test ! -s conftest.err |
| 10564 | } && test -s conftest$ac_exeext && { |
| 10565 | test "$cross_compiling" = yes || |
| 10566 | $as_test_x conftest$ac_exeext |
| 10567 | }; then |
| 10568 | ac_cv_func_dlopen=yes |
| 10569 | else |
| 10570 | $as_echo "$as_me: failed program was:" >&5 |
| 10571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10572 | |
| 10573 | ac_cv_func_dlopen=no |
| 10574 | fi |
| 10575 | |
| 10576 | rm -rf conftest.dSYM |
| 10577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10578 | conftest$ac_exeext conftest.$ac_ext |
| 10579 | fi |
| 10580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 10581 | $as_echo "$ac_cv_func_dlopen" >&6; } |
| 10582 | if test "x$ac_cv_func_dlopen" = x""yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10583 | lt_cv_dlopen="dlopen" |
| 10584 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10585 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10586 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10587 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10588 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10589 | else |
| 10590 | ac_check_lib_save_LIBS=$LIBS |
| 10591 | LIBS="-ldl $LIBS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10592 | cat >conftest.$ac_ext <<_ACEOF |
| 10593 | /* confdefs.h. */ |
| 10594 | _ACEOF |
| 10595 | cat confdefs.h >>conftest.$ac_ext |
| 10596 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10597 | /* end confdefs.h. */ |
| 10598 | |
| 10599 | /* Override any GCC internal prototype to avoid an error. |
| 10600 | Use char because int might match the return type of a GCC |
| 10601 | builtin and then its argument prototype would still apply. */ |
| 10602 | #ifdef __cplusplus |
| 10603 | extern "C" |
| 10604 | #endif |
| 10605 | char dlopen (); |
| 10606 | int |
| 10607 | main () |
| 10608 | { |
| 10609 | return dlopen (); |
| 10610 | ; |
| 10611 | return 0; |
| 10612 | } |
| 10613 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10615 | if { (ac_try="$ac_link" |
| 10616 | case "(($ac_try" in |
| 10617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10618 | *) ac_try_echo=$ac_try;; |
| 10619 | esac |
| 10620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10621 | $as_echo "$ac_try_echo") >&5 |
| 10622 | (eval "$ac_link") 2>conftest.er1 |
| 10623 | ac_status=$? |
| 10624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10625 | rm -f conftest.er1 |
| 10626 | cat conftest.err >&5 |
| 10627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10628 | (exit $ac_status); } && { |
| 10629 | test -z "$ac_c_werror_flag" || |
| 10630 | test ! -s conftest.err |
| 10631 | } && test -s conftest$ac_exeext && { |
| 10632 | test "$cross_compiling" = yes || |
| 10633 | $as_test_x conftest$ac_exeext |
| 10634 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10635 | ac_cv_lib_dl_dlopen=yes |
| 10636 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10637 | $as_echo "$as_me: failed program was:" >&5 |
| 10638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10639 | |
| 10640 | ac_cv_lib_dl_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10641 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10642 | |
| 10643 | rm -rf conftest.dSYM |
| 10644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10645 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10646 | LIBS=$ac_check_lib_save_LIBS |
| 10647 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10649 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10650 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10651 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10652 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10653 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10654 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10655 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10656 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10657 | else |
| 10658 | ac_check_lib_save_LIBS=$LIBS |
| 10659 | LIBS="-lsvld $LIBS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10660 | cat >conftest.$ac_ext <<_ACEOF |
| 10661 | /* confdefs.h. */ |
| 10662 | _ACEOF |
| 10663 | cat confdefs.h >>conftest.$ac_ext |
| 10664 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10665 | /* end confdefs.h. */ |
| 10666 | |
| 10667 | /* Override any GCC internal prototype to avoid an error. |
| 10668 | Use char because int might match the return type of a GCC |
| 10669 | builtin and then its argument prototype would still apply. */ |
| 10670 | #ifdef __cplusplus |
| 10671 | extern "C" |
| 10672 | #endif |
| 10673 | char dlopen (); |
| 10674 | int |
| 10675 | main () |
| 10676 | { |
| 10677 | return dlopen (); |
| 10678 | ; |
| 10679 | return 0; |
| 10680 | } |
| 10681 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10683 | if { (ac_try="$ac_link" |
| 10684 | case "(($ac_try" in |
| 10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10686 | *) ac_try_echo=$ac_try;; |
| 10687 | esac |
| 10688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10689 | $as_echo "$ac_try_echo") >&5 |
| 10690 | (eval "$ac_link") 2>conftest.er1 |
| 10691 | ac_status=$? |
| 10692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10693 | rm -f conftest.er1 |
| 10694 | cat conftest.err >&5 |
| 10695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10696 | (exit $ac_status); } && { |
| 10697 | test -z "$ac_c_werror_flag" || |
| 10698 | test ! -s conftest.err |
| 10699 | } && test -s conftest$ac_exeext && { |
| 10700 | test "$cross_compiling" = yes || |
| 10701 | $as_test_x conftest$ac_exeext |
| 10702 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10703 | ac_cv_lib_svld_dlopen=yes |
| 10704 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10705 | $as_echo "$as_me: failed program was:" >&5 |
| 10706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10707 | |
| 10708 | ac_cv_lib_svld_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10709 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10710 | |
| 10711 | rm -rf conftest.dSYM |
| 10712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10713 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10714 | LIBS=$ac_check_lib_save_LIBS |
| 10715 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10716 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10717 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10718 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10719 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10720 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10721 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10722 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10723 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10724 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10725 | else |
| 10726 | ac_check_lib_save_LIBS=$LIBS |
| 10727 | LIBS="-ldld $LIBS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10728 | cat >conftest.$ac_ext <<_ACEOF |
| 10729 | /* confdefs.h. */ |
| 10730 | _ACEOF |
| 10731 | cat confdefs.h >>conftest.$ac_ext |
| 10732 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10733 | /* end confdefs.h. */ |
| 10734 | |
| 10735 | /* Override any GCC internal prototype to avoid an error. |
| 10736 | Use char because int might match the return type of a GCC |
| 10737 | builtin and then its argument prototype would still apply. */ |
| 10738 | #ifdef __cplusplus |
| 10739 | extern "C" |
| 10740 | #endif |
| 10741 | char dld_link (); |
| 10742 | int |
| 10743 | main () |
| 10744 | { |
| 10745 | return dld_link (); |
| 10746 | ; |
| 10747 | return 0; |
| 10748 | } |
| 10749 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10750 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10751 | if { (ac_try="$ac_link" |
| 10752 | case "(($ac_try" in |
| 10753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10754 | *) ac_try_echo=$ac_try;; |
| 10755 | esac |
| 10756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10757 | $as_echo "$ac_try_echo") >&5 |
| 10758 | (eval "$ac_link") 2>conftest.er1 |
| 10759 | ac_status=$? |
| 10760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10761 | rm -f conftest.er1 |
| 10762 | cat conftest.err >&5 |
| 10763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10764 | (exit $ac_status); } && { |
| 10765 | test -z "$ac_c_werror_flag" || |
| 10766 | test ! -s conftest.err |
| 10767 | } && test -s conftest$ac_exeext && { |
| 10768 | test "$cross_compiling" = yes || |
| 10769 | $as_test_x conftest$ac_exeext |
| 10770 | }; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10771 | ac_cv_lib_dld_dld_link=yes |
| 10772 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10773 | $as_echo "$as_me: failed program was:" >&5 |
| 10774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10775 | |
| 10776 | ac_cv_lib_dld_dld_link=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10777 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10778 | |
| 10779 | rm -rf conftest.dSYM |
| 10780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10781 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10782 | LIBS=$ac_check_lib_save_LIBS |
| 10783 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10784 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10785 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10786 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10787 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10788 | fi |
| 10789 | |
| 10790 | |
| 10791 | fi |
| 10792 | |
| 10793 | |
| 10794 | fi |
| 10795 | |
| 10796 | |
| 10797 | fi |
| 10798 | |
| 10799 | |
| 10800 | fi |
| 10801 | |
| 10802 | |
| 10803 | fi |
| 10804 | |
| 10805 | ;; |
| 10806 | esac |
| 10807 | |
| 10808 | if test "x$lt_cv_dlopen" != xno; then |
| 10809 | enable_dlopen=yes |
| 10810 | else |
| 10811 | enable_dlopen=no |
| 10812 | fi |
| 10813 | |
| 10814 | case $lt_cv_dlopen in |
| 10815 | dlopen) |
| 10816 | save_CPPFLAGS="$CPPFLAGS" |
| 10817 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10818 | |
| 10819 | save_LDFLAGS="$LDFLAGS" |
| 10820 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 10821 | |
| 10822 | save_LIBS="$LIBS" |
| 10823 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10824 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10825 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10826 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10827 | if test "${lt_cv_dlopen_self+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10828 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10829 | else |
| 10830 | if test "$cross_compiling" = yes; then : |
| 10831 | lt_cv_dlopen_self=cross |
| 10832 | else |
| 10833 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10834 | lt_status=$lt_dlunknown |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10835 | cat > conftest.$ac_ext <<_LT_EOF |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 10836 | #line 10836 "configure" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10837 | #include "confdefs.h" |
| 10838 | |
| 10839 | #if HAVE_DLFCN_H |
| 10840 | #include <dlfcn.h> |
| 10841 | #endif |
| 10842 | |
| 10843 | #include <stdio.h> |
| 10844 | |
| 10845 | #ifdef RTLD_GLOBAL |
| 10846 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10847 | #else |
| 10848 | # ifdef DL_GLOBAL |
| 10849 | # define LT_DLGLOBAL DL_GLOBAL |
| 10850 | # else |
| 10851 | # define LT_DLGLOBAL 0 |
| 10852 | # endif |
| 10853 | #endif |
| 10854 | |
| 10855 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10856 | find out it does not work in some platform. */ |
| 10857 | #ifndef LT_DLLAZY_OR_NOW |
| 10858 | # ifdef RTLD_LAZY |
| 10859 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10860 | # else |
| 10861 | # ifdef DL_LAZY |
| 10862 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10863 | # else |
| 10864 | # ifdef RTLD_NOW |
| 10865 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10866 | # else |
| 10867 | # ifdef DL_NOW |
| 10868 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10869 | # else |
| 10870 | # define LT_DLLAZY_OR_NOW 0 |
| 10871 | # endif |
| 10872 | # endif |
| 10873 | # endif |
| 10874 | # endif |
| 10875 | #endif |
| 10876 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10877 | void fnord() { int i=42;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10878 | int main () |
| 10879 | { |
| 10880 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10881 | int status = $lt_dlunknown; |
| 10882 | |
| 10883 | if (self) |
| 10884 | { |
| 10885 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10886 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10887 | /* dlclose (self); */ |
| 10888 | } |
| 10889 | else |
| 10890 | puts (dlerror ()); |
| 10891 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10892 | return status; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10893 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10894 | _LT_EOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10896 | (eval $ac_link) 2>&5 |
| 10897 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10899 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10900 | (./conftest; exit; ) >&5 2>/dev/null |
| 10901 | lt_status=$? |
| 10902 | case x$lt_status in |
| 10903 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10904 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 10905 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 10906 | esac |
| 10907 | else : |
| 10908 | # compilation failed |
| 10909 | lt_cv_dlopen_self=no |
| 10910 | fi |
| 10911 | fi |
| 10912 | rm -fr conftest* |
| 10913 | |
| 10914 | |
| 10915 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10916 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10917 | $as_echo "$lt_cv_dlopen_self" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10918 | |
| 10919 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 10920 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10921 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10922 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10923 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10924 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10925 | else |
| 10926 | if test "$cross_compiling" = yes; then : |
| 10927 | lt_cv_dlopen_self_static=cross |
| 10928 | else |
| 10929 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10930 | lt_status=$lt_dlunknown |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10931 | cat > conftest.$ac_ext <<_LT_EOF |
Bruce A. Mah | d70a0bb | 2014-04-10 15:00:05 -0700 | [diff] [blame] | 10932 | #line 10932 "configure" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10933 | #include "confdefs.h" |
| 10934 | |
| 10935 | #if HAVE_DLFCN_H |
| 10936 | #include <dlfcn.h> |
| 10937 | #endif |
| 10938 | |
| 10939 | #include <stdio.h> |
| 10940 | |
| 10941 | #ifdef RTLD_GLOBAL |
| 10942 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10943 | #else |
| 10944 | # ifdef DL_GLOBAL |
| 10945 | # define LT_DLGLOBAL DL_GLOBAL |
| 10946 | # else |
| 10947 | # define LT_DLGLOBAL 0 |
| 10948 | # endif |
| 10949 | #endif |
| 10950 | |
| 10951 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10952 | find out it does not work in some platform. */ |
| 10953 | #ifndef LT_DLLAZY_OR_NOW |
| 10954 | # ifdef RTLD_LAZY |
| 10955 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10956 | # else |
| 10957 | # ifdef DL_LAZY |
| 10958 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10959 | # else |
| 10960 | # ifdef RTLD_NOW |
| 10961 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10962 | # else |
| 10963 | # ifdef DL_NOW |
| 10964 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10965 | # else |
| 10966 | # define LT_DLLAZY_OR_NOW 0 |
| 10967 | # endif |
| 10968 | # endif |
| 10969 | # endif |
| 10970 | # endif |
| 10971 | #endif |
| 10972 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10973 | void fnord() { int i=42;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10974 | int main () |
| 10975 | { |
| 10976 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10977 | int status = $lt_dlunknown; |
| 10978 | |
| 10979 | if (self) |
| 10980 | { |
| 10981 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10982 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10983 | /* dlclose (self); */ |
| 10984 | } |
| 10985 | else |
| 10986 | puts (dlerror ()); |
| 10987 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10988 | return status; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10989 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10990 | _LT_EOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10992 | (eval $ac_link) 2>&5 |
| 10993 | ac_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 10994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10995 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10996 | (./conftest; exit; ) >&5 2>/dev/null |
| 10997 | lt_status=$? |
| 10998 | case x$lt_status in |
| 10999 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11000 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11001 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11002 | esac |
| 11003 | else : |
| 11004 | # compilation failed |
| 11005 | lt_cv_dlopen_self_static=no |
| 11006 | fi |
| 11007 | fi |
| 11008 | rm -fr conftest* |
| 11009 | |
| 11010 | |
| 11011 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11012 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11013 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11014 | fi |
| 11015 | |
| 11016 | CPPFLAGS="$save_CPPFLAGS" |
| 11017 | LDFLAGS="$save_LDFLAGS" |
| 11018 | LIBS="$save_LIBS" |
| 11019 | ;; |
| 11020 | esac |
| 11021 | |
| 11022 | case $lt_cv_dlopen_self in |
| 11023 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11024 | *) enable_dlopen_self=unknown ;; |
| 11025 | esac |
| 11026 | |
| 11027 | case $lt_cv_dlopen_self_static in |
| 11028 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11029 | *) enable_dlopen_self_static=unknown ;; |
| 11030 | esac |
| 11031 | fi |
| 11032 | |
| 11033 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11034 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11035 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11036 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | |
| 11048 | |
| 11049 | striplib= |
| 11050 | old_striplib= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11051 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11052 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11053 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11054 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11055 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11056 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11057 | $as_echo "yes" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11058 | else |
| 11059 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11060 | case $host_os in |
| 11061 | darwin*) |
| 11062 | if test -n "$STRIP" ; then |
| 11063 | striplib="$STRIP -x" |
| 11064 | old_striplib="$STRIP -S" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11065 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11066 | $as_echo "yes" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11067 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11069 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11070 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11071 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11072 | *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11073 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11074 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11075 | ;; |
| 11076 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11077 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11078 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11079 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11080 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11081 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11082 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11083 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11084 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11085 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11086 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11087 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11088 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11089 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11090 | # Report which library types will actually be built |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11091 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11092 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11093 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11094 | $as_echo "$can_build_shared" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11095 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11096 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11097 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11098 | test "$can_build_shared" = "no" && enable_shared=no |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11099 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11100 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11101 | # are all built from PIC. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11102 | case $host_os in |
| 11103 | aix3*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11104 | test "$enable_shared" = yes && enable_static=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11105 | if test -n "$RANLIB"; then |
| 11106 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11107 | postinstall_cmds='$RANLIB $lib' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11108 | fi |
| 11109 | ;; |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11110 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11111 | aix[4-9]*) |
| 11112 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11113 | test "$enable_shared" = yes && enable_static=no |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11114 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11115 | ;; |
| 11116 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11117 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11118 | $as_echo "$enable_shared" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11119 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11120 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11121 | $as_echo_n "checking whether to build static libraries... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11122 | # Make sure either enable_shared or enable_static is yes. |
| 11123 | test "$enable_shared" = yes || enable_static=yes |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11124 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11125 | $as_echo "$enable_static" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11126 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11127 | |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 11128 | |
| 11129 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11130 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11131 | ac_ext=c |
| 11132 | ac_cpp='$CPP $CPPFLAGS' |
| 11133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11136 | |
| 11137 | CC="$lt_save_CC" |
| 11138 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11139 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11140 | |
| 11141 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11142 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11143 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11144 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11145 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11146 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11147 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11148 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11149 | |
| 11150 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11151 | ac_config_commands="$ac_config_commands libtool" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11152 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11153 | |
| 11154 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11155 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11156 | # Only expand once: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11157 | |
| 11158 | |
| 11159 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11160 | # Checks for header files. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11161 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11162 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11163 | if test "${ac_cv_header_stdc+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11164 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11165 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11166 | cat >conftest.$ac_ext <<_ACEOF |
| 11167 | /* confdefs.h. */ |
| 11168 | _ACEOF |
| 11169 | cat confdefs.h >>conftest.$ac_ext |
| 11170 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11171 | /* end confdefs.h. */ |
| 11172 | #include <stdlib.h> |
| 11173 | #include <stdarg.h> |
| 11174 | #include <string.h> |
| 11175 | #include <float.h> |
| 11176 | |
| 11177 | int |
| 11178 | main () |
| 11179 | { |
| 11180 | |
| 11181 | ; |
| 11182 | return 0; |
| 11183 | } |
| 11184 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11185 | rm -f conftest.$ac_objext |
| 11186 | if { (ac_try="$ac_compile" |
| 11187 | case "(($ac_try" in |
| 11188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11189 | *) ac_try_echo=$ac_try;; |
| 11190 | esac |
| 11191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11192 | $as_echo "$ac_try_echo") >&5 |
| 11193 | (eval "$ac_compile") 2>conftest.er1 |
| 11194 | ac_status=$? |
| 11195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11196 | rm -f conftest.er1 |
| 11197 | cat conftest.err >&5 |
| 11198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11199 | (exit $ac_status); } && { |
| 11200 | test -z "$ac_c_werror_flag" || |
| 11201 | test ! -s conftest.err |
| 11202 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11203 | ac_cv_header_stdc=yes |
| 11204 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11205 | $as_echo "$as_me: failed program was:" >&5 |
| 11206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11207 | |
| 11208 | ac_cv_header_stdc=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11209 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11210 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11212 | |
| 11213 | if test $ac_cv_header_stdc = yes; then |
| 11214 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11215 | cat >conftest.$ac_ext <<_ACEOF |
| 11216 | /* confdefs.h. */ |
| 11217 | _ACEOF |
| 11218 | cat confdefs.h >>conftest.$ac_ext |
| 11219 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11220 | /* end confdefs.h. */ |
| 11221 | #include <string.h> |
| 11222 | |
| 11223 | _ACEOF |
| 11224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11225 | $EGREP "memchr" >/dev/null 2>&1; then |
| 11226 | : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11227 | else |
| 11228 | ac_cv_header_stdc=no |
| 11229 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11230 | rm -f conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11231 | |
| 11232 | fi |
| 11233 | |
| 11234 | if test $ac_cv_header_stdc = yes; then |
| 11235 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11236 | cat >conftest.$ac_ext <<_ACEOF |
| 11237 | /* confdefs.h. */ |
| 11238 | _ACEOF |
| 11239 | cat confdefs.h >>conftest.$ac_ext |
| 11240 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11241 | /* end confdefs.h. */ |
| 11242 | #include <stdlib.h> |
| 11243 | |
| 11244 | _ACEOF |
| 11245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11246 | $EGREP "free" >/dev/null 2>&1; then |
| 11247 | : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11248 | else |
| 11249 | ac_cv_header_stdc=no |
| 11250 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11251 | rm -f conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11252 | |
| 11253 | fi |
| 11254 | |
| 11255 | if test $ac_cv_header_stdc = yes; then |
| 11256 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11257 | if test "$cross_compiling" = yes; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11258 | : |
| 11259 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11260 | cat >conftest.$ac_ext <<_ACEOF |
| 11261 | /* confdefs.h. */ |
| 11262 | _ACEOF |
| 11263 | cat confdefs.h >>conftest.$ac_ext |
| 11264 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11265 | /* end confdefs.h. */ |
| 11266 | #include <ctype.h> |
| 11267 | #include <stdlib.h> |
| 11268 | #if ((' ' & 0x0FF) == 0x020) |
| 11269 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 11270 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 11271 | #else |
| 11272 | # define ISLOWER(c) \ |
| 11273 | (('a' <= (c) && (c) <= 'i') \ |
| 11274 | || ('j' <= (c) && (c) <= 'r') \ |
| 11275 | || ('s' <= (c) && (c) <= 'z')) |
| 11276 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 11277 | #endif |
| 11278 | |
| 11279 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 11280 | int |
| 11281 | main () |
| 11282 | { |
| 11283 | int i; |
| 11284 | for (i = 0; i < 256; i++) |
| 11285 | if (XOR (islower (i), ISLOWER (i)) |
| 11286 | || toupper (i) != TOUPPER (i)) |
| 11287 | return 2; |
| 11288 | return 0; |
| 11289 | } |
| 11290 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11291 | rm -f conftest$ac_exeext |
| 11292 | if { (ac_try="$ac_link" |
| 11293 | case "(($ac_try" in |
| 11294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11295 | *) ac_try_echo=$ac_try;; |
| 11296 | esac |
| 11297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11298 | $as_echo "$ac_try_echo") >&5 |
| 11299 | (eval "$ac_link") 2>&5 |
| 11300 | ac_status=$? |
| 11301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11303 | { (case "(($ac_try" in |
| 11304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11305 | *) ac_try_echo=$ac_try;; |
| 11306 | esac |
| 11307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11308 | $as_echo "$ac_try_echo") >&5 |
| 11309 | (eval "$ac_try") 2>&5 |
| 11310 | ac_status=$? |
| 11311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11312 | (exit $ac_status); }; }; then |
| 11313 | : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11314 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11315 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11316 | $as_echo "$as_me: failed program was:" >&5 |
| 11317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11318 | |
| 11319 | ( exit $ac_status ) |
| 11320 | ac_cv_header_stdc=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11321 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11322 | rm -rf conftest.dSYM |
| 11323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11324 | fi |
| 11325 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11326 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11327 | fi |
| 11328 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11330 | $as_echo "$ac_cv_header_stdc" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11331 | if test $ac_cv_header_stdc = yes; then |
| 11332 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11333 | cat >>confdefs.h <<\_ACEOF |
| 11334 | #define STDC_HEADERS 1 |
| 11335 | _ACEOF |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11336 | |
| 11337 | fi |
| 11338 | |
| 11339 | |
| 11340 | # Check for systems which need -lsocket and -lnsl |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11341 | #AX_LIB_SOCKET_NSL |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11342 | |
| 11343 | # Solaris puts nanosleep in -lrt |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11344 | { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11345 | $as_echo_n "checking for library containing nanosleep... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11346 | if test "${ac_cv_search_nanosleep+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11347 | $as_echo_n "(cached) " >&6 |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11348 | else |
| 11349 | ac_func_search_save_LIBS=$LIBS |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11350 | cat >conftest.$ac_ext <<_ACEOF |
| 11351 | /* confdefs.h. */ |
| 11352 | _ACEOF |
| 11353 | cat confdefs.h >>conftest.$ac_ext |
| 11354 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11355 | /* end confdefs.h. */ |
| 11356 | |
| 11357 | /* Override any GCC internal prototype to avoid an error. |
| 11358 | Use char because int might match the return type of a GCC |
| 11359 | builtin and then its argument prototype would still apply. */ |
| 11360 | #ifdef __cplusplus |
| 11361 | extern "C" |
| 11362 | #endif |
| 11363 | char nanosleep (); |
| 11364 | int |
| 11365 | main () |
| 11366 | { |
| 11367 | return nanosleep (); |
| 11368 | ; |
| 11369 | return 0; |
| 11370 | } |
| 11371 | _ACEOF |
| 11372 | for ac_lib in '' rt; do |
| 11373 | if test -z "$ac_lib"; then |
| 11374 | ac_res="none required" |
| 11375 | else |
| 11376 | ac_res=-l$ac_lib |
| 11377 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11378 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11380 | if { (ac_try="$ac_link" |
| 11381 | case "(($ac_try" in |
| 11382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11383 | *) ac_try_echo=$ac_try;; |
| 11384 | esac |
| 11385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11386 | $as_echo "$ac_try_echo") >&5 |
| 11387 | (eval "$ac_link") 2>conftest.er1 |
| 11388 | ac_status=$? |
| 11389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11390 | rm -f conftest.er1 |
| 11391 | cat conftest.err >&5 |
| 11392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); } && { |
| 11394 | test -z "$ac_c_werror_flag" || |
| 11395 | test ! -s conftest.err |
| 11396 | } && test -s conftest$ac_exeext && { |
| 11397 | test "$cross_compiling" = yes || |
| 11398 | $as_test_x conftest$ac_exeext |
| 11399 | }; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11400 | ac_cv_search_nanosleep=$ac_res |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11401 | else |
| 11402 | $as_echo "$as_me: failed program was:" >&5 |
| 11403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11404 | |
| 11405 | |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11406 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11407 | |
| 11408 | rm -rf conftest.dSYM |
| 11409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11410 | conftest$ac_exeext |
| 11411 | if test "${ac_cv_search_nanosleep+set}" = set; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11412 | break |
| 11413 | fi |
| 11414 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11415 | if test "${ac_cv_search_nanosleep+set}" = set; then |
| 11416 | : |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11417 | else |
| 11418 | ac_cv_search_nanosleep=no |
| 11419 | fi |
| 11420 | rm conftest.$ac_ext |
| 11421 | LIBS=$ac_func_search_save_LIBS |
| 11422 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11423 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11424 | $as_echo "$ac_cv_search_nanosleep" >&6; } |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11425 | ac_res=$ac_cv_search_nanosleep |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11426 | if test "$ac_res" != no; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11427 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11428 | |
| 11429 | else |
| 11430 | |
| 11431 | echo "nanosleep() required for timing operations." |
| 11432 | exit 1 |
| 11433 | |
| 11434 | fi |
| 11435 | |
| 11436 | |
| 11437 | # Solaris puts hstrerror in -lresolv |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11438 | { $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11439 | $as_echo_n "checking for library containing hstrerror... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11440 | if test "${ac_cv_search_hstrerror+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11441 | $as_echo_n "(cached) " >&6 |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11442 | else |
| 11443 | ac_func_search_save_LIBS=$LIBS |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11444 | cat >conftest.$ac_ext <<_ACEOF |
| 11445 | /* confdefs.h. */ |
| 11446 | _ACEOF |
| 11447 | cat confdefs.h >>conftest.$ac_ext |
| 11448 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11449 | /* end confdefs.h. */ |
| 11450 | |
| 11451 | /* Override any GCC internal prototype to avoid an error. |
| 11452 | Use char because int might match the return type of a GCC |
| 11453 | builtin and then its argument prototype would still apply. */ |
| 11454 | #ifdef __cplusplus |
| 11455 | extern "C" |
| 11456 | #endif |
| 11457 | char hstrerror (); |
| 11458 | int |
| 11459 | main () |
| 11460 | { |
| 11461 | return hstrerror (); |
| 11462 | ; |
| 11463 | return 0; |
| 11464 | } |
| 11465 | _ACEOF |
| 11466 | for ac_lib in '' resolv; do |
| 11467 | if test -z "$ac_lib"; then |
| 11468 | ac_res="none required" |
| 11469 | else |
| 11470 | ac_res=-l$ac_lib |
| 11471 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11472 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11473 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11474 | if { (ac_try="$ac_link" |
| 11475 | case "(($ac_try" in |
| 11476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11477 | *) ac_try_echo=$ac_try;; |
| 11478 | esac |
| 11479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11480 | $as_echo "$ac_try_echo") >&5 |
| 11481 | (eval "$ac_link") 2>conftest.er1 |
| 11482 | ac_status=$? |
| 11483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11484 | rm -f conftest.er1 |
| 11485 | cat conftest.err >&5 |
| 11486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11487 | (exit $ac_status); } && { |
| 11488 | test -z "$ac_c_werror_flag" || |
| 11489 | test ! -s conftest.err |
| 11490 | } && test -s conftest$ac_exeext && { |
| 11491 | test "$cross_compiling" = yes || |
| 11492 | $as_test_x conftest$ac_exeext |
| 11493 | }; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11494 | ac_cv_search_hstrerror=$ac_res |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11495 | else |
| 11496 | $as_echo "$as_me: failed program was:" >&5 |
| 11497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11498 | |
| 11499 | |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11500 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11501 | |
| 11502 | rm -rf conftest.dSYM |
| 11503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11504 | conftest$ac_exeext |
| 11505 | if test "${ac_cv_search_hstrerror+set}" = set; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11506 | break |
| 11507 | fi |
| 11508 | done |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11509 | if test "${ac_cv_search_hstrerror+set}" = set; then |
| 11510 | : |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11511 | else |
| 11512 | ac_cv_search_hstrerror=no |
| 11513 | fi |
| 11514 | rm conftest.$ac_ext |
| 11515 | LIBS=$ac_func_search_save_LIBS |
| 11516 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11517 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11518 | $as_echo "$ac_cv_search_hstrerror" >&6; } |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11519 | ac_res=$ac_cv_search_hstrerror |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11520 | if test "$ac_res" != no; then |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 11521 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11522 | |
| 11523 | else |
| 11524 | |
| 11525 | echo "nanosleep() required for timing operations." |
| 11526 | exit 1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11527 | |
| 11528 | fi |
| 11529 | |
| 11530 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11531 | # Checks for typedefs, structures, and compiler characteristics. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11532 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11533 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11534 | if test "${ac_cv_c_const+set}" = set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11535 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11536 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11537 | cat >conftest.$ac_ext <<_ACEOF |
| 11538 | /* confdefs.h. */ |
| 11539 | _ACEOF |
| 11540 | cat confdefs.h >>conftest.$ac_ext |
| 11541 | cat >>conftest.$ac_ext <<_ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11542 | /* end confdefs.h. */ |
| 11543 | |
| 11544 | int |
| 11545 | main () |
| 11546 | { |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11547 | /* FIXME: Include the comments suggested by Paul. */ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11548 | #ifndef __cplusplus |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11549 | /* Ultrix mips cc rejects this. */ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11550 | typedef int charset[2]; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11551 | const charset cs; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11552 | /* SunOS 4.1.1 cc rejects this. */ |
| 11553 | char const *const *pcpcc; |
| 11554 | char **ppc; |
| 11555 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11556 | struct point {int x, y;}; |
| 11557 | static struct point const zero = {0,0}; |
| 11558 | /* AIX XL C 1.02.0.0 rejects this. |
| 11559 | It does not let you subtract one const X* pointer from another in |
| 11560 | an arm of an if-expression whose if-part is not a constant |
| 11561 | expression */ |
| 11562 | const char *g = "string"; |
| 11563 | pcpcc = &g + (g ? g-g : 0); |
| 11564 | /* HPUX 7.0 cc rejects these. */ |
| 11565 | ++pcpcc; |
| 11566 | ppc = (char**) pcpcc; |
| 11567 | pcpcc = (char const *const *) ppc; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11568 | { /* SCO 3.2v4 cc rejects this. */ |
| 11569 | char *t; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11570 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 11571 | |
| 11572 | *t++ = 0; |
| 11573 | if (s) return 0; |
| 11574 | } |
| 11575 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11576 | int x[] = {25, 17}; |
| 11577 | const int *foo = &x[0]; |
| 11578 | ++foo; |
| 11579 | } |
| 11580 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11581 | typedef const int *iptr; |
| 11582 | iptr p = 0; |
| 11583 | ++p; |
| 11584 | } |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11585 | { /* AIX XL C 1.02.0.0 rejects this saying |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11586 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11587 | struct s { int j; const int *ap[3]; }; |
| 11588 | struct s *b; b->j = 5; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11589 | } |
| 11590 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11591 | const int foo = 10; |
| 11592 | if (!foo) return 0; |
| 11593 | } |
| 11594 | return !cs[0] && !zero.x; |
| 11595 | #endif |
| 11596 | |
| 11597 | ; |
| 11598 | return 0; |
| 11599 | } |
| 11600 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11601 | rm -f conftest.$ac_objext |
| 11602 | if { (ac_try="$ac_compile" |
| 11603 | case "(($ac_try" in |
| 11604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11605 | *) ac_try_echo=$ac_try;; |
| 11606 | esac |
| 11607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11608 | $as_echo "$ac_try_echo") >&5 |
| 11609 | (eval "$ac_compile") 2>conftest.er1 |
| 11610 | ac_status=$? |
| 11611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11612 | rm -f conftest.er1 |
| 11613 | cat conftest.err >&5 |
| 11614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11615 | (exit $ac_status); } && { |
| 11616 | test -z "$ac_c_werror_flag" || |
| 11617 | test ! -s conftest.err |
| 11618 | } && test -s conftest.$ac_objext; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11619 | ac_cv_c_const=yes |
| 11620 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11621 | $as_echo "$as_me: failed program was:" >&5 |
| 11622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11623 | |
| 11624 | ac_cv_c_const=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11625 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11626 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11628 | fi |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11629 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11630 | $as_echo "$ac_cv_c_const" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11631 | if test $ac_cv_c_const = no; then |
| 11632 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11633 | cat >>confdefs.h <<\_ACEOF |
| 11634 | #define const /**/ |
| 11635 | _ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11636 | |
| 11637 | fi |
| 11638 | |
| 11639 | |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 11640 | # Check for SCTP support |
| 11641 | |
| 11642 | for ac_header in netinet/sctp.h |
| 11643 | do |
| 11644 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11646 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11647 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11649 | $as_echo_n "(cached) " >&6 |
| 11650 | fi |
| 11651 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11652 | $as_echo "$as_val"'` |
| 11653 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11654 | $as_echo "$ac_res" >&6; } |
| 11655 | else |
| 11656 | # Is the header compilable? |
| 11657 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11658 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 11659 | cat >conftest.$ac_ext <<_ACEOF |
| 11660 | /* confdefs.h. */ |
| 11661 | _ACEOF |
| 11662 | cat confdefs.h >>conftest.$ac_ext |
| 11663 | cat >>conftest.$ac_ext <<_ACEOF |
| 11664 | /* end confdefs.h. */ |
| 11665 | $ac_includes_default |
| 11666 | #include <$ac_header> |
| 11667 | _ACEOF |
| 11668 | rm -f conftest.$ac_objext |
| 11669 | if { (ac_try="$ac_compile" |
| 11670 | case "(($ac_try" in |
| 11671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11672 | *) ac_try_echo=$ac_try;; |
| 11673 | esac |
| 11674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11675 | $as_echo "$ac_try_echo") >&5 |
| 11676 | (eval "$ac_compile") 2>conftest.er1 |
| 11677 | ac_status=$? |
| 11678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11679 | rm -f conftest.er1 |
| 11680 | cat conftest.err >&5 |
| 11681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11682 | (exit $ac_status); } && { |
| 11683 | test -z "$ac_c_werror_flag" || |
| 11684 | test ! -s conftest.err |
| 11685 | } && test -s conftest.$ac_objext; then |
| 11686 | ac_header_compiler=yes |
| 11687 | else |
| 11688 | $as_echo "$as_me: failed program was:" >&5 |
| 11689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11690 | |
| 11691 | ac_header_compiler=no |
| 11692 | fi |
| 11693 | |
| 11694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11695 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11696 | $as_echo "$ac_header_compiler" >&6; } |
| 11697 | |
| 11698 | # Is the header present? |
| 11699 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11700 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 11701 | cat >conftest.$ac_ext <<_ACEOF |
| 11702 | /* confdefs.h. */ |
| 11703 | _ACEOF |
| 11704 | cat confdefs.h >>conftest.$ac_ext |
| 11705 | cat >>conftest.$ac_ext <<_ACEOF |
| 11706 | /* end confdefs.h. */ |
| 11707 | #include <$ac_header> |
| 11708 | _ACEOF |
| 11709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11710 | case "(($ac_try" in |
| 11711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11712 | *) ac_try_echo=$ac_try;; |
| 11713 | esac |
| 11714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11715 | $as_echo "$ac_try_echo") >&5 |
| 11716 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11717 | ac_status=$? |
| 11718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11719 | rm -f conftest.er1 |
| 11720 | cat conftest.err >&5 |
| 11721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); } >/dev/null && { |
| 11723 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11724 | test ! -s conftest.err |
| 11725 | }; then |
| 11726 | ac_header_preproc=yes |
| 11727 | else |
| 11728 | $as_echo "$as_me: failed program was:" >&5 |
| 11729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11730 | |
| 11731 | ac_header_preproc=no |
| 11732 | fi |
| 11733 | |
| 11734 | rm -f conftest.err conftest.$ac_ext |
| 11735 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11736 | $as_echo "$ac_header_preproc" >&6; } |
| 11737 | |
| 11738 | # So? What about this header? |
| 11739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11740 | yes:no: ) |
| 11741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11742 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11744 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11745 | ac_header_preproc=yes |
| 11746 | ;; |
| 11747 | no:yes:* ) |
| 11748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11749 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11751 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11753 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11755 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11757 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11759 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11760 | ( cat <<\_ASBOX |
| 11761 | ## --------------------------------------------- ## |
| 11762 | ## Report this to https://github.com/esnet/iperf ## |
| 11763 | ## --------------------------------------------- ## |
| 11764 | _ASBOX |
| 11765 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11766 | ;; |
| 11767 | esac |
| 11768 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11769 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11771 | $as_echo_n "(cached) " >&6 |
| 11772 | else |
| 11773 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11774 | fi |
| 11775 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11776 | $as_echo "$as_val"'` |
| 11777 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11778 | $as_echo "$ac_res" >&6; } |
| 11779 | |
| 11780 | fi |
| 11781 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 11782 | $as_echo "$as_val"'` |
| 11783 | if test "x$as_val" = x""yes; then |
| 11784 | cat >>confdefs.h <<_ACEOF |
| 11785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11786 | _ACEOF |
| 11787 | |
| 11788 | cat >>confdefs.h <<\_ACEOF |
| 11789 | #define HAVE_SCTP 1 |
| 11790 | _ACEOF |
| 11791 | |
| 11792 | fi |
| 11793 | |
| 11794 | done |
| 11795 | |
| 11796 | |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 11797 | # Check for TCP_CONGESTION sockopt (believed to be Linux only) |
| 11798 | { $as_echo "$as_me:$LINENO: checking TCP_CONGESTION socket option" >&5 |
| 11799 | $as_echo_n "checking TCP_CONGESTION socket option... " >&6; } |
| 11800 | if test "${iperf3_cv_header_tcp_congestion+set}" = set; then |
| 11801 | $as_echo_n "(cached) " >&6 |
| 11802 | else |
| 11803 | cat >conftest.$ac_ext <<_ACEOF |
| 11804 | /* confdefs.h. */ |
| 11805 | _ACEOF |
| 11806 | cat confdefs.h >>conftest.$ac_ext |
| 11807 | cat >>conftest.$ac_ext <<_ACEOF |
| 11808 | /* end confdefs.h. */ |
| 11809 | #include <netinet/tcp.h> |
| 11810 | #ifdef TCP_CONGESTION |
| 11811 | yes |
| 11812 | #endif |
| 11813 | |
| 11814 | _ACEOF |
| 11815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11816 | $EGREP "yes" >/dev/null 2>&1; then |
| 11817 | iperf3_cv_header_tcp_congestion=yes |
| 11818 | else |
| 11819 | iperf3_cv_header_tcp_congestion=no |
| 11820 | fi |
| 11821 | rm -f conftest* |
| 11822 | |
| 11823 | fi |
| 11824 | { $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_tcp_congestion" >&5 |
| 11825 | $as_echo "$iperf3_cv_header_tcp_congestion" >&6; } |
| 11826 | if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then |
| 11827 | |
| 11828 | cat >>confdefs.h <<\_ACEOF |
| 11829 | #define HAVE_TCP_CONGESTION 1 |
| 11830 | _ACEOF |
| 11831 | |
| 11832 | fi |
| 11833 | |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 11834 | # Check for IPv6 flowlabel support (believed to be Linux only) |
| 11835 | # We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we |
| 11836 | # don't use that file directly (we have our own stripped-down |
| 11837 | # copy, see src/flowlabel.h for more details). |
| 11838 | { $as_echo "$as_me:$LINENO: checking IPv6 flowlabel support" >&5 |
| 11839 | $as_echo_n "checking IPv6 flowlabel support... " >&6; } |
| 11840 | if test "${iperf3_cv_header_flowlabel+set}" = set; then |
| 11841 | $as_echo_n "(cached) " >&6 |
| 11842 | else |
| 11843 | cat >conftest.$ac_ext <<_ACEOF |
| 11844 | /* confdefs.h. */ |
| 11845 | _ACEOF |
| 11846 | cat confdefs.h >>conftest.$ac_ext |
| 11847 | cat >>conftest.$ac_ext <<_ACEOF |
| 11848 | /* end confdefs.h. */ |
| 11849 | #include <sys/types.h> |
| 11850 | #include <linux/in6.h> |
| 11851 | #ifdef IPV6_FLOWLABEL_MGR |
| 11852 | yes |
| 11853 | #endif |
| 11854 | |
| 11855 | _ACEOF |
| 11856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11857 | $EGREP "yes" >/dev/null 2>&1; then |
| 11858 | iperf3_cv_header_flowlabel=yes |
| 11859 | else |
| 11860 | iperf3_cv_header_flowlabel=no |
| 11861 | fi |
| 11862 | rm -f conftest* |
| 11863 | |
| 11864 | fi |
| 11865 | { $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_flowlabel" >&5 |
| 11866 | $as_echo "$iperf3_cv_header_flowlabel" >&6; } |
| 11867 | if test "x$iperf3_cv_header_flowlabel" = "xyes"; then |
| 11868 | |
| 11869 | cat >>confdefs.h <<\_ACEOF |
| 11870 | #define HAVE_FLOWLABEL 1 |
| 11871 | _ACEOF |
| 11872 | |
| 11873 | fi |
| 11874 | |
Bruce A. Mah | 75ee0f4 | 2014-04-14 10:49:59 -0700 | [diff] [blame] | 11875 | # Check for CPU affinity support. FreeBSD and Linux do this differently |
| 11876 | # unfortunately so we have to check separately for each of them. |
| 11877 | # FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. |
| 11878 | # Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a |
| 11879 | # generic concept is available. |
| 11880 | |
| 11881 | |
| 11882 | for ac_func in cpuset_setaffinity sched_setaffinity |
| 11883 | do |
| 11884 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11885 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11886 | $as_echo_n "checking for $ac_func... " >&6; } |
| 11887 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11888 | $as_echo_n "(cached) " >&6 |
| 11889 | else |
| 11890 | cat >conftest.$ac_ext <<_ACEOF |
| 11891 | /* confdefs.h. */ |
| 11892 | _ACEOF |
| 11893 | cat confdefs.h >>conftest.$ac_ext |
| 11894 | cat >>conftest.$ac_ext <<_ACEOF |
| 11895 | /* end confdefs.h. */ |
| 11896 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11898 | #define $ac_func innocuous_$ac_func |
| 11899 | |
| 11900 | /* System header to define __stub macros and hopefully few prototypes, |
| 11901 | which can conflict with char $ac_func (); below. |
| 11902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11903 | <limits.h> exists even on freestanding compilers. */ |
| 11904 | |
| 11905 | #ifdef __STDC__ |
| 11906 | # include <limits.h> |
| 11907 | #else |
| 11908 | # include <assert.h> |
| 11909 | #endif |
| 11910 | |
| 11911 | #undef $ac_func |
| 11912 | |
| 11913 | /* Override any GCC internal prototype to avoid an error. |
| 11914 | Use char because int might match the return type of a GCC |
| 11915 | builtin and then its argument prototype would still apply. */ |
| 11916 | #ifdef __cplusplus |
| 11917 | extern "C" |
| 11918 | #endif |
| 11919 | char $ac_func (); |
| 11920 | /* The GNU C library defines this for functions which it implements |
| 11921 | to always fail with ENOSYS. Some functions are actually named |
| 11922 | something starting with __ and the normal name is an alias. */ |
| 11923 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11924 | choke me |
| 11925 | #endif |
| 11926 | |
| 11927 | int |
| 11928 | main () |
| 11929 | { |
| 11930 | return $ac_func (); |
| 11931 | ; |
| 11932 | return 0; |
| 11933 | } |
| 11934 | _ACEOF |
| 11935 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11936 | if { (ac_try="$ac_link" |
| 11937 | case "(($ac_try" in |
| 11938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11939 | *) ac_try_echo=$ac_try;; |
| 11940 | esac |
| 11941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11942 | $as_echo "$ac_try_echo") >&5 |
| 11943 | (eval "$ac_link") 2>conftest.er1 |
| 11944 | ac_status=$? |
| 11945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11946 | rm -f conftest.er1 |
| 11947 | cat conftest.err >&5 |
| 11948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11949 | (exit $ac_status); } && { |
| 11950 | test -z "$ac_c_werror_flag" || |
| 11951 | test ! -s conftest.err |
| 11952 | } && test -s conftest$ac_exeext && { |
| 11953 | test "$cross_compiling" = yes || |
| 11954 | $as_test_x conftest$ac_exeext |
| 11955 | }; then |
| 11956 | eval "$as_ac_var=yes" |
| 11957 | else |
| 11958 | $as_echo "$as_me: failed program was:" >&5 |
| 11959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11960 | |
| 11961 | eval "$as_ac_var=no" |
| 11962 | fi |
| 11963 | |
| 11964 | rm -rf conftest.dSYM |
| 11965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11966 | conftest$ac_exeext conftest.$ac_ext |
| 11967 | fi |
| 11968 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 11969 | $as_echo "$as_val"'` |
| 11970 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11971 | $as_echo "$ac_res" >&6; } |
| 11972 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 11973 | $as_echo "$as_val"'` |
| 11974 | if test "x$as_val" = x""yes; then |
| 11975 | cat >>confdefs.h <<_ACEOF |
| 11976 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11977 | _ACEOF |
| 11978 | |
| 11979 | cat >>confdefs.h <<\_ACEOF |
| 11980 | #define HAVE_CPU_AFFINITY 1 |
| 11981 | _ACEOF |
| 11982 | |
| 11983 | fi |
| 11984 | done |
| 11985 | |
| 11986 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 11987 | ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11988 | |
| 11989 | cat >confcache <<\_ACEOF |
| 11990 | # This file is a shell script that caches the results of configure |
| 11991 | # tests run on this system so they can be shared between configure |
| 11992 | # scripts and configure runs, see configure's option --config-cache. |
| 11993 | # It is not useful on other systems. If it contains results you don't |
| 11994 | # want to keep, you may remove or edit it. |
| 11995 | # |
| 11996 | # config.status only pays attention to the cache file if you give it |
| 11997 | # the --recheck option to rerun configure. |
| 11998 | # |
| 11999 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 12000 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12001 | # following values. |
| 12002 | |
| 12003 | _ACEOF |
| 12004 | |
| 12005 | # The following way of writing the cache mishandles newlines in values, |
| 12006 | # but we know of no workaround that is simple, portable, and efficient. |
| 12007 | # So, we kill variables containing newlines. |
| 12008 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12009 | # and sets the high bit in the cache file unless we assign to the vars. |
| 12010 | ( |
| 12011 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12012 | eval ac_val=\$$ac_var |
| 12013 | case $ac_val in #( |
| 12014 | *${as_nl}*) |
| 12015 | case $ac_var in #( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12016 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12017 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12018 | esac |
| 12019 | case $ac_var in #( |
| 12020 | _ | IFS | as_nl) ;; #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12021 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12022 | *) $as_unset $ac_var ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12023 | esac ;; |
| 12024 | esac |
| 12025 | done |
| 12026 | |
| 12027 | (set) 2>&1 | |
| 12028 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12029 | *${as_nl}ac_space=\ *) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12030 | # `set' does not quote correctly, so add quotes (double-quote |
| 12031 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12032 | sed -n \ |
| 12033 | "s/'/'\\\\''/g; |
| 12034 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 12035 | ;; #( |
| 12036 | *) |
| 12037 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 12038 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 12039 | ;; |
| 12040 | esac | |
| 12041 | sort |
| 12042 | ) | |
| 12043 | sed ' |
| 12044 | /^ac_cv_env_/b end |
| 12045 | t clear |
| 12046 | :clear |
| 12047 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12048 | t end |
| 12049 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12050 | :end' >>confcache |
| 12051 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12052 | if test -w "$cache_file"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12053 | test "x$cache_file" != "x/dev/null" && |
| 12054 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12055 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12056 | cat confcache >$cache_file |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12057 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12058 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12059 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12060 | fi |
| 12061 | fi |
| 12062 | rm -f confcache |
| 12063 | |
| 12064 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12065 | # Let make expand exec_prefix. |
| 12066 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12067 | |
| 12068 | DEFS=-DHAVE_CONFIG_H |
| 12069 | |
| 12070 | ac_libobjs= |
| 12071 | ac_ltlibobjs= |
| 12072 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12073 | # 1. Remove the extension, and $U if already installed. |
| 12074 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12075 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12076 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12077 | # will be set to the directory where LIBOBJS objects are built. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12078 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12079 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12080 | done |
| 12081 | LIBOBJS=$ac_libobjs |
| 12082 | |
| 12083 | LTLIBOBJS=$ac_ltlibobjs |
| 12084 | |
| 12085 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12086 | if test -n "$EXEEXT"; then |
| 12087 | am__EXEEXT_TRUE= |
| 12088 | am__EXEEXT_FALSE='#' |
| 12089 | else |
| 12090 | am__EXEEXT_TRUE='#' |
| 12091 | am__EXEEXT_FALSE= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12092 | fi |
| 12093 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12094 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12095 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 12096 | Usually this means the macro was only invoked conditionally." >&5 |
| 12097 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 12098 | Usually this means the macro was only invoked conditionally." >&2;} |
| 12099 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12100 | fi |
| 12101 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12102 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 12103 | Usually this means the macro was only invoked conditionally." >&5 |
| 12104 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 12105 | Usually this means the macro was only invoked conditionally." >&2;} |
| 12106 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12107 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12108 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12109 | : ${CONFIG_STATUS=./config.status} |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12110 | ac_write_fail=0 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12111 | ac_clean_files_save=$ac_clean_files |
| 12112 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12113 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12114 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12115 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12116 | #! $SHELL |
| 12117 | # Generated by $as_me. |
| 12118 | # Run this file to recreate the current configuration. |
| 12119 | # Compiler output produced by configure, useful for debugging |
| 12120 | # configure, is in config.log if it exists. |
| 12121 | |
| 12122 | debug=false |
| 12123 | ac_cs_recheck=false |
| 12124 | ac_cs_silent=false |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 12125 | SHELL=\${CONFIG_SHELL-$SHELL} |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12126 | _ACEOF |
| 12127 | |
| 12128 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12129 | ## --------------------- ## |
| 12130 | ## M4sh Initialization. ## |
| 12131 | ## --------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12132 | |
| 12133 | # Be more Bourne compatible |
| 12134 | DUALCASE=1; export DUALCASE # for MKS sh |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12135 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12136 | emulate sh |
| 12137 | NULLCMD=: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12138 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12139 | # is contrary to our usage. Disable this feature. |
| 12140 | alias -g '${1+"$@"}'='"$@"' |
| 12141 | setopt NO_GLOB_SUBST |
| 12142 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12143 | case `(set -o) 2>/dev/null` in |
| 12144 | *posix*) set -o posix ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12145 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12146 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12147 | fi |
| 12148 | |
| 12149 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12150 | |
| 12151 | |
| 12152 | # PATH needs CR |
| 12153 | # Avoid depending upon Character Ranges. |
| 12154 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12155 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12156 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12157 | as_cr_digits='0123456789' |
| 12158 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 12159 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12160 | as_nl=' |
| 12161 | ' |
| 12162 | export as_nl |
| 12163 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 12164 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 12165 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 12166 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12167 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12168 | as_echo='printf %s\n' |
| 12169 | as_echo_n='printf %s' |
| 12170 | else |
| 12171 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 12172 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 12173 | as_echo_n='/usr/ucb/echo -n' |
| 12174 | else |
| 12175 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 12176 | as_echo_n_body='eval |
| 12177 | arg=$1; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12178 | case $arg in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12179 | *"$as_nl"*) |
| 12180 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 12181 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 12182 | esac; |
| 12183 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 12184 | ' |
| 12185 | export as_echo_n_body |
| 12186 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 12187 | fi |
| 12188 | export as_echo_body |
| 12189 | as_echo='sh -c $as_echo_body as_echo' |
| 12190 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 12191 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12192 | # The user is always right. |
| 12193 | if test "${PATH_SEPARATOR+set}" != set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12194 | PATH_SEPARATOR=: |
| 12195 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 12196 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 12197 | PATH_SEPARATOR=';' |
| 12198 | } |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 12199 | fi |
| 12200 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12201 | # Support unset when possible. |
| 12202 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 12203 | as_unset=unset |
| 12204 | else |
| 12205 | as_unset=false |
| 12206 | fi |
| 12207 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12208 | |
| 12209 | # IFS |
| 12210 | # We need space, tab and new line, in precisely that order. Quoting is |
| 12211 | # there to prevent editors from complaining about space-tab. |
| 12212 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 12213 | # splitting by setting IFS to empty value.) |
| 12214 | IFS=" "" $as_nl" |
| 12215 | |
| 12216 | # Find who we are. Look in the path if we contain no directory separator. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12217 | case $0 in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12218 | *[\\/]* ) as_myself=$0 ;; |
| 12219 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12220 | for as_dir in $PATH |
| 12221 | do |
| 12222 | IFS=$as_save_IFS |
| 12223 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12224 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12225 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12226 | IFS=$as_save_IFS |
| 12227 | |
| 12228 | ;; |
| 12229 | esac |
| 12230 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12231 | # in which case we are not to be found in the path. |
| 12232 | if test "x$as_myself" = x; then |
| 12233 | as_myself=$0 |
| 12234 | fi |
| 12235 | if test ! -f "$as_myself"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12236 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12237 | { (exit 1); exit 1; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12238 | fi |
| 12239 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12240 | # Work around bugs in pre-3.0 UWIN ksh. |
| 12241 | for as_var in ENV MAIL MAILPATH |
| 12242 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12243 | done |
| 12244 | PS1='$ ' |
| 12245 | PS2='> ' |
| 12246 | PS4='+ ' |
| 12247 | |
| 12248 | # NLS nuisances. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12249 | LC_ALL=C |
| 12250 | export LC_ALL |
| 12251 | LANGUAGE=C |
| 12252 | export LANGUAGE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12253 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12254 | # Required to use basename. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12255 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12256 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12257 | as_expr=expr |
| 12258 | else |
| 12259 | as_expr=false |
| 12260 | fi |
| 12261 | |
| 12262 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 12263 | as_basename=basename |
| 12264 | else |
| 12265 | as_basename=false |
| 12266 | fi |
| 12267 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12268 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12269 | # Name of the executable. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12270 | as_me=`$as_basename -- "$0" || |
| 12271 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12272 | X"$0" : 'X\(//\)$' \| \ |
| 12273 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12274 | $as_echo X/"$0" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12275 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12276 | s//\1/ |
| 12277 | q |
| 12278 | } |
| 12279 | /^X\/\(\/\/\)$/{ |
| 12280 | s//\1/ |
| 12281 | q |
| 12282 | } |
| 12283 | /^X\/\(\/\).*/{ |
| 12284 | s//\1/ |
| 12285 | q |
| 12286 | } |
| 12287 | s/.*/./; q'` |
| 12288 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12289 | # CDPATH. |
| 12290 | $as_unset CDPATH |
| 12291 | |
| 12292 | |
| 12293 | |
| 12294 | as_lineno_1=$LINENO |
| 12295 | as_lineno_2=$LINENO |
| 12296 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 12297 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 12298 | |
| 12299 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 12300 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 12301 | # line-number line after each line using $LINENO; the second 'sed' |
| 12302 | # does the real work. The second script uses 'N' to pair each |
| 12303 | # line-number line with the line containing $LINENO, and appends |
| 12304 | # trailing '-' during substitution so that $LINENO is not a special |
| 12305 | # case at line end. |
| 12306 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 12307 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 12308 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 12309 | sed -n ' |
| 12310 | p |
| 12311 | /[$]LINENO/= |
| 12312 | ' <$as_myself | |
| 12313 | sed ' |
| 12314 | s/[$]LINENO.*/&-/ |
| 12315 | t lineno |
| 12316 | b |
| 12317 | :lineno |
| 12318 | N |
| 12319 | :loop |
| 12320 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 12321 | t loop |
| 12322 | s/-\n.*// |
| 12323 | ' >$as_me.lineno && |
| 12324 | chmod +x "$as_me.lineno" || |
| 12325 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 12326 | { (exit 1); exit 1; }; } |
| 12327 | |
| 12328 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 12329 | # (the dirname of $[0] is not the place where we might find the |
| 12330 | # original and so on. Autoconf is especially sensitive to this). |
| 12331 | . "./$as_me.lineno" |
| 12332 | # Exit status is that of the last command. |
| 12333 | exit |
| 12334 | } |
| 12335 | |
| 12336 | |
| 12337 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12338 | as_dirname=dirname |
| 12339 | else |
| 12340 | as_dirname=false |
| 12341 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12342 | |
| 12343 | ECHO_C= ECHO_N= ECHO_T= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12344 | case `echo -n x` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12345 | -n*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12346 | case `echo 'x\c'` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12347 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12348 | *) ECHO_C='\c';; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12349 | esac;; |
| 12350 | *) |
| 12351 | ECHO_N='-n';; |
| 12352 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12353 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12354 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12355 | as_expr=expr |
| 12356 | else |
| 12357 | as_expr=false |
| 12358 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12359 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12360 | rm -f conf$$ conf$$.exe conf$$.file |
| 12361 | if test -d conf$$.dir; then |
| 12362 | rm -f conf$$.dir/conf$$.file |
| 12363 | else |
| 12364 | rm -f conf$$.dir |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12365 | mkdir conf$$.dir 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12366 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12367 | if (echo >conf$$.file) 2>/dev/null; then |
| 12368 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12369 | as_ln_s='ln -s' |
| 12370 | # ... but there are two gotchas: |
| 12371 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 12372 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12373 | # In both cases, we have to default to `cp -p'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12374 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12375 | as_ln_s='cp -p' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12376 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12377 | as_ln_s=ln |
| 12378 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12379 | as_ln_s='cp -p' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12380 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12381 | else |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12382 | as_ln_s='cp -p' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12383 | fi |
| 12384 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12385 | rmdir conf$$.dir 2>/dev/null |
| 12386 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12387 | if mkdir -p . 2>/dev/null; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12388 | as_mkdir_p=: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12389 | else |
| 12390 | test -d ./-p && rmdir ./-p |
| 12391 | as_mkdir_p=false |
| 12392 | fi |
| 12393 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12394 | if test -x / >/dev/null 2>&1; then |
| 12395 | as_test_x='test -x' |
| 12396 | else |
| 12397 | if ls -dL / >/dev/null 2>&1; then |
| 12398 | as_ls_L_option=L |
| 12399 | else |
| 12400 | as_ls_L_option= |
| 12401 | fi |
| 12402 | as_test_x=' |
| 12403 | eval sh -c '\'' |
| 12404 | if test -d "$1"; then |
| 12405 | test -d "$1/."; |
| 12406 | else |
| 12407 | case $1 in |
| 12408 | -*)set "./$1";; |
| 12409 | esac; |
| 12410 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 12411 | ???[sx]*):;;*)false;;esac;fi |
| 12412 | '\'' sh |
| 12413 | ' |
| 12414 | fi |
| 12415 | as_executable_p=$as_test_x |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12416 | |
| 12417 | # Sed expression to map a string onto a valid CPP name. |
| 12418 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 12419 | |
| 12420 | # Sed expression to map a string onto a valid variable name. |
| 12421 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12422 | |
| 12423 | |
| 12424 | exec 6>&1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12425 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12426 | # Save the log message, to keep $[0] and so on meaningful, and to |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12427 | # report actual input values of CONFIG_FILES etc. instead of their |
| 12428 | # values after options handling. |
| 12429 | ac_log=" |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 12430 | This file was extended by iperf $as_me 3.0.1, which was |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12431 | generated by GNU Autoconf 2.63. Invocation command line was |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12432 | |
| 12433 | CONFIG_FILES = $CONFIG_FILES |
| 12434 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12435 | CONFIG_LINKS = $CONFIG_LINKS |
| 12436 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12437 | $ $0 $@ |
| 12438 | |
| 12439 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12440 | " |
| 12441 | |
| 12442 | _ACEOF |
| 12443 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12444 | case $ac_config_files in *" |
| 12445 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12446 | esac |
| 12447 | |
| 12448 | case $ac_config_headers in *" |
| 12449 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12450 | esac |
| 12451 | |
| 12452 | |
| 12453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12454 | # Files that config.status was made for. |
| 12455 | config_files="$ac_config_files" |
| 12456 | config_headers="$ac_config_headers" |
| 12457 | config_commands="$ac_config_commands" |
| 12458 | |
| 12459 | _ACEOF |
| 12460 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12462 | ac_cs_usage="\ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12463 | \`$as_me' instantiates files from templates according to the |
| 12464 | current configuration. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12465 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12466 | Usage: $0 [OPTION]... [FILE]... |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12467 | |
| 12468 | -h, --help print this help, then exit |
| 12469 | -V, --version print version number and configuration settings, then exit |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12470 | -q, --quiet, --silent |
| 12471 | do not print progress messages |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12472 | -d, --debug don't remove temporary files |
| 12473 | --recheck update $as_me by reconfiguring in the same conditions |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12474 | --file=FILE[:TEMPLATE] |
| 12475 | instantiate the configuration file FILE |
| 12476 | --header=FILE[:TEMPLATE] |
| 12477 | instantiate the configuration header FILE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12478 | |
| 12479 | Configuration files: |
| 12480 | $config_files |
| 12481 | |
| 12482 | Configuration headers: |
| 12483 | $config_headers |
| 12484 | |
| 12485 | Configuration commands: |
| 12486 | $config_commands |
| 12487 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12488 | Report bugs to <bug-autoconf@gnu.org>." |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12489 | |
| 12490 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12492 | ac_cs_version="\\ |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 12493 | iperf config.status 3.0.1 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12494 | configured by $0, generated by GNU Autoconf 2.63, |
| 12495 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12496 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12497 | Copyright (C) 2008 Free Software Foundation, Inc. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12498 | This config.status script is free software; the Free Software Foundation |
| 12499 | gives unlimited permission to copy, distribute and modify it." |
| 12500 | |
| 12501 | ac_pwd='$ac_pwd' |
| 12502 | srcdir='$srcdir' |
| 12503 | INSTALL='$INSTALL' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12504 | MKDIR_P='$MKDIR_P' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12505 | AWK='$AWK' |
| 12506 | test -n "\$AWK" || AWK=awk |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12507 | _ACEOF |
| 12508 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12510 | # The default lists apply if the user does not specify any file. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12511 | ac_need_defaults=: |
| 12512 | while test $# != 0 |
| 12513 | do |
| 12514 | case $1 in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12515 | --*=*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12516 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12517 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 12518 | ac_shift=: |
| 12519 | ;; |
| 12520 | *) |
| 12521 | ac_option=$1 |
| 12522 | ac_optarg=$2 |
| 12523 | ac_shift=shift |
| 12524 | ;; |
| 12525 | esac |
| 12526 | |
| 12527 | case $ac_option in |
| 12528 | # Handling of the options. |
| 12529 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12530 | ac_cs_recheck=: ;; |
| 12531 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12532 | $as_echo "$ac_cs_version"; exit ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12533 | --debug | --debu | --deb | --de | --d | -d ) |
| 12534 | debug=: ;; |
| 12535 | --file | --fil | --fi | --f ) |
| 12536 | $ac_shift |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12537 | case $ac_optarg in |
| 12538 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12539 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12540 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12541 | ac_need_defaults=false;; |
| 12542 | --header | --heade | --head | --hea ) |
| 12543 | $ac_shift |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12544 | case $ac_optarg in |
| 12545 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12546 | esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12547 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12548 | ac_need_defaults=false;; |
| 12549 | --he | --h) |
| 12550 | # Conflict between --help and --header |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12551 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 12552 | Try \`$0 --help' for more information." >&2 |
| 12553 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12554 | --help | --hel | -h ) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12555 | $as_echo "$ac_cs_usage"; exit ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12556 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12557 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12558 | ac_cs_silent=: ;; |
| 12559 | |
| 12560 | # This is an error. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12561 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 12562 | Try \`$0 --help' for more information." >&2 |
| 12563 | { (exit 1); exit 1; }; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12564 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12565 | *) ac_config_targets="$ac_config_targets $1" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12566 | ac_need_defaults=false ;; |
| 12567 | |
| 12568 | esac |
| 12569 | shift |
| 12570 | done |
| 12571 | |
| 12572 | ac_configure_extra_args= |
| 12573 | |
| 12574 | if $ac_cs_silent; then |
| 12575 | exec 6>/dev/null |
| 12576 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12577 | fi |
| 12578 | |
| 12579 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12581 | if \$ac_cs_recheck; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12582 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12583 | shift |
| 12584 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12585 | CONFIG_SHELL='$SHELL' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12586 | export CONFIG_SHELL |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12587 | exec "\$@" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12588 | fi |
| 12589 | |
| 12590 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12591 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12592 | exec 5>>config.log |
| 12593 | { |
| 12594 | echo |
| 12595 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12596 | ## Running $as_me. ## |
| 12597 | _ASBOX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12598 | $as_echo "$ac_log" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12599 | } >&5 |
| 12600 | |
| 12601 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12603 | # |
| 12604 | # INIT-COMMANDS |
| 12605 | # |
| 12606 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 12607 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12608 | |
| 12609 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12610 | # if CDPATH is set. |
| 12611 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12612 | |
| 12613 | sed_quote_subst='$sed_quote_subst' |
| 12614 | double_quote_subst='$double_quote_subst' |
| 12615 | delay_variable_subst='$delay_variable_subst' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12616 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12617 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 12618 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 12619 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12620 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 12621 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 12622 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12623 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 12624 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12625 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12626 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 12627 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12628 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 12629 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 12630 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12631 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12632 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12633 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12634 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 12635 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 12636 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 12637 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12638 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12639 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 12640 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12641 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12642 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12643 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12644 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12645 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 12646 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 12647 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 12648 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12649 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12650 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 12651 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12652 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12653 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12654 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12655 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12656 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 12657 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12658 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 12659 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12660 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 12661 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12662 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 12663 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12664 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12665 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12666 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12667 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12668 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12669 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12670 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 12671 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 12672 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12673 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 12674 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12675 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12676 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 12677 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12678 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12679 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12680 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 12681 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 12682 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12683 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12684 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 12685 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12686 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12687 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12688 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12689 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12690 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12691 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12692 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12693 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12694 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12695 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12696 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 12697 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 12698 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 12699 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 12700 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12701 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12702 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12703 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12704 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 12705 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 12706 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12707 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12708 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12709 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12710 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12711 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 12712 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12713 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12714 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 12715 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12716 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12717 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12718 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12719 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12720 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12721 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12722 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12723 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12724 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 12725 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12726 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12727 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12728 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 12729 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 12730 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 12731 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12732 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12733 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12734 | |
| 12735 | LTCC='$LTCC' |
| 12736 | LTCFLAGS='$LTCFLAGS' |
| 12737 | compiler='$compiler_DEFAULT' |
| 12738 | |
| 12739 | # Quote evaled strings. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12740 | for var in SED \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12741 | GREP \ |
| 12742 | EGREP \ |
| 12743 | FGREP \ |
| 12744 | LD \ |
| 12745 | NM \ |
| 12746 | LN_S \ |
| 12747 | lt_SP2NL \ |
| 12748 | lt_NL2SP \ |
| 12749 | reload_flag \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12750 | OBJDUMP \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12751 | deplibs_check_method \ |
| 12752 | file_magic_cmd \ |
| 12753 | AR \ |
| 12754 | AR_FLAGS \ |
| 12755 | STRIP \ |
| 12756 | RANLIB \ |
| 12757 | CC \ |
| 12758 | CFLAGS \ |
| 12759 | compiler \ |
| 12760 | lt_cv_sys_global_symbol_pipe \ |
| 12761 | lt_cv_sys_global_symbol_to_cdecl \ |
| 12762 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12763 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12764 | SHELL \ |
| 12765 | ECHO \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12766 | lt_prog_compiler_no_builtin_flag \ |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 12767 | lt_prog_compiler_wl \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12768 | lt_prog_compiler_pic \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12769 | lt_prog_compiler_static \ |
| 12770 | lt_cv_prog_compiler_c_o \ |
| 12771 | need_locks \ |
| 12772 | DSYMUTIL \ |
| 12773 | NMEDIT \ |
| 12774 | LIPO \ |
| 12775 | OTOOL \ |
| 12776 | OTOOL64 \ |
| 12777 | shrext_cmds \ |
| 12778 | export_dynamic_flag_spec \ |
| 12779 | whole_archive_flag_spec \ |
| 12780 | compiler_needs_object \ |
| 12781 | with_gnu_ld \ |
| 12782 | allow_undefined_flag \ |
| 12783 | no_undefined_flag \ |
| 12784 | hardcode_libdir_flag_spec \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12785 | hardcode_libdir_flag_spec_ld \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12786 | hardcode_libdir_separator \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12787 | fix_srcfile_path \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12788 | exclude_expsyms \ |
| 12789 | include_expsyms \ |
| 12790 | file_list_spec \ |
| 12791 | variables_saved_for_relink \ |
| 12792 | libname_spec \ |
| 12793 | library_names_spec \ |
| 12794 | soname_spec \ |
| 12795 | finish_eval \ |
| 12796 | old_striplib \ |
| 12797 | striplib; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12798 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12799 | *[\\\\\\\`\\"\\\$]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12800 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12801 | ;; |
| 12802 | *) |
| 12803 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12804 | ;; |
| 12805 | esac |
| 12806 | done |
| 12807 | |
| 12808 | # Double-quote double-evaled strings. |
| 12809 | for var in reload_cmds \ |
| 12810 | old_postinstall_cmds \ |
| 12811 | old_postuninstall_cmds \ |
| 12812 | old_archive_cmds \ |
| 12813 | extract_expsyms_cmds \ |
| 12814 | old_archive_from_new_cmds \ |
| 12815 | old_archive_from_expsyms_cmds \ |
| 12816 | archive_cmds \ |
| 12817 | archive_expsym_cmds \ |
| 12818 | module_cmds \ |
| 12819 | module_expsym_cmds \ |
| 12820 | export_symbols_cmds \ |
| 12821 | prelink_cmds \ |
| 12822 | postinstall_cmds \ |
| 12823 | postuninstall_cmds \ |
| 12824 | finish_cmds \ |
| 12825 | sys_lib_search_path_spec \ |
| 12826 | sys_lib_dlsearch_path_spec; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12827 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12828 | *[\\\\\\\`\\"\\\$]*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12829 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12830 | ;; |
| 12831 | *) |
| 12832 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12833 | ;; |
| 12834 | esac |
| 12835 | done |
| 12836 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12837 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 12838 | case \$lt_ECHO in |
| 12839 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 12840 | ;; |
| 12841 | esac |
| 12842 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12843 | ac_aux_dir='$ac_aux_dir' |
| 12844 | xsi_shell='$xsi_shell' |
| 12845 | lt_shell_append='$lt_shell_append' |
| 12846 | |
| 12847 | # See if we are running on zsh, and set the options which allow our |
| 12848 | # commands through without removal of \ escapes INIT. |
| 12849 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12850 | setopt NO_GLOB_SUBST |
| 12851 | fi |
| 12852 | |
| 12853 | |
| 12854 | PACKAGE='$PACKAGE' |
| 12855 | VERSION='$VERSION' |
| 12856 | TIMESTAMP='$TIMESTAMP' |
| 12857 | RM='$RM' |
| 12858 | ofile='$ofile' |
| 12859 | |
| 12860 | |
| 12861 | |
| 12862 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12863 | _ACEOF |
| 12864 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12865 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12866 | |
| 12867 | # Handling of arguments. |
| 12868 | for ac_config_target in $ac_config_targets |
| 12869 | do |
| 12870 | case $ac_config_target in |
Bruce A. Mah | a57bcc2 | 2014-04-14 13:37:47 -0700 | [diff] [blame^] | 12871 | "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12872 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12873 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12874 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12875 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12876 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12877 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12878 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12879 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12880 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12881 | esac |
| 12882 | done |
| 12883 | |
| 12884 | |
| 12885 | # If the user did not use the arguments to specify the items to instantiate, |
| 12886 | # then the envvar interface is used. Set only those that are not. |
| 12887 | # We use the long form for the default assignment because of an extremely |
| 12888 | # bizarre bug on SunOS 4.1.3. |
| 12889 | if $ac_need_defaults; then |
| 12890 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 12891 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 12892 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12893 | fi |
| 12894 | |
| 12895 | # Have a temporary directory for convenience. Make it in the build tree |
| 12896 | # simply because there is no reason against having it here, and in addition, |
| 12897 | # creating and moving files from /tmp can sometimes cause problems. |
| 12898 | # Hook for its removal unless debugging. |
| 12899 | # Note that there is a small window in which the directory will not be cleaned: |
| 12900 | # after its creation but before its name has been assigned to `$tmp'. |
| 12901 | $debug || |
| 12902 | { |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12903 | tmp= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12904 | trap 'exit_status=$? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12905 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12906 | ' 0 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12907 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12908 | } |
| 12909 | # Create a (secure) tmp directory for tmp files. |
| 12910 | |
| 12911 | { |
| 12912 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12913 | test -n "$tmp" && test -d "$tmp" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12914 | } || |
| 12915 | { |
| 12916 | tmp=./conf$$-$RANDOM |
| 12917 | (umask 077 && mkdir "$tmp") |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12918 | } || |
| 12919 | { |
| 12920 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
| 12921 | { (exit 1); exit 1; } |
| 12922 | } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12923 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12924 | # Set up the scripts for CONFIG_FILES section. |
| 12925 | # No need to generate them if there are no CONFIG_FILES. |
| 12926 | # This happens for instance with `./config.status config.h'. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12927 | if test -n "$CONFIG_FILES"; then |
| 12928 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12929 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12930 | ac_cr='
' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12931 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12932 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 12933 | ac_cs_awk_cr='\\r' |
| 12934 | else |
| 12935 | ac_cs_awk_cr=$ac_cr |
| 12936 | fi |
| 12937 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12938 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12939 | _ACEOF |
| 12940 | |
| 12941 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12942 | { |
| 12943 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12944 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12945 | echo "_ACEOF" |
| 12946 | } >conf$$subs.sh || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12947 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12948 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12949 | { (exit 1); exit 1; }; } |
| 12950 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12951 | ac_delim='%!_!# ' |
| 12952 | for ac_last_try in false false false false false :; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12953 | . ./conf$$subs.sh || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12954 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12955 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12956 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12957 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12958 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12959 | if test $ac_delim_n = $ac_delim_num; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12960 | break |
| 12961 | elif $ac_last_try; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12962 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 12963 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 12964 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12965 | else |
| 12966 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12967 | fi |
| 12968 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12969 | rm -f conf$$subs.sh |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12970 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12972 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12973 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12974 | sed -n ' |
| 12975 | h |
| 12976 | s/^/S["/; s/!.*/"]=/ |
| 12977 | p |
| 12978 | g |
| 12979 | s/^[^!]*!// |
| 12980 | :repl |
| 12981 | t repl |
| 12982 | s/'"$ac_delim"'$// |
| 12983 | t delim |
| 12984 | :nl |
| 12985 | h |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 12986 | s/\(.\{148\}\).*/\1/ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12987 | t more1 |
| 12988 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12989 | p |
| 12990 | n |
| 12991 | b repl |
| 12992 | :more1 |
| 12993 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12994 | p |
| 12995 | g |
| 12996 | s/.\{148\}// |
| 12997 | t nl |
| 12998 | :delim |
| 12999 | h |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13000 | s/\(.\{148\}\).*/\1/ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13001 | t more2 |
| 13002 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 13003 | p |
| 13004 | b |
| 13005 | :more2 |
| 13006 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13007 | p |
| 13008 | g |
| 13009 | s/.\{148\}// |
| 13010 | t delim |
| 13011 | ' <conf$$subs.awk | sed ' |
| 13012 | /^[^""]/{ |
| 13013 | N |
| 13014 | s/\n// |
| 13015 | } |
| 13016 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13017 | rm -f conf$$subs.awk |
| 13018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13019 | _ACAWK |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13020 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13021 | for (key in S) S_is_set[key] = 1 |
| 13022 | FS = "" |
| 13023 | |
| 13024 | } |
| 13025 | { |
| 13026 | line = $ 0 |
| 13027 | nfields = split(line, field, "@") |
| 13028 | substed = 0 |
| 13029 | len = length(field[1]) |
| 13030 | for (i = 2; i < nfields; i++) { |
| 13031 | key = field[i] |
| 13032 | keylen = length(key) |
| 13033 | if (S_is_set[key]) { |
| 13034 | value = S[key] |
| 13035 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 13036 | len += length(value) + length(field[++i]) |
| 13037 | substed = 1 |
| 13038 | } else |
| 13039 | len += 1 + keylen |
| 13040 | } |
| 13041 | |
| 13042 | print line |
| 13043 | } |
| 13044 | |
| 13045 | _ACAWK |
| 13046 | _ACEOF |
| 13047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13048 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 13049 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 13050 | else |
| 13051 | cat |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13052 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 13053 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 13054 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 13055 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13056 | _ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13057 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13058 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13059 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13060 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13061 | # (actually we leave an empty line to preserve line numbers). |
| 13062 | if test "x$srcdir" = x.; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13063 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13064 | s/:*\$(srcdir):*/:/ |
| 13065 | s/:*\${srcdir}:*/:/ |
| 13066 | s/:*@srcdir@:*/:/ |
| 13067 | s/^\([^=]*=[ ]*\):*/\1/ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13068 | s/:*$// |
| 13069 | s/^[^=]*=[ ]*$// |
| 13070 | }' |
| 13071 | fi |
| 13072 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13073 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13074 | fi # test -n "$CONFIG_FILES" |
| 13075 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13076 | # Set up the scripts for CONFIG_HEADERS section. |
| 13077 | # No need to generate them if there are no CONFIG_HEADERS. |
| 13078 | # This happens for instance with `./config.status Makefile'. |
| 13079 | if test -n "$CONFIG_HEADERS"; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13080 | cat >"$tmp/defines.awk" <<\_ACAWK || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13081 | BEGIN { |
| 13082 | _ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13083 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13084 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 13085 | # here-document in config.status, that substitutes the proper values into |
| 13086 | # config.h.in to produce config.h. |
| 13087 | |
| 13088 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 13089 | # handling of long lines. |
| 13090 | ac_delim='%!_!# ' |
| 13091 | for ac_last_try in false false :; do |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13092 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 13093 | if test -z "$ac_t"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13094 | break |
| 13095 | elif $ac_last_try; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13096 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 13097 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 13098 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13099 | else |
| 13100 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13101 | fi |
| 13102 | done |
| 13103 | |
| 13104 | # For the awk script, D is an array of macro values keyed by name, |
| 13105 | # likewise P contains macro parameters if any. Preserve backslash |
| 13106 | # newline sequences. |
| 13107 | |
| 13108 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 13109 | sed -n ' |
| 13110 | s/.\{148\}/&'"$ac_delim"'/g |
| 13111 | t rset |
| 13112 | :rset |
| 13113 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 13114 | t def |
| 13115 | d |
| 13116 | :def |
| 13117 | s/\\$// |
| 13118 | t bsnl |
| 13119 | s/["\\]/\\&/g |
| 13120 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13121 | D["\1"]=" \3"/p |
| 13122 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 13123 | d |
| 13124 | :bsnl |
| 13125 | s/["\\]/\\&/g |
| 13126 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13127 | D["\1"]=" \3\\\\\\n"\\/p |
| 13128 | t cont |
| 13129 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 13130 | t cont |
| 13131 | d |
| 13132 | :cont |
| 13133 | n |
| 13134 | s/.\{148\}/&'"$ac_delim"'/g |
| 13135 | t clear |
| 13136 | :clear |
| 13137 | s/\\$// |
| 13138 | t bsnlc |
| 13139 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 13140 | d |
| 13141 | :bsnlc |
| 13142 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 13143 | b cont |
| 13144 | ' <confdefs.h | sed ' |
| 13145 | s/'"$ac_delim"'/"\\\ |
| 13146 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13147 | |
| 13148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13149 | for (key in D) D_is_set[key] = 1 |
| 13150 | FS = "" |
| 13151 | } |
| 13152 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 13153 | line = \$ 0 |
| 13154 | split(line, arg, " ") |
| 13155 | if (arg[1] == "#") { |
| 13156 | defundef = arg[2] |
| 13157 | mac1 = arg[3] |
| 13158 | } else { |
| 13159 | defundef = substr(arg[1], 2) |
| 13160 | mac1 = arg[2] |
| 13161 | } |
| 13162 | split(mac1, mac2, "(") #) |
| 13163 | macro = mac2[1] |
| 13164 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 13165 | if (D_is_set[macro]) { |
| 13166 | # Preserve the white space surrounding the "#". |
| 13167 | print prefix "define", macro P[macro] D[macro] |
| 13168 | next |
| 13169 | } else { |
| 13170 | # Replace #undef with comments. This is necessary, for example, |
| 13171 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 13172 | # on some systems where configure will not decide to define it. |
| 13173 | if (defundef == "undef") { |
| 13174 | print "/*", prefix defundef, macro, "*/" |
| 13175 | next |
| 13176 | } |
| 13177 | } |
| 13178 | } |
| 13179 | { print } |
| 13180 | _ACAWK |
| 13181 | _ACEOF |
| 13182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13183 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 13184 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 13185 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13186 | fi # test -n "$CONFIG_HEADERS" |
| 13187 | |
| 13188 | |
| 13189 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 13190 | shift |
| 13191 | for ac_tag |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13192 | do |
| 13193 | case $ac_tag in |
| 13194 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 13195 | esac |
| 13196 | case $ac_mode$ac_tag in |
| 13197 | :[FHL]*:*);; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13198 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 13199 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
| 13200 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13201 | :[FH]-) ac_tag=-:-;; |
| 13202 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13203 | esac |
| 13204 | ac_save_IFS=$IFS |
| 13205 | IFS=: |
| 13206 | set x $ac_tag |
| 13207 | IFS=$ac_save_IFS |
| 13208 | shift |
| 13209 | ac_file=$1 |
| 13210 | shift |
| 13211 | |
| 13212 | case $ac_mode in |
| 13213 | :L) ac_source=$1;; |
| 13214 | :[FH]) |
| 13215 | ac_file_inputs= |
| 13216 | for ac_f |
| 13217 | do |
| 13218 | case $ac_f in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13219 | -) ac_f="$tmp/stdin";; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13220 | *) # Look for the file first in the build tree, then in the source tree |
| 13221 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13222 | # because $ac_f cannot contain `:'. |
| 13223 | test -f "$ac_f" || |
| 13224 | case $ac_f in |
| 13225 | [\\/$]*) false;; |
| 13226 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13227 | esac || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13228 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 13229 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 13230 | { (exit 1); exit 1; }; };; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13231 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13232 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13233 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13234 | done |
| 13235 | |
| 13236 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13237 | # use $as_me), people would be surprised to read: |
| 13238 | # /* config.h. Generated by config.status. */ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13239 | configure_input='Generated from '` |
| 13240 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 13241 | `' by configure.' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13242 | if test x"$ac_file" != x-; then |
| 13243 | configure_input="$ac_file. $configure_input" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13244 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13245 | $as_echo "$as_me: creating $ac_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13246 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13247 | # Neutralize special characters interpreted by sed in replacement strings. |
| 13248 | case $configure_input in #( |
| 13249 | *\&* | *\|* | *\\* ) |
| 13250 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 13251 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 13252 | *) ac_sed_conf_input=$configure_input;; |
| 13253 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13254 | |
| 13255 | case $ac_tag in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13256 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 13257 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 13258 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 13259 | { (exit 1); exit 1; }; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13260 | esac |
| 13261 | ;; |
| 13262 | esac |
| 13263 | |
| 13264 | ac_dir=`$as_dirname -- "$ac_file" || |
| 13265 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13266 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13267 | X"$ac_file" : 'X\(//\)$' \| \ |
| 13268 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13269 | $as_echo X"$ac_file" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13270 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13271 | s//\1/ |
| 13272 | q |
| 13273 | } |
| 13274 | /^X\(\/\/\)[^/].*/{ |
| 13275 | s//\1/ |
| 13276 | q |
| 13277 | } |
| 13278 | /^X\(\/\/\)$/{ |
| 13279 | s//\1/ |
| 13280 | q |
| 13281 | } |
| 13282 | /^X\(\/\).*/{ |
| 13283 | s//\1/ |
| 13284 | q |
| 13285 | } |
| 13286 | s/.*/./; q'` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13287 | { as_dir="$ac_dir" |
| 13288 | case $as_dir in #( |
| 13289 | -*) as_dir=./$as_dir;; |
| 13290 | esac |
| 13291 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 13292 | as_dirs= |
| 13293 | while :; do |
| 13294 | case $as_dir in #( |
| 13295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13296 | *) as_qdir=$as_dir;; |
| 13297 | esac |
| 13298 | as_dirs="'$as_qdir' $as_dirs" |
| 13299 | as_dir=`$as_dirname -- "$as_dir" || |
| 13300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13301 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13302 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13304 | $as_echo X"$as_dir" | |
| 13305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13306 | s//\1/ |
| 13307 | q |
| 13308 | } |
| 13309 | /^X\(\/\/\)[^/].*/{ |
| 13310 | s//\1/ |
| 13311 | q |
| 13312 | } |
| 13313 | /^X\(\/\/\)$/{ |
| 13314 | s//\1/ |
| 13315 | q |
| 13316 | } |
| 13317 | /^X\(\/\).*/{ |
| 13318 | s//\1/ |
| 13319 | q |
| 13320 | } |
| 13321 | s/.*/./; q'` |
| 13322 | test -d "$as_dir" && break |
| 13323 | done |
| 13324 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13325 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 13326 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 13327 | { (exit 1); exit 1; }; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13328 | ac_builddir=. |
| 13329 | |
| 13330 | case "$ac_dir" in |
| 13331 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13332 | *) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13333 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13334 | # A ".." for each directory in $ac_dir_suffix. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13335 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13336 | case $ac_top_builddir_sub in |
| 13337 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13338 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13339 | esac ;; |
| 13340 | esac |
| 13341 | ac_abs_top_builddir=$ac_pwd |
| 13342 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13343 | # for backward compatibility: |
| 13344 | ac_top_builddir=$ac_top_build_prefix |
| 13345 | |
| 13346 | case $srcdir in |
| 13347 | .) # We are building in place. |
| 13348 | ac_srcdir=. |
| 13349 | ac_top_srcdir=$ac_top_builddir_sub |
| 13350 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13351 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 13352 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 13353 | ac_top_srcdir=$srcdir |
| 13354 | ac_abs_top_srcdir=$srcdir ;; |
| 13355 | *) # Relative name. |
| 13356 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13357 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13358 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 13359 | esac |
| 13360 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 13361 | |
| 13362 | |
| 13363 | case $ac_mode in |
| 13364 | :F) |
| 13365 | # |
| 13366 | # CONFIG_FILE |
| 13367 | # |
| 13368 | |
| 13369 | case $INSTALL in |
| 13370 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 13371 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 13372 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13373 | ac_MKDIR_P=$MKDIR_P |
| 13374 | case $MKDIR_P in |
| 13375 | [\\/$]* | ?:[\\/]* ) ;; |
| 13376 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 13377 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13378 | _ACEOF |
| 13379 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13381 | # If the template does not know about datarootdir, expand it. |
| 13382 | # FIXME: This hack should be removed a few years after 2.60. |
| 13383 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13384 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13385 | ac_sed_dataroot=' |
| 13386 | /datarootdir/ { |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13387 | p |
| 13388 | q |
| 13389 | } |
| 13390 | /@datadir@/p |
| 13391 | /@docdir@/p |
| 13392 | /@infodir@/p |
| 13393 | /@localedir@/p |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13394 | /@mandir@/p |
| 13395 | ' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13396 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13397 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13398 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13399 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13400 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13401 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13403 | ac_datarootdir_hack=' |
| 13404 | s&@datadir@&$datadir&g |
| 13405 | s&@docdir@&$docdir&g |
| 13406 | s&@infodir@&$infodir&g |
| 13407 | s&@localedir@&$localedir&g |
| 13408 | s&@mandir@&$mandir&g |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13409 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13410 | esac |
| 13411 | _ACEOF |
| 13412 | |
| 13413 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13414 | # Shell code in configure.ac might set extrasub. |
| 13415 | # FIXME: do we really want to maintain this feature? |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13417 | ac_sed_extra="$ac_vpsub |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13418 | $extrasub |
| 13419 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13420 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13421 | :t |
| 13422 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13423 | s|@configure_input@|$ac_sed_conf_input|;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13424 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13425 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13426 | s&@srcdir@&$ac_srcdir&;t t |
| 13427 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13428 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13429 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13430 | s&@builddir@&$ac_builddir&;t t |
| 13431 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13432 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13433 | s&@INSTALL@&$ac_INSTALL&;t t |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13434 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13435 | $ac_datarootdir_hack |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13436 | " |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13437 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 13438 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 13439 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 13440 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13441 | |
| 13442 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13443 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 13444 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 13445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13446 | which seems to be undefined. Please make sure it is defined." >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13447 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13448 | which seems to be undefined. Please make sure it is defined." >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13449 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13450 | rm -f "$tmp/stdin" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13451 | case $ac_file in |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13452 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 13453 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13454 | esac \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13455 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 13456 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 13457 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13458 | ;; |
| 13459 | :H) |
| 13460 | # |
| 13461 | # CONFIG_HEADER |
| 13462 | # |
| 13463 | if test x"$ac_file" != x-; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13464 | { |
| 13465 | $as_echo "/* $configure_input */" \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13466 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 13467 | } >"$tmp/config.h" \ |
| 13468 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 13469 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 13470 | { (exit 1); exit 1; }; } |
| 13471 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 13472 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13473 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13474 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13475 | rm -f "$ac_file" |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13476 | mv "$tmp/config.h" "$ac_file" \ |
| 13477 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 13478 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 13479 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13480 | fi |
| 13481 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13482 | $as_echo "/* $configure_input */" \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13483 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 13484 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 13485 | $as_echo "$as_me: error: could not create -" >&2;} |
| 13486 | { (exit 1); exit 1; }; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13487 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13488 | # Compute "$ac_file"'s index in $config_headers. |
| 13489 | _am_arg="$ac_file" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13490 | _am_stamp_count=1 |
| 13491 | for _am_header in $config_headers :; do |
| 13492 | case $_am_header in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13493 | $_am_arg | $_am_arg:* ) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13494 | break ;; |
| 13495 | * ) |
| 13496 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 13497 | esac |
| 13498 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13499 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 13500 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13501 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 13502 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 13503 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 13504 | $as_echo X"$_am_arg" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13505 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13506 | s//\1/ |
| 13507 | q |
| 13508 | } |
| 13509 | /^X\(\/\/\)[^/].*/{ |
| 13510 | s//\1/ |
| 13511 | q |
| 13512 | } |
| 13513 | /^X\(\/\/\)$/{ |
| 13514 | s//\1/ |
| 13515 | q |
| 13516 | } |
| 13517 | /^X\(\/\).*/{ |
| 13518 | s//\1/ |
| 13519 | q |
| 13520 | } |
| 13521 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 13522 | ;; |
| 13523 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13524 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13525 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13526 | ;; |
| 13527 | esac |
| 13528 | |
| 13529 | |
| 13530 | case $ac_file$ac_mode in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13531 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13532 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13533 | # are listed without --file. Let's play safe and only enable the eval |
| 13534 | # if we detect the quoting. |
| 13535 | case $CONFIG_FILES in |
| 13536 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 13537 | *) set x $CONFIG_FILES ;; |
| 13538 | esac |
| 13539 | shift |
| 13540 | for mf |
| 13541 | do |
| 13542 | # Strip MF so we end up with the name of the file. |
| 13543 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 13544 | # Check whether this is an Automake generated Makefile or not. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13545 | # We used to match only the files named `Makefile.in', but |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13546 | # some people rename them; so instead we look at the file content. |
| 13547 | # Grep'ing the first line is not enough: some people post-process |
| 13548 | # each Makefile.in and add a new line on top of each file to say so. |
| 13549 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 13550 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 13551 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 13552 | dirpart=`$as_dirname -- "$mf" || |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13553 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13554 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 13555 | X"$mf" : 'X\(//\)$' \| \ |
| 13556 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13557 | $as_echo X"$mf" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13559 | s//\1/ |
| 13560 | q |
| 13561 | } |
| 13562 | /^X\(\/\/\)[^/].*/{ |
| 13563 | s//\1/ |
| 13564 | q |
| 13565 | } |
| 13566 | /^X\(\/\/\)$/{ |
| 13567 | s//\1/ |
| 13568 | q |
| 13569 | } |
| 13570 | /^X\(\/\).*/{ |
| 13571 | s//\1/ |
| 13572 | q |
| 13573 | } |
| 13574 | s/.*/./; q'` |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13575 | else |
| 13576 | continue |
| 13577 | fi |
| 13578 | # Extract the definition of DEPDIR, am__include, and am__quote |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13579 | # from the Makefile without running `make'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13580 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 13581 | test -z "$DEPDIR" && continue |
| 13582 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13583 | test -z "am__include" && continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13584 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13585 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 13586 | U=`sed -n 's/^U = //p' < "$mf"` |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13587 | # Find all dependency output files, they are included files with |
| 13588 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 13589 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 13590 | # expansion. |
| 13591 | for file in `sed -n " |
| 13592 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13593 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13594 | # Make sure the directory exists. |
| 13595 | test -f "$dirpart/$file" && continue |
| 13596 | fdir=`$as_dirname -- "$file" || |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13597 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13598 | X"$file" : 'X\(//\)[^/]' \| \ |
| 13599 | X"$file" : 'X\(//\)$' \| \ |
| 13600 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13601 | $as_echo X"$file" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13603 | s//\1/ |
| 13604 | q |
| 13605 | } |
| 13606 | /^X\(\/\/\)[^/].*/{ |
| 13607 | s//\1/ |
| 13608 | q |
| 13609 | } |
| 13610 | /^X\(\/\/\)$/{ |
| 13611 | s//\1/ |
| 13612 | q |
| 13613 | } |
| 13614 | /^X\(\/\).*/{ |
| 13615 | s//\1/ |
| 13616 | q |
| 13617 | } |
| 13618 | s/.*/./; q'` |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13619 | { as_dir=$dirpart/$fdir |
| 13620 | case $as_dir in #( |
| 13621 | -*) as_dir=./$as_dir;; |
| 13622 | esac |
| 13623 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 13624 | as_dirs= |
| 13625 | while :; do |
| 13626 | case $as_dir in #( |
| 13627 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13628 | *) as_qdir=$as_dir;; |
| 13629 | esac |
| 13630 | as_dirs="'$as_qdir' $as_dirs" |
| 13631 | as_dir=`$as_dirname -- "$as_dir" || |
| 13632 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13633 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13634 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13635 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13636 | $as_echo X"$as_dir" | |
| 13637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13638 | s//\1/ |
| 13639 | q |
| 13640 | } |
| 13641 | /^X\(\/\/\)[^/].*/{ |
| 13642 | s//\1/ |
| 13643 | q |
| 13644 | } |
| 13645 | /^X\(\/\/\)$/{ |
| 13646 | s//\1/ |
| 13647 | q |
| 13648 | } |
| 13649 | /^X\(\/\).*/{ |
| 13650 | s//\1/ |
| 13651 | q |
| 13652 | } |
| 13653 | s/.*/./; q'` |
| 13654 | test -d "$as_dir" && break |
| 13655 | done |
| 13656 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13657 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 13658 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 13659 | { (exit 1); exit 1; }; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13660 | # echo "creating $dirpart/$file" |
| 13661 | echo '# dummy' > "$dirpart/$file" |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 13662 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13663 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13664 | } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13665 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13666 | "libtool":C) |
| 13667 | |
| 13668 | # See if we are running on zsh, and set the options which allow our |
| 13669 | # commands through without removal of \ escapes. |
| 13670 | if test -n "${ZSH_VERSION+set}" ; then |
| 13671 | setopt NO_GLOB_SUBST |
| 13672 | fi |
| 13673 | |
| 13674 | cfgfile="${ofile}T" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13675 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13676 | $RM "$cfgfile" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13677 | |
| 13678 | cat <<_LT_EOF >> "$cfgfile" |
| 13679 | #! $SHELL |
| 13680 | |
| 13681 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13682 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13683 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13684 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13685 | # |
| 13686 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13687 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13688 | # Written by Gordon Matzigkeit, 1996 |
| 13689 | # |
| 13690 | # This file is part of GNU Libtool. |
| 13691 | # |
| 13692 | # GNU Libtool is free software; you can redistribute it and/or |
| 13693 | # modify it under the terms of the GNU General Public License as |
| 13694 | # published by the Free Software Foundation; either version 2 of |
| 13695 | # the License, or (at your option) any later version. |
| 13696 | # |
| 13697 | # As a special exception to the GNU General Public License, |
| 13698 | # if you distribute this file as part of a program or library that |
| 13699 | # is built using GNU Libtool, you may include this file under the |
| 13700 | # same distribution terms that you use for the rest of that program. |
| 13701 | # |
| 13702 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13703 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13704 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13705 | # GNU General Public License for more details. |
| 13706 | # |
| 13707 | # You should have received a copy of the GNU General Public License |
| 13708 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13709 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13710 | # obtained by writing to the Free Software Foundation, Inc., |
| 13711 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13712 | |
| 13713 | |
| 13714 | # The names of the tagged configurations supported by this script. |
| 13715 | available_tags="" |
| 13716 | |
| 13717 | # ### BEGIN LIBTOOL CONFIG |
| 13718 | |
| 13719 | # Which release of libtool.m4 was used? |
| 13720 | macro_version=$macro_version |
| 13721 | macro_revision=$macro_revision |
| 13722 | |
| 13723 | # Whether or not to build shared libraries. |
| 13724 | build_libtool_libs=$enable_shared |
| 13725 | |
| 13726 | # Whether or not to build static libraries. |
| 13727 | build_old_libs=$enable_static |
| 13728 | |
| 13729 | # What type of objects to build. |
| 13730 | pic_mode=$pic_mode |
| 13731 | |
| 13732 | # Whether or not to optimize for fast installation. |
| 13733 | fast_install=$enable_fast_install |
| 13734 | |
| 13735 | # The host system. |
| 13736 | host_alias=$host_alias |
| 13737 | host=$host |
| 13738 | host_os=$host_os |
| 13739 | |
| 13740 | # The build system. |
| 13741 | build_alias=$build_alias |
| 13742 | build=$build |
| 13743 | build_os=$build_os |
| 13744 | |
| 13745 | # A sed program that does not truncate output. |
| 13746 | SED=$lt_SED |
| 13747 | |
| 13748 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13749 | Xsed="\$SED -e 1s/^X//" |
| 13750 | |
| 13751 | # A grep program that handles long lines. |
| 13752 | GREP=$lt_GREP |
| 13753 | |
| 13754 | # An ERE matcher. |
| 13755 | EGREP=$lt_EGREP |
| 13756 | |
| 13757 | # A literal string matcher. |
| 13758 | FGREP=$lt_FGREP |
| 13759 | |
| 13760 | # A BSD- or MS-compatible name lister. |
| 13761 | NM=$lt_NM |
| 13762 | |
| 13763 | # Whether we need soft or hard links. |
| 13764 | LN_S=$lt_LN_S |
| 13765 | |
| 13766 | # What is the maximum length of a command? |
| 13767 | max_cmd_len=$max_cmd_len |
| 13768 | |
| 13769 | # Object file suffix (normally "o"). |
| 13770 | objext=$ac_objext |
| 13771 | |
| 13772 | # Executable file suffix (normally ""). |
| 13773 | exeext=$exeext |
| 13774 | |
| 13775 | # whether the shell understands "unset". |
| 13776 | lt_unset=$lt_unset |
| 13777 | |
| 13778 | # turn spaces into newlines. |
| 13779 | SP2NL=$lt_lt_SP2NL |
| 13780 | |
| 13781 | # turn newlines into spaces. |
| 13782 | NL2SP=$lt_lt_NL2SP |
| 13783 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13784 | # How to create reloadable object files. |
| 13785 | reload_flag=$lt_reload_flag |
| 13786 | reload_cmds=$lt_reload_cmds |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13787 | |
| 13788 | # An object symbol dumper. |
| 13789 | OBJDUMP=$lt_OBJDUMP |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13790 | |
| 13791 | # Method to check whether dependent libraries are shared objects. |
| 13792 | deplibs_check_method=$lt_deplibs_check_method |
| 13793 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13794 | # Command to use when deplibs_check_method == "file_magic". |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13795 | file_magic_cmd=$lt_file_magic_cmd |
| 13796 | |
| 13797 | # The archiver. |
| 13798 | AR=$lt_AR |
| 13799 | AR_FLAGS=$lt_AR_FLAGS |
| 13800 | |
| 13801 | # A symbol stripping program. |
| 13802 | STRIP=$lt_STRIP |
| 13803 | |
| 13804 | # Commands used to install an old-style archive. |
| 13805 | RANLIB=$lt_RANLIB |
| 13806 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13807 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13808 | |
| 13809 | # A C compiler. |
| 13810 | LTCC=$lt_CC |
| 13811 | |
| 13812 | # LTCC compiler flags. |
| 13813 | LTCFLAGS=$lt_CFLAGS |
| 13814 | |
| 13815 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13816 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13817 | |
| 13818 | # Transform the output of nm in a proper C declaration. |
| 13819 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13820 | |
| 13821 | # Transform the output of nm in a C name address pair. |
| 13822 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13823 | |
| 13824 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13825 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13826 | |
| 13827 | # The name of the directory that contains temporary libtool files. |
| 13828 | objdir=$objdir |
| 13829 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13830 | # Shell to use when invoking shell scripts. |
| 13831 | SHELL=$lt_SHELL |
| 13832 | |
| 13833 | # An echo program that does not interpret backslashes. |
| 13834 | ECHO=$lt_ECHO |
| 13835 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13836 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13837 | MAGIC_CMD=$MAGIC_CMD |
| 13838 | |
| 13839 | # Must we lock files when doing compilation? |
| 13840 | need_locks=$lt_need_locks |
| 13841 | |
| 13842 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13843 | DSYMUTIL=$lt_DSYMUTIL |
| 13844 | |
| 13845 | # Tool to change global to local symbols on Mac OS X. |
| 13846 | NMEDIT=$lt_NMEDIT |
| 13847 | |
| 13848 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13849 | LIPO=$lt_LIPO |
| 13850 | |
| 13851 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13852 | OTOOL=$lt_OTOOL |
| 13853 | |
| 13854 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13855 | OTOOL64=$lt_OTOOL64 |
| 13856 | |
| 13857 | # Old archive suffix (normally "a"). |
| 13858 | libext=$libext |
| 13859 | |
| 13860 | # Shared library suffix (normally ".so"). |
| 13861 | shrext_cmds=$lt_shrext_cmds |
| 13862 | |
| 13863 | # The commands to extract the exported symbol list from a shared archive. |
| 13864 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13865 | |
| 13866 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13867 | # restored at link time. |
| 13868 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 13869 | |
| 13870 | # Do we need the "lib" prefix for modules? |
| 13871 | need_lib_prefix=$need_lib_prefix |
| 13872 | |
| 13873 | # Do we need a version for libraries? |
| 13874 | need_version=$need_version |
| 13875 | |
| 13876 | # Library versioning type. |
| 13877 | version_type=$version_type |
| 13878 | |
| 13879 | # Shared library runtime path variable. |
| 13880 | runpath_var=$runpath_var |
| 13881 | |
| 13882 | # Shared library path variable. |
| 13883 | shlibpath_var=$shlibpath_var |
| 13884 | |
| 13885 | # Is shlibpath searched before the hard-coded library search path? |
| 13886 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13887 | |
| 13888 | # Format of library name prefix. |
| 13889 | libname_spec=$lt_libname_spec |
| 13890 | |
| 13891 | # List of archive names. First name is the real one, the rest are links. |
| 13892 | # The last name is the one that the linker finds with -lNAME |
| 13893 | library_names_spec=$lt_library_names_spec |
| 13894 | |
| 13895 | # The coded name of the library, if different from the real name. |
| 13896 | soname_spec=$lt_soname_spec |
| 13897 | |
| 13898 | # Command to use after installation of a shared archive. |
| 13899 | postinstall_cmds=$lt_postinstall_cmds |
| 13900 | |
| 13901 | # Command to use after uninstallation of a shared archive. |
| 13902 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13903 | |
| 13904 | # Commands used to finish a libtool library installation in a directory. |
| 13905 | finish_cmds=$lt_finish_cmds |
| 13906 | |
| 13907 | # As "finish_cmds", except a single script fragment to be evaled but |
| 13908 | # not shown. |
| 13909 | finish_eval=$lt_finish_eval |
| 13910 | |
| 13911 | # Whether we should hardcode library paths into libraries. |
| 13912 | hardcode_into_libs=$hardcode_into_libs |
| 13913 | |
| 13914 | # Compile-time system search path for libraries. |
| 13915 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13916 | |
| 13917 | # Run-time system search path for libraries. |
| 13918 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13919 | |
| 13920 | # Whether dlopen is supported. |
| 13921 | dlopen_support=$enable_dlopen |
| 13922 | |
| 13923 | # Whether dlopen of programs is supported. |
| 13924 | dlopen_self=$enable_dlopen_self |
| 13925 | |
| 13926 | # Whether dlopen of statically linked programs is supported. |
| 13927 | dlopen_self_static=$enable_dlopen_self_static |
| 13928 | |
| 13929 | # Commands to strip libraries. |
| 13930 | old_striplib=$lt_old_striplib |
| 13931 | striplib=$lt_striplib |
| 13932 | |
| 13933 | |
| 13934 | # The linker used to build libraries. |
| 13935 | LD=$lt_LD |
| 13936 | |
| 13937 | # Commands used to build an old-style archive. |
| 13938 | old_archive_cmds=$lt_old_archive_cmds |
| 13939 | |
| 13940 | # A language specific compiler. |
| 13941 | CC=$lt_compiler |
| 13942 | |
| 13943 | # Is the compiler the GNU compiler? |
| 13944 | with_gcc=$GCC |
| 13945 | |
| 13946 | # Compiler flag to turn off builtin functions. |
| 13947 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 13948 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 13949 | # How to pass a linker flag through the compiler. |
| 13950 | wl=$lt_lt_prog_compiler_wl |
| 13951 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13952 | # Additional compiler flags for building library objects. |
| 13953 | pic_flag=$lt_lt_prog_compiler_pic |
| 13954 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13955 | # Compiler flag to prevent dynamic linking. |
| 13956 | link_static_flag=$lt_lt_prog_compiler_static |
| 13957 | |
| 13958 | # Does compiler simultaneously support -c and -o options? |
| 13959 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 13960 | |
| 13961 | # Whether or not to add -lc for building shared libraries. |
| 13962 | build_libtool_need_lc=$archive_cmds_need_lc |
| 13963 | |
| 13964 | # Whether or not to disallow shared libs when runtime libs are static. |
| 13965 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 13966 | |
| 13967 | # Compiler flag to allow reflexive dlopens. |
| 13968 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 13969 | |
| 13970 | # Compiler flag to generate shared objects directly from archives. |
| 13971 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 13972 | |
| 13973 | # Whether the compiler copes with passing no objects directly. |
| 13974 | compiler_needs_object=$lt_compiler_needs_object |
| 13975 | |
| 13976 | # Create an old-style archive from a shared archive. |
| 13977 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 13978 | |
| 13979 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13980 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 13981 | |
| 13982 | # Commands used to build a shared archive. |
| 13983 | archive_cmds=$lt_archive_cmds |
| 13984 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 13985 | |
| 13986 | # Commands used to build a loadable module if different from building |
| 13987 | # a shared archive. |
| 13988 | module_cmds=$lt_module_cmds |
| 13989 | module_expsym_cmds=$lt_module_expsym_cmds |
| 13990 | |
| 13991 | # Whether we are building with GNU ld or not. |
| 13992 | with_gnu_ld=$lt_with_gnu_ld |
| 13993 | |
| 13994 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13995 | allow_undefined_flag=$lt_allow_undefined_flag |
| 13996 | |
| 13997 | # Flag that enforces no undefined symbols. |
| 13998 | no_undefined_flag=$lt_no_undefined_flag |
| 13999 | |
| 14000 | # Flag to hardcode \$libdir into a binary during linking. |
| 14001 | # This must work even if \$libdir does not exist |
| 14002 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 14003 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14004 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 14005 | # during linking. This must work even if \$libdir does not exist. |
| 14006 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 14007 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14008 | # Whether we need a single "-rpath" flag with a separated argument. |
| 14009 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 14010 | |
| 14011 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 14012 | # DIR into the resulting binary. |
| 14013 | hardcode_direct=$hardcode_direct |
| 14014 | |
| 14015 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 14016 | # DIR into the resulting binary and the resulting library dependency is |
| 14017 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 14018 | # library is relocated. |
| 14019 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 14020 | |
| 14021 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 14022 | # into the resulting binary. |
| 14023 | hardcode_minus_L=$hardcode_minus_L |
| 14024 | |
| 14025 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 14026 | # into the resulting binary. |
| 14027 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 14028 | |
| 14029 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 14030 | # into the library and all subsequent libraries and executables linked |
| 14031 | # against it. |
| 14032 | hardcode_automatic=$hardcode_automatic |
| 14033 | |
| 14034 | # Set to yes if linker adds runtime paths of dependent libraries |
| 14035 | # to runtime path list. |
| 14036 | inherit_rpath=$inherit_rpath |
| 14037 | |
| 14038 | # Whether libtool must link a program against all its dependency libraries. |
| 14039 | link_all_deplibs=$link_all_deplibs |
| 14040 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14041 | # Fix the shell variable \$srcfile for the compiler. |
| 14042 | fix_srcfile_path=$lt_fix_srcfile_path |
| 14043 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14044 | # Set to "yes" if exported symbols are required. |
| 14045 | always_export_symbols=$always_export_symbols |
| 14046 | |
| 14047 | # The commands to list exported symbols. |
| 14048 | export_symbols_cmds=$lt_export_symbols_cmds |
| 14049 | |
| 14050 | # Symbols that should not be listed in the preloaded symbols. |
| 14051 | exclude_expsyms=$lt_exclude_expsyms |
| 14052 | |
| 14053 | # Symbols that must always be exported. |
| 14054 | include_expsyms=$lt_include_expsyms |
| 14055 | |
| 14056 | # Commands necessary for linking programs (against libraries) with templates. |
| 14057 | prelink_cmds=$lt_prelink_cmds |
| 14058 | |
| 14059 | # Specify filename containing input files. |
| 14060 | file_list_spec=$lt_file_list_spec |
| 14061 | |
| 14062 | # How to hardcode a shared library path into an executable. |
| 14063 | hardcode_action=$hardcode_action |
| 14064 | |
| 14065 | # ### END LIBTOOL CONFIG |
| 14066 | |
| 14067 | _LT_EOF |
| 14068 | |
| 14069 | case $host_os in |
| 14070 | aix3*) |
| 14071 | cat <<\_LT_EOF >> "$cfgfile" |
| 14072 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14073 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14074 | # vanish in a puff of smoke. |
| 14075 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14076 | COLLECT_NAMES= |
| 14077 | export COLLECT_NAMES |
| 14078 | fi |
| 14079 | _LT_EOF |
| 14080 | ;; |
| 14081 | esac |
| 14082 | |
| 14083 | |
| 14084 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14085 | |
| 14086 | |
| 14087 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 14088 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14089 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 14090 | # is reportedly fixed, but why not run on old versions too? |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14091 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 14092 | || (rm -f "$cfgfile"; exit 1) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14093 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14094 | case $xsi_shell in |
| 14095 | yes) |
| 14096 | cat << \_LT_EOF >> "$cfgfile" |
| 14097 | |
| 14098 | # func_dirname file append nondir_replacement |
| 14099 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 14100 | # otherwise set result to NONDIR_REPLACEMENT. |
| 14101 | func_dirname () |
| 14102 | { |
| 14103 | case ${1} in |
| 14104 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 14105 | * ) func_dirname_result="${3}" ;; |
| 14106 | esac |
| 14107 | } |
| 14108 | |
| 14109 | # func_basename file |
| 14110 | func_basename () |
| 14111 | { |
| 14112 | func_basename_result="${1##*/}" |
| 14113 | } |
| 14114 | |
| 14115 | # func_dirname_and_basename file append nondir_replacement |
| 14116 | # perform func_basename and func_dirname in a single function |
| 14117 | # call: |
| 14118 | # dirname: Compute the dirname of FILE. If nonempty, |
| 14119 | # add APPEND to the result, otherwise set result |
| 14120 | # to NONDIR_REPLACEMENT. |
| 14121 | # value returned in "$func_dirname_result" |
| 14122 | # basename: Compute filename of FILE. |
| 14123 | # value retuned in "$func_basename_result" |
| 14124 | # Implementation must be kept synchronized with func_dirname |
| 14125 | # and func_basename. For efficiency, we do not delegate to |
| 14126 | # those functions but instead duplicate the functionality here. |
| 14127 | func_dirname_and_basename () |
| 14128 | { |
| 14129 | case ${1} in |
| 14130 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 14131 | * ) func_dirname_result="${3}" ;; |
| 14132 | esac |
| 14133 | func_basename_result="${1##*/}" |
| 14134 | } |
| 14135 | |
| 14136 | # func_stripname prefix suffix name |
| 14137 | # strip PREFIX and SUFFIX off of NAME. |
| 14138 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 14139 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 14140 | # dot (in which case that matches only a dot). |
| 14141 | func_stripname () |
| 14142 | { |
| 14143 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 14144 | # positional parameters, so assign one to ordinary parameter first. |
| 14145 | func_stripname_result=${3} |
| 14146 | func_stripname_result=${func_stripname_result#"${1}"} |
| 14147 | func_stripname_result=${func_stripname_result%"${2}"} |
| 14148 | } |
| 14149 | |
| 14150 | # func_opt_split |
| 14151 | func_opt_split () |
| 14152 | { |
| 14153 | func_opt_split_opt=${1%%=*} |
| 14154 | func_opt_split_arg=${1#*=} |
| 14155 | } |
| 14156 | |
| 14157 | # func_lo2o object |
| 14158 | func_lo2o () |
| 14159 | { |
| 14160 | case ${1} in |
| 14161 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 14162 | *) func_lo2o_result=${1} ;; |
| 14163 | esac |
| 14164 | } |
| 14165 | |
| 14166 | # func_xform libobj-or-source |
| 14167 | func_xform () |
| 14168 | { |
| 14169 | func_xform_result=${1%.*}.lo |
| 14170 | } |
| 14171 | |
| 14172 | # func_arith arithmetic-term... |
| 14173 | func_arith () |
| 14174 | { |
| 14175 | func_arith_result=$(( $* )) |
| 14176 | } |
| 14177 | |
| 14178 | # func_len string |
| 14179 | # STRING may not start with a hyphen. |
| 14180 | func_len () |
| 14181 | { |
| 14182 | func_len_result=${#1} |
| 14183 | } |
| 14184 | |
| 14185 | _LT_EOF |
| 14186 | ;; |
| 14187 | *) # Bourne compatible functions. |
| 14188 | cat << \_LT_EOF >> "$cfgfile" |
| 14189 | |
| 14190 | # func_dirname file append nondir_replacement |
| 14191 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 14192 | # otherwise set result to NONDIR_REPLACEMENT. |
| 14193 | func_dirname () |
| 14194 | { |
| 14195 | # Extract subdirectory from the argument. |
| 14196 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 14197 | if test "X$func_dirname_result" = "X${1}"; then |
| 14198 | func_dirname_result="${3}" |
| 14199 | else |
| 14200 | func_dirname_result="$func_dirname_result${2}" |
| 14201 | fi |
| 14202 | } |
| 14203 | |
| 14204 | # func_basename file |
| 14205 | func_basename () |
| 14206 | { |
| 14207 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 14208 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14209 | |
| 14210 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14211 | # func_stripname prefix suffix name |
| 14212 | # strip PREFIX and SUFFIX off of NAME. |
| 14213 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 14214 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 14215 | # dot (in which case that matches only a dot). |
| 14216 | # func_strip_suffix prefix name |
| 14217 | func_stripname () |
| 14218 | { |
| 14219 | case ${2} in |
| 14220 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 14221 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 14222 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 14223 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 14224 | esac |
| 14225 | } |
| 14226 | |
| 14227 | # sed scripts: |
| 14228 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 14229 | my_sed_long_arg='1s/^-[^=]*=//' |
| 14230 | |
| 14231 | # func_opt_split |
| 14232 | func_opt_split () |
| 14233 | { |
| 14234 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 14235 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 14236 | } |
| 14237 | |
| 14238 | # func_lo2o object |
| 14239 | func_lo2o () |
| 14240 | { |
| 14241 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 14242 | } |
| 14243 | |
| 14244 | # func_xform libobj-or-source |
| 14245 | func_xform () |
| 14246 | { |
| 14247 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 14248 | } |
| 14249 | |
| 14250 | # func_arith arithmetic-term... |
| 14251 | func_arith () |
| 14252 | { |
| 14253 | func_arith_result=`expr "$@"` |
| 14254 | } |
| 14255 | |
| 14256 | # func_len string |
| 14257 | # STRING may not start with a hyphen. |
| 14258 | func_len () |
| 14259 | { |
| 14260 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 14261 | } |
| 14262 | |
| 14263 | _LT_EOF |
| 14264 | esac |
| 14265 | |
| 14266 | case $lt_shell_append in |
| 14267 | yes) |
| 14268 | cat << \_LT_EOF >> "$cfgfile" |
| 14269 | |
| 14270 | # func_append var value |
| 14271 | # Append VALUE to the end of shell variable VAR. |
| 14272 | func_append () |
| 14273 | { |
| 14274 | eval "$1+=\$2" |
| 14275 | } |
| 14276 | _LT_EOF |
| 14277 | ;; |
| 14278 | *) |
| 14279 | cat << \_LT_EOF >> "$cfgfile" |
| 14280 | |
| 14281 | # func_append var value |
| 14282 | # Append VALUE to the end of shell variable VAR. |
| 14283 | func_append () |
| 14284 | { |
| 14285 | eval "$1=\$$1\$2" |
| 14286 | } |
| 14287 | |
| 14288 | _LT_EOF |
| 14289 | ;; |
| 14290 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14291 | |
| 14292 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14293 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 14294 | || (rm -f "$cfgfile"; exit 1) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14295 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14296 | mv -f "$cfgfile" "$ofile" || |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14297 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 14298 | chmod +x "$ofile" |
| 14299 | |
| 14300 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14301 | |
| 14302 | esac |
| 14303 | done # for ac_tag |
| 14304 | |
| 14305 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14306 | { (exit 0); exit 0; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14307 | _ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14308 | chmod +x $CONFIG_STATUS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14309 | ac_clean_files=$ac_clean_files_save |
| 14310 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14311 | test $ac_write_fail = 0 || |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14312 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 14313 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 14314 | { (exit 1); exit 1; }; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14315 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14316 | |
| 14317 | # configure is writing to config.log, and then calls config.status. |
| 14318 | # config.status does its own redirection, appending to config.log. |
| 14319 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14320 | # by configure, so config.status won't be able to write to it; its |
| 14321 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14322 | # effectively closing config.log, so it can be properly (re)opened and |
| 14323 | # appended to by config.status. When coming back to configure, we |
| 14324 | # need to make the FD available again. |
| 14325 | if test "$no_create" != yes; then |
| 14326 | ac_cs_success=: |
| 14327 | ac_config_status_args= |
| 14328 | test "$silent" = yes && |
| 14329 | ac_config_status_args="$ac_config_status_args --quiet" |
| 14330 | exec 5>/dev/null |
| 14331 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 14332 | exec 5>>config.log |
| 14333 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14334 | # would make configure fail if this is the last instruction. |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14335 | $ac_cs_success || { (exit 1); exit 1; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14336 | fi |
| 14337 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14338 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14339 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 14340 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14341 | |